(()=>{var HB=Object.create;var U0=Object.defineProperty;var zB=Object.getOwnPropertyDescriptor;var WB=Object.getOwnPropertyNames;var YB=Object.getPrototypeOf,JB=Object.prototype.hasOwnProperty;var XB=e=>U0(e,"__esModule",{value:!0});var tx=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var G=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ZB=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of WB(t))!JB.call(e,n)&&n!=="default"&&U0(e,n,{get:()=>t[n],enumerable:!(r=zB(t,n))||r.enumerable});return e},Ee=e=>ZB(XB(U0(e!=null?HB(YB(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var G0=G((Oie,nx)=>{"use strict";var rx=Object.getOwnPropertySymbols,$B=Object.prototype.hasOwnProperty,eK=Object.prototype.propertyIsEnumerable;function tK(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function rK(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}nx.exports=rK()?Object.assign:function(e,t){for(var r,n=tK(e),i,o=1;o{"use strict";var Q0=G0(),ml=60103,ix=60106;Et.Fragment=60107;Et.StrictMode=60108;Et.Profiler=60114;var ax=60109,ox=60110,ux=60112;Et.Suspense=60113;var sx=60115,lx=60116;typeof Symbol=="function"&&Symbol.for&&(Mi=Symbol.for,ml=Mi("react.element"),ix=Mi("react.portal"),Et.Fragment=Mi("react.fragment"),Et.StrictMode=Mi("react.strict_mode"),Et.Profiler=Mi("react.profiler"),ax=Mi("react.provider"),ox=Mi("react.context"),ux=Mi("react.forward_ref"),Et.Suspense=Mi("react.suspense"),sx=Mi("react.memo"),lx=Mi("react.lazy"));var Mi,cx=typeof Symbol=="function"&&Symbol.iterator;function nK(e){return e===null||typeof e!="object"?null:(e=cx&&e[cx]||e["@@iterator"],typeof e=="function"?e:null)}function If(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r{"use strict";Tx.exports=bx()});var wx=G(qt=>{"use strict";var bl,Af,Bh,Y0;typeof performance=="object"&&typeof performance.now=="function"?(_x=performance,qt.unstable_now=function(){return _x.now()}):(J0=Date,Ex=J0.now(),qt.unstable_now=function(){return J0.now()-Ex});var _x,J0,Ex;typeof window=="undefined"||typeof MessageChannel!="function"?(Tl=null,X0=null,Z0=function(){if(Tl!==null)try{var e=qt.unstable_now();Tl(!0,e),Tl=null}catch(t){throw setTimeout(Z0,0),t}},bl=function(e){Tl!==null?setTimeout(bl,0,e):(Tl=e,setTimeout(Z0,0))},Af=function(e,t){X0=setTimeout(e,t)},Bh=function(){clearTimeout(X0)},qt.unstable_shouldYield=function(){return!1},Y0=qt.unstable_forceFrameRate=function(){}):(Sx=window.setTimeout,kx=window.clearTimeout,typeof console!="undefined"&&(Ox=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof Ox!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),Rf=!1,jf=null,Kh=-1,$0=5,eb=0,qt.unstable_shouldYield=function(){return qt.unstable_now()>=eb},Y0=function(){},qt.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[n];if(i!==void 0&&0Wh(s,r))d!==void 0&&0>Wh(d,s)?(e[n]=d,e[l]=r,n=l):(e[n]=s,e[o]=r,n=o);else if(d!==void 0&&0>Wh(d,r))e[n]=d,e[l]=r,n=l;else break e}}return t}return null}function Wh(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}var La=[],Ho=[],sK=1,qi=null,An=3,Yh=!1,$u=!1,Pf=!1;function nb(e){for(var t=ha(Ho);t!==null;){if(t.callback===null)zh(Ho);else if(t.startTime<=e)zh(Ho),t.sortIndex=t.expirationTime,rb(La,t);else break;t=ha(Ho)}}function ib(e){if(Pf=!1,nb(e),!$u)if(ha(La)!==null)$u=!0,bl(ab);else{var t=ha(Ho);t!==null&&Af(ib,t.startTime-e)}}function ab(e,t){$u=!1,Pf&&(Pf=!1,Bh()),Yh=!0;var r=An;try{for(nb(t),qi=ha(La);qi!==null&&(!(qi.expirationTime>t)||e&&!qt.unstable_shouldYield());){var n=qi.callback;if(typeof n=="function"){qi.callback=null,An=qi.priorityLevel;var i=n(qi.expirationTime<=t);t=qt.unstable_now(),typeof i=="function"?qi.callback=i:qi===ha(La)&&zh(La),nb(t)}else zh(La);qi=ha(La)}if(qi!==null)var o=!0;else{var s=ha(Ho);s!==null&&Af(ib,s.startTime-t),o=!1}return o}finally{qi=null,An=r,Yh=!1}}var lK=Y0;qt.unstable_IdlePriority=5;qt.unstable_ImmediatePriority=1;qt.unstable_LowPriority=4;qt.unstable_NormalPriority=3;qt.unstable_Profiling=null;qt.unstable_UserBlockingPriority=2;qt.unstable_cancelCallback=function(e){e.callback=null};qt.unstable_continueExecution=function(){$u||Yh||($u=!0,bl(ab))};qt.unstable_getCurrentPriorityLevel=function(){return An};qt.unstable_getFirstCallbackNode=function(){return ha(La)};qt.unstable_next=function(e){switch(An){case 1:case 2:case 3:var t=3;break;default:t=An}var r=An;An=t;try{return e()}finally{An=r}};qt.unstable_pauseExecution=function(){};qt.unstable_requestPaint=lK;qt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=An;An=e;try{return t()}finally{An=r}};qt.unstable_scheduleCallback=function(e,t,r){var n=qt.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0n?(e.sortIndex=r,rb(Ho,e),ha(La)===null&&e===ha(Ho)&&(Pf?Bh():Pf=!0,Af(ib,r-n))):(e.sortIndex=i,rb(La,e),$u||Yh||($u=!0,bl(ab))),e};qt.unstable_wrapCallback=function(e){var t=An;return function(){var r=An;An=t;try{return e.apply(this,arguments)}finally{An=r}}}});var Dx=G((xie,Nx)=>{"use strict";Nx.exports=wx()});var h1=G(Ki=>{"use strict";var Jh=zt(),cr=G0(),ln=Dx();function ye(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rt}return!1}function $n(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yn[e]=new $n(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yn[t]=new $n(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yn[e]=new $n(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yn[e]=new $n(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yn[e]=new $n(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yn[e]=new $n(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yn[e]=new $n(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yn[e]=new $n(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yn[e]=new $n(e,5,!1,e.toLowerCase(),null,!1,!1)});var ob=/[\-:]([a-z])/g;function ub(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ob,ub);yn[t]=new $n(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ob,ub);yn[t]=new $n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ob,ub);yn[t]=new $n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yn[e]=new $n(e,1,!1,e.toLowerCase(),null,!1,!1)});yn.xlinkHref=new $n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yn[e]=new $n(e,1,!1,e.toLowerCase(),null,!0,!0)});function sb(e,t,r,n){var i=yn.hasOwnProperty(t)?yn[t]:null,o=i!==null?i.type===0:n?!1:!(!(2l||i[s]!==o[l])return` `+i[s].replace(" at new "," at ");while(1<=s&&0<=l);break}}}finally{yb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Gf(e):""}function hK(e){switch(e.tag){case 5:return Gf(e.type);case 16:return Gf("Lazy");case 13:return Gf("Suspense");case 19:return Gf("SuspenseList");case 0:case 2:case 15:return e=ev(e.type,!1),e;case 11:return e=ev(e.type.render,!1),e;case 22:return e=ev(e.type._render,!1),e;case 1:return e=ev(e.type,!0),e;default:return""}}function El(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case zo:return"Fragment";case rs:return"Portal";case qf:return"Profiler";case lb:return"StrictMode";case Vf:return"Suspense";case Zh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fb:return(e.displayName||"Context")+".Consumer";case cb:return(e._context.displayName||"Context")+".Provider";case Xh:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case $h:return El(e.type);case pb:return El(e._render);case db:t=e._payload,e=e._init;try{return El(e(t))}catch(r){}}return null}function Wo(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function jx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vK(e){var t=jx(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tv(e){e._valueTracker||(e._valueTracker=vK(e))}function Px(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=jx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function rv(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function bb(e,t){var r=t.checked;return cr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function Fx(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Wo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Mx(e,t){t=t.checked,t!=null&&sb(e,"checked",t,!1)}function Tb(e,t){Mx(e,t);var r=Wo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_b(e,t.type,r):t.hasOwnProperty("defaultValue")&&_b(e,t.type,Wo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qx(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function _b(e,t,r){(t!=="number"||rv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function gK(e){var t="";return Jh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Eb(e,t){return e=cr({children:void 0},t),(t=gK(t.children))&&(e.children=t),e}function Sl(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i=r.length))throw Error(ye(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Wo(r)}}function Ux(e,t){var r=Wo(t.value),n=Wo(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Gx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var kb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Qx(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ob(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Qx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var nv,Bx=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==kb.svg||"innerHTML"in e)e.innerHTML=t;else{for(nv=nv||document.createElement("div"),nv.innerHTML=""+t.valueOf().toString()+"",t=nv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Bf={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mK=["Webkit","ms","Moz","O"];Object.keys(Bf).forEach(function(e){mK.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bf[t]=Bf[e]})});function Kx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Bf.hasOwnProperty(e)&&Bf[e]?(""+t).trim():t+"px"}function Hx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Kx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var yK=cr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wb(e,t){if(t){if(yK[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ye(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ye(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(ye(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ye(62))}}function Nb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Db(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xb=null,kl=null,Ol=null;function zx(e){if(e=sd(e)){if(typeof xb!="function")throw Error(ye(280));var t=e.stateNode;t&&(t=kv(t),xb(e.stateNode,e.type,t))}}function Wx(e){kl?Ol?Ol.push(e):Ol=[e]:kl=e}function Yx(){if(kl){var e=kl,t=Ol;if(Ol=kl=null,zx(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function cv(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Zo(t),e[t]=r}var Zo=Math.clz32?Math.clz32:RK,IK=Math.log,AK=Math.LN2;function RK(e){return e===0?32:31-(IK(e)/AK|0)|0}var jK=ln.unstable_UserBlockingPriority,PK=ln.unstable_runWithPriority,fv=!0;function FK(e,t,r,n){ns||Lb();var i=Qb,o=ns;ns=!0;try{Jx(i,e,t,r,n)}finally{(ns=o)||Ab()}}function MK(e,t,r,n){PK(jK,Qb.bind(null,e,t,r,n))}function Qb(e,t,r,n){if(fv){var i;if((i=(t&4)==0)&&0=td),EC=String.fromCharCode(32),SC=!1;function kC(e,t){switch(e){case"keyup":return u3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function OC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ll=!1;function l3(e,t){switch(e){case"compositionend":return OC(t);case"keypress":return t.which!==32?null:(SC=!0,EC);case"textInput":return e=t.data,e===EC&&SC?null:e;default:return null}}function c3(e,t){if(Ll)return e==="compositionend"||!Xb&&kC(e,t)?(e=gC(),dv=Kb=$o=null,Ll=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=LC(r)}}function AC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?AC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function RC(){for(var e=window,t=rv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch(n){r=!1}if(r)e=t.contentWindow;else break;t=rv(e.document)}return t}function $b(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var T3=vo&&"documentMode"in document&&11>=document.documentMode,Il=null,eT=null,ad=null,tT=!1;function jC(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;tT||Il==null||Il!==rv(n)||(n=Il,"selectionStart"in n&&$b(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ad&&id(ad,n)||(ad=n,n=Tv(eT,"onSelect"),0Fl||(e.current=sT[Fl],sT[Fl]=null,Fl--)}function _r(e,t){Fl++,sT[Fl]=e.current,e.current=t}var ru={},Rn=tu(ru),ci=tu(!1),os=ru;function Ml(e,t){var r=e.type.contextTypes;if(!r)return ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function fi(e){return e=e.childContextTypes,e!=null}function Ov(){or(ci),or(Rn)}function JC(e,t,r){if(Rn.current!==ru)throw Error(ye(168));_r(Rn,t),_r(ci,r)}function XC(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(ye(108,El(t)||"Unknown",i));return cr({},r,n)}function wv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ru,os=Rn.current,_r(Rn,e),_r(ci,ci.current),!0}function ZC(e,t,r){var n=e.stateNode;if(!n)throw Error(ye(169));r?(e=XC(e,t,os),n.__reactInternalMemoizedMergedChildContext=e,or(ci),or(Rn),_r(Rn,e)):or(ci),_r(ci,r)}var lT=null,us=null,S3=ln.unstable_runWithPriority,cT=ln.unstable_scheduleCallback,fT=ln.unstable_cancelCallback,k3=ln.unstable_shouldYield,$C=ln.unstable_requestPaint,dT=ln.unstable_now,O3=ln.unstable_getCurrentPriorityLevel,Nv=ln.unstable_ImmediatePriority,eL=ln.unstable_UserBlockingPriority,tL=ln.unstable_NormalPriority,rL=ln.unstable_LowPriority,nL=ln.unstable_IdlePriority,pT={},w3=$C!==void 0?$C:function(){},go=null,Dv=null,hT=!1,iL=dT(),jn=1e4>iL?dT:function(){return dT()-iL};function ql(){switch(O3()){case Nv:return 99;case eL:return 98;case tL:return 97;case rL:return 96;case nL:return 95;default:throw Error(ye(332))}}function aL(e){switch(e){case 99:return Nv;case 98:return eL;case 97:return tL;case 96:return rL;case 95:return nL;default:throw Error(ye(332))}}function ss(e,t){return e=aL(e),S3(e,t)}function ld(e,t,r){return e=aL(e),cT(e,t,r)}function Aa(){if(Dv!==null){var e=Dv;Dv=null,fT(e)}oL()}function oL(){if(!hT&&go!==null){hT=!0;var e=0;try{var t=go;ss(99,function(){for(;eR?(M=O,O=null):M=O.sibling;var q=b(T,O,m[R],w);if(q===null){O===null&&(O=M);break}e&&O&&q.alternate===null&&t(T,O),S=o(q,S,R),L===null?x=q:L.sibling=q,L=q,O=M}if(R===m.length)return r(T,O),x;if(O===null){for(;RR?(M=O,O=null):M=O.sibling;var z=b(T,O,q.value,w);if(z===null){O===null&&(O=M);break}e&&O&&z.alternate===null&&t(T,O),S=o(z,S,R),L===null?x=z:L.sibling=z,L=z,O=M}if(q.done)return r(T,O),x;if(O===null){for(;!q.done;R++,q=m.next())q=y(T,q.value,w),q!==null&&(S=o(q,S,R),L===null?x=q:L.sibling=q,L=q);return x}for(O=n(T,O);!q.done;R++,q=m.next())q=D(O,T,R,q.value,w),q!==null&&(e&&q.alternate!==null&&O.delete(q.key===null?R:q.key),S=o(q,S,R),L===null?x=q:L.sibling=q,L=q);return e&&O.forEach(function(B){return t(T,B)}),x}return function(T,S,m,w){var x=typeof m=="object"&&m!==null&&m.type===zo&&m.key===null;x&&(m=m.props.children);var L=typeof m=="object"&&m!==null;if(L)switch(m.$$typeof){case Mf:e:{for(L=m.key,x=S;x!==null;){if(x.key===L){switch(x.tag){case 7:if(m.type===zo){r(T,x.sibling),S=i(x,m.props.children),S.return=T,T=S;break e}break;default:if(x.elementType===m.type){r(T,x.sibling),S=i(x,m.props),S.ref=fd(T,x,m),S.return=T,T=S;break e}}r(T,x);break}else t(T,x);x=x.sibling}m.type===zo?(S=Yl(m.props.children,T.mode,w,m.key),S.return=T,T=S):(w=$v(m.type,m.key,m.props,null,T.mode,w),w.ref=fd(T,S,m),w.return=T,T=w)}return s(T);case rs:e:{for(x=m.key;S!==null;){if(S.key===x)if(S.tag===4&&S.stateNode.containerInfo===m.containerInfo&&S.stateNode.implementation===m.implementation){r(T,S.sibling),S=i(S,m.children||[]),S.return=T,T=S;break e}else{r(T,S);break}else t(T,S);S=S.sibling}S=t_(m,T.mode,w),S.return=T,T=S}return s(T)}if(typeof m=="string"||typeof m=="number")return m=""+m,S!==null&&S.tag===6?(r(T,S.sibling),S=i(S,m),S.return=T,T=S):(r(T,S),S=e_(m,T.mode,w),S.return=T,T=S),s(T);if(Rv(m))return _(T,S,m,w);if(Uf(m))return k(T,S,m,w);if(L&&jv(T,m),typeof m=="undefined"&&!x)switch(T.tag){case 1:case 22:case 0:case 11:case 15:throw Error(ye(152,El(T.type)||"Component"))}return r(T,S)}}var Pv=vL(!0),gL=vL(!1),dd={},Ra=tu(dd),pd=tu(dd),hd=tu(dd);function ls(e){if(e===dd)throw Error(ye(174));return e}function bT(e,t){switch(_r(hd,t),_r(pd,e),_r(Ra,dd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ob(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ob(t,e)}or(Ra),_r(Ra,t)}function Gl(){or(Ra),or(pd),or(hd)}function mL(e){ls(hd.current);var t=ls(Ra.current),r=Ob(t,e.type);t!==r&&(_r(pd,e),_r(Ra,r))}function TT(e){pd.current===e&&(or(Ra),or(pd))}var Er=tu(0);function Fv(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!=0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mo=null,ou=null,ja=!1;function yL(e,t){var r=Bi(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function bL(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function _T(e){if(ja){var t=ou;if(t){var r=t;if(!bL(e,t)){if(t=Rl(r.nextSibling),!t||!bL(e,t)){e.flags=e.flags&-1025|2,ja=!1,mo=e;return}yL(mo,r)}mo=e,ou=Rl(t.firstChild)}else e.flags=e.flags&-1025|2,ja=!1,mo=e}}function TL(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mo=e}function Mv(e){if(e!==mo)return!1;if(!ja)return TL(e),ja=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!aT(t,e.memoizedProps))for(t=ou;t;)yL(e,t),t=Rl(t.nextSibling);if(TL(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ye(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){ou=Rl(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}ou=null}}else ou=mo?Rl(e.stateNode.nextSibling):null;return!0}function ET(){ou=mo=null,ja=!1}var Ql=[];function ST(){for(var e=0;eo))throw Error(ye(301));o+=1,bn=Pn=null,t.updateQueue=null,vd.current=L3,e=r(n,i)}while(md)}if(vd.current=Qv,t=Pn!==null&&Pn.next!==null,gd=0,bn=Pn=Dr=null,qv=!1,t)throw Error(ye(300));return e}function cs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bn===null?Dr.memoizedState=bn=e:bn=bn.next=e,bn}function fs(){if(Pn===null){var e=Dr.alternate;e=e!==null?e.memoizedState:null}else e=Pn.next;var t=bn===null?Dr.memoizedState:bn.next;if(t!==null)bn=t,Pn=e;else{if(e===null)throw Error(ye(310));Pn=e,e={memoizedState:Pn.memoizedState,baseState:Pn.baseState,baseQueue:Pn.baseQueue,queue:Pn.queue,next:null},bn===null?Dr.memoizedState=bn=e:bn=bn.next=e}return bn}function Pa(e,t){return typeof t=="function"?t(e):t}function yd(e){var t=fs(),r=t.queue;if(r===null)throw Error(ye(311));r.lastRenderedReducer=e;var n=Pn,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var l=s=o=null,d=i;do{var h=d.lane;if((gd&h)===h)l!==null&&(l=l.next={lane:0,action:d.action,eagerReducer:d.eagerReducer,eagerState:d.eagerState,next:null}),n=d.eagerReducer===e?d.eagerState:e(n,d.action);else{var v={lane:h,action:d.action,eagerReducer:d.eagerReducer,eagerState:d.eagerState,next:null};l===null?(s=l=v,o=n):l=l.next=v,Dr.lanes|=h,Ed|=h}d=d.next}while(d!==null&&d!==i);l===null?o=n:l.next=s,Vi(n,t.memoizedState)||(ga=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function bd(e){var t=fs(),r=t.queue;if(r===null)throw Error(ye(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Vi(o,t.memoizedState)||(ga=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function _L(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(gd&e)===e)&&(t._workInProgressVersionPrimary=n,Ql.push(t))),e)return r(t._source);throw Ql.push(t),Error(ye(350))}function EL(e,t,r,n){var i=ei;if(i===null)throw Error(ye(349));var o=t._getVersion,s=o(t._source),l=vd.current,d=l.useState(function(){return _L(i,t,r)}),h=d[1],v=d[0];d=bn;var y=e.memoizedState,b=y.refs,D=b.getSnapshot,_=y.source;y=y.subscribe;var k=Dr;return e.memoizedState={refs:b,source:t,subscribe:n},l.useEffect(function(){b.getSnapshot=r,b.setSnapshot=h;var T=o(t._source);if(!Vi(s,T)){T=r(t._source),Vi(v,T)||(h(T),T=su(k),i.mutableReadLanes|=T&i.pendingLanes),T=i.mutableReadLanes,i.entangledLanes|=T;for(var S=i.entanglements,m=T;0r?98:r,function(){e(!0)}),ss(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[eu]=t,e[Sv]=n,QL(e,t,!1,!1),t.stateNode=e,s=Nb(r,n),r){case"dialog":ar("cancel",e),ar("close",e),i=n;break;case"iframe":case"object":case"embed":ar("load",e),i=n;break;case"video":case"audio":for(i=0;iKT&&(t.flags|=64,o=!0,_d(n,!1),t.lanes=33554432)}else{if(!o)if(e=Fv(s),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),_d(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!ja)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*jn()-n.renderingStartTime>KT&&r!==1073741824&&(t.flags|=64,o=!0,_d(n,!1),t.lanes=33554432);n.isBackwards?(s.sibling=t.child,t.child=s):(r=n.last,r!==null?r.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=jn(),r.sibling=null,t=Er.current,_r(Er,o?t&1|2:t&1),r):null;case 23:case 24:return XT(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(ye(156,t.tag))}function R3(e){switch(e.tag){case 1:fi(e.type)&&Ov();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Gl(),or(ci),or(Rn),ST(),t=e.flags,(t&64)!=0)throw Error(ye(285));return e.flags=t&-4097|64,e;case 5:return TT(e),null;case 13:return or(Er),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return or(Er),null;case 4:return Gl(),null;case 10:return gT(e),null;case 23:case 24:return XT(),null;default:return null}}function jT(e,t){try{var r="",n=t;do r+=hK(n),n=n.return;while(n);var i=r}catch(o){i=` Error generating stack: `+o.message+` `+o.stack}return{value:e,source:t,stack:i}}function PT(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var j3=typeof WeakMap=="function"?WeakMap:Map;function HL(e,t,r){r=iu(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){zv||(zv=!0,HT=n),PT(e,t)},r}function zL(e,t,r){r=iu(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return PT(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this),PT(e,t));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}var P3=typeof WeakSet=="function"?WeakSet:Set;function WL(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){fu(e,r)}else t.current=null}function F3(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:va(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&oT(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(ye(163))}function M3(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)==3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,(i&4)!=0&&(i&1)!=0&&(l1(r,e),H3(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:va(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&cL(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}cL(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&KC(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&sC(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(ye(163))}function YL(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=Kx("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function JL(e,t){if(us&&typeof us.onCommitFiberUnmount=="function")try{us.onCommitFiberUnmount(lT,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if((n&4)!=0)l1(t,r);else{n=t;try{i()}catch(o){fu(n,o)}}r=r.next}while(r!==e)}break;case 1:if(WL(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){fu(t,o)}break;case 5:WL(t);break;case 4:e1(e,t)}}function XL(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ZL(e){return e.tag===5||e.tag===3||e.tag===4}function $L(e){e:{for(var t=e.return;t!==null;){if(ZL(t))break e;t=t.return}throw Error(ye(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(ye(161))}r.flags&16&&(Qf(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||ZL(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?FT(e,r,t):MT(e,r,t)}function FT(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=_v));else if(n!==4&&(e=e.child,e!==null))for(FT(e,t,r),e=e.sibling;e!==null;)FT(e,t,r),e=e.sibling}function MT(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(MT(e,t,r),e=e.sibling;e!==null;)MT(e,t,r),e=e.sibling}function e1(e,t){for(var r=t,n=!1,i,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(ye(160));switch(i=n.stateNode,n.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var s=e,l=r,d=l;;)if(JL(s,d),d.child!==null&&d.tag!==4)d.child.return=d,d=d.child;else{if(d===l)break e;for(;d.sibling===null;){if(d.return===null||d.return===l)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(s=i,l=r.stateNode,s.nodeType===8?s.parentNode.removeChild(l):s.removeChild(l)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(JL(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function qT(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)==3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[Sv]=n,e==="input"&&n.type==="radio"&&n.name!=null&&Mx(r,n),Nb(e,i),t=Nb(e,n),i=0;ii&&(i=s),r&=~o}if(r=i,r=jn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*V3(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Tn!==5&&(Tn=2),d=jT(d,l),b=s;do{switch(b.tag){case 3:o=d,b.flags|=4096,t&=-t,b.lanes|=t;var L=HL(b,o,t);lL(b,L);break e;case 1:o=d;var O=b.type,R=b.stateNode;if((b.flags&64)==0&&(typeof O.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(Fa===null||!Fa.has(R)))){b.flags|=4096,t&=-t,b.lanes|=t;var M=zL(b,o,t);lL(b,M);break e}}b=b.return}while(b!==null)}s1(r)}catch(q){t=q,Jr===r&&r!==null&&(Jr=r=r.return);continue}break}while(1)}function o1(){var e=Kv.current;return Kv.current=Qv,e===null?Qv:e}function Nd(e,t){var r=tt;tt|=16;var n=o1();ei===e&&Fn===t||Wl(e,t);do try{G3();break}catch(i){a1(e,i)}while(1);if(vT(),tt=r,Kv.current=n,Jr!==null)throw Error(ye(261));return ei=null,Fn=0,Tn}function G3(){for(;Jr!==null;)u1(Jr)}function Q3(){for(;Jr!==null&&!k3();)u1(Jr)}function u1(e){var t=f1(e.alternate,e,ds);e.memoizedProps=e.pendingProps,t===null?s1(e):Jr=t,VT.current=null}function s1(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)==0){if(r=A3(r,t,ds),r!==null){Jr=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(ds&1073741824)!=0||(r.mode&4)==0){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&(e.flags&2048)==0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1s&&(l=s,s=L,L=l),l=IC(m,L),o=IC(m,s),l&&o&&(x.rangeCount!==1||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(l.node,l.offset),x.removeAllRanges(),L>s?(x.addRange(w),x.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),x.addRange(w)))))),w=[],x=m;x=x.parentNode;)x.nodeType===1&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;mjn()-BT?Wl(e,0):GT|=r),Qi(e,t)}function Y3(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)==0?t=1:(t&4)==0?t=ql()===99?1:2:(To===0&&(To=Bl),t=xl(62914560&~To),t===0&&(t=4194304))),r=wi(),e=Xv(e,t),e!==null&&(cv(e,t,r),Qi(e,r))}var f1;f1=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ci.current)ga=!0;else if((r&n)!=0)ga=(e.flags&16384)!=0;else{switch(ga=!1,t.tag){case 3:PL(t),ET();break;case 5:mL(t);break;case 1:fi(t.type)&&wv(t);break;case 4:bT(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;_r(xv,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!=0?FL(e,t,r):(_r(Er,Er.current&1),t=yo(e,t,r),t!==null?t.sibling:null);_r(Er,Er.current&1);break;case 19:if(n=(r&t.childLanes)!=0,(e.flags&64)!=0){if(n)return GL(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_r(Er,Er.current),n)break;return null;case 23:case 24:return t.lanes=0,CT(e,t,r)}return yo(e,t,r)}else ga=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Ml(t,Rn.current),Ul(t,r),i=OT(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,fi(n)){var o=!0;wv(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,mT(t);var s=n.getDerivedStateFromProps;typeof s=="function"&&Iv(t,n,s,e),i.updater=Av,t.stateNode=i,i._reactInternals=t,yT(t,n,e,r),t=IT(null,t,n,!0,o,r)}else t.tag=0,pi(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=X3(i),e=va(i,e),o){case 0:t=LT(null,t,i,e,r);break e;case 1:t=jL(null,t,i,e,r);break e;case 11:t=LL(null,t,i,e,r);break e;case 14:t=IL(null,t,i,va(i.type,e),n,r);break e}throw Error(ye(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:va(n,i),LT(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:va(n,i),jL(e,t,n,i,r);case 3:if(PL(t),n=t.updateQueue,e===null||n===null)throw Error(ye(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,sL(e,t),cd(t,n,null,r),n=t.memoizedState.element,n===i)ET(),t=yo(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(ou=Rl(t.stateNode.containerInfo.firstChild),mo=t,o=ja=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i{"use strict";function v1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(v1)}catch(e){console.error(e)}}v1(),g1.exports=h1()});var m1=G(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.versionInfo=Jl.version=void 0;var iH="15.5.0";Jl.version=iH;var aH=Object.freeze({major:15,minor:5,patch:0,preReleaseTag:null});Jl.versionInfo=aH});var rg=G(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0});o_.default=oH;function oH(e){return typeof(e==null?void 0:e.then)=="function"}});var Ma=G(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.default=uH;function ng(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ng=function(r){return typeof r}:ng=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ng(e)}function uH(e){return ng(e)=="object"&&e!==null}});var qa=G(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.SYMBOL_TO_STRING_TAG=pu.SYMBOL_ASYNC_ITERATOR=pu.SYMBOL_ITERATOR=void 0;var sH=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator";pu.SYMBOL_ITERATOR=sH;var lH=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator";pu.SYMBOL_ASYNC_ITERATOR=lH;var cH=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";pu.SYMBOL_TO_STRING_TAG=cH});var ig=G(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.getLocation=fH;function fH(e,t){for(var r=/\r\n|[\n\r]/g,n=1,i=t+1,o;(o=r.exec(e.body))&&o.index{"use strict";Object.defineProperty(og,"__esModule",{value:!0});og.printLocation=pH;og.printSourceLocation=y1;var dH=ig();function pH(e){return y1(e.source,(0,dH.getLocation)(e.source,e.start))}function y1(e,t){var r=e.locationOffset.column-1,n=ag(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,l=t.line===1?r:0,d=t.column+l,h="".concat(e.name,":").concat(s,":").concat(d,` `),v=n.split(/\r\n|[\n\r]/g),y=v[i];if(y.length>120){for(var b=Math.floor(d/80),D=d%80,_=[],k=0;k{"use strict";function ug(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ug=function(r){return typeof r}:ug=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ug(e)}Object.defineProperty(Rd,"__esModule",{value:!0});Rd.printError=O1;Rd.GraphQLError=void 0;var vH=mH(Ma()),gH=qa(),T1=ig(),_1=l_();function mH(e){return e&&e.__esModule?e:{default:e}}function yH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E1(e,t){for(var r=0;r{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.syntaxError=OH;var kH=Je();function OH(e,t,r){return new kH.GraphQLError("Syntax Error: ".concat(r),void 0,e,[t])}});var Jt=G(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});cg.Kind=void 0;var wH=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});cg.Kind=wH});var _n=G(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});d_.default=NH;function NH(e,t){var r=Boolean(e);if(!r)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var p_=G(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.default=void 0;var DH=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,xH=DH;fg.default=xH});var dg=G(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.default=LH;var CH=N1(_n()),w1=N1(p_());function N1(e){return e&&e.__esModule?e:{default:e}}function LH(e){var t=e.prototype.toJSON;typeof t=="function"||(0,CH.default)(0),e.prototype.inspect=t,w1.default&&(e.prototype[w1.default]=t)}});var Xl=G(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.isNode=AH;hs.Token=hs.Location=void 0;var D1=IH(dg());function IH(e){return e&&e.__esModule?e:{default:e}}var x1=function(){function e(r,n,i){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=i}var t=e.prototype;return t.toJSON=function(){return{start:this.start,end:this.end}},e}();hs.Location=x1;(0,D1.default)(x1);var C1=function(){function e(r,n,i,o,s,l,d){this.kind=r,this.start=n,this.end=i,this.line=o,this.column=s,this.value=d,this.prev=l,this.next=null}var t=e.prototype;return t.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();hs.Token=C1;(0,D1.default)(C1);function AH(e){return e!=null&&typeof e.kind=="string"}});var Zl=G(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.TokenKind=void 0;var RH=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});pg.TokenKind=RH});var jt=G(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});v_.default=MH;var jH=PH(p_());function PH(e){return e&&e.__esModule?e:{default:e}}function hg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hg=function(r){return typeof r}:hg=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hg(e)}var FH=10,L1=2;function MH(e){return vg(e,[])}function vg(e,t){switch(hg(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":qH(e,t);default:return String(e)}}function qH(e,t){if(t.indexOf(e)!==-1)return"[Circular]";var r=[].concat(t,[e]),n=GH(e);if(n!==void 0){var i=n.call(e);if(i!==e)return typeof i=="string"?i:vg(i,r)}else if(Array.isArray(e))return UH(e,r);return VH(e,r)}function VH(e,t){var r=Object.keys(e);if(r.length===0)return"{}";if(t.length>L1)return"["+QH(e)+"]";var n=r.map(function(i){var o=vg(e[i],t);return i+": "+o});return"{ "+n.join(", ")+" }"}function UH(e,t){if(e.length===0)return"[]";if(t.length>L1)return"[Array]";for(var r=Math.min(FH,e.length),n=e.length-r,i=[],o=0;o1&&i.push("... ".concat(n," more items")),"["+i.join(", ")+"]"}function GH(e){var t=e[String(jH.default)];if(typeof t=="function")return t;if(typeof e.inspect=="function")return e.inspect}function QH(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){var r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}});var Hi=G(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.default=BH;function BH(e,t){var r=Boolean(e);if(!r)throw new Error(t)}});var jd=G(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.default=void 0;var KH=function(t,r){return t instanceof r};gg.default=KH});var mg=G(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.isSource=JH;Pd.Source=void 0;var HH=qa(),zH=y_(jt()),m_=y_(Hi()),WH=y_(jd());function y_(e){return e&&e.__esModule?e:{default:e}}function I1(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof t=="string"||(0,m_.default)(0,"Body must be a string. Received: ".concat((0,zH.default)(t),".")),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,m_.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,m_.default)(0,"column in locationOffset is 1-indexed and must be positive.")}return YH(e,[{key:HH.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),e}();Pd.Source=A1;function JH(e){return(0,WH.default)(e,A1)}});var $l=G(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});yg.DirectiveLocation=void 0;var XH=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});yg.DirectiveLocation=XH});var ec=G(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.dedentBlockStringValue=ZH;Fd.getBlockStringIndentation=j1;Fd.printBlockString=$H;function ZH(e){var t=e.split(/\r\n|[\n\r]/g),r=j1(e);if(r!==0)for(var n=1;ni&&R1(t[o-1]);)--o;return t.slice(i,o).join(` `)}function R1(e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=e.indexOf(` `)===-1,i=e[0]===" "||e[0]===" ",o=e[e.length-1]==='"',s=e[e.length-1]==="\\",l=!n||o||s||r,d="";return l&&!(n&&i)&&(d+=` `+t),d+=t?e.replace(/\n/g,` `+t):e,l&&(d+=` `),'"""'+d.replace(/"""/g,'\\"""')+'"""'}});var Tg=G(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.isPunctuatorTokenKind=rz;Md.Lexer=void 0;var Va=lg(),xr=Xl(),dt=Zl(),ez=ec(),tz=function(){function e(r){var n=new xr.Token(dt.TokenKind.SOF,0,0,0,0,null);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){this.lastToken=this.token;var n=this.token=this.lookahead();return n},t.lookahead=function(){var n=this.token;if(n.kind!==dt.TokenKind.EOF)do{var i;n=(i=n.next)!==null&&i!==void 0?i:n.next=nz(this,n)}while(n.kind===dt.TokenKind.COMMENT);return n},e}();Md.Lexer=tz;function rz(e){return e===dt.TokenKind.BANG||e===dt.TokenKind.DOLLAR||e===dt.TokenKind.AMP||e===dt.TokenKind.PAREN_L||e===dt.TokenKind.PAREN_R||e===dt.TokenKind.SPREAD||e===dt.TokenKind.COLON||e===dt.TokenKind.EQUALS||e===dt.TokenKind.AT||e===dt.TokenKind.BRACKET_L||e===dt.TokenKind.BRACKET_R||e===dt.TokenKind.BRACE_L||e===dt.TokenKind.PIPE||e===dt.TokenKind.BRACE_R}function vs(e){return isNaN(e)?dt.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function nz(e,t){for(var r=e.source,n=r.body,i=n.length,o=t.end;o31||s===9));return new xr.Token(dt.TokenKind.COMMENT,t,l,r,n,i,o.slice(t+1,l))}function oz(e,t,r,n,i,o){var s=e.body,l=r,d=t,h=!1;if(l===45&&(l=s.charCodeAt(++d)),l===48){if(l=s.charCodeAt(++d),l>=48&&l<=57)throw(0,Va.syntaxError)(e,d,"Invalid number, unexpected digit after 0: ".concat(vs(l),"."))}else d=b_(e,d,l),l=s.charCodeAt(d);if(l===46&&(h=!0,l=s.charCodeAt(++d),d=b_(e,d,l),l=s.charCodeAt(d)),(l===69||l===101)&&(h=!0,l=s.charCodeAt(++d),(l===43||l===45)&&(l=s.charCodeAt(++d)),d=b_(e,d,l),l=s.charCodeAt(d)),l===46||fz(l))throw(0,Va.syntaxError)(e,d,"Invalid number, expected digit but got: ".concat(vs(l),"."));return new xr.Token(h?dt.TokenKind.FLOAT:dt.TokenKind.INT,t,d,n,i,o,s.slice(t,d))}function b_(e,t,r){var n=e.body,i=t,o=r;if(o>=48&&o<=57){do o=n.charCodeAt(++i);while(o>=48&&o<=57);return i}throw(0,Va.syntaxError)(e,i,"Invalid number, expected digit but got: ".concat(vs(o),"."))}function uz(e,t,r,n,i){for(var o=e.body,s=t+1,l=s,d=0,h="";s=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function cz(e,t,r,n,i){for(var o=e.body,s=o.length,l=t+1,d=0;l!==s&&!isNaN(d=o.charCodeAt(l))&&(d===95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122);)++l;return new xr.Token(dt.TokenKind.NAME,t,l,r,n,i,o.slice(t,l))}function fz(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}});var tc=G(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.parse=hz;gs.parseValue=vz;gs.parseType=gz;gs.Parser=void 0;var T_=lg(),$e=Jt(),dz=Xl(),De=Zl(),P1=mg(),pz=$l(),F1=Tg();function hz(e,t){var r=new _g(e,t);return r.parseDocument()}function vz(e,t){var r=new _g(e,t);r.expectToken(De.TokenKind.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(De.TokenKind.EOF),n}function gz(e,t){var r=new _g(e,t);r.expectToken(De.TokenKind.SOF);var n=r.parseTypeReference();return r.expectToken(De.TokenKind.EOF),n}var _g=function(){function e(r,n){var i=(0,P1.isSource)(r)?r:new P1.Source(r);this._lexer=new F1.Lexer(i),this._options=n}var t=e.prototype;return t.parseName=function(){var n=this.expectToken(De.TokenKind.NAME);return{kind:$e.Kind.NAME,value:n.value,loc:this.loc(n)}},t.parseDocument=function(){var n=this._lexer.token;return{kind:$e.Kind.DOCUMENT,definitions:this.many(De.TokenKind.SOF,this.parseDefinition,De.TokenKind.EOF),loc:this.loc(n)}},t.parseDefinition=function(){if(this.peek(De.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(De.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(De.TokenKind.BRACE_L))return{kind:$e.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var i=this.parseOperationType(),o;return this.peek(De.TokenKind.NAME)&&(o=this.parseName()),{kind:$e.Kind.OPERATION_DEFINITION,operation:i,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseOperationType=function(){var n=this.expectToken(De.TokenKind.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},t.parseVariableDefinitions=function(){return this.optionalMany(De.TokenKind.PAREN_L,this.parseVariableDefinition,De.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:$e.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(De.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(De.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},t.parseVariable=function(){var n=this._lexer.token;return this.expectToken(De.TokenKind.DOLLAR),{kind:$e.Kind.VARIABLE,name:this.parseName(),loc:this.loc(n)}},t.parseSelectionSet=function(){var n=this._lexer.token;return{kind:$e.Kind.SELECTION_SET,selections:this.many(De.TokenKind.BRACE_L,this.parseSelection,De.TokenKind.BRACE_R),loc:this.loc(n)}},t.parseSelection=function(){return this.peek(De.TokenKind.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var n=this._lexer.token,i=this.parseName(),o,s;return this.expectOptionalToken(De.TokenKind.COLON)?(o=i,s=this.parseName()):s=i,{kind:$e.Kind.FIELD,alias:o,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(De.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(n){var i=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(De.TokenKind.PAREN_L,i,De.TokenKind.PAREN_R)},t.parseArgument=function(){var n=this._lexer.token,i=this.parseName();return this.expectToken(De.TokenKind.COLON),{kind:$e.Kind.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(n)}},t.parseConstArgument=function(){var n=this._lexer.token;return{kind:$e.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(De.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},t.parseFragment=function(){var n=this._lexer.token;this.expectToken(De.TokenKind.SPREAD);var i=this.expectOptionalKeyword("on");return!i&&this.peek(De.TokenKind.NAME)?{kind:$e.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:$e.Kind.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseFragmentDefinition=function(){var n,i=this._lexer.token;return this.expectKeyword("fragment"),((n=this._options)===null||n===void 0?void 0:n.experimentalFragmentVariables)===!0?{kind:$e.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}:{kind:$e.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}},t.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(n){var i=this._lexer.token;switch(i.kind){case De.TokenKind.BRACKET_L:return this.parseList(n);case De.TokenKind.BRACE_L:return this.parseObject(n);case De.TokenKind.INT:return this._lexer.advance(),{kind:$e.Kind.INT,value:i.value,loc:this.loc(i)};case De.TokenKind.FLOAT:return this._lexer.advance(),{kind:$e.Kind.FLOAT,value:i.value,loc:this.loc(i)};case De.TokenKind.STRING:case De.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case De.TokenKind.NAME:switch(this._lexer.advance(),i.value){case"true":return{kind:$e.Kind.BOOLEAN,value:!0,loc:this.loc(i)};case"false":return{kind:$e.Kind.BOOLEAN,value:!1,loc:this.loc(i)};case"null":return{kind:$e.Kind.NULL,loc:this.loc(i)};default:return{kind:$e.Kind.ENUM,value:i.value,loc:this.loc(i)}}case De.TokenKind.DOLLAR:if(!n)return this.parseVariable();break}throw this.unexpected()},t.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:$e.Kind.STRING,value:n.value,block:n.kind===De.TokenKind.BLOCK_STRING,loc:this.loc(n)}},t.parseList=function(n){var i=this,o=this._lexer.token,s=function(){return i.parseValueLiteral(n)};return{kind:$e.Kind.LIST,values:this.any(De.TokenKind.BRACKET_L,s,De.TokenKind.BRACKET_R),loc:this.loc(o)}},t.parseObject=function(n){var i=this,o=this._lexer.token,s=function(){return i.parseObjectField(n)};return{kind:$e.Kind.OBJECT,fields:this.any(De.TokenKind.BRACE_L,s,De.TokenKind.BRACE_R),loc:this.loc(o)}},t.parseObjectField=function(n){var i=this._lexer.token,o=this.parseName();return this.expectToken(De.TokenKind.COLON),{kind:$e.Kind.OBJECT_FIELD,name:o,value:this.parseValueLiteral(n),loc:this.loc(i)}},t.parseDirectives=function(n){for(var i=[];this.peek(De.TokenKind.AT);)i.push(this.parseDirective(n));return i},t.parseDirective=function(n){var i=this._lexer.token;return this.expectToken(De.TokenKind.AT),{kind:$e.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(i)}},t.parseTypeReference=function(){var n=this._lexer.token,i;return this.expectOptionalToken(De.TokenKind.BRACKET_L)?(i=this.parseTypeReference(),this.expectToken(De.TokenKind.BRACKET_R),i={kind:$e.Kind.LIST_TYPE,type:i,loc:this.loc(n)}):i=this.parseNamedType(),this.expectOptionalToken(De.TokenKind.BANG)?{kind:$e.Kind.NON_NULL_TYPE,type:i,loc:this.loc(n)}:i},t.parseNamedType=function(){var n=this._lexer.token;return{kind:$e.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},t.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===De.TokenKind.NAME)switch(n.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()}throw this.unexpected(n)},t.peekDescription=function(){return this.peek(De.TokenKind.STRING)||this.peek(De.TokenKind.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");var o=this.parseDirectives(!0),s=this.many(De.TokenKind.BRACE_L,this.parseOperationTypeDefinition,De.TokenKind.BRACE_R);return{kind:$e.Kind.SCHEMA_DEFINITION,description:i,directives:o,operationTypes:s,loc:this.loc(n)}},t.parseOperationTypeDefinition=function(){var n=this._lexer.token,i=this.parseOperationType();this.expectToken(De.TokenKind.COLON);var o=this.parseNamedType();return{kind:$e.Kind.OPERATION_TYPE_DEFINITION,operation:i,type:o,loc:this.loc(n)}},t.parseScalarTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");var o=this.parseName(),s=this.parseDirectives(!0);return{kind:$e.Kind.SCALAR_TYPE_DEFINITION,description:i,name:o,directives:s,loc:this.loc(n)}},t.parseObjectTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");var o=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:$e.Kind.OBJECT_TYPE_DEFINITION,description:i,name:o,interfaces:s,directives:l,fields:d,loc:this.loc(n)}},t.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLImplementsInterfaces)===!0){var i=[];this.expectOptionalToken(De.TokenKind.AMP);do i.push(this.parseNamedType());while(this.expectOptionalToken(De.TokenKind.AMP)||this.peek(De.TokenKind.NAME));return i}return this.delimitedMany(De.TokenKind.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var n;return((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLEmptyFields)===!0&&this.peek(De.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===De.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(De.TokenKind.BRACE_L,this.parseFieldDefinition,De.TokenKind.BRACE_R)},t.parseFieldDefinition=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName(),s=this.parseArgumentDefs();this.expectToken(De.TokenKind.COLON);var l=this.parseTypeReference(),d=this.parseDirectives(!0);return{kind:$e.Kind.FIELD_DEFINITION,description:i,name:o,arguments:s,type:l,directives:d,loc:this.loc(n)}},t.parseArgumentDefs=function(){return this.optionalMany(De.TokenKind.PAREN_L,this.parseInputValueDef,De.TokenKind.PAREN_R)},t.parseInputValueDef=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName();this.expectToken(De.TokenKind.COLON);var s=this.parseTypeReference(),l;this.expectOptionalToken(De.TokenKind.EQUALS)&&(l=this.parseValueLiteral(!0));var d=this.parseDirectives(!0);return{kind:$e.Kind.INPUT_VALUE_DEFINITION,description:i,name:o,type:s,defaultValue:l,directives:d,loc:this.loc(n)}},t.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");var o=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:$e.Kind.INTERFACE_TYPE_DEFINITION,description:i,name:o,interfaces:s,directives:l,fields:d,loc:this.loc(n)}},t.parseUnionTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseUnionMemberTypes();return{kind:$e.Kind.UNION_TYPE_DEFINITION,description:i,name:o,directives:s,types:l,loc:this.loc(n)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(De.TokenKind.EQUALS)?this.delimitedMany(De.TokenKind.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseEnumValuesDefinition();return{kind:$e.Kind.ENUM_TYPE_DEFINITION,description:i,name:o,directives:s,values:l,loc:this.loc(n)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(De.TokenKind.BRACE_L,this.parseEnumValueDefinition,De.TokenKind.BRACE_R)},t.parseEnumValueDefinition=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName(),s=this.parseDirectives(!0);return{kind:$e.Kind.ENUM_VALUE_DEFINITION,description:i,name:o,directives:s,loc:this.loc(n)}},t.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseInputFieldsDefinition();return{kind:$e.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:o,directives:s,fields:l,loc:this.loc(n)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(De.TokenKind.BRACE_L,this.parseInputValueDef,De.TokenKind.BRACE_R)},t.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===De.TokenKind.NAME)switch(n.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(n)},t.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var i=this.parseDirectives(!0),o=this.optionalMany(De.TokenKind.BRACE_L,this.parseOperationTypeDefinition,De.TokenKind.BRACE_R);if(i.length===0&&o.length===0)throw this.unexpected();return{kind:$e.Kind.SCHEMA_EXTENSION,directives:i,operationTypes:o,loc:this.loc(n)}},t.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var i=this.parseName(),o=this.parseDirectives(!0);if(o.length===0)throw this.unexpected();return{kind:$e.Kind.SCALAR_TYPE_EXTENSION,name:i,directives:o,loc:this.loc(n)}},t.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),l=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&l.length===0)throw this.unexpected();return{kind:$e.Kind.OBJECT_TYPE_EXTENSION,name:i,interfaces:o,directives:s,fields:l,loc:this.loc(n)}},t.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),l=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&l.length===0)throw this.unexpected();return{kind:$e.Kind.INTERFACE_TYPE_EXTENSION,name:i,interfaces:o,directives:s,fields:l,loc:this.loc(n)}},t.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseUnionMemberTypes();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:$e.Kind.UNION_TYPE_EXTENSION,name:i,directives:o,types:s,loc:this.loc(n)}},t.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:$e.Kind.ENUM_TYPE_EXTENSION,name:i,directives:o,values:s,loc:this.loc(n)}},t.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:$e.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:o,fields:s,loc:this.loc(n)}},t.parseDirectiveDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(De.TokenKind.AT);var o=this.parseName(),s=this.parseArgumentDefs(),l=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var d=this.parseDirectiveLocations();return{kind:$e.Kind.DIRECTIVE_DEFINITION,description:i,name:o,arguments:s,repeatable:l,locations:d,loc:this.loc(n)}},t.parseDirectiveLocations=function(){return this.delimitedMany(De.TokenKind.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var n=this._lexer.token,i=this.parseName();if(pz.DirectiveLocation[i.value]!==void 0)return i;throw this.unexpected(n)},t.loc=function(n){var i;if(((i=this._options)===null||i===void 0?void 0:i.noLocation)!==!0)return new dz.Location(n,this._lexer.lastToken,this._lexer.source)},t.peek=function(n){return this._lexer.token.kind===n},t.expectToken=function(n){var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i;throw(0,T_.syntaxError)(this._lexer.source,i.start,"Expected ".concat(M1(n),", found ").concat(__(i),"."))},t.expectOptionalToken=function(n){var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i},t.expectKeyword=function(n){var i=this._lexer.token;if(i.kind===De.TokenKind.NAME&&i.value===n)this._lexer.advance();else throw(0,T_.syntaxError)(this._lexer.source,i.start,'Expected "'.concat(n,'", found ').concat(__(i),"."))},t.expectOptionalKeyword=function(n){var i=this._lexer.token;return i.kind===De.TokenKind.NAME&&i.value===n?(this._lexer.advance(),!0):!1},t.unexpected=function(n){var i=n!=null?n:this._lexer.token;return(0,T_.syntaxError)(this._lexer.source,i.start,"Unexpected ".concat(__(i),"."))},t.any=function(n,i,o){this.expectToken(n);for(var s=[];!this.expectOptionalToken(o);)s.push(i.call(this));return s},t.optionalMany=function(n,i,o){if(this.expectOptionalToken(n)){var s=[];do s.push(i.call(this));while(!this.expectOptionalToken(o));return s}return[]},t.many=function(n,i,o){this.expectToken(n);var s=[];do s.push(i.call(this));while(!this.expectOptionalToken(o));return s},t.delimitedMany=function(n,i){this.expectOptionalToken(n);var o=[];do o.push(i.call(this));while(this.expectOptionalToken(n));return o},e}();gs.Parser=_g;function __(e){var t=e.value;return M1(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function M1(e){return(0,F1.isPunctuatorTokenKind)(e)?'"'.concat(e,'"'):e}});var hu=G(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.visit=bz;_o.visitInParallel=Tz;_o.getVisitFn=Eg;_o.BREAK=_o.QueryDocumentKeys=void 0;var mz=yz(jt()),q1=Xl();function yz(e){return e&&e.__esModule?e:{default:e}}var V1={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"]};_o.QueryDocumentKeys=V1;var rc=Object.freeze({});_o.BREAK=rc;function bz(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V1,n=void 0,i=Array.isArray(e),o=[e],s=-1,l=[],d=void 0,h=void 0,v=void 0,y=[],b=[],D=e;do{s++;var _=s===o.length,k=_&&l.length!==0;if(_){if(h=b.length===0?void 0:y[y.length-1],d=v,v=b.pop(),k){if(i)d=d.slice();else{for(var T={},S=0,m=Object.keys(d);S{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.default=void 0;var _z=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var r=0;r{"use strict";Object.defineProperty(kg,"__esModule",{value:!0});kg.default=void 0;var Sz=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},kz=Sz;kg.default=kz});var qd=G(E_=>{"use strict";Object.defineProperty(E_,"__esModule",{value:!0});E_.locatedError=Dz;var Oz=Nz(jt()),wz=Je();function Nz(e){return e&&e.__esModule?e:{default:e}}function Dz(e,t,r){var n,i=e instanceof Error?e:new Error("Unexpected error value: "+(0,Oz.default)(e));return Array.isArray(i.path)?i:new wz.GraphQLError(i.message,(n=i.nodes)!==null&&n!==void 0?n:t,i.source,i.positions,r,i)}});var S_=G(Og=>{"use strict";Object.defineProperty(Og,"__esModule",{value:!0});Og.assertValidName=Iz;Og.isValidNameError=G1;var xz=Cz(Hi()),U1=Je();function Cz(e){return e&&e.__esModule?e:{default:e}}var Lz=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function Iz(e){var t=G1(e);if(t)throw t;return e}function G1(e){if(typeof e=="string"||(0,xz.default)(0,"Expected name to be a string."),e.length>1&&e[0]==="_"&&e[1]==="_")return new U1.GraphQLError('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!Lz.test(e))return new U1.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}});var ic=G(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});wg.default=void 0;var Az=Object.entries||function(e){return Object.keys(e).map(function(t){return[t,e[t]]})},Rz=Az;wg.default=Rz});var vu=G(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});k_.default=jz;function jz(e,t){return e.reduce(function(r,n){return r[t(n)]=n,r},Object.create(null))}});var w_=G(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});O_.default=Mz;var Pz=Fz(ic());function Fz(e){return e&&e.__esModule?e:{default:e}}function Mz(e,t){for(var r=Object.create(null),n=0,i=(0,Pz.default)(e);n{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});N_.default=Uz;var qz=Vz(ic());function Vz(e){return e&&e.__esModule?e:{default:e}}function Uz(e){if(Object.getPrototypeOf(e)===null)return e;for(var t=Object.create(null),r=0,n=(0,qz.default)(e);r{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});D_.default=Gz;function Gz(e,t,r){return e.reduce(function(n,i){return n[t(i)]=r(i),n},Object.create(null))}});var gu=G(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0});x_.default=Bz;var Qz=5;function Bz(e,t){var r=typeof e=="string"?[e,t]:[void 0,e],n=r[0],i=r[1],o=" Did you mean ";n&&(o+=n+" ");var s=i.map(function(h){return'"'.concat(h,'"')});switch(s.length){case 0:return"";case 1:return o+s[0]+"?";case 2:return o+s[0]+" or "+s[1]+"?"}var l=s.slice(0,Qz),d=l.pop();return o+l.join(", ")+", or "+d+"?"}});var Q1=G(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.default=Kz;function Kz(e){return e}});var Ud=G(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.default=Hz;function Hz(e,t){for(var r=0,n=0;r0);var l=0;do++n,l=l*10+o-L_,o=t.charCodeAt(n);while(Dg(o)&&l>0);if(sl)return 1}else{if(io)return 1;++r,++n}}return e.length-t.length}var L_=48,zz=57;function Dg(e){return!isNaN(e)&&L_<=e&&e<=zz}});var mu=G(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0});A_.default=Jz;var Wz=Yz(Ud());function Yz(e){return e&&e.__esModule?e:{default:e}}function Jz(e,t){for(var r=Object.create(null),n=new Xz(e),i=Math.floor(e.length*.4)+1,o=0;oi)){for(var y=this._rows,b=0;b<=v;b++)y[0][b]=b;for(var D=1;D<=h;D++){for(var _=y[(D-1)%3],k=y[D%3],T=k[0]=D,S=1;S<=v;S++){var m=s[D-1]===l[S-1]?0:1,w=Math.min(_[S]+1,k[S-1]+1,_[S-1]+m);if(D>1&&S>1&&s[D-1]===l[S-2]&&s[D-2]===l[S-1]){var x=y[(D-2)%3][S-2];w=Math.min(w,x+1)}wi)return}var L=y[h%3][v];return L<=i?L:void 0}},e}();function B1(e){for(var t=e.length,r=new Array(t),n=0;n{"use strict";Object.defineProperty(R_,"__esModule",{value:!0});R_.print=eW;var Zz=hu(),$z=ec();function eW(e){return(0,Zz.visit)(e,{leave:rW})}var tW=80,rW={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return je(t.definitions,` `)+` `},OperationDefinition:function(t){var r=t.operation,n=t.name,i=yr("(",je(t.variableDefinitions,", "),")"),o=je(t.directives," "),s=t.selectionSet;return!n&&!o&&!i&&r==="query"?s:je([r,je([n,i]),o,s]," ")},VariableDefinition:function(t){var r=t.variable,n=t.type,i=t.defaultValue,o=t.directives;return r+": "+n+yr(" = ",i)+yr(" ",je(o," "))},SelectionSet:function(t){var r=t.selections;return ya(r)},Field:function(t){var r=t.alias,n=t.name,i=t.arguments,o=t.directives,s=t.selectionSet,l=yr("",r,": ")+n,d=l+yr("(",je(i,", "),")");return d.length>tW&&(d=l+yr(`( `,xg(je(i,` `)),` )`)),je([d,je(o," "),s]," ")},Argument:function(t){var r=t.name,n=t.value;return r+": "+n},FragmentSpread:function(t){var r=t.name,n=t.directives;return"..."+r+yr(" ",je(n," "))},InlineFragment:function(t){var r=t.typeCondition,n=t.directives,i=t.selectionSet;return je(["...",yr("on ",r),je(n," "),i]," ")},FragmentDefinition:function(t){var r=t.name,n=t.typeCondition,i=t.variableDefinitions,o=t.directives,s=t.selectionSet;return"fragment ".concat(r).concat(yr("(",je(i,", "),")")," ")+"on ".concat(n," ").concat(yr("",je(o," ")," "))+s},IntValue:function(t){var r=t.value;return r},FloatValue:function(t){var r=t.value;return r},StringValue:function(t,r){var n=t.value,i=t.block;return i?(0,$z.printBlockString)(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function(t){var r=t.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){var r=t.value;return r},ListValue:function(t){var r=t.values;return"["+je(r,", ")+"]"},ObjectValue:function(t){var r=t.fields;return"{"+je(r,", ")+"}"},ObjectField:function(t){var r=t.name,n=t.value;return r+": "+n},Directive:function(t){var r=t.name,n=t.arguments;return"@"+r+yr("(",je(n,", "),")")},NamedType:function(t){var r=t.name;return r},ListType:function(t){var r=t.type;return"["+r+"]"},NonNullType:function(t){var r=t.type;return r+"!"},SchemaDefinition:ma(function(e){var t=e.directives,r=e.operationTypes;return je(["schema",je(t," "),ya(r)]," ")}),OperationTypeDefinition:function(t){var r=t.operation,n=t.type;return r+": "+n},ScalarTypeDefinition:ma(function(e){var t=e.name,r=e.directives;return je(["scalar",t,je(r," ")]," ")}),ObjectTypeDefinition:ma(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return je(["type",t,yr("implements ",je(r," & ")),je(n," "),ya(i)]," ")}),FieldDefinition:ma(function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(K1(r)?yr(`( `,xg(je(r,` `)),` )`):yr("(",je(r,", "),")"))+": "+n+yr(" ",je(i," "))}),InputValueDefinition:ma(function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return je([t+": "+r,yr("= ",n),je(i," ")]," ")}),InterfaceTypeDefinition:ma(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return je(["interface",t,yr("implements ",je(r," & ")),je(n," "),ya(i)]," ")}),UnionTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.types;return je(["union",t,je(r," "),n&&n.length!==0?"= "+je(n," | "):""]," ")}),EnumTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.values;return je(["enum",t,je(r," "),ya(n)]," ")}),EnumValueDefinition:ma(function(e){var t=e.name,r=e.directives;return je([t,je(r," ")]," ")}),InputObjectTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.fields;return je(["input",t,je(r," "),ya(n)]," ")}),DirectiveDefinition:ma(function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(K1(r)?yr(`( `,xg(je(r,` `)),` )`):yr("(",je(r,", "),")"))+(n?" repeatable":"")+" on "+je(i," | ")}),SchemaExtension:function(t){var r=t.directives,n=t.operationTypes;return je(["extend schema",je(r," "),ya(n)]," ")},ScalarTypeExtension:function(t){var r=t.name,n=t.directives;return je(["extend scalar",r,je(n," ")]," ")},ObjectTypeExtension:function(t){var r=t.name,n=t.interfaces,i=t.directives,o=t.fields;return je(["extend type",r,yr("implements ",je(n," & ")),je(i," "),ya(o)]," ")},InterfaceTypeExtension:function(t){var r=t.name,n=t.interfaces,i=t.directives,o=t.fields;return je(["extend interface",r,yr("implements ",je(n," & ")),je(i," "),ya(o)]," ")},UnionTypeExtension:function(t){var r=t.name,n=t.directives,i=t.types;return je(["extend union",r,je(n," "),i&&i.length!==0?"= "+je(i," | "):""]," ")},EnumTypeExtension:function(t){var r=t.name,n=t.directives,i=t.values;return je(["extend enum",r,je(n," "),ya(i)]," ")},InputObjectTypeExtension:function(t){var r=t.name,n=t.directives,i=t.fields;return je(["extend input",r,je(n," "),ya(i)]," ")}};function ma(e){return function(t){return je([t.description,e(t)],` `)}}function je(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(t=e==null?void 0:e.filter(function(n){return n}).join(r))!==null&&t!==void 0?t:""}function ya(e){return yr(`{ `,xg(je(e,` `)),` }`)}function yr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t!=null&&t!==""?e+t+r:""}function xg(e){return yr(" ",e.replace(/\n/g,` `))}function nW(e){return e.indexOf(` `)!==-1}function K1(e){return e!=null&&e.some(nW)}});var M_=G(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.valueFromASTUntyped=P_;var iW=j_(jt()),aW=j_(_n()),oW=j_(Vd()),Eo=Jt();function j_(e){return e&&e.__esModule?e:{default:e}}function P_(e,t){switch(e.kind){case Eo.Kind.NULL:return null;case Eo.Kind.INT:return parseInt(e.value,10);case Eo.Kind.FLOAT:return parseFloat(e.value);case Eo.Kind.STRING:case Eo.Kind.ENUM:case Eo.Kind.BOOLEAN:return e.value;case Eo.Kind.LIST:return e.values.map(function(r){return P_(r,t)});case Eo.Kind.OBJECT:return(0,oW.default)(e.fields,function(r){return r.name.value},function(r){return P_(r.value,t)});case Eo.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}(0,aW.default)(0,"Unexpected value node: "+(0,iW.default)(e))}});var bt=G(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.isType=q_;Be.assertType=X1;Be.isScalarType=ms;Be.assertScalarType=pW;Be.isObjectType=oc;Be.assertObjectType=hW;Be.isInterfaceType=ys;Be.assertInterfaceType=vW;Be.isUnionType=bs;Be.assertUnionType=gW;Be.isEnumType=Ts;Be.assertEnumType=mW;Be.isInputObjectType=Qd;Be.assertInputObjectType=yW;Be.isListType=Lg;Be.assertListType=bW;Be.isNonNullType=_u;Be.assertNonNullType=TW;Be.isInputType=V_;Be.assertInputType=_W;Be.isOutputType=U_;Be.assertOutputType=EW;Be.isLeafType=Z1;Be.assertLeafType=SW;Be.isCompositeType=$1;Be.assertCompositeType=kW;Be.isAbstractType=eI;Be.assertAbstractType=OW;Be.GraphQLList=Eu;Be.GraphQLNonNull=Su;Be.isWrappingType=Bd;Be.assertWrappingType=wW;Be.isNullableType=tI;Be.assertNullableType=rI;Be.getNullableType=NW;Be.isNamedType=nI;Be.assertNamedType=DW;Be.getNamedType=xW;Be.argsToArgsConfig=uI;Be.isRequiredArgument=CW;Be.isRequiredInputField=RW;Be.GraphQLInputObjectType=Be.GraphQLEnumType=Be.GraphQLUnionType=Be.GraphQLInterfaceType=Be.GraphQLObjectType=Be.GraphQLScalarType=void 0;var H1=Di(ic()),yu=qa(),ur=Di(jt()),uW=Di(vu()),Cg=Di(w_()),Ua=Di(Ng()),fr=Di(Hi()),z1=Di(Vd()),bu=Di(jd()),sW=Di(gu()),lW=Di(Ma()),W1=Di(Q1()),Tu=Di(dg()),cW=Di(mu()),Gd=Je(),fW=Jt(),Y1=hi(),dW=M_();function Di(e){return e&&e.__esModule?e:{default:e}}function J1(e,t){for(var r=0;r0?e:void 0}var G_=function(){function e(r){var n,i,o,s=(n=r.parseValue)!==null&&n!==void 0?n:W1.default;this.name=r.name,this.description=r.description,this.specifiedByUrl=r.specifiedByUrl,this.serialize=(i=r.serialize)!==null&&i!==void 0?i:W1.default,this.parseValue=s,this.parseLiteral=(o=r.parseLiteral)!==null&&o!==void 0?o:function(l,d){return s((0,dW.valueFromASTUntyped)(l,d))},this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),typeof r.name=="string"||(0,fr.default)(0,"Must provide name."),r.specifiedByUrl==null||typeof r.specifiedByUrl=="string"||(0,fr.default)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,ur.default)(r.specifiedByUrl),".")),r.serialize==null||typeof r.serialize=="function"||(0,fr.default)(0,"".concat(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.')),r.parseLiteral&&(typeof r.parseValue=="function"&&typeof r.parseLiteral=="function"||(0,fr.default)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var n;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:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLScalarType"}}]),e}();Be.GraphQLScalarType=G_;(0,Tu.default)(G_);var Q_=function(){function e(r){this.name=r.name,this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),this._fields=aI.bind(void 0,r),this._interfaces=iI.bind(void 0,r),typeof r.name=="string"||(0,fr.default)(0,"Must provide name."),r.isTypeOf==null||typeof r.isTypeOf=="function"||(0,fr.default)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,ur.default)(r.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:oI(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLObjectType"}}]),e}();Be.GraphQLObjectType=Q_;(0,Tu.default)(Q_);function iI(e){var t,r=(t=Ig(e.interfaces))!==null&&t!==void 0?t:[];return Array.isArray(r)||(0,fr.default)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),r}function aI(e){var t=Ig(e.fields);return sc(t)||(0,fr.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,Cg.default)(t,function(r,n){var i;sc(r)||(0,fr.default)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in r)||(0,fr.default)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),r.resolve==null||typeof r.resolve=="function"||(0,fr.default)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,ur.default)(r.resolve),"."));var o=(i=r.args)!==null&&i!==void 0?i:{};sc(o)||(0,fr.default)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var s=(0,H1.default)(o).map(function(l){var d=l[0],h=l[1];return{name:d,description:h.description,type:h.type,defaultValue:h.defaultValue,deprecationReason:h.deprecationReason,extensions:h.extensions&&(0,Ua.default)(h.extensions),astNode:h.astNode}});return{name:n,description:r.description,type:r.type,args:s,resolve:r.resolve,subscribe:r.subscribe,isDeprecated:r.deprecationReason!=null,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,Ua.default)(r.extensions),astNode:r.astNode}})}function sc(e){return(0,lW.default)(e)&&!Array.isArray(e)}function oI(e){return(0,Cg.default)(e,function(t){return{description:t.description,type:t.type,args:uI(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}})}function uI(e){return(0,z1.default)(e,function(t){return t.name},function(t){return{description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}})}function CW(e){return _u(e.type)&&e.defaultValue===void 0}var B_=function(){function e(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),this._fields=aI.bind(void 0,r),this._interfaces=iI.bind(void 0,r),typeof r.name=="string"||(0,fr.default)(0,"Must provide name."),r.resolveType==null||typeof r.resolveType=="function"||(0,fr.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,ur.default)(r.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var n;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:oI(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInterfaceType"}}]),e}();Be.GraphQLInterfaceType=B_;(0,Tu.default)(B_);var K_=function(){function e(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),this._types=LW.bind(void 0,r),typeof r.name=="string"||(0,fr.default)(0,"Must provide name."),r.resolveType==null||typeof r.resolveType=="function"||(0,fr.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,ur.default)(r.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},t.toConfig=function(){var n;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLUnionType"}}]),e}();Be.GraphQLUnionType=K_;(0,Tu.default)(K_);function LW(e){var t=Ig(e.types);return Array.isArray(t)||(0,fr.default)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}var H_=function(){function e(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),this._values=IW(this.name,r.values),this._valueLookup=new Map(this._values.map(function(n){return[n.value,n]})),this._nameLookup=(0,uW.default)(this._values,function(n){return n.name}),typeof r.name=="string"||(0,fr.default)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(n){return this._nameLookup[n]},t.serialize=function(n){var i=this._valueLookup.get(n);if(i===void 0)throw new Gd.GraphQLError('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,ur.default)(n)));return i.name},t.parseValue=function(n){if(typeof n!="string"){var i=(0,ur.default)(n);throw new Gd.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+Ag(this,i))}var o=this.getValue(n);if(o==null)throw new Gd.GraphQLError('Value "'.concat(n,'" does not exist in "').concat(this.name,'" enum.')+Ag(this,n));return o.value},t.parseLiteral=function(n,i){if(n.kind!==fW.Kind.ENUM){var o=(0,Y1.print)(n);throw new Gd.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(o,".")+Ag(this,o),n)}var s=this.getValue(n.value);if(s==null){var l=(0,Y1.print)(n);throw new Gd.GraphQLError('Value "'.concat(l,'" does not exist in "').concat(this.name,'" enum.')+Ag(this,l),n)}return s.value},t.toConfig=function(){var n,i=(0,z1.default)(this.getValues(),function(o){return o.name},function(o){return{description:o.description,value:o.value,deprecationReason:o.deprecationReason,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLEnumType"}}]),e}();Be.GraphQLEnumType=H_;(0,Tu.default)(H_);function Ag(e,t){var r=e.getValues().map(function(i){return i.name}),n=(0,cW.default)(t,r);return(0,sW.default)("the enum value",n)}function IW(e,t){return sc(t)||(0,fr.default)(0,"".concat(e," values must be an object with value names as keys.")),(0,H1.default)(t).map(function(r){var n=r[0],i=r[1];return sc(i)||(0,fr.default)(0,"".concat(e,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,ur.default)(i),".")),!("isDeprecated"in i)||(0,fr.default)(0,"".concat(e,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:i.description,value:i.value!==void 0?i.value:n,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&(0,Ua.default)(i.extensions),astNode:i.astNode}})}var z_=function(){function e(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),this._fields=AW.bind(void 0,r),typeof r.name=="string"||(0,fr.default)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var n,i=(0,Cg.default)(this.getFields(),function(o){return{description:o.description,type:o.type,defaultValue:o.defaultValue,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInputObjectType"}}]),e}();Be.GraphQLInputObjectType=z_;(0,Tu.default)(z_);function AW(e){var t=Ig(e.fields);return sc(t)||(0,fr.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,Cg.default)(t,function(r,n){return!("resolve"in r)||(0,fr.default)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,Ua.default)(r.extensions),astNode:r.astNode}})}function RW(e){return _u(e.type)&&e.defaultValue===void 0}});var Hd=G(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.isEqualType=W_;Kd.isTypeSubTypeOf=Rg;Kd.doTypesOverlap=jW;var Mn=bt();function W_(e,t){return e===t?!0:(0,Mn.isNonNullType)(e)&&(0,Mn.isNonNullType)(t)||(0,Mn.isListType)(e)&&(0,Mn.isListType)(t)?W_(e.ofType,t.ofType):!1}function Rg(e,t,r){return t===r?!0:(0,Mn.isNonNullType)(r)?(0,Mn.isNonNullType)(t)?Rg(e,t.ofType,r.ofType):!1:(0,Mn.isNonNullType)(t)?Rg(e,t.ofType,r):(0,Mn.isListType)(r)?(0,Mn.isListType)(t)?Rg(e,t.ofType,r.ofType):!1:(0,Mn.isListType)(t)?!1:(0,Mn.isAbstractType)(r)&&((0,Mn.isInterfaceType)(t)||(0,Mn.isObjectType)(t))&&e.isSubType(r,t)}function jW(e,t,r){return t===r?!0:(0,Mn.isAbstractType)(t)?(0,Mn.isAbstractType)(r)?e.getPossibleTypes(t).some(function(n){return e.isSubType(r,n)}):e.isSubType(t,r):(0,Mn.isAbstractType)(r)?e.isSubType(r,t):!1}});var Y_=G(jg=>{"use strict";Object.defineProperty(jg,"__esModule",{value:!0});jg.default=void 0;var PW=qa(),FW=Array.from||function(e,t,r){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n=e[PW.SYMBOL_ITERATOR];if(typeof n=="function"){for(var i=n.call(e),o=[],s,l=0;!(s=i.next()).done;++l)if(o.push(t.call(r,s.value,l)),l>9999999)throw new TypeError("Near-infinite iteration.");return o}var d=e.length;if(typeof d=="number"&&d>=0&&d%1==0){for(var h=[],v=0;v{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.default=void 0;var qW=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},VW=qW;Pg.default=VW});var Mg=G(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.default=GW;var UW=qa();function Fg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fg=function(r){return typeof r}:Fg=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fg(e)}function GW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(v){return v};if(e==null||Fg(e)!=="object")return null;if(Array.isArray(e))return e.map(t);var r=e[UW.SYMBOL_ITERATOR];if(typeof r=="function"){for(var n=r.call(e),i=[],o,s=0;!(o=n.next()).done;++s)i.push(t(o.value,s));return i}var l=e.length;if(typeof l=="number"&&l>=0&&l%1==0){for(var d=[],h=0;h{"use strict";Object.defineProperty(qg,"__esModule",{value:!0});qg.default=void 0;var QW=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},BW=QW;qg.default=BW});var Ga=G(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.isSpecifiedScalarType=t4;ti.specifiedScalarTypes=ti.GraphQLID=ti.GraphQLBoolean=ti.GraphQLString=ti.GraphQLFloat=ti.GraphQLInt=void 0;var Vg=Gg(J_()),Ug=Gg(sI()),ba=Gg(jt()),lI=Gg(Ma()),_s=Jt(),zd=hi(),cn=Je(),Wd=bt();function Gg(e){return e&&e.__esModule?e:{default:e}}var Z_=2147483647,$_=-2147483648;function KW(e){var t=Yd(e);if(typeof t=="boolean")return t?1:0;var r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),!(0,Ug.default)(r))throw new cn.GraphQLError("Int cannot represent non-integer value: ".concat((0,ba.default)(t)));if(r>Z_||r<$_)throw new cn.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,ba.default)(t));return r}function HW(e){if(!(0,Ug.default)(e))throw new cn.GraphQLError("Int cannot represent non-integer value: ".concat((0,ba.default)(e)));if(e>Z_||e<$_)throw new cn.GraphQLError("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var cI=new Wd.GraphQLScalarType({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:KW,parseValue:HW,parseLiteral:function(t){if(t.kind!==_s.Kind.INT)throw new cn.GraphQLError("Int cannot represent non-integer value: ".concat((0,zd.print)(t)),t);var r=parseInt(t.value,10);if(r>Z_||r<$_)throw new cn.GraphQLError("Int cannot represent non 32-bit signed integer value: ".concat(t.value),t);return r}});ti.GraphQLInt=cI;function zW(e){var t=Yd(e);if(typeof t=="boolean")return t?1:0;var r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),!(0,Vg.default)(r))throw new cn.GraphQLError("Float cannot represent non numeric value: ".concat((0,ba.default)(t)));return r}function WW(e){if(!(0,Vg.default)(e))throw new cn.GraphQLError("Float cannot represent non numeric value: ".concat((0,ba.default)(e)));return e}var fI=new Wd.GraphQLScalarType({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:zW,parseValue:WW,parseLiteral:function(t){if(t.kind!==_s.Kind.FLOAT&&t.kind!==_s.Kind.INT)throw new cn.GraphQLError("Float cannot represent non numeric value: ".concat((0,zd.print)(t)),t);return parseFloat(t.value)}});ti.GraphQLFloat=fI;function Yd(e){if((0,lI.default)(e)){if(typeof e.valueOf=="function"){var t=e.valueOf();if(!(0,lI.default)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function YW(e){var t=Yd(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if((0,Vg.default)(t))return t.toString();throw new cn.GraphQLError("String cannot represent value: ".concat((0,ba.default)(e)))}function JW(e){if(typeof e!="string")throw new cn.GraphQLError("String cannot represent a non string value: ".concat((0,ba.default)(e)));return e}var dI=new Wd.GraphQLScalarType({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:YW,parseValue:JW,parseLiteral:function(t){if(t.kind!==_s.Kind.STRING)throw new cn.GraphQLError("String cannot represent a non string value: ".concat((0,zd.print)(t)),t);return t.value}});ti.GraphQLString=dI;function XW(e){var t=Yd(e);if(typeof t=="boolean")return t;if((0,Vg.default)(t))return t!==0;throw new cn.GraphQLError("Boolean cannot represent a non boolean value: ".concat((0,ba.default)(t)))}function ZW(e){if(typeof e!="boolean")throw new cn.GraphQLError("Boolean cannot represent a non boolean value: ".concat((0,ba.default)(e)));return e}var pI=new Wd.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:XW,parseValue:ZW,parseLiteral:function(t){if(t.kind!==_s.Kind.BOOLEAN)throw new cn.GraphQLError("Boolean cannot represent a non boolean value: ".concat((0,zd.print)(t)),t);return t.value}});ti.GraphQLBoolean=pI;function $W(e){var t=Yd(e);if(typeof t=="string")return t;if((0,Ug.default)(t))return String(t);throw new cn.GraphQLError("ID cannot represent value: ".concat((0,ba.default)(e)))}function e4(e){if(typeof e=="string")return e;if((0,Ug.default)(e))return e.toString();throw new cn.GraphQLError("ID cannot represent value: ".concat((0,ba.default)(e)))}var hI=new Wd.GraphQLScalarType({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:$W,parseValue:e4,parseLiteral:function(t){if(t.kind!==_s.Kind.STRING&&t.kind!==_s.Kind.INT)throw new cn.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,zd.print)(t),t);return t.value}});ti.GraphQLID=hI;var vI=Object.freeze([dI,cI,fI,pI,hI]);ti.specifiedScalarTypes=vI;function t4(e){return vI.some(function(t){var r=t.name;return e.name===r})}});var Zd=G(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});eE.astFromValue=Xd;var r4=lc(J_()),n4=lc(Ni()),gI=lc(jt()),i4=lc(_n()),a4=lc(Ma()),o4=lc(Mg()),zi=Jt(),u4=Ga(),Jd=bt();function lc(e){return e&&e.__esModule?e:{default:e}}function Xd(e,t){if((0,Jd.isNonNullType)(t)){var r=Xd(e,t.ofType);return(r==null?void 0:r.kind)===zi.Kind.NULL?null:r}if(e===null)return{kind:zi.Kind.NULL};if(e===void 0)return null;if((0,Jd.isListType)(t)){var n=t.ofType,i=(0,o4.default)(e);if(i!=null){for(var o=[],s=0;s{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.isIntrospectionType=v4;Gt.introspectionTypes=Gt.TypeNameMetaFieldDef=Gt.TypeMetaFieldDef=Gt.SchemaMetaFieldDef=Gt.__TypeKind=Gt.TypeKind=Gt.__EnumValue=Gt.__InputValue=Gt.__Field=Gt.__Type=Gt.__DirectiveLocation=Gt.__Directive=Gt.__Schema=void 0;var tE=rE(Ni()),s4=rE(jt()),l4=rE(_n()),c4=hi(),Xr=$l(),f4=Zd(),$t=Ga(),Pe=bt();function rE(e){return e&&e.__esModule?e:{default:e}}var nE=new Pe.GraphQLObjectType({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:function(){return{description:{type:$t.GraphQLString,resolve:function(r){return r.description}},types:{description:"A list of all types supported by this server.",type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull(Wi))),resolve:function(r){return(0,tE.default)(r.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Pe.GraphQLNonNull(Wi),resolve:function(r){return r.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Wi,resolve:function(r){return r.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Wi,resolve:function(r){return r.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull(iE))),resolve:function(r){return r.getDirectives()}}}}});Gt.__Schema=nE;var iE=new Pe.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. In 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:function(){return{name:{type:new Pe.GraphQLNonNull($t.GraphQLString),resolve:function(r){return r.name}},description:{type:$t.GraphQLString,resolve:function(r){return r.description}},isRepeatable:{type:new Pe.GraphQLNonNull($t.GraphQLBoolean),resolve:function(r){return r.isRepeatable}},locations:{type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull(aE))),resolve:function(r){return r.locations}},args:{type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull($d))),resolve:function(r){return r.args}}}}});Gt.__Directive=iE;var aE=new Pe.GraphQLEnumType({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:Xr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Xr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Xr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Xr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Xr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Xr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Xr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Xr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Xr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Xr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Xr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Xr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Xr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Xr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Xr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Xr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Xr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Xr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Xr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Gt.__DirectiveLocation=aE;var Wi=new Pe.GraphQLObjectType({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:function(){return{kind:{type:new Pe.GraphQLNonNull(sE),resolve:function(r){if((0,Pe.isScalarType)(r))return En.SCALAR;if((0,Pe.isObjectType)(r))return En.OBJECT;if((0,Pe.isInterfaceType)(r))return En.INTERFACE;if((0,Pe.isUnionType)(r))return En.UNION;if((0,Pe.isEnumType)(r))return En.ENUM;if((0,Pe.isInputObjectType)(r))return En.INPUT_OBJECT;if((0,Pe.isListType)(r))return En.LIST;if((0,Pe.isNonNullType)(r))return En.NON_NULL;(0,l4.default)(0,'Unexpected type: "'.concat((0,s4.default)(r),'".'))}},name:{type:$t.GraphQLString,resolve:function(r){return r.name!==void 0?r.name:void 0}},description:{type:$t.GraphQLString,resolve:function(r){return r.description!==void 0?r.description:void 0}},specifiedByUrl:{type:$t.GraphQLString,resolve:function(r){return r.specifiedByUrl!==void 0?r.specifiedByUrl:void 0}},fields:{type:new Pe.GraphQLList(new Pe.GraphQLNonNull(oE)),args:{includeDeprecated:{type:$t.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;if((0,Pe.isObjectType)(r)||(0,Pe.isInterfaceType)(r)){var o=(0,tE.default)(r.getFields());return i?o:o.filter(function(s){return s.deprecationReason==null})}}},interfaces:{type:new Pe.GraphQLList(new Pe.GraphQLNonNull(Wi)),resolve:function(r){if((0,Pe.isObjectType)(r)||(0,Pe.isInterfaceType)(r))return r.getInterfaces()}},possibleTypes:{type:new Pe.GraphQLList(new Pe.GraphQLNonNull(Wi)),resolve:function(r,n,i,o){var s=o.schema;if((0,Pe.isAbstractType)(r))return s.getPossibleTypes(r)}},enumValues:{type:new Pe.GraphQLList(new Pe.GraphQLNonNull(uE)),args:{includeDeprecated:{type:$t.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;if((0,Pe.isEnumType)(r)){var o=r.getValues();return i?o:o.filter(function(s){return s.deprecationReason==null})}}},inputFields:{type:new Pe.GraphQLList(new Pe.GraphQLNonNull($d)),args:{includeDeprecated:{type:$t.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;if((0,Pe.isInputObjectType)(r)){var o=(0,tE.default)(r.getFields());return i?o:o.filter(function(s){return s.deprecationReason==null})}}},ofType:{type:Wi,resolve:function(r){return r.ofType!==void 0?r.ofType:void 0}}}}});Gt.__Type=Wi;var oE=new Pe.GraphQLObjectType({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:function(){return{name:{type:new Pe.GraphQLNonNull($t.GraphQLString),resolve:function(r){return r.name}},description:{type:$t.GraphQLString,resolve:function(r){return r.description}},args:{type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull($d))),args:{includeDeprecated:{type:$t.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;return i?r.args:r.args.filter(function(o){return o.deprecationReason==null})}},type:{type:new Pe.GraphQLNonNull(Wi),resolve:function(r){return r.type}},isDeprecated:{type:new Pe.GraphQLNonNull($t.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:$t.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Gt.__Field=oE;var $d=new Pe.GraphQLObjectType({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:function(){return{name:{type:new Pe.GraphQLNonNull($t.GraphQLString),resolve:function(r){return r.name}},description:{type:$t.GraphQLString,resolve:function(r){return r.description}},type:{type:new Pe.GraphQLNonNull(Wi),resolve:function(r){return r.type}},defaultValue:{type:$t.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(r){var n=r.type,i=r.defaultValue,o=(0,f4.astFromValue)(i,n);return o?(0,c4.print)(o):null}},isDeprecated:{type:new Pe.GraphQLNonNull($t.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:$t.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Gt.__InputValue=$d;var uE=new Pe.GraphQLObjectType({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:function(){return{name:{type:new Pe.GraphQLNonNull($t.GraphQLString),resolve:function(r){return r.name}},description:{type:$t.GraphQLString,resolve:function(r){return r.description}},isDeprecated:{type:new Pe.GraphQLNonNull($t.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:$t.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Gt.__EnumValue=uE;var En=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"});Gt.TypeKind=En;var sE=new Pe.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:En.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:En.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:En.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:En.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:En.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:En.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:En.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:En.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Gt.__TypeKind=sE;var d4={name:"__schema",type:new Pe.GraphQLNonNull(nE),description:"Access the current type schema of this server.",args:[],resolve:function(t,r,n,i){var o=i.schema;return o},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Gt.SchemaMetaFieldDef=d4;var p4={name:"__type",type:Wi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Pe.GraphQLNonNull($t.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(t,r,n,i){var o=r.name,s=i.schema;return s.getType(o)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Gt.TypeMetaFieldDef=p4;var h4={name:"__typename",type:new Pe.GraphQLNonNull($t.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(t,r,n,i){var o=i.parentType;return o.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Gt.TypeNameMetaFieldDef=h4;var yI=Object.freeze([nE,iE,aE,Wi,oE,$d,uE,sE]);Gt.introspectionTypes=yI;function v4(e){return yI.some(function(t){var r=t.name;return e.name===r})}});var gi=G(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.isDirective=_I;Zr.assertDirective=S4;Zr.isSpecifiedDirective=k4;Zr.specifiedDirectives=Zr.GraphQLSpecifiedByDirective=Zr.GraphQLDeprecatedDirective=Zr.DEFAULT_DEPRECATION_REASON=Zr.GraphQLSkipDirective=Zr.GraphQLIncludeDirective=Zr.GraphQLDirective=void 0;var g4=Es(ic()),m4=qa(),y4=Es(jt()),bI=Es(Ng()),lE=Es(Hi()),b4=Es(jd()),T4=Es(Ma()),_4=Es(dg()),Ta=$l(),Qg=Ga(),Bg=bt();function Es(e){return e&&e.__esModule?e:{default:e}}function TI(e,t){for(var r=0;r{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.isSchema=CI;cc.assertSchema=A4;cc.GraphQLSchema=void 0;var O4=ku(nc()),w4=ku(Y_()),cE=ku(Ni()),N4=qa(),fE=ku(jt()),D4=ku(Ng()),Kg=ku(Hi()),x4=ku(jd()),C4=ku(Ma()),L4=vi(),DI=gi(),_a=bt();function ku(e){return e&&e.__esModule?e:{default:e}}function xI(e,t){for(var r=0;r{"use strict";Object.defineProperty(Hg,"__esModule",{value:!0});Hg.validateSchema=jI;Hg.assertValidSchema=q4;var II=dE(nc()),ep=dE(Ni()),qn=dE(jt()),R4=Je(),j4=qd(),P4=S_(),AI=Hd(),F4=ks(),M4=vi(),RI=gi(),Cr=bt();function dE(e){return e&&e.__esModule?e:{default:e}}function jI(e){if((0,F4.assertSchema)(e),e.__validationErrors)return e.__validationErrors;var t=new V4(e);U4(t),G4(t),Q4(t);var r=t.getErrors();return e.__validationErrors=r,r}function q4(e){var t=jI(e);if(t.length!==0)throw new Error(t.map(function(r){return r.message}).join(` `))}var V4=function(){function e(r){this._errors=[],this.schema=r}var t=e.prototype;return t.reportError=function(n,i){var o=Array.isArray(i)?i.filter(Boolean):i;this.addError(new R4.GraphQLError(n,o))},t.addError=function(n){this._errors.push(n)},t.getErrors=function(){return this._errors},e}();function U4(e){var t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Cr.isObjectType)(r)){var n;e.reportError("Query root type must be Object type, it cannot be ".concat((0,qn.default)(r),"."),(n=pE(t,"query"))!==null&&n!==void 0?n:r.astNode)}var i=t.getMutationType();if(i&&!(0,Cr.isObjectType)(i)){var o;e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,qn.default)(i),"."),(o=pE(t,"mutation"))!==null&&o!==void 0?o:i.astNode)}var s=t.getSubscriptionType();if(s&&!(0,Cr.isObjectType)(s)){var l;e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,qn.default)(s),"."),(l=pE(t,"subscription"))!==null&&l!==void 0?l:s.astNode)}}function pE(e,t){for(var r=hE(e,function(o){return o.operationTypes}),n=0;n{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.typeFromAST=mE;var J4=VI(jt()),X4=VI(_n()),gE=Jt(),qI=bt();function VI(e){return e&&e.__esModule?e:{default:e}}function mE(e,t){var r;if(t.kind===gE.Kind.LIST_TYPE)return r=mE(e,t.type),r&&new qI.GraphQLList(r);if(t.kind===gE.Kind.NON_NULL_TYPE)return r=mE(e,t.type),r&&new qI.GraphQLNonNull(r);if(t.kind===gE.Kind.NAMED_TYPE)return e.getType(t.name.value);(0,X4.default)(0,"Unexpected type node: "+(0,J4.default)(t))}});var zg=G(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.visitWithTypeInfo=n5;np.TypeInfo=void 0;var Z4=e5(nc()),Sr=Jt(),$4=Xl(),UI=hu(),kr=bt(),dc=vi(),GI=Qa();function e5(e){return e&&e.__esModule?e:{default:e}}var t5=function(){function e(r,n,i){this._schema=r,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n!=null?n:r5,i&&((0,kr.isInputType)(i)&&this._inputTypeStack.push(i),(0,kr.isCompositeType)(i)&&this._parentTypeStack.push(i),(0,kr.isOutputType)(i)&&this._typeStack.push(i))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(n){var i=this._schema;switch(n.kind){case Sr.Kind.SELECTION_SET:{var o=(0,kr.getNamedType)(this.getType());this._parentTypeStack.push((0,kr.isCompositeType)(o)?o:void 0);break}case Sr.Kind.FIELD:{var s=this.getParentType(),l,d;s&&(l=this._getFieldDef(i,s,n),l&&(d=l.type)),this._fieldDefStack.push(l),this._typeStack.push((0,kr.isOutputType)(d)?d:void 0);break}case Sr.Kind.DIRECTIVE:this._directive=i.getDirective(n.name.value);break;case Sr.Kind.OPERATION_DEFINITION:{var h;switch(n.operation){case"query":h=i.getQueryType();break;case"mutation":h=i.getMutationType();break;case"subscription":h=i.getSubscriptionType();break}this._typeStack.push((0,kr.isObjectType)(h)?h:void 0);break}case Sr.Kind.INLINE_FRAGMENT:case Sr.Kind.FRAGMENT_DEFINITION:{var v=n.typeCondition,y=v?(0,GI.typeFromAST)(i,v):(0,kr.getNamedType)(this.getType());this._typeStack.push((0,kr.isOutputType)(y)?y:void 0);break}case Sr.Kind.VARIABLE_DEFINITION:{var b=(0,GI.typeFromAST)(i,n.type);this._inputTypeStack.push((0,kr.isInputType)(b)?b:void 0);break}case Sr.Kind.ARGUMENT:{var D,_,k,T=(D=this.getDirective())!==null&&D!==void 0?D:this.getFieldDef();T&&(_=(0,Z4.default)(T.args,function(M){return M.name===n.name.value}),_&&(k=_.type)),this._argument=_,this._defaultValueStack.push(_?_.defaultValue:void 0),this._inputTypeStack.push((0,kr.isInputType)(k)?k:void 0);break}case Sr.Kind.LIST:{var S=(0,kr.getNullableType)(this.getInputType()),m=(0,kr.isListType)(S)?S.ofType:S;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,kr.isInputType)(m)?m:void 0);break}case Sr.Kind.OBJECT_FIELD:{var w=(0,kr.getNamedType)(this.getInputType()),x,L;(0,kr.isInputObjectType)(w)&&(L=w.getFields()[n.name.value],L&&(x=L.type)),this._defaultValueStack.push(L?L.defaultValue:void 0),this._inputTypeStack.push((0,kr.isInputType)(x)?x:void 0);break}case Sr.Kind.ENUM:{var O=(0,kr.getNamedType)(this.getInputType()),R;(0,kr.isEnumType)(O)&&(R=O.getValue(n.value)),this._enumValue=R;break}}},t.leave=function(n){switch(n.kind){case Sr.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Sr.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Sr.Kind.DIRECTIVE:this._directive=null;break;case Sr.Kind.OPERATION_DEFINITION:case Sr.Kind.INLINE_FRAGMENT:case Sr.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Sr.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Sr.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Sr.Kind.LIST:case Sr.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Sr.Kind.ENUM:this._enumValue=null;break}},e}();np.TypeInfo=t5;function r5(e,t,r){var n=r.name.value;if(n===dc.SchemaMetaFieldDef.name&&e.getQueryType()===t)return dc.SchemaMetaFieldDef;if(n===dc.TypeMetaFieldDef.name&&e.getQueryType()===t)return dc.TypeMetaFieldDef;if(n===dc.TypeNameMetaFieldDef.name&&(0,kr.isCompositeType)(t))return dc.TypeNameMetaFieldDef;if((0,kr.isObjectType)(t)||(0,kr.isInterfaceType)(t))return t.getFields()[n]}function n5(e,t){return{enter:function(n){e.enter(n);var i=(0,UI.getVisitFn)(t,n.kind,!1);if(i){var o=i.apply(t,arguments);return o!==void 0&&(e.leave(n),(0,$4.isNode)(o)&&e.enter(o)),o}},leave:function(n){var i=(0,UI.getVisitFn)(t,n.kind,!0),o;return i&&(o=i.apply(t,arguments)),e.leave(n),o}}}});var ws=G(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.isDefinitionNode=i5;Sa.isExecutableDefinitionNode=QI;Sa.isSelectionNode=a5;Sa.isValueNode=o5;Sa.isTypeNode=u5;Sa.isTypeSystemDefinitionNode=BI;Sa.isTypeDefinitionNode=KI;Sa.isTypeSystemExtensionNode=HI;Sa.isTypeExtensionNode=zI;var Dt=Jt();function i5(e){return QI(e)||BI(e)||HI(e)}function QI(e){return e.kind===Dt.Kind.OPERATION_DEFINITION||e.kind===Dt.Kind.FRAGMENT_DEFINITION}function a5(e){return e.kind===Dt.Kind.FIELD||e.kind===Dt.Kind.FRAGMENT_SPREAD||e.kind===Dt.Kind.INLINE_FRAGMENT}function o5(e){return e.kind===Dt.Kind.VARIABLE||e.kind===Dt.Kind.INT||e.kind===Dt.Kind.FLOAT||e.kind===Dt.Kind.STRING||e.kind===Dt.Kind.BOOLEAN||e.kind===Dt.Kind.NULL||e.kind===Dt.Kind.ENUM||e.kind===Dt.Kind.LIST||e.kind===Dt.Kind.OBJECT}function u5(e){return e.kind===Dt.Kind.NAMED_TYPE||e.kind===Dt.Kind.LIST_TYPE||e.kind===Dt.Kind.NON_NULL_TYPE}function BI(e){return e.kind===Dt.Kind.SCHEMA_DEFINITION||KI(e)||e.kind===Dt.Kind.DIRECTIVE_DEFINITION}function KI(e){return e.kind===Dt.Kind.SCALAR_TYPE_DEFINITION||e.kind===Dt.Kind.OBJECT_TYPE_DEFINITION||e.kind===Dt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Dt.Kind.UNION_TYPE_DEFINITION||e.kind===Dt.Kind.ENUM_TYPE_DEFINITION||e.kind===Dt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function HI(e){return e.kind===Dt.Kind.SCHEMA_EXTENSION||zI(e)}function zI(e){return e.kind===Dt.Kind.SCALAR_TYPE_EXTENSION||e.kind===Dt.Kind.OBJECT_TYPE_EXTENSION||e.kind===Dt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Dt.Kind.UNION_TYPE_EXTENSION||e.kind===Dt.Kind.ENUM_TYPE_EXTENSION||e.kind===Dt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var TE=G(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.ExecutableDefinitionsRule=c5;var s5=Je(),WI=Jt(),l5=ws();function c5(e){return{Document:function(r){for(var n=0,i=r.definitions;n{"use strict";Object.defineProperty(_E,"__esModule",{value:!0});_E.UniqueOperationNamesRule=d5;var f5=Je();function d5(e){var t=Object.create(null);return{OperationDefinition:function(n){var i=n.name;return i&&(t[i.value]?e.reportError(new f5.GraphQLError('There can be only one operation named "'.concat(i.value,'".'),[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:function(){return!1}}}});var kE=G(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.LoneAnonymousOperationRule=v5;var p5=Je(),h5=Jt();function v5(e){var t=0;return{Document:function(n){t=n.definitions.filter(function(i){return i.kind===h5.Kind.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new p5.GraphQLError("This anonymous operation must be the only defined operation.",n))}}}});var wE=G(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.SingleFieldSubscriptionsRule=m5;var g5=Je();function m5(e){return{OperationDefinition:function(r){r.operation==="subscription"&&r.selectionSet.selections.length!==1&&e.reportError(new g5.GraphQLError(r.name?'Subscription "'.concat(r.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",r.selectionSet.selections.slice(1)))}}}});var xE=G(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.KnownTypeNamesRule=S5;var y5=YI(gu()),b5=YI(mu()),T5=Je(),NE=ws(),_5=Ga(),E5=vi();function YI(e){return e&&e.__esModule?e:{default:e}}function S5(e){for(var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null),i=0,o=e.getDocument().definitions;i{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.FragmentsOnCompositeTypesRule=w5;var XI=Je(),ZI=hi(),$I=bt(),eA=Qa();function w5(e){return{InlineFragment:function(r){var n=r.typeCondition;if(n){var i=(0,eA.typeFromAST)(e.getSchema(),n);if(i&&!(0,$I.isCompositeType)(i)){var o=(0,ZI.print)(n);e.reportError(new XI.GraphQLError('Fragment cannot condition on non composite type "'.concat(o,'".'),n))}}},FragmentDefinition:function(r){var n=(0,eA.typeFromAST)(e.getSchema(),r.typeCondition);if(n&&!(0,$I.isCompositeType)(n)){var i=(0,ZI.print)(r.typeCondition);e.reportError(new XI.GraphQLError('Fragment "'.concat(r.name.value,'" cannot condition on non composite type "').concat(i,'".'),r.typeCondition))}}}}});var AE=G(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});IE.VariablesAreInputTypesRule=L5;var N5=Je(),D5=hi(),x5=bt(),C5=Qa();function L5(e){return{VariableDefinition:function(r){var n=(0,C5.typeFromAST)(e.getSchema(),r.type);if(n&&!(0,x5.isInputType)(n)){var i=r.variable.name.value,o=(0,D5.print)(r.type);e.reportError(new N5.GraphQLError('Variable "$'.concat(i,'" cannot be non-input type "').concat(o,'".'),r.type))}}}}});var jE=G(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.ScalarLeafsRule=A5;var tA=I5(jt()),rA=Je(),nA=bt();function I5(e){return e&&e.__esModule?e:{default:e}}function A5(e){return{Field:function(r){var n=e.getType(),i=r.selectionSet;if(n){if((0,nA.isLeafType)((0,nA.getNamedType)(n))){if(i){var o=r.name.value,s=(0,tA.default)(n);e.reportError(new rA.GraphQLError('Field "'.concat(o,'" must not have a selection since type "').concat(s,'" has no subfields.'),i))}}else if(!i){var l=r.name.value,d=(0,tA.default)(n);e.reportError(new rA.GraphQLError('Field "'.concat(l,'" of type "').concat(d,'" must have a selection of subfields. Did you mean "').concat(l,' { ... }"?'),r))}}}}}});var FE=G(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.FieldsOnCorrectTypeRule=M5;var R5=Wg(Y_()),iA=Wg(gu()),j5=Wg(mu()),P5=Wg(Ud()),F5=Je(),ip=bt();function Wg(e){return e&&e.__esModule?e:{default:e}}function M5(e){return{Field:function(r){var n=e.getParentType();if(n){var i=e.getFieldDef();if(!i){var o=e.getSchema(),s=r.name.value,l=(0,iA.default)("to use an inline fragment on",q5(o,n,s));l===""&&(l=(0,iA.default)(V5(n,s))),e.reportError(new F5.GraphQLError('Cannot query field "'.concat(s,'" on type "').concat(n.name,'".')+l,r))}}}}}function q5(e,t,r){if(!(0,ip.isAbstractType)(t))return[];for(var n=new Set,i=Object.create(null),o=0,s=e.getPossibleTypes(t);o{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});ME.UniqueFragmentNamesRule=G5;var U5=Je();function G5(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var i=n.name.value;return t[i]?e.reportError(new U5.GraphQLError('There can be only one fragment named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}});var UE=G(VE=>{"use strict";Object.defineProperty(VE,"__esModule",{value:!0});VE.KnownFragmentNamesRule=B5;var Q5=Je();function B5(e){return{FragmentSpread:function(r){var n=r.name.value,i=e.getFragment(n);i||e.reportError(new Q5.GraphQLError('Unknown fragment "'.concat(n,'".'),r.name))}}}});var QE=G(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.NoUnusedFragmentsRule=H5;var K5=Je();function H5(e){var t=[],r=[];return{OperationDefinition:function(i){return t.push(i),!1},FragmentDefinition:function(i){return r.push(i),!1},Document:{leave:function(){for(var i=Object.create(null),o=0;o{"use strict";Object.defineProperty(KE,"__esModule",{value:!0});KE.PossibleFragmentSpreadsRule=Y5;var Yg=W5(jt()),aA=Je(),BE=bt(),z5=Qa(),oA=Hd();function W5(e){return e&&e.__esModule?e:{default:e}}function Y5(e){return{InlineFragment:function(r){var n=e.getType(),i=e.getParentType();if((0,BE.isCompositeType)(n)&&(0,BE.isCompositeType)(i)&&!(0,oA.doTypesOverlap)(e.getSchema(),n,i)){var o=(0,Yg.default)(i),s=(0,Yg.default)(n);e.reportError(new aA.GraphQLError('Fragment cannot be spread here as objects of type "'.concat(o,'" can never be of type "').concat(s,'".'),r))}},FragmentSpread:function(r){var n=r.name.value,i=J5(e,n),o=e.getParentType();if(i&&o&&!(0,oA.doTypesOverlap)(e.getSchema(),i,o)){var s=(0,Yg.default)(o),l=(0,Yg.default)(i);e.reportError(new aA.GraphQLError('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(s,'" can never be of type "').concat(l,'".'),r))}}}}function J5(e,t){var r=e.getFragment(t);if(r){var n=(0,z5.typeFromAST)(e.getSchema(),r.typeCondition);if((0,BE.isCompositeType)(n))return n}}});var WE=G(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.NoFragmentCyclesRule=Z5;var X5=Je();function Z5(e){var t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(s){return i(s),!1}};function i(o){if(!t[o.name.value]){var s=o.name.value;t[s]=!0;var l=e.getFragmentSpreads(o.selectionSet);if(l.length!==0){n[s]=r.length;for(var d=0;d{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.UniqueVariableNamesRule=e6;var $5=Je();function e6(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var i=n.variable.name.value;t[i]?e.reportError(new $5.GraphQLError('There can be only one variable named "$'.concat(i,'".'),[t[i],n.variable.name])):t[i]=n.variable.name}}}});var ZE=G(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.NoUndefinedVariablesRule=r6;var t6=Je();function r6(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var i=e.getRecursiveVariableUsages(n),o=0;o{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.NoUnusedVariablesRule=i6;var n6=Je();function i6(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var i=Object.create(null),o=e.getRecursiveVariableUsages(n),s=0;s{"use strict";Object.defineProperty(tS,"__esModule",{value:!0});tS.KnownDirectivesRule=u6;var a6=lA(jt()),uA=lA(_n()),sA=Je(),sr=Jt(),$r=$l(),o6=gi();function lA(e){return e&&e.__esModule?e:{default:e}}function u6(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():o6.specifiedDirectives,i=0;i{"use strict";Object.defineProperty(iS,"__esModule",{value:!0});iS.UniqueDirectivesPerLocationRule=d6;var c6=Je(),nS=Jt(),cA=ws(),f6=gi();function d6(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():f6.specifiedDirectives,i=0;i{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});Jg.KnownArgumentNamesRule=g6;Jg.KnownArgumentNamesOnDirectivesRule=mA;var fA=hA(gu()),dA=hA(mu()),pA=Je(),p6=Jt(),h6=gi();function hA(e){return e&&e.__esModule?e:{default:e}}function vA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gA(e){for(var t=1;t{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});uS.UniqueArgumentNamesRule=y6;var m6=Je();function y6(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var i=n.name.value;return t[i]?e.reportError(new m6.GraphQLError('There can be only one argument named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}});var cS=G(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.ValuesOfCorrectTypeRule=S6;var b6=op(Ni()),T6=op(vu()),ap=op(jt()),_6=op(gu()),E6=op(mu()),Ns=Je(),Xg=hi(),Ba=bt();function op(e){return e&&e.__esModule?e:{default:e}}function S6(e){return{ListValue:function(r){var n=(0,Ba.getNullableType)(e.getParentInputType());if(!(0,Ba.isListType)(n))return Ds(e,r),!1},ObjectValue:function(r){var n=(0,Ba.getNamedType)(e.getInputType());if(!(0,Ba.isInputObjectType)(n))return Ds(e,r),!1;for(var i=(0,T6.default)(r.fields,function(v){return v.name.value}),o=0,s=(0,b6.default)(n.getFields());o{"use strict";Object.defineProperty($g,"__esModule",{value:!0});$g.ProvidedRequiredArgumentsRule=N6;$g.ProvidedRequiredArgumentsOnDirectivesRule=kA;var yA=_A(jt()),Zg=_A(vu()),bA=Je(),TA=Jt(),k6=hi(),O6=gi(),fS=bt();function _A(e){return e&&e.__esModule?e:{default:e}}function EA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SA(e){for(var t=1;t{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.VariablesInAllowedPositionRule=A6;var OA=I6(jt()),x6=Je(),C6=Jt(),wA=bt(),L6=Qa(),NA=Hd();function I6(e){return e&&e.__esModule?e:{default:e}}function A6(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var i=e.getRecursiveVariableUsages(n),o=0;o{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});TS.OverlappingFieldsCanBeMergedRule=M6;var j6=gS(nc()),P6=gS(ic()),DA=gS(jt()),F6=Je(),vS=Jt(),xA=hi(),mi=bt(),CA=Qa();function gS(e){return e&&e.__esModule?e:{default:e}}function LA(e){return Array.isArray(e)?e.map(function(t){var r=t[0],n=t[1];return'subfields "'.concat(r,'" conflict because ')+LA(n)}).join(" and "):e}function M6(e){var t=new K6,r=new Map;return{SelectionSet:function(i){for(var o=q6(e,r,t,e.getParentType(),i),s=0;s1)for(var v=0;v0)return[[t,e.map(function(i){var o=i[0];return o})],e.reduce(function(i,o){var s=o[1];return i.concat(s)},[r]),e.reduce(function(i,o){var s=o[2];return i.concat(s)},[n])]}var K6=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(n,i,o){var s=this._data[n],l=s&&s[i];return l===void 0?!1:o===!1?l===!1:!0},t.add=function(n,i,o){this._pairSetAdd(n,i,o),this._pairSetAdd(i,n,o)},t._pairSetAdd=function(n,i,o){var s=this._data[n];s||(s=Object.create(null),this._data[n]=s),s[i]=o},e}()});var SS=G(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.UniqueInputFieldNamesRule=z6;var H6=Je();function z6(e){var t=[],r=Object.create(null);return{ObjectValue:{enter:function(){t.push(r),r=Object.create(null)},leave:function(){r=t.pop()}},ObjectField:function(i){var o=i.name.value;r[o]?e.reportError(new H6.GraphQLError('There can be only one input field named "'.concat(o,'".'),[r[o],i.name])):r[o]=i.name}}}});var OS=G(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0});kS.LoneSchemaDefinitionRule=W6;var RA=Je();function W6(e){var t,r,n,i=e.getSchema(),o=(t=(r=(n=i==null?void 0:i.astNode)!==null&&n!==void 0?n:i==null?void 0:i.getQueryType())!==null&&r!==void 0?r:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),s=0;return{SchemaDefinition:function(d){if(o){e.reportError(new RA.GraphQLError("Cannot define a new schema within a schema extension.",d));return}s>0&&e.reportError(new RA.GraphQLError("Must provide only one schema definition.",d)),++s}}}});var NS=G(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0});wS.UniqueOperationTypesRule=Y6;var jA=Je();function Y6(e){var t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){for(var s,l=(s=o.operationTypes)!==null&&s!==void 0?s:[],d=0;d{"use strict";Object.defineProperty(DS,"__esModule",{value:!0});DS.UniqueTypeNamesRule=J6;var PA=Je();function J6(e){var t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(i){var o=i.name.value;if(r!=null&&r.getType(o)){e.reportError(new PA.GraphQLError('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),i.name));return}return t[o]?e.reportError(new PA.GraphQLError('There can be only one type named "'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1}}});var LS=G(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0});CS.UniqueEnumValueNamesRule=Z6;var FA=Je(),X6=bt();function Z6(e){var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s,l=o.name.value;n[l]||(n[l]=Object.create(null));for(var d=(s=o.values)!==null&&s!==void 0?s:[],h=n[l],v=0;v{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});AS.UniqueFieldDefinitionNamesRule=$6;var MA=Je(),IS=bt();function $6(e){var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var s,l=o.name.value;n[l]||(n[l]=Object.create(null));for(var d=(s=o.fields)!==null&&s!==void 0?s:[],h=n[l],v=0;v{"use strict";Object.defineProperty(jS,"__esModule",{value:!0});jS.UniqueDirectiveNamesRule=t9;var qA=Je();function t9(e){var t=Object.create(null),r=e.getSchema();return{DirectiveDefinition:function(i){var o=i.name.value;if(r!=null&&r.getDirective(o)){e.reportError(new qA.GraphQLError('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),i.name));return}return t[o]?e.reportError(new qA.GraphQLError('There can be only one directive named "@'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1}}}});var MS=G(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0});FS.PossibleTypeExtensionsRule=a9;var VA=nm(jt()),UA=nm(_n()),r9=nm(gu()),n9=nm(mu()),GA=Je(),dr=Jt(),i9=ws(),pc=bt(),Ou;function nm(e){return e&&e.__esModule?e:{default:e}}function hc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a9(e){for(var t=e.getSchema(),r=Object.create(null),n=0,i=e.getDocument().definitions;n{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.specifiedSDLRules=vc.specifiedRules=void 0;var l9=TE(),c9=EE(),f9=kE(),d9=wE(),QA=xE(),p9=LE(),h9=AE(),v9=jE(),g9=FE(),m9=qE(),y9=UE(),b9=QE(),T9=HE(),_9=WE(),E9=JE(),S9=ZE(),k9=eS(),BA=rS(),KA=aS(),HA=oS(),zA=sS(),O9=cS(),WA=dS(),w9=hS(),N9=_S(),YA=SS(),D9=OS(),x9=NS(),C9=xS(),L9=LS(),I9=RS(),A9=PS(),R9=MS(),j9=Object.freeze([l9.ExecutableDefinitionsRule,c9.UniqueOperationNamesRule,f9.LoneAnonymousOperationRule,d9.SingleFieldSubscriptionsRule,QA.KnownTypeNamesRule,p9.FragmentsOnCompositeTypesRule,h9.VariablesAreInputTypesRule,v9.ScalarLeafsRule,g9.FieldsOnCorrectTypeRule,m9.UniqueFragmentNamesRule,y9.KnownFragmentNamesRule,b9.NoUnusedFragmentsRule,T9.PossibleFragmentSpreadsRule,_9.NoFragmentCyclesRule,E9.UniqueVariableNamesRule,S9.NoUndefinedVariablesRule,k9.NoUnusedVariablesRule,BA.KnownDirectivesRule,KA.UniqueDirectivesPerLocationRule,HA.KnownArgumentNamesRule,zA.UniqueArgumentNamesRule,O9.ValuesOfCorrectTypeRule,WA.ProvidedRequiredArgumentsRule,w9.VariablesInAllowedPositionRule,N9.OverlappingFieldsCanBeMergedRule,YA.UniqueInputFieldNamesRule]);vc.specifiedRules=j9;var P9=Object.freeze([D9.LoneSchemaDefinitionRule,x9.UniqueOperationTypesRule,C9.UniqueTypeNamesRule,L9.UniqueEnumValueNamesRule,I9.UniqueFieldDefinitionNamesRule,A9.UniqueDirectiveNamesRule,QA.KnownTypeNamesRule,BA.KnownDirectivesRule,KA.UniqueDirectivesPerLocationRule,R9.PossibleTypeExtensionsRule,HA.KnownArgumentNamesOnDirectivesRule,zA.UniqueArgumentNamesRule,YA.UniqueInputFieldNamesRule,WA.ProvidedRequiredArgumentsOnDirectivesRule]);vc.specifiedSDLRules=P9});var US=G(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.ValidationContext=wu.SDLValidationContext=wu.ASTValidationContext=void 0;var JA=Jt(),F9=hu(),XA=zg();function ZA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var VS=function(){function e(r,n){this._ast=r,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}var t=e.prototype;return t.reportError=function(n){this._onError(n)},t.getDocument=function(){return this._ast},t.getFragment=function(n){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(o,s){return s.kind===JA.Kind.FRAGMENT_DEFINITION&&(o[s.name.value]=s),o},Object.create(null))),i[n]},t.getFragmentSpreads=function(n){var i=this._fragmentSpreads.get(n);if(!i){i=[];for(var o=[n];o.length!==0;)for(var s=o.pop(),l=0,d=s.selections;l{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.validate=B9;gc.validateSDL=GS;gc.assertValidSDL=K9;gc.assertValidSDLExtension=H9;var V9=Q9(Hi()),U9=Je(),im=hu(),G9=rp(),$A=zg(),eR=qS(),tR=US();function Q9(e){return e&&e.__esModule?e:{default:e}}function B9(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:eR.specifiedRules,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new $A.TypeInfo(e),i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{maxErrors:void 0};t||(0,V9.default)(0,"Must provide document."),(0,G9.assertValidSchema)(e);var o=Object.freeze({}),s=[],l=new tR.ValidationContext(e,t,n,function(h){if(i.maxErrors!=null&&s.length>=i.maxErrors)throw s.push(new U9.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),o;s.push(h)}),d=(0,im.visitInParallel)(r.map(function(h){return h(l)}));try{(0,im.visit)(t,(0,$A.visitWithTypeInfo)(n,d))}catch(h){if(h!==o)throw h}return s}function GS(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:eR.specifiedSDLRules,n=[],i=new tR.SDLValidationContext(e,t,function(s){n.push(s)}),o=r.map(function(s){return s(i)});return(0,im.visit)(e,(0,im.visitInParallel)(o)),n}function K9(e){var t=GS(e);if(t.length!==0)throw new Error(t.map(function(r){return r.message}).join(` `))}function H9(e,t){var r=GS(e,t);if(r.length!==0)throw new Error(r.map(function(n){return n.message}).join(` `))}});var rR=G(QS=>{"use strict";Object.defineProperty(QS,"__esModule",{value:!0});QS.default=z9;function z9(e){var t;return function(n,i,o){t||(t=new WeakMap);var s=t.get(n),l;if(s){if(l=s.get(i),l){var d=l.get(o);if(d!==void 0)return d}}else s=new WeakMap,t.set(n,s);l||(l=new WeakMap,s.set(i,l));var h=e(n,i,o);return l.set(o,h),h}}});var nR=G(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});BS.default=J9;var W9=Y9(rg());function Y9(e){return e&&e.__esModule?e:{default:e}}function J9(e,t,r){return e.reduce(function(n,i){return(0,W9.default)(n)?n.then(function(o){return t(o,i)}):t(n,i)},r)}});var iR=G(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0});KS.default=X9;function X9(e){var t=Object.keys(e),r=t.map(function(n){return e[n]});return Promise.all(r).then(function(n){return n.reduce(function(i,o,s){return i[t[s]]=o,i},Object.create(null))})}});var up=G(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.addPath=Z9;am.pathToArray=$9;function Z9(e,t,r){return{prev:e,key:t,typename:r}}function $9(e){for(var t=[],r=e;r;)t.push(r.key),r=r.prev;return t.reverse()}});var um=G(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});HS.getOperationRootType=e8;var om=Je();function e8(e,t){if(t.operation==="query"){var r=e.getQueryType();if(!r)throw new om.GraphQLError("Schema does not define the required query root type.",t);return r}if(t.operation==="mutation"){var n=e.getMutationType();if(!n)throw new om.GraphQLError("Schema is not configured for mutations.",t);return n}if(t.operation==="subscription"){var i=e.getSubscriptionType();if(!i)throw new om.GraphQLError("Schema is not configured for subscriptions.",t);return i}throw new om.GraphQLError("Can only have query, mutation and subscription operations.",t)}});var WS=G(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0});zS.default=t8;function t8(e){return e.map(function(t){return typeof t=="number"?"["+t.toString()+"]":"."+t}).join("")}});var lp=G(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0});YS.valueFromAST=sp;var r8=sm(Ni()),n8=sm(vu()),i8=sm(jt()),a8=sm(_n()),yc=Jt(),xs=bt();function sm(e){return e&&e.__esModule?e:{default:e}}function sp(e,t,r){if(!!e){if(e.kind===yc.Kind.VARIABLE){var n=e.name.value;if(r==null||r[n]===void 0)return;var i=r[n];return i===null&&(0,xs.isNonNullType)(t)?void 0:i}if((0,xs.isNonNullType)(t))return e.kind===yc.Kind.NULL?void 0:sp(e,t.ofType,r);if(e.kind===yc.Kind.NULL)return null;if((0,xs.isListType)(t)){var o=t.ofType;if(e.kind===yc.Kind.LIST){for(var s=[],l=0,d=e.values;l{"use strict";Object.defineProperty(JS,"__esModule",{value:!0});JS.coerceInputValue=p8;var o8=Nu(Ni()),lm=Nu(jt()),u8=Nu(_n()),s8=Nu(gu()),l8=Nu(Ma()),c8=Nu(Mg()),f8=Nu(mu()),d8=Nu(WS()),So=up(),Cs=Je(),cp=bt();function Nu(e){return e&&e.__esModule?e:{default:e}}function p8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h8;return fp(e,t,r)}function h8(e,t,r){var n="Invalid value "+(0,lm.default)(t);throw e.length>0&&(n+=' at "value'.concat((0,d8.default)(e),'"')),r.message=n+": "+r.message,r}function fp(e,t,r,n){if((0,cp.isNonNullType)(t)){if(e!=null)return fp(e,t.ofType,r,n);r((0,So.pathToArray)(n),e,new Cs.GraphQLError('Expected non-nullable type "'.concat((0,lm.default)(t),'" not to be null.')));return}if(e==null)return null;if((0,cp.isListType)(t)){var i=t.ofType,o=(0,c8.default)(e,function(m,w){var x=(0,So.addPath)(n,w,void 0);return fp(m,i,r,x)});return o!=null?o:[fp(e,i,r,n)]}if((0,cp.isInputObjectType)(t)){if(!(0,l8.default)(e)){r((0,So.pathToArray)(n),e,new Cs.GraphQLError('Expected type "'.concat(t.name,'" to be an object.')));return}for(var s={},l=t.getFields(),d=0,h=(0,o8.default)(l);d{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.getVariableValues=T8;dp.getArgumentValues=lR;dp.getDirectiveValues=E8;var v8=cm(nc()),g8=cm(vu()),bc=cm(jt()),m8=cm(WS()),ko=Je(),oR=Jt(),uR=hi(),Tc=bt(),y8=Qa(),sR=lp(),b8=XS();function cm(e){return e&&e.__esModule?e:{default:e}}function T8(e,t,r,n){var i=[],o=n==null?void 0:n.maxErrors;try{var s=_8(e,t,r,function(l){if(o!=null&&i.length>=o)throw new ko.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(l)});if(i.length===0)return{coerced:s}}catch(l){i.push(l)}return{errors:i}}function _8(e,t,r,n){for(var i={},o=function(h){var v=t[h],y=v.variable.name.value,b=(0,y8.typeFromAST)(e,v.type);if(!(0,Tc.isInputType)(b)){var D=(0,uR.print)(v.type);return n(new ko.GraphQLError('Variable "$'.concat(y,'" expected value of type "').concat(D,'" which cannot be used as an input type.'),v.type)),"continue"}if(!cR(r,y)){if(v.defaultValue)i[y]=(0,sR.valueFromAST)(v.defaultValue,b);else if((0,Tc.isNonNullType)(b)){var _=(0,bc.default)(b);n(new ko.GraphQLError('Variable "$'.concat(y,'" of required type "').concat(_,'" was not provided.'),v))}return"continue"}var k=r[y];if(k===null&&(0,Tc.isNonNullType)(b)){var T=(0,bc.default)(b);return n(new ko.GraphQLError('Variable "$'.concat(y,'" of non-null type "').concat(T,'" must not be null.'),v)),"continue"}i[y]=(0,b8.coerceInputValue)(k,b,function(S,m,w){var x='Variable "$'.concat(y,'" got invalid value ')+(0,bc.default)(m);S.length>0&&(x+=' at "'.concat(y).concat((0,m8.default)(S),'"')),n(new ko.GraphQLError(x+"; "+w.message,v,void 0,void 0,void 0,w.originalError))})},s=0;s{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.execute=L8;xi.executeSync=I8;xi.assertValidExecutionArguments=hR;xi.buildExecutionContext=vR;xi.collectFields=vp;xi.buildResolveInfo=bR;xi.getFieldDef=OR;xi.defaultFieldResolver=xi.defaultTypeResolver=void 0;var _c=wo(jt()),S8=wo(rR()),k8=wo(_n()),fR=wo(Hi()),Yi=wo(rg()),ZS=wo(Ma()),O8=wo(Mg()),w8=wo(nR()),N8=wo(iR()),Ls=up(),Ka=Je(),fm=qd(),hp=Jt(),D8=rp(),Ec=vi(),dR=gi(),Oo=bt(),x8=Qa(),C8=um(),dm=pp();function wo(e){return e&&e.__esModule?e:{default:e}}function L8(e,t,r,n,i,o,s,l){return arguments.length===1?$S(e):$S({schema:e,document:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l})}function I8(e){var t=$S(e);if((0,Yi.default)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function $S(e){var t=e.schema,r=e.document,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,d=e.typeResolver;hR(t,r,o);var h=vR(t,r,n,i,o,s,l,d);if(Array.isArray(h))return{errors:h};var v=A8(h,h.operation,n);return pR(h,v)}function pR(e,t){return(0,Yi.default)(t)?t.then(function(r){return pR(e,r)}):e.errors.length===0?{data:t}:{errors:e.errors,data:t}}function hR(e,t,r){t||(0,fR.default)(0,"Must provide document."),(0,D8.assertValidSchema)(e),r==null||(0,ZS.default)(r)||(0,fR.default)(0,"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 vR(e,t,r,n,i,o,s,l){for(var d,h,v,y=Object.create(null),b=0,D=t.definitions;b{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.graphql=z8;vm.graphqlSync=W8;var U8=H8(rg()),G8=tc(),Q8=mc(),B8=rp(),K8=mp();function H8(e){return e&&e.__esModule?e:{default:e}}function z8(e,t,r,n,i,o,s,l){var d=arguments;return new Promise(function(h){return h(d.length===1?hm(e):hm({schema:e,source:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l}))})}function W8(e,t,r,n,i,o,s,l){var d=arguments.length===1?hm(e):hm({schema:e,source:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l});if((0,U8.default)(d))throw new Error("GraphQL execution failed to complete synchronously.");return d}function hm(e){var t=e.schema,r=e.source,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,d=e.typeResolver,h=(0,B8.validateSchema)(t);if(h.length>0)return{errors:h};var v;try{v=(0,G8.parse)(r)}catch(b){return{errors:[b]}}var y=(0,Q8.validate)(t,v);return y.length>0?{errors:y}:(0,K8.execute)({schema:t,document:v,rootValue:n,contextValue:i,variableValues:o,operationName:s,fieldResolver:l,typeResolver:d})}});var DR=G(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Object.defineProperty(Se,"isSchema",{enumerable:!0,get:function(){return rk.isSchema}});Object.defineProperty(Se,"assertSchema",{enumerable:!0,get:function(){return rk.assertSchema}});Object.defineProperty(Se,"GraphQLSchema",{enumerable:!0,get:function(){return rk.GraphQLSchema}});Object.defineProperty(Se,"isType",{enumerable:!0,get:function(){return rt.isType}});Object.defineProperty(Se,"isScalarType",{enumerable:!0,get:function(){return rt.isScalarType}});Object.defineProperty(Se,"isObjectType",{enumerable:!0,get:function(){return rt.isObjectType}});Object.defineProperty(Se,"isInterfaceType",{enumerable:!0,get:function(){return rt.isInterfaceType}});Object.defineProperty(Se,"isUnionType",{enumerable:!0,get:function(){return rt.isUnionType}});Object.defineProperty(Se,"isEnumType",{enumerable:!0,get:function(){return rt.isEnumType}});Object.defineProperty(Se,"isInputObjectType",{enumerable:!0,get:function(){return rt.isInputObjectType}});Object.defineProperty(Se,"isListType",{enumerable:!0,get:function(){return rt.isListType}});Object.defineProperty(Se,"isNonNullType",{enumerable:!0,get:function(){return rt.isNonNullType}});Object.defineProperty(Se,"isInputType",{enumerable:!0,get:function(){return rt.isInputType}});Object.defineProperty(Se,"isOutputType",{enumerable:!0,get:function(){return rt.isOutputType}});Object.defineProperty(Se,"isLeafType",{enumerable:!0,get:function(){return rt.isLeafType}});Object.defineProperty(Se,"isCompositeType",{enumerable:!0,get:function(){return rt.isCompositeType}});Object.defineProperty(Se,"isAbstractType",{enumerable:!0,get:function(){return rt.isAbstractType}});Object.defineProperty(Se,"isWrappingType",{enumerable:!0,get:function(){return rt.isWrappingType}});Object.defineProperty(Se,"isNullableType",{enumerable:!0,get:function(){return rt.isNullableType}});Object.defineProperty(Se,"isNamedType",{enumerable:!0,get:function(){return rt.isNamedType}});Object.defineProperty(Se,"isRequiredArgument",{enumerable:!0,get:function(){return rt.isRequiredArgument}});Object.defineProperty(Se,"isRequiredInputField",{enumerable:!0,get:function(){return rt.isRequiredInputField}});Object.defineProperty(Se,"assertType",{enumerable:!0,get:function(){return rt.assertType}});Object.defineProperty(Se,"assertScalarType",{enumerable:!0,get:function(){return rt.assertScalarType}});Object.defineProperty(Se,"assertObjectType",{enumerable:!0,get:function(){return rt.assertObjectType}});Object.defineProperty(Se,"assertInterfaceType",{enumerable:!0,get:function(){return rt.assertInterfaceType}});Object.defineProperty(Se,"assertUnionType",{enumerable:!0,get:function(){return rt.assertUnionType}});Object.defineProperty(Se,"assertEnumType",{enumerable:!0,get:function(){return rt.assertEnumType}});Object.defineProperty(Se,"assertInputObjectType",{enumerable:!0,get:function(){return rt.assertInputObjectType}});Object.defineProperty(Se,"assertListType",{enumerable:!0,get:function(){return rt.assertListType}});Object.defineProperty(Se,"assertNonNullType",{enumerable:!0,get:function(){return rt.assertNonNullType}});Object.defineProperty(Se,"assertInputType",{enumerable:!0,get:function(){return rt.assertInputType}});Object.defineProperty(Se,"assertOutputType",{enumerable:!0,get:function(){return rt.assertOutputType}});Object.defineProperty(Se,"assertLeafType",{enumerable:!0,get:function(){return rt.assertLeafType}});Object.defineProperty(Se,"assertCompositeType",{enumerable:!0,get:function(){return rt.assertCompositeType}});Object.defineProperty(Se,"assertAbstractType",{enumerable:!0,get:function(){return rt.assertAbstractType}});Object.defineProperty(Se,"assertWrappingType",{enumerable:!0,get:function(){return rt.assertWrappingType}});Object.defineProperty(Se,"assertNullableType",{enumerable:!0,get:function(){return rt.assertNullableType}});Object.defineProperty(Se,"assertNamedType",{enumerable:!0,get:function(){return rt.assertNamedType}});Object.defineProperty(Se,"getNullableType",{enumerable:!0,get:function(){return rt.getNullableType}});Object.defineProperty(Se,"getNamedType",{enumerable:!0,get:function(){return rt.getNamedType}});Object.defineProperty(Se,"GraphQLScalarType",{enumerable:!0,get:function(){return rt.GraphQLScalarType}});Object.defineProperty(Se,"GraphQLObjectType",{enumerable:!0,get:function(){return rt.GraphQLObjectType}});Object.defineProperty(Se,"GraphQLInterfaceType",{enumerable:!0,get:function(){return rt.GraphQLInterfaceType}});Object.defineProperty(Se,"GraphQLUnionType",{enumerable:!0,get:function(){return rt.GraphQLUnionType}});Object.defineProperty(Se,"GraphQLEnumType",{enumerable:!0,get:function(){return rt.GraphQLEnumType}});Object.defineProperty(Se,"GraphQLInputObjectType",{enumerable:!0,get:function(){return rt.GraphQLInputObjectType}});Object.defineProperty(Se,"GraphQLList",{enumerable:!0,get:function(){return rt.GraphQLList}});Object.defineProperty(Se,"GraphQLNonNull",{enumerable:!0,get:function(){return rt.GraphQLNonNull}});Object.defineProperty(Se,"isDirective",{enumerable:!0,get:function(){return Ha.isDirective}});Object.defineProperty(Se,"assertDirective",{enumerable:!0,get:function(){return Ha.assertDirective}});Object.defineProperty(Se,"GraphQLDirective",{enumerable:!0,get:function(){return Ha.GraphQLDirective}});Object.defineProperty(Se,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ha.isSpecifiedDirective}});Object.defineProperty(Se,"specifiedDirectives",{enumerable:!0,get:function(){return Ha.specifiedDirectives}});Object.defineProperty(Se,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ha.GraphQLIncludeDirective}});Object.defineProperty(Se,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ha.GraphQLSkipDirective}});Object.defineProperty(Se,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ha.GraphQLDeprecatedDirective}});Object.defineProperty(Se,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ha.GraphQLSpecifiedByDirective}});Object.defineProperty(Se,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ha.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Se,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Is.isSpecifiedScalarType}});Object.defineProperty(Se,"specifiedScalarTypes",{enumerable:!0,get:function(){return Is.specifiedScalarTypes}});Object.defineProperty(Se,"GraphQLInt",{enumerable:!0,get:function(){return Is.GraphQLInt}});Object.defineProperty(Se,"GraphQLFloat",{enumerable:!0,get:function(){return Is.GraphQLFloat}});Object.defineProperty(Se,"GraphQLString",{enumerable:!0,get:function(){return Is.GraphQLString}});Object.defineProperty(Se,"GraphQLBoolean",{enumerable:!0,get:function(){return Is.GraphQLBoolean}});Object.defineProperty(Se,"GraphQLID",{enumerable:!0,get:function(){return Is.GraphQLID}});Object.defineProperty(Se,"isIntrospectionType",{enumerable:!0,get:function(){return yi.isIntrospectionType}});Object.defineProperty(Se,"introspectionTypes",{enumerable:!0,get:function(){return yi.introspectionTypes}});Object.defineProperty(Se,"__Schema",{enumerable:!0,get:function(){return yi.__Schema}});Object.defineProperty(Se,"__Directive",{enumerable:!0,get:function(){return yi.__Directive}});Object.defineProperty(Se,"__DirectiveLocation",{enumerable:!0,get:function(){return yi.__DirectiveLocation}});Object.defineProperty(Se,"__Type",{enumerable:!0,get:function(){return yi.__Type}});Object.defineProperty(Se,"__Field",{enumerable:!0,get:function(){return yi.__Field}});Object.defineProperty(Se,"__InputValue",{enumerable:!0,get:function(){return yi.__InputValue}});Object.defineProperty(Se,"__EnumValue",{enumerable:!0,get:function(){return yi.__EnumValue}});Object.defineProperty(Se,"__TypeKind",{enumerable:!0,get:function(){return yi.__TypeKind}});Object.defineProperty(Se,"TypeKind",{enumerable:!0,get:function(){return yi.TypeKind}});Object.defineProperty(Se,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return yi.SchemaMetaFieldDef}});Object.defineProperty(Se,"TypeMetaFieldDef",{enumerable:!0,get:function(){return yi.TypeMetaFieldDef}});Object.defineProperty(Se,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return yi.TypeNameMetaFieldDef}});Object.defineProperty(Se,"validateSchema",{enumerable:!0,get:function(){return NR.validateSchema}});Object.defineProperty(Se,"assertValidSchema",{enumerable:!0,get:function(){return NR.assertValidSchema}});var rk=ks(),rt=bt(),Ha=gi(),Is=Ga(),yi=vi(),NR=rp()});var LR=G(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Object.defineProperty(Qt,"Source",{enumerable:!0,get:function(){return Y8.Source}});Object.defineProperty(Qt,"getLocation",{enumerable:!0,get:function(){return J8.getLocation}});Object.defineProperty(Qt,"printLocation",{enumerable:!0,get:function(){return xR.printLocation}});Object.defineProperty(Qt,"printSourceLocation",{enumerable:!0,get:function(){return xR.printSourceLocation}});Object.defineProperty(Qt,"Kind",{enumerable:!0,get:function(){return X8.Kind}});Object.defineProperty(Qt,"TokenKind",{enumerable:!0,get:function(){return Z8.TokenKind}});Object.defineProperty(Qt,"Lexer",{enumerable:!0,get:function(){return $8.Lexer}});Object.defineProperty(Qt,"parse",{enumerable:!0,get:function(){return nk.parse}});Object.defineProperty(Qt,"parseValue",{enumerable:!0,get:function(){return nk.parseValue}});Object.defineProperty(Qt,"parseType",{enumerable:!0,get:function(){return nk.parseType}});Object.defineProperty(Qt,"print",{enumerable:!0,get:function(){return eY.print}});Object.defineProperty(Qt,"visit",{enumerable:!0,get:function(){return gm.visit}});Object.defineProperty(Qt,"visitInParallel",{enumerable:!0,get:function(){return gm.visitInParallel}});Object.defineProperty(Qt,"getVisitFn",{enumerable:!0,get:function(){return gm.getVisitFn}});Object.defineProperty(Qt,"BREAK",{enumerable:!0,get:function(){return gm.BREAK}});Object.defineProperty(Qt,"Location",{enumerable:!0,get:function(){return CR.Location}});Object.defineProperty(Qt,"Token",{enumerable:!0,get:function(){return CR.Token}});Object.defineProperty(Qt,"isDefinitionNode",{enumerable:!0,get:function(){return No.isDefinitionNode}});Object.defineProperty(Qt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return No.isExecutableDefinitionNode}});Object.defineProperty(Qt,"isSelectionNode",{enumerable:!0,get:function(){return No.isSelectionNode}});Object.defineProperty(Qt,"isValueNode",{enumerable:!0,get:function(){return No.isValueNode}});Object.defineProperty(Qt,"isTypeNode",{enumerable:!0,get:function(){return No.isTypeNode}});Object.defineProperty(Qt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return No.isTypeSystemDefinitionNode}});Object.defineProperty(Qt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return No.isTypeDefinitionNode}});Object.defineProperty(Qt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return No.isTypeSystemExtensionNode}});Object.defineProperty(Qt,"isTypeExtensionNode",{enumerable:!0,get:function(){return No.isTypeExtensionNode}});Object.defineProperty(Qt,"DirectiveLocation",{enumerable:!0,get:function(){return tY.DirectiveLocation}});var Y8=mg(),J8=ig(),xR=l_(),X8=Jt(),Z8=Zl(),$8=Tg(),nk=tc(),eY=hi(),gm=hu(),CR=Xl(),No=ws(),tY=$l()});var IR=G(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Object.defineProperty(Du,"responsePathAsArray",{enumerable:!0,get:function(){return rY.pathToArray}});Object.defineProperty(Du,"execute",{enumerable:!0,get:function(){return mm.execute}});Object.defineProperty(Du,"executeSync",{enumerable:!0,get:function(){return mm.executeSync}});Object.defineProperty(Du,"defaultFieldResolver",{enumerable:!0,get:function(){return mm.defaultFieldResolver}});Object.defineProperty(Du,"defaultTypeResolver",{enumerable:!0,get:function(){return mm.defaultTypeResolver}});Object.defineProperty(Du,"getDirectiveValues",{enumerable:!0,get:function(){return nY.getDirectiveValues}});var rY=up(),mm=mp(),nY=pp()});var AR=G(ik=>{"use strict";Object.defineProperty(ik,"__esModule",{value:!0});ik.default=aY;var iY=qa();function aY(e){return typeof(e==null?void 0:e[iY.SYMBOL_ASYNC_ITERATOR])=="function"}});var FR=G(ak=>{"use strict";Object.defineProperty(ak,"__esModule",{value:!0});ak.default=uY;var RR=qa();function oY(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uY(e,t,r){var n=e[RR.SYMBOL_ASYNC_ITERATOR],i=n.call(e),o,s;typeof i.return=="function"&&(o=i.return,s=function(y){var b=function(){return Promise.reject(y)};return o.call(i).then(b,b)});function l(v){return v.done?v:jR(v.value,t).then(PR,s)}var d;if(r){var h=r;d=function(y){return jR(y,h).then(PR,s)}}return oY({next:function(){return i.next().then(l,d)},return:function(){return o?o.call(i).then(l,d):Promise.resolve({value:void 0,done:!0})},throw:function(y){return typeof i.throw=="function"?i.throw(y).then(l,d):Promise.reject(y).catch(s)}},RR.SYMBOL_ASYNC_ITERATOR,function(){return this})}function jR(e,t){return new Promise(function(r){return r(t(e))})}function PR(e){return{value:e,done:!1}}});var BR=G(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.subscribe=dY;ym.createSourceEventStream=QR;var sY=uk(jt()),MR=uk(AR()),ok=up(),qR=Je(),VR=qd(),lY=pp(),Sc=mp(),cY=um(),fY=uk(FR());function uk(e){return e&&e.__esModule?e:{default:e}}function dY(e,t,r,n,i,o,s,l){return arguments.length===1?GR(e):GR({schema:e,document:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,subscribeFieldResolver:l})}function UR(e){if(e instanceof qR.GraphQLError)return{errors:[e]};throw e}function GR(e){var t=e.schema,r=e.document,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,d=e.subscribeFieldResolver,h=QR(t,r,n,i,o,s,d),v=function(b){return(0,Sc.execute)({schema:t,document:r,rootValue:b,contextValue:i,variableValues:o,operationName:s,fieldResolver:l})};return h.then(function(y){return(0,MR.default)(y)?(0,fY.default)(y,v,UR):y})}function QR(e,t,r,n,i,o,s){return(0,Sc.assertValidExecutionArguments)(e,t,i),new Promise(function(l){var d=(0,Sc.buildExecutionContext)(e,t,r,n,i,o,s);l(Array.isArray(d)?{errors:d}:pY(d))}).catch(UR)}function pY(e){var t=e.schema,r=e.operation,n=e.variableValues,i=e.rootValue,o=(0,cY.getOperationRootType)(t,r),s=(0,Sc.collectFields)(e,o,r.selectionSet,Object.create(null),Object.create(null)),l=Object.keys(s),d=l[0],h=s[d],v=h[0],y=v.name.value,b=(0,Sc.getFieldDef)(t,o,y);if(!b)throw new qR.GraphQLError('The subscription field "'.concat(y,'" is not defined.'),h);var D=(0,ok.addPath)(void 0,d,o.name),_=(0,Sc.buildResolveInfo)(e,b,h,o,D);return new Promise(function(k){var T,S=(0,lY.getArgumentValues)(b,h[0],n),m=e.contextValue,w=(T=b.subscribe)!==null&&T!==void 0?T:e.fieldResolver;k(w(i,S,m,_))}).then(function(k){if(k instanceof Error)throw(0,VR.locatedError)(k,h,(0,ok.pathToArray)(D));if(!(0,MR.default)(k))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,sY.default)(k),"."));return k},function(k){throw(0,VR.locatedError)(k,h,(0,ok.pathToArray)(D))})}});var HR=G(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});Object.defineProperty(bm,"subscribe",{enumerable:!0,get:function(){return KR.subscribe}});Object.defineProperty(bm,"createSourceEventStream",{enumerable:!0,get:function(){return KR.createSourceEventStream}});var KR=BR()});var fk=G(ck=>{"use strict";Object.defineProperty(ck,"__esModule",{value:!0});ck.NoDeprecatedCustomRule=vY;var sk=hY(_n()),yp=Je(),lk=bt();function hY(e){return e&&e.__esModule?e:{default:e}}function vY(e){return{Field:function(r){var n=e.getFieldDef(),i=n==null?void 0:n.deprecationReason;if(n&&i!=null){var o=e.getParentType();o!=null||(0,sk.default)(0),e.reportError(new yp.GraphQLError("The field ".concat(o.name,".").concat(n.name," is deprecated. ").concat(i),r))}},Argument:function(r){var n=e.getArgument(),i=n==null?void 0:n.deprecationReason;if(n&&i!=null){var o=e.getDirective();if(o!=null)e.reportError(new yp.GraphQLError('Directive "@'.concat(o.name,'" argument "').concat(n.name,'" is deprecated. ').concat(i),r));else{var s=e.getParentType(),l=e.getFieldDef();s!=null&&l!=null||(0,sk.default)(0),e.reportError(new yp.GraphQLError('Field "'.concat(s.name,".").concat(l.name,'" argument "').concat(n.name,'" is deprecated. ').concat(i),r))}}},ObjectField:function(r){var n=(0,lk.getNamedType)(e.getParentInputType());if((0,lk.isInputObjectType)(n)){var i=n.getFields()[r.name.value],o=i==null?void 0:i.deprecationReason;o!=null&&e.reportError(new yp.GraphQLError("The input field ".concat(n.name,".").concat(i.name," is deprecated. ").concat(o),r))}},EnumValue:function(r){var n=e.getEnumValue(),i=n==null?void 0:n.deprecationReason;if(n&&i!=null){var o=(0,lk.getNamedType)(e.getInputType());o!=null||(0,sk.default)(0),e.reportError(new yp.GraphQLError('The enum value "'.concat(o.name,".").concat(n.name,'" is deprecated. ').concat(i),r))}}}}});var zR=G(dk=>{"use strict";Object.defineProperty(dk,"__esModule",{value:!0});dk.NoSchemaIntrospectionCustomRule=bY;var gY=Je(),mY=bt(),yY=vi();function bY(e){return{Field:function(r){var n=(0,mY.getNamedType)(e.getType());n&&(0,yY.isIntrospectionType)(n)&&e.reportError(new gY.GraphQLError('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(r.name.value,'".'),r))}}}});var WR=G(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});Object.defineProperty(ft,"validate",{enumerable:!0,get:function(){return TY.validate}});Object.defineProperty(ft,"ValidationContext",{enumerable:!0,get:function(){return _Y.ValidationContext}});Object.defineProperty(ft,"specifiedRules",{enumerable:!0,get:function(){return EY.specifiedRules}});Object.defineProperty(ft,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return SY.ExecutableDefinitionsRule}});Object.defineProperty(ft,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return kY.FieldsOnCorrectTypeRule}});Object.defineProperty(ft,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return OY.FragmentsOnCompositeTypesRule}});Object.defineProperty(ft,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return wY.KnownArgumentNamesRule}});Object.defineProperty(ft,"KnownDirectivesRule",{enumerable:!0,get:function(){return NY.KnownDirectivesRule}});Object.defineProperty(ft,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return DY.KnownFragmentNamesRule}});Object.defineProperty(ft,"KnownTypeNamesRule",{enumerable:!0,get:function(){return xY.KnownTypeNamesRule}});Object.defineProperty(ft,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return CY.LoneAnonymousOperationRule}});Object.defineProperty(ft,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return LY.NoFragmentCyclesRule}});Object.defineProperty(ft,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return IY.NoUndefinedVariablesRule}});Object.defineProperty(ft,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return AY.NoUnusedFragmentsRule}});Object.defineProperty(ft,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return RY.NoUnusedVariablesRule}});Object.defineProperty(ft,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return jY.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(ft,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return PY.PossibleFragmentSpreadsRule}});Object.defineProperty(ft,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return FY.ProvidedRequiredArgumentsRule}});Object.defineProperty(ft,"ScalarLeafsRule",{enumerable:!0,get:function(){return MY.ScalarLeafsRule}});Object.defineProperty(ft,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return qY.SingleFieldSubscriptionsRule}});Object.defineProperty(ft,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return VY.UniqueArgumentNamesRule}});Object.defineProperty(ft,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return UY.UniqueDirectivesPerLocationRule}});Object.defineProperty(ft,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return GY.UniqueFragmentNamesRule}});Object.defineProperty(ft,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return QY.UniqueInputFieldNamesRule}});Object.defineProperty(ft,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return BY.UniqueOperationNamesRule}});Object.defineProperty(ft,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return KY.UniqueVariableNamesRule}});Object.defineProperty(ft,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return HY.ValuesOfCorrectTypeRule}});Object.defineProperty(ft,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return zY.VariablesAreInputTypesRule}});Object.defineProperty(ft,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return WY.VariablesInAllowedPositionRule}});Object.defineProperty(ft,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return YY.LoneSchemaDefinitionRule}});Object.defineProperty(ft,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return JY.UniqueOperationTypesRule}});Object.defineProperty(ft,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return XY.UniqueTypeNamesRule}});Object.defineProperty(ft,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return ZY.UniqueEnumValueNamesRule}});Object.defineProperty(ft,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return $Y.UniqueFieldDefinitionNamesRule}});Object.defineProperty(ft,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return e7.UniqueDirectiveNamesRule}});Object.defineProperty(ft,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return t7.PossibleTypeExtensionsRule}});Object.defineProperty(ft,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return r7.NoDeprecatedCustomRule}});Object.defineProperty(ft,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return n7.NoSchemaIntrospectionCustomRule}});var TY=mc(),_Y=US(),EY=qS(),SY=TE(),kY=FE(),OY=LE(),wY=oS(),NY=rS(),DY=UE(),xY=xE(),CY=kE(),LY=WE(),IY=ZE(),AY=QE(),RY=eS(),jY=_S(),PY=HE(),FY=dS(),MY=jE(),qY=wE(),VY=sS(),UY=aS(),GY=qE(),QY=SS(),BY=EE(),KY=JE(),HY=cS(),zY=AE(),WY=hS(),YY=OS(),JY=NS(),XY=xS(),ZY=LS(),$Y=RS(),e7=PS(),t7=MS(),r7=fk(),n7=zR()});var YR=G(pk=>{"use strict";Object.defineProperty(pk,"__esModule",{value:!0});pk.formatError=o7;var i7=a7(Hi());function a7(e){return e&&e.__esModule?e:{default:e}}function o7(e){var t;e||(0,i7.default)(0,"Received null or undefined error.");var r=(t=e.message)!==null&&t!==void 0?t:"An unknown error occurred.",n=e.locations,i=e.path,o=e.extensions;return o?{message:r,locations:n,path:i,extensions:o}:{message:r,locations:n,path:i}}});var XR=G(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});Object.defineProperty(As,"GraphQLError",{enumerable:!0,get:function(){return JR.GraphQLError}});Object.defineProperty(As,"printError",{enumerable:!0,get:function(){return JR.printError}});Object.defineProperty(As,"syntaxError",{enumerable:!0,get:function(){return u7.syntaxError}});Object.defineProperty(As,"locatedError",{enumerable:!0,get:function(){return s7.locatedError}});Object.defineProperty(As,"formatError",{enumerable:!0,get:function(){return l7.formatError}});var JR=Je(),u7=lg(),s7=qd(),l7=YR()});var vk=G(hk=>{"use strict";Object.defineProperty(hk,"__esModule",{value:!0});hk.getIntrospectionQuery=d7;function ZR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function c7(e){for(var t=1;t{"use strict";Object.defineProperty(gk,"__esModule",{value:!0});gk.getOperationAST=h7;var p7=Jt();function h7(e,t){for(var r=null,n=0,i=e.definitions;n{"use strict";Object.defineProperty(yk,"__esModule",{value:!0});yk.introspectionFromSchema=E7;var v7=b7(_n()),g7=tc(),m7=mp(),y7=vk();function b7(e){return e&&e.__esModule?e:{default:e}}function $R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function T7(e){for(var t=1;t{"use strict";Object.defineProperty(bk,"__esModule",{value:!0});bk.buildClientSchema=C7;var S7=bp(Ni()),Ci=bp(jt()),k7=bp(Hi()),Tm=bp(Vd()),tj=bp(Ma()),O7=tc(),w7=ks(),N7=gi(),D7=Ga(),za=vi(),Li=bt(),x7=lp();function bp(e){return e&&e.__esModule?e:{default:e}}function C7(e,t){(0,tj.default)(e)&&(0,tj.default)(e.__schema)||(0,k7.default)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,Ci.default)(e),"."));for(var r=e.__schema,n=(0,Tm.default)(r.types,function(Q){return Q.name},function(Q){return k(Q)}),i=0,o=[].concat(D7.specifiedScalarTypes,za.introspectionTypes);i{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.extendSchema=M7;_p.extendSchemaImpl=dj;_p.getDescription=Rs;var L7=kc(Ni()),I7=kc(vu()),nj=kc(jt()),Tp=kc(w_()),ij=kc(_n()),A7=kc(Hi()),Ji=Jt(),R7=Zl(),j7=ec(),aj=ws(),P7=mc(),oj=pp(),uj=ks(),sj=Ga(),lj=vi(),_m=gi(),pr=bt(),cj=lp();function kc(e){return e&&e.__esModule?e:{default:e}}function fj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xt(e){for(var t=1;t0?r.reverse().join(` `):void 0}}});var mj=G(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.buildASTSchema=gj;Sm.buildSchema=z7;var V7=H7(Hi()),U7=Jt(),G7=tc(),Q7=mc(),B7=ks(),vj=gi(),K7=Tk();function H7(e){return e&&e.__esModule?e:{default:e}}function gj(e,t){e!=null&&e.kind===U7.Kind.DOCUMENT||(0,V7.default)(0,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,Q7.assertValidSDL)(e);var r={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},n=(0,K7.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(var i=0,o=n.types;i{"use strict";Object.defineProperty(Sk,"__esModule",{value:!0});Sk.lexicographicSortSchema=nJ;var W7=Ep(Ni()),Y7=Ep(jt()),J7=Ep(_n()),X7=Ep(Vd()),Z7=Ep(Ud()),$7=ks(),eJ=gi(),tJ=vi(),ri=bt();function Ep(e){return e&&e.__esModule?e:{default:e}}function yj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mr(e){for(var t=1;t{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.printSchema=oJ;Sp.printIntrospectionSchema=uJ;Sp.printType=Sj;var kk=xk(Ni()),iJ=xk(jt()),Tj=xk(_n()),Ok=hi(),aJ=ec(),_j=vi(),wk=Ga(),Nk=gi(),Oc=bt(),Dk=Zd();function xk(e){return e&&e.__esModule?e:{default:e}}function oJ(e,t){return Ej(e,function(r){return!(0,Nk.isSpecifiedDirective)(r)},sJ,t)}function uJ(e,t){return Ej(e,Nk.isSpecifiedDirective,_j.isIntrospectionType,t)}function sJ(e){return!(0,wk.isSpecifiedScalarType)(e)&&!(0,_j.isIntrospectionType)(e)}function Ej(e,t,r,n){var i=e.getDirectives().filter(t),o=(0,kk.default)(e.getTypeMap()).filter(r);return[lJ(e)].concat(i.map(function(s){return mJ(s,n)}),o.map(function(s){return Sj(s,n)})).filter(Boolean).join(` `)+` `}function lJ(e){if(!(e.description==null&&cJ(e))){var t=[],r=e.getQueryType();r&&t.push(" query: ".concat(r.name));var n=e.getMutationType();n&&t.push(" mutation: ".concat(n.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),Xi({},e)+`schema { `.concat(t.join(` `),` }`)}}function cJ(e){var t=e.getQueryType();if(t&&t.name!=="Query")return!1;var r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;var n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function Sj(e,t){if((0,Oc.isScalarType)(e))return fJ(e,t);if((0,Oc.isObjectType)(e))return dJ(e,t);if((0,Oc.isInterfaceType)(e))return pJ(e,t);if((0,Oc.isUnionType)(e))return hJ(e,t);if((0,Oc.isEnumType)(e))return vJ(e,t);if((0,Oc.isInputObjectType)(e))return gJ(e,t);(0,Tj.default)(0,"Unexpected type: "+(0,iJ.default)(e))}function fJ(e,t){return Xi(t,e)+"scalar ".concat(e.name)+yJ(e)}function kj(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(r){return r.name}).join(" & "):""}function dJ(e,t){return Xi(t,e)+"type ".concat(e.name)+kj(e)+Oj(t,e)}function pJ(e,t){return Xi(t,e)+"interface ".concat(e.name)+kj(e)+Oj(t,e)}function hJ(e,t){var r=e.getTypes(),n=r.length?" = "+r.join(" | "):"";return Xi(t,e)+"union "+e.name+n}function vJ(e,t){var r=e.getValues().map(function(n,i){return Xi(t,n," ",!i)+" "+n.name+Ik(n.deprecationReason)});return Xi(t,e)+"enum ".concat(e.name)+Ck(r)}function gJ(e,t){var r=(0,kk.default)(e.getFields()).map(function(n,i){return Xi(t,n," ",!i)+" "+Lk(n)});return Xi(t,e)+"input ".concat(e.name)+Ck(r)}function Oj(e,t){var r=(0,kk.default)(t.getFields()).map(function(n,i){return Xi(e,n," ",!i)+" "+n.name+wj(e,n.args," ")+": "+String(n.type)+Ik(n.deprecationReason)});return Ck(r)}function Ck(e){return e.length!==0?` { `+e.join(` `)+` }`:""}function wj(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t.length===0?"":t.every(function(n){return!n.description})?"("+t.map(Lk).join(", ")+")":`( `+t.map(function(n,i){return Xi(e,n," "+r,!i)+" "+r+Lk(n)}).join(` `)+` `+r+")"}function Lk(e){var t=(0,Dk.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=" = ".concat((0,Ok.print)(t))),r+Ik(e.deprecationReason)}function mJ(e,t){return Xi(t,e)+"directive @"+e.name+wj(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Ik(e){if(e==null)return"";var t=(0,Dk.astFromValue)(e,wk.GraphQLString);return t&&e!==Nk.DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+(0,Ok.print)(t)+")":" @deprecated"}function yJ(e){if(e.specifiedByUrl==null)return"";var t=e.specifiedByUrl,r=(0,Dk.astFromValue)(t,wk.GraphQLString);return r||(0,Tj.default)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,Ok.print)(r)+")"}function Xi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=t.description;if(i==null)return"";if((e==null?void 0:e.commentDescriptions)===!0)return bJ(i,r,n);var o=i.length>70,s=(0,aJ.printBlockString)(i,"",o),l=r&&!n?` `+r:r;return l+s.replace(/\n/g,` `+r)+` `}function bJ(e,t,r){var n=t&&!r?` `:"",i=e.split(` `).map(function(o){return t+(o!==""?"# "+o:"#")}).join(` `);return n+i+` `}});var Dj=G(Ak=>{"use strict";Object.defineProperty(Ak,"__esModule",{value:!0});Ak.concatAST=TJ;function TJ(e){for(var t=[],r=0;r{"use strict";Object.defineProperty(Rk,"__esModule",{value:!0});Rk.separateOperations=EJ;var Om=Jt(),_J=hu();function EJ(e){for(var t=[],r=Object.create(null),n=0,i=e.definitions;n{"use strict";Object.defineProperty(Pk,"__esModule",{value:!0});Pk.stripIgnoredCharacters=SJ;var Ij=mg(),jk=Zl(),Aj=Tg(),Rj=ec();function SJ(e){for(var t=(0,Ij.isSource)(e)?e:new Ij.Source(e),r=t.body,n=new Aj.Lexer(t),i="",o=!1;n.advance().kind!==jk.TokenKind.EOF;){var s=n.token,l=s.kind,d=!(0,Aj.isPunctuatorTokenKind)(s.kind);o&&(d||s.kind===jk.TokenKind.SPREAD)&&(i+=" ");var h=r.slice(s.start,s.end);l===jk.TokenKind.BLOCK_STRING?i+=kJ(h):i+=h,o=d}return i}function kJ(e){var t=e.slice(3,-3),r=(0,Rj.dedentBlockStringValue)(t);(0,Rj.getBlockStringIndentation)(r)>0&&(r=` `+r);var n=r[r.length-1],i=n==='"'&&r.slice(-4)!=='\\"""';return(i||n==="\\")&&(r+=` `),'"""'+r+'"""'}});var Kj=G(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.findBreakingChanges=IJ;xu.findDangerousChanges=AJ;xu.DangerousChangeType=xu.BreakingChangeType=void 0;var wc=kp(Ni()),Pj=kp(vu()),OJ=kp(jt()),Fj=kp(_n()),wJ=kp(Ud()),NJ=hi(),DJ=hu(),xJ=Ga(),Ct=bt(),CJ=Zd();function kp(e){return e&&e.__esModule?e:{default:e}}function Mj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qj(e){for(var t=1;t{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0});Fk.findDeprecatedUsages=GJ;var VJ=mc(),UJ=fk();function GJ(e,t){return(0,VJ.validate)(e,t,[UJ.NoDeprecatedCustomRule])}});var Xj=G(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});Object.defineProperty(yt,"getIntrospectionQuery",{enumerable:!0,get:function(){return QJ.getIntrospectionQuery}});Object.defineProperty(yt,"getOperationAST",{enumerable:!0,get:function(){return BJ.getOperationAST}});Object.defineProperty(yt,"getOperationRootType",{enumerable:!0,get:function(){return KJ.getOperationRootType}});Object.defineProperty(yt,"introspectionFromSchema",{enumerable:!0,get:function(){return HJ.introspectionFromSchema}});Object.defineProperty(yt,"buildClientSchema",{enumerable:!0,get:function(){return zJ.buildClientSchema}});Object.defineProperty(yt,"buildASTSchema",{enumerable:!0,get:function(){return zj.buildASTSchema}});Object.defineProperty(yt,"buildSchema",{enumerable:!0,get:function(){return zj.buildSchema}});Object.defineProperty(yt,"extendSchema",{enumerable:!0,get:function(){return Wj.extendSchema}});Object.defineProperty(yt,"getDescription",{enumerable:!0,get:function(){return Wj.getDescription}});Object.defineProperty(yt,"lexicographicSortSchema",{enumerable:!0,get:function(){return WJ.lexicographicSortSchema}});Object.defineProperty(yt,"printSchema",{enumerable:!0,get:function(){return Mk.printSchema}});Object.defineProperty(yt,"printType",{enumerable:!0,get:function(){return Mk.printType}});Object.defineProperty(yt,"printIntrospectionSchema",{enumerable:!0,get:function(){return Mk.printIntrospectionSchema}});Object.defineProperty(yt,"typeFromAST",{enumerable:!0,get:function(){return YJ.typeFromAST}});Object.defineProperty(yt,"valueFromAST",{enumerable:!0,get:function(){return JJ.valueFromAST}});Object.defineProperty(yt,"valueFromASTUntyped",{enumerable:!0,get:function(){return XJ.valueFromASTUntyped}});Object.defineProperty(yt,"astFromValue",{enumerable:!0,get:function(){return ZJ.astFromValue}});Object.defineProperty(yt,"TypeInfo",{enumerable:!0,get:function(){return Yj.TypeInfo}});Object.defineProperty(yt,"visitWithTypeInfo",{enumerable:!0,get:function(){return Yj.visitWithTypeInfo}});Object.defineProperty(yt,"coerceInputValue",{enumerable:!0,get:function(){return $J.coerceInputValue}});Object.defineProperty(yt,"concatAST",{enumerable:!0,get:function(){return eX.concatAST}});Object.defineProperty(yt,"separateOperations",{enumerable:!0,get:function(){return tX.separateOperations}});Object.defineProperty(yt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return rX.stripIgnoredCharacters}});Object.defineProperty(yt,"isEqualType",{enumerable:!0,get:function(){return qk.isEqualType}});Object.defineProperty(yt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return qk.isTypeSubTypeOf}});Object.defineProperty(yt,"doTypesOverlap",{enumerable:!0,get:function(){return qk.doTypesOverlap}});Object.defineProperty(yt,"assertValidName",{enumerable:!0,get:function(){return Jj.assertValidName}});Object.defineProperty(yt,"isValidNameError",{enumerable:!0,get:function(){return Jj.isValidNameError}});Object.defineProperty(yt,"BreakingChangeType",{enumerable:!0,get:function(){return wm.BreakingChangeType}});Object.defineProperty(yt,"DangerousChangeType",{enumerable:!0,get:function(){return wm.DangerousChangeType}});Object.defineProperty(yt,"findBreakingChanges",{enumerable:!0,get:function(){return wm.findBreakingChanges}});Object.defineProperty(yt,"findDangerousChanges",{enumerable:!0,get:function(){return wm.findDangerousChanges}});Object.defineProperty(yt,"findDeprecatedUsages",{enumerable:!0,get:function(){return nX.findDeprecatedUsages}});var QJ=vk(),BJ=mk(),KJ=um(),HJ=ej(),zJ=rj(),zj=mj(),Wj=Tk(),WJ=bj(),Mk=Nj(),YJ=Qa(),JJ=lp(),XJ=M_(),ZJ=Zd(),Yj=zg(),$J=XS(),eX=Dj(),tX=Lj(),rX=jj(),qk=Hd(),Jj=S_(),wm=Kj(),nX=Hj()});var ht=G(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Object.defineProperty(Z,"version",{enumerable:!0,get:function(){return Zj.version}});Object.defineProperty(Z,"versionInfo",{enumerable:!0,get:function(){return Zj.versionInfo}});Object.defineProperty(Z,"graphql",{enumerable:!0,get:function(){return $j.graphql}});Object.defineProperty(Z,"graphqlSync",{enumerable:!0,get:function(){return $j.graphqlSync}});Object.defineProperty(Z,"GraphQLSchema",{enumerable:!0,get:function(){return Oe.GraphQLSchema}});Object.defineProperty(Z,"GraphQLDirective",{enumerable:!0,get:function(){return Oe.GraphQLDirective}});Object.defineProperty(Z,"GraphQLScalarType",{enumerable:!0,get:function(){return Oe.GraphQLScalarType}});Object.defineProperty(Z,"GraphQLObjectType",{enumerable:!0,get:function(){return Oe.GraphQLObjectType}});Object.defineProperty(Z,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Oe.GraphQLInterfaceType}});Object.defineProperty(Z,"GraphQLUnionType",{enumerable:!0,get:function(){return Oe.GraphQLUnionType}});Object.defineProperty(Z,"GraphQLEnumType",{enumerable:!0,get:function(){return Oe.GraphQLEnumType}});Object.defineProperty(Z,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Oe.GraphQLInputObjectType}});Object.defineProperty(Z,"GraphQLList",{enumerable:!0,get:function(){return Oe.GraphQLList}});Object.defineProperty(Z,"GraphQLNonNull",{enumerable:!0,get:function(){return Oe.GraphQLNonNull}});Object.defineProperty(Z,"specifiedScalarTypes",{enumerable:!0,get:function(){return Oe.specifiedScalarTypes}});Object.defineProperty(Z,"GraphQLInt",{enumerable:!0,get:function(){return Oe.GraphQLInt}});Object.defineProperty(Z,"GraphQLFloat",{enumerable:!0,get:function(){return Oe.GraphQLFloat}});Object.defineProperty(Z,"GraphQLString",{enumerable:!0,get:function(){return Oe.GraphQLString}});Object.defineProperty(Z,"GraphQLBoolean",{enumerable:!0,get:function(){return Oe.GraphQLBoolean}});Object.defineProperty(Z,"GraphQLID",{enumerable:!0,get:function(){return Oe.GraphQLID}});Object.defineProperty(Z,"specifiedDirectives",{enumerable:!0,get:function(){return Oe.specifiedDirectives}});Object.defineProperty(Z,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Oe.GraphQLIncludeDirective}});Object.defineProperty(Z,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Oe.GraphQLSkipDirective}});Object.defineProperty(Z,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Oe.GraphQLDeprecatedDirective}});Object.defineProperty(Z,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Oe.GraphQLSpecifiedByDirective}});Object.defineProperty(Z,"TypeKind",{enumerable:!0,get:function(){return Oe.TypeKind}});Object.defineProperty(Z,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Oe.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Z,"introspectionTypes",{enumerable:!0,get:function(){return Oe.introspectionTypes}});Object.defineProperty(Z,"__Schema",{enumerable:!0,get:function(){return Oe.__Schema}});Object.defineProperty(Z,"__Directive",{enumerable:!0,get:function(){return Oe.__Directive}});Object.defineProperty(Z,"__DirectiveLocation",{enumerable:!0,get:function(){return Oe.__DirectiveLocation}});Object.defineProperty(Z,"__Type",{enumerable:!0,get:function(){return Oe.__Type}});Object.defineProperty(Z,"__Field",{enumerable:!0,get:function(){return Oe.__Field}});Object.defineProperty(Z,"__InputValue",{enumerable:!0,get:function(){return Oe.__InputValue}});Object.defineProperty(Z,"__EnumValue",{enumerable:!0,get:function(){return Oe.__EnumValue}});Object.defineProperty(Z,"__TypeKind",{enumerable:!0,get:function(){return Oe.__TypeKind}});Object.defineProperty(Z,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Oe.SchemaMetaFieldDef}});Object.defineProperty(Z,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Oe.TypeMetaFieldDef}});Object.defineProperty(Z,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Oe.TypeNameMetaFieldDef}});Object.defineProperty(Z,"isSchema",{enumerable:!0,get:function(){return Oe.isSchema}});Object.defineProperty(Z,"isDirective",{enumerable:!0,get:function(){return Oe.isDirective}});Object.defineProperty(Z,"isType",{enumerable:!0,get:function(){return Oe.isType}});Object.defineProperty(Z,"isScalarType",{enumerable:!0,get:function(){return Oe.isScalarType}});Object.defineProperty(Z,"isObjectType",{enumerable:!0,get:function(){return Oe.isObjectType}});Object.defineProperty(Z,"isInterfaceType",{enumerable:!0,get:function(){return Oe.isInterfaceType}});Object.defineProperty(Z,"isUnionType",{enumerable:!0,get:function(){return Oe.isUnionType}});Object.defineProperty(Z,"isEnumType",{enumerable:!0,get:function(){return Oe.isEnumType}});Object.defineProperty(Z,"isInputObjectType",{enumerable:!0,get:function(){return Oe.isInputObjectType}});Object.defineProperty(Z,"isListType",{enumerable:!0,get:function(){return Oe.isListType}});Object.defineProperty(Z,"isNonNullType",{enumerable:!0,get:function(){return Oe.isNonNullType}});Object.defineProperty(Z,"isInputType",{enumerable:!0,get:function(){return Oe.isInputType}});Object.defineProperty(Z,"isOutputType",{enumerable:!0,get:function(){return Oe.isOutputType}});Object.defineProperty(Z,"isLeafType",{enumerable:!0,get:function(){return Oe.isLeafType}});Object.defineProperty(Z,"isCompositeType",{enumerable:!0,get:function(){return Oe.isCompositeType}});Object.defineProperty(Z,"isAbstractType",{enumerable:!0,get:function(){return Oe.isAbstractType}});Object.defineProperty(Z,"isWrappingType",{enumerable:!0,get:function(){return Oe.isWrappingType}});Object.defineProperty(Z,"isNullableType",{enumerable:!0,get:function(){return Oe.isNullableType}});Object.defineProperty(Z,"isNamedType",{enumerable:!0,get:function(){return Oe.isNamedType}});Object.defineProperty(Z,"isRequiredArgument",{enumerable:!0,get:function(){return Oe.isRequiredArgument}});Object.defineProperty(Z,"isRequiredInputField",{enumerable:!0,get:function(){return Oe.isRequiredInputField}});Object.defineProperty(Z,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Oe.isSpecifiedScalarType}});Object.defineProperty(Z,"isIntrospectionType",{enumerable:!0,get:function(){return Oe.isIntrospectionType}});Object.defineProperty(Z,"isSpecifiedDirective",{enumerable:!0,get:function(){return Oe.isSpecifiedDirective}});Object.defineProperty(Z,"assertSchema",{enumerable:!0,get:function(){return Oe.assertSchema}});Object.defineProperty(Z,"assertDirective",{enumerable:!0,get:function(){return Oe.assertDirective}});Object.defineProperty(Z,"assertType",{enumerable:!0,get:function(){return Oe.assertType}});Object.defineProperty(Z,"assertScalarType",{enumerable:!0,get:function(){return Oe.assertScalarType}});Object.defineProperty(Z,"assertObjectType",{enumerable:!0,get:function(){return Oe.assertObjectType}});Object.defineProperty(Z,"assertInterfaceType",{enumerable:!0,get:function(){return Oe.assertInterfaceType}});Object.defineProperty(Z,"assertUnionType",{enumerable:!0,get:function(){return Oe.assertUnionType}});Object.defineProperty(Z,"assertEnumType",{enumerable:!0,get:function(){return Oe.assertEnumType}});Object.defineProperty(Z,"assertInputObjectType",{enumerable:!0,get:function(){return Oe.assertInputObjectType}});Object.defineProperty(Z,"assertListType",{enumerable:!0,get:function(){return Oe.assertListType}});Object.defineProperty(Z,"assertNonNullType",{enumerable:!0,get:function(){return Oe.assertNonNullType}});Object.defineProperty(Z,"assertInputType",{enumerable:!0,get:function(){return Oe.assertInputType}});Object.defineProperty(Z,"assertOutputType",{enumerable:!0,get:function(){return Oe.assertOutputType}});Object.defineProperty(Z,"assertLeafType",{enumerable:!0,get:function(){return Oe.assertLeafType}});Object.defineProperty(Z,"assertCompositeType",{enumerable:!0,get:function(){return Oe.assertCompositeType}});Object.defineProperty(Z,"assertAbstractType",{enumerable:!0,get:function(){return Oe.assertAbstractType}});Object.defineProperty(Z,"assertWrappingType",{enumerable:!0,get:function(){return Oe.assertWrappingType}});Object.defineProperty(Z,"assertNullableType",{enumerable:!0,get:function(){return Oe.assertNullableType}});Object.defineProperty(Z,"assertNamedType",{enumerable:!0,get:function(){return Oe.assertNamedType}});Object.defineProperty(Z,"getNullableType",{enumerable:!0,get:function(){return Oe.getNullableType}});Object.defineProperty(Z,"getNamedType",{enumerable:!0,get:function(){return Oe.getNamedType}});Object.defineProperty(Z,"validateSchema",{enumerable:!0,get:function(){return Oe.validateSchema}});Object.defineProperty(Z,"assertValidSchema",{enumerable:!0,get:function(){return Oe.assertValidSchema}});Object.defineProperty(Z,"Token",{enumerable:!0,get:function(){return Xt.Token}});Object.defineProperty(Z,"Source",{enumerable:!0,get:function(){return Xt.Source}});Object.defineProperty(Z,"Location",{enumerable:!0,get:function(){return Xt.Location}});Object.defineProperty(Z,"getLocation",{enumerable:!0,get:function(){return Xt.getLocation}});Object.defineProperty(Z,"printLocation",{enumerable:!0,get:function(){return Xt.printLocation}});Object.defineProperty(Z,"printSourceLocation",{enumerable:!0,get:function(){return Xt.printSourceLocation}});Object.defineProperty(Z,"Lexer",{enumerable:!0,get:function(){return Xt.Lexer}});Object.defineProperty(Z,"TokenKind",{enumerable:!0,get:function(){return Xt.TokenKind}});Object.defineProperty(Z,"parse",{enumerable:!0,get:function(){return Xt.parse}});Object.defineProperty(Z,"parseValue",{enumerable:!0,get:function(){return Xt.parseValue}});Object.defineProperty(Z,"parseType",{enumerable:!0,get:function(){return Xt.parseType}});Object.defineProperty(Z,"print",{enumerable:!0,get:function(){return Xt.print}});Object.defineProperty(Z,"visit",{enumerable:!0,get:function(){return Xt.visit}});Object.defineProperty(Z,"visitInParallel",{enumerable:!0,get:function(){return Xt.visitInParallel}});Object.defineProperty(Z,"getVisitFn",{enumerable:!0,get:function(){return Xt.getVisitFn}});Object.defineProperty(Z,"BREAK",{enumerable:!0,get:function(){return Xt.BREAK}});Object.defineProperty(Z,"Kind",{enumerable:!0,get:function(){return Xt.Kind}});Object.defineProperty(Z,"DirectiveLocation",{enumerable:!0,get:function(){return Xt.DirectiveLocation}});Object.defineProperty(Z,"isDefinitionNode",{enumerable:!0,get:function(){return Xt.isDefinitionNode}});Object.defineProperty(Z,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Xt.isExecutableDefinitionNode}});Object.defineProperty(Z,"isSelectionNode",{enumerable:!0,get:function(){return Xt.isSelectionNode}});Object.defineProperty(Z,"isValueNode",{enumerable:!0,get:function(){return Xt.isValueNode}});Object.defineProperty(Z,"isTypeNode",{enumerable:!0,get:function(){return Xt.isTypeNode}});Object.defineProperty(Z,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Xt.isTypeSystemDefinitionNode}});Object.defineProperty(Z,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Xt.isTypeDefinitionNode}});Object.defineProperty(Z,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Xt.isTypeSystemExtensionNode}});Object.defineProperty(Z,"isTypeExtensionNode",{enumerable:!0,get:function(){return Xt.isTypeExtensionNode}});Object.defineProperty(Z,"execute",{enumerable:!0,get:function(){return Nc.execute}});Object.defineProperty(Z,"executeSync",{enumerable:!0,get:function(){return Nc.executeSync}});Object.defineProperty(Z,"defaultFieldResolver",{enumerable:!0,get:function(){return Nc.defaultFieldResolver}});Object.defineProperty(Z,"defaultTypeResolver",{enumerable:!0,get:function(){return Nc.defaultTypeResolver}});Object.defineProperty(Z,"responsePathAsArray",{enumerable:!0,get:function(){return Nc.responsePathAsArray}});Object.defineProperty(Z,"getDirectiveValues",{enumerable:!0,get:function(){return Nc.getDirectiveValues}});Object.defineProperty(Z,"subscribe",{enumerable:!0,get:function(){return eP.subscribe}});Object.defineProperty(Z,"createSourceEventStream",{enumerable:!0,get:function(){return eP.createSourceEventStream}});Object.defineProperty(Z,"validate",{enumerable:!0,get:function(){return pt.validate}});Object.defineProperty(Z,"ValidationContext",{enumerable:!0,get:function(){return pt.ValidationContext}});Object.defineProperty(Z,"specifiedRules",{enumerable:!0,get:function(){return pt.specifiedRules}});Object.defineProperty(Z,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return pt.ExecutableDefinitionsRule}});Object.defineProperty(Z,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return pt.FieldsOnCorrectTypeRule}});Object.defineProperty(Z,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return pt.FragmentsOnCompositeTypesRule}});Object.defineProperty(Z,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return pt.KnownArgumentNamesRule}});Object.defineProperty(Z,"KnownDirectivesRule",{enumerable:!0,get:function(){return pt.KnownDirectivesRule}});Object.defineProperty(Z,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return pt.KnownFragmentNamesRule}});Object.defineProperty(Z,"KnownTypeNamesRule",{enumerable:!0,get:function(){return pt.KnownTypeNamesRule}});Object.defineProperty(Z,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return pt.LoneAnonymousOperationRule}});Object.defineProperty(Z,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return pt.NoFragmentCyclesRule}});Object.defineProperty(Z,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return pt.NoUndefinedVariablesRule}});Object.defineProperty(Z,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return pt.NoUnusedFragmentsRule}});Object.defineProperty(Z,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return pt.NoUnusedVariablesRule}});Object.defineProperty(Z,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return pt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Z,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return pt.PossibleFragmentSpreadsRule}});Object.defineProperty(Z,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return pt.ProvidedRequiredArgumentsRule}});Object.defineProperty(Z,"ScalarLeafsRule",{enumerable:!0,get:function(){return pt.ScalarLeafsRule}});Object.defineProperty(Z,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return pt.SingleFieldSubscriptionsRule}});Object.defineProperty(Z,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return pt.UniqueArgumentNamesRule}});Object.defineProperty(Z,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return pt.UniqueDirectivesPerLocationRule}});Object.defineProperty(Z,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return pt.UniqueFragmentNamesRule}});Object.defineProperty(Z,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return pt.UniqueInputFieldNamesRule}});Object.defineProperty(Z,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return pt.UniqueOperationNamesRule}});Object.defineProperty(Z,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return pt.UniqueVariableNamesRule}});Object.defineProperty(Z,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return pt.ValuesOfCorrectTypeRule}});Object.defineProperty(Z,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return pt.VariablesAreInputTypesRule}});Object.defineProperty(Z,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return pt.VariablesInAllowedPositionRule}});Object.defineProperty(Z,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return pt.LoneSchemaDefinitionRule}});Object.defineProperty(Z,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return pt.UniqueOperationTypesRule}});Object.defineProperty(Z,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return pt.UniqueTypeNamesRule}});Object.defineProperty(Z,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return pt.UniqueEnumValueNamesRule}});Object.defineProperty(Z,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return pt.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Z,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return pt.UniqueDirectiveNamesRule}});Object.defineProperty(Z,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return pt.PossibleTypeExtensionsRule}});Object.defineProperty(Z,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return pt.NoDeprecatedCustomRule}});Object.defineProperty(Z,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return pt.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Z,"GraphQLError",{enumerable:!0,get:function(){return Np.GraphQLError}});Object.defineProperty(Z,"syntaxError",{enumerable:!0,get:function(){return Np.syntaxError}});Object.defineProperty(Z,"locatedError",{enumerable:!0,get:function(){return Np.locatedError}});Object.defineProperty(Z,"printError",{enumerable:!0,get:function(){return Np.printError}});Object.defineProperty(Z,"formatError",{enumerable:!0,get:function(){return Np.formatError}});Object.defineProperty(Z,"getIntrospectionQuery",{enumerable:!0,get:function(){return St.getIntrospectionQuery}});Object.defineProperty(Z,"getOperationAST",{enumerable:!0,get:function(){return St.getOperationAST}});Object.defineProperty(Z,"getOperationRootType",{enumerable:!0,get:function(){return St.getOperationRootType}});Object.defineProperty(Z,"introspectionFromSchema",{enumerable:!0,get:function(){return St.introspectionFromSchema}});Object.defineProperty(Z,"buildClientSchema",{enumerable:!0,get:function(){return St.buildClientSchema}});Object.defineProperty(Z,"buildASTSchema",{enumerable:!0,get:function(){return St.buildASTSchema}});Object.defineProperty(Z,"buildSchema",{enumerable:!0,get:function(){return St.buildSchema}});Object.defineProperty(Z,"getDescription",{enumerable:!0,get:function(){return St.getDescription}});Object.defineProperty(Z,"extendSchema",{enumerable:!0,get:function(){return St.extendSchema}});Object.defineProperty(Z,"lexicographicSortSchema",{enumerable:!0,get:function(){return St.lexicographicSortSchema}});Object.defineProperty(Z,"printSchema",{enumerable:!0,get:function(){return St.printSchema}});Object.defineProperty(Z,"printType",{enumerable:!0,get:function(){return St.printType}});Object.defineProperty(Z,"printIntrospectionSchema",{enumerable:!0,get:function(){return St.printIntrospectionSchema}});Object.defineProperty(Z,"typeFromAST",{enumerable:!0,get:function(){return St.typeFromAST}});Object.defineProperty(Z,"valueFromAST",{enumerable:!0,get:function(){return St.valueFromAST}});Object.defineProperty(Z,"valueFromASTUntyped",{enumerable:!0,get:function(){return St.valueFromASTUntyped}});Object.defineProperty(Z,"astFromValue",{enumerable:!0,get:function(){return St.astFromValue}});Object.defineProperty(Z,"TypeInfo",{enumerable:!0,get:function(){return St.TypeInfo}});Object.defineProperty(Z,"visitWithTypeInfo",{enumerable:!0,get:function(){return St.visitWithTypeInfo}});Object.defineProperty(Z,"coerceInputValue",{enumerable:!0,get:function(){return St.coerceInputValue}});Object.defineProperty(Z,"concatAST",{enumerable:!0,get:function(){return St.concatAST}});Object.defineProperty(Z,"separateOperations",{enumerable:!0,get:function(){return St.separateOperations}});Object.defineProperty(Z,"stripIgnoredCharacters",{enumerable:!0,get:function(){return St.stripIgnoredCharacters}});Object.defineProperty(Z,"isEqualType",{enumerable:!0,get:function(){return St.isEqualType}});Object.defineProperty(Z,"isTypeSubTypeOf",{enumerable:!0,get:function(){return St.isTypeSubTypeOf}});Object.defineProperty(Z,"doTypesOverlap",{enumerable:!0,get:function(){return St.doTypesOverlap}});Object.defineProperty(Z,"assertValidName",{enumerable:!0,get:function(){return St.assertValidName}});Object.defineProperty(Z,"isValidNameError",{enumerable:!0,get:function(){return St.isValidNameError}});Object.defineProperty(Z,"BreakingChangeType",{enumerable:!0,get:function(){return St.BreakingChangeType}});Object.defineProperty(Z,"DangerousChangeType",{enumerable:!0,get:function(){return St.DangerousChangeType}});Object.defineProperty(Z,"findBreakingChanges",{enumerable:!0,get:function(){return St.findBreakingChanges}});Object.defineProperty(Z,"findDangerousChanges",{enumerable:!0,get:function(){return St.findDangerousChanges}});Object.defineProperty(Z,"findDeprecatedUsages",{enumerable:!0,get:function(){return St.findDeprecatedUsages}});var Zj=m1(),$j=wR(),Oe=DR(),Xt=LR(),Nc=IR(),eP=HR(),pt=WR(),Np=XR(),St=Xj()});var rP=G((Xoe,tP)=>{tP.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n{"use strict";var iX=rP(),nP={"text/plain":"Text","text/html":"Url",default:"Text"},aX="Copy to clipboard: #{key}, Enter";function oX(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function uX(e,t){var r,n,i,o,s,l,d=!1;t||(t={}),r=t.debug||!1;try{i=iX(),o=document.createRange(),s=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(v){if(v.stopPropagation(),t.format)if(v.preventDefault(),typeof v.clipboardData=="undefined"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=nP[t.format]||nP.default;window.clipboardData.setData(y,e)}else v.clipboardData.clearData(),v.clipboardData.setData(t.format,e);t.onCopy&&(v.preventDefault(),t.onCopy(v.clipboardData))}),document.body.appendChild(l),o.selectNodeContents(l),s.addRange(o);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");d=!0}catch(v){r&&console.error("unable to copy using execCommand: ",v),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(y){r&&console.error("unable to copy using clipboardData: ",y),r&&console.error("falling back to prompt"),n=oX("message"in t?t.message:aX),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),l&&document.body.removeChild(l),i()}return d}iP.exports=uX});var Xk=G((Oue,Fm)=>{"use strict";function aF(e,t){if(e!=null)return e;var r=new Error(t!==void 0?t:"Got unexpected "+e);throw r.framesToPop=1,r}Fm.exports=aF;Fm.exports.default=aF;Object.defineProperty(Fm.exports,"__esModule",{value:!0})});var pF=G((Nse,xX)=>{xX.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var oO=G((Dse,hF)=>{"use strict";hF.exports=pF()});var Gm=G((xse,vF)=>{vF.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]/});var yF=G((Cse,mF)=>{"use strict";var gF={};function CX(e){var t,r,n=gF[e];if(n)return n;for(n=gF[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&o<=57343){if(o>=55296&&o<=56319&&n+1=56320&&s<=57343)){d+=encodeURIComponent(e[n]+e[n+1]),n++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(e[n])}return d}Qm.defaultChars=";/?:@&=+$,-_.!~*'()#";Qm.componentChars="-_.!~*'()";mF.exports=Qm});var _F=G((Lse,TF)=>{"use strict";var bF={};function LX(e){var t,r,n=bF[e];if(n)return n;for(n=bF[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t=55296&&v<=57343?y+="\uFFFD\uFFFD\uFFFD":y+=String.fromCharCode(v),i+=6;continue}if((s&248)==240&&i+91114111?y+="\uFFFD\uFFFD\uFFFD\uFFFD":(v-=65536,y+=String.fromCharCode(55296+(v>>10),56320+(v&1023))),i+=9;continue}y+="\uFFFD"}return y})}Bm.defaultChars=";/?:@&=+$,#";Bm.componentChars="";TF.exports=Bm});var SF=G((Ise,EF)=>{"use strict";EF.exports=function(t){var r="";return r+=t.protocol||"",r+=t.slashes?"//":"",r+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?r+="["+t.hostname+"]":r+=t.hostname||"",r+=t.port?":"+t.port:"",r+=t.pathname||"",r+=t.search||"",r+=t.hash||"",r}});var CF=G((Ase,xF)=>{"use strict";function Km(){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 IX=/^([a-z0-9.+-]+:)/i,AX=/:[0-9]*$/,RX=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,jX=["<",">",'"',"`"," ","\r",` `," "],PX=["{","}","|","\\","^","`"].concat(jX),FX=["'"].concat(PX),kF=["%","/","?",";","#"].concat(FX),OF=["/","?","#"],MX=255,wF=/^[+a-z0-9A-Z_-]{0,63}$/,qX=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,NF={javascript:!0,"javascript:":!0},DF={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function VX(e,t){if(e&&e instanceof Km)return e;var r=new Km;return r.parse(e,t),r}Km.prototype.parse=function(e,t){var r,n,i,o,s,l=e;if(l=l.trim(),!t&&e.split("#").length===1){var d=RX.exec(l);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=IX.exec(l);if(h&&(h=h[0],i=h.toLowerCase(),this.protocol=h,l=l.substr(h.length)),(t||h||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=l.substr(0,2)==="//",s&&!(h&&NF[h])&&(l=l.substr(2),this.slashes=!0)),!NF[h]&&(s||h&&!DF[h])){var v=-1;for(r=0;r127?S+="x":S+=T[m];if(!S.match(wF)){var x=k.slice(0,r),L=k.slice(r+1),O=T.match(qX);O&&(x.push(O[1]),L.unshift(O[2])),L.length&&(l=L.join(".")+l),this.hostname=x.join(".");break}}}}this.hostname.length>MX&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var R=l.indexOf("#");R!==-1&&(this.hash=l.substr(R),l=l.slice(0,R));var M=l.indexOf("?");return M!==-1&&(this.search=l.substr(M),l=l.slice(0,M)),l&&(this.pathname=l),DF[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Km.prototype.parseHost=function(e){var t=AX.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};xF.exports=VX});var uO=G((Rse,Rp)=>{"use strict";Rp.exports.encode=yF();Rp.exports.decode=_F();Rp.exports.format=SF();Rp.exports.parse=CF()});var sO=G((jse,LF)=>{LF.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var lO=G((Pse,IF)=>{IF.exports=/[\0-\x1F\x7F-\x9F]/});var RF=G((Fse,AF)=>{AF.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]/});var cO=G((Mse,jF)=>{jF.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var PF=G(Ic=>{"use strict";Ic.Any=sO();Ic.Cc=lO();Ic.Cf=RF();Ic.P=Gm();Ic.Z=cO()});var Pt=G(en=>{"use strict";function UX(e){return Object.prototype.toString.call(e)}function GX(e){return UX(e)==="[object String]"}var QX=Object.prototype.hasOwnProperty;function FF(e,t){return QX.call(e,t)}function BX(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){if(!!r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function KX(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function MF(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function qF(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var VF=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,HX=/&([a-z#][a-z0-9]{1,31});/gi,zX=new RegExp(VF.source+"|"+HX.source,"gi"),WX=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,UF=oO();function YX(e,t){var r=0;return FF(UF,t)?UF[t]:t.charCodeAt(0)===35&&WX.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),MF(r))?qF(r):e}function JX(e){return e.indexOf("\\")<0?e:e.replace(VF,"$1")}function XX(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(zX,function(t,r,n){return r||YX(t,n)})}var ZX=/[&<>"]/,$X=/[&<>"]/g,eZ={"&":"&","<":"<",">":">",'"':"""};function tZ(e){return eZ[e]}function rZ(e){return ZX.test(e)?e.replace($X,tZ):e}var nZ=/[.?*+^$[\]\\(){}|-]/g;function iZ(e){return e.replace(nZ,"\\$&")}function aZ(e){switch(e){case 9:case 32:return!0}return!1}function oZ(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}var uZ=Gm();function sZ(e){return uZ.test(e)}function lZ(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 cZ(e){return e=e.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(e=e.replace(/ẞ/g,"\xDF")),e.toLowerCase().toUpperCase()}en.lib={};en.lib.mdurl=uO();en.lib.ucmicro=PF();en.assign=BX;en.isString=GX;en.has=FF;en.unescapeMd=JX;en.unescapeAll=XX;en.isValidEntityCode=MF;en.fromCodePoint=qF;en.escapeHtml=rZ;en.arrayReplaceAt=KX;en.isSpace=aZ;en.isWhiteSpace=oZ;en.isMdAsciiPunct=lZ;en.isPunctChar=sZ;en.escapeRE=iZ;en.normalizeReference=cZ});var QF=G((Use,GF)=>{"use strict";GF.exports=function(t,r,n){var i,o,s,l,d=-1,h=t.posMax,v=t.pos;for(t.pos=r+1,i=1;t.pos{"use strict";var BF=Pt().unescapeAll;KF.exports=function(t,r,n){var i,o,s=0,l=r,d={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(r)===60){for(r++;r32))return d;if(i===41){if(o===0)break;o--}r++}return l===r||o!==0||(d.str=BF(t.slice(l,r)),d.lines=s,d.pos=r,d.ok=!0),d}});var WF=G((Qse,zF)=>{"use strict";var fZ=Pt().unescapeAll;zF.exports=function(t,r,n){var i,o,s=0,l=r,d={ok:!1,pos:0,lines:0,str:""};if(r>=n||(o=t.charCodeAt(r),o!==34&&o!==39&&o!==40))return d;for(r++,o===40&&(o=41);r{"use strict";Hm.parseLinkLabel=QF();Hm.parseLinkDestination=HF();Hm.parseLinkTitle=WF()});var XF=G((Kse,JF)=>{"use strict";var dZ=Pt().assign,pZ=Pt().unescapeAll,Fs=Pt().escapeHtml,Wa={};Wa.code_inline=function(e,t,r,n,i){var o=e[t];return""+Fs(e[t].content)+""};Wa.code_block=function(e,t,r,n,i){var o=e[t];return""+Fs(e[t].content)+` `};Wa.fence=function(e,t,r,n,i){var o=e[t],s=o.info?pZ(o.info).trim():"",l="",d="",h,v,y,b,D;return s&&(y=s.split(/(\s+)/g),l=y[0],d=y.slice(2).join("")),r.highlight?h=r.highlight(o.content,l,d)||Fs(o.content):h=Fs(o.content),h.indexOf(""+h+` `):"
"+h+`
`};Wa.image=function(e,t,r,n,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(e,t,r)};Wa.hardbreak=function(e,t,r){return r.xhtmlOut?`
`:`
`};Wa.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`
`:`
`:` `};Wa.text=function(e,t){return Fs(e[t].content)};Wa.html_block=function(e,t){return e[t].content};Wa.html_inline=function(e,t){return e[t].content};function Ac(){this.rules=dZ({},Wa)}Ac.prototype.renderAttrs=function(t){var r,n,i;if(!t.attrs)return"";for(i="",r=0,n=t.attrs.length;r `:">",o)};Ac.prototype.renderInline=function(e,t,r){for(var n,i="",o=this.rules,s=0,l=e.length;s{"use strict";function Oa(){this.__rules__=[],this.__cache__=null}Oa.prototype.__find__=function(e){for(var t=0;t{"use strict";var hZ=/\r\n?|\n/g,vZ=/\0/g;$F.exports=function(t){var r;r=t.src.replace(hZ,` `),r=r.replace(vZ,"\uFFFD"),t.src=r}});var rM=G((Wse,tM)=>{"use strict";tM.exports=function(t){var r;t.inlineMode?(r=new t.Token("inline","",0),r.content=t.src,r.map=[0,1],r.children=[],t.tokens.push(r)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var iM=G((Yse,nM)=>{"use strict";nM.exports=function(t){var r=t.tokens,n,i,o;for(i=0,o=r.length;i{"use strict";var gZ=Pt().arrayReplaceAt;function mZ(e){return/^\s]/i.test(e)}function yZ(e){return/^<\/a\s*>/i.test(e)}aM.exports=function(t){var r,n,i,o,s,l,d,h,v,y,b,D,_,k,T,S,m=t.tokens,w;if(!!t.md.options.linkify){for(n=0,i=m.length;n=0;r--){if(l=o[r],l.type==="link_close"){for(r--;o[r].level!==l.level&&o[r].type!=="link_open";)r--;continue}if(l.type==="html_inline"&&(mZ(l.content)&&_>0&&_--,yZ(l.content)&&_++),!(_>0)&&l.type==="text"&&t.md.linkify.test(l.content)){for(v=l.content,w=t.md.linkify.match(v),d=[],D=l.level,b=0,h=0;hb&&(s=new t.Token("text","",0),s.content=v.slice(b,y),s.level=D,d.push(s)),s=new t.Token("link_open","a",1),s.attrs=[["href",T]],s.level=D++,s.markup="linkify",s.info="auto",d.push(s),s=new t.Token("text","",0),s.content=S,s.level=D,d.push(s),s=new t.Token("link_close","a",-1),s.level=--D,s.markup="linkify",s.info="auto",d.push(s),b=w[h].lastIndex);b{"use strict";var uM=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,bZ=/\((c|tm|r|p)\)/i,TZ=/\((c|tm|r|p)\)/ig,_Z={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function EZ(e,t){return _Z[t.toLowerCase()]}function SZ(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&(r.content=r.content.replace(TZ,EZ)),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}function kZ(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&uM.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}sM.exports=function(t){var r;if(!!t.md.options.typographer)for(r=t.tokens.length-1;r>=0;r--)t.tokens[r].type==="inline"&&(bZ.test(t.tokens[r].content)&&SZ(t.tokens[r].children),uM.test(t.tokens[r].content)&&kZ(t.tokens[r].children))}});var gM=G((Zse,vM)=>{"use strict";var cM=Pt().isWhiteSpace,fM=Pt().isPunctChar,dM=Pt().isMdAsciiPunct,OZ=/['"]/,pM=/['"]/g,hM="\u2019";function Wm(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function wZ(e,t){var r,n,i,o,s,l,d,h,v,y,b,D,_,k,T,S,m,w,x,L,O;for(x=[],r=0;r=0&&!(x[m].level<=d);m--);if(x.length=m+1,n.type!=="text")continue;i=n.content,s=0,l=i.length;e:for(;s=0)v=i.charCodeAt(o.index-1);else for(m=r-1;m>=0&&!(e[m].type==="softbreak"||e[m].type==="hardbreak");m--)if(!!e[m].content){v=e[m].content.charCodeAt(e[m].content.length-1);break}if(y=32,s=48&&v<=57&&(S=T=!1),T&&S&&(T=b,S=D),!T&&!S){w&&(n.content=Wm(n.content,o.index,hM));continue}if(S){for(m=x.length-1;m>=0&&(h=x[m],!(x[m].level=0;r--)t.tokens[r].type!=="inline"||!OZ.test(t.tokens[r].content)||wZ(t.tokens[r].children,t)}});var Ym=G(($se,mM)=>{"use strict";function Rc(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Rc.prototype.attrIndex=function(t){var r,n,i;if(!this.attrs)return-1;for(r=this.attrs,n=0,i=r.length;n=0&&(n=this.attrs[r][1]),n};Rc.prototype.attrJoin=function(t,r){var n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};mM.exports=Rc});var TM=G((ele,bM)=>{"use strict";var NZ=Ym();function yM(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}yM.prototype.Token=NZ;bM.exports=yM});var EM=G((tle,_M)=>{"use strict";var DZ=zm(),fO=[["normalize",eM()],["block",rM()],["inline",iM()],["linkify",oM()],["replacements",lM()],["smartquotes",gM()]];function dO(){this.ruler=new DZ;for(var e=0;e{"use strict";var pO=Pt().isSpace;function hO(e,t){var r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.substr(r,n-r)}function SM(e){var t=[],r=0,n=e.length,i,o=!1,s=0,l="";for(i=e.charCodeAt(r);rn||(v=r+1,t.sCount[v]=4||(l=t.bMarks[v]+t.tShift[v],l>=t.eMarks[v])||(L=t.src.charCodeAt(l++),L!==124&&L!==45&&L!==58)||l>=t.eMarks[v]||(O=t.src.charCodeAt(l++),O!==124&&O!==45&&O!==58&&!pO(O))||L===45&&pO(O))return!1;for(;l=4||(y=SM(s),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),b=y.length,b===0||b!==_.length))return!1;if(i)return!0;for(m=t.parentType,t.parentType="table",x=t.md.block.ruler.getRules("blockquote"),D=t.push("table_open","table",1),D.map=T=[r,0],D=t.push("thead_open","thead",1),D.map=[r,r+1],D=t.push("tr_open","tr",1),D.map=[r,r+1],d=0;d=4)break;for(y=SM(s),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),v===r+2&&(D=t.push("tbody_open","tbody",1),D.map=S=[r+2,0]),D=t.push("tr_open","tr",1),D.map=[v,v+1],d=0;d{"use strict";wM.exports=function(t,r,n){var i,o,s;if(t.sCount[r]-t.blkIndent<4)return!1;for(o=i=r+1;i=4){i++,o=i;continue}break}return t.line=o,s=t.push("code_block","code",0),s.content=t.getLines(r,o,4+t.blkIndent,!1)+` `,s.map=[r,t.line],!0}});var xM=G((ile,DM)=>{"use strict";DM.exports=function(t,r,n,i){var o,s,l,d,h,v,y,b=!1,D=t.bMarks[r]+t.tShift[r],_=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||D+3>_||(o=t.src.charCodeAt(D),o!==126&&o!==96)||(h=D,D=t.skipChars(D,o),s=D-h,s<3)||(y=t.src.slice(h,D),l=t.src.slice(D,_),o===96&&l.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(d=r;d++,!(d>=n||(D=h=t.bMarks[d]+t.tShift[d],_=t.eMarks[d],D<_&&t.sCount[d]=4)&&(D=t.skipChars(D,o),!(D-h{"use strict";var CM=Pt().isSpace;LM.exports=function(t,r,n,i){var o,s,l,d,h,v,y,b,D,_,k,T,S,m,w,x,L,O,R,M,q=t.lineMax,z=t.bMarks[r]+t.tShift[r],B=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(z++)!==62)return!1;if(i)return!0;for(d=D=t.sCount[r]+1,t.src.charCodeAt(z)===32?(z++,d++,D++,o=!1,x=!0):t.src.charCodeAt(z)===9?(x=!0,(t.bsCount[r]+D)%4==3?(z++,d++,D++,o=!1):o=!0):x=!1,_=[t.bMarks[r]],t.bMarks[r]=z;z=B,m=[t.sCount[r]],t.sCount[r]=D-d,w=[t.tShift[r]],t.tShift[r]=z-t.bMarks[r],O=t.md.block.ruler.getRules("blockquote"),S=t.parentType,t.parentType="blockquote",b=r+1;b=B));b++){if(t.src.charCodeAt(z++)===62&&!M){for(d=D=t.sCount[b]+1,t.src.charCodeAt(z)===32?(z++,d++,D++,o=!1,x=!0):t.src.charCodeAt(z)===9?(x=!0,(t.bsCount[b]+D)%4==3?(z++,d++,D++,o=!1):o=!0):x=!1,_.push(t.bMarks[b]),t.bMarks[b]=z;z=B,k.push(t.bsCount[b]),t.bsCount[b]=t.sCount[b]+1+(x?1:0),m.push(t.sCount[b]),t.sCount[b]=D-d,w.push(t.tShift[b]),t.tShift[b]=z-t.bMarks[b];continue}if(v)break;for(L=!1,l=0,h=O.length;l",R.map=y=[r,0],t.md.block.tokenize(t,r,b),R=t.push("blockquote_close","blockquote",-1),R.markup=">",t.lineMax=q,t.parentType=S,y[1]=t.line,l=0;l{"use strict";var xZ=Pt().isSpace;AM.exports=function(t,r,n,i){var o,s,l,d,h=t.bMarks[r]+t.tShift[r],v=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(h++),o!==42&&o!==45&&o!==95))return!1;for(s=1;h{"use strict";var jM=Pt().isSpace;function PM(e,t){var r,n,i,o;return n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],r=e.src.charCodeAt(n++),r!==42&&r!==45&&r!==43||n=o||(r=e.src.charCodeAt(i++),r<48||r>57))return-1;for(;;){if(i>=o)return-1;if(r=e.src.charCodeAt(i++),r>=48&&r<=57){if(i-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return i=4||t.listIndent>=0&&t.sCount[r]-t.listIndent>=4&&t.sCount[r]=t.blkIndent&&(Fe=!0),(B=FM(t,r))>=0){if(y=!0,P=t.bMarks[r]+t.tShift[r],S=Number(t.src.slice(P,B-1)),Fe&&S!==1)return!1}else if((B=PM(t,r))>=0)y=!1;else return!1;if(Fe&&t.skipSpaces(B)>=t.eMarks[r])return!1;if(T=t.src.charCodeAt(B-1),i)return!0;for(k=t.tokens.length,y?(ge=t.push("ordered_list_open","ol",1),S!==1&&(ge.attrs=[["start",S]])):ge=t.push("bullet_list_open","ul",1),ge.map=_=[r,0],ge.markup=String.fromCharCode(T),w=r,Q=!1,xe=t.md.block.ruler.getRules("list"),O=t.parentType,t.parentType="list";w=m?h=1:h=x-v,h>4&&(h=1),d=v+h,ge=t.push("list_item_open","li",1),ge.markup=String.fromCharCode(T),ge.map=b=[r,0],y&&(ge.info=t.src.slice(P,B-1)),q=t.tight,M=t.tShift[r],R=t.sCount[r],L=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=d,t.tight=!0,t.tShift[r]=s-t.bMarks[r],t.sCount[r]=x,s>=m&&t.isEmpty(r+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,r,n,!0),(!t.tight||Q)&&(Le=!1),Q=t.line-r>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=L,t.tShift[r]=M,t.sCount[r]=R,t.tight=q,ge=t.push("list_item_close","li",-1),ge.markup=String.fromCharCode(T),w=r=t.line,b[1]=w,s=t.bMarks[r],w>=n||t.sCount[w]=4)break;for(he=!1,l=0,D=xe.length;l{"use strict";var LZ=Pt().normalizeReference,Jm=Pt().isSpace;VM.exports=function(t,r,n,i){var o,s,l,d,h,v,y,b,D,_,k,T,S,m,w,x,L=0,O=t.bMarks[r]+t.tShift[r],R=t.eMarks[r],M=r+1;if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(O)!==91)return!1;for(;++O3)&&!(t.sCount[M]<0)){for(m=!1,v=0,y=w.length;v{"use strict";GM.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"]});var gO=G((cle,vO)=>{"use strict";var IZ="[a-zA-Z_:][a-zA-Z0-9:._-]*",AZ="[^\"'=<>`\\x00-\\x20]+",RZ="'[^']*'",jZ='"[^"]*"',PZ="(?:"+AZ+"|"+RZ+"|"+jZ+")",FZ="(?:\\s+"+IZ+"(?:\\s*=\\s*"+PZ+")?)",BM="<[A-Za-z][A-Za-z0-9\\-]*"+FZ+"*\\s*\\/?>",KM="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",MZ="|",qZ="<[?][\\s\\S]*?[?]>",VZ="]*>",UZ="",GZ=new RegExp("^(?:"+BM+"|"+KM+"|"+MZ+"|"+qZ+"|"+VZ+"|"+UZ+")"),QZ=new RegExp("^(?:"+BM+"|"+KM+")");vO.exports.HTML_TAG_RE=GZ;vO.exports.HTML_OPEN_CLOSE_TAG_RE=QZ});var zM=G((fle,HM)=>{"use strict";var BZ=QM(),KZ=gO().HTML_OPEN_CLOSE_TAG_RE,jc=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(KZ.source+"\\s*$"),/^$/,!1]];HM.exports=function(t,r,n,i){var o,s,l,d,h=t.bMarks[r]+t.tShift[r],v=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(h)!==60)return!1;for(d=t.src.slice(h,v),o=0;o{"use strict";var WM=Pt().isSpace;YM.exports=function(t,r,n,i){var o,s,l,d,h=t.bMarks[r]+t.tShift[r],v=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(h),o!==35||h>=v))return!1;for(s=1,o=t.src.charCodeAt(++h);o===35&&h6||hh&&WM(t.src.charCodeAt(l-1))&&(v=l),t.line=r+1,d=t.push("heading_open","h"+String(s),1),d.markup="########".slice(0,s),d.map=[r,t.line],d=t.push("inline","",0),d.content=t.src.slice(h,v).trim(),d.map=[r,t.line],d.children=[],d=t.push("heading_close","h"+String(s),-1),d.markup="########".slice(0,s)),!0)}});var ZM=G((ple,XM)=>{"use strict";XM.exports=function(t,r,n){var i,o,s,l,d,h,v,y,b,D=r+1,_,k=t.md.block.ruler.getRules("paragraph");if(t.sCount[r]-t.blkIndent>=4)return!1;for(_=t.parentType,t.parentType="paragraph";D3)){if(t.sCount[D]>=t.blkIndent&&(h=t.bMarks[D]+t.tShift[D],v=t.eMarks[D],h=v)))){y=b===61?1:2;break}if(!(t.sCount[D]<0)){for(o=!1,s=0,l=k.length;s{"use strict";$M.exports=function(t,r){var n,i,o,s,l,d,h=r+1,v=t.md.block.ruler.getRules("paragraph"),y=t.lineMax;for(d=t.parentType,t.parentType="paragraph";h3)&&!(t.sCount[h]<0)){for(i=!1,o=0,s=v.length;o{"use strict";var tq=Ym(),Xm=Pt().isSpace;function Ya(e,t,r,n){var i,o,s,l,d,h,v,y;for(this.src=e,this.md=t,this.env=r,this.tokens=n,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="",o=this.src,y=!1,s=l=h=v=0,d=o.length;l0&&this.level++,this.tokens.push(n),n};Ya.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Ya.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;tr;)if(!Xm(this.src.charCodeAt(--t)))return t+1;return t};Ya.prototype.skipChars=function(t,r){for(var n=this.src.length;tn;)if(r!==this.src.charCodeAt(--t))return t+1;return t};Ya.prototype.getLines=function(t,r,n,i){var o,s,l,d,h,v,y,b=t;if(t>=r)return"";for(v=new Array(r-t),o=0;bn?v[o]=new Array(s-n+1).join(" ")+this.src.slice(d,h):v[o]=this.src.slice(d,h)}return v.join("")};Ya.prototype.Token=tq;rq.exports=Ya});var aq=G((gle,iq)=>{"use strict";var HZ=zm(),Zm=[["table",OM(),["paragraph","reference"]],["code",NM()],["fence",xM(),["paragraph","reference","blockquote","list"]],["blockquote",IM(),["paragraph","reference","blockquote","list"]],["hr",RM(),["paragraph","reference","blockquote","list"]],["list",qM(),["paragraph","reference","blockquote"]],["reference",UM()],["html_block",zM(),["paragraph","reference","blockquote"]],["heading",JM(),["paragraph","reference","blockquote"]],["lheading",ZM()],["paragraph",eq()]];function $m(){this.ruler=new HZ;for(var e=0;e=r||e.sCount[l]=h){e.line=r;break}for(i=0;i{"use strict";function zZ(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}}oq.exports=function(t,r){for(var n=t.pos;n{"use strict";var WZ=Pt().isSpace;sq.exports=function(t,r){var n,i,o,s=t.pos;if(t.src.charCodeAt(s)!==10)return!1;if(n=t.pending.length-1,i=t.posMax,!r)if(n>=0&&t.pending.charCodeAt(n)===32)if(n>=1&&t.pending.charCodeAt(n-1)===32){for(o=n-1;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(s++;s{"use strict";var YZ=Pt().isSpace,mO=[];for(yO=0;yO<256;yO++)mO.push(0);var yO;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){mO[e.charCodeAt(0)]=1});cq.exports=function(t,r){var n,i=t.pos,o=t.posMax;if(t.src.charCodeAt(i)!==92)return!1;if(i++,i{"use strict";dq.exports=function(t,r){var n,i,o,s,l,d,h,v,y=t.pos,b=t.src.charCodeAt(y);if(b!==96)return!1;for(n=y,y++,i=t.posMax;y{"use strict";bO.exports.tokenize=function(t,r){var n,i,o,s,l,d=t.pos,h=t.src.charCodeAt(d);if(r||h!==126||(i=t.scanDelims(t.pos,!0),s=i.length,l=String.fromCharCode(h),s<2))return!1;for(s%2&&(o=t.push("text","",0),o.content=l,s--),n=0;n{"use strict";_O.exports.tokenize=function(t,r){var n,i,o,s=t.pos,l=t.src.charCodeAt(s);if(r||l!==95&&l!==42)return!1;for(i=t.scanDelims(t.pos,l===42),n=0;n=0;r--)n=t[r],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(i=t[n.end],l=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,s=String.fromCharCode(n.marker),o=e.tokens[n.token],o.type=l?"strong_open":"em_open",o.tag=l?"strong":"em",o.nesting=1,o.markup=l?s+s:s,o.content="",o=e.tokens[i.token],o.type=l?"strong_close":"em_close",o.tag=l?"strong":"em",o.nesting=-1,o.markup=l?s+s:s,o.content="",l&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--))}_O.exports.postProcess=function(t){var r,n=t.tokens_meta,i=t.tokens_meta.length;for(vq(t,t.delimiters),r=0;r{"use strict";var JZ=Pt().normalizeReference,SO=Pt().isSpace;gq.exports=function(t,r){var n,i,o,s,l,d,h,v,y,b="",D="",_=t.pos,k=t.posMax,T=t.pos,S=!0;if(t.src.charCodeAt(t.pos)!==91||(l=t.pos+1,s=t.md.helpers.parseLinkLabel(t,t.pos,!0),s<0))return!1;if(d=s+1,d=k)return!1;if(T=d,h=t.md.helpers.parseLinkDestination(t.src,d,t.posMax),h.ok){for(b=t.md.normalizeLink(h.str),t.md.validateLink(b)?d=h.pos:b="",T=d;d=k||t.src.charCodeAt(d)!==41)&&(S=!0),d++}if(S){if(typeof t.env.references=="undefined")return!1;if(d=0?o=t.src.slice(T,d++):d=s+1):d=s+1,o||(o=t.src.slice(l,s)),v=t.env.references[JZ(o)],!v)return t.pos=_,!1;b=v.href,D=v.title}return r||(t.pos=l,t.posMax=s,y=t.push("link_open","a",1),y.attrs=n=[["href",b]],D&&n.push(["title",D]),t.md.inline.tokenize(t),y=t.push("link_close","a",-1)),t.pos=d,t.posMax=k,!0}});var bq=G((kle,yq)=>{"use strict";var XZ=Pt().normalizeReference,kO=Pt().isSpace;yq.exports=function(t,r){var n,i,o,s,l,d,h,v,y,b,D,_,k,T="",S=t.pos,m=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(d=t.pos+2,l=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),l<0))return!1;if(h=l+1,h=m)return!1;for(k=h,y=t.md.helpers.parseLinkDestination(t.src,h,t.posMax),y.ok&&(T=t.md.normalizeLink(y.str),t.md.validateLink(T)?h=y.pos:T=""),k=h;h=m||t.src.charCodeAt(h)!==41)return t.pos=S,!1;h++}else{if(typeof t.env.references=="undefined")return!1;if(h=0?s=t.src.slice(k,h++):h=l+1):h=l+1,s||(s=t.src.slice(d,l)),v=t.env.references[XZ(s)],!v)return t.pos=S,!1;T=v.href,b=v.title}return r||(o=t.src.slice(d,l),t.md.inline.parse(o,t.md,t.env,_=[]),D=t.push("image","img",0),D.attrs=n=[["src",T],["alt",""]],D.children=_,D.content=o,b&&n.push(["title",b])),t.pos=h,t.posMax=m,!0}});var _q=G((Ole,Tq)=>{"use strict";var ZZ=/^([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])?)*)$/,$Z=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;Tq.exports=function(t,r){var n,i,o,s,l,d,h=t.pos;if(t.src.charCodeAt(h)!==60)return!1;for(l=t.pos,d=t.posMax;;){if(++h>=d||(s=t.src.charCodeAt(h),s===60))return!1;if(s===62)break}return n=t.src.slice(l+1,h),$Z.test(n)?(i=t.md.normalizeLink(n),t.md.validateLink(i)?(r||(o=t.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=t.push("text","",0),o.content=t.md.normalizeLinkText(n),o=t.push("link_close","a",-1),o.markup="autolink",o.info="auto"),t.pos+=n.length+2,!0):!1):ZZ.test(n)?(i=t.md.normalizeLink("mailto:"+n),t.md.validateLink(i)?(r||(o=t.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=t.push("text","",0),o.content=t.md.normalizeLinkText(n),o=t.push("link_close","a",-1),o.markup="autolink",o.info="auto"),t.pos+=n.length+2,!0):!1):!1}});var Sq=G((wle,Eq)=>{"use strict";var e$=gO().HTML_TAG_RE;function t$(e){var t=e|32;return t>=97&&t<=122}Eq.exports=function(t,r){var n,i,o,s,l=t.pos;return!t.md.options.html||(o=t.posMax,t.src.charCodeAt(l)!==60||l+2>=o)||(n=t.src.charCodeAt(l+1),n!==33&&n!==63&&n!==47&&!t$(n))||(i=t.src.slice(l).match(e$),!i)?!1:(r||(s=t.push("html_inline","",0),s.content=t.src.slice(l,l+i[0].length)),t.pos+=i[0].length,!0)}});var Nq=G((Nle,wq)=>{"use strict";var kq=oO(),r$=Pt().has,n$=Pt().isValidEntityCode,Oq=Pt().fromCodePoint,i$=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,a$=/^&([a-z][a-z0-9]{1,31});/i;wq.exports=function(t,r){var n,i,o,s=t.pos,l=t.posMax;if(t.src.charCodeAt(s)!==38)return!1;if(s+1{"use strict";function Dq(e,t){var r,n,i,o,s,l,d,h,v={},y=t.length;if(!!y){var b=0,D=-2,_=[];for(r=0;rs;n-=_[n]+1)if(o=t[n],o.marker===i.marker&&o.open&&o.end<0&&(d=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3!=0||i.length%3!=0)&&(d=!0),!d)){h=n>0&&!t[n-1].open?_[n-1]+1:0,_[r]=r-n+h,_[n]=h,i.open=!1,o.end=r,o.close=!1,l=-1,D=-2;break}l!==-1&&(v[i.marker][(i.open?3:0)+(i.length||0)%3]=l)}}}xq.exports=function(t){var r,n=t.tokens_meta,i=t.tokens_meta.length;for(Dq(t,t.delimiters),r=0;r{"use strict";Lq.exports=function(t){var r,n,i=0,o=t.tokens,s=t.tokens.length;for(r=n=0;r0&&i++,o[r].type==="text"&&r+1{"use strict";var OO=Ym(),Aq=Pt().isWhiteSpace,Rq=Pt().isPunctChar,jq=Pt().isMdAsciiPunct;function jp(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.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}jp.prototype.pushPending=function(){var e=new OO("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};jp.prototype.push=function(e,t,r){this.pending&&this.pushPending();var n=new OO(e,t,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n};jp.prototype.scanDelims=function(e,t){var r=e,n,i,o,s,l,d,h,v,y,b=!0,D=!0,_=this.posMax,k=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;r<_&&this.src.charCodeAt(r)===k;)r++;return o=r-e,i=r<_?this.src.charCodeAt(r):32,h=jq(n)||Rq(String.fromCharCode(n)),y=jq(i)||Rq(String.fromCharCode(i)),d=Aq(n),v=Aq(i),v?b=!1:y&&(d||h||(b=!1)),d?D=!1:h&&(v||y||(D=!1)),t?(s=b,l=D):(s=b&&(!D||h),l=D&&(!b||y)),{can_open:s,can_close:l,length:o}};jp.prototype.Token=OO;Pq.exports=jp});var Vq=G((Lle,qq)=>{"use strict";var Mq=zm(),wO=[["text",uq()],["newline",lq()],["escape",fq()],["backticks",pq()],["strikethrough",TO().tokenize],["emphasis",EO().tokenize],["link",mq()],["image",bq()],["autolink",_q()],["html_inline",Sq()],["entity",Nq()]],NO=[["balance_pairs",Cq()],["strikethrough",TO().postProcess],["emphasis",EO().postProcess],["text_collapse",Iq()]];function Pp(){var e;for(this.ruler=new Mq,e=0;e=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Pp.prototype.parse=function(e,t,r,n){var i,o,s,l=new this.State(e,t,r,n);for(this.tokenize(l),o=this.ruler2.getRules(""),s=o.length,i=0;i{"use strict";Uq.exports=function(e){var t={};t.src_Any=sO().source,t.src_Cc=lO().source,t.src_Z=cO().source,t.src_P=Gm().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+r+"|"+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="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+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="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}});var Wq=G((Ale,zq)=>{"use strict";function DO(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){!r||Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function ey(e){return Object.prototype.toString.call(e)}function o$(e){return ey(e)==="[object String]"}function u$(e){return ey(e)==="[object Object]"}function s$(e){return ey(e)==="[object RegExp]"}function Qq(e){return ey(e)==="[object Function]"}function l$(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Bq={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function c$(e){return Object.keys(e||{}).reduce(function(t,r){return t||Bq.hasOwnProperty(r)},!1)}var f$={"http:":{validate:function(e,t,r){var n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){var n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},d$="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]",p$="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function h$(e){e.__index__=-1,e.__text_cache__=""}function v$(e){return function(t,r){var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function Kq(){return function(e,t){t.normalize(e)}}function ty(e){var t=e.re=Gq()(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(d$),r.push(t.src_xn),t.src_tlds=r.join("|");function n(l){return l.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");var i=[];e.__compiled__={};function o(l,d){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+d)}Object.keys(e.__schemas__).forEach(function(l){var d=e.__schemas__[l];if(d!==null){var h={validate:null,link:null};if(e.__compiled__[l]=h,u$(d)){s$(d.validate)?h.validate=v$(d.validate):Qq(d.validate)?h.validate=d.validate:o(l,d),Qq(d.normalize)?h.normalize=d.normalize:d.normalize?o(l,d):h.normalize=Kq();return}if(o$(d)){i.push(l);return}o(l,d)}}),i.forEach(function(l){!e.__compiled__[e.__schemas__[l]]||(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:Kq()};var s=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(l$).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),h$(e)}function g$(e,t){var r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=i,this.text=i,this.url=i}function Hq(e,t){var r=new g$(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function Zi(e,t){if(!(this instanceof Zi))return new Zi(e,t);t||c$(e)&&(t=e,e={}),this.__opts__=DO({},Bq,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=DO({},f$,e),this.__compiled__={},this.__tlds__=p$,this.__tlds_replaced__=!1,this.re={},ty(this)}Zi.prototype.add=function(t,r){return this.__schemas__[t]=r,ty(this),this};Zi.prototype.set=function(t){return this.__opts__=DO(this.__opts__,t),this};Zi.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var r,n,i,o,s,l,d,h,v;if(this.re.schema_test.test(t)){for(d=this.re.schema_search,d.lastIndex=0;(r=d.exec(t))!==null;)if(o=this.testSchemaAt(t,r[2],d.lastIndex),o){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=t.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h=0&&(i=t.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||sthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=l))),this.__index__>=0};Zi.prototype.pretest=function(t){return this.re.pretest.test(t)};Zi.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};Zi.prototype.match=function(t){var r=0,n=[];this.__index__>=0&&this.__text_cache__===t&&(n.push(Hq(this,r)),r=this.__last_index__);for(var i=r?t.slice(r):t;this.test(i);)n.push(Hq(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};Zi.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,i,o){return n!==o[i-1]}).reverse(),ty(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,ty(this),this)};Zi.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Zi.prototype.onCompile=function(){};zq.exports=Zi});var aV=G((Rle,iV)=>{"use strict";var Pc=2147483647,Ja=36,xO=1,Fp=26,m$=38,y$=700,Yq=72,Jq=128,Xq="-",b$=/^xn--/,T$=/[^\0-\x7E]/,_$=/[\x2E\u3002\uFF0E\uFF61]/g,E$={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},CO=Ja-xO,Xa=Math.floor,LO=String.fromCharCode;function Ms(e){throw new RangeError(E$[e])}function S$(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r}function Zq(e,t){let r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(_$,".");let i=e.split("."),o=S$(i,t).join(".");return n+o}function $q(e){let t=[],r=0,n=e.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...e),O$=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:Ja},eV=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},tV=function(e,t,r){let n=0;for(e=r?Xa(e/y$):e>>1,e+=Xa(e/t);e>CO*Fp>>1;n+=Ja)e=Xa(e/CO);return Xa(n+(CO+1)*e/(e+m$))},rV=function(e){let t=[],r=e.length,n=0,i=Jq,o=Yq,s=e.lastIndexOf(Xq);s<0&&(s=0);for(let l=0;l=128&&Ms("not-basic"),t.push(e.charCodeAt(l));for(let l=s>0?s+1:0;l=r&&Ms("invalid-input");let b=O$(e.charCodeAt(l++));(b>=Ja||b>Xa((Pc-n)/v))&&Ms("overflow"),n+=b*v;let D=y<=o?xO:y>=o+Fp?Fp:y-o;if(bXa(Pc/_)&&Ms("overflow"),v*=_}let h=t.length+1;o=tV(n-d,h,d==0),Xa(n/h)>Pc-i&&Ms("overflow"),i+=Xa(n/h),n%=h,t.splice(n++,0,i)}return String.fromCodePoint(...t)},nV=function(e){let t=[];e=$q(e);let r=e.length,n=Jq,i=0,o=Yq;for(let d of e)d<128&&t.push(LO(d));let s=t.length,l=s;for(s&&t.push(Xq);l=n&&vXa((Pc-i)/h)&&Ms("overflow"),i+=(d-n)*h,n=d;for(let v of e)if(vPc&&Ms("overflow"),v==n){let y=i;for(let b=Ja;;b+=Ja){let D=b<=o?xO:b>=o+Fp?Fp:b-o;if(y{"use strict";oV.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var lV=G((Ple,sV)=>{"use strict";sV.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}});var fV=G((Fle,cV)=>{"use strict";cV.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",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"]}}}});var vV=G((Mle,hV)=>{"use strict";var Mp=Pt(),x$=YF(),C$=XF(),L$=EM(),I$=aq(),A$=Vq(),R$=Wq(),qs=uO(),dV=aV(),j$={default:uV(),zero:lV(),commonmark:fV()},P$=/^(vbscript|javascript|file|data):/,F$=/^data:image\/(gif|png|jpeg|webp);/;function M$(e){var t=e.trim().toLowerCase();return P$.test(t)?!!F$.test(t):!0}var pV=["http:","https:","mailto:"];function q$(e){var t=qs.parse(e,!0);if(t.hostname&&(!t.protocol||pV.indexOf(t.protocol)>=0))try{t.hostname=dV.toASCII(t.hostname)}catch(r){}return qs.encode(qs.format(t))}function V$(e){var t=qs.parse(e,!0);if(t.hostname&&(!t.protocol||pV.indexOf(t.protocol)>=0))try{t.hostname=dV.toUnicode(t.hostname)}catch(r){}return qs.decode(qs.format(t),qs.decode.defaultChars+"%")}function $i(e,t){if(!(this instanceof $i))return new $i(e,t);t||Mp.isString(e)||(t=e||{},e="default"),this.inline=new A$,this.block=new I$,this.core=new L$,this.renderer=new C$,this.linkify=new R$,this.validateLink=M$,this.normalizeLink=q$,this.normalizeLinkText=V$,this.utils=Mp,this.helpers=Mp.assign({},x$),this.options={},this.configure(e),t&&this.set(t)}$i.prototype.set=function(e){return Mp.assign(this.options,e),this};$i.prototype.configure=function(e){var t=this,r;if(Mp.isString(e)&&(r=e,e=j$[r],!e))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};$i.prototype.enable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};$i.prototype.disable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};$i.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};$i.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");var r=new this.core.State(e,this,t);return this.core.process(r),r.tokens};$i.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};$i.prototype.parseInline=function(e,t){var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};$i.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};hV.exports=$i});var ry=G((qle,gV)=>{"use strict";gV.exports=vV()});var bV=G((Ule,yV)=>{"use strict";var Q$=/["'&<>]/;yV.exports=B$;function B$(e){var t=""+e,r=Q$.exec(t);if(!r)return t;var n,i="",o=0,s=0;for(o=r.index;o{(function(e,t){typeof IO=="object"&&typeof AO!="undefined"?AO.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.CodeMirror=t())})(IO,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),s=n||i||o,l=s&&(n?document.documentMode||6:+(o||i)[1]),d=!o&&/WebKit\//.test(e),h=d&&/Qt\/\d+\.\d+/.test(e),v=!o&&/Chrome\/(\d+)/.exec(e),y=v&&+v[1],b=/Opera\//.test(e),D=/Apple Computer/.test(navigator.vendor),_=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),k=/PhantomJS/.test(e),T=D&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),S=/Android/.test(e),m=T||S||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),w=T||/Mac/.test(t),x=/\bCrOS\b/.test(e),L=/win/i.test(t),O=b&&e.match(/Version\/(\d*\.\d*)/);O&&(O=Number(O[1])),O&&O>=15&&(b=!1,d=!0);var R=w&&(h||b&&(O==null||O<12.11)),M=r||s&&l>=9;function q(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var z=function(a,u){var f=a.className,c=q(u).exec(f);if(c){var p=f.slice(c.index+c[0].length);a.className=f.slice(0,c.index)+(p?c[1]+p:"")}};function B(a){for(var u=a.childNodes.length;u>0;--u)a.removeChild(a.firstChild);return a}function Q(a,u){return B(a).appendChild(u)}function P(a,u,f,c){var p=document.createElement(a);if(f&&(p.className=f),c&&(p.style.cssText=c),typeof u=="string")p.appendChild(document.createTextNode(u));else if(u)for(var g=0;g=u)return E+(u-g);E+=N-g,E+=f-E%f,g=N+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Ot(this.onTimeout,this)};ce.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ce.prototype.set=function(a,u){this.f=u;var f=+new Date+a;(!this.id||f=u)return c+Math.min(E,u-p);if(p+=g-c,p+=f-p%f,c=g+1,p>=u)return c}}var me=[""];function fe(a){for(;me.length<=a;)me.push(se(me)+" ");return me[a]}function se(a){return a[a.length-1]}function Ue(a,u){for(var f=[],c=0;c"\x80"&&(a.toUpperCase()!=a.toLowerCase()||Dn.test(a))}function dn(a,u){return u?u.source.indexOf("\\w")>-1&&Ei(a)?!0:u.test(a):Ei(a)}function Hn(a){for(var u in a)if(a.hasOwnProperty(u)&&a[u])return!1;return!0}var pn=/[\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 Pi(a){return a.charCodeAt(0)>=768&&pn.test(a)}function Qr(a,u,f){for(;(f<0?u>0:uf?-1:1;;){if(u==f)return u;var p=(u+f)/2,g=c<0?Math.ceil(p):Math.floor(p);if(g==u)return a(g)?u:f;a(g)?f=g:u=g+c}}function hn(a,u,f,c){if(!a)return c(u,f,"ltr",0);for(var p=!1,g=0;gu||u==f&&E.to==u)&&(c(Math.max(E.from,u),Math.min(E.to,f),E.level==1?"rtl":"ltr",g),p=!0)}p||c(u,f,"ltr")}var zn=null;function vr(a,u,f){var c;zn=null;for(var p=0;pu)return p;g.to==u&&(g.from!=g.to&&f=="before"?c=p:zn=p),g.from==u&&(g.from!=g.to&&f!="before"?c=p:zn=p)}return c!=null?c:zn}var Ro=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",u="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function f(I){return I<=247?a.charAt(I):1424<=I&&I<=1524?"R":1536<=I&&I<=1785?u.charAt(I-1536):1774<=I&&I<=2220?"r":8192<=I&&I<=8203?"w":I==8204?"b":"L"}var c=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,p=/[stwN]/,g=/[LRr]/,E=/[Lb1n]/,N=/[1n]/;function C(I,U,K){this.level=I,this.from=U,this.to=K}return function(I,U){var K=U=="ltr"?"L":"R";if(I.length==0||U=="ltr"&&!c.test(I))return!1;for(var $=I.length,X=[],ae=0;ae<$;++ae)X.push(f(I.charCodeAt(ae)));for(var le=0,pe=K;le<$;++le){var be=X[le];be=="m"?X[le]=pe:pe=be}for(var Ne=0,Te=K;Ne<$;++Ne){var Ce=X[Ne];Ce=="1"&&Te=="r"?X[Ne]="n":g.test(Ce)&&(Te=Ce,Ce=="r"&&(X[Ne]="R"))}for(var Ge=1,qe=X[0];Ge<$-1;++Ge){var lt=X[Ge];lt=="+"&&qe=="1"&&X[Ge+1]=="1"?X[Ge]="1":lt==","&&qe==X[Ge+1]&&(qe=="1"||qe=="n")&&(X[Ge]=qe),qe=lt}for(var Ht=0;Ht<$;++Ht){var zr=X[Ht];if(zr==",")X[Ht]="N";else if(zr=="%"){var lr=void 0;for(lr=Ht+1;lr<$&&X[lr]=="%";++lr);for(var li=Ht&&X[Ht-1]=="!"||lr<$&&X[lr]=="1"?"1":"N",Jn=Ht;Jn-1&&(c[u]=p.slice(0,g).concat(p.slice(g+1)))}}}function Ft(a,u){var f=Gu(a,u);if(!!f.length)for(var c=Array.prototype.slice.call(arguments,2),p=0;p0}function un(a){a.prototype.on=function(u,f){_e(this,u,f)},a.prototype.off=function(u,f){Ar(this,u,f)}}function ee(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function F(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Y(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function J(a){ee(a),F(a)}function V(a){return a.target||a.srcElement}function A(a){var u=a.which;return u==null&&(a.button&1?u=1:a.button&2?u=3:a.button&4&&(u=2)),w&&a.ctrlKey&&u==1&&(u=3),u}var re=function(){if(s&&l<9)return!1;var a=P("div");return"draggable"in a||"dragDrop"in a}(),ue;function Ze(a){if(ue==null){var u=P("span","\u200B");Q(a,P("span",[u,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(ue=u.offsetWidth<=1&&u.offsetHeight>2&&!(s&&l<8))}var f=ue?P("span","\u200B"):P("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return f.setAttribute("cm-text",""),f}var Ut;function Rt(a){if(Ut!=null)return Ut;var u=Q(a,document.createTextNode("A\u062EA")),f=xe(u,0,1).getBoundingClientRect(),c=xe(u,1,2).getBoundingClientRect();return B(a),!f||f.left==f.right?!1:Ut=c.right-f.right<3}var vn=` b`.split(/\n/).length!=3?function(a){for(var u=0,f=[],c=a.length;u<=c;){var p=a.indexOf(` `,u);p==-1&&(p=a.length);var g=a.slice(u,a.charAt(p-1)=="\r"?p-1:p),E=g.indexOf("\r");E!=-1?(f.push(g.slice(0,E)),u+=E+1):(f.push(g),u=p+1)}return f}:function(a){return a.split(/\r\n?|\n/)},Rr=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(u){return!1}}:function(a){var u;try{u=a.ownerDocument.selection.createRange()}catch(f){}return!u||u.parentElement()!=a?!1:u.compareEndPoints("StartToEnd",u)!=0},jr=function(){var a=P("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),et=null;function sa(a){if(et!=null)return et;var u=Q(a,P("span","x")),f=u.getBoundingClientRect(),c=xe(u,0,1).getBoundingClientRect();return et=Math.abs(f.left-c.left)>1}var Cn={},la={};function ch(a,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),Cn[a]=u}function Js(a,u){la[a]=u}function ui(a){if(typeof a=="string"&&la.hasOwnProperty(a))a=la[a];else if(a&&typeof a.name=="string"&&la.hasOwnProperty(a.name)){var u=la[a.name];typeof u=="string"&&(u={name:u}),a=st(u,a),a.name=u.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return ui("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return ui("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function io(a,u){u=ui(u);var f=Cn[u.name];if(!f)return io(a,"text/plain");var c=f(a,u);if(jo.hasOwnProperty(u.name)){var p=jo[u.name];for(var g in p)!p.hasOwnProperty(g)||(c.hasOwnProperty(g)&&(c["_"+g]=c[g]),c[g]=p[g])}if(c.name=u.name,u.helperType&&(c.helperType=u.helperType),u.modeProps)for(var E in u.modeProps)c[E]=u.modeProps[E];return c}var jo={};function fh(a,u){var f=jo.hasOwnProperty(a)?jo[a]:jo[a]={};Ie(u,f)}function ao(a,u){if(u===!0)return u;if(a.copyState)return a.copyState(u);var f={};for(var c in u){var p=u[c];p instanceof Array&&(p=p.concat([])),f[c]=p}return f}function Po(a,u){for(var f;a.innerMode&&(f=a.innerMode(u),!(!f||f.mode==a));)u=f.state,a=f.mode;return f||{mode:a,state:u}}function nf(a,u,f){return a.startState?a.startState(u,f):!0}var gr=function(a,u,f){this.pos=this.start=0,this.string=a,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=f};gr.prototype.eol=function(){return this.pos>=this.string.length},gr.prototype.sol=function(){return this.pos==this.lineStart},gr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},gr.prototype.next=function(){if(this.posu},gr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},gr.prototype.skipToEnd=function(){this.pos=this.string.length},gr.prototype.skipTo=function(a){var u=this.string.indexOf(a,this.pos);if(u>-1)return this.pos=u,!0},gr.prototype.backUp=function(a){this.pos-=a},gr.prototype.column=function(){return this.lastColumnPos0?null:(g&&u!==!1&&(this.pos+=g[0].length),g)}},gr.prototype.current=function(){return this.string.slice(this.start,this.pos)},gr.prototype.hideFirstChars=function(a,u){this.lineStart+=a;try{return u()}finally{this.lineStart-=a}},gr.prototype.lookAhead=function(a){var u=this.lineOracle;return u&&u.lookAhead(a)},gr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Ae(a,u){if(u-=a.first,u<0||u>=a.size)throw new Error("There is no line "+(u+a.first)+" in the document.");for(var f=a;!f.lines;)for(var c=0;;++c){var p=f.children[c],g=p.chunkSize();if(u=a.first&&uf?W(f,Ae(a,f).text.length):zQ(u,Ae(a,u.line).text.length)}function zQ(a,u){var f=a.ch;return f==null||f>u?W(a.line,u):f<0?W(a.line,0):a}function nN(a,u){for(var f=[],c=0;cthis.maxLookAhead&&(this.maxLookAhead=a),u},Na.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Na.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Na.fromSaved=function(a,u,f){return u instanceof dh?new Na(a,ao(a.mode,u.state),f,u.lookAhead):new Na(a,ao(a.mode,u),f)},Na.prototype.save=function(a){var u=a!==!1?ao(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new dh(u,this.maxLookAhead):u};function iN(a,u,f,c){var p=[a.state.modeGen],g={};cN(a,u.text,a.doc.mode,f,function(I,U){return p.push(I,U)},g,c);for(var E=f.state,N=function(I){f.baseTokens=p;var U=a.state.overlays[I],K=1,$=0;f.state=!0,cN(a,u.text,U.mode,f,function(X,ae){for(var le=K;$X&&p.splice(K,1,X,p[K+1],pe),K+=2,$=Math.min(X,pe)}if(!!ae)if(U.opaque)p.splice(le,K-le,X,"overlay "+ae),K=le+2;else for(;lea.options.maxHighlightLength&&ao(a.doc.mode,c.state),g=iN(a,u,c);p&&(c.state=p),u.stateAfter=c.save(!p),u.styles=g.styles,g.classes?u.styleClasses=g.classes:u.styleClasses&&(u.styleClasses=null),f===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return u.styles}function af(a,u,f){var c=a.doc,p=a.display;if(!c.mode.startState)return new Na(c,!0,u);var g=WQ(a,u,f),E=g>c.first&&Ae(c,g-1).stateAfter,N=E?Na.fromSaved(c,E,g):new Na(c,nf(c.mode),g);return c.iter(g,u,function(C){Wy(a,C.text,N);var I=N.line;C.stateAfter=I==u-1||I%5==0||I>=p.viewFrom&&Iu.start)return g}throw new Error("Mode "+a.name+" failed to advance stream.")}var uN=function(a,u,f){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=u||null,this.state=f};function sN(a,u,f,c){var p=a.doc,g=p.mode,E;u=Ye(p,u);var N=Ae(p,u.line),C=af(a,u.line,f),I=new gr(N.text,a.options.tabSize,C),U;for(c&&(U=[]);(c||I.posa.options.maxHighlightLength?(N=!1,E&&Wy(a,u,c,U.pos),U.pos=u.length,K=null):K=lN(Yy(f,U,c.state,$),g),$){var X=$[0].name;X&&(K="m-"+(K?X+" "+K:X))}if(!N||I!=K){for(;CE;--N){if(N<=g.first)return g.first;var C=Ae(g,N-1),I=C.stateAfter;if(I&&(!f||N+(I instanceof dh?I.lookAhead:0)<=g.modeFrontier))return N;var U=te(C.text,null,a.options.tabSize);(p==null||c>U)&&(p=N-1,c=U)}return p}function YQ(a,u){if(a.modeFrontier=Math.min(a.modeFrontier,u),!(a.highlightFrontierf;c--){var p=Ae(a,c).stateAfter;if(p&&(!(p instanceof dh)||c+p.lookAhead=u:g.to>u);(c||(c=[])).push(new ph(E,g.from,C?null:g.to))}}return c}function t2(a,u,f){var c;if(a)for(var p=0;p=u:g.to>u);if(N||g.from==u&&E.type=="bookmark"&&(!f||g.marker.insertLeft)){var C=g.from==null||(E.inclusiveLeft?g.from<=u:g.from0&&N)for(var Ce=0;Ce0)){var U=[C,1],K=ie(I.from,N.from),$=ie(I.to,N.to);(K<0||!E.inclusiveLeft&&!K)&&U.push({from:I.from,to:N.from}),($>0||!E.inclusiveRight&&!$)&&U.push({from:N.to,to:I.to}),p.splice.apply(p,U),C+=U.length-3}}return p}function pN(a){var u=a.markedSpans;if(!!u){for(var f=0;fu)&&(!c||Xy(c,g.marker)<0)&&(c=g.marker)}return c}function mN(a,u,f,c,p){var g=Ae(a,u),E=uo&&g.markedSpans;if(E)for(var N=0;N=0&&K<=0||U<=0&&K>=0)&&(U<=0&&(C.marker.inclusiveRight&&p.inclusiveLeft?ie(I.to,f)>=0:ie(I.to,f)>0)||U>=0&&(C.marker.inclusiveRight&&p.inclusiveLeft?ie(I.from,c)<=0:ie(I.from,c)<0)))return!0}}}function ca(a){for(var u;u=gN(a);)a=u.find(-1,!0).line;return a}function i2(a){for(var u;u=gh(a);)a=u.find(1,!0).line;return a}function a2(a){for(var u,f;u=gh(a);)a=u.find(1,!0).line,(f||(f=[])).push(a);return f}function Zy(a,u){var f=Ae(a,u),c=ca(f);return f==c?u:wt(c)}function yN(a,u){if(u>a.lastLine())return u;var f=Ae(a,u),c;if(!Fo(a,f))return u;for(;c=gh(f);)f=c.find(1,!0).line;return wt(f)+1}function Fo(a,u){var f=uo&&u.markedSpans;if(f){for(var c=void 0,p=0;pu.maxLineLength&&(u.maxLineLength=p,u.maxLine=c)})}var Zs=function(a,u,f){this.text=a,hN(this,u),this.height=f?f(this):1};Zs.prototype.lineNo=function(){return wt(this)},un(Zs);function o2(a,u,f,c){a.text=u,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),pN(a),hN(a,f);var p=c?c(a):1;p!=a.height&&Fi(a,p)}function u2(a){a.parent=null,pN(a)}var s2={},l2={};function bN(a,u){if(!a||/^\s*$/.test(a))return null;var f=u.addModeClass?l2:s2;return f[a]||(f[a]=a.replace(/\S+/g,"cm-$&"))}function TN(a,u){var f=he("span",null,null,d?"padding-right: .1px":null),c={pre:he("pre",[f],"CodeMirror-line"),content:f,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};u.measure={};for(var p=0;p<=(u.rest?u.rest.length:0);p++){var g=p?u.rest[p-1]:u.line,E=void 0;c.pos=0,c.addToken=f2,Rt(a.display.measure)&&(E=xn(g,a.doc.direction))&&(c.addToken=p2(c.addToken,E)),c.map=[];var N=u!=a.display.externalMeasured&&wt(g);h2(g,c,aN(a,g,N)),g.styleClasses&&(g.styleClasses.bgClass&&(c.bgClass=He(g.styleClasses.bgClass,c.bgClass||"")),g.styleClasses.textClass&&(c.textClass=He(g.styleClasses.textClass,c.textClass||""))),c.map.length==0&&c.map.push(0,0,c.content.appendChild(Ze(a.display.measure))),p==0?(u.measure.map=c.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(c.map),(u.measure.caches||(u.measure.caches=[])).push({}))}if(d){var C=c.content.lastChild;(/\bcm-tab\b/.test(C.className)||C.querySelector&&C.querySelector(".cm-tab"))&&(c.content.className="cm-tab-wrap-hack")}return Ft(a,"renderLine",a,u.line,c.pre),c.pre.className&&(c.textClass=He(c.pre.className,c.textClass||"")),c}function c2(a){var u=P("span","\u2022","cm-invalidchar");return u.title="\\u"+a.charCodeAt(0).toString(16),u.setAttribute("aria-label",u.title),u}function f2(a,u,f,c,p,g,E){if(!!u){var N=a.splitSpaces?d2(u,a.trailingSpace):u,C=a.cm.state.specialChars,I=!1,U;if(!C.test(u))a.col+=u.length,U=document.createTextNode(N),a.map.push(a.pos,a.pos+u.length,U),s&&l<9&&(I=!0),a.pos+=u.length;else{U=document.createDocumentFragment();for(var K=0;;){C.lastIndex=K;var $=C.exec(u),X=$?$.index-K:u.length-K;if(X){var ae=document.createTextNode(N.slice(K,K+X));s&&l<9?U.appendChild(P("span",[ae])):U.appendChild(ae),a.map.push(a.pos,a.pos+X,ae),a.col+=X,a.pos+=X}if(!$)break;K+=X+1;var le=void 0;if($[0]==" "){var pe=a.cm.options.tabSize,be=pe-a.col%pe;le=U.appendChild(P("span",fe(be),"cm-tab")),le.setAttribute("role","presentation"),le.setAttribute("cm-text"," "),a.col+=be}else $[0]=="\r"||$[0]==` `?(le=U.appendChild(P("span",$[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),le.setAttribute("cm-text",$[0]),a.col+=1):(le=a.cm.options.specialCharPlaceholder($[0]),le.setAttribute("cm-text",$[0]),s&&l<9?U.appendChild(P("span",[le])):U.appendChild(le),a.col+=1);a.map.push(a.pos,a.pos+1,le),a.pos++}}if(a.trailingSpace=N.charCodeAt(u.length-1)==32,f||c||p||I||g||E){var Ne=f||"";c&&(Ne+=c),p&&(Ne+=p);var Te=P("span",[U],Ne,g);if(E)for(var Ce in E)E.hasOwnProperty(Ce)&&Ce!="style"&&Ce!="class"&&Te.setAttribute(Ce,E[Ce]);return a.content.appendChild(Te)}a.content.appendChild(U)}}function d2(a,u){if(a.length>1&&!/ /.test(a))return a;for(var f=u,c="",p=0;pI&&K.from<=I));$++);if(K.to>=U)return a(f,c,p,g,E,N,C);a(f,c.slice(0,K.to-I),p,g,null,N,C),g=null,c=c.slice(K.to-I),I=K.to}}}function _N(a,u,f,c){var p=!c&&f.widgetNode;p&&a.map.push(a.pos,a.pos+u,p),!c&&a.cm.display.input.needsContentAttribute&&(p||(p=a.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",f.id)),p&&(a.cm.display.input.setUneditable(p),a.content.appendChild(p)),a.pos+=u,a.trailingSpace=!1}function h2(a,u,f){var c=a.markedSpans,p=a.text,g=0;if(!c){for(var E=1;EC||lt.collapsed&&qe.to==C&&qe.from==C)){if(qe.to!=null&&qe.to!=C&&X>qe.to&&(X=qe.to,le=""),lt.className&&(ae+=" "+lt.className),lt.css&&($=($?$+";":"")+lt.css),lt.startStyle&&qe.from==C&&(pe+=" "+lt.startStyle),lt.endStyle&&qe.to==X&&(Ce||(Ce=[])).push(lt.endStyle,qe.to),lt.title&&((Ne||(Ne={})).title=lt.title),lt.attributes)for(var Ht in lt.attributes)(Ne||(Ne={}))[Ht]=lt.attributes[Ht];lt.collapsed&&(!be||Xy(be.marker,lt)<0)&&(be=qe)}else qe.from>C&&X>qe.from&&(X=qe.from)}if(Ce)for(var zr=0;zr=N)break;for(var li=Math.min(N,X);;){if(U){var Jn=C+U.length;if(!be){var wr=Jn>li?U.slice(0,li-C):U;u.addToken(u,wr,K?K+ae:ae,pe,C+wr.length==X?le:"",$,Ne)}if(Jn>=li){U=U.slice(li-C),C=li;break}C=Jn,pe=""}U=p.slice(g,g=f[I++]),K=bN(f[I++],u.cm.options)}}}function EN(a,u,f){this.line=u,this.rest=a2(u),this.size=this.rest?wt(se(this.rest))-f+1:1,this.node=this.text=null,this.hidden=Fo(a,u)}function yh(a,u,f){for(var c=[],p,g=u;g2&&g.push((C.bottom+I.top)/2-f.top)}}g.push(f.bottom-f.top)}}function xN(a,u,f){if(a.line==u)return{map:a.measure.map,cache:a.measure.cache};if(a.rest){for(var c=0;cf)return{map:a.measure.maps[p],cache:a.measure.caches[p],before:!0}}}function O2(a,u){u=ca(u);var f=wt(u),c=a.display.externalMeasured=new EN(a.doc,u,f);c.lineN=f;var p=c.built=TN(a,c);return c.text=p.pre,Q(a.display.lineMeasure,p.pre),c}function CN(a,u,f,c){return xa(a,el(a,u),f,c)}function i0(a,u){if(u>=a.display.viewFrom&&u=f.lineN&&uu)&&(g=C-N,p=g-1,u>=C&&(E="right")),p!=null){if(c=a[I+2],N==C&&f==(c.insertLeft?"left":"right")&&(E=f),f=="left"&&p==0)for(;I&&a[I-2]==a[I-3]&&a[I-1].insertLeft;)c=a[(I-=3)+2],E="left";if(f=="right"&&p==C-N)for(;I=0&&(f=a[p]).left==f.right;p--);return f}function N2(a,u,f,c){var p=IN(u.map,f,c),g=p.node,E=p.start,N=p.end,C=p.collapse,I;if(g.nodeType==3){for(var U=0;U<4;U++){for(;E&&Pi(u.line.text.charAt(p.coverStart+E));)--E;for(;p.coverStart+N0&&(C=c="right");var K;a.options.lineWrapping&&(K=g.getClientRects()).length>1?I=K[c=="right"?K.length-1:0]:I=g.getBoundingClientRect()}if(s&&l<9&&!E&&(!I||!I.left&&!I.right)){var $=g.parentNode.getClientRects()[0];$?I={left:$.left,right:$.left+rl(a.display),top:$.top,bottom:$.bottom}:I=LN}for(var X=I.top-u.rect.top,ae=I.bottom-u.rect.top,le=(X+ae)/2,pe=u.view.measure.heights,be=0;be=c.text.length?(C=c.text.length,I="before"):C<=0&&(C=0,I="after"),!N)return E(I=="before"?C-1:C,I=="before");function U(ae,le,pe){var be=N[le],Ne=be.level==1;return E(pe?ae-1:ae,Ne!=pe)}var K=vr(N,C,I),$=zn,X=U(C,K,I=="before");return $!=null&&(X.other=U(C,$,I!="before")),X}function MN(a,u){var f=0;u=Ye(a.doc,u),a.options.lineWrapping||(f=rl(a.display)*u.ch);var c=Ae(a.doc,u.line),p=so(c)+bh(a.display);return{left:f,right:f,top:p,bottom:p+c.height}}function o0(a,u,f,c,p){var g=W(a,u,f);return g.xRel=p,c&&(g.outside=c),g}function u0(a,u,f){var c=a.doc;if(f+=a.display.viewOffset,f<0)return o0(c.first,0,null,-1,-1);var p=wa(c,f),g=c.first+c.size-1;if(p>g)return o0(c.first+c.size-1,Ae(c,g).text.length,null,1,1);u<0&&(u=0);for(var E=Ae(c,p);;){var N=x2(a,E,p,u,f),C=n2(E,N.ch+(N.xRel>0||N.outside>0?1:0));if(!C)return N;var I=C.find(1);if(I.line==p)return I;E=Ae(c,p=I.line)}}function qN(a,u,f,c){c-=a0(u);var p=u.text.length,g=Kt(function(E){return xa(a,f,E-1).bottom<=c},p,0);return p=Kt(function(E){return xa(a,f,E).top>c},g,p),{begin:g,end:p}}function VN(a,u,f,c){f||(f=el(a,u));var p=Th(a,u,xa(a,f,c),"line").top;return qN(a,u,f,p)}function s0(a,u,f,c){return a.bottom<=f?!1:a.top>f?!0:(c?a.left:a.right)>u}function x2(a,u,f,c,p){p-=so(u);var g=el(a,u),E=a0(u),N=0,C=u.text.length,I=!0,U=xn(u,a.doc.direction);if(U){var K=(a.options.lineWrapping?L2:C2)(a,u,f,g,U,c,p);I=K.level!=1,N=I?K.from:K.to-1,C=I?K.to:K.from-1}var $=null,X=null,ae=Kt(function(Ge){var qe=xa(a,g,Ge);return qe.top+=E,qe.bottom+=E,s0(qe,c,p,!1)?(qe.top<=p&&qe.left<=c&&($=Ge,X=qe),!0):!1},N,C),le,pe,be=!1;if(X){var Ne=c-X.left=Ce.bottom?1:0}return ae=Qr(u.text,ae,1),o0(f,ae,pe,be,c-le)}function C2(a,u,f,c,p,g,E){var N=Kt(function(K){var $=p[K],X=$.level!=1;return s0(fa(a,W(f,X?$.to:$.from,X?"before":"after"),"line",u,c),g,E,!0)},0,p.length-1),C=p[N];if(N>0){var I=C.level!=1,U=fa(a,W(f,I?C.from:C.to,I?"after":"before"),"line",u,c);s0(U,g,E,!0)&&U.top>E&&(C=p[N-1])}return C}function L2(a,u,f,c,p,g,E){var N=qN(a,u,c,E),C=N.begin,I=N.end;/\s/.test(u.text.charAt(I-1))&&I--;for(var U=null,K=null,$=0;$=I||X.to<=C)){var ae=X.level!=1,le=xa(a,c,ae?Math.min(I,X.to)-1:Math.max(C,X.from)).right,pe=lepe)&&(U=X,K=pe)}}return U||(U=p[p.length-1]),U.fromI&&(U={from:U.from,to:I,level:U.level}),U}var Bu;function tl(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Bu==null){Bu=P("pre",null,"CodeMirror-line-like");for(var u=0;u<49;++u)Bu.appendChild(document.createTextNode("x")),Bu.appendChild(P("br"));Bu.appendChild(document.createTextNode("x"))}Q(a.measure,Bu);var f=Bu.offsetHeight/50;return f>3&&(a.cachedTextHeight=f),B(a.measure),f||1}function rl(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var u=P("span","xxxxxxxxxx"),f=P("pre",[u],"CodeMirror-line-like");Q(a.measure,f);var c=u.getBoundingClientRect(),p=(c.right-c.left)/10;return p>2&&(a.cachedCharWidth=p),p||10}function l0(a){for(var u=a.display,f={},c={},p=u.gutters.clientLeft,g=u.gutters.firstChild,E=0;g;g=g.nextSibling,++E){var N=a.display.gutterSpecs[E].className;f[N]=g.offsetLeft+g.clientLeft+p,c[N]=g.clientWidth}return{fixedPos:c0(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:f,gutterWidth:c,wrapperWidth:u.wrapper.clientWidth}}function c0(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function UN(a){var u=tl(a.display),f=a.options.lineWrapping,c=f&&Math.max(5,a.display.scroller.clientWidth/rl(a.display)-3);return function(p){if(Fo(a.doc,p))return 0;var g=0;if(p.widgets)for(var E=0;E0&&(I=Ae(a.doc,C.line).text).length==C.ch){var U=te(I,I.length,a.options.tabSize)-I.length;C=W(C.line,Math.max(0,Math.round((g-DN(a.display).left)/rl(a.display))-U))}return C}function Hu(a,u){if(u>=a.display.viewTo||(u-=a.display.viewFrom,u<0))return null;for(var f=a.display.view,c=0;cu)&&(p.updateLineNumbers=u),a.curOp.viewChanged=!0,u>=p.viewTo)uo&&Zy(a.doc,u)p.viewFrom?qo(a):(p.viewFrom+=c,p.viewTo+=c);else if(u<=p.viewFrom&&f>=p.viewTo)qo(a);else if(u<=p.viewFrom){var g=Eh(a,f,f+c,1);g?(p.view=p.view.slice(g.index),p.viewFrom=g.lineN,p.viewTo+=c):qo(a)}else if(f>=p.viewTo){var E=Eh(a,u,u,-1);E?(p.view=p.view.slice(0,E.index),p.viewTo=E.lineN):qo(a)}else{var N=Eh(a,u,u,-1),C=Eh(a,f,f+c,1);N&&C?(p.view=p.view.slice(0,N.index).concat(yh(a,N.lineN,C.lineN)).concat(p.view.slice(C.index)),p.viewTo+=c):qo(a)}var I=p.externalMeasured;I&&(f=p.lineN&&u=c.viewTo)){var g=c.view[Hu(a,u)];if(g.node!=null){var E=g.changes||(g.changes=[]);we(E,f)==-1&&E.push(f)}}}function qo(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Eh(a,u,f,c){var p=Hu(a,u),g,E=a.display.view;if(!uo||f==a.doc.first+a.doc.size)return{index:p,lineN:f};for(var N=a.display.viewFrom,C=0;C0){if(p==E.length-1)return null;g=N+E[p].size-u,p++}else g=N-u;u+=g,f+=g}for(;Zy(a.doc,f)!=f;){if(p==(c<0?0:E.length-1))return null;f+=c*E[p-(c<0?1:0)].size,p+=c}return{index:p,lineN:f}}function I2(a,u,f){var c=a.display,p=c.view;p.length==0||u>=c.viewTo||f<=c.viewFrom?(c.view=yh(a,u,f),c.viewFrom=u):(c.viewFrom>u?c.view=yh(a,u,c.viewFrom).concat(c.view):c.viewFromf&&(c.view=c.view.slice(0,Hu(a,f)))),c.viewTo=f}function GN(a){for(var u=a.display.view,f=0,c=0;c=a.display.viewTo||C.to().line0?E:a.defaultCharWidth())+"px"}if(c.other){var N=f.appendChild(P("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));N.style.display="",N.style.left=c.other.left+"px",N.style.top=c.other.top+"px",N.style.height=(c.other.bottom-c.other.top)*.85+"px"}}function Sh(a,u){return a.top-u.top||a.left-u.left}function A2(a,u,f){var c=a.display,p=a.doc,g=document.createDocumentFragment(),E=DN(a.display),N=E.left,C=Math.max(c.sizerWidth,Qu(a)-c.sizer.offsetLeft)-E.right,I=p.direction=="ltr";function U(Te,Ce,Ge,qe){Ce<0&&(Ce=0),Ce=Math.round(Ce),qe=Math.round(qe),g.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px; top: `+Ce+"px; width: "+(Ge==null?C-Te:Ge)+`px; height: `+(qe-Ce)+"px"))}function K(Te,Ce,Ge){var qe=Ae(p,Te),lt=qe.text.length,Ht,zr;function lr(wr,Xn){return _h(a,W(Te,wr),"div",qe,Xn)}function li(wr,Xn,sn){var Fr=VN(a,qe,null,wr),Nr=Xn=="ltr"==(sn=="after")?"left":"right",mr=sn=="after"?Fr.begin:Fr.end-(/\s/.test(qe.text.charAt(Fr.end-1))?2:1);return lr(mr,Nr)[Nr]}var Jn=xn(qe,p.direction);return hn(Jn,Ce||0,Ge==null?lt:Ge,function(wr,Xn,sn,Fr){var Nr=sn=="ltr",mr=lr(wr,Nr?"left":"right"),Zn=lr(Xn-1,Nr?"right":"left"),vl=Ce==null&&wr==0,Ko=Ge==null&&Xn==lt,mn=Fr==0,Ca=!Jn||Fr==Jn.length-1;if(Zn.top-mr.top<=3){var Wr=(I?vl:Ko)&&mn,q0=(I?Ko:vl)&&Ca,po=Wr?N:(Nr?mr:Zn).left,Xu=q0?C:(Nr?Zn:mr).right;U(po,mr.top,Xu-po,mr.bottom)}else{var Zu,In,gl,V0;Nr?(Zu=I&&vl&&mn?N:mr.left,In=I?C:li(wr,sn,"before"),gl=I?N:li(Xn,sn,"after"),V0=I&&Ko&&Ca?C:Zn.right):(Zu=I?li(wr,sn,"before"):N,In=!I&&vl&&mn?C:mr.right,gl=!I&&Ko&&Ca?N:Zn.left,V0=I?li(Xn,sn,"after"):C),U(Zu,mr.top,In-Zu,mr.bottom),mr.bottom0?u.blinker=setInterval(function(){a.hasFocus()||nl(a),u.cursorDiv.style.visibility=(f=!f)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility="hidden")}}function BN(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||v0(a))}function h0(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&nl(a))},100)}function v0(a,u){a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Ft(a,"focus",a,u),a.state.focused=!0,Le(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),d&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),p0(a))}function nl(a,u){a.state.delayingBlurEvent||(a.state.focused&&(Ft(a,"blur",a,u),a.state.focused=!1,z(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function kh(a){for(var u=a.display,f=u.lineDiv.offsetTop,c=Math.max(0,u.scroller.getBoundingClientRect().top),p=u.lineDiv.getBoundingClientRect().top,g=0,E=0;E.005||X<-.005)&&(pa.display.sizerWidth){var le=Math.ceil(U/rl(a.display));le>a.display.maxLineLength&&(a.display.maxLineLength=le,a.display.maxLine=N.line,a.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(u.scroller.scrollTop+=g)}function KN(a){if(a.widgets)for(var u=0;u=E&&(g=wa(u,so(Ae(u,C))-a.wrapper.clientHeight),E=C)}return{from:g,to:Math.max(E,g+1)}}function R2(a,u){if(!nr(a,"scrollCursorIntoView")){var f=a.display,c=f.sizer.getBoundingClientRect(),p=null,g=f.wrapper.ownerDocument;if(u.top+c.top<0?p=!0:u.bottom+c.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(p=!1),p!=null&&!k){var E=P("div","\u200B",null,`position: absolute; top: `+(u.top-f.viewOffset-bh(a.display))+`px; height: `+(u.bottom-u.top+Da(a)+f.barHeight)+`px; left: `+u.left+"px; width: "+Math.max(2,u.right-u.left)+"px;");a.display.lineSpace.appendChild(E),E.scrollIntoView(p),a.display.lineSpace.removeChild(E)}}}function j2(a,u,f,c){c==null&&(c=0);var p;!a.options.lineWrapping&&u==f&&(f=u.sticky=="before"?W(u.line,u.ch+1,"before"):u,u=u.ch?W(u.line,u.sticky=="before"?u.ch-1:u.ch,"after"):u);for(var g=0;g<5;g++){var E=!1,N=fa(a,u),C=!f||f==u?N:fa(a,f);p={left:Math.min(N.left,C.left),top:Math.min(N.top,C.top)-c,right:Math.max(N.left,C.left),bottom:Math.max(N.bottom,C.bottom)+c};var I=g0(a,p),U=a.doc.scrollTop,K=a.doc.scrollLeft;if(I.scrollTop!=null&&(pf(a,I.scrollTop),Math.abs(a.doc.scrollTop-U)>1&&(E=!0)),I.scrollLeft!=null&&(zu(a,I.scrollLeft),Math.abs(a.doc.scrollLeft-K)>1&&(E=!0)),!E)break}return p}function P2(a,u){var f=g0(a,u);f.scrollTop!=null&&pf(a,f.scrollTop),f.scrollLeft!=null&&zu(a,f.scrollLeft)}function g0(a,u){var f=a.display,c=tl(a.display);u.top<0&&(u.top=0);var p=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:f.scroller.scrollTop,g=n0(a),E={};u.bottom-u.top>g&&(u.bottom=u.top+g);var N=a.doc.height+r0(f),C=u.topN-c;if(u.topp+g){var U=Math.min(u.top,(I?N:u.bottom)-g);U!=p&&(E.scrollTop=U)}var K=a.options.fixedGutter?0:f.gutters.offsetWidth,$=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:f.scroller.scrollLeft-K,X=Qu(a)-f.gutters.offsetWidth,ae=u.right-u.left>X;return ae&&(u.right=u.left+X),u.left<10?E.scrollLeft=0:u.left<$?E.scrollLeft=Math.max(0,u.left+K-(ae?0:10)):u.right>X+$-3&&(E.scrollLeft=u.right+(ae?0:10)-X),E}function m0(a,u){u!=null&&(wh(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+u)}function il(a){wh(a);var u=a.getCursor();a.curOp.scrollToPos={from:u,to:u,margin:a.options.cursorScrollMargin}}function df(a,u,f){(u!=null||f!=null)&&wh(a),u!=null&&(a.curOp.scrollLeft=u),f!=null&&(a.curOp.scrollTop=f)}function F2(a,u){wh(a),a.curOp.scrollToPos=u}function wh(a){var u=a.curOp.scrollToPos;if(u){a.curOp.scrollToPos=null;var f=MN(a,u.from),c=MN(a,u.to);HN(a,f,c,u.margin)}}function HN(a,u,f,c){var p=g0(a,{left:Math.min(u.left,f.left),top:Math.min(u.top,f.top)-c,right:Math.max(u.right,f.right),bottom:Math.max(u.bottom,f.bottom)+c});df(a,p.scrollLeft,p.scrollTop)}function pf(a,u){Math.abs(a.doc.scrollTop-u)<2||(r||b0(a,{top:u}),zN(a,u,!0),r&&b0(a),gf(a,100))}function zN(a,u,f){u=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,u)),!(a.display.scroller.scrollTop==u&&!f)&&(a.doc.scrollTop=u,a.display.scrollbars.setScrollTop(u),a.display.scroller.scrollTop!=u&&(a.display.scroller.scrollTop=u))}function zu(a,u,f,c){u=Math.max(0,Math.min(u,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((f?u==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-u)<2)&&!c)&&(a.doc.scrollLeft=u,ZN(a),a.display.scroller.scrollLeft!=u&&(a.display.scroller.scrollLeft=u),a.display.scrollbars.setScrollLeft(u))}function hf(a){var u=a.display,f=u.gutters.offsetWidth,c=Math.round(a.doc.height+r0(a.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:a.options.fixedGutter?f:0,docHeight:c,scrollHeight:c+Da(a)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:f}}var Wu=function(a,u,f){this.cm=f;var c=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");c.tabIndex=p.tabIndex=-1,a(c),a(p),_e(c,"scroll",function(){c.clientHeight&&u(c.scrollTop,"vertical")}),_e(p,"scroll",function(){p.clientWidth&&u(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wu.prototype.update=function(a){var u=a.scrollWidth>a.clientWidth+1,f=a.scrollHeight>a.clientHeight+1,c=a.nativeBarWidth;if(f){this.vert.style.display="block",this.vert.style.bottom=u?c+"px":"0";var p=a.viewHeight-(u?c:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+p)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(u){this.horiz.style.display="block",this.horiz.style.right=f?c+"px":"0",this.horiz.style.left=a.barLeft+"px";var g=a.viewWidth-a.barLeft-(f?c:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(c==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:f?c:0,bottom:u?c:0}},Wu.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wu.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wu.prototype.zeroWidthHack=function(){var a=w&&!_?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ce,this.disableVert=new ce},Wu.prototype.enableZeroWidthBar=function(a,u,f){a.style.visibility="";function c(){var p=a.getBoundingClientRect(),g=f=="vert"?document.elementFromPoint(p.right-1,(p.top+p.bottom)/2):document.elementFromPoint((p.right+p.left)/2,p.bottom-1);g!=a?a.style.visibility="hidden":u.set(1e3,c)}u.set(1e3,c)},Wu.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var vf=function(){};vf.prototype.update=function(){return{bottom:0,right:0}},vf.prototype.setScrollLeft=function(){},vf.prototype.setScrollTop=function(){},vf.prototype.clear=function(){};function al(a,u){u||(u=hf(a));var f=a.display.barWidth,c=a.display.barHeight;WN(a,u);for(var p=0;p<4&&f!=a.display.barWidth||c!=a.display.barHeight;p++)f!=a.display.barWidth&&a.options.lineWrapping&&kh(a),WN(a,hf(a)),f=a.display.barWidth,c=a.display.barHeight}function WN(a,u){var f=a.display,c=f.scrollbars.update(u);f.sizer.style.paddingRight=(f.barWidth=c.right)+"px",f.sizer.style.paddingBottom=(f.barHeight=c.bottom)+"px",f.heightForcer.style.borderBottom=c.bottom+"px solid transparent",c.right&&c.bottom?(f.scrollbarFiller.style.display="block",f.scrollbarFiller.style.height=c.bottom+"px",f.scrollbarFiller.style.width=c.right+"px"):f.scrollbarFiller.style.display="",c.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(f.gutterFiller.style.display="block",f.gutterFiller.style.height=c.bottom+"px",f.gutterFiller.style.width=u.gutterWidth+"px"):f.gutterFiller.style.display=""}var YN={native:Wu,null:vf};function JN(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&z(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new YN[a.options.scrollbarStyle](function(u){a.display.wrapper.insertBefore(u,a.display.scrollbarFiller),_e(u,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),u.setAttribute("cm-not-content","true")},function(u,f){f=="horizontal"?zu(a,u):pf(a,u)},a),a.display.scrollbars.addClass&&Le(a.display.wrapper,a.display.scrollbars.addClass)}var M2=0;function Yu(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.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:++M2,markArrays:null},v2(a.curOp)}function Ju(a){var u=a.curOp;u&&m2(u,function(f){for(var c=0;c=f.viewTo)||f.maxLineChanged&&u.options.lineWrapping,a.update=a.mustUpdate&&new Nh(u,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function U2(a){a.updatedDisplay=a.mustUpdate&&y0(a.cm,a.update)}function G2(a){var u=a.cm,f=u.display;a.updatedDisplay&&kh(u),a.barMeasure=hf(u),f.maxLineChanged&&!u.options.lineWrapping&&(a.adjustWidthTo=CN(u,f.maxLine,f.maxLine.text.length).left+3,u.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(f.scroller.clientWidth,f.sizer.offsetLeft+a.adjustWidthTo+Da(u)+u.display.barWidth),a.maxScrollLeft=Math.max(0,f.sizer.offsetLeft+a.adjustWidthTo-Qu(u))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=f.input.prepareSelection())}function Q2(a){var u=a.cm;a.adjustWidthTo!=null&&(u.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var f=+new Date+a.options.workTime,c=af(a,u.highlightFrontier),p=[];u.iter(c.line,Math.min(u.first+u.size,a.display.viewTo+500),function(g){if(c.line>=a.display.viewFrom){var E=g.styles,N=g.text.length>a.options.maxHighlightLength?ao(u.mode,c.state):null,C=iN(a,g,c,!0);N&&(c.state=N),g.styles=C.styles;var I=g.styleClasses,U=C.classes;U?g.styleClasses=U:I&&(g.styleClasses=null);for(var K=!E||E.length!=g.styles.length||I!=U&&(!I||!U||I.bgClass!=U.bgClass||I.textClass!=U.textClass),$=0;!K&&$f)return gf(a,a.options.workDelay),!0}),u.highlightFrontier=c.line,u.modeFrontier=Math.max(u.modeFrontier,c.line),p.length&&si(a,function(){for(var g=0;g=f.viewFrom&&u.visible.to<=f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>=f.viewTo)&&f.renderedView==f.view&&GN(a)==0)return!1;$N(a)&&(qo(a),u.dims=l0(a));var p=c.first+c.size,g=Math.max(u.visible.from-a.options.viewportMargin,c.first),E=Math.min(p,u.visible.to+a.options.viewportMargin);f.viewFromE&&f.viewTo-E<20&&(E=Math.min(p,f.viewTo)),uo&&(g=Zy(a.doc,g),E=yN(a.doc,E));var N=g!=f.viewFrom||E!=f.viewTo||f.lastWrapHeight!=u.wrapperHeight||f.lastWrapWidth!=u.wrapperWidth;I2(a,g,E),f.viewOffset=so(Ae(a.doc,f.viewFrom)),a.display.mover.style.top=f.viewOffset+"px";var C=GN(a);if(!N&&C==0&&!u.force&&f.renderedView==f.view&&(f.updateLineNumbers==null||f.updateLineNumbers>=f.viewTo))return!1;var I=z2(a);return C>4&&(f.lineDiv.style.display="none"),Y2(a,f.updateLineNumbers,u.dims),C>4&&(f.lineDiv.style.display=""),f.renderedView=f.view,W2(I),B(f.cursorDiv),B(f.selectionDiv),f.gutters.style.height=f.sizer.style.minHeight=0,N&&(f.lastWrapHeight=u.wrapperHeight,f.lastWrapWidth=u.wrapperWidth,gf(a,400)),f.updateLineNumbers=null,!0}function XN(a,u){for(var f=u.viewport,c=!0;;c=!1){if(!c||!a.options.lineWrapping||u.oldDisplayWidth==Qu(a)){if(f&&f.top!=null&&(f={top:Math.min(a.doc.height+r0(a.display)-n0(a),f.top)}),u.visible=Oh(a.display,a.doc,f),u.visible.from>=a.display.viewFrom&&u.visible.to<=a.display.viewTo)break}else c&&(u.visible=Oh(a.display,a.doc,f));if(!y0(a,u))break;kh(a);var p=hf(a);ff(a),al(a,p),_0(a,p),u.force=!1}u.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(u.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function b0(a,u){var f=new Nh(a,u);if(y0(a,f)){kh(a),XN(a,f);var c=hf(a);ff(a),al(a,c),_0(a,c),f.finish()}}function Y2(a,u,f){var c=a.display,p=a.options.lineNumbers,g=c.lineDiv,E=g.firstChild;function N(ae){var le=ae.nextSibling;return d&&w&&a.display.currentWheelTarget==ae?ae.style.display="none":ae.parentNode.removeChild(ae),le}for(var C=c.view,I=c.viewFrom,U=0;U-1&&(X=!1),SN(a,K,I,f)),X&&(B(K.lineNumber),K.lineNumber.appendChild(document.createTextNode(H(a.options,I)))),E=K.node.nextSibling}I+=K.size}for(;E;)E=N(E)}function T0(a){var u=a.gutters.offsetWidth;a.sizer.style.marginLeft=u+"px",Br(a,"gutterChanged",a)}function _0(a,u){a.display.sizer.style.minHeight=u.docHeight+"px",a.display.heightForcer.style.top=u.docHeight+"px",a.display.gutters.style.height=u.docHeight+a.display.barHeight+Da(a)+"px"}function ZN(a){var u=a.display,f=u.view;if(!(!u.alignWidgets&&(!u.gutters.firstChild||!a.options.fixedGutter))){for(var c=c0(u)-u.scroller.scrollLeft+a.doc.scrollLeft,p=u.gutters.offsetWidth,g=c+"px",E=0;E=105&&(p.wrapper.style.clipPath="inset(0px)"),p.wrapper.setAttribute("translate","no"),s&&l<8&&(p.gutters.style.zIndex=-1,p.scroller.style.paddingRight=0),!d&&!(r&&m)&&(p.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(p.wrapper):a(p.wrapper)),p.viewFrom=p.viewTo=u.first,p.reportedViewFrom=p.reportedViewTo=u.first,p.view=[],p.renderedView=null,p.externalMeasured=null,p.viewOffset=0,p.lastWrapHeight=p.lastWrapWidth=0,p.updateLineNumbers=null,p.nativeBarWidth=p.barHeight=p.barWidth=0,p.scrollbarsClipped=!1,p.lineNumWidth=p.lineNumInnerWidth=p.lineNumChars=null,p.alignWidgets=!1,p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.maxLine=null,p.maxLineLength=0,p.maxLineChanged=!1,p.wheelDX=p.wheelDY=p.wheelStartX=p.wheelStartY=null,p.shift=!1,p.selForContextMenu=null,p.activeTouch=null,p.gutterSpecs=E0(c.gutters,c.lineNumbers),eD(p),f.init(p)}var Dh=0,co=null;s?co=-.53:r?co=15:v?co=-.7:D&&(co=-1/3);function tD(a){var u=a.wheelDeltaX,f=a.wheelDeltaY;return u==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(u=a.detail),f==null&&a.detail&&a.axis==a.VERTICAL_AXIS?f=a.detail:f==null&&(f=a.wheelDelta),{x:u,y:f}}function X2(a){var u=tD(a);return u.x*=co,u.y*=co,u}function rD(a,u){v&&y==102&&(a.display.chromeScrollHack==null?a.display.sizer.style.pointerEvents="none":clearTimeout(a.display.chromeScrollHack),a.display.chromeScrollHack=setTimeout(function(){a.display.chromeScrollHack=null,a.display.sizer.style.pointerEvents=""},100));var f=tD(u),c=f.x,p=f.y,g=co;u.deltaMode===0&&(c=u.deltaX,p=u.deltaY,g=1);var E=a.display,N=E.scroller,C=N.scrollWidth>N.clientWidth,I=N.scrollHeight>N.clientHeight;if(!!(c&&C||p&&I)){if(p&&w&&d){e:for(var U=u.target,K=E.view;U!=N;U=U.parentNode)for(var $=0;$=0&&ie(a,c.to())<=0)return f}return-1};var Nt=function(a,u){this.anchor=a,this.head=u};Nt.prototype.from=function(){return Pr(this.anchor,this.head)},Nt.prototype.to=function(){return _t(this.anchor,this.head)},Nt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function da(a,u,f){var c=a&&a.options.selectionsMayTouch,p=u[f];u.sort(function($,X){return ie($.from(),X.from())}),f=we(u,p);for(var g=1;g0:C>=0){var I=Pr(N.from(),E.from()),U=_t(N.to(),E.to()),K=N.empty()?E.from()==E.head:N.from()==N.head;g<=f&&--f,u.splice(--g,2,new Nt(K?U:I,K?I:U))}}return new ki(u,f)}function Vo(a,u){return new ki([new Nt(a,u||a)],0)}function Uo(a){return a.text?W(a.from.line+a.text.length-1,se(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function nD(a,u){if(ie(a,u.from)<0)return a;if(ie(a,u.to)<=0)return Uo(u);var f=a.line+u.text.length-(u.to.line-u.from.line)-1,c=a.ch;return a.line==u.to.line&&(c+=Uo(u).ch-u.to.ch),W(f,c)}function S0(a,u){for(var f=[],c=0;c1&&a.remove(N.line+1,ae-1),a.insert(N.line+1,be)}Br(a,"change",a,u)}function Go(a,u,f){function c(p,g,E){if(p.linked)for(var N=0;N1&&!a.done[a.done.length-2].ranges)return a.done.pop(),se(a.done)}function lD(a,u,f,c){var p=a.history;p.undone.length=0;var g=+new Date,E,N;if((p.lastOp==c||p.lastOrigin==u.origin&&u.origin&&(u.origin.charAt(0)=="+"&&p.lastModTime>g-(a.cm?a.cm.options.historyEventDelay:500)||u.origin.charAt(0)=="*"))&&(E=eB(p,p.lastOp==c)))N=se(E.changes),ie(u.from,u.to)==0&&ie(u.from,N.to)==0?N.to=Uo(u):E.changes.push(w0(a,u));else{var C=se(p.done);for((!C||!C.ranges)&&Ch(a.sel,p.done),E={changes:[w0(a,u)],generation:p.generation},p.done.push(E);p.done.length>p.undoDepth;)p.done.shift(),p.done[0].ranges||p.done.shift()}p.done.push(f),p.generation=++p.maxGeneration,p.lastModTime=p.lastSelTime=g,p.lastOp=p.lastSelOp=c,p.lastOrigin=p.lastSelOrigin=u.origin,N||Ft(a,"historyAdded")}function tB(a,u,f,c){var p=u.charAt(0);return p=="*"||p=="+"&&f.ranges.length==c.ranges.length&&f.somethingSelected()==c.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function rB(a,u,f,c){var p=a.history,g=c&&c.origin;f==p.lastSelOp||g&&p.lastSelOrigin==g&&(p.lastModTime==p.lastSelTime&&p.lastOrigin==g||tB(a,g,se(p.done),u))?p.done[p.done.length-1]=u:Ch(u,p.done),p.lastSelTime=+new Date,p.lastSelOrigin=g,p.lastSelOp=f,c&&c.clearRedo!==!1&&sD(p.undone)}function Ch(a,u){var f=se(u);f&&f.ranges&&f.equals(a)||u.push(a)}function cD(a,u,f,c){var p=u["spans_"+a.id],g=0;a.iter(Math.max(a.first,f),Math.min(a.first+a.size,c),function(E){E.markedSpans&&((p||(p=u["spans_"+a.id]={}))[g]=E.markedSpans),++g})}function nB(a){if(!a)return null;for(var u,f=0;f-1&&(se(N)[K]=I[K],delete I[K])}}return c}function N0(a,u,f,c){if(c){var p=a.anchor;if(f){var g=ie(u,p)<0;g!=ie(f,p)<0?(p=u,u=f):g!=ie(u,f)<0&&(u=f)}return new Nt(p,u)}else return new Nt(f||u,u)}function Lh(a,u,f,c,p){p==null&&(p=a.cm&&(a.cm.display.shift||a.extend)),gn(a,new ki([N0(a.sel.primary(),u,f,p)],0),c)}function dD(a,u,f){for(var c=[],p=a.cm&&(a.cm.display.shift||a.extend),g=0;g=u.ch:N.to>u.ch))){if(p&&(Ft(C,"beforeCursorEnter"),C.explicitlyCleared))if(g.markedSpans){--E;continue}else break;if(!C.atomic)continue;if(f){var K=C.find(c<0?1:-1),$=void 0;if((c<0?U:I)&&(K=yD(a,K,-c,K&&K.line==u.line?g:null)),K&&K.line==u.line&&($=ie(K,f))&&(c<0?$<0:$>0))return ul(a,K,u,c,p)}var X=C.find(c<0?-1:1);return(c<0?I:U)&&(X=yD(a,X,c,X.line==u.line?g:null)),X?ul(a,X,u,c,p):null}}return u}function Ah(a,u,f,c,p){var g=c||1,E=ul(a,u,f,g,p)||!p&&ul(a,u,f,g,!0)||ul(a,u,f,-g,p)||!p&&ul(a,u,f,-g,!0);return E||(a.cantEdit=!0,W(a.first,0))}function yD(a,u,f,c){return f<0&&u.ch==0?u.line>a.first?Ye(a,W(u.line-1)):null:f>0&&u.ch==(c||Ae(a,u.line)).text.length?u.line=0;--p)_D(a,{from:c[p].from,to:c[p].to,text:p?[""]:u.text,origin:u.origin});else _D(a,u)}}function _D(a,u){if(!(u.text.length==1&&u.text[0]==""&&ie(u.from,u.to)==0)){var f=S0(a,u);lD(a,u,f,a.cm?a.cm.curOp.id:NaN),bf(a,u,f,Jy(a,u));var c=[];Go(a,function(p,g){!g&&we(c,p.history)==-1&&(OD(p.history,u),c.push(p.history)),bf(p,u,null,Jy(p,u))})}}function Rh(a,u,f){var c=a.cm&&a.cm.state.suppressEdits;if(!(c&&!f)){for(var p=a.history,g,E=a.sel,N=u=="undo"?p.done:p.undone,C=u=="undo"?p.undone:p.done,I=0;I=0;--X){var ae=$(X);if(ae)return ae.v}}}}function ED(a,u){if(u!=0&&(a.first+=u,a.sel=new ki(Ue(a.sel.ranges,function(p){return new Nt(W(p.anchor.line+u,p.anchor.ch),W(p.head.line+u,p.head.ch))}),a.sel.primIndex),a.cm)){Wn(a.cm,a.first,a.first-u,u);for(var f=a.cm.display,c=f.viewFrom;ca.lastLine())){if(u.from.lineg&&(u={from:u.from,to:W(g,Ae(a,g).text.length),text:[u.text[0]],origin:u.origin}),u.removed=oo(a,u.from,u.to),f||(f=S0(a,u)),a.cm?oB(a.cm,u,c):O0(a,u,c),Ih(a,f,Qe),a.cantEdit&&Ah(a,W(a.firstLine(),0))&&(a.cantEdit=!1)}}function oB(a,u,f){var c=a.doc,p=a.display,g=u.from,E=u.to,N=!1,C=g.line;a.options.lineWrapping||(C=wt(ca(Ae(c,g.line))),c.iter(C,E.line+1,function(X){if(X==p.maxLine)return N=!0,!0})),c.sel.contains(u.from,u.to)>-1&&Ys(a),O0(c,u,f,UN(a)),a.options.lineWrapping||(c.iter(C,g.line+u.text.length,function(X){var ae=mh(X);ae>p.maxLineLength&&(p.maxLine=X,p.maxLineLength=ae,p.maxLineChanged=!0,N=!1)}),N&&(a.curOp.updateMaxLine=!0)),YQ(c,g.line),gf(a,400);var I=u.text.length-(E.line-g.line)-1;u.full?Wn(a):g.line==E.line&&u.text.length==1&&!aD(a.doc,u)?Mo(a,g.line,"text"):Wn(a,g.line,E.line+1,I);var U=on(a,"changes"),K=on(a,"change");if(K||U){var $={from:g,to:E,text:u.text,removed:u.removed,origin:u.origin};K&&Br(a,"change",a,$),U&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push($)}a.display.selForContextMenu=null}function ll(a,u,f,c,p){var g;c||(c=f),ie(c,f)<0&&(g=[c,f],f=g[0],c=g[1]),typeof u=="string"&&(u=a.splitLines(u)),sl(a,{from:f,to:c,text:u,origin:p})}function SD(a,u,f,c){f1||!(this.children[0]instanceof _f))){var N=[];this.collapse(N),this.children=[new _f(N)],this.children[0].parent=this}},collapse:function(a){for(var u=0;u50){for(var E=p.lines.length%25+25,N=E;N10);a.parent.maybeSpill()}},iterN:function(a,u,f){for(var c=0;ca.display.maxLineLength&&(a.display.maxLine=I,a.display.maxLineLength=U,a.display.maxLineChanged=!0)}c!=null&&a&&this.collapsed&&Wn(a,c,p+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&gD(a.doc)),a&&Br(a,"markerCleared",a,this,c,p),u&&Ju(a),this.parent&&this.parent.clear()}},Qo.prototype.find=function(a,u){a==null&&this.type=="bookmark"&&(a=1);for(var f,c,p=0;p0||E==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=he("span",[g.replacedWith],"CodeMirror-widget"),c.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),c.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(mN(a,u.line,u,f,g)||u.line!=f.line&&mN(a,f.line,u,f,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");XQ()}g.addToHistory&&lD(a,{from:u,to:f,origin:"markText"},a.sel,NaN);var N=u.line,C=a.cm,I;if(a.iter(N,f.line+1,function(K){C&&g.collapsed&&!C.options.lineWrapping&&ca(K)==C.display.maxLine&&(I=!0),g.collapsed&&N!=u.line&&Fi(K,0),$Q(K,new ph(g,N==u.line?u.ch:null,N==f.line?f.ch:null),a.cm&&a.cm.curOp),++N}),g.collapsed&&a.iter(u.line,f.line+1,function(K){Fo(a,K)&&Fi(K,0)}),g.clearOnEnter&&_e(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(JQ(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),g.collapsed&&(g.id=++ND,g.atomic=!0),C){if(I&&(C.curOp.updateMaxLine=!0),g.collapsed)Wn(C,u.line,f.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var U=u.line;U<=f.line;U++)Mo(C,U,"text");g.atomic&&gD(C.doc),Br(C,"markerAdded",C,g)}return g}var kf=function(a,u){this.markers=a,this.primary=u;for(var f=0;f=0;C--)sl(this,c[C]);N?hD(this,N):this.cm&&il(this.cm)}),undo:Hr(function(){Rh(this,"undo")}),redo:Hr(function(){Rh(this,"redo")}),undoSelection:Hr(function(){Rh(this,"undo",!0)}),redoSelection:Hr(function(){Rh(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,u=0,f=0,c=0;c=a.ch)&&u.push(p.marker.parent||p.marker)}return u},findMarks:function(a,u,f){a=Ye(this,a),u=Ye(this,u);var c=[],p=a.line;return this.iter(a.line,u.line+1,function(g){var E=g.markedSpans;if(E)for(var N=0;N=C.to||C.from==null&&p!=a.line||C.from!=null&&p==u.line&&C.from>=u.ch)&&(!f||f(C.marker))&&c.push(C.marker.parent||C.marker)}++p}),c},getAllMarks:function(){var a=[];return this.iter(function(u){var f=u.markedSpans;if(f)for(var c=0;ca)return u=a,!0;a-=g,++f}),Ye(this,W(f,u))},indexFromPos:function(a){a=Ye(this,a);var u=a.ch;if(a.lineu&&(u=a.from),a.to!=null&&a.to-1){u.state.draggingText(a),setTimeout(function(){return u.display.input.focus()},20);return}try{var U=a.dataTransfer.getData("Text");if(U){var K;if(u.state.draggingText&&!u.state.draggingText.copy&&(K=u.listSelections()),Ih(u.doc,Vo(f,f)),K)for(var $=0;$=0;N--)ll(a.doc,"",c[N].from,c[N].to,"+delete");il(a)})}function x0(a,u,f){var c=Qr(a.text,u+f,f);return c<0||c>a.text.length?null:c}function C0(a,u,f){var c=x0(a,u.ch,f);return c==null?null:new W(u.line,c,f<0?"after":"before")}function L0(a,u,f,c,p){if(a){u.doc.direction=="rtl"&&(p=-p);var g=xn(f,u.doc.direction);if(g){var E=p<0?se(g):g[0],N=p<0==(E.level==1),C=N?"after":"before",I;if(E.level>0||u.doc.direction=="rtl"){var U=el(u,f);I=p<0?f.text.length-1:0;var K=xa(u,U,I).top;I=Kt(function($){return xa(u,U,$).top==K},p<0==(E.level==1)?E.from:E.to-1,I),C=="before"&&(I=x0(f,I,1))}else I=p<0?E.to:E.from;return new W(c,I,C)}}return new W(c,p<0?f.text.length:0,p<0?"before":"after")}function TB(a,u,f,c){var p=xn(u,a.doc.direction);if(!p)return C0(u,f,c);f.ch>=u.text.length?(f.ch=u.text.length,f.sticky="before"):f.ch<=0&&(f.ch=0,f.sticky="after");var g=vr(p,f.ch,f.sticky),E=p[g];if(a.doc.direction=="ltr"&&E.level%2==0&&(c>0?E.to>f.ch:E.from=E.from&&$>=U.begin)){var X=K?"before":"after";return new W(f.line,$,X)}}var ae=function(be,Ne,Te){for(var Ce=function(Ht,zr){return zr?new W(f.line,N(Ht,1),"before"):new W(f.line,Ht,"after")};be>=0&&be0==(Ge.level!=1),lt=qe?Te.begin:N(Te.end,-1);if(Ge.from<=lt&<0?U.end:N(U.begin,-1);return pe!=null&&!(c>0&&pe==u.text.length)&&(le=ae(c>0?0:p.length-1,c,I(pe)),le)?le:null}var Nf={selectAll:bD,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Qe)},killLine:function(a){return dl(a,function(u){if(u.empty()){var f=Ae(a.doc,u.head.line).text.length;return u.head.ch==f&&u.head.line0)p=new W(p.line,p.ch+1),a.replaceRange(g.charAt(p.ch-1)+g.charAt(p.ch-2),W(p.line,p.ch-2),p,"+transpose");else if(p.line>a.doc.first){var E=Ae(a.doc,p.line-1).text;E&&(p=new W(p.line,1),a.replaceRange(g.charAt(0)+a.doc.lineSeparator()+E.charAt(E.length-1),W(p.line-1,E.length-1),p,"+transpose"))}}f.push(new Nt(p,p))}a.setSelections(f)})},newlineAndIndent:function(a){return si(a,function(){for(var u=a.listSelections(),f=u.length-1;f>=0;f--)a.replaceRange(a.doc.lineSeparator(),u[f].anchor,u[f].head,"+input");u=a.listSelections();for(var c=0;ca&&ie(u,this.pos)==0&&f==this.button};var xf,Cf;function NB(a,u){var f=+new Date;return Cf&&Cf.compare(f,a,u)?(xf=Cf=null,"triple"):xf&&xf.compare(f,a,u)?(Cf=new A0(f,a,u),xf=null,"double"):(xf=new A0(f,a,u),Cf=null,"single")}function QD(a){var u=this,f=u.display;if(!(nr(u,a)||f.activeTouch&&f.input.supportsTouch())){if(f.input.ensurePolled(),f.shift=a.shiftKey,lo(f,a)){d||(f.scroller.draggable=!1,setTimeout(function(){return f.scroller.draggable=!0},100));return}if(!R0(u,a)){var c=Ku(u,a),p=A(a),g=c?NB(c,p):"single";At(u).focus(),p==1&&u.state.selectingText&&u.state.selectingText(a),!(c&&DB(u,p,c,g,a))&&(p==1?c?CB(u,c,g,a):V(a)==f.scroller&&ee(a):p==2?(c&&Lh(u.doc,c),setTimeout(function(){return f.input.focus()},20)):p==3&&(M?u.display.input.onContextMenu(a):h0(u)))}}}function DB(a,u,f,c,p){var g="Click";return c=="double"?g="Double"+g:c=="triple"&&(g="Triple"+g),g=(u==1?"Left":u==2?"Middle":"Right")+g,Df(a,RD(g,p),p,function(E){if(typeof E=="string"&&(E=Nf[E]),!E)return!1;var N=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),N=E(a,f)!=Me}finally{a.state.suppressEdits=!1}return N})}function xB(a,u,f){var c=a.getOption("configureMouse"),p=c?c(a,u,f):{};if(p.unit==null){var g=x?f.shiftKey&&f.metaKey:f.altKey;p.unit=g?"rectangle":u=="single"?"char":u=="double"?"word":"line"}return(p.extend==null||a.doc.extend)&&(p.extend=a.doc.extend||f.shiftKey),p.addNew==null&&(p.addNew=w?f.metaKey:f.ctrlKey),p.moveOnDrag==null&&(p.moveOnDrag=!(w?f.altKey:f.ctrlKey)),p}function CB(a,u,f,c){s?setTimeout(Ot(BN,a),0):a.curOp.focus=Fe(Ve(a));var p=xB(a,f,c),g=a.doc.sel,E;a.options.dragDrop&&re&&!a.isReadOnly()&&f=="single"&&(E=g.contains(u))>-1&&(ie((E=g.ranges[E]).from(),u)<0||u.xRel>0)&&(ie(E.to(),u)>0||u.xRel<0)?LB(a,c,u,p):IB(a,c,u,p)}function LB(a,u,f,c){var p=a.display,g=!1,E=Kr(a,function(I){d&&(p.scroller.draggable=!1),a.state.draggingText=!1,a.state.delayingBlurEvent&&(a.hasFocus()?a.state.delayingBlurEvent=!1:h0(a)),Ar(p.wrapper.ownerDocument,"mouseup",E),Ar(p.wrapper.ownerDocument,"mousemove",N),Ar(p.scroller,"dragstart",C),Ar(p.scroller,"drop",E),g||(ee(I),c.addNew||Lh(a.doc,f,null,null,c.extend),d&&!D||s&&l==9?setTimeout(function(){p.wrapper.ownerDocument.body.focus({preventScroll:!0}),p.input.focus()},20):p.input.focus())}),N=function(I){g=g||Math.abs(u.clientX-I.clientX)+Math.abs(u.clientY-I.clientY)>=10},C=function(){return g=!0};d&&(p.scroller.draggable=!0),a.state.draggingText=E,E.copy=!c.moveOnDrag,_e(p.wrapper.ownerDocument,"mouseup",E),_e(p.wrapper.ownerDocument,"mousemove",N),_e(p.scroller,"dragstart",C),_e(p.scroller,"drop",E),a.state.delayingBlurEvent=!0,setTimeout(function(){return p.input.focus()},20),p.scroller.dragDrop&&p.scroller.dragDrop()}function BD(a,u,f){if(f=="char")return new Nt(u,u);if(f=="word")return a.findWordAt(u);if(f=="line")return new Nt(W(u.line,0),Ye(a.doc,W(u.line+1,0)));var c=f(a,u);return new Nt(c.from,c.to)}function IB(a,u,f,c){s&&h0(a);var p=a.display,g=a.doc;ee(u);var E,N,C=g.sel,I=C.ranges;if(c.addNew&&!c.extend?(N=g.sel.contains(f),N>-1?E=I[N]:E=new Nt(f,f)):(E=g.sel.primary(),N=g.sel.primIndex),c.unit=="rectangle")c.addNew||(E=new Nt(f,f)),f=Ku(a,u,!0,!0),N=-1;else{var U=BD(a,f,c.unit);c.extend?E=N0(E,U.anchor,U.head,c.extend):E=U}c.addNew?N==-1?(N=I.length,gn(g,da(a,I.concat([E]),N),{scroll:!1,origin:"*mouse"})):I.length>1&&I[N].empty()&&c.unit=="char"&&!c.extend?(gn(g,da(a,I.slice(0,N).concat(I.slice(N+1)),0),{scroll:!1,origin:"*mouse"}),C=g.sel):D0(g,N,E,ze):(N=0,gn(g,new ki([E],0),ze),C=g.sel);var K=f;function $(Te){if(ie(K,Te)!=0)if(K=Te,c.unit=="rectangle"){for(var Ce=[],Ge=a.options.tabSize,qe=te(Ae(g,f.line).text,f.ch,Ge),lt=te(Ae(g,Te.line).text,Te.ch,Ge),Ht=Math.min(qe,lt),zr=Math.max(qe,lt),lr=Math.min(f.line,Te.line),li=Math.min(a.lastLine(),Math.max(f.line,Te.line));lr<=li;lr++){var Jn=Ae(g,lr).text,wr=oe(Jn,Ht,Ge);Ht==zr?Ce.push(new Nt(W(lr,wr),W(lr,wr))):Jn.length>wr&&Ce.push(new Nt(W(lr,wr),W(lr,oe(Jn,zr,Ge))))}Ce.length||Ce.push(new Nt(f,f)),gn(g,da(a,C.ranges.slice(0,N).concat(Ce),N),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Te)}else{var Xn=E,sn=BD(a,Te,c.unit),Fr=Xn.anchor,Nr;ie(sn.anchor,Fr)>0?(Nr=sn.head,Fr=Pr(Xn.from(),sn.anchor)):(Nr=sn.anchor,Fr=_t(Xn.to(),sn.head));var mr=C.ranges.slice(0);mr[N]=AB(a,new Nt(Ye(g,Fr),Nr)),gn(g,da(a,mr,N),ze)}}var X=p.wrapper.getBoundingClientRect(),ae=0;function le(Te){var Ce=++ae,Ge=Ku(a,Te,!0,c.unit=="rectangle");if(!!Ge)if(ie(Ge,K)!=0){a.curOp.focus=Fe(Ve(a)),$(Ge);var qe=Oh(p,g);(Ge.line>=qe.to||Ge.lineX.bottom?20:0;lt&&setTimeout(Kr(a,function(){ae==Ce&&(p.scroller.scrollTop+=lt,le(Te))}),50)}}function pe(Te){a.state.selectingText=!1,ae=1/0,Te&&(ee(Te),p.input.focus()),Ar(p.wrapper.ownerDocument,"mousemove",be),Ar(p.wrapper.ownerDocument,"mouseup",Ne),g.history.lastSelOrigin=null}var be=Kr(a,function(Te){Te.buttons===0||!A(Te)?pe(Te):le(Te)}),Ne=Kr(a,pe);a.state.selectingText=Ne,_e(p.wrapper.ownerDocument,"mousemove",be),_e(p.wrapper.ownerDocument,"mouseup",Ne)}function AB(a,u){var f=u.anchor,c=u.head,p=Ae(a.doc,f.line);if(ie(f,c)==0&&f.sticky==c.sticky)return u;var g=xn(p);if(!g)return u;var E=vr(g,f.ch,f.sticky),N=g[E];if(N.from!=f.ch&&N.to!=f.ch)return u;var C=E+(N.from==f.ch==(N.level!=1)?0:1);if(C==0||C==g.length)return u;var I;if(c.line!=f.line)I=(c.line-f.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var U=vr(g,c.ch,c.sticky),K=U-E||(c.ch-f.ch)*(N.level==1?-1:1);U==C-1||U==C?I=K<0:I=K>0}var $=g[C+(I?-1:0)],X=I==($.level==1),ae=X?$.from:$.to,le=X?"after":"before";return f.ch==ae&&f.sticky==le?u:new Nt(new W(f.line,ae,le),c)}function KD(a,u,f,c){var p,g;if(u.touches)p=u.touches[0].clientX,g=u.touches[0].clientY;else try{p=u.clientX,g=u.clientY}catch($){return!1}if(p>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;c&&ee(u);var E=a.display,N=E.lineDiv.getBoundingClientRect();if(g>N.bottom||!on(a,f))return Y(u);g-=N.top-E.viewOffset;for(var C=0;C=p){var U=wa(a.doc,g),K=a.display.gutterSpecs[C];return Ft(a,f,a,U,K.className,u),Y(u)}}}function R0(a,u){return KD(a,u,"gutterClick",!0)}function HD(a,u){lo(a.display,u)||RB(a,u)||nr(a,u,"contextmenu")||M||a.display.input.onContextMenu(u)}function RB(a,u){return on(a,"gutterContextMenu")?KD(a,u,"gutterContextMenu",!1):!1}function zD(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),cf(a)}var pl={toString:function(){return"CodeMirror.Init"}},WD={},Mh={};function jB(a){var u=a.optionHandlers;function f(c,p,g,E){a.defaults[c]=p,g&&(u[c]=E?function(N,C,I){I!=pl&&g(N,C,I)}:g)}a.defineOption=f,a.Init=pl,f("value","",function(c,p){return c.setValue(p)},!0),f("mode",null,function(c,p){c.doc.modeOption=p,k0(c)},!0),f("indentUnit",2,k0,!0),f("indentWithTabs",!1),f("smartIndent",!0),f("tabSize",4,function(c){yf(c),cf(c),Wn(c)},!0),f("lineSeparator",null,function(c,p){if(c.doc.lineSep=p,!!p){var g=[],E=c.doc.first;c.doc.iter(function(C){for(var I=0;;){var U=C.text.indexOf(p,I);if(U==-1)break;I=U+p.length,g.push(W(E,U))}E++});for(var N=g.length-1;N>=0;N--)ll(c.doc,p,g[N],W(g[N].line,g[N].ch+p.length))}}),f("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(c,p,g){c.state.specialChars=new RegExp(p.source+(p.test(" ")?"":"| "),"g"),g!=pl&&c.refresh()}),f("specialCharPlaceholder",c2,function(c){return c.refresh()},!0),f("electricChars",!0),f("inputStyle",m?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),f("spellcheck",!1,function(c,p){return c.getInputField().spellcheck=p},!0),f("autocorrect",!1,function(c,p){return c.getInputField().autocorrect=p},!0),f("autocapitalize",!1,function(c,p){return c.getInputField().autocapitalize=p},!0),f("rtlMoveVisually",!L),f("wholeLineUpdateBefore",!0),f("theme","default",function(c){zD(c),mf(c)},!0),f("keyMap","default",function(c,p,g){var E=Ph(p),N=g!=pl&&Ph(g);N&&N.detach&&N.detach(c,E),E.attach&&E.attach(c,N||null)}),f("extraKeys",null),f("configureMouse",null),f("lineWrapping",!1,FB,!0),f("gutters",[],function(c,p){c.display.gutterSpecs=E0(p,c.options.lineNumbers),mf(c)},!0),f("fixedGutter",!0,function(c,p){c.display.gutters.style.left=p?c0(c.display)+"px":"0",c.refresh()},!0),f("coverGutterNextToScrollbar",!1,function(c){return al(c)},!0),f("scrollbarStyle","native",function(c){JN(c),al(c),c.display.scrollbars.setScrollTop(c.doc.scrollTop),c.display.scrollbars.setScrollLeft(c.doc.scrollLeft)},!0),f("lineNumbers",!1,function(c,p){c.display.gutterSpecs=E0(c.options.gutters,p),mf(c)},!0),f("firstLineNumber",1,mf,!0),f("lineNumberFormatter",function(c){return c},mf,!0),f("showCursorWhenSelecting",!1,ff,!0),f("resetSelectionOnContextMenu",!0),f("lineWiseCopyCut",!0),f("pasteLinesPerSelection",!0),f("selectionsMayTouch",!1),f("readOnly",!1,function(c,p){p=="nocursor"&&(nl(c),c.display.input.blur()),c.display.input.readOnlyChanged(p)}),f("screenReaderLabel",null,function(c,p){p=p===""?null:p,c.display.input.screenReaderLabelChanged(p)}),f("disableInput",!1,function(c,p){p||c.display.input.reset()},!0),f("dragDrop",!0,PB),f("allowDropFileTypes",null),f("cursorBlinkRate",530),f("cursorScrollMargin",0),f("cursorHeight",1,ff,!0),f("singleCursorHeightPerLine",!0,ff,!0),f("workTime",100),f("workDelay",100),f("flattenSpans",!0,yf,!0),f("addModeClass",!1,yf,!0),f("pollInterval",100),f("undoDepth",200,function(c,p){return c.doc.history.undoDepth=p}),f("historyEventDelay",1250),f("viewportMargin",10,function(c){return c.refresh()},!0),f("maxHighlightLength",1e4,yf,!0),f("moveInputWithCursor",!0,function(c,p){p||c.display.input.resetPosition()}),f("tabindex",null,function(c,p){return c.display.input.getField().tabIndex=p||""}),f("autofocus",null),f("direction","ltr",function(c,p){return c.doc.setDirection(p)},!0),f("phrases",null)}function PB(a,u,f){var c=f&&f!=pl;if(!u!=!c){var p=a.display.dragFunctions,g=u?_e:Ar;g(a.display.scroller,"dragstart",p.start),g(a.display.scroller,"dragenter",p.enter),g(a.display.scroller,"dragover",p.over),g(a.display.scroller,"dragleave",p.leave),g(a.display.scroller,"drop",p.drop)}}function FB(a){a.options.lineWrapping?(Le(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(z(a.display.wrapper,"CodeMirror-wrap"),e0(a)),f0(a),Wn(a),cf(a),setTimeout(function(){return al(a)},100)}function ir(a,u){var f=this;if(!(this instanceof ir))return new ir(a,u);this.options=u=u?Ie(u):{},Ie(WD,u,!1);var c=u.value;typeof c=="string"?c=new Yn(c,u.mode,null,u.lineSeparator,u.direction):u.mode&&(c.modeOption=u.mode),this.doc=c;var p=new ir.inputStyles[u.inputStyle](this),g=this.display=new J2(a,c,p,u);g.wrapper.CodeMirror=this,zD(this),u.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),JN(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 ce,keySeq:null,specialChars:null},u.autofocus&&!m&&g.input.focus(),s&&l<11&&setTimeout(function(){return f.display.input.reset(!0)},20),MB(this),vB(),Yu(this),this.curOp.forceUpdate=!0,oD(this,c),u.autofocus&&!m||this.hasFocus()?setTimeout(function(){f.hasFocus()&&!f.state.focused&&v0(f)},20):nl(this);for(var E in Mh)Mh.hasOwnProperty(E)&&Mh[E](this,u[E],pl);$N(this),u.finishInit&&u.finishInit(this);for(var N=0;N20*20}_e(u.scroller,"touchstart",function(C){if(!nr(a,C)&&!g(C)&&!R0(a,C)){u.input.ensurePolled(),clearTimeout(f);var I=+new Date;u.activeTouch={start:I,moved:!1,prev:I-c.end<=300?c:null},C.touches.length==1&&(u.activeTouch.left=C.touches[0].pageX,u.activeTouch.top=C.touches[0].pageY)}}),_e(u.scroller,"touchmove",function(){u.activeTouch&&(u.activeTouch.moved=!0)}),_e(u.scroller,"touchend",function(C){var I=u.activeTouch;if(I&&!lo(u,C)&&I.left!=null&&!I.moved&&new Date-I.start<300){var U=a.coordsChar(u.activeTouch,"page"),K;!I.prev||E(I,I.prev)?K=new Nt(U,U):!I.prev.prev||E(I,I.prev.prev)?K=a.findWordAt(U):K=new Nt(W(U.line,0),Ye(a.doc,W(U.line+1,0))),a.setSelection(K.anchor,K.head),a.focus(),ee(C)}p()}),_e(u.scroller,"touchcancel",p),_e(u.scroller,"scroll",function(){u.scroller.clientHeight&&(pf(a,u.scroller.scrollTop),zu(a,u.scroller.scrollLeft,!0),Ft(a,"scroll",a))}),_e(u.scroller,"mousewheel",function(C){return rD(a,C)}),_e(u.scroller,"DOMMouseScroll",function(C){return rD(a,C)}),_e(u.wrapper,"scroll",function(){return u.wrapper.scrollTop=u.wrapper.scrollLeft=0}),u.dragFunctions={enter:function(C){nr(a,C)||J(C)},over:function(C){nr(a,C)||(hB(a,C),J(C))},start:function(C){return pB(a,C)},drop:Kr(a,dB),leave:function(C){nr(a,C)||CD(a)}};var N=u.input.getField();_e(N,"keyup",function(C){return UD.call(a,C)}),_e(N,"keydown",Kr(a,VD)),_e(N,"keypress",Kr(a,GD)),_e(N,"focus",function(C){return v0(a,C)}),_e(N,"blur",function(C){return nl(a,C)})}var j0=[];ir.defineInitHook=function(a){return j0.push(a)};function Lf(a,u,f,c){var p=a.doc,g;f==null&&(f="add"),f=="smart"&&(p.mode.indent?g=af(a,u).state:f="prev");var E=a.options.tabSize,N=Ae(p,u),C=te(N.text,null,E);N.stateAfter&&(N.stateAfter=null);var I=N.text.match(/^\s*/)[0],U;if(!c&&!/\S/.test(N.text))U=0,f="not";else if(f=="smart"&&(U=p.mode.indent(g,N.text.slice(I.length),N.text),U==Me||U>150)){if(!c)return;f="prev"}f=="prev"?u>p.first?U=te(Ae(p,u-1).text,null,E):U=0:f=="add"?U=C+a.options.indentUnit:f=="subtract"?U=C-a.options.indentUnit:typeof f=="number"&&(U=C+f),U=Math.max(0,U);var K="",$=0;if(a.options.indentWithTabs)for(var X=Math.floor(U/E);X;--X)$+=E,K+=" ";if($E,C=vn(u),I=null;if(N&&c.ranges.length>1)if(pa&&pa.text.join(` `)==u){if(c.ranges.length%pa.text.length==0){I=[];for(var U=0;U=0;$--){var X=c.ranges[$],ae=X.from(),le=X.to();X.empty()&&(f&&f>0?ae=W(ae.line,ae.ch-f):a.state.overwrite&&!N?le=W(le.line,Math.min(Ae(g,le.line).text.length,le.ch+se(C).length)):N&&pa&&pa.lineWise&&pa.text.join(` `)==C.join(` `)&&(ae=le=W(ae.line,0)));var pe={from:ae,to:le,text:I?I[$%I.length]:C,origin:p||(N?"paste":a.state.cutIncoming>E?"cut":"+input")};sl(a.doc,pe),Br(a,"inputRead",a,pe)}u&&!N&&JD(a,u),il(a),a.curOp.updateInput<2&&(a.curOp.updateInput=K),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function YD(a,u){var f=a.clipboardData&&a.clipboardData.getData("Text");if(f)return a.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&u.hasFocus()&&si(u,function(){return P0(u,f,0,null,"paste")}),!0}function JD(a,u){if(!(!a.options.electricChars||!a.options.smartIndent))for(var f=a.doc.sel,c=f.ranges.length-1;c>=0;c--){var p=f.ranges[c];if(!(p.head.ch>100||c&&f.ranges[c-1].head.line==p.head.line)){var g=a.getModeAt(p.head),E=!1;if(g.electricChars){for(var N=0;N-1){E=Lf(a,p.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Ae(a.doc,p.head.line).text.slice(0,p.head.ch))&&(E=Lf(a,p.head.line,"smart"));E&&Br(a,"electricInput",a,p.head.line)}}}function XD(a){for(var u=[],f=[],c=0;cg&&(Lf(this,N.head.line,c,!0),g=N.head.line,E==this.doc.sel.primIndex&&il(this));else{var C=N.from(),I=N.to(),U=Math.max(g,C.line);g=Math.min(this.lastLine(),I.line-(I.ch?0:1))+1;for(var K=U;K0&&D0(this.doc,E,new Nt(C,$[E].to()),Qe)}}}),getTokenAt:function(c,p){return sN(this,c,p)},getLineTokens:function(c,p){return sN(this,W(c),p,!0)},getTokenTypeAt:function(c){c=Ye(this.doc,c);var p=aN(this,Ae(this.doc,c.line)),g=0,E=(p.length-1)/2,N=c.ch,C;if(N==0)C=p[2];else for(;;){var I=g+E>>1;if((I?p[I*2-1]:0)>=N)E=I;else if(p[I*2+1]C&&(c=C,E=!0),N=Ae(this.doc,c)}else N=c;return Th(this,N,{top:0,left:0},p||"page",g||E).top+(E?this.doc.height-so(N):0)},defaultTextHeight:function(){return tl(this.display)},defaultCharWidth:function(){return rl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(c,p,g,E,N){var C=this.display;c=fa(this,Ye(this.doc,c));var I=c.bottom,U=c.left;if(p.style.position="absolute",p.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(p),C.sizer.appendChild(p),E=="over")I=c.top;else if(E=="above"||E=="near"){var K=Math.max(C.wrapper.clientHeight,this.doc.height),$=Math.max(C.sizer.clientWidth,C.lineSpace.clientWidth);(E=="above"||c.bottom+p.offsetHeight>K)&&c.top>p.offsetHeight?I=c.top-p.offsetHeight:c.bottom+p.offsetHeight<=K&&(I=c.bottom),U+p.offsetWidth>$&&(U=$-p.offsetWidth)}p.style.top=I+"px",p.style.left=p.style.right="",N=="right"?(U=C.sizer.clientWidth-p.offsetWidth,p.style.right="0px"):(N=="left"?U=0:N=="middle"&&(U=(C.sizer.clientWidth-p.offsetWidth)/2),p.style.left=U+"px"),g&&P2(this,{left:U,top:I,right:U+p.offsetWidth,bottom:I+p.offsetHeight})},triggerOnKeyDown:Ln(VD),triggerOnKeyPress:Ln(GD),triggerOnKeyUp:UD,triggerOnMouseDown:Ln(QD),execCommand:function(c){if(Nf.hasOwnProperty(c))return Nf[c].call(null,this)},triggerElectric:Ln(function(c){JD(this,c)}),findPosH:function(c,p,g,E){var N=1;p<0&&(N=-1,p=-p);for(var C=Ye(this.doc,c),I=0;I0&&U(g.charAt(E-1));)--E;for(;N.5||this.options.lineWrapping)&&f0(this),Ft(this,"refresh",this)}),swapDoc:Ln(function(c){var p=this.doc;return p.cm=null,this.state.selectingText&&this.state.selectingText(),oD(this,c),cf(this),this.display.input.reset(),df(this,c.scrollLeft,c.scrollTop),this.curOp.forceScroll=!0,Br(this,"swapDoc",this,p),p}),phrase:function(c){var p=this.options.phrases;return p&&Object.prototype.hasOwnProperty.call(p,c)?p[c]:c},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}},un(a),a.registerHelper=function(c,p,g){f.hasOwnProperty(c)||(f[c]=a[c]={_global:[]}),f[c][p]=g},a.registerGlobalHelper=function(c,p,g,E){a.registerHelper(c,p,E),f[c]._global.push({pred:g,val:E})}}function M0(a,u,f,c,p){var g=u,E=f,N=Ae(a,u.line),C=p&&a.direction=="rtl"?-f:f;function I(){var Ne=u.line+C;return Ne=a.first+a.size?!1:(u=new W(Ne,u.ch,u.sticky),N=Ae(a,Ne))}function U(Ne){var Te;if(c=="codepoint"){var Ce=N.text.charCodeAt(u.ch+(f>0?0:-1));if(isNaN(Ce))Te=null;else{var Ge=f>0?Ce>=55296&&Ce<56320:Ce>=56320&&Ce<57343;Te=new W(u.line,Math.max(0,Math.min(N.text.length,u.ch+f*(Ge?2:1))),-f)}}else p?Te=TB(a.cm,N,u,f):Te=C0(N,u,f);if(Te==null)if(!Ne&&I())u=L0(p,a.cm,N,u.line,C);else return!1;else u=Te;return!0}if(c=="char"||c=="codepoint")U();else if(c=="column")U(!0);else if(c=="word"||c=="group")for(var K=null,$=c=="group",X=a.cm&&a.cm.getHelper(u,"wordChars"),ae=!0;!(f<0&&!U(!ae));ae=!1){var le=N.text.charAt(u.ch)||` `,pe=dn(le,X)?"w":$&&le==` `?"n":!$||/\s/.test(le)?null:"p";if($&&!ae&&!pe&&(pe="s"),K&&K!=pe){f<0&&(f=1,U(),u.sticky="after");break}if(pe&&(K=pe),f>0&&!U(!ae))break}var be=Ah(a,u,g,E,!0);return We(g,be)&&(be.hitSide=!0),be}function $D(a,u,f,c){var p=a.doc,g=u.left,E;if(c=="page"){var N=Math.min(a.display.wrapper.clientHeight,At(a).innerHeight||p(a).documentElement.clientHeight),C=Math.max(N-.5*tl(a.display),3);E=(f>0?u.bottom:u.top)+f*C}else c=="line"&&(E=f>0?u.bottom+3:u.top-3);for(var I;I=u0(a,g,E),!!I.outside;){if(f<0?E<=0:E>=p.height){I.hitSide=!0;break}E+=f*5}return I}var Mt=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Mt.prototype.init=function(a){var u=this,f=this,c=f.cm,p=f.div=a.lineDiv;p.contentEditable=!0,F0(p,c.options.spellcheck,c.options.autocorrect,c.options.autocapitalize);function g(N){for(var C=N.target;C;C=C.parentNode){if(C==p)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(C.className))break}return!1}_e(p,"paste",function(N){!g(N)||nr(c,N)||YD(N,c)||l<=11&&setTimeout(Kr(c,function(){return u.updateFromDOM()}),20)}),_e(p,"compositionstart",function(N){u.composing={data:N.data,done:!1}}),_e(p,"compositionupdate",function(N){u.composing||(u.composing={data:N.data,done:!1})}),_e(p,"compositionend",function(N){u.composing&&(N.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),_e(p,"touchstart",function(){return f.forceCompositionEnd()}),_e(p,"input",function(){u.composing||u.readFromDOMSoon()});function E(N){if(!(!g(N)||nr(c,N))){if(c.somethingSelected())qh({lineWise:!1,text:c.getSelections()}),N.type=="cut"&&c.replaceSelection("",null,"cut");else if(c.options.lineWiseCopyCut){var C=XD(c);qh({lineWise:!0,text:C.text}),N.type=="cut"&&c.operation(function(){c.setSelections(C.ranges,0,Qe),c.replaceSelection("",null,"cut")})}else return;if(N.clipboardData){N.clipboardData.clearData();var I=pa.text.join(` `);if(N.clipboardData.setData("Text",I),N.clipboardData.getData("Text")==I){N.preventDefault();return}}var U=ZD(),K=U.firstChild;F0(K),c.display.lineSpace.insertBefore(U,c.display.lineSpace.firstChild),K.value=pa.text.join(` `);var $=Fe(p.ownerDocument);Xe(K),setTimeout(function(){c.display.lineSpace.removeChild(U),$.focus(),$==p&&f.showPrimarySelection()},50)}}_e(p,"copy",E),_e(p,"cut",E)},Mt.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Mt.prototype.prepareSelection=function(){var a=QN(this.cm,!1);return a.focus=Fe(this.div.ownerDocument)==this.div,a},Mt.prototype.showSelection=function(a,u){!a||!this.cm.display.view.length||((a.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Mt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Mt.prototype.showPrimarySelection=function(){var a=this.getSelection(),u=this.cm,f=u.doc.sel.primary(),c=f.from(),p=f.to();if(u.display.viewTo==u.display.viewFrom||c.line>=u.display.viewTo||p.line=u.display.viewFrom&&ex(u,c)||{node:N[0].measure.map[2],offset:0},I=p.linea.firstLine()&&(c=W(c.line-1,Ae(a.doc,c.line-1).length)),p.ch==Ae(a.doc,p.line).text.length&&p.lineu.viewTo-1)return!1;var g,E,N;c.line==u.viewFrom||(g=Hu(a,c.line))==0?(E=wt(u.view[0].line),N=u.view[0].node):(E=wt(u.view[g].line),N=u.view[g-1].node.nextSibling);var C=Hu(a,p.line),I,U;if(C==u.view.length-1?(I=u.viewTo-1,U=u.lineDiv.lastChild):(I=wt(u.view[C+1].line)-1,U=u.view[C+1].node.previousSibling),!N)return!1;for(var K=a.doc.splitLines(UB(a,N,U,E,I)),$=oo(a.doc,W(E,0),W(I,Ae(a.doc,I).text.length));K.length>1&&$.length>1;)if(se(K)==se($))K.pop(),$.pop(),I--;else if(K[0]==$[0])K.shift(),$.shift(),E++;else break;for(var X=0,ae=0,le=K[0],pe=$[0],be=Math.min(le.length,pe.length);Xc.ch&&Ne.charCodeAt(Ne.length-ae-1)==Te.charCodeAt(Te.length-ae-1);)X--,ae++;K[K.length-1]=Ne.slice(0,Ne.length-ae).replace(/^\u200b+/,""),K[0]=K[0].slice(X).replace(/\u200b+$/,"");var Ge=W(E,X),qe=W(I,$.length?se($).length-ae:0);if(K.length>1||K[0]||ie(Ge,qe))return ll(a.doc,K,Ge,qe,"+input"),!0},Mt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Mt.prototype.reset=function(){this.forceCompositionEnd()},Mt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Mt.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Mt.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&si(this.cm,function(){return Wn(a.cm)})},Mt.prototype.setUneditable=function(a){a.contentEditable="false"},Mt.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Kr(this.cm,P0)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Mt.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Mt.prototype.onContextMenu=function(){},Mt.prototype.resetPosition=function(){},Mt.prototype.needsContentAttribute=!0;function ex(a,u){var f=i0(a,u.line);if(!f||f.hidden)return null;var c=Ae(a.doc,u.line),p=xN(f,c,u.line),g=xn(c,a.doc.direction),E="left";if(g){var N=vr(g,u.ch);E=N%2?"right":"left"}var C=IN(p.map,u.ch,E);return C.offset=C.collapse=="right"?C.end:C.start,C}function VB(a){for(var u=a;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1}function hl(a,u){return u&&(a.bad=!0),a}function UB(a,u,f,c,p){var g="",E=!1,N=a.doc.lineSeparator(),C=!1;function I(X){return function(ae){return ae.id==X}}function U(){E&&(g+=N,C&&(g+=N),E=C=!1)}function K(X){X&&(U(),g+=X)}function $(X){if(X.nodeType==1){var ae=X.getAttribute("cm-text");if(ae){K(ae);return}var le=X.getAttribute("cm-marker"),pe;if(le){var be=a.findMarks(W(c,0),W(p+1,0),I(+le));be.length&&(pe=be[0].find(0))&&K(oo(a.doc,pe.from,pe.to).join(N));return}if(X.getAttribute("contenteditable")=="false")return;var Ne=/^(pre|div|p|li|table|br)$/i.test(X.nodeName);if(!/^br$/i.test(X.nodeName)&&X.textContent.length==0)return;Ne&&U();for(var Te=0;Te=9&&u.hasSelection&&(u.hasSelection=null),f.poll()}),_e(p,"paste",function(E){nr(c,E)||YD(E,c)||(c.state.pasteIncoming=+new Date,f.fastPoll())});function g(E){if(!nr(c,E)){if(c.somethingSelected())qh({lineWise:!1,text:c.getSelections()});else if(c.options.lineWiseCopyCut){var N=XD(c);qh({lineWise:!0,text:N.text}),E.type=="cut"?c.setSelections(N.ranges,null,Qe):(f.prevInput="",p.value=N.text.join(` `),Xe(p))}else return;E.type=="cut"&&(c.state.cutIncoming=+new Date)}}_e(p,"cut",g),_e(p,"copy",g),_e(a.scroller,"paste",function(E){if(!(lo(a,E)||nr(c,E))){if(!p.dispatchEvent){c.state.pasteIncoming=+new Date,f.focus();return}var N=new Event("paste");N.clipboardData=E.clipboardData,p.dispatchEvent(N)}}),_e(a.lineSpace,"selectstart",function(E){lo(a,E)||ee(E)}),_e(p,"compositionstart",function(){var E=c.getCursor("from");f.composing&&f.composing.range.clear(),f.composing={start:E,range:c.markText(E,c.getCursor("to"),{className:"CodeMirror-composing"})}}),_e(p,"compositionend",function(){f.composing&&(f.poll(),f.composing.range.clear(),f.composing=null)})},Tr.prototype.createField=function(a){this.wrapper=ZD(),this.textarea=this.wrapper.firstChild;var u=this.cm.options;F0(this.textarea,u.spellcheck,u.autocorrect,u.autocapitalize)},Tr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Tr.prototype.prepareSelection=function(){var a=this.cm,u=a.display,f=a.doc,c=QN(a);if(a.options.moveInputWithCursor){var p=fa(a,f.sel.primary().head,"div"),g=u.wrapper.getBoundingClientRect(),E=u.lineDiv.getBoundingClientRect();c.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,p.top+E.top-g.top)),c.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,p.left+E.left-g.left))}return c},Tr.prototype.showSelection=function(a){var u=this.cm,f=u.display;Q(f.cursorDiv,a.cursors),Q(f.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Tr.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing&&a)){var u=this.cm;if(this.resetting=!0,u.somethingSelected()){this.prevInput="";var f=u.getSelection();this.textarea.value=f,u.state.focused&&Xe(this.textarea),s&&l>=9&&(this.hasSelection=f)}else a||(this.prevInput=this.textarea.value="",s&&l>=9&&(this.hasSelection=null));this.resetting=!1}},Tr.prototype.getField=function(){return this.textarea},Tr.prototype.supportsTouch=function(){return!1},Tr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!m||Fe(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(a){}},Tr.prototype.blur=function(){this.textarea.blur()},Tr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Tr.prototype.receivedFocus=function(){this.slowPoll()},Tr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Tr.prototype.fastPoll=function(){var a=!1,u=this;u.pollingFast=!0;function f(){var c=u.poll();!c&&!a?(a=!0,u.polling.set(60,f)):(u.pollingFast=!1,u.slowPoll())}u.polling.set(20,f)},Tr.prototype.poll=function(){var a=this,u=this.cm,f=this.textarea,c=this.prevInput;if(this.contextMenuPending||this.resetting||!u.state.focused||Rr(f)&&!c&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var p=f.value;if(p==c&&!u.somethingSelected())return!1;if(s&&l>=9&&this.hasSelection===p||w&&/[\uf700-\uf7ff]/.test(p))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var g=p.charCodeAt(0);if(g==8203&&!c&&(c="\u200B"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var E=0,N=Math.min(c.length,p.length);E1e3||p.indexOf(` `)>-1?f.value=a.prevInput="":a.prevInput=p,a.composing&&(a.composing.range.clear(),a.composing.range=u.markText(a.composing.start,u.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Tr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Tr.prototype.onKeyPress=function(){s&&l>=9&&(this.hasSelection=null),this.fastPoll()},Tr.prototype.onContextMenu=function(a){var u=this,f=u.cm,c=f.display,p=u.textarea;u.contextMenuPending&&u.contextMenuPending();var g=Ku(f,a),E=c.scroller.scrollTop;if(!g||b)return;var N=f.options.resetSelectionOnContextMenu;N&&f.doc.sel.contains(g)==-1&&Kr(f,gn)(f.doc,Vo(g),Qe);var C=p.style.cssText,I=u.wrapper.style.cssText,U=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText="position: static",p.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-U.top-5)+"px; left: "+(a.clientX-U.left-5)+`px; z-index: 1000; background: `+(s?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var K;d&&(K=p.ownerDocument.defaultView.scrollY),c.input.focus(),d&&p.ownerDocument.defaultView.scrollTo(null,K),c.input.reset(),f.somethingSelected()||(p.value=u.prevInput=" "),u.contextMenuPending=X,c.selForContextMenu=f.doc.sel,clearTimeout(c.detectingSelectAll);function $(){if(p.selectionStart!=null){var le=f.somethingSelected(),pe="\u200B"+(le?p.value:"");p.value="\u21DA",p.value=pe,u.prevInput=le?"":"\u200B",p.selectionStart=1,p.selectionEnd=pe.length,c.selForContextMenu=f.doc.sel}}function X(){if(u.contextMenuPending==X&&(u.contextMenuPending=!1,u.wrapper.style.cssText=I,p.style.cssText=C,s&&l<9&&c.scrollbars.setScrollTop(c.scroller.scrollTop=E),p.selectionStart!=null)){(!s||s&&l<9)&&$();var le=0,pe=function(){c.selForContextMenu==f.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&u.prevInput=="\u200B"?Kr(f,bD)(f):le++<10?c.detectingSelectAll=setTimeout(pe,500):(c.selForContextMenu=null,c.input.reset())};c.detectingSelectAll=setTimeout(pe,200)}}if(s&&l>=9&&$(),M){J(a);var ae=function(){Ar(window,"mouseup",ae),setTimeout(X,20)};_e(window,"mouseup",ae)}else setTimeout(X,50)},Tr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Tr.prototype.setUneditable=function(){},Tr.prototype.needsContentAttribute=!1;function QB(a,u){if(u=u?Ie(u):{},u.value=a.value,!u.tabindex&&a.tabIndex&&(u.tabindex=a.tabIndex),!u.placeholder&&a.placeholder&&(u.placeholder=a.placeholder),u.autofocus==null){var f=Fe(a.ownerDocument);u.autofocus=f==a||a.getAttribute("autofocus")!=null&&f==document.body}function c(){a.value=N.getValue()}var p;if(a.form&&(_e(a.form,"submit",c),!u.leaveSubmitMethodAlone)){var g=a.form;p=g.submit;try{var E=g.submit=function(){c(),g.submit=p,g.submit(),g.submit=E}}catch(C){}}u.finishInit=function(C){C.save=c,C.getTextArea=function(){return a},C.toTextArea=function(){C.toTextArea=isNaN,c(),a.parentNode.removeChild(C.getWrapperElement()),a.style.display="",a.form&&(Ar(a.form,"submit",c),!u.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=p))}},a.style.display="none";var N=ir(function(C){return a.parentNode.insertBefore(C,a.nextSibling)},u);return N}function BB(a){a.off=Ar,a.on=_e,a.wheelEventPixels=X2,a.Doc=Yn,a.splitLines=vn,a.countColumn=te,a.findColumn=oe,a.isWordChar=Ei,a.Pass=Me,a.signal=Ft,a.Line=Zs,a.changeEnd=Uo,a.scrollbarModel=YN,a.Pos=W,a.cmpPos=ie,a.modes=Cn,a.mimeModes=la,a.resolveMode=ui,a.getMode=io,a.modeExtensions=jo,a.extendMode=fh,a.copyState=ao,a.startState=nf,a.innerMode=Po,a.commands=Nf,a.keyMap=fo,a.keyName=jD,a.isModifierKey=AD,a.lookupKey=fl,a.normalizeKeyMap=bB,a.StringStream=gr,a.SharedTextMarker=kf,a.TextMarker=Qo,a.LineWidget=Sf,a.e_preventDefault=ee,a.e_stopPropagation=F,a.e_stop=J,a.addClass=Le,a.contains=ge,a.rmClass=z,a.keyNames=Bo}jB(ir),qB(ir);var KB="iter insert remove copy getEditor constructor".split(" ");for(var Uh in Yn.prototype)Yn.prototype.hasOwnProperty(Uh)&&we(KB,Uh)<0&&(ir.prototype[Uh]=function(a){return function(){return a.apply(this.doc,arguments)}}(Yn.prototype[Uh]));return un(Yn),ir.inputStyles={textarea:Tr,contenteditable:Mt},ir.defineMode=function(a){!ir.defaults.mode&&a!="null"&&(ir.defaults.mode=a),ch.apply(this,arguments)},ir.defineMIME=Js,ir.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),ir.defineMIME("text/plain","null"),ir.defineExtension=function(a,u){ir.prototype[a]=u},ir.defineDocExtension=function(a,u){Yn.prototype[a]=u},ir.fromTextArea=QB,BB(ir),ir.version="5.65.14",ir})});var jO=G((kV,OV)=>{(function(e){typeof kV=="object"&&typeof OV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t="CodeMirror-hint",r="CodeMirror-hint-active";e.showHint=function(k,T,S){if(!T)return k.showHint(S);S&&S.async&&(T.async=!0);var m={hint:T};if(S)for(var w in S)m[w]=S[w];return k.showHint(m)},e.defineExtension("showHint",function(k){k=s(this,this.getCursor("start"),k);var T=this.listSelections();if(!(T.length>1)){if(this.somethingSelected()){if(!k.hint.supportsSelection)return;for(var S=0;SL.clientHeight+1:!1,we;setTimeout(function(){we=m.getScrollInfo()});var ot=te.bottom-Ie;if(ot>0){var Me=te.bottom-te.top,Qe=te.top-(P.bottom-P.top)-2;Ie-te.topQe&&(L.style.height=(Me=Qe)+"px"),L.style.top=(xe=P.top-Me)+Le+"px",ge=!1):L.style.height=Ie-te.top-2+"px"}var ze=te.right-Ot;if(ce&&(ze+=m.display.nativeBarWidth),ze>0&&(te.right-te.left>Ot&&(L.style.width=Ot-5+"px",ze-=te.right-te.left-Ot),L.style.left=(he=Math.max(P.left-ze-Fe,0))+"px"),ce)for(var mt=L.firstChild;mt;mt=mt.nextSibling)mt.style.paddingRight=m.display.nativeBarWidth+"px";if(m.addKeyMap(this.keyMap=d(k,{moveFocus:function(fe,se){S.changeActive(S.selectedHint+fe,se)},setFocus:function(fe){S.changeActive(fe)},menuSize:function(){return S.screenAmount()},length:R.length,close:function(){k.close()},pick:function(){S.pick()},data:T})),k.options.closeOnUnfocus){var oe;m.on("blur",this.onBlur=function(){oe=setTimeout(function(){k.close()},100)}),m.on("focus",this.onFocus=function(){clearTimeout(oe)})}m.on("scroll",this.onScroll=function(){var fe=m.getScrollInfo(),se=m.getWrapperElement().getBoundingClientRect();we||(we=m.getScrollInfo());var Ue=xe+we.top-fe.top,at=Ue-(x.pageYOffset||(w.documentElement||w.body).scrollTop);if(ge||(at+=L.offsetHeight),at<=se.top||at>=se.bottom)return k.close();L.style.top=Ue+"px",L.style.left=he+we.left-fe.left+"px"}),e.on(L,"dblclick",function(fe){var se=h(L,fe.target||fe.srcElement);se&&se.hintId!=null&&(S.changeActive(se.hintId),S.pick())}),e.on(L,"click",function(fe){var se=h(L,fe.target||fe.srcElement);se&&se.hintId!=null&&(S.changeActive(se.hintId),k.options.completeOnSingleClick&&S.pick())}),e.on(L,"mousedown",function(){setTimeout(function(){m.focus()},20)});var me=this.getSelectedHintRange();return(me.from!==0||me.to!==0)&&this.scrollToActive(),e.signal(T,"select",R[this.selectedHint],L.childNodes[this.selectedHint]),!0}v.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 k=this.completion.cm.getInputField();k.removeAttribute("aria-activedescendant"),k.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 k=this;this.keyMap={Enter:function(){k.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(k,T){if(k>=this.data.list.length?k=T?this.data.list.length-1:0:k<0&&(k=T?0:this.data.list.length-1),this.selectedHint!=k){var S=this.hints.childNodes[this.selectedHint];S&&(S.className=S.className.replace(" "+r,""),S.removeAttribute("aria-selected")),S=this.hints.childNodes[this.selectedHint=k],S.className+=" "+r,S.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",S.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],S)}},scrollToActive:function(){var k=this.getSelectedHintRange(),T=this.hints.childNodes[k.from],S=this.hints.childNodes[k.to],m=this.hints.firstChild;T.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=S.offsetTop+S.offsetHeight-this.hints.clientHeight+m.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var k=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-k),to:Math.min(this.data.list.length-1,this.selectedHint+k)}}};function y(k,T){if(!k.somethingSelected())return T;for(var S=[],m=0;m0?L(z):M(q+1)})}M(0)};return w.async=!0,w.supportsSelection=!0,w}else return(m=k.getHelper(k.getCursor(),"hintWords"))?function(x){return e.hint.fromList(x,{words:m})}:e.hint.anyword?function(x,L){return e.hint.anyword(x,L)}:function(){}}e.registerHelper("hint","auto",{resolve:D}),e.registerHelper("hint","fromList",function(k,T){var S=k.getCursor(),m=k.getTokenAt(S),w,x=e.Pos(S.line,m.start),L=S;m.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)})});var PO=G((wV,NV)=>{(function(e){typeof wV=="object"&&typeof NV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),r=e.Pos,n={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(v){return v&&v.bracketRegex||/[(){}[\]]/}function o(v,y,b){var D=v.getLineHandle(y.line),_=y.ch-1,k=b&&b.afterCursor;k==null&&(k=/(^| )cm-fat-cursor($| )/.test(v.getWrapperElement().className));var T=i(b),S=!k&&_>=0&&T.test(D.text.charAt(_))&&n[D.text.charAt(_)]||T.test(D.text.charAt(_+1))&&n[D.text.charAt(++_)];if(!S)return null;var m=S.charAt(1)==">"?1:-1;if(b&&b.strict&&m>0!=(_==y.ch))return null;var w=v.getTokenTypeAt(r(y.line,_+1)),x=s(v,r(y.line,_+(m>0?1:0)),m,w,b);return x==null?null:{from:r(y.line,_),to:x&&x.pos,match:x&&x.ch==S.charAt(0),forward:m>0}}function s(v,y,b,D,_){for(var k=_&&_.maxScanLineLength||1e4,T=_&&_.maxScanLines||1e3,S=[],m=i(_),w=b>0?Math.min(y.line+T,v.lastLine()+1):Math.max(v.firstLine()-1,y.line-T),x=y.line;x!=w;x+=b){var L=v.getLine(x);if(!!L){var O=b>0?0:L.length-1,R=b>0?L.length:-1;if(!(L.length>k))for(x==y.line&&(O=y.ch-(b<0?1:0));O!=R;O+=b){var M=L.charAt(O);if(m.test(M)&&(D===void 0||(v.getTokenTypeAt(r(x,O+1))||"")==(D||""))){var q=n[M];if(q&&q.charAt(1)==">"==b>0)S.push(M);else if(S.length)S.pop();else return{pos:r(x,O),ch:M}}}}}return x-b==(b>0?v.lastLine():v.firstLine())?!1:null}function l(v,y,b){for(var D=v.state.matchBrackets.maxHighlightLineLength||1e3,_=b&&b.highlightNonMatching,k=[],T=v.listSelections(),S=0;S{(function(e){typeof DV=="object"&&typeof xV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){var t={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},r=e.Pos;e.defineOption("autoCloseBrackets",!1,function(k,T,S){S&&S!=e.Init&&(k.removeKeyMap(i),k.state.closeBrackets=null),T&&(o(n(T,"pairs")),k.state.closeBrackets=T,k.addKeyMap(i))});function n(k,T){return T=="pairs"&&typeof k=="string"?k:typeof k=="object"&&k[T]!=null?k[T]:t[T]}var i={Backspace:d,Enter:h};function o(k){for(var T=0;T=0;w--){var L=m[w].head;k.replaceRange("",r(L.line,L.ch-1),r(L.line,L.ch+1),"+delete")}}function h(k){var T=l(k),S=T&&n(T,"explode");if(!S||k.getOption("disableInput"))return e.Pass;for(var m=k.listSelections(),w=0;w0?{line:L.head.line,ch:L.head.ch+T}:{line:L.head.line-1};S.push({anchor:O,head:O})}k.setSelections(S,w)}function y(k){var T=e.cmpPos(k.anchor,k.head)>0;return{anchor:new r(k.anchor.line,k.anchor.ch+(T?-1:1)),head:new r(k.head.line,k.head.ch+(T?1:-1))}}function b(k,T){var S=l(k);if(!S||k.getOption("disableInput"))return e.Pass;var m=n(S,"pairs"),w=m.indexOf(T);if(w==-1)return e.Pass;for(var x=n(S,"closeBefore"),L=n(S,"triples"),O=m.charAt(w+1)==T,R=k.listSelections(),M=w%2==0,q,z=0;z=0&&k.getRange(Q,r(Q.line,Q.ch+3))==T+T+T?P="skipThree":P="skip";else if(O&&Q.ch>1&&L.indexOf(T)>=0&&k.getRange(r(Q.line,Q.ch-2),Q)==T+T){if(Q.ch>2&&/\bstring/.test(k.getTokenTypeAt(r(Q.line,Q.ch-2))))return e.Pass;P="addFour"}else if(O){var xe=Q.ch==0?" ":k.getRange(r(Q.line,Q.ch-1),Q);if(!e.isWordChar(he)&&xe!=T&&!e.isWordChar(xe))P="both";else return e.Pass}else if(M&&(he.length===0||/\s/.test(he)||x.indexOf(he)>-1))P="both";else return e.Pass;if(!q)q=P;else if(q!=P)return e.Pass}var ge=w%2?m.charAt(w-1):T,Fe=w%2?T:m.charAt(w+1);k.operation(function(){if(q=="skip")v(k,1);else if(q=="skipThree")v(k,3);else if(q=="surround"){for(var Le=k.getSelections(),He=0;He{(function(e){typeof LV=="object"&&typeof IV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";function t(r){return function(n,i){var o=i.line,s=n.getLine(o);function l(D){for(var _,k=i.ch,T=0;;){var S=k<=0?-1:s.lastIndexOf(D[0],k-1);if(S==-1){if(T==1)break;T=1,k=s.length;continue}if(T==1&&Sr.lastLine())return null;var y=r.getTokenAt(e.Pos(v,1));if(/\S/.test(y.string)||(y=r.getTokenAt(e.Pos(v,y.end+1))),y.type!="keyword"||y.string!="import")return null;for(var b=v,D=Math.min(r.lastLine(),v+10);b<=D;++b){var _=r.getLine(b),k=_.indexOf(";");if(k!=-1)return{startCh:y.end,end:e.Pos(b,k)}}}var o=n.line,s=i(o),l;if(!s||i(o-1)||(l=i(o-2))&&l.end.line==o-1)return null;for(var d=s.end;;){var h=i(d.line+1);if(h==null)break;d=h.end}return{from:r.clipPos(e.Pos(o,s.startCh+1)),to:d}}),e.registerHelper("fold","include",function(r,n){function i(h){if(hr.lastLine())return null;var v=r.getTokenAt(e.Pos(h,1));if(/\S/.test(v.string)||(v=r.getTokenAt(e.Pos(h,v.end+1))),v.type=="meta"&&v.string.slice(0,8)=="#include")return v.start+8}var o=n.line,s=i(o);if(s==null||i(o-1)!=null)return null;for(var l=o;;){var d=i(l+1);if(d==null)break;++l}return{from:e.Pos(o,s+1),to:r.clipPos(e.Pos(l))}})})});var jV=G((AV,RV)=>{(function(e){typeof AV=="object"&&typeof RV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";function t(o,s,l,d){if(l&&l.call){var h=l;l=null}else var h=i(o,l,"rangeFinder");typeof s=="number"&&(s=e.Pos(s,0));var v=i(o,l,"minFoldSize");function y(k){var T=h(o,s);if(!T||T.to.line-T.from.lineo.firstLine();)s=e.Pos(s.line-1,0),b=y(!1);if(!(!b||b.cleared||d==="unfold")){var D=r(o,l,b);e.on(D,"mousedown",function(k){_.clear(),e.e_preventDefault(k)});var _=o.markText(b.from,b.to,{replacedWith:D,clearOnEnter:i(o,l,"clearOnEnter"),__isFold:!0});_.on("clear",function(k,T){e.signal(o,"unfold",o,k,T)}),e.signal(o,"fold",o,b.from,b.to)}}function r(o,s,l){var d=i(o,s,"widget");if(typeof d=="function"&&(d=d(l.from,l.to)),typeof d=="string"){var h=document.createTextNode(d);d=document.createElement("span"),d.appendChild(h),d.className="CodeMirror-foldmarker"}else d&&(d=d.cloneNode(!0));return d}e.newFoldFunction=function(o,s){return function(l,d){t(l,d,{rangeFinder:o,widget:s})}},e.defineExtension("foldCode",function(o,s,l){t(this,o,s,l)}),e.defineExtension("isFolded",function(o){for(var s=this.findMarksAt(o),l=0;l{(function(e){typeof PV=="object"&&typeof FV=="object"?e(Wt(),jV()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("foldGutter",!1,function(_,k,T){T&&T!=e.Init&&(_.clearGutter(_.state.foldGutter.options.gutter),_.state.foldGutter=null,_.off("gutterClick",h),_.off("changes",y),_.off("viewportChange",b),_.off("fold",D),_.off("unfold",D),_.off("swapDoc",y),_.off("optionChange",v)),k&&(_.state.foldGutter=new r(n(k)),d(_),_.on("gutterClick",h),_.on("changes",y),_.on("viewportChange",b),_.on("fold",D),_.on("unfold",D),_.on("swapDoc",y),_.on("optionChange",v))});var t=e.Pos;function r(_){this.options=_,this.from=this.to=0}function n(_){return _===!0&&(_={}),_.gutter==null&&(_.gutter="CodeMirror-foldgutter"),_.indicatorOpen==null&&(_.indicatorOpen="CodeMirror-foldgutter-open"),_.indicatorFolded==null&&(_.indicatorFolded="CodeMirror-foldgutter-folded"),_}function i(_,k){for(var T=_.findMarks(t(k,0),t(k+1,0)),S=0;S=w){if(O&&q&&O.test(q.className))return;M=o(S.indicatorOpen)}}!M&&!q||_.setGutterMarker(R,S.gutter,M)})}function l(_){return new RegExp("(^|\\s)"+_+"(?:$|\\s)\\s*")}function d(_){var k=_.getViewport(),T=_.state.foldGutter;!T||(_.operation(function(){s(_,k.from,k.to)}),T.from=k.from,T.to=k.to)}function h(_,k,T){var S=_.state.foldGutter;if(!!S){var m=S.options;if(T==m.gutter){var w=i(_,k);w?w.clear():_.foldCode(t(k,0),m)}}}function v(_,k){k=="mode"&&y(_)}function y(_){var k=_.state.foldGutter;if(!!k){var T=k.options;k.from=k.to=0,clearTimeout(k.changeUpdate),k.changeUpdate=setTimeout(function(){d(_)},T.foldOnChangeTimeSpan||600)}}function b(_){var k=_.state.foldGutter;if(!!k){var T=k.options;clearTimeout(k.changeUpdate),k.changeUpdate=setTimeout(function(){var S=_.getViewport();k.from==k.to||S.from-k.to>20||k.from-S.to>20?d(_):_.operation(function(){S.fromk.to&&(s(_,k.to,S.to),k.to=S.to)})},T.updateViewportTimeSpan||400)}}function D(_,k){var T=_.state.foldGutter;if(!!T){var S=k.line;S>=T.from&&S{(function(e){typeof MV=="object"&&typeof qV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t="CodeMirror-lint-markers",r="CodeMirror-lint-line-";function n(L,O,R){var M=document.createElement("div");M.className="CodeMirror-lint-tooltip cm-s-"+L.options.theme,M.appendChild(R.cloneNode(!0)),L.state.lint.options.selfContain?L.getWrapperElement().appendChild(M):document.body.appendChild(M);function q(z){if(!M.parentNode)return e.off(document,"mousemove",q);M.style.top=Math.max(0,z.clientY-M.offsetHeight-5)+"px",M.style.left=z.clientX+5+"px"}return e.on(document,"mousemove",q),q(O),M.style.opacity!=null&&(M.style.opacity=1),M}function i(L){L.parentNode&&L.parentNode.removeChild(L)}function o(L){!L.parentNode||(L.style.opacity==null&&i(L),L.style.opacity=0,setTimeout(function(){i(L)},600))}function s(L,O,R,M){var q=n(L,O,R);function z(){e.off(M,"mouseout",z),q&&(o(q),q=null)}var B=setInterval(function(){if(q)for(var Q=M;;Q=Q.parentNode){if(Q&&Q.nodeType==11&&(Q=Q.host),Q==document.body)return;if(!Q){z();break}}if(!q)return clearInterval(B)},400);e.on(M,"mouseout",z)}function l(L,O,R){this.marked=[],O instanceof Function&&(O={getAnnotations:O}),(!O||O===!0)&&(O={}),this.options={},this.linterOptions=O.options||{};for(var M in d)this.options[M]=d[M];for(var M in O)d.hasOwnProperty(M)?O[M]!=null&&(this.options[M]=O[M]):O.options||(this.linterOptions[M]=O[M]);this.timeout=null,this.hasGutter=R,this.onMouseOver=function(q){x(L,q)},this.waitingFor=0}var d={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function h(L){var O=L.state.lint;O.hasGutter&&L.clearGutter(t),O.options.highlightLines&&v(L);for(var R=0;R1,M.tooltips)),M.highlightLines&&L.addLineClass(z,"wrap",r+Q)}}M.onUpdateLinting&&M.onUpdateLinting(O,q,L)}}function m(L){var O=L.state.lint;!O||(clearTimeout(O.timeout),O.timeout=setTimeout(function(){T(L)},O.options.delay))}function w(L,O,R){for(var M=R.target||R.srcElement,q=document.createDocumentFragment(),z=0;z{(function(e){typeof UV=="object"&&typeof GV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t=e.Pos;function r(T){var S=T.flags;return S!=null?S:(T.ignoreCase?"i":"")+(T.global?"g":"")+(T.multiline?"m":"")}function n(T,S){for(var m=r(T),w=m,x=0;xO);R++){var M=T.getLine(L++);w=w==null?M:w+` `+M}x=x*2,S.lastIndex=m.ch;var q=S.exec(w);if(q){var z=w.slice(0,q.index).split(` `),B=q[0].split(` `),Q=m.line+z.length-1,P=z[z.length-1].length;return{from:t(Q,P),to:t(Q+B.length-1,B.length==1?P+B[0].length:B[B.length-1].length),match:q}}}}function l(T,S,m){for(var w,x=0;x<=T.length;){S.lastIndex=x;var L=S.exec(T);if(!L)break;var O=L.index+L[0].length;if(O>T.length-m)break;(!w||O>w.index+w[0].length)&&(w=L),x=L.index+1}return w}function d(T,S,m){S=n(S,"g");for(var w=m.line,x=m.ch,L=T.firstLine();w>=L;w--,x=-1){var O=T.getLine(w),R=l(O,S,x<0?0:O.length-x);if(R)return{from:t(w,R.index),to:t(w,R.index+R[0].length),match:R}}}function h(T,S,m){if(!i(S))return d(T,S,m);S=n(S,"gm");for(var w,x=1,L=T.getLine(m.line).length-m.ch,O=m.line,R=T.firstLine();O>=R;){for(var M=0;M=R;M++){var q=T.getLine(O--);w=w==null?q:q+` `+w}x*=2;var z=l(w,S,L);if(z){var B=w.slice(0,z.index).split(` `),Q=z[0].split(` `),P=O+B.length,he=B[B.length-1].length;return{from:t(P,he),to:t(P+Q.length-1,Q.length==1?he+Q[0].length:Q[Q.length-1].length),match:z}}}}var v,y;String.prototype.normalize?(v=function(T){return T.normalize("NFD").toLowerCase()},y=function(T){return T.normalize("NFD")}):(v=function(T){return T.toLowerCase()},y=function(T){return T});function b(T,S,m,w){if(T.length==S.length)return m;for(var x=0,L=m+Math.max(0,T.length-S.length);;){if(x==L)return x;var O=x+L>>1,R=w(T.slice(0,O)).length;if(R==m)return O;R>m?L=O:x=O+1}}function D(T,S,m,w){if(!S.length)return null;var x=w?v:y,L=x(S).split(/\r|\n\r?/);e:for(var O=m.line,R=m.ch,M=T.lastLine()+1-L.length;O<=M;O++,R=0){var q=T.getLine(O).slice(R),z=x(q);if(L.length==1){var B=z.indexOf(L[0]);if(B==-1)continue e;var m=b(q,z,B,x)+R;return{from:t(O,b(q,z,B,x)+R),to:t(O,b(q,z,B+L[0].length,x)+R)}}else{var Q=z.length-L[0].length;if(z.slice(Q)!=L[0])continue e;for(var P=1;P=M;O--,R=-1){var q=T.getLine(O);R>-1&&(q=q.slice(0,R));var z=x(q);if(L.length==1){var B=z.lastIndexOf(L[0]);if(B==-1)continue e;return{from:t(O,b(q,z,B,x)),to:t(O,b(q,z,B+L[0].length,x))}}else{var Q=L[L.length-1];if(z.slice(0,Q.length)!=Q)continue e;for(var P=1,m=O-L.length+1;P(this.doc.getLine(S.line)||"").length&&(S.ch=0,S.line++)),e.cmpPos(S,this.doc.clipPos(S))!=0))return this.atOccurrence=!1;var m=this.matches(T,S);if(this.afterEmptyMatch=m&&e.cmpPos(m.from,m.to)==0,m)return this.pos=m,this.atOccurrence=!0,this.pos.match||!0;var w=t(T?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:w,to:w},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(T,S){if(!!this.atOccurrence){var m=e.splitLines(T);this.doc.replaceRange(m,this.pos.from,this.pos.to,S),this.pos.to=t(this.pos.from.line+m.length-1,m[m.length-1].length+(m.length==1?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(T,S,m){return new k(this.doc,T,S,m)}),e.defineDocExtension("getSearchCursor",function(T,S,m){return new k(this,T,S,m)}),e.defineExtension("selectMatches",function(T,S){for(var m=[],w=this.getSearchCursor(T,this.getCursor("from"),S);w.findNext()&&!(e.cmpPos(w.to(),this.getCursor("to"))>0);)m.push({anchor:w.from(),head:w.to()});m.length&&this.setSelections(m,0)})})});var Vp=G((QV,BV)=>{(function(e){typeof QV=="object"&&typeof BV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){function t(n,i,o){var s=n.getWrapperElement(),l;return l=s.appendChild(document.createElement("div")),o?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof i=="string"?l.innerHTML=i:l.appendChild(i),e.addClass(s,"dialog-opened"),l}function r(n,i){n.state.currentNotificationClose&&n.state.currentNotificationClose(),n.state.currentNotificationClose=i}e.defineExtension("openDialog",function(n,i,o){o||(o={}),r(this,null);var s=t(this,n,o.bottom),l=!1,d=this;function h(b){if(typeof b=="string")v.value=b;else{if(l)return;l=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),d.focus(),o.onClose&&o.onClose(s)}}var v=s.getElementsByTagName("input")[0],y;return v?(v.focus(),o.value&&(v.value=o.value,o.selectValueOnOpen!==!1&&v.select()),o.onInput&&e.on(v,"input",function(b){o.onInput(b,v.value,h)}),o.onKeyUp&&e.on(v,"keyup",function(b){o.onKeyUp(b,v.value,h)}),e.on(v,"keydown",function(b){o&&o.onKeyDown&&o.onKeyDown(b,v.value,h)||((b.keyCode==27||o.closeOnEnter!==!1&&b.keyCode==13)&&(v.blur(),e.e_stop(b),h()),b.keyCode==13&&i(v.value,b))}),o.closeOnBlur!==!1&&e.on(s,"focusout",function(b){b.relatedTarget!==null&&h()})):(y=s.getElementsByTagName("button")[0])&&(e.on(y,"click",function(){h(),d.focus()}),o.closeOnBlur!==!1&&e.on(y,"blur",h),y.focus()),h}),e.defineExtension("openConfirm",function(n,i,o){r(this,null);var s=t(this,n,o&&o.bottom),l=s.getElementsByTagName("button"),d=!1,h=this,v=1;function y(){d||(d=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),h.focus())}l[0].focus();for(var b=0;b{(function(e){typeof KV=="object"&&typeof HV=="object"?e(Wt(),Vp()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("search",{bottom:!1});function t(i,o,s,l,d){i.openDialog?i.openDialog(o,d,{value:l,selectValueOnOpen:!0,bottom:i.options.search.bottom}):d(prompt(s,l))}function r(i){return i.phrase("Jump to line:")+' '+i.phrase("(Use line:column or scroll% syntax)")+""}function n(i,o){var s=Number(o);return/^[-+]/.test(o)?i.getCursor().line+s:s-1}e.commands.jumpToLine=function(i){var o=i.getCursor();t(i,r(i),i.phrase("Jump to line:"),o.line+1+":"+o.ch,function(s){if(!!s){var l;if(l=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(s))i.setCursor(n(i,l[1]),Number(l[2]));else if(l=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(s)){var d=Math.round(i.lineCount()*Number(l[1])/100);/^[-+]/.test(l[1])&&(d=o.line+d+1),i.setCursor(d-1,o.ch)}else(l=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(s))&&i.setCursor(n(i,l[1]),o.ch)}})},e.keyMap.default["Alt-G"]="jumpToLine"})});var VO=G((zV,WV)=>{(function(e){typeof zV=="object"&&typeof WV=="object"?e(Wt(),qp(),PO()):typeof define=="function"&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/edit/matchbrackets"],e):e(CodeMirror)})(function(e){"use strict";var t=e.commands,r=e.Pos;function n(m,w,x){if(x<0&&w.ch==0)return m.clipPos(r(w.line-1));var L=m.getLine(w.line);if(x>0&&w.ch>=L.length)return m.clipPos(r(w.line+1,0));for(var O="start",R,M=w.ch,q=M,z=x<0?0:L.length,B=0;q!=z;q+=x,B++){var Q=L.charAt(x<0?q-1:q),P=Q!="_"&&e.isWordChar(Q)?"w":"o";if(P=="w"&&Q.toUpperCase()==Q&&(P="W"),O=="start")P!="o"?(O="in",R=P):M=q+x;else if(O=="in"&&R!=P){if(R=="w"&&P=="W"&&x<0&&q--,R=="W"&&P=="w"&&x>0)if(q==M+1){R="w";continue}else q--;break}}return r(w.line,q)}function i(m,w){m.extendSelectionsBy(function(x){return m.display.shift||m.doc.extend||x.empty()?n(m.doc,x.head,w):w<0?x.from():x.to()})}t.goSubwordLeft=function(m){i(m,-1)},t.goSubwordRight=function(m){i(m,1)},t.scrollLineUp=function(m){var w=m.getScrollInfo();if(!m.somethingSelected()){var x=m.lineAtHeight(w.top+w.clientHeight,"local");m.getCursor().line>=x&&m.execCommand("goLineUp")}m.scrollTo(null,w.top-m.defaultTextHeight())},t.scrollLineDown=function(m){var w=m.getScrollInfo();if(!m.somethingSelected()){var x=m.lineAtHeight(w.top,"local")+1;m.getCursor().line<=x&&m.execCommand("goLineDown")}m.scrollTo(null,w.top+m.defaultTextHeight())},t.splitSelectionByLine=function(m){for(var w=m.listSelections(),x=[],L=0;LO.line&&M==R.line&&R.ch==0||x.push({anchor:M==O.line?O:r(M,0),head:M==R.line?R:r(M)});m.setSelections(x,0)},t.singleSelectionTop=function(m){var w=m.listSelections()[0];m.setSelection(w.anchor,w.head,{scroll:!1})},t.selectLine=function(m){for(var w=m.listSelections(),x=[],L=0;LL?x.push(q,z):x.length&&(x[x.length-1]=z),L=z}m.operation(function(){for(var B=0;Bm.lastLine()?m.replaceRange(` `+he,r(m.lastLine()),null,"+swapLine"):m.replaceRange(he+` `,r(P,0),null,"+swapLine")}m.setSelections(O),m.scrollIntoView()})},t.swapLineDown=function(m){if(m.isReadOnly())return e.Pass;for(var w=m.listSelections(),x=[],L=m.lastLine()+1,O=w.length-1;O>=0;O--){var R=w[O],M=R.to().line+1,q=R.from().line;R.to().ch==0&&!R.empty()&&M--,M=0;z-=2){var B=x[z],Q=x[z+1],P=m.getLine(B);B==m.lastLine()?m.replaceRange("",r(B-1),r(B),"+swapLine"):m.replaceRange("",r(B,0),r(B+1,0),"+swapLine"),m.replaceRange(P+` `,r(Q,0),null,"+swapLine")}m.scrollIntoView()})},t.toggleCommentIndented=function(m){m.toggleComment({indent:!0})},t.joinLines=function(m){for(var w=m.listSelections(),x=[],L=0;L=0;R--){var M=x[L[R]];if(!(q&&e.cmpPos(M.head,q)>0)){var z=s(m,M.head);q=z.from,m.replaceRange(w(z.word),z.from,z.to)}}})}t.smartBackspace=function(m){if(m.somethingSelected())return e.Pass;m.operation(function(){for(var w=m.listSelections(),x=m.getOption("indentUnit"),L=w.length-1;L>=0;L--){var O=w[L].head,R=m.getRange({line:O.line,ch:0},O),M=e.countColumn(R,null,m.getOption("tabSize")),q=m.findPosH(O,-1,"char",!1);if(R&&!/\S/.test(R)&&M%x==0){var z=new r(O.line,e.findColumn(R,M-x,x));z.ch!=O.ch&&(q=z)}m.replaceRange("",q,O,"+delete")}})},t.delLineRight=function(m){m.operation(function(){for(var w=m.listSelections(),x=w.length-1;x>=0;x--)m.replaceRange("",w[x].anchor,r(w[x].to().line),"+delete");m.scrollIntoView()})},t.upcaseAtCursor=function(m){D(m,function(w){return w.toUpperCase()})},t.downcaseAtCursor=function(m){D(m,function(w){return w.toLowerCase()})},t.setSublimeMark=function(m){m.state.sublimeMark&&m.state.sublimeMark.clear(),m.state.sublimeMark=m.setBookmark(m.getCursor())},t.selectToSublimeMark=function(m){var w=m.state.sublimeMark&&m.state.sublimeMark.find();w&&m.setSelection(m.getCursor(),w)},t.deleteToSublimeMark=function(m){var w=m.state.sublimeMark&&m.state.sublimeMark.find();if(w){var x=m.getCursor(),L=w;if(e.cmpPos(x,L)>0){var O=L;L=x,x=O}m.state.sublimeKilled=m.getRange(x,L),m.replaceRange("",x,L)}},t.swapWithSublimeMark=function(m){var w=m.state.sublimeMark&&m.state.sublimeMark.find();w&&(m.state.sublimeMark.clear(),m.state.sublimeMark=m.setBookmark(m.getCursor()),m.setCursor(w))},t.sublimeYank=function(m){m.state.sublimeKilled!=null&&m.replaceSelection(m.state.sublimeKilled,null,"paste")},t.showInCenter=function(m){var w=m.cursorCoords(null,"local");m.scrollTo(null,(w.top+w.bottom)/2-m.getScrollInfo().clientHeight/2)};function _(m){var w=m.getCursor("from"),x=m.getCursor("to");if(e.cmpPos(w,x)==0){var L=s(m,w);if(!L.word)return;w=L.from,x=L.to}return{from:w,to:x,query:m.getRange(w,x),word:L}}function k(m,w){var x=_(m);if(!!x){var L=x.query,O=m.getSearchCursor(L,w?x.to:x.from);(w?O.findNext():O.findPrevious())?m.setSelection(O.from(),O.to()):(O=m.getSearchCursor(L,w?r(m.firstLine(),0):m.clipPos(r(m.lastLine()))),(w?O.findNext():O.findPrevious())?m.setSelection(O.from(),O.to()):x.word&&m.setSelection(x.from,x.to))}}t.findUnder=function(m){k(m,!0)},t.findUnderPrevious=function(m){k(m,!1)},t.findAllUnder=function(m){var w=_(m);if(!!w){for(var x=m.getSearchCursor(w.query),L=[],O=-1;x.findNext();)L.push({anchor:x.from(),head:x.to()}),x.from().line<=w.from.line&&x.from().ch<=w.from.ch&&O++;m.setSelections(L,O)}};var T=e.keyMap;T.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(T.macSublime),T.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(T.pcSublime);var S=T.default==T.macDefault;T.sublime=S?T.macSublime:T.pcSublime})});var XV=G((YV,JV)=>{(function(e){typeof YV=="object"&&typeof JV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t={},r=/[^\s\u00a0]/,n=e.Pos,i=e.cmpPos;function o(d){var h=d.search(r);return h==-1?0:h}e.commands.toggleComment=function(d){d.toggleComment()},e.defineExtension("toggleComment",function(d){d||(d=t);for(var h=this,v=1/0,y=this.listSelections(),b=null,D=y.length-1;D>=0;D--){var _=y[D].from(),k=y[D].to();_.line>=v||(k.line>=v&&(k=n(v,0)),v=_.line,b==null?h.uncomment(_,k,d)?b="un":(h.lineComment(_,k,d),b="line"):b=="un"?h.uncomment(_,k,d):h.lineComment(_,k,d))}});function s(d,h,v){return/\bstring\b/.test(d.getTokenTypeAt(n(h.line,0)))&&!/^[\'\"\`]/.test(v)}function l(d,h){var v=d.getMode();return v.useInnerComments===!1||!v.innerMode?v:d.getModeAt(h)}e.defineExtension("lineComment",function(d,h,v){v||(v=t);var y=this,b=l(y,d),D=y.getLine(d.line);if(!(D==null||s(y,d,D))){var _=v.lineComment||b.lineComment;if(!_){(v.blockCommentStart||b.blockCommentStart)&&(v.fullLines=!0,y.blockComment(d,h,v));return}var k=Math.min(h.ch!=0||h.line==d.line?h.line+1:h.line,y.lastLine()+1),T=v.padding==null?" ":v.padding,S=v.commentBlankLines||d.line==h.line;y.operation(function(){if(v.indent){for(var m=null,w=d.line;wL.length)&&(m=L)}for(var w=d.line;wk||y.operation(function(){if(v.fullLines!=!1){var S=r.test(y.getLine(k));y.replaceRange(T+_,n(k)),y.replaceRange(D+T,n(d.line,0));var m=v.blockCommentLead||b.blockCommentLead;if(m!=null)for(var w=d.line+1;w<=k;++w)(w!=k||S)&&y.replaceRange(m+T,n(w,0))}else{var x=i(y.getCursor("to"),h)==0,L=!y.somethingSelected();y.replaceRange(_,h),x&&y.setSelection(L?h:y.getCursor("from"),h),y.replaceRange(D,d)}})}}),e.defineExtension("uncomment",function(d,h,v){v||(v=t);var y=this,b=l(y,d),D=Math.min(h.ch!=0||h.line==d.line?h.line:h.line-1,y.lastLine()),_=Math.min(d.line,D),k=v.lineComment||b.lineComment,T=[],S=v.padding==null?" ":v.padding,m;e:{if(!k)break e;for(var w=_;w<=D;++w){var x=y.getLine(w),L=x.indexOf(k);if(L>-1&&!/comment/.test(y.getTokenTypeAt(n(w,L+1)))&&(L=-1),L==-1&&r.test(x)||L>-1&&r.test(x.slice(0,L)))break e;T.push(x)}if(y.operation(function(){for(var Le=_;Le<=D;++Le){var He=T[Le-_],Xe=He.indexOf(k),Ve=Xe+k.length;Xe<0||(He.slice(Ve,Ve+S.length)==S&&(Ve+=S.length),m=!0,y.replaceRange("",n(Le,Xe),n(Le,Ve)))}}),m)return!0}var O=v.blockCommentStart||b.blockCommentStart,R=v.blockCommentEnd||b.blockCommentEnd;if(!O||!R)return!1;var M=v.blockCommentLead||b.blockCommentLead,q=y.getLine(_),z=q.indexOf(O);if(z==-1)return!1;var B=D==_?q:y.getLine(D),Q=B.indexOf(R,D==_?z+O.length:0),P=n(_,z+1),he=n(D,Q+1);if(Q==-1||!/comment/.test(y.getTokenTypeAt(P))||!/comment/.test(y.getTokenTypeAt(he))||y.getRange(P,he,` `).indexOf(R)>-1)return!1;var xe=q.lastIndexOf(O,d.ch),ge=xe==-1?-1:q.slice(0,d.ch).indexOf(R,xe+O.length);if(xe!=-1&&ge!=-1&&ge+R.length!=d.ch)return!1;ge=B.indexOf(R,h.ch);var Fe=B.slice(h.ch).lastIndexOf(O,ge-h.ch);return xe=ge==-1||Fe==-1?-1:h.ch+Fe,ge!=-1&&xe!=-1&&xe!=h.ch?!1:(y.operation(function(){y.replaceRange("",n(D,Q-(S&&B.slice(Q-S.length,Q)==S?S.length:0)),n(D,Q+R.length));var Le=z+O.length;if(S&&q.slice(Le,Le+S.length)==S&&(Le+=S.length),y.replaceRange("",n(_,z),n(_,Le)),M)for(var He=_+1;He<=D;++He){var Xe=y.getLine(He),Ve=Xe.indexOf(M);if(!(Ve==-1||r.test(Xe.slice(0,Ve)))){var At=Ve+M.length;S&&Xe.slice(At,At+S.length)==S&&(At+=S.length),y.replaceRange("",n(He,Ve),n(He,At))}}}),!0)})})});var UO=G((ZV,$V)=>{(function(e){typeof ZV=="object"&&typeof $V=="object"?e(Wt(),qp(),Vp()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("search",{bottom:!1});function t(O,R){return typeof O=="string"?O=new RegExp(O.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),R?"gi":"g"):O.global||(O=new RegExp(O.source,O.ignoreCase?"gi":"g")),{token:function(M){O.lastIndex=M.pos;var q=O.exec(M.string);if(q&&q.index==M.pos)return M.pos+=q[0].length||1,"searching";q?M.pos=q.index:M.skipToEnd()}}}function r(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(O){return O.state.search||(O.state.search=new r)}function i(O){return typeof O=="string"&&O==O.toLowerCase()}function o(O,R,M){return O.getSearchCursor(R,M,{caseFold:i(R),multiline:!0})}function s(O,R,M,q,z){O.openDialog(R,q,{value:M,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){_(O)},onKeyDown:z,bottom:O.options.search.bottom})}function l(O,R,M,q,z){O.openDialog?O.openDialog(R,z,{value:q,selectValueOnOpen:!0,bottom:O.options.search.bottom}):z(prompt(M,q))}function d(O,R,M,q){O.openConfirm?O.openConfirm(R,q):confirm(M)&&q[0]()}function h(O){return O.replace(/\\([nrt\\])/g,function(R,M){return M=="n"?` `:M=="r"?"\r":M=="t"?" ":M=="\\"?"\\":R})}function v(O){var R=O.match(/^\/(.*)\/([a-z]*)$/);if(R)try{O=new RegExp(R[1],R[2].indexOf("i")==-1?"":"i")}catch(M){}else O=h(O);return(typeof O=="string"?O=="":O.test(""))&&(O=/x^/),O}function y(O,R,M){R.queryText=M,R.query=v(M),O.removeOverlay(R.overlay,i(R.query)),R.overlay=t(R.query,i(R.query)),O.addOverlay(R.overlay),O.showMatchesOnScrollbar&&(R.annotate&&(R.annotate.clear(),R.annotate=null),R.annotate=O.showMatchesOnScrollbar(R.query,i(R.query)))}function b(O,R,M,q){var z=n(O);if(z.query)return D(O,R);var B=O.getSelection()||z.lastQuery;if(B instanceof RegExp&&B.source=="x^"&&(B=null),M&&O.openDialog){var Q=null,P=function(he,xe){e.e_stop(xe),!!he&&(he!=z.queryText&&(y(O,z,he),z.posFrom=z.posTo=O.getCursor()),Q&&(Q.style.opacity=1),D(O,xe.shiftKey,function(ge,Fe){var Le;Fe.line<3&&document.querySelector&&(Le=O.display.wrapper.querySelector(".CodeMirror-dialog"))&&Le.getBoundingClientRect().bottom-4>O.cursorCoords(Fe,"window").top&&((Q=Le).style.opacity=.4)}))};s(O,T(O),B,P,function(he,xe){var ge=e.keyName(he),Fe=O.getOption("extraKeys"),Le=Fe&&Fe[ge]||e.keyMap[O.getOption("keyMap")][ge];Le=="findNext"||Le=="findPrev"||Le=="findPersistentNext"||Le=="findPersistentPrev"?(e.e_stop(he),y(O,n(O),xe),O.execCommand(Le)):(Le=="find"||Le=="findPersistent")&&(e.e_stop(he),P(xe,he))}),q&&B&&(y(O,z,B),D(O,R))}else l(O,T(O),"Search for:",B,function(he){he&&!z.query&&O.operation(function(){y(O,z,he),z.posFrom=z.posTo=O.getCursor(),D(O,R)})})}function D(O,R,M){O.operation(function(){var q=n(O),z=o(O,q.query,R?q.posFrom:q.posTo);!z.find(R)&&(z=o(O,q.query,R?e.Pos(O.lastLine()):e.Pos(O.firstLine(),0)),!z.find(R))||(O.setSelection(z.from(),z.to()),O.scrollIntoView({from:z.from(),to:z.to()},20),q.posFrom=z.from(),q.posTo=z.to(),M&&M(z.from(),z.to()))})}function _(O){O.operation(function(){var R=n(O);R.lastQuery=R.query,!!R.query&&(R.query=R.queryText=null,O.removeOverlay(R.overlay),R.annotate&&(R.annotate.clear(),R.annotate=null))})}function k(O,R){var M=O?document.createElement(O):document.createDocumentFragment();for(var q in R)M[q]=R[q];for(var z=2;z{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.hintList=ea.objectValues=ea.forEachState=ea.getFieldDef=ea.getDefinitionState=void 0;var Y$=ht(),Fc=vi();function J$(e){let t;return eU(e,r=>{switch(r.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=r;break}}),t}ea.getDefinitionState=J$;function X$(e,t,r){return r===Fc.SchemaMetaFieldDef.name&&e.getQueryType()===t?Fc.SchemaMetaFieldDef:r===Fc.TypeMetaFieldDef.name&&e.getQueryType()===t?Fc.TypeMetaFieldDef:r===Fc.TypeNameMetaFieldDef.name&&(0,Y$.isCompositeType)(t)?Fc.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[r]:null}ea.getFieldDef=X$;function eU(e,t){let r=[],n=e;for(;n==null?void 0:n.kind;)r.push(n),n=n.prevState;for(let i=r.length-1;i>=0;i--)t(r[i])}ea.forEachState=eU;function Z$(e){let t=Object.keys(e),r=t.length,n=new Array(r);for(let i=0;i!n.isDeprecated);let r=e.map(n=>({proximity:tee(tU(n.label),t),entry:n}));return GO(GO(r,n=>n.proximity<=2),n=>!n.entry.isDeprecated).sort((n,i)=>(n.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||n.proximity-i.proximity||n.entry.label.length-i.entry.label.length).map(n=>n.entry)}function GO(e,t){let r=e.filter(t);return r.length===0?e:r}function tU(e){return e.toLowerCase().replace(/\W/g,"")}function tee(e,t){let r=ree(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r}function ree(e,t){let r,n,i=[],o=e.length,s=t.length;for(r=0;r<=o;r++)i[r]=[r];for(n=1;n<=s;n++)i[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){let l=e[r-1]===t[n-1]?0:1;i[r][n]=Math.min(i[r-1][n]+1,i[r][n-1]+1,i[r-1][n-1]+l),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(i[r][n]=Math.min(i[r][n],i[r-2][n-2]+l))}return i[o][s]}});var nU=G((rU,iy)=>{(function(e){if(typeof iy=="object"&&typeof iy.exports=="object"){var t=e(tx,rU);t!==void 0&&(iy.exports=t)}else typeof define=="function"&&define.amd&&define(["require","exports"],e)})(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocument=t.EOL=t.WorkspaceFolder=t.InlayHint=t.InlayHintLabelPart=t.InlayHintKind=t.InlineValueContext=t.InlineValueEvaluatableExpression=t.InlineValueVariableLookup=t.InlineValueText=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=t.SelectionRange=t.DocumentLink=t.FormattingOptions=t.CodeLens=t.CodeAction=t.CodeActionContext=t.CodeActionTriggerKind=t.CodeActionKind=t.DocumentSymbol=t.WorkspaceSymbol=t.SymbolInformation=t.SymbolTag=t.SymbolKind=t.DocumentHighlight=t.DocumentHighlightKind=t.SignatureInformation=t.ParameterInformation=t.Hover=t.MarkedString=t.CompletionList=t.CompletionItem=t.CompletionItemLabelDetails=t.InsertTextMode=t.InsertReplaceEdit=t.CompletionItemTag=t.InsertTextFormat=t.CompletionItemKind=t.MarkupContent=t.MarkupKind=t.TextDocumentItem=t.OptionalVersionedTextDocumentIdentifier=t.VersionedTextDocumentIdentifier=t.TextDocumentIdentifier=t.WorkspaceChange=t.WorkspaceEdit=t.DeleteFile=t.RenameFile=t.CreateFile=t.TextDocumentEdit=t.AnnotatedTextEdit=t.ChangeAnnotationIdentifier=t.ChangeAnnotation=t.TextEdit=t.Command=t.Diagnostic=t.CodeDescription=t.DiagnosticTag=t.DiagnosticSeverity=t.DiagnosticRelatedInformation=t.FoldingRange=t.FoldingRangeKind=t.ColorPresentation=t.ColorInformation=t.Color=t.LocationLink=t.Location=t.Range=t.Position=t.uinteger=t.integer=t.URI=t.DocumentUri=void 0;var r;(function(F){function Y(J){return typeof J=="string"}F.is=Y})(r=t.DocumentUri||(t.DocumentUri={}));var n;(function(F){function Y(J){return typeof J=="string"}F.is=Y})(n=t.URI||(t.URI={}));var i;(function(F){F.MIN_VALUE=-2147483648,F.MAX_VALUE=2147483647;function Y(J){return typeof J=="number"&&F.MIN_VALUE<=J&&J<=F.MAX_VALUE}F.is=Y})(i=t.integer||(t.integer={}));var o;(function(F){F.MIN_VALUE=0,F.MAX_VALUE=2147483647;function Y(J){return typeof J=="number"&&F.MIN_VALUE<=J&&J<=F.MAX_VALUE}F.is=Y})(o=t.uinteger||(t.uinteger={}));var s;(function(F){function Y(V,A){return V===Number.MAX_VALUE&&(V=o.MAX_VALUE),A===Number.MAX_VALUE&&(A=o.MAX_VALUE),{line:V,character:A}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&ee.uinteger(A.line)&&ee.uinteger(A.character)}F.is=J})(s=t.Position||(t.Position={}));var l;(function(F){function Y(V,A,re,ue){if(ee.uinteger(V)&&ee.uinteger(A)&&ee.uinteger(re)&&ee.uinteger(ue))return{start:s.create(V,A),end:s.create(re,ue)};if(s.is(V)&&s.is(A))return{start:V,end:A};throw new Error("Range#create called with invalid arguments[".concat(V,", ").concat(A,", ").concat(re,", ").concat(ue,"]"))}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&s.is(A.start)&&s.is(A.end)}F.is=J})(l=t.Range||(t.Range={}));var d;(function(F){function Y(V,A){return{uri:V,range:A}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&l.is(A.range)&&(ee.string(A.uri)||ee.undefined(A.uri))}F.is=J})(d=t.Location||(t.Location={}));var h;(function(F){function Y(V,A,re,ue){return{targetUri:V,targetRange:A,targetSelectionRange:re,originSelectionRange:ue}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&l.is(A.targetRange)&&ee.string(A.targetUri)&&l.is(A.targetSelectionRange)&&(l.is(A.originSelectionRange)||ee.undefined(A.originSelectionRange))}F.is=J})(h=t.LocationLink||(t.LocationLink={}));var v;(function(F){function Y(V,A,re,ue){return{red:V,green:A,blue:re,alpha:ue}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&ee.numberRange(A.red,0,1)&&ee.numberRange(A.green,0,1)&&ee.numberRange(A.blue,0,1)&&ee.numberRange(A.alpha,0,1)}F.is=J})(v=t.Color||(t.Color={}));var y;(function(F){function Y(V,A){return{range:V,color:A}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&l.is(A.range)&&v.is(A.color)}F.is=J})(y=t.ColorInformation||(t.ColorInformation={}));var b;(function(F){function Y(V,A,re){return{label:V,textEdit:A,additionalTextEdits:re}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&ee.string(A.label)&&(ee.undefined(A.textEdit)||L.is(A))&&(ee.undefined(A.additionalTextEdits)||ee.typedArray(A.additionalTextEdits,L.is))}F.is=J})(b=t.ColorPresentation||(t.ColorPresentation={}));var D;(function(F){F.Comment="comment",F.Imports="imports",F.Region="region"})(D=t.FoldingRangeKind||(t.FoldingRangeKind={}));var _;(function(F){function Y(V,A,re,ue,Ze,Ut){var Rt={startLine:V,endLine:A};return ee.defined(re)&&(Rt.startCharacter=re),ee.defined(ue)&&(Rt.endCharacter=ue),ee.defined(Ze)&&(Rt.kind=Ze),ee.defined(Ut)&&(Rt.collapsedText=Ut),Rt}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&ee.uinteger(A.startLine)&&ee.uinteger(A.startLine)&&(ee.undefined(A.startCharacter)||ee.uinteger(A.startCharacter))&&(ee.undefined(A.endCharacter)||ee.uinteger(A.endCharacter))&&(ee.undefined(A.kind)||ee.string(A.kind))}F.is=J})(_=t.FoldingRange||(t.FoldingRange={}));var k;(function(F){function Y(V,A){return{location:V,message:A}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&d.is(A.location)&&ee.string(A.message)}F.is=J})(k=t.DiagnosticRelatedInformation||(t.DiagnosticRelatedInformation={}));var T;(function(F){F.Error=1,F.Warning=2,F.Information=3,F.Hint=4})(T=t.DiagnosticSeverity||(t.DiagnosticSeverity={}));var S;(function(F){F.Unnecessary=1,F.Deprecated=2})(S=t.DiagnosticTag||(t.DiagnosticTag={}));var m;(function(F){function Y(J){var V=J;return ee.objectLiteral(V)&&ee.string(V.href)}F.is=Y})(m=t.CodeDescription||(t.CodeDescription={}));var w;(function(F){function Y(V,A,re,ue,Ze,Ut){var Rt={range:V,message:A};return ee.defined(re)&&(Rt.severity=re),ee.defined(ue)&&(Rt.code=ue),ee.defined(Ze)&&(Rt.source=Ze),ee.defined(Ut)&&(Rt.relatedInformation=Ut),Rt}F.create=Y;function J(V){var A,re=V;return ee.defined(re)&&l.is(re.range)&&ee.string(re.message)&&(ee.number(re.severity)||ee.undefined(re.severity))&&(ee.integer(re.code)||ee.string(re.code)||ee.undefined(re.code))&&(ee.undefined(re.codeDescription)||ee.string((A=re.codeDescription)===null||A===void 0?void 0:A.href))&&(ee.string(re.source)||ee.undefined(re.source))&&(ee.undefined(re.relatedInformation)||ee.typedArray(re.relatedInformation,k.is))}F.is=J})(w=t.Diagnostic||(t.Diagnostic={}));var x;(function(F){function Y(V,A){for(var re=[],ue=2;ue0&&(Ze.arguments=re),Ze}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.string(A.title)&&ee.string(A.command)}F.is=J})(x=t.Command||(t.Command={}));var L;(function(F){function Y(re,ue){return{range:re,newText:ue}}F.replace=Y;function J(re,ue){return{range:{start:re,end:re},newText:ue}}F.insert=J;function V(re){return{range:re,newText:""}}F.del=V;function A(re){var ue=re;return ee.objectLiteral(ue)&&ee.string(ue.newText)&&l.is(ue.range)}F.is=A})(L=t.TextEdit||(t.TextEdit={}));var O;(function(F){function Y(V,A,re){var ue={label:V};return A!==void 0&&(ue.needsConfirmation=A),re!==void 0&&(ue.description=re),ue}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&ee.string(A.label)&&(ee.boolean(A.needsConfirmation)||A.needsConfirmation===void 0)&&(ee.string(A.description)||A.description===void 0)}F.is=J})(O=t.ChangeAnnotation||(t.ChangeAnnotation={}));var R;(function(F){function Y(J){var V=J;return ee.string(V)}F.is=Y})(R=t.ChangeAnnotationIdentifier||(t.ChangeAnnotationIdentifier={}));var M;(function(F){function Y(re,ue,Ze){return{range:re,newText:ue,annotationId:Ze}}F.replace=Y;function J(re,ue,Ze){return{range:{start:re,end:re},newText:ue,annotationId:Ze}}F.insert=J;function V(re,ue){return{range:re,newText:"",annotationId:ue}}F.del=V;function A(re){var ue=re;return L.is(ue)&&(O.is(ue.annotationId)||R.is(ue.annotationId))}F.is=A})(M=t.AnnotatedTextEdit||(t.AnnotatedTextEdit={}));var q;(function(F){function Y(V,A){return{textDocument:V,edits:A}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&He.is(A.textDocument)&&Array.isArray(A.edits)}F.is=J})(q=t.TextDocumentEdit||(t.TextDocumentEdit={}));var z;(function(F){function Y(V,A,re){var ue={kind:"create",uri:V};return A!==void 0&&(A.overwrite!==void 0||A.ignoreIfExists!==void 0)&&(ue.options=A),re!==void 0&&(ue.annotationId=re),ue}F.create=Y;function J(V){var A=V;return A&&A.kind==="create"&&ee.string(A.uri)&&(A.options===void 0||(A.options.overwrite===void 0||ee.boolean(A.options.overwrite))&&(A.options.ignoreIfExists===void 0||ee.boolean(A.options.ignoreIfExists)))&&(A.annotationId===void 0||R.is(A.annotationId))}F.is=J})(z=t.CreateFile||(t.CreateFile={}));var B;(function(F){function Y(V,A,re,ue){var Ze={kind:"rename",oldUri:V,newUri:A};return re!==void 0&&(re.overwrite!==void 0||re.ignoreIfExists!==void 0)&&(Ze.options=re),ue!==void 0&&(Ze.annotationId=ue),Ze}F.create=Y;function J(V){var A=V;return A&&A.kind==="rename"&&ee.string(A.oldUri)&&ee.string(A.newUri)&&(A.options===void 0||(A.options.overwrite===void 0||ee.boolean(A.options.overwrite))&&(A.options.ignoreIfExists===void 0||ee.boolean(A.options.ignoreIfExists)))&&(A.annotationId===void 0||R.is(A.annotationId))}F.is=J})(B=t.RenameFile||(t.RenameFile={}));var Q;(function(F){function Y(V,A,re){var ue={kind:"delete",uri:V};return A!==void 0&&(A.recursive!==void 0||A.ignoreIfNotExists!==void 0)&&(ue.options=A),re!==void 0&&(ue.annotationId=re),ue}F.create=Y;function J(V){var A=V;return A&&A.kind==="delete"&&ee.string(A.uri)&&(A.options===void 0||(A.options.recursive===void 0||ee.boolean(A.options.recursive))&&(A.options.ignoreIfNotExists===void 0||ee.boolean(A.options.ignoreIfNotExists)))&&(A.annotationId===void 0||R.is(A.annotationId))}F.is=J})(Q=t.DeleteFile||(t.DeleteFile={}));var P;(function(F){function Y(J){var V=J;return V&&(V.changes!==void 0||V.documentChanges!==void 0)&&(V.documentChanges===void 0||V.documentChanges.every(function(A){return ee.string(A.kind)?z.is(A)||B.is(A)||Q.is(A):q.is(A)}))}F.is=Y})(P=t.WorkspaceEdit||(t.WorkspaceEdit={}));var he=function(){function F(Y,J){this.edits=Y,this.changeAnnotations=J}return F.prototype.insert=function(Y,J,V){var A,re;if(V===void 0?A=L.insert(Y,J):R.is(V)?(re=V,A=M.insert(Y,J,V)):(this.assertChangeAnnotations(this.changeAnnotations),re=this.changeAnnotations.manage(V),A=M.insert(Y,J,re)),this.edits.push(A),re!==void 0)return re},F.prototype.replace=function(Y,J,V){var A,re;if(V===void 0?A=L.replace(Y,J):R.is(V)?(re=V,A=M.replace(Y,J,V)):(this.assertChangeAnnotations(this.changeAnnotations),re=this.changeAnnotations.manage(V),A=M.replace(Y,J,re)),this.edits.push(A),re!==void 0)return re},F.prototype.delete=function(Y,J){var V,A;if(J===void 0?V=L.del(Y):R.is(J)?(A=J,V=M.del(Y,J)):(this.assertChangeAnnotations(this.changeAnnotations),A=this.changeAnnotations.manage(J),V=M.del(Y,A)),this.edits.push(V),A!==void 0)return A},F.prototype.add=function(Y){this.edits.push(Y)},F.prototype.all=function(){return this.edits},F.prototype.clear=function(){this.edits.splice(0,this.edits.length)},F.prototype.assertChangeAnnotations=function(Y){if(Y===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},F}(),xe=function(){function F(Y){this._annotations=Y===void 0?Object.create(null):Y,this._counter=0,this._size=0}return F.prototype.all=function(){return this._annotations},Object.defineProperty(F.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),F.prototype.manage=function(Y,J){var V;if(R.is(Y)?V=Y:(V=this.nextId(),J=Y),this._annotations[V]!==void 0)throw new Error("Id ".concat(V," is already in use."));if(J===void 0)throw new Error("No annotation provided for id ".concat(V));return this._annotations[V]=J,this._size++,V},F.prototype.nextId=function(){return this._counter++,this._counter.toString()},F}(),ge=function(){function F(Y){var J=this;this._textEditChanges=Object.create(null),Y!==void 0?(this._workspaceEdit=Y,Y.documentChanges?(this._changeAnnotations=new xe(Y.changeAnnotations),Y.changeAnnotations=this._changeAnnotations.all(),Y.documentChanges.forEach(function(V){if(q.is(V)){var A=new he(V.edits,J._changeAnnotations);J._textEditChanges[V.textDocument.uri]=A}})):Y.changes&&Object.keys(Y.changes).forEach(function(V){var A=new he(Y.changes[V]);J._textEditChanges[V]=A})):this._workspaceEdit={}}return Object.defineProperty(F.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),F.prototype.getTextEditChange=function(Y){if(He.is(Y)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var J={uri:Y.uri,version:Y.version},V=this._textEditChanges[J.uri];if(!V){var A=[],re={textDocument:J,edits:A};this._workspaceEdit.documentChanges.push(re),V=new he(A,this._changeAnnotations),this._textEditChanges[J.uri]=V}return V}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var V=this._textEditChanges[Y];if(!V){var A=[];this._workspaceEdit.changes[Y]=A,V=new he(A),this._textEditChanges[Y]=V}return V}},F.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new xe,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},F.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},F.prototype.createFile=function(Y,J,V){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var A;O.is(J)||R.is(J)?A=J:V=J;var re,ue;if(A===void 0?re=z.create(Y,V):(ue=R.is(A)?A:this._changeAnnotations.manage(A),re=z.create(Y,V,ue)),this._workspaceEdit.documentChanges.push(re),ue!==void 0)return ue},F.prototype.renameFile=function(Y,J,V,A){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var re;O.is(V)||R.is(V)?re=V:A=V;var ue,Ze;if(re===void 0?ue=B.create(Y,J,A):(Ze=R.is(re)?re:this._changeAnnotations.manage(re),ue=B.create(Y,J,A,Ze)),this._workspaceEdit.documentChanges.push(ue),Ze!==void 0)return Ze},F.prototype.deleteFile=function(Y,J,V){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var A;O.is(J)||R.is(J)?A=J:V=J;var re,ue;if(A===void 0?re=Q.create(Y,V):(ue=R.is(A)?A:this._changeAnnotations.manage(A),re=Q.create(Y,V,ue)),this._workspaceEdit.documentChanges.push(re),ue!==void 0)return ue},F}();t.WorkspaceChange=ge;var Fe;(function(F){function Y(V){return{uri:V}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.string(A.uri)}F.is=J})(Fe=t.TextDocumentIdentifier||(t.TextDocumentIdentifier={}));var Le;(function(F){function Y(V,A){return{uri:V,version:A}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.string(A.uri)&&ee.integer(A.version)}F.is=J})(Le=t.VersionedTextDocumentIdentifier||(t.VersionedTextDocumentIdentifier={}));var He;(function(F){function Y(V,A){return{uri:V,version:A}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.string(A.uri)&&(A.version===null||ee.integer(A.version))}F.is=J})(He=t.OptionalVersionedTextDocumentIdentifier||(t.OptionalVersionedTextDocumentIdentifier={}));var Xe;(function(F){function Y(V,A,re,ue){return{uri:V,languageId:A,version:re,text:ue}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.string(A.uri)&&ee.string(A.languageId)&&ee.integer(A.version)&&ee.string(A.text)}F.is=J})(Xe=t.TextDocumentItem||(t.TextDocumentItem={}));var Ve;(function(F){F.PlainText="plaintext",F.Markdown="markdown";function Y(J){var V=J;return V===F.PlainText||V===F.Markdown}F.is=Y})(Ve=t.MarkupKind||(t.MarkupKind={}));var At;(function(F){function Y(J){var V=J;return ee.objectLiteral(J)&&Ve.is(V.kind)&&ee.string(V.value)}F.is=Y})(At=t.MarkupContent||(t.MarkupContent={}));var Ot;(function(F){F.Text=1,F.Method=2,F.Function=3,F.Constructor=4,F.Field=5,F.Variable=6,F.Class=7,F.Interface=8,F.Module=9,F.Property=10,F.Unit=11,F.Value=12,F.Enum=13,F.Keyword=14,F.Snippet=15,F.Color=16,F.File=17,F.Reference=18,F.Folder=19,F.EnumMember=20,F.Constant=21,F.Struct=22,F.Event=23,F.Operator=24,F.TypeParameter=25})(Ot=t.CompletionItemKind||(t.CompletionItemKind={}));var Ie;(function(F){F.PlainText=1,F.Snippet=2})(Ie=t.InsertTextFormat||(t.InsertTextFormat={}));var te;(function(F){F.Deprecated=1})(te=t.CompletionItemTag||(t.CompletionItemTag={}));var ce;(function(F){function Y(V,A,re){return{newText:V,insert:A,replace:re}}F.create=Y;function J(V){var A=V;return A&&ee.string(A.newText)&&l.is(A.insert)&&l.is(A.replace)}F.is=J})(ce=t.InsertReplaceEdit||(t.InsertReplaceEdit={}));var we;(function(F){F.asIs=1,F.adjustIndentation=2})(we=t.InsertTextMode||(t.InsertTextMode={}));var ot;(function(F){function Y(J){var V=J;return V&&(ee.string(V.detail)||V.detail===void 0)&&(ee.string(V.description)||V.description===void 0)}F.is=Y})(ot=t.CompletionItemLabelDetails||(t.CompletionItemLabelDetails={}));var Me;(function(F){function Y(J){return{label:J}}F.create=Y})(Me=t.CompletionItem||(t.CompletionItem={}));var Qe;(function(F){function Y(J,V){return{items:J||[],isIncomplete:!!V}}F.create=Y})(Qe=t.CompletionList||(t.CompletionList={}));var ze;(function(F){function Y(V){return V.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}F.fromPlainText=Y;function J(V){var A=V;return ee.string(A)||ee.objectLiteral(A)&&ee.string(A.language)&&ee.string(A.value)}F.is=J})(ze=t.MarkedString||(t.MarkedString={}));var mt;(function(F){function Y(J){var V=J;return!!V&&ee.objectLiteral(V)&&(At.is(V.contents)||ze.is(V.contents)||ee.typedArray(V.contents,ze.is))&&(J.range===void 0||l.is(J.range))}F.is=Y})(mt=t.Hover||(t.Hover={}));var oe;(function(F){function Y(J,V){return V?{label:J,documentation:V}:{label:J}}F.create=Y})(oe=t.ParameterInformation||(t.ParameterInformation={}));var me;(function(F){function Y(J,V){for(var A=[],re=2;re=0;vn--){var Rr=Ut[vn],jr=re.offsetAt(Rr.range.start),et=re.offsetAt(Rr.range.end);if(et<=Rt)Ze=Ze.substring(0,jr)+Rr.newText+Ze.substring(et,Ze.length);else throw new Error("Overlapping edit");Rt=jr}return Ze}F.applyEdits=V;function A(re,ue){if(re.length<=1)return re;var Ze=re.length/2|0,Ut=re.slice(0,Ze),Rt=re.slice(Ze);A(Ut,ue),A(Rt,ue);for(var vn=0,Rr=0,jr=0;vn0&&Y.push(J.length),this._lineOffsets=Y}return this._lineOffsets},F.prototype.positionAt=function(Y){Y=Math.max(Math.min(Y,this._content.length),0);var J=this.getLineOffsets(),V=0,A=J.length;if(A===0)return s.create(0,Y);for(;VY?A=re:V=re+1}var ue=V-1;return s.create(ue,Y-J[ue])},F.prototype.offsetAt=function(Y){var J=this.getLineOffsets();if(Y.line>=J.length)return this._content.length;if(Y.line<0)return 0;var V=J[Y.line],A=Y.line+1{"use strict";Object.defineProperty(BO,"__esModule",{value:!0});var iU=class{constructor(t){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{let r=this._sourceText.charAt(this._pos);return this._pos++,r},this.eat=r=>{if(this._testNextCharacter(r))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=r=>{let n=this._testNextCharacter(r),i=!1;for(n&&(i=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(r),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=r=>{this._pos=r},this.match=(r,n=!0,i=!1)=>{let o=null,s=null;return typeof r=="string"?(s=new RegExp(r,i?"i":"g").test(this._sourceText.substr(this._pos,r.length)),o=r):r instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(r),o=s==null?void 0:s[0]),s!=null&&(typeof r=="string"||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos))?(n&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),s):!1},this.backUp=r=>{this._pos-=r},this.column=()=>this._pos,this.indentation=()=>{let r=this._sourceText.match(/\s*/),n=0;if(r&&r.length!==0){let i=r[0],o=0;for(;i.length>o;)i.charCodeAt(o)===9?n+=2:n++,o++}return n},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=t}_testNextCharacter(t){let r=this._sourceText.charAt(this._pos),n=!1;return typeof t=="string"?n=r===t:n=t instanceof RegExp?t.test(r):t(r),n}};BO.default=iU});var KO=G(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.p=ta.t=ta.butNot=ta.list=ta.opt=void 0;function nee(e){return{ofRule:e}}ta.opt=nee;function iee(e,t){return{ofRule:e,isList:!0,separator:t}}ta.list=iee;function aee(e,t){let r=e.match;return e.match=n=>{let i=!1;return r&&(i=r(n)),i&&t.every(o=>o.match&&!o.match(n))},e}ta.butNot=aee;function oee(e,t){return{style:t,match:r=>r.kind===e}}ta.t=oee;function uee(e,t){return{style:t||"punctuation",match:r=>r.kind==="Punctuation"&&r.value===e}}ta.p=uee});var HO=G(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.ParseRules=ju.LexRules=ju.isIgnored=void 0;var de=KO(),see=ht(),lee=e=>e===" "||e===" "||e===","||e===` `||e==="\r"||e==="\uFEFF"||e==="\xA0";ju.isIgnored=lee;ju.LexRules={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:/^#.*/};ju.ParseRules={Document:[(0,de.list)("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return see.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:[kn("query"),(0,de.opt)(tr("def")),(0,de.opt)("VariableDefinitions"),(0,de.list)("Directive"),"SelectionSet"],Mutation:[kn("mutation"),(0,de.opt)(tr("def")),(0,de.opt)("VariableDefinitions"),(0,de.list)("Directive"),"SelectionSet"],Subscription:[kn("subscription"),(0,de.opt)(tr("def")),(0,de.opt)("VariableDefinitions"),(0,de.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,de.p)("("),(0,de.list)("VariableDefinition"),(0,de.p)(")")],VariableDefinition:["Variable",(0,de.p)(":"),"Type",(0,de.opt)("DefaultValue")],Variable:[(0,de.p)("$","variable"),tr("variable")],DefaultValue:[(0,de.p)("="),"Value"],SelectionSet:[(0,de.p)("{"),(0,de.list)("Selection"),(0,de.p)("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[tr("property"),(0,de.p)(":"),tr("qualifier"),(0,de.opt)("Arguments"),(0,de.list)("Directive"),(0,de.opt)("SelectionSet")],Field:[tr("property"),(0,de.opt)("Arguments"),(0,de.list)("Directive"),(0,de.opt)("SelectionSet")],Arguments:[(0,de.p)("("),(0,de.list)("Argument"),(0,de.p)(")")],Argument:[tr("attribute"),(0,de.p)(":"),"Value"],FragmentSpread:[(0,de.p)("..."),tr("def"),(0,de.list)("Directive")],InlineFragment:[(0,de.p)("..."),(0,de.opt)("TypeCondition"),(0,de.list)("Directive"),"SelectionSet"],FragmentDefinition:[kn("fragment"),(0,de.opt)((0,de.butNot)(tr("def"),[kn("on")])),"TypeCondition",(0,de.list)("Directive"),"SelectionSet"],TypeCondition:[kn("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 e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[(0,de.t)("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[(0,de.t)("Name","builtin")],NullValue:[(0,de.t)("Name","keyword")],EnumValue:[tr("string-2")],ListValue:[(0,de.p)("["),(0,de.list)("Value"),(0,de.p)("]")],ObjectValue:[(0,de.p)("{"),(0,de.list)("ObjectField"),(0,de.p)("}")],ObjectField:[tr("attribute"),(0,de.p)(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[(0,de.p)("["),"Type",(0,de.p)("]"),(0,de.opt)((0,de.p)("!"))],NonNullType:["NamedType",(0,de.opt)((0,de.p)("!"))],NamedType:[cee("atom")],Directive:[(0,de.p)("@","meta"),tr("meta"),(0,de.opt)("Arguments")],DirectiveDef:[kn("directive"),(0,de.p)("@","meta"),tr("meta"),(0,de.opt)("ArgumentsDef"),kn("on"),(0,de.list)("DirectiveLocation",(0,de.p)("|"))],InterfaceDef:[kn("interface"),tr("atom"),(0,de.opt)("Implements"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("FieldDef"),(0,de.p)("}")],Implements:[kn("implements"),(0,de.list)("NamedType",(0,de.p)("&"))],DirectiveLocation:[tr("string-2")],SchemaDef:[kn("schema"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("OperationTypeDef"),(0,de.p)("}")],OperationTypeDef:[tr("keyword"),(0,de.p)(":"),tr("atom")],ScalarDef:[kn("scalar"),tr("atom"),(0,de.list)("Directive")],ObjectTypeDef:[kn("type"),tr("atom"),(0,de.opt)("Implements"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("FieldDef"),(0,de.p)("}")],FieldDef:[tr("property"),(0,de.opt)("ArgumentsDef"),(0,de.p)(":"),"Type",(0,de.list)("Directive")],ArgumentsDef:[(0,de.p)("("),(0,de.list)("InputValueDef"),(0,de.p)(")")],InputValueDef:[tr("attribute"),(0,de.p)(":"),"Type",(0,de.opt)("DefaultValue"),(0,de.list)("Directive")],UnionDef:[kn("union"),tr("atom"),(0,de.list)("Directive"),(0,de.p)("="),(0,de.list)("UnionMember",(0,de.p)("|"))],UnionMember:["NamedType"],EnumDef:[kn("enum"),tr("atom"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("EnumValueDef"),(0,de.p)("}")],EnumValueDef:[tr("string-2"),(0,de.list)("Directive")],InputDef:[kn("input"),tr("atom"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("InputValueDef"),(0,de.p)("}")],ExtendDef:[kn("extend"),"ObjectTypeDef"]};function kn(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function tr(e){return{style:e,match:t=>t.kind==="Name",update(t,r){t.name=r.value}}}function cee(e){return{style:e,match:t=>t.kind==="Name",update(t,r){var n;((n=t.prevState)===null||n===void 0?void 0:n.prevState)&&(t.name=r.value,t.prevState.prevState.type=r.value)}}}});var sU=G(XO=>{"use strict";Object.defineProperty(XO,"__esModule",{value:!0});var zO=HO(),fee=ht();function dee(e={eatWhitespace:t=>t.eatWhile(zO.isIgnored),lexRules:zO.LexRules,parseRules:zO.ParseRules,editorConfig:{}}){return{startState(){let t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return Up(e.parseRules,t,fee.Kind.DOCUMENT),t},token(t,r){return pee(t,r,e)}}}XO.default=dee;function pee(e,t,r){var n;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");let{lexRules:i,parseRules:o,eatWhitespace:s,editorConfig:l}=r;if(t.rule&&t.rule.length===0?YO(t):t.needsAdvance&&(t.needsAdvance=!1,JO(t,!0)),e.sol()){let v=(l==null?void 0:l.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/v)}if(s(e))return"ws";let d=vee(i,e);if(!d)return e.match(/\S+/)||e.match(/\s/),Up(WO,t,"Invalid"),"invalidchar";if(d.kind==="Comment")return Up(WO,t,"Comment"),"comment";let h=oU({},t);if(d.kind==="Punctuation"){if(/^[{([]/.test(d.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(d.value)){let v=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&v.length>0&&v[v.length-1]{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.RuleKinds=Vs.AdditionalRuleKinds=void 0;var gee=ht();Vs.AdditionalRuleKinds={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"};Vs.RuleKinds=Object.assign(Object.assign({},gee.Kind),Vs.AdditionalRuleKinds)});var ay=G(Bt=>{"use strict";var mee=Bt&&Bt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),yee=Bt&&Bt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&mee(t,e,r)},cU=Bt&&Bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.onlineParser=Bt.t=Bt.p=Bt.opt=Bt.list=Bt.butNot=Bt.isIgnored=Bt.ParseRules=Bt.LexRules=Bt.CharacterStream=void 0;var bee=aU();Object.defineProperty(Bt,"CharacterStream",{enumerable:!0,get:function(){return cU(bee).default}});var ZO=HO();Object.defineProperty(Bt,"LexRules",{enumerable:!0,get:function(){return ZO.LexRules}});Object.defineProperty(Bt,"ParseRules",{enumerable:!0,get:function(){return ZO.ParseRules}});Object.defineProperty(Bt,"isIgnored",{enumerable:!0,get:function(){return ZO.isIgnored}});var Gp=KO();Object.defineProperty(Bt,"butNot",{enumerable:!0,get:function(){return Gp.butNot}});Object.defineProperty(Bt,"list",{enumerable:!0,get:function(){return Gp.list}});Object.defineProperty(Bt,"opt",{enumerable:!0,get:function(){return Gp.opt}});Object.defineProperty(Bt,"p",{enumerable:!0,get:function(){return Gp.p}});Object.defineProperty(Bt,"t",{enumerable:!0,get:function(){return Gp.t}});var Tee=sU();Object.defineProperty(Bt,"onlineParser",{enumerable:!0,get:function(){return cU(Tee).default}});yee(lU(),Bt)});var ew=G(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.getTypeInfo=Vr.canUseDirective=Vr.runOnlineParser=Vr.getTokenAtPosition=Vr.getFragmentDefinitions=Vr.getVariableCompletions=Vr.getAutocompleteSuggestions=Vr.SuggestionCommand=void 0;var tn=nU(),Vt=ht(),kt=ht(),ke=ay(),br=QO();Vr.SuggestionCommand={command:"editor.action.triggerSuggest",title:"Suggestions"};var _ee=e=>{let t=[];if(e)try{(0,kt.visit)((0,kt.parse)(e),{FragmentDefinition(r){t.push(r)}})}catch(r){return[]}return t};function Eee(e,t,r,n,i,o){var s;let l=Object.assign(Object.assign({},o),{schema:e}),d=n||dU(t,r),h=d.state.kind==="Invalid"?d.state.prevState:d.state;if(!h)return[];let v=h.kind,y=h.step,b=hU(e,d.state);if(v===ke.RuleKinds.DOCUMENT)return(0,br.hintList)(d,[{label:"query",kind:tn.CompletionItemKind.Function},{label:"mutation",kind:tn.CompletionItemKind.Function},{label:"subscription",kind:tn.CompletionItemKind.Function},{label:"fragment",kind:tn.CompletionItemKind.Function},{label:"{",kind:tn.CompletionItemKind.Constructor}]);if(v===ke.RuleKinds.IMPLEMENTS||v===ke.RuleKinds.NAMED_TYPE&&((s=h.prevState)===null||s===void 0?void 0:s.kind)===ke.RuleKinds.IMPLEMENTS)return wee(d,h,e,t,b);if(v===ke.RuleKinds.SELECTION_SET||v===ke.RuleKinds.FIELD||v===ke.RuleKinds.ALIASED_FIELD)return kee(d,b,l);if(v===ke.RuleKinds.ARGUMENTS||v===ke.RuleKinds.ARGUMENT&&y===0){let D=b.argDefs;if(D)return(0,br.hintList)(d,D.map(_=>{var k;return{label:_.name,insertText:_.name+": ",command:Vr.SuggestionCommand,detail:String(_.type),documentation:(k=_.description)!==null&&k!==void 0?k:void 0,kind:tn.CompletionItemKind.Variable,type:_.type}}))}if((v===ke.RuleKinds.OBJECT_VALUE||v===ke.RuleKinds.OBJECT_FIELD&&y===0)&&b.objectFieldDefs){let D=(0,br.objectValues)(b.objectFieldDefs),_=v===ke.RuleKinds.OBJECT_VALUE?tn.CompletionItemKind.Value:tn.CompletionItemKind.Field;return(0,br.hintList)(d,D.map(k=>{var T;return{label:k.name,detail:String(k.type),documentation:(T=k.description)!==null&&T!==void 0?T:void 0,kind:_,type:k.type}}))}if(v===ke.RuleKinds.ENUM_VALUE||v===ke.RuleKinds.LIST_VALUE&&y===1||v===ke.RuleKinds.OBJECT_FIELD&&y===2||v===ke.RuleKinds.ARGUMENT&&y===2)return Oee(d,b,t,e);if(v===ke.RuleKinds.VARIABLE&&y===1){let D=(0,kt.getNamedType)(b.inputType),_=$O(t,e,d);return(0,br.hintList)(d,_.filter(k=>k.detail===(D==null?void 0:D.name)))}return v===ke.RuleKinds.TYPE_CONDITION&&y===1||v===ke.RuleKinds.NAMED_TYPE&&h.prevState!=null&&h.prevState.kind===ke.RuleKinds.TYPE_CONDITION?Nee(d,b,e,v):v===ke.RuleKinds.FRAGMENT_SPREAD&&y===1?Dee(d,b,e,t,Array.isArray(i)?i:_ee(i)):v===ke.RuleKinds.VARIABLE_DEFINITION&&y===2||v===ke.RuleKinds.LIST_TYPE&&y===1||v===ke.RuleKinds.NAMED_TYPE&&h.prevState&&(h.prevState.kind===ke.RuleKinds.VARIABLE_DEFINITION||h.prevState.kind===ke.RuleKinds.LIST_TYPE||h.prevState.kind===ke.RuleKinds.NON_NULL_TYPE)?Cee(d,e,v):v===ke.RuleKinds.DIRECTIVE?Lee(d,h,e,v):[]}Vr.getAutocompleteSuggestions=Eee;var oy=` { $1 }`,See=e=>{let t=e.type;return(0,kt.isCompositeType)(t)||(0,Vt.isListType)(t)&&(0,kt.isCompositeType)(t.ofType)||(0,Vt.isNonNullType)(t)&&((0,kt.isCompositeType)(t.ofType)||(0,Vt.isListType)(t.ofType)&&(0,kt.isCompositeType)(t.ofType.ofType))?oy:null};function kee(e,t,r){var n;if(t.parentType){let i=t.parentType,o=[];return"getFields"in i&&(o=(0,br.objectValues)(i.getFields())),(0,kt.isCompositeType)(i)&&o.push(kt.TypeNameMetaFieldDef),i===((n=r==null?void 0:r.schema)===null||n===void 0?void 0:n.getQueryType())&&o.push(kt.SchemaMetaFieldDef,kt.TypeMetaFieldDef),(0,br.hintList)(e,o.map((s,l)=>{var d;let h={sortText:String(l)+s.name,label:s.name,detail:String(s.type),documentation:(d=s.description)!==null&&d!==void 0?d:void 0,deprecated:Boolean(s.deprecationReason),isDeprecated:Boolean(s.deprecationReason),deprecationReason:s.deprecationReason,kind:tn.CompletionItemKind.Field,type:s.type},v=See(s);return v&&(h.insertText=s.name+v,h.insertTextFormat=tn.InsertTextFormat.Snippet,h.command=Vr.SuggestionCommand),h}))}return[]}function Oee(e,t,r,n){let i=(0,kt.getNamedType)(t.inputType),o=$O(r,n,e).filter(s=>s.detail===i.name);if(i instanceof kt.GraphQLEnumType){let s=i.getValues();return(0,br.hintList)(e,s.map(l=>{var d;return{label:l.name,detail:String(i),documentation:(d=l.description)!==null&&d!==void 0?d:void 0,deprecated:Boolean(l.deprecationReason),isDeprecated:Boolean(l.deprecationReason),deprecationReason:l.deprecationReason,kind:tn.CompletionItemKind.EnumMember,type:i}}).concat(o))}else if(i===kt.GraphQLBoolean)return(0,br.hintList)(e,o.concat([{label:"true",detail:String(kt.GraphQLBoolean),documentation:"Not false.",kind:tn.CompletionItemKind.Variable,type:kt.GraphQLBoolean},{label:"false",detail:String(kt.GraphQLBoolean),documentation:"Not true.",kind:tn.CompletionItemKind.Variable,type:kt.GraphQLBoolean}]));return o}function wee(e,t,r,n,i){if(t.needsSeperator)return[];let o=r.getTypeMap(),s=(0,br.objectValues)(o).filter(Vt.isInterfaceType),l=s.map(({name:D})=>D),d=new Set;Qp(n,(D,_)=>{var k,T,S,m,w;if(_.name&&(_.kind===ke.RuleKinds.INTERFACE_DEF&&!l.includes(_.name)&&d.add(_.name),_.kind===ke.RuleKinds.NAMED_TYPE&&((k=_.prevState)===null||k===void 0?void 0:k.kind)===ke.RuleKinds.IMPLEMENTS)){if(i.interfaceDef){if((T=i.interfaceDef)===null||T===void 0?void 0:T.getInterfaces().find(({name:R})=>R===_.name))return;let L=r.getType(_.name),O=(S=i.interfaceDef)===null||S===void 0?void 0:S.toConfig();i.interfaceDef=new Vt.GraphQLInterfaceType(Object.assign(Object.assign({},O),{interfaces:[...O.interfaces,L||new Vt.GraphQLInterfaceType({name:_.name,fields:{}})]}))}else if(i.objectTypeDef){if((m=i.objectTypeDef)===null||m===void 0?void 0:m.getInterfaces().find(({name:R})=>R===_.name))return;let L=r.getType(_.name),O=(w=i.objectTypeDef)===null||w===void 0?void 0:w.toConfig();i.objectTypeDef=new Vt.GraphQLObjectType(Object.assign(Object.assign({},O),{interfaces:[...O.interfaces,L||new Vt.GraphQLInterfaceType({name:_.name,fields:{}})]}))}}});let h=i.interfaceDef||i.objectTypeDef,y=((h==null?void 0:h.getInterfaces())||[]).map(({name:D})=>D),b=s.concat([...d].map(D=>({name:D}))).filter(({name:D})=>D!==(h==null?void 0:h.name)&&!y.includes(D));return(0,br.hintList)(e,b.map(D=>{let _={label:D.name,kind:tn.CompletionItemKind.Interface,type:D};return(D==null?void 0:D.description)&&(_.documentation=D.description),_}))}function Nee(e,t,r,n){let i;if(t.parentType)if((0,kt.isAbstractType)(t.parentType)){let o=(0,kt.assertAbstractType)(t.parentType),s=r.getPossibleTypes(o),l=Object.create(null);s.forEach(d=>{d.getInterfaces().forEach(h=>{l[h.name]=h})}),i=s.concat((0,br.objectValues)(l))}else i=[t.parentType];else{let o=r.getTypeMap();i=(0,br.objectValues)(o).filter(kt.isCompositeType)}return(0,br.hintList)(e,i.map(o=>{let s=(0,kt.getNamedType)(o);return{label:String(o),documentation:(s==null?void 0:s.description)||"",kind:tn.CompletionItemKind.Field}}))}function Dee(e,t,r,n,i){if(!n)return[];let o=r.getTypeMap(),s=(0,br.getDefinitionState)(e.state),l=fU(n);i&&i.length>0&&l.push(...i);let d=l.filter(h=>o[h.typeCondition.name.value]&&!(s&&s.kind===ke.RuleKinds.FRAGMENT_DEFINITION&&s.name===h.name.value)&&(0,kt.isCompositeType)(t.parentType)&&(0,kt.isCompositeType)(o[h.typeCondition.name.value])&&(0,kt.doTypesOverlap)(r,t.parentType,o[h.typeCondition.name.value]));return(0,br.hintList)(e,d.map(h=>({label:h.name.value,detail:String(o[h.typeCondition.name.value]),documentation:`fragment ${h.name.value} on ${h.typeCondition.name.value}`,kind:tn.CompletionItemKind.Field,type:o[h.typeCondition.name.value]})))}var xee=(e,t)=>{var r,n,i,o,s,l,d,h,v,y;if(((r=e.prevState)===null||r===void 0?void 0:r.kind)===t)return e.prevState;if(((i=(n=e.prevState)===null||n===void 0?void 0:n.prevState)===null||i===void 0?void 0:i.kind)===t)return e.prevState.prevState;if(((l=(s=(o=e.prevState)===null||o===void 0?void 0:o.prevState)===null||s===void 0?void 0:s.prevState)===null||l===void 0?void 0:l.kind)===t)return e.prevState.prevState.prevState;if(((y=(v=(h=(d=e.prevState)===null||d===void 0?void 0:d.prevState)===null||h===void 0?void 0:h.prevState)===null||v===void 0?void 0:v.prevState)===null||y===void 0?void 0:y.kind)===t)return e.prevState.prevState.prevState.prevState};function $O(e,t,r){let n=null,i,o=Object.create({});return Qp(e,(s,l)=>{if((l==null?void 0:l.kind)===ke.RuleKinds.VARIABLE&&l.name&&(n=l.name),(l==null?void 0:l.kind)===ke.RuleKinds.NAMED_TYPE&&n){let d=xee(l,ke.RuleKinds.TYPE);(d==null?void 0:d.type)&&(i=t.getType(d==null?void 0:d.type))}n&&i&&(o[n]||(o[n]={detail:i.toString(),insertText:r.string==="$"?n:"$"+n,label:n,type:i,kind:tn.CompletionItemKind.Variable},n=null,i=null))}),(0,br.objectValues)(o)}Vr.getVariableCompletions=$O;function fU(e){let t=[];return Qp(e,(r,n)=>{n.kind===ke.RuleKinds.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:ke.RuleKinds.FRAGMENT_DEFINITION,name:{kind:Vt.Kind.NAME,value:n.name},selectionSet:{kind:ke.RuleKinds.SELECTION_SET,selections:[]},typeCondition:{kind:ke.RuleKinds.NAMED_TYPE,name:{kind:Vt.Kind.NAME,value:n.type}}})}),t}Vr.getFragmentDefinitions=fU;function Cee(e,t,r){let n=t.getTypeMap(),i=(0,br.objectValues)(n).filter(kt.isInputType);return(0,br.hintList)(e,i.map(o=>({label:o.name,documentation:o.description,kind:tn.CompletionItemKind.Variable})))}function Lee(e,t,r,n){var i;if((i=t.prevState)===null||i===void 0?void 0:i.kind){let o=r.getDirectives().filter(s=>pU(t.prevState,s));return(0,br.hintList)(e,o.map(s=>({label:s.name,documentation:s.description||"",kind:tn.CompletionItemKind.Function})))}return[]}function dU(e,t){let r=null,n=null,i=null,o=Qp(e,(s,l,d,h)=>{if(h===t.line&&s.getCurrentPosition()>=t.character)return r=d,n=Object.assign({},l),i=s.current(),"BREAK"});return{start:o.start,end:o.end,string:i||o.string,state:n||o.state,style:r||o.style}}Vr.getTokenAtPosition=dU;function Qp(e,t){let r=e.split(` `),n=(0,ke.onlineParser)(),i=n.startState(),o="",s=new ke.CharacterStream("");for(let l=0;l{var _;switch(D.kind){case ke.RuleKinds.QUERY:case"ShortQuery":y=e.getQueryType();break;case ke.RuleKinds.MUTATION:y=e.getMutationType();break;case ke.RuleKinds.SUBSCRIPTION:y=e.getSubscriptionType();break;case ke.RuleKinds.INLINE_FRAGMENT:case ke.RuleKinds.FRAGMENT_DEFINITION:D.type&&(y=e.getType(D.type));break;case ke.RuleKinds.FIELD:case ke.RuleKinds.ALIASED_FIELD:{!y||!D.name?s=null:(s=v?(0,br.getFieldDef)(e,v,D.name):null,y=s?s.type:null);break}case ke.RuleKinds.SELECTION_SET:v=(0,kt.getNamedType)(y);break;case ke.RuleKinds.DIRECTIVE:i=D.name?e.getDirective(D.name):null;break;case ke.RuleKinds.INTERFACE_DEF:D.name&&(d=null,b=new Vt.GraphQLInterfaceType({name:D.name,interfaces:[],fields:{}}));break;case ke.RuleKinds.OBJECT_TYPE_DEF:D.name&&(b=null,d=new Vt.GraphQLObjectType({name:D.name,interfaces:[],fields:{}}));break;case ke.RuleKinds.ARGUMENTS:{if(!D.prevState)n=null;else switch(D.prevState.kind){case ke.RuleKinds.FIELD:n=s&&s.args;break;case ke.RuleKinds.DIRECTIVE:n=i&&i.args;break;case ke.RuleKinds.ALIASED_FIELD:{let w=(_=D.prevState)===null||_===void 0?void 0:_.name;if(!w){n=null;break}let x=v?(0,br.getFieldDef)(e,v,w):null;if(!x){n=null;break}n=x.args;break}default:n=null;break}break}case ke.RuleKinds.ARGUMENT:if(n){for(let w=0;ww.value===D.name):null;break;case ke.RuleKinds.LIST_VALUE:let T=(0,kt.getNullableType)(l);l=T instanceof kt.GraphQLList?T.ofType:null;break;case ke.RuleKinds.OBJECT_VALUE:let S=(0,kt.getNamedType)(l);h=S instanceof kt.GraphQLInputObjectType?S.getFields():null;break;case ke.RuleKinds.OBJECT_FIELD:let m=D.name&&h?h[D.name]:null;l=m==null?void 0:m.type;break;case ke.RuleKinds.NAMED_TYPE:D.name&&(y=e.getType(D.name));break}}),{argDef:r,argDefs:n,directiveDef:i,enumValue:o,fieldDef:s,inputType:l,objectFieldDefs:h,parentType:v,type:y,interfaceDef:b,objectTypeDef:d}}Vr.getTypeInfo=hU});var gU=G(Ao=>{"use strict";var Iee=Ao&&Ao.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.getFragmentDependenciesForAST=Ao.getFragmentDependencies=void 0;var tw=ht(),vU=Iee(Xk()),Aee=(e,t)=>{if(!t)return[];let r;try{r=(0,tw.parse)(e)}catch(n){return[]}return(0,Ao.getFragmentDependenciesForAST)(r,t)};Ao.getFragmentDependencies=Aee;var Ree=(e,t)=>{if(!t)return[];let r=new Map,n=new Set;(0,tw.visit)(e,{FragmentDefinition(s){r.set(s.name.value,!0)},FragmentSpread(s){n.has(s.name.value)||n.add(s.name.value)}});let i=new Set;n.forEach(s=>{!r.has(s)&&t.has(s)&&i.add((0,vU.default)(t.get(s)))});let o=[];return i.forEach(s=>{(0,tw.visit)(s,{FragmentSpread(l){!n.has(l.name.value)&&t.get(l.name.value)&&(i.add((0,vU.default)(t.get(l.name.value))),n.add(l.name.value))}}),r.has(s.name.value)||o.push(s)}),o};Ao.getFragmentDependenciesForAST=Ree});var mU=G(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.getVariablesJSONSchema=qc.defaultJSONSchemaOptions=void 0;var Pu=ht();qc.defaultJSONSchemaOptions={useMarkdownDescription:!1};function Mc(e,t){e.push(t)}function rw(e,t){(0,Pu.isNonNullType)(t)?(rw(e,t.ofType),Mc(e,"!")):(0,Pu.isListType)(t)?(Mc(e,"["),rw(e,t.ofType),Mc(e,"]")):Mc(e,t.name)}function Za(e,t){let r=[];return t&&Mc(r,"```graphql\n"),rw(r,e),t&&Mc(r,"\n```"),r.join("")}var jee={Int:"integer",String:"string",Float:"number",ID:"string",Boolean:"boolean",DateTime:"string"};function Bp(e,t){var r;let n=!1,i=Object.create(null),o=Object.create(null);if("defaultValue"in e&&e.defaultValue!==void 0&&(i.default=e.defaultValue),(0,Pu.isEnumType)(e)&&(i.type="string",i.enum=e.getValues().map(s=>s.name)),(0,Pu.isScalarType)(e)&&(i.type=(r=jee[e.name])!==null&&r!==void 0?r:"any"),(0,Pu.isListType)(e)){i.type="array";let{definition:s,definitions:l}=Bp(e.ofType,t);s.$ref?i.items={$ref:s.$ref}:i.items=s,l&&Object.keys(l).forEach(d=>{o[d]=l[d]})}if((0,Pu.isNonNullType)(e)){n=!0;let{definition:s,definitions:l}=Bp(e.ofType,t);i=s,l&&Object.keys(l).forEach(d=>{o[d]=l[d]})}if((0,Pu.isInputObjectType)(e)){i.$ref=`#/definitions/${e.name}`;let s=e.getFields(),l={type:"object",properties:{},required:[]};e.description?(l.description=e.description+` `+Za(e),(t==null?void 0:t.useMarkdownDescription)&&(l.markdownDescription=e.description+` `+Za(e,!0))):(l.description=Za(e),(t==null?void 0:t.useMarkdownDescription)&&(l.markdownDescription=Za(e,!0))),Object.keys(s).forEach(d=>{let h=s[d],{required:v,definition:y,definitions:b}=Bp(h.type,t),{definition:D}=Bp(h,t);l.properties[d]=Object.assign(Object.assign({},y),D);let _=Za(h.type);if(l.properties[d].description=h.description?h.description+` `+_:_,t==null?void 0:t.useMarkdownDescription){let k=Za(h.type,!0);l.properties[d].markdownDescription=h.description?h.description+` `+k:k}v&&l.required.push(d),b&&Object.keys(b).map(k=>{o[k]=b[k]})}),o[e.name]=l}return"description"in e&&!(0,Pu.isScalarType)(e)&&e.description&&!i.description?(i.description=e.description+` `+Za(e),(t==null?void 0:t.useMarkdownDescription)&&(i.markdownDescription=e.description+` `+Za(e,!0))):(i.description=Za(e),(t==null?void 0:t.useMarkdownDescription)&&(i.markdownDescription=Za(e,!0))),{required:n,definition:i,definitions:o}}function Pee(e,t){let r={$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{},required:[]};return e&&Object.entries(e).forEach(([n,i])=>{var o;let{definition:s,required:l,definitions:d}=Bp(i,t);r.properties[n]=s,l&&((o=r.required)===null||o===void 0||o.push(n)),d&&(r.definitions=Object.assign(Object.assign({},r==null?void 0:r.definitions),d))}),r}qc.getVariablesJSONSchema=Pee});var bU=G(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.pointToOffset=Vc.getASTNodeAtPosition=void 0;var Fee=ht();function Mee(e,t,r){let n=yU(e,r),i;return(0,Fee.visit)(t,{enter(o){if(o.kind!=="Name"&&o.loc&&o.loc.start<=n&&n<=o.loc.end)i=o;else return!1},leave(o){if(o.loc&&o.loc.start<=n&&n<=o.loc.end)return!1}}),i}Vc.getASTNodeAtPosition=Mee;function yU(e,t){let r=e.split(` `).slice(0,t.line);return t.character+r.map(n=>n.length+1).reduce((n,i)=>n+i,0)}Vc.pointToOffset=yU});var TU=G($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.locToRange=$a.offsetToPosition=$a.Position=$a.Range=void 0;var nw=class{constructor(t,r){this.containsPosition=n=>this.start.line===n.line?this.start.character<=n.character:this.end.line===n.line?this.end.character>=n.character:this.start.line<=n.line&&this.end.line>=n.line,this.start=t,this.end=r}setStart(t,r){this.start=new Kp(t,r)}setEnd(t,r){this.end=new Kp(t,r)}};$a.Range=nw;var Kp=class{constructor(t,r){this.lessThanOrEqualTo=n=>this.line{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});uy.validateWithCustomRules=void 0;var fn=ht(),Vee=[fn.LoneSchemaDefinitionRule,fn.UniqueOperationTypesRule,fn.UniqueTypeNamesRule,fn.UniqueEnumValueNamesRule,fn.UniqueFieldDefinitionNamesRule,fn.UniqueDirectiveNamesRule,fn.KnownTypeNamesRule,fn.KnownDirectivesRule,fn.UniqueDirectivesPerLocationRule,fn.PossibleTypeExtensionsRule,fn.UniqueArgumentNamesRule,fn.UniqueInputFieldNamesRule];function Uee(e,t,r,n,i){let o=fn.specifiedRules.filter(l=>!(l===fn.NoUnusedFragmentsRule||l===fn.ExecutableDefinitionsRule||n&&l===fn.KnownFragmentNamesRule));return r&&Array.prototype.push.apply(o,r),i&&Array.prototype.push.apply(o,Vee),(0,fn.validate)(e,t,o).filter(l=>{if(l.message.indexOf("Unknown directive")!==-1&&l.nodes){let d=l.nodes[0];if(d&&d.kind===fn.Kind.DIRECTIVE){let h=d.name.value;if(h==="arguments"||h==="argumentDefinitions")return!1}}return!0})}uy.validateWithCustomRules=Uee});var ow=G(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.collectVariables=void 0;var aw=ht();function Gee(e,t){let r=Object.create(null);return t.definitions.forEach(n=>{if(n.kind==="OperationDefinition"){let i=n.variableDefinitions;i&&i.forEach(({variable:o,type:s})=>{let l=(0,aw.typeFromAST)(e,s);l?r[o.name.value]=l:s.kind===aw.Kind.NAMED_TYPE&&s.name.value==="Float"&&(r[o.name.value]=aw.GraphQLFloat)})}}),r}sy.collectVariables=Gee});var OU=G(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.getQueryFacts=Us.getOperationASTFacts=void 0;var EU=ht(),Qee=ow();function SU(e,t){let r=t?(0,Qee.collectVariables)(t,e):void 0,n=[];return(0,EU.visit)(e,{OperationDefinition(i){n.push(i)}}),{variableToType:r,operations:n}}Us.getOperationASTFacts=SU;function kU(e,t){if(!!t)try{let r=(0,EU.parse)(t);return Object.assign(Object.assign({},SU(r,e)),{documentAST:r})}catch(r){return}}Us.default=kU;Us.getQueryFacts=kU});var Hp=G(Lt=>{"use strict";var Bee=Lt&&Lt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.getQueryFacts=Lt.getOperationASTFacts=Lt.getOperationFacts=Lt.collectVariables=Lt.validateWithCustomRules=Lt.offsetToPosition=Lt.locToRange=Lt.Range=Lt.Position=Lt.pointToOffset=Lt.getASTNodeAtPosition=Lt.getVariablesJSONSchema=Lt.getFragmentDependenciesForAST=Lt.getFragmentDependencies=void 0;var wU=gU();Object.defineProperty(Lt,"getFragmentDependencies",{enumerable:!0,get:function(){return wU.getFragmentDependencies}});Object.defineProperty(Lt,"getFragmentDependenciesForAST",{enumerable:!0,get:function(){return wU.getFragmentDependenciesForAST}});var Kee=mU();Object.defineProperty(Lt,"getVariablesJSONSchema",{enumerable:!0,get:function(){return Kee.getVariablesJSONSchema}});var NU=bU();Object.defineProperty(Lt,"getASTNodeAtPosition",{enumerable:!0,get:function(){return NU.getASTNodeAtPosition}});Object.defineProperty(Lt,"pointToOffset",{enumerable:!0,get:function(){return NU.pointToOffset}});var ly=TU();Object.defineProperty(Lt,"Position",{enumerable:!0,get:function(){return ly.Position}});Object.defineProperty(Lt,"Range",{enumerable:!0,get:function(){return ly.Range}});Object.defineProperty(Lt,"locToRange",{enumerable:!0,get:function(){return ly.locToRange}});Object.defineProperty(Lt,"offsetToPosition",{enumerable:!0,get:function(){return ly.offsetToPosition}});var Hee=_U();Object.defineProperty(Lt,"validateWithCustomRules",{enumerable:!0,get:function(){return Hee.validateWithCustomRules}});var zee=ow();Object.defineProperty(Lt,"collectVariables",{enumerable:!0,get:function(){return zee.collectVariables}});var uw=OU();Object.defineProperty(Lt,"getOperationFacts",{enumerable:!0,get:function(){return Bee(uw).default}});Object.defineProperty(Lt,"getOperationASTFacts",{enumerable:!0,get:function(){return uw.getOperationASTFacts}});Object.defineProperty(Lt,"getQueryFacts",{enumerable:!0,get:function(){return uw.getQueryFacts}})});var CU=G(On=>{"use strict";var sw=On&&On.__awaiter||function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(v){try{h(n.next(v))}catch(y){s(y)}}function d(v){try{h(n.throw(v))}catch(y){s(y)}}function h(v){v.done?o(v.value):i(v.value).then(l,d)}h((n=n.apply(e,t||[])).next())})};Object.defineProperty(On,"__esModule",{value:!0});On.getDefinitionQueryResultForDefinitionNode=On.getDefinitionQueryResultForFragmentSpread=On.getDefinitionQueryResultForField=On.getDefinitionQueryResultForNamedType=On.LANGUAGE=void 0;var DU=Hp();On.LANGUAGE="GraphQL";function cy(e,t){if(!e)throw new Error(t)}function Uc(e,t){let r=t.loc;return cy(r,"Expected ASTNode to have a location."),(0,DU.locToRange)(e,r)}function lw(e,t){let r=t.loc;return cy(r,"Expected ASTNode to have a location."),(0,DU.offsetToPosition)(e,r.start)}function Wee(e,t,r){return sw(this,void 0,void 0,function*(){let n=t.name.value,i=r.filter(({definition:s})=>s.name&&s.name.value===n);if(i.length===0)throw Error(`Definition not found for GraphQL type ${n}`);let o=i.map(({filePath:s,content:l,definition:d})=>Zee(s||"",l,d));return{definitions:o,queryRange:o.map(s=>Uc(e,t))}})}On.getDefinitionQueryResultForNamedType=Wee;function Yee(e,t,r){return sw(this,void 0,void 0,function*(){let n=r.filter(({definition:o})=>o.name&&o.name.value===t);if(n.length===0)throw Error(`Definition not found for GraphQL type ${t}`);let i=[];return n.forEach(({filePath:o,content:s,definition:l})=>{var d;let h=(d=l.fields)===null||d===void 0?void 0:d.find(v=>v.name.value===e);if(h==null)return null;i.push($ee(o||"",s,h))}),{definitions:i,queryRange:[]}})}On.getDefinitionQueryResultForField=Yee;function Jee(e,t,r){return sw(this,void 0,void 0,function*(){let n=t.name.value,i=r.filter(({definition:s})=>s.name.value===n);if(i.length===0)throw Error(`Definition not found for GraphQL fragment ${n}`);let o=i.map(({filePath:s,content:l,definition:d})=>xU(s||"",l,d));return{definitions:o,queryRange:o.map(s=>Uc(e,t))}})}On.getDefinitionQueryResultForFragmentSpread=Jee;function Xee(e,t,r){return{definitions:[xU(e,t,r)],queryRange:r.name?[Uc(t,r.name)]:[]}}On.getDefinitionQueryResultForDefinitionNode=Xee;function xU(e,t,r){let n=r.name;if(!n)throw Error("Expected ASTNode to have a Name.");return{path:e,position:lw(t,r),range:Uc(t,r),name:n.value||"",language:On.LANGUAGE,projectRoot:e}}function Zee(e,t,r){let n=r.name;return cy(n,"Expected ASTNode to have a Name."),{path:e,position:lw(t,r),range:Uc(t,r),name:n.value||"",language:On.LANGUAGE,projectRoot:e}}function $ee(e,t,r){let n=r.name;return cy(n,"Expected ASTNode to have a Name."),{path:e,position:lw(t,r),range:Uc(t,r),name:n.value||"",language:On.LANGUAGE,projectRoot:e}}});var PU=G(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getRange=rn.validateQuery=rn.getDiagnostics=rn.DIAGNOSTIC_SEVERITY=rn.SEVERITY=void 0;var fy=ht(),ete=ht(),LU=ay(),Gs=Hp();rn.SEVERITY={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"};rn.DIAGNOSTIC_SEVERITY={[rn.SEVERITY.Error]:1,[rn.SEVERITY.Warning]:2,[rn.SEVERITY.Information]:3,[rn.SEVERITY.Hint]:4};var dy=(e,t)=>{if(!e)throw new Error(t)};function tte(e,t=null,r,n,i){var o,s;let l=null;i&&(typeof i=="string"?e+=` `+i:e+=` `+i.reduce((d,h)=>(d+=(0,fy.print)(h)+` `,d),""));try{l=(0,ete.parse)(e)}catch(d){if(d instanceof fy.GraphQLError){let h=jU((s=(o=d.locations)===null||o===void 0?void 0:o[0])!==null&&s!==void 0?s:{line:0,column:0},e);return[{severity:rn.DIAGNOSTIC_SEVERITY.Error,message:d.message,source:"GraphQL: Syntax",range:h}]}throw d}return IU(l,t,r,n)}rn.getDiagnostics=tte;function IU(e,t=null,r,n){if(!t)return[];let i=AU((0,Gs.validateWithCustomRules)(t,e,r,n),s=>RU(s,rn.DIAGNOSTIC_SEVERITY.Error,"Validation")),o=AU((0,fy.validate)(t,e,[fy.NoDeprecatedCustomRule]),s=>RU(s,rn.DIAGNOSTIC_SEVERITY.Warning,"Deprecation"));return i.concat(o)}rn.validateQuery=IU;function AU(e,t){return Array.prototype.concat.apply([],e.map(t))}function RU(e,t,r){if(!e.nodes)return[];let n=[];return e.nodes.forEach(i=>{let o=i.kind!=="Variable"&&"name"in i&&i.name!==void 0?i.name:"variable"in i&&i.variable!==void 0?i.variable:i;if(o){dy(e.locations,"GraphQL validation error requires locations.");let s=e.locations[0],l=rte(o),d=s.column+(l.end-l.start);n.push({source:`GraphQL: ${r}`,message:e.message,severity:t,range:new Gs.Range(new Gs.Position(s.line-1,s.column-1),new Gs.Position(s.line-1,d))})}}),n}function jU(e,t){let r=(0,LU.onlineParser)(),n=r.startState(),i=t.split(` `);dy(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let h=0;h{"use strict";Object.defineProperty(py,"__esModule",{value:!0});py.getOutline=void 0;var cw=ht(),FU=Hp(),{INLINE_FRAGMENT:nte}=cw.Kind;function ite(e){let t;try{t=(0,cw.parse)(e)}catch(i){return null}let r=ate(e);return{outlineTrees:(0,cw.visit)(t,{leave(i){return r!==void 0&&i.kind in r?r[i.kind](i):null}})}}py.getOutline=ite;function ate(e){let t=r=>({representativeName:r.name,startPosition:(0,FU.offsetToPosition)(e,r.loc.start),endPosition:(0,FU.offsetToPosition)(e,r.loc.end),kind:r.kind,children:r.selectionSet||r.fields||r.values||r.arguments||[]});return{Field:r=>{let n=r.alias?[rr("plain",r.alias),rr("plain",": ")]:[];return n.push(rr("plain",r.name)),Object.assign({tokenizedText:n},t(r))},OperationDefinition:r=>Object.assign({tokenizedText:[rr("keyword",r.operation),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),Document:r=>r.definitions,SelectionSet:r=>ote(r.selections,n=>n.kind===nte?n.selectionSet:n),Name:r=>r.value,FragmentDefinition:r=>Object.assign({tokenizedText:[rr("keyword","fragment"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),InterfaceTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","interface"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),EnumTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","enum"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),EnumValueDefinition:r=>Object.assign({tokenizedText:[rr("plain",r.name)]},t(r)),ObjectTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","type"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),InputObjectTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","input"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),FragmentSpread:r=>Object.assign({tokenizedText:[rr("plain","..."),rr("class-name",r.name)]},t(r)),InputValueDefinition:r=>Object.assign({tokenizedText:[rr("plain",r.name)]},t(r)),FieldDefinition:r=>Object.assign({tokenizedText:[rr("plain",r.name)]},t(r)),InlineFragment:r=>r.selectionSet}}function rr(e,t){return{kind:e,value:t}}function ote(e,t){let r=[];for(let n=0;n{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});hy.getHoverInformation=void 0;var qU=ht(),VU=ew();function ute(e,t,r,n,i){let o=n||(0,VU.getTokenAtPosition)(t,r);if(!e||!o||!o.state)return"";let s=o.state,l=s.kind,d=s.step,h=(0,VU.getTypeInfo)(e,o.state),v=Object.assign(Object.assign({},i),{schema:e});if(l==="Field"&&d===0&&h.fieldDef||l==="AliasedField"&&d===2&&h.fieldDef){let y=[];return zp(y,v),ste(y,h,v),Wp(y,v),Yp(y,v,h.fieldDef),y.join("").trim()}else if(l==="Directive"&&d===1&&h.directiveDef){let y=[];return zp(y,v),GU(y,h,v),Wp(y,v),Yp(y,v,h.directiveDef),y.join("").trim()}else if(l==="Argument"&&d===0&&h.argDef){let y=[];return zp(y,v),lte(y,h,v),Wp(y,v),Yp(y,v,h.argDef),y.join("").trim()}else if(l==="EnumValue"&&h.enumValue&&"description"in h.enumValue){let y=[];return zp(y,v),cte(y,h,v),Wp(y,v),Yp(y,v,h.enumValue),y.join("").trim()}else if(l==="NamedType"&&h.type&&"description"in h.type){let y=[];return zp(y,v),Gc(y,h,v,h.type),Wp(y,v),Yp(y,v,h.type),y.join("").trim()}return""}hy.getHoverInformation=ute;function zp(e,t){t.useMarkdown&&Ur(e,"```graphql\n")}function Wp(e,t){t.useMarkdown&&Ur(e,"\n```")}function ste(e,t,r){UU(e,t,r),QU(e,t,r,t.type)}function UU(e,t,r){if(!t.fieldDef)return;let n=t.fieldDef.name;n.slice(0,2)!=="__"&&(Gc(e,t,r,t.parentType),Ur(e,".")),Ur(e,n)}function GU(e,t,r){if(!t.directiveDef)return;let n="@"+t.directiveDef.name;Ur(e,n)}function lte(e,t,r){if(t.directiveDef?GU(e,t,r):t.fieldDef&&UU(e,t,r),!t.argDef)return;let n=t.argDef.name;Ur(e,"("),Ur(e,n),QU(e,t,r,t.inputType),Ur(e,")")}function QU(e,t,r,n){Ur(e,": "),Gc(e,t,r,n)}function cte(e,t,r){if(!t.enumValue)return;let n=t.enumValue.name;Gc(e,t,r,t.inputType),Ur(e,"."),Ur(e,n)}function Gc(e,t,r,n){!n||(n instanceof qU.GraphQLNonNull?(Gc(e,t,r,n.ofType),Ur(e,"!")):n instanceof qU.GraphQLList?(Ur(e,"["),Gc(e,t,r,n.ofType),Ur(e,"]")):Ur(e,n.name))}function Yp(e,t,r){if(!r)return;let n=typeof r.description=="string"?r.description:null;n&&(Ur(e,` `),Ur(e,n)),fte(e,t,r)}function fte(e,t,r){if(!r)return;let n=r.deprecationReason?r.deprecationReason:null;!n||(Ur(e,` `),Ur(e,"Deprecated: "),Ur(e,n))}function Ur(e,t){e.push(t)}});var KU=G(bi=>{"use strict";var dte=bi&&bi.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),vy=bi&&bi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&dte(t,e,r)};Object.defineProperty(bi,"__esModule",{value:!0});bi.getHoverInformation=bi.getOutline=void 0;vy(QO(),bi);vy(ew(),bi);vy(CU(),bi);vy(PU(),bi);var pte=MU();Object.defineProperty(bi,"getOutline",{enumerable:!0,get:function(){return pte.getOutline}});var hte=BU();Object.defineProperty(bi,"getHoverInformation",{enumerable:!0,get:function(){return hte.getHoverInformation}})});var HU=G(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.CompletionItemKind=Qs.FileChangeTypeKind=void 0;Qs.FileChangeTypeKind={Created:1,Changed:2,Deleted:3};var vte;(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})(vte=Qs.CompletionItemKind||(Qs.CompletionItemKind={}))});var Qc=G(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.Range=ve.validateWithCustomRules=ve.collectVariables=ve.Position=ve.pointToOffset=ve.offsetToPosition=ve.getVariablesJSONSchema=ve.getQueryFacts=ve.getOperationFacts=ve.getOperationASTFacts=ve.getFragmentDependenciesForAST=ve.getFragmentDependencies=ve.getASTNodeAtPosition=ve.FileChangeTypeKind=ve.CompletionItemKind=ve.opt=ve.t=ve.list=ve.p=ve.isIgnored=ve.LexRules=ve.RuleKinds=ve.CharacterStream=ve.ParseRules=ve.onlineParser=ve.validateQuery=ve.SuggestionCommand=ve.canUseDirective=ve.DIAGNOSTIC_SEVERITY=ve.SEVERITY=ve.getVariableCompletions=ve.getTypeInfo=ve.getTokenAtPosition=ve.getRange=ve.getOutline=ve.getHoverInformation=ve.getFragmentDefinitions=ve.getFieldDef=ve.getDiagnostics=ve.getDefinitionState=ve.getDefinitionQueryResultForField=ve.getDefinitionQueryResultForNamedType=ve.getDefinitionQueryResultForFragmentSpread=ve.getDefinitionQueryResultForDefinitionNode=ve.getAutocompleteSuggestions=void 0;var Gr=KU();Object.defineProperty(ve,"getAutocompleteSuggestions",{enumerable:!0,get:function(){return Gr.getAutocompleteSuggestions}});Object.defineProperty(ve,"getDefinitionQueryResultForDefinitionNode",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForDefinitionNode}});Object.defineProperty(ve,"getDefinitionQueryResultForFragmentSpread",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForFragmentSpread}});Object.defineProperty(ve,"getDefinitionQueryResultForNamedType",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForNamedType}});Object.defineProperty(ve,"getDefinitionQueryResultForField",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForField}});Object.defineProperty(ve,"getDefinitionState",{enumerable:!0,get:function(){return Gr.getDefinitionState}});Object.defineProperty(ve,"getDiagnostics",{enumerable:!0,get:function(){return Gr.getDiagnostics}});Object.defineProperty(ve,"getFieldDef",{enumerable:!0,get:function(){return Gr.getFieldDef}});Object.defineProperty(ve,"getFragmentDefinitions",{enumerable:!0,get:function(){return Gr.getFragmentDefinitions}});Object.defineProperty(ve,"getHoverInformation",{enumerable:!0,get:function(){return Gr.getHoverInformation}});Object.defineProperty(ve,"getOutline",{enumerable:!0,get:function(){return Gr.getOutline}});Object.defineProperty(ve,"getRange",{enumerable:!0,get:function(){return Gr.getRange}});Object.defineProperty(ve,"getTokenAtPosition",{enumerable:!0,get:function(){return Gr.getTokenAtPosition}});Object.defineProperty(ve,"getTypeInfo",{enumerable:!0,get:function(){return Gr.getTypeInfo}});Object.defineProperty(ve,"getVariableCompletions",{enumerable:!0,get:function(){return Gr.getVariableCompletions}});Object.defineProperty(ve,"SEVERITY",{enumerable:!0,get:function(){return Gr.SEVERITY}});Object.defineProperty(ve,"DIAGNOSTIC_SEVERITY",{enumerable:!0,get:function(){return Gr.DIAGNOSTIC_SEVERITY}});Object.defineProperty(ve,"canUseDirective",{enumerable:!0,get:function(){return Gr.canUseDirective}});Object.defineProperty(ve,"SuggestionCommand",{enumerable:!0,get:function(){return Gr.SuggestionCommand}});Object.defineProperty(ve,"validateQuery",{enumerable:!0,get:function(){return Gr.validateQuery}});var eo=ay();Object.defineProperty(ve,"onlineParser",{enumerable:!0,get:function(){return eo.onlineParser}});Object.defineProperty(ve,"ParseRules",{enumerable:!0,get:function(){return eo.ParseRules}});Object.defineProperty(ve,"CharacterStream",{enumerable:!0,get:function(){return eo.CharacterStream}});Object.defineProperty(ve,"RuleKinds",{enumerable:!0,get:function(){return eo.RuleKinds}});Object.defineProperty(ve,"LexRules",{enumerable:!0,get:function(){return eo.LexRules}});Object.defineProperty(ve,"isIgnored",{enumerable:!0,get:function(){return eo.isIgnored}});Object.defineProperty(ve,"p",{enumerable:!0,get:function(){return eo.p}});Object.defineProperty(ve,"list",{enumerable:!0,get:function(){return eo.list}});Object.defineProperty(ve,"t",{enumerable:!0,get:function(){return eo.t}});Object.defineProperty(ve,"opt",{enumerable:!0,get:function(){return eo.opt}});var zU=HU();Object.defineProperty(ve,"CompletionItemKind",{enumerable:!0,get:function(){return zU.CompletionItemKind}});Object.defineProperty(ve,"FileChangeTypeKind",{enumerable:!0,get:function(){return zU.FileChangeTypeKind}});var Ii=Hp();Object.defineProperty(ve,"getASTNodeAtPosition",{enumerable:!0,get:function(){return Ii.getASTNodeAtPosition}});Object.defineProperty(ve,"getFragmentDependencies",{enumerable:!0,get:function(){return Ii.getFragmentDependencies}});Object.defineProperty(ve,"getFragmentDependenciesForAST",{enumerable:!0,get:function(){return Ii.getFragmentDependenciesForAST}});Object.defineProperty(ve,"getOperationASTFacts",{enumerable:!0,get:function(){return Ii.getOperationASTFacts}});Object.defineProperty(ve,"getOperationFacts",{enumerable:!0,get:function(){return Ii.getOperationFacts}});Object.defineProperty(ve,"getQueryFacts",{enumerable:!0,get:function(){return Ii.getQueryFacts}});Object.defineProperty(ve,"getVariablesJSONSchema",{enumerable:!0,get:function(){return Ii.getVariablesJSONSchema}});Object.defineProperty(ve,"offsetToPosition",{enumerable:!0,get:function(){return Ii.offsetToPosition}});Object.defineProperty(ve,"pointToOffset",{enumerable:!0,get:function(){return Ii.pointToOffset}});Object.defineProperty(ve,"Position",{enumerable:!0,get:function(){return Ii.Position}});Object.defineProperty(ve,"collectVariables",{enumerable:!0,get:function(){return Ii.collectVariables}});Object.defineProperty(ve,"validateWithCustomRules",{enumerable:!0,get:function(){return Ii.validateWithCustomRules}});Object.defineProperty(ve,"Range",{enumerable:!0,get:function(){return Ii.Range}})});var YU=G(my=>{"use strict";var gte=my&&my.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(my,"__esModule",{value:!0});var gy=gte(Wt());jO();var WU=Qc();gy.default.registerHelper("hint","graphql",function(e,t){var r=t.schema;if(!!r){var n=e.getCursor(),i=e.getTokenAt(n),o=i.type!==null&&/"|\w/.test(i.string[0])?i.start:i.end,s=new WU.Position(n.line,o),l=(0,WU.getAutocompleteSuggestions)(r,e.getValue(),s,i,t.externalFragments),d={list:l.map(function(h){return{text:h.label,type:h.type,description:h.documentation,isDeprecated:h.isDeprecated,deprecationReason:h.deprecationReason}}),from:{line:n.line,ch:o},to:{line:n.line,ch:i.end}};return(d==null?void 0:d.list)&&d.list.length>0&&(d.from=gy.default.Pos(d.from.line,d.from.ch),d.to=gy.default.Pos(d.to.line,d.to.ch),gy.default.signal(e,"hasCompletion",e,d,i)),d}})});var XU=G(yy=>{"use strict";var mte=yy&&yy.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yy,"__esModule",{value:!0});var fw=mte(Wt()),yte=Qc(),JU=["error","warning","information","hint"],bte={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};fw.default.registerHelper("lint","graphql",function(e,t){var r=t.schema,n=(0,yte.getDiagnostics)(e,r,t.validationRules,void 0,t.externalFragments),i=n.map(function(o){return{message:o.message,severity:o.severity?JU[o.severity-1]:JU[0],type:o.source?bte[o.source]:void 0,from:fw.default.Pos(o.range.start.line,o.range.start.character),to:fw.default.Pos(o.range.end.line,o.range.end.character)}});return i})});var pw=G(dw=>{"use strict";Object.defineProperty(dw,"__esModule",{value:!0});function Tte(e,t){for(var r=[],n=e;n==null?void 0:n.kind;)r.push(n),n=n.prevState;for(var i=r.length-1;i>=0;i--)t(r[i])}dw.default=Tte});var hw=G(Jp=>{"use strict";var _te=Jp&&Jp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jp,"__esModule",{value:!0});var Fu=ht(),Bc=vi(),Ete=_te(pw());function Ste(e,t){var r={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,Ete.default)(t,function(n){var i,o;switch(n.kind){case"Query":case"ShortQuery":r.type=e.getQueryType();break;case"Mutation":r.type=e.getMutationType();break;case"Subscription":r.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":n.type&&(r.type=e.getType(n.type));break;case"Field":case"AliasedField":r.fieldDef=r.type&&n.name?ZU(e,r.parentType,n.name):null,r.type=(i=r.fieldDef)===null||i===void 0?void 0:i.type;break;case"SelectionSet":r.parentType=r.type?(0,Fu.getNamedType)(r.type):null;break;case"Directive":r.directiveDef=n.name?e.getDirective(n.name):null;break;case"Arguments":var s=n.prevState?n.prevState.kind==="Field"?r.fieldDef:n.prevState.kind==="Directive"?r.directiveDef:n.prevState.kind==="AliasedField"?n.prevState.name&&ZU(e,r.parentType,n.prevState.name):null:null;r.argDefs=s?s.args:null;break;case"Argument":if(r.argDef=null,r.argDefs){for(var l=0;l{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.getTypeReference=ra.getEnumValueReference=ra.getArgumentReference=ra.getDirectiveReference=ra.getFieldReference=void 0;var Ote=ht();function wte(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:$U(e.fieldDef)?null:e.parentType}}ra.getFieldReference=wte;function Nte(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}ra.getDirectiveReference=Nte;function Dte(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:$U(e.fieldDef)?null:e.parentType}}ra.getArgumentReference=Dte;function xte(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,Ote.getNamedType)(e.inputType):void 0}}ra.getEnumValueReference=xte;function Cte(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}ra.getTypeReference=Cte;function $U(e){return e.name.slice(0,2)==="__"}});var gw=G(by=>{"use strict";var Lte=by&&by.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(by,"__esModule",{value:!0});var Gn=Lte(Wt());Gn.default.defineOption("info",!1,function(e,t,r){if(r&&r!==Gn.default.Init){var n=e.state.info.onMouseOver;Gn.default.off(e.getWrapperElement(),"mouseover",n),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var i=e.state.info=Ite(t);i.onMouseOver=Rte.bind(null,e),Gn.default.on(e.getWrapperElement(),"mouseover",i.onMouseOver)}});function Ite(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function Ate(e){var t=e.state.info.options;return(t==null?void 0:t.hoverTime)||500}function Rte(e,t){var r=e.state.info,n=t.target||t.srcElement;if(n instanceof HTMLElement&&!(n.nodeName!=="SPAN"||r.hoverTimeout!==void 0)){var i=n.getBoundingClientRect(),o=function(){clearTimeout(r.hoverTimeout),r.hoverTimeout=setTimeout(l,d)},s=function(){Gn.default.off(document,"mousemove",o),Gn.default.off(e.getWrapperElement(),"mouseout",s),clearTimeout(r.hoverTimeout),r.hoverTimeout=void 0},l=function(){Gn.default.off(document,"mousemove",o),Gn.default.off(e.getWrapperElement(),"mouseout",s),r.hoverTimeout=void 0,jte(e,i)},d=Ate(e);r.hoverTimeout=setTimeout(l,d),Gn.default.on(document,"mousemove",o),Gn.default.on(e.getWrapperElement(),"mouseout",s)}}function jte(e,t){var r=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),n=e.state.info,i=n.options,o=i.render||e.getHelper(r,"info");if(o){var s=e.getTokenAt(r,!0);if(s){var l=o(s,i,e,r);l&&Pte(e,t,l)}}}function Pte(e,t,r){var n=document.createElement("div");n.className="CodeMirror-info",n.appendChild(r),document.body.appendChild(n);var i=n.getBoundingClientRect(),o=window.getComputedStyle(n),s=i.right-i.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),l=i.bottom-i.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom),d=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(d=t.top-l),d<0&&(d=t.bottom);var h=Math.max(0,window.innerWidth-s-15);h>t.left&&(h=t.left),n.style.opacity="1",n.style.top=d+"px",n.style.left=h+"px";var v,y=function(){clearTimeout(v)},b=function(){clearTimeout(v),v=setTimeout(D,200)},D=function(){Gn.default.off(n,"mouseover",y),Gn.default.off(n,"mouseout",b),Gn.default.off(e.getWrapperElement(),"mouseout",b),n.style.opacity?(n.style.opacity="0",setTimeout(function(){n.parentNode&&n.parentNode.removeChild(n)},600)):n.parentNode&&n.parentNode.removeChild(n)};Gn.default.on(n,"mouseover",y),Gn.default.on(n,"mouseout",b),Gn.default.on(e.getWrapperElement(),"mouseout",b)}});var aG=G(Ty=>{"use strict";var eG=Ty&&Ty.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ty,"__esModule",{value:!0});var tG=ht(),Fte=eG(Wt()),Mte=eG(hw()),Xp=vw();gw();Fte.default.registerHelper("info","graphql",function(e,t){if(!(!t.schema||!e.state)){var r=e.state,n=r.kind,i=r.step,o=(0,Mte.default)(t.schema,e.state);if(n==="Field"&&i===0&&o.fieldDef||n==="AliasedField"&&i===2&&o.fieldDef){var s=document.createElement("div");return qte(s,o,t),Zp(s,t,o.fieldDef),s}else if(n==="Directive"&&i===1&&o.directiveDef){var s=document.createElement("div");return nG(s,o,t),Zp(s,t,o.directiveDef),s}else if(n==="Argument"&&i===0&&o.argDef){var s=document.createElement("div");return Vte(s,o,t),Zp(s,t,o.argDef),s}else if(n==="EnumValue"&&o.enumValue&&o.enumValue.description){var s=document.createElement("div");return Ute(s,o,t),Zp(s,t,o.enumValue),s}else if(n==="NamedType"&&o.type&&o.type.description){var s=document.createElement("div");return Kc(s,o,t,o.type),Zp(s,t,o.type),s}}});function qte(e,t,r){rG(e,t,r),iG(e,t,r,t.type)}function rG(e,t,r){var n,i=((n=t.fieldDef)===null||n===void 0?void 0:n.name)||"";i.slice(0,2)!=="__"&&(Kc(e,t,r,t.parentType),Ai(e,".")),Ai(e,i,"field-name",r,(0,Xp.getFieldReference)(t))}function nG(e,t,r){var n,i="@"+(((n=t.directiveDef)===null||n===void 0?void 0:n.name)||"");Ai(e,i,"directive-name",r,(0,Xp.getDirectiveReference)(t))}function Vte(e,t,r){var n;t.directiveDef?nG(e,t,r):t.fieldDef&&rG(e,t,r);var i=((n=t.argDef)===null||n===void 0?void 0:n.name)||"";Ai(e,"("),Ai(e,i,"arg-name",r,(0,Xp.getArgumentReference)(t)),iG(e,t,r,t.inputType),Ai(e,")")}function iG(e,t,r,n){Ai(e,": "),Kc(e,t,r,n)}function Ute(e,t,r){var n,i=((n=t.enumValue)===null||n===void 0?void 0:n.name)||"";Kc(e,t,r,t.inputType),Ai(e,"."),Ai(e,i,"enum-value",r,(0,Xp.getEnumValueReference)(t))}function Kc(e,t,r,n){n instanceof tG.GraphQLNonNull?(Kc(e,t,r,n.ofType),Ai(e,"!")):n instanceof tG.GraphQLList?(Ai(e,"["),Kc(e,t,r,n.ofType),Ai(e,"]")):Ai(e,(n==null?void 0:n.name)||"","type-name",r,(0,Xp.getTypeReference)(t,n))}function Zp(e,t,r){var n=r.description;if(n){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(n):i.appendChild(document.createTextNode(n)),e.appendChild(i)}Gte(e,t,r)}function Gte(e,t,r){var n=r.deprecationReason;if(n){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(n):i.appendChild(document.createTextNode(n));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}function Ai(e,t,r,n,i){if(r===void 0&&(r=""),n===void 0&&(n={onClick:null}),i===void 0&&(i=null),r){var o=n.onClick,s=void 0;o?(s=document.createElement("a"),s.href="javascript:void 0",s.addEventListener("click",function(l){o(i,l)})):s=document.createElement("span"),s.className=r,s.appendChild(document.createTextNode(t)),e.appendChild(s)}else e.appendChild(document.createTextNode(t))}});var sG=G(_y=>{"use strict";var Qte=_y&&_y.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_y,"__esModule",{value:!0});var na=Qte(Wt());na.default.defineOption("jump",!1,function(e,t,r){if(r&&r!==na.default.Init){var n=e.state.jump.onMouseOver;na.default.off(e.getWrapperElement(),"mouseover",n);var i=e.state.jump.onMouseOut;na.default.off(e.getWrapperElement(),"mouseout",i),na.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var o=e.state.jump={options:t,onMouseOver:Bte.bind(null,e),onMouseOut:Kte.bind(null,e),onKeyDown:Hte.bind(null,e)};na.default.on(e.getWrapperElement(),"mouseover",o.onMouseOver),na.default.on(e.getWrapperElement(),"mouseout",o.onMouseOut),na.default.on(document,"keydown",o.onKeyDown)}});function Bte(e,t){var r=t.target||t.srcElement;if(r instanceof HTMLElement&&(r==null?void 0:r.nodeName)==="SPAN"){var n=r.getBoundingClientRect(),i={left:(n.left+n.right)/2,top:(n.top+n.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&oG(e)}}function Kte(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){e.state.jump.cursor=null;return}e.state.jump.isHoldingModifier&&e.state.jump.marker&&uG(e)}function Hte(e,t){if(!(e.state.jump.isHoldingModifier||!Wte(t.key))){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&oG(e);var r=function(o){o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&uG(e),na.default.off(document,"keyup",r),na.default.off(document,"click",n),e.off("mousedown",i))},n=function(o){var s=e.state.jump.destination;s&&e.state.jump.options.onClick(s,o)},i=function(o,s){e.state.jump.destination&&(s.codemirrorIgnore=!0)};na.default.on(document,"keyup",r),na.default.on(document,"click",n),e.on("mousedown",i)}}var zte=typeof navigator!="undefined"&&navigator&&navigator.appVersion.indexOf("Mac")!==-1;function Wte(e){return e===(zte?"Meta":"Control")}function oG(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,r=e.coordsChar(t),n=e.getTokenAt(r,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(r,"jump");if(o){var s=o(n,i,e);if(s){var l=e.markText({line:r.line,ch:n.start},{line:r.line,ch:n.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=l,e.state.jump.destination=s}}}}function uG(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}});var cG=G(Ey=>{"use strict";var lG=Ey&&Ey.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ey,"__esModule",{value:!0});var Yte=lG(Wt()),Jte=lG(hw()),$p=vw();sG();Yte.default.registerHelper("jump","graphql",function(e,t){if(!(!t.schema||!t.onClick||!e.state)){var r=e.state,n=r.kind,i=r.step,o=(0,Jte.default)(t.schema,r);if(n==="Field"&&i===0&&o.fieldDef||n==="AliasedField"&&i===2&&o.fieldDef)return(0,$p.getFieldReference)(o);if(n==="Directive"&&i===1&&o.directiveDef)return(0,$p.getDirectiveReference)(o);if(n==="Argument"&&i===0&&o.argDef)return(0,$p.getArgumentReference)(o);if(n==="EnumValue"&&o.enumValue)return(0,$p.getEnumValueReference)(o);if(n==="NamedType"&&o.type)return(0,$p.getTypeReference)(o)}})});var fG=G(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0});function Xte(e,t){var r,n,i=e.levels,o=!i||i.length===0?e.indentLevel:i[i.length-1]-(((r=this.electricInput)===null||r===void 0?void 0:r.test(t))?1:0);return(o||0)*(((n=this.config)===null||n===void 0?void 0:n.indentUnit)||0)}mw.default=Xte});var dG=G(eh=>{"use strict";var Zte=eh&&eh.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eh,"__esModule",{value:!0});var Sy=Qc(),$te=Zte(fG()),ere=function(e){var t=(0,Sy.onlineParser)({eatWhitespace:function(r){return r.eatWhile(Sy.isIgnored)},lexRules:Sy.LexRules,parseRules:Sy.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:$te.default,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}};eh.default=ere});var hG=G(ky=>{"use strict";var pG=ky&&ky.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ky,"__esModule",{value:!0});var tre=pG(Wt()),rre=pG(dG());tre.default.defineMode("graphql",rre.default)});var mG=G(Tw=>{"use strict";Object.defineProperty(Tw,"__esModule",{value:!0});function sre(e,t,r){var n=lre(r,gG(t.string));if(!!n){var i=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:n,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}}Tw.default=sre;function lre(e,t){if(!t)return bw(e,function(o){return!o.isDeprecated});var r=e.map(function(o){return{proximity:cre(gG(o.text),t),entry:o}}),n=bw(bw(r,function(o){return o.proximity<=2}),function(o){return!o.entry.isDeprecated}),i=n.sort(function(o,s){return(o.entry.isDeprecated?1:0)-(s.entry.isDeprecated?1:0)||o.proximity-s.proximity||o.entry.text.length-s.entry.text.length});return i.map(function(o){return o.entry})}function bw(e,t){var r=e.filter(t);return r.length===0?e:r}function gG(e){return e.toLowerCase().replace(/\W/g,"")}function cre(e,t){var r=fre(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r}function fre(e,t){var r,n,i=[],o=e.length,s=t.length;for(r=0;r<=o;r++)i[r]=[r];for(n=1;n<=s;n++)i[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){var l=e[r-1]===t[n-1]?0:1;i[r][n]=Math.min(i[r-1][n]+1,i[r][n-1]+1,i[r-1][n-1]+l),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(i[r][n]=Math.min(i[r][n],i[r-2][n-2]+l))}return i[o][s]}});var yG=G(Dy=>{"use strict";var _w=Dy&&Dy.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dy,"__esModule",{value:!0});var Ny=_w(Wt()),to=ht(),dre=_w(pw()),Hc=_w(mG());Ny.default.registerHelper("hint","graphql-variables",function(e,t){var r=e.getCursor(),n=e.getTokenAt(r),i=pre(r,n,t);return(i==null?void 0:i.list)&&i.list.length>0&&(i.from=Ny.default.Pos(i.from.line,i.from.ch),i.to=Ny.default.Pos(i.to.line,i.to.ch),Ny.default.signal(e,"hasCompletion",e,i,n)),i});function pre(e,t,r){var n=t.state.kind==="Invalid"?t.state.prevState:t.state,i=n.kind,o=n.step;if(i==="Document"&&o===0)return(0,Hc.default)(e,t,[{text:"{"}]);var s=r.variableToType;if(!!s){var l=hre(s,t.state);if(i==="Document"||i==="Variable"&&o===0){var d=Object.keys(s);return(0,Hc.default)(e,t,d.map(function(b){return{text:'"'.concat(b,'": '),type:s[b]}}))}if((i==="ObjectValue"||i==="ObjectField"&&o===0)&&l.fields){var h=Object.keys(l.fields).map(function(b){return l.fields[b]});return(0,Hc.default)(e,t,h.map(function(b){return{text:'"'.concat(b.name,'": '),type:b.type,description:b.description}}))}if(i==="StringValue"||i==="NumberValue"||i==="BooleanValue"||i==="NullValue"||i==="ListValue"&&o===1||i==="ObjectField"&&o===2||i==="Variable"&&o===2){var v=l.type?(0,to.getNamedType)(l.type):void 0;if(v instanceof to.GraphQLInputObjectType)return(0,Hc.default)(e,t,[{text:"{"}]);if(v instanceof to.GraphQLEnumType){var y=v.getValues();return(0,Hc.default)(e,t,y.map(function(b){return{text:'"'.concat(b.name,'"'),type:v,description:b.description}}))}else if(v===to.GraphQLBoolean)return(0,Hc.default)(e,t,[{text:"true",type:to.GraphQLBoolean,description:"Not false."},{text:"false",type:to.GraphQLBoolean,description:"Not true."}])}}}function hre(e,t){var r={type:null,fields:null};return(0,dre.default)(t,function(n){if(n.kind==="Variable")r.type=e[n.name];else if(n.kind==="ListValue"){var i=r.type?(0,to.getNullableType)(r.type):void 0;r.type=i instanceof to.GraphQLList?i.ofType:null}else if(n.kind==="ObjectValue"){var o=r.type?(0,to.getNamedType)(r.type):void 0;r.fields=o instanceof to.GraphQLInputObjectType?o.getFields():null}else if(n.kind==="ObjectField"){var s=n.name&&r.fields?r.fields[n.name]:null;r.type=s==null?void 0:s.type}}),r}});var SG=G(Bs=>{"use strict";var vre=Bs&&Bs.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Bs,"__esModule",{value:!0});Bs.JSONSyntaxError=void 0;function gre(e){ro=e,xy=e.length,nn=Qn=th=-1,an(),Ly();var t=bG();return Mu("EOF"),t}Bs.default=gre;var ro,xy,nn,Qn,th,It,Ri;function bG(){var e=nn,t=[];if(Mu("{"),!Cy("}")){do t.push(mre());while(Cy(","));Mu("}")}return{kind:"Object",start:e,end:th,members:t}}function mre(){var e=nn,t=Ri==="String"?_G():null;Mu("String"),Mu(":");var r=TG();return{kind:"Member",start:e,end:th,key:t,value:r}}function yre(){var e=nn,t=[];if(Mu("["),!Cy("]")){do t.push(TG());while(Cy(","));Mu("]")}return{kind:"Array",start:e,end:th,values:t}}function TG(){switch(Ri){case"[":return yre();case"{":return bG();case"String":case"Number":case"Boolean":case"Null":var e=_G();return Ly(),e}Mu("Value")}function _G(){return{kind:Ri,start:nn,end:Qn,value:JSON.parse(ro.slice(nn,Qn))}}function Mu(e){if(Ri===e){Ly();return}var t;if(Ri==="EOF")t="[end of file]";else if(Qn-nn>1)t="`"+ro.slice(nn,Qn)+"`";else{var r=ro.slice(nn).match(/^.+?\b/);t="`"+(r?r[0]:ro[nn])+"`"}throw zc("Expected ".concat(e," but found ").concat(t,"."))}var EG=function(e){vre(t,e);function t(r,n){var i=e.call(this,r)||this;return i.position=n,i}return t}(Error);Bs.JSONSyntaxError=EG;function zc(e){return new EG(e,{start:nn,end:Qn})}function Cy(e){if(Ri===e)return Ly(),!0}function an(){return Qn31;)if(It===92)switch(It=an(),It){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:an();break;case 117:an(),Iy(),Iy(),Iy(),Iy();break;default:throw zc("Bad character escape sequence.")}else{if(Qn===xy)throw zc("Unterminated string.");an()}if(It===34){an();return}throw zc("Unterminated string.")}function Iy(){if(It>=48&&It<=57||It>=65&&It<=70||It>=97&&It<=102)return an();throw zc("Expected hexadecimal digit.")}function Tre(){It===45&&an(),It===48?an():Ew(),It===46&&(an(),Ew()),(It===69||It===101)&&(It=an(),(It===43||It===45)&&an(),Ew())}function Ew(){if(It<48||It>57)throw zc("Expected decimal digit.");do an();while(It>=48&&It<=57)}});var wG=G(ia=>{"use strict";var _re=ia&&ia.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ere=ia&&ia.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Sre=ia&&ia.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&_re(t,e,r);return Ere(t,e),t},kre=ia&&ia.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},Ore=ia&&ia.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ia,"__esModule",{value:!0});var wre=Ore(Wt()),Wc=ht(),kG=Sre(SG());wre.default.registerHelper("lint","graphql-variables",function(e,t,r){if(!e)return[];var n;try{n=(0,kG.default)(e)}catch(o){if(o instanceof kG.JSONSyntaxError)return[Sw(r,o.position,o.message)];throw o}var i=t.variableToType;return i?Nre(r,i,n):[]});function Nre(e,t,r){var n=[];return r.members.forEach(function(i){var o;if(i){var s=(o=i.key)===null||o===void 0?void 0:o.value,l=t[s];l?rh(l,i.value).forEach(function(d){var h=kre(d,2),v=h[0],y=h[1];n.push(Sw(e,v,y))}):n.push(Sw(e,i.key,'Variable "$'.concat(s,'" does not appear in any GraphQL query.')))}}),n}function rh(e,t){if(!e||!t)return[];if(e instanceof Wc.GraphQLNonNull)return t.kind==="Null"?[[t,'Type "'.concat(e,'" is non-nullable and cannot be null.')]]:rh(e.ofType,t);if(t.kind==="Null")return[];if(e instanceof Wc.GraphQLList){var r=e.ofType;if(t.kind==="Array"){var n=t.values||[];return OG(n,function(s){return rh(r,s)})}return rh(r,t)}if(e instanceof Wc.GraphQLInputObjectType){if(t.kind!=="Object")return[[t,'Type "'.concat(e,'" must be an Object.')]];var i=Object.create(null),o=OG(t.members,function(s){var l,d=(l=s==null?void 0:s.key)===null||l===void 0?void 0:l.value;i[d]=!0;var h=e.getFields()[d];if(!h)return[[s.key,'Type "'.concat(e,'" does not have a field "').concat(d,'".')]];var v=h?h.type:void 0;return rh(v,s.value)});return Object.keys(e.getFields()).forEach(function(s){if(!i[s]){var l=e.getFields()[s].type;l instanceof Wc.GraphQLNonNull&&o.push([t,'Object of type "'.concat(e,'" is missing required field "').concat(s,'".')])}}),o}return e.name==="Boolean"&&t.kind!=="Boolean"||e.name==="String"&&t.kind!=="String"||e.name==="ID"&&t.kind!=="Number"&&t.kind!=="String"||e.name==="Float"&&t.kind!=="Number"||e.name==="Int"&&(t.kind!=="Number"||(t.value|0)!==t.value)?[[t,'Expected value of type "'.concat(e,'".')]]:(e instanceof Wc.GraphQLEnumType||e instanceof Wc.GraphQLScalarType)&&(t.kind!=="String"&&t.kind!=="Number"&&t.kind!=="Boolean"&&t.kind!=="Null"||Dre(e.parseValue(t.value)))?[[t,'Expected value of type "'.concat(e,'".')]]:[]}function Sw(e,t,r){return{message:r,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function Dre(e){return e==null||e!==e}function OG(e,t){return Array.prototype.concat.apply([],e.map(t))}});var DG=G(Ay=>{"use strict";var xre=Ay&&Ay.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ay,"__esModule",{value:!0});var Cre=xre(Wt()),Or=Qc();Cre.default.defineMode("graphql-variables",function(e){var t=(0,Or.onlineParser)({eatWhitespace:function(r){return r.eatSpace()},lexRules:Ire,parseRules:Are,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Lre,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});function Lre(e,t){var r,n,i=e.levels,o=!i||i.length===0?e.indentLevel:i[i.length-1]-(((r=this.electricInput)===null||r===void 0?void 0:r.test(t))?1:0);return(o||0)*(((n=this.config)===null||n===void 0?void 0:n.indentUnit)||0)}var Ire={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/},Are={Document:[(0,Or.p)("{"),(0,Or.list)("Variable",(0,Or.opt)((0,Or.p)(","))),(0,Or.p)("}")],Variable:[NG("variable"),(0,Or.p)(":"),"Value"],Value:function(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,Or.t)("Number","number")],StringValue:[(0,Or.t)("String","string")],BooleanValue:[(0,Or.t)("Keyword","builtin")],NullValue:[(0,Or.t)("Keyword","keyword")],ListValue:[(0,Or.p)("["),(0,Or.list)("Value",(0,Or.opt)((0,Or.p)(","))),(0,Or.p)("]")],ObjectValue:[(0,Or.p)("{"),(0,Or.list)("ObjectField",(0,Or.opt)((0,Or.p)(","))),(0,Or.p)("}")],ObjectField:[NG("attribute"),(0,Or.p)(":"),"Value"]};function NG(e){return{style:e,match:function(t){return t.kind==="String"},update:function(t,r){t.name=r.value.slice(1,-1)}}}});var LG=G((xG,CG)=>{(function(e){typeof xG=="object"&&typeof CG=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";e.defineMode("javascript",function(t,r){var n=t.indentUnit,i=r.statementIndent,o=r.jsonld,s=r.json||o,l=r.trackScope!==!1,d=r.typescript,h=r.wordCharacters||/[\w$\xa1-\uffff]/,v=function(){function j(Pr){return{type:Pr,style:"keyword"}}var H=j("keyword a"),W=j("keyword b"),ie=j("keyword c"),We=j("keyword d"),vt=j("operator"),_t={type:"atom",style:"atom"};return{if:j("if"),while:H,with:H,else:W,do:W,try:W,finally:W,return:We,break:We,continue:We,new:j("new"),delete:ie,void:ie,throw:ie,debugger:j("debugger"),var:j("var"),const:j("var"),let:j("var"),function:j("function"),catch:j("catch"),for:j("for"),switch:j("switch"),case:j("case"),default:j("default"),in:vt,typeof:vt,instanceof:vt,true:_t,false:_t,null:_t,undefined:_t,NaN:_t,Infinity:_t,this:j("this"),class:j("class"),super:j("atom"),yield:ie,export:j("export"),import:j("import"),extends:ie,await:ie}}(),y=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function D(j){for(var H=!1,W,ie=!1;(W=j.next())!=null;){if(!H){if(W=="/"&&!ie)return;W=="["?ie=!0:ie&&W=="]"&&(ie=!1)}H=!H&&W=="\\"}}var _,k;function T(j,H,W){return _=j,k=W,H}function S(j,H){var W=j.next();if(W=='"'||W=="'")return H.tokenize=m(W),H.tokenize(j,H);if(W=="."&&j.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return T("number","number");if(W=="."&&j.match(".."))return T("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(W))return T(W);if(W=="="&&j.eat(">"))return T("=>","operator");if(W=="0"&&j.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return T("number","number");if(/\d/.test(W))return j.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),T("number","number");if(W=="/")return j.eat("*")?(H.tokenize=w,w(j,H)):j.eat("/")?(j.skipToEnd(),T("comment","comment")):wa(j,H,1)?(D(j),j.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),T("regexp","string-2")):(j.eat("="),T("operator","operator",j.current()));if(W=="`")return H.tokenize=x,x(j,H);if(W=="#"&&j.peek()=="!")return j.skipToEnd(),T("meta","meta");if(W=="#"&&j.eatWhile(h))return T("variable","property");if(W=="<"&&j.match("!--")||W=="-"&&j.match("->")&&!/\S/.test(j.string.slice(0,j.start)))return j.skipToEnd(),T("comment","comment");if(y.test(W))return(W!=">"||!H.lexical||H.lexical.type!=">")&&(j.eat("=")?(W=="!"||W=="=")&&j.eat("="):/[<>*+\-|&?]/.test(W)&&(j.eat(W),W==">"&&j.eat(W))),W=="?"&&j.eat(".")?T("."):T("operator","operator",j.current());if(h.test(W)){j.eatWhile(h);var ie=j.current();if(H.lastType!="."){if(v.propertyIsEnumerable(ie)){var We=v[ie];return T(We.type,We.style,ie)}if(ie=="async"&&j.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return T("async","keyword",ie)}return T("variable","variable",ie)}}function m(j){return function(H,W){var ie=!1,We;if(o&&H.peek()=="@"&&H.match(b))return W.tokenize=S,T("jsonld-keyword","meta");for(;(We=H.next())!=null&&!(We==j&&!ie);)ie=!ie&&We=="\\";return ie||(W.tokenize=S),T("string","string")}}function w(j,H){for(var W=!1,ie;ie=j.next();){if(ie=="/"&&W){H.tokenize=S;break}W=ie=="*"}return T("comment","comment")}function x(j,H){for(var W=!1,ie;(ie=j.next())!=null;){if(!W&&(ie=="`"||ie=="$"&&j.eat("{"))){H.tokenize=S;break}W=!W&&ie=="\\"}return T("quasi","string-2",j.current())}var L="([{}])";function O(j,H){H.fatArrowAt&&(H.fatArrowAt=null);var W=j.string.indexOf("=>",j.start);if(!(W<0)){if(d){var ie=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(j.string.slice(j.start,W));ie&&(W=ie.index)}for(var We=0,vt=!1,_t=W-1;_t>=0;--_t){var Pr=j.string.charAt(_t),Si=L.indexOf(Pr);if(Si>=0&&Si<3){if(!We){++_t;break}if(--We==0){Pr=="("&&(vt=!0);break}}else if(Si>=3&&Si<6)++We;else if(h.test(Pr))vt=!0;else if(/["'\/`]/.test(Pr))for(;;--_t){if(_t==0)return;var Ye=j.string.charAt(_t-1);if(Ye==Pr&&j.string.charAt(_t-2)!="\\"){_t--;break}}else if(vt&&!We){++_t;break}}vt&&!We&&(H.fatArrowAt=_t)}}var R={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function M(j,H,W,ie,We,vt){this.indented=j,this.column=H,this.type=W,this.prev=We,this.info=vt,ie!=null&&(this.align=ie)}function q(j,H){if(!l)return!1;for(var W=j.localVars;W;W=W.next)if(W.name==H)return!0;for(var ie=j.context;ie;ie=ie.prev)for(var W=ie.vars;W;W=W.next)if(W.name==H)return!0}function z(j,H,W,ie,We){var vt=j.cc;for(B.state=j,B.stream=We,B.marked=null,B.cc=vt,B.style=H,j.lexical.hasOwnProperty("align")||(j.lexical.align=!0);;){var _t=vt.length?vt.pop():s?Me:we;if(_t(W,ie)){for(;vt.length&&vt[vt.length-1].lex;)vt.pop()();return B.marked?B.marked:W=="variable"&&q(j,ie)?"variable-2":H}}}var B={state:null,column:null,marked:null,cc:null};function Q(){for(var j=arguments.length-1;j>=0;j--)B.cc.push(arguments[j])}function P(){return Q.apply(null,arguments),!0}function he(j,H){for(var W=H;W;W=W.next)if(W.name==j)return!0;return!1}function xe(j){var H=B.state;if(B.marked="def",!!l){if(H.context){if(H.lexical.info=="var"&&H.context&&H.context.block){var W=ge(j,H.context);if(W!=null){H.context=W;return}}else if(!he(j,H.localVars)){H.localVars=new He(j,H.localVars);return}}r.globalVars&&!he(j,H.globalVars)&&(H.globalVars=new He(j,H.globalVars))}}function ge(j,H){if(H)if(H.block){var W=ge(j,H.prev);return W?W==H.prev?H:new Le(W,H.vars,!0):null}else return he(j,H.vars)?H:new Le(H.prev,new He(j,H.vars),!1);else return null}function Fe(j){return j=="public"||j=="private"||j=="protected"||j=="abstract"||j=="readonly"}function Le(j,H,W){this.prev=j,this.vars=H,this.block=W}function He(j,H){this.name=j,this.next=H}var Xe=new He("this",new He("arguments",null));function Ve(){B.state.context=new Le(B.state.context,B.state.localVars,!1),B.state.localVars=Xe}function At(){B.state.context=new Le(B.state.context,B.state.localVars,!0),B.state.localVars=null}Ve.lex=At.lex=!0;function Ot(){B.state.localVars=B.state.context.vars,B.state.context=B.state.context.prev}Ot.lex=!0;function Ie(j,H){var W=function(){var ie=B.state,We=ie.indented;if(ie.lexical.type=="stat")We=ie.lexical.indented;else for(var vt=ie.lexical;vt&&vt.type==")"&&vt.align;vt=vt.prev)We=vt.indented;ie.lexical=new M(We,B.stream.column(),j,null,ie.lexical,H)};return W.lex=!0,W}function te(){var j=B.state;j.lexical.prev&&(j.lexical.type==")"&&(j.indented=j.lexical.indented),j.lexical=j.lexical.prev)}te.lex=!0;function ce(j){function H(W){return W==j?P():j==";"||W=="}"||W==")"||W=="]"?Q():P(H)}return H}function we(j,H){return j=="var"?P(Ie("vardef",H),J,ce(";"),te):j=="keyword a"?P(Ie("form"),ze,we,te):j=="keyword b"?P(Ie("form"),we,te):j=="keyword d"?B.stream.match(/^\s*$/,!1)?P():P(Ie("stat"),oe,ce(";"),te):j=="debugger"?P(ce(";")):j=="{"?P(Ie("}"),At,zn,te,Ot):j==";"?P():j=="if"?(B.state.lexical.info=="else"&&B.state.cc[B.state.cc.length-1]==te&&B.state.cc.pop()(),P(Ie("form"),ze,we,te,Ut)):j=="function"?P(jr):j=="for"?P(Ie("form"),At,Rt,we,Ot,te):j=="class"||d&&H=="interface"?(B.marked="keyword",P(Ie("form",j=="class"?j:H),ch,te)):j=="variable"?d&&H=="declare"?(B.marked="keyword",P(we)):d&&(H=="module"||H=="enum"||H=="type")&&B.stream.match(/^\s*\w/,!1)?(B.marked="keyword",H=="enum"?P(Xs):H=="type"?P(sa,ce("operator"),_e,ce(";")):P(Ie("form"),V,ce("{"),Ie("}"),zn,te,te)):d&&H=="namespace"?(B.marked="keyword",P(Ie("form"),Me,we,te)):d&&H=="abstract"?(B.marked="keyword",P(we)):P(Ie("stat"),dn):j=="switch"?P(Ie("form"),ze,ce("{"),Ie("}","switch"),At,zn,te,te,Ot):j=="case"?P(Me,ce(":")):j=="default"?P(ce(":")):j=="catch"?P(Ie("form"),Ve,ot,we,te,Ot):j=="export"?P(Ie("stat"),jo,te):j=="import"?P(Ie("stat"),ao,te):j=="async"?P(we):H=="@"?P(Me,we):Q(Ie("stat"),Me,ce(";"),te)}function ot(j){if(j=="(")return P(Cn,ce(")"))}function Me(j,H){return mt(j,H,!1)}function Qe(j,H){return mt(j,H,!0)}function ze(j){return j!="("?Q():P(Ie(")"),oe,ce(")"),te)}function mt(j,H,W){if(B.state.fatArrowAt==B.stream.start){var ie=W?ct:at;if(j=="(")return P(Ve,Ie(")"),Kt(Cn,")"),te,ce("=>"),ie,Ot);if(j=="variable")return Q(Ve,V,ce("=>"),ie,Ot)}var We=W?fe:me;return R.hasOwnProperty(j)?P(We):j=="function"?P(jr,We):j=="class"||d&&H=="interface"?(B.marked="keyword",P(Ie("form"),la,te)):j=="keyword c"||j=="async"?P(W?Qe:Me):j=="("?P(Ie(")"),oe,ce(")"),te,We):j=="operator"||j=="spread"?P(W?Qe:Me):j=="["?P(Ie("]"),oo,te,We):j=="{"?hn(pn,"}",null,We):j=="quasi"?Q(se,We):j=="new"?P(st(W)):P()}function oe(j){return j.match(/[;\}\)\],]/)?Q():Q(Me)}function me(j,H){return j==","?P(oe):fe(j,H,!1)}function fe(j,H,W){var ie=W==!1?me:fe,We=W==!1?Me:Qe;if(j=="=>")return P(Ve,W?ct:at,Ot);if(j=="operator")return/\+\+|--/.test(H)||d&&H=="!"?P(ie):d&&H=="<"&&B.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?P(Ie(">"),Kt(_e,">"),te,ie):H=="?"?P(Me,ce(":"),We):P(We);if(j=="quasi")return Q(se,ie);if(j!=";"){if(j=="(")return hn(Qe,")","call",ie);if(j==".")return P(Hn,ie);if(j=="[")return P(Ie("]"),oe,ce("]"),te,ie);if(d&&H=="as")return B.marked="keyword",P(_e,ie);if(j=="regexp")return B.state.lastType=B.marked="operator",B.stream.backUp(B.stream.pos-B.stream.start-1),P(We)}}function se(j,H){return j!="quasi"?Q():H.slice(H.length-2)!="${"?P(se):P(oe,Ue)}function Ue(j){if(j=="}")return B.marked="string-2",B.state.tokenize=x,P(se)}function at(j){return O(B.stream,B.state),Q(j=="{"?we:Me)}function ct(j){return O(B.stream,B.state),Q(j=="{"?we:Qe)}function st(j){return function(H){return H=="."?P(j?Ei:Dn):H=="variable"&&d?P(ee,j?fe:me):Q(j?Qe:Me)}}function Dn(j,H){if(H=="target")return B.marked="keyword",P(me)}function Ei(j,H){if(H=="target")return B.marked="keyword",P(fe)}function dn(j){return j==":"?P(te,we):Q(me,ce(";"),te)}function Hn(j){if(j=="variable")return B.marked="property",P()}function pn(j,H){if(j=="async")return B.marked="property",P(pn);if(j=="variable"||B.style=="keyword"){if(B.marked="property",H=="get"||H=="set")return P(Pi);var W;return d&&B.state.fatArrowAt==B.stream.start&&(W=B.stream.match(/^\s*:\s*/,!1))&&(B.state.fatArrowAt=B.stream.pos+W[0].length),P(Qr)}else{if(j=="number"||j=="string")return B.marked=o?"property":B.style+" property",P(Qr);if(j=="jsonld-keyword")return P(Qr);if(d&&Fe(H))return B.marked="keyword",P(pn);if(j=="[")return P(Me,vr,ce("]"),Qr);if(j=="spread")return P(Qe,Qr);if(H=="*")return B.marked="keyword",P(pn);if(j==":")return Q(Qr)}}function Pi(j){return j!="variable"?Q(Qr):(B.marked="property",P(jr))}function Qr(j){if(j==":")return P(Qe);if(j=="(")return Q(jr)}function Kt(j,H,W){function ie(We,vt){if(W?W.indexOf(We)>-1:We==","){var _t=B.state.lexical;return _t.info=="call"&&(_t.pos=(_t.pos||0)+1),P(function(Pr,Si){return Pr==H||Si==H?Q():Q(j)},ie)}return We==H||vt==H?P():W&&W.indexOf(";")>-1?Q(j):P(ce(H))}return function(We,vt){return We==H||vt==H?P():Q(j,ie)}}function hn(j,H,W){for(var ie=3;ie"),_e);if(j=="quasi")return Q(nr,un)}function Gu(j){if(j=="=>")return P(_e)}function Ar(j){return j.match(/[\}\)\]]/)?P():j==","||j==";"?P(Ar):Q(Ft,Ar)}function Ft(j,H){if(j=="variable"||B.style=="keyword")return B.marked="property",P(Ft);if(H=="?"||j=="number"||j=="string")return P(Ft);if(j==":")return P(_e);if(j=="[")return P(ce("variable"),Ro,ce("]"),Ft);if(j=="(")return Q(et,Ft);if(!j.match(/[;\}\)\],]/))return P()}function nr(j,H){return j!="quasi"?Q():H.slice(H.length-2)!="${"?P(nr):P(_e,Ys)}function Ys(j){if(j=="}")return B.marked="string-2",B.state.tokenize=x,P(nr)}function on(j,H){return j=="variable"&&B.stream.match(/^\s*[?:]/,!1)||H=="?"?P(on):j==":"?P(_e):j=="spread"?P(on):Q(_e)}function un(j,H){if(H=="<")return P(Ie(">"),Kt(_e,">"),te,un);if(H=="|"||j=="."||H=="&")return P(_e);if(j=="[")return P(_e,ce("]"),un);if(H=="extends"||H=="implements")return B.marked="keyword",P(_e);if(H=="?")return P(_e,ce(":"),_e)}function ee(j,H){if(H=="<")return P(Ie(">"),Kt(_e,">"),te,un)}function F(){return Q(_e,Y)}function Y(j,H){if(H=="=")return P(_e)}function J(j,H){return H=="enum"?(B.marked="keyword",P(Xs)):Q(V,vr,ue,Ze)}function V(j,H){if(d&&Fe(H))return B.marked="keyword",P(V);if(j=="variable")return xe(H),P();if(j=="spread")return P(V);if(j=="[")return hn(re,"]");if(j=="{")return hn(A,"}")}function A(j,H){return j=="variable"&&!B.stream.match(/^\s*:/,!1)?(xe(H),P(ue)):(j=="variable"&&(B.marked="property"),j=="spread"?P(V):j=="}"?Q():j=="["?P(Me,ce("]"),ce(":"),A):P(ce(":"),V,ue))}function re(){return Q(V,ue)}function ue(j,H){if(H=="=")return P(Qe)}function Ze(j){if(j==",")return P(J)}function Ut(j,H){if(j=="keyword b"&&H=="else")return P(Ie("form","else"),we,te)}function Rt(j,H){if(H=="await")return P(Rt);if(j=="(")return P(Ie(")"),vn,te)}function vn(j){return j=="var"?P(J,Rr):j=="variable"?P(Rr):Q(Rr)}function Rr(j,H){return j==")"?P():j==";"?P(Rr):H=="in"||H=="of"?(B.marked="keyword",P(Me,Rr)):Q(Me,Rr)}function jr(j,H){if(H=="*")return B.marked="keyword",P(jr);if(j=="variable")return xe(H),P(jr);if(j=="(")return P(Ve,Ie(")"),Kt(Cn,")"),te,xn,we,Ot);if(d&&H=="<")return P(Ie(">"),Kt(F,">"),te,jr)}function et(j,H){if(H=="*")return B.marked="keyword",P(et);if(j=="variable")return xe(H),P(et);if(j=="(")return P(Ve,Ie(")"),Kt(Cn,")"),te,xn,Ot);if(d&&H=="<")return P(Ie(">"),Kt(F,">"),te,et)}function sa(j,H){if(j=="keyword"||j=="variable")return B.marked="type",P(sa);if(H=="<")return P(Ie(">"),Kt(F,">"),te)}function Cn(j,H){return H=="@"&&P(Me,Cn),j=="spread"?P(Cn):d&&Fe(H)?(B.marked="keyword",P(Cn)):d&&j=="this"?P(vr,ue):Q(V,vr,ue)}function la(j,H){return j=="variable"?ch(j,H):Js(j,H)}function ch(j,H){if(j=="variable")return xe(H),P(Js)}function Js(j,H){if(H=="<")return P(Ie(">"),Kt(F,">"),te,Js);if(H=="extends"||H=="implements"||d&&j==",")return H=="implements"&&(B.marked="keyword"),P(d?_e:Me,Js);if(j=="{")return P(Ie("}"),ui,te)}function ui(j,H){if(j=="async"||j=="variable"&&(H=="static"||H=="get"||H=="set"||d&&Fe(H))&&B.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return B.marked="keyword",P(ui);if(j=="variable"||B.style=="keyword")return B.marked="property",P(io,ui);if(j=="number"||j=="string")return P(io,ui);if(j=="[")return P(Me,vr,ce("]"),io,ui);if(H=="*")return B.marked="keyword",P(ui);if(d&&j=="(")return Q(et,ui);if(j==";"||j==",")return P(ui);if(j=="}")return P();if(H=="@")return P(Me,ui)}function io(j,H){if(H=="!"||H=="?")return P(io);if(j==":")return P(_e,ue);if(H=="=")return P(Qe);var W=B.state.lexical.prev,ie=W&&W.info=="interface";return Q(ie?et:jr)}function jo(j,H){return H=="*"?(B.marked="keyword",P(Ae,ce(";"))):H=="default"?(B.marked="keyword",P(Me,ce(";"))):j=="{"?P(Kt(fh,"}"),Ae,ce(";")):Q(we)}function fh(j,H){if(H=="as")return B.marked="keyword",P(ce("variable"));if(j=="variable")return Q(Qe,fh)}function ao(j){return j=="string"?P():j=="("?Q(Me):j=="."?Q(me):Q(Po,nf,Ae)}function Po(j,H){return j=="{"?hn(Po,"}"):(j=="variable"&&xe(H),H=="*"&&(B.marked="keyword"),P(gr))}function nf(j){if(j==",")return P(Po,nf)}function gr(j,H){if(H=="as")return B.marked="keyword",P(Po)}function Ae(j,H){if(H=="from")return B.marked="keyword",P(Me)}function oo(j){return j=="]"?P():Q(Kt(Qe,"]"))}function Xs(){return Q(Ie("form"),V,ce("{"),Ie("}"),Kt(Fi,"}"),te,te)}function Fi(){return Q(V,ue)}function wt(j,H){return j.lastType=="operator"||j.lastType==","||y.test(H.charAt(0))||/[,.]/.test(H.charAt(0))}function wa(j,H,W){return H.tokenize==S&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(H.lastType)||H.lastType=="quasi"&&/\{\s*$/.test(j.string.slice(0,j.pos-(W||0)))}return{startState:function(j){var H={tokenize:S,lastType:"sof",cc:[],lexical:new M((j||0)-n,0,"block",!1),localVars:r.localVars,context:r.localVars&&new Le(null,null,!1),indented:j||0};return r.globalVars&&typeof r.globalVars=="object"&&(H.globalVars=r.globalVars),H},token:function(j,H){if(j.sol()&&(H.lexical.hasOwnProperty("align")||(H.lexical.align=!1),H.indented=j.indentation(),O(j,H)),H.tokenize!=w&&j.eatSpace())return null;var W=H.tokenize(j,H);return _=="comment"?W:(H.lastType=_=="operator"&&(k=="++"||k=="--")?"incdec":_,z(H,W,_,k,j))},indent:function(j,H){if(j.tokenize==w||j.tokenize==x)return e.Pass;if(j.tokenize!=S)return 0;var W=H&&H.charAt(0),ie=j.lexical,We;if(!/^\s*else\b/.test(H))for(var vt=j.cc.length-1;vt>=0;--vt){var _t=j.cc[vt];if(_t==te)ie=ie.prev;else if(_t!=Ut&&_t!=Ot)break}for(;(ie.type=="stat"||ie.type=="form")&&(W=="}"||(We=j.cc[j.cc.length-1])&&(We==me||We==fe)&&!/^[,\.=+\-*:?[\(]/.test(H));)ie=ie.prev;i&&ie.type==")"&&ie.prev.type=="stat"&&(ie=ie.prev);var Pr=ie.type,Si=W==Pr;return Pr=="vardef"?ie.indented+(j.lastType=="operator"||j.lastType==","?ie.info.length+1:0):Pr=="form"&&W=="{"?ie.indented:Pr=="form"?ie.indented+n:Pr=="stat"?ie.indented+(wt(j,H)?i||n:0):ie.info=="switch"&&!Si&&r.doubleIndentSwitch!=!1?ie.indented+(/^(?:case|default)\b/.test(H)?n:2*n):ie.align?ie.column+(Si?0:1):ie.indented+(Si?0:n)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:o,jsonMode:s,expressionAllowed:wa,skipExpression:function(j){z(j,"atom","atom","true",new e.StringStream("",2,null))}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var IG=G(jy=>{"use strict";var Vre=jy&&jy.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jy,"__esModule",{value:!0});var Ure=Vre(Wt()),Ir=Qc();Ure.default.defineMode("graphql-results",function(e){var t=(0,Ir.onlineParser)({eatWhitespace:function(r){return r.eatSpace()},lexRules:Qre,parseRules:Bre,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Gre,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});function Gre(e,t){var r,n,i=e.levels,o=!i||i.length===0?e.indentLevel:i[i.length-1]-(((r=this.electricInput)===null||r===void 0?void 0:r.test(t))?1:0);return(o||0)*(((n=this.config)===null||n===void 0?void 0:n.indentUnit)||0)}var Qre={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/},Bre={Document:[(0,Ir.p)("{"),(0,Ir.list)("Entry",(0,Ir.p)(",")),(0,Ir.p)("}")],Entry:[(0,Ir.t)("String","def"),(0,Ir.p)(":"),"Value"],Value:function(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,Ir.t)("Number","number")],StringValue:[(0,Ir.t)("String","string")],BooleanValue:[(0,Ir.t)("Keyword","builtin")],NullValue:[(0,Ir.t)("Keyword","keyword")],ListValue:[(0,Ir.p)("["),(0,Ir.list)("Value",(0,Ir.p)(",")),(0,Ir.p)("]")],ObjectValue:[(0,Ir.p)("{"),(0,Ir.list)("ObjectField",(0,Ir.p)(",")),(0,Ir.p)("}")],ObjectField:[(0,Ir.t)("String","property"),(0,Ir.p)(":"),"Value"]}});var ZG=G((Ufe,XG)=>{"use strict";XG.exports=function(t){return typeof t=="object"?t===null:typeof t!="function"}});var eQ=G((Gfe,$G)=>{"use strict";$G.exports=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}});var nQ=G((Qfe,rQ)=>{"use strict";var kne=eQ();function tQ(e){return kne(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}rQ.exports=function(t){var r,n;return!(tQ(t)===!1||(r=t.constructor,typeof r!="function")||(n=r.prototype,tQ(n)===!1)||n.hasOwnProperty("isPrototypeOf")===!1)}});var sQ=G((Bfe,uQ)=>{"use strict";var{deleteProperty:One}=Reflect,wne=ZG(),iQ=nQ(),aQ=e=>typeof e=="object"&&e!==null||typeof e=="function",Nne=e=>e==="__proto__"||e==="constructor"||e==="prototype",Kw=e=>{if(!wne(e))throw new TypeError("Object keys must be strings or symbols");if(Nne(e))throw new Error(`Cannot set unsafe key: "${e}"`)},Dne=e=>Array.isArray(e)?e.flat().map(String).join(","):e,xne=(e,t)=>{if(typeof e!="string"||!t)return e;let r=e+";";return t.arrays!==void 0&&(r+=`arrays=${t.arrays};`),t.separator!==void 0&&(r+=`separator=${t.separator};`),t.split!==void 0&&(r+=`split=${t.split};`),t.merge!==void 0&&(r+=`merge=${t.merge};`),t.preservePaths!==void 0&&(r+=`preservePaths=${t.preservePaths};`),r},Cne=(e,t,r)=>{let n=Dne(t?xne(e,t):e);Kw(n);let i=Hs.cache.get(n)||r();return Hs.cache.set(n,i),i},Lne=(e,t={})=>{let r=t.separator||".",n=r==="/"?!1:t.preservePaths;if(typeof e=="string"&&n!==!1&&/\//.test(e))return[e];let i=[],o="",s=l=>{let d;l.trim()!==""&&Number.isInteger(d=Number(l))?i.push(d):i.push(l)};for(let l=0;lt&&typeof t.split=="function"?t.split(e):typeof e=="symbol"?[e]:Array.isArray(e)?e:Cne(e,t,()=>Lne(e,t)),Ine=(e,t,r,n)=>{if(Kw(t),r===void 0)One(e,t);else if(n&&n.merge){let i=n.merge==="function"?n.merge:Object.assign;i&&iQ(e[t])&&iQ(r)?e[t]=i(e[t],r):e[t]=r}else e[t]=r;return e},Hs=(e,t,r,n)=>{if(!t||!aQ(e))return e;let i=oQ(t,n),o=e;for(let s=0;s{Hs.cache=new Map};uQ.exports=Hs});var CQ=G((Pde,xQ)=>{xQ.exports=Zc;function Zc(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Zc.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Zc.prototype.reset=function(){this.attempts=0};Zc.prototype.setMin=function(e){this.ms=e};Zc.prototype.setMax=function(e){this.max=e};Zc.prototype.setJitter=function(e){this.jitter=e}});var IQ=G((Fde,Jw)=>{"use strict";var Zne=Object.prototype.hasOwnProperty,ai="~";function lh(){}Object.create&&(lh.prototype=Object.create(null),new lh().__proto__||(ai=!1));function $ne(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function LQ(e,t,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var o=new $ne(r,n||e,i),s=ai?ai+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function zy(e,t){--e._eventsCount==0?e._events=new lh:delete e._events[t]}function Kn(){this._events=new lh,this._eventsCount=0}Kn.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)Zne.call(r,n)&&t.push(ai?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Kn.prototype.listeners=function(t){var r=ai?ai+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,s=new Array(o);i{"use strict";Object.defineProperty(Xw,"__esModule",{value:!0});function eie(e){return typeof e=="string"}Xw.default=eie});var RQ=G(Zw=>{"use strict";Object.defineProperty(Zw,"__esModule",{value:!0});function tie(e){return e!==null&&typeof e=="object"}Zw.default=tie});var jQ=G($w=>{"use strict";Object.defineProperty($w,"__esModule",{value:!0});$w.default=rie;function rie(e){var t,r=e.Symbol;return typeof r=="function"?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}});var PQ=G((eN,tN)=>{"use strict";Object.defineProperty(eN,"__esModule",{value:!0});var nie=jQ(),iie=aie(nie);function aie(e){return e&&e.__esModule?e:{default:e}}var $c;typeof self!="undefined"?$c=self:typeof window!="undefined"||typeof window!="undefined"?$c=window:typeof tN!="undefined"?$c=tN:$c=Function("return this")();var oie=(0,iie.default)($c);eN.default=oie});var FQ=G(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.GRAPHQL_SUBSCRIPTIONS=ef.GRAPHQL_WS=void 0;var uie="graphql-ws";ef.GRAPHQL_WS=uie;var sie="graphql-subscriptions";ef.GRAPHQL_SUBSCRIPTIONS=sie});var MQ=G(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.WS_TIMEOUT=tf.MIN_WS_TIMEOUT=void 0;var lie=1e3;tf.MIN_WS_TIMEOUT=lie;var cie=3e4;tf.WS_TIMEOUT=cie});var qQ=G(rN=>{"use strict";Object.defineProperty(rN,"__esModule",{value:!0});var fie=function(){function e(){throw new Error("Static Class")}return e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_CONNECTION_TERMINATE="connection_terminate",e.GQL_START="start",e.GQL_DATA="data",e.GQL_ERROR="error",e.GQL_COMPLETE="complete",e.GQL_STOP="stop",e.SUBSCRIPTION_START="subscription_start",e.SUBSCRIPTION_DATA="subscription_data",e.SUBSCRIPTION_SUCCESS="subscription_success",e.SUBSCRIPTION_FAIL="subscription_fail",e.SUBSCRIPTION_END="subscription_end",e.INIT="init",e.INIT_SUCCESS="init_success",e.INIT_FAIL="init_fail",e.KEEP_ALIVE="keepalive",e}();rN.default=fie});var KQ=G(ua=>{"use strict";var rf=ua&&ua.__assign||function(){return rf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0){var v=s.shift();v&&v.applyMiddleware.apply(l,[t,d])}else n(t)};d()};o(VQ(r.middlewares),r)})},e.prototype.use=function(t){var r=this;return t.map(function(n){if(typeof n.applyMiddleware=="function")r.middlewares.push(n);else throw new Error("Middleware must implement the applyMiddleware function.")}),this},e.prototype.getConnectionParams=function(t){return function(){return new Promise(function(r,n){if(typeof t=="function")try{return r(t.call(null))}catch(i){return n(i)}r(t)})}},e.prototype.executeOperation=function(t,r){var n=this;this.client===null&&this.connect();var i=this.generateOperationId();return this.operations[i]={options:t,handler:r},this.applyMiddlewares(t).then(function(o){n.checkOperationOptions(o,r),n.operations[i]&&(n.operations[i]={options:o,handler:r},n.sendMessage(i,oi.default.GQL_START,o))}).catch(function(o){n.unsubscribe(i),r(n.formatErrors(o))}),i},e.prototype.getObserver=function(t,r,n){return typeof t=="function"?{next:function(i){return t(i)},error:function(i){return r&&r(i)},complete:function(){return n&&n()}}:t},e.prototype.createMaxConnectTimeGenerator=function(){var t=this.minWsTimeout,r=this.wsTimeout;return new GQ({min:t,max:r,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&Object.keys(this.operations).length===0&&(this.inactivityTimeoutId=setTimeout(function(){Object.keys(t.operations).length===0&&t.close()},this.inactivityTimeout))},e.prototype.checkOperationOptions=function(t,r){var n=t.query,i=t.variables,o=t.operationName;if(!n)throw new Error("Must provide a query.");if(!r)throw new Error("Must provide an handler.");if(!QQ.default(n)&&!yie.getOperationAST(n,o)||o&&!QQ.default(o)||i&&!gie.default(i))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(t,r,n){var i=n&&n.query?rf(rf({},n),{query:typeof n.query=="string"?n.query:mie.print(n.query)}):n;return{id:t,type:r,payload:i}},e.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},e.prototype.sendMessage=function(t,r,n){this.sendMessageRaw(this.buildMessage(t,r,n))},e.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var r=JSON.stringify(t);try{JSON.parse(r)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(r);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var t=this;if(!(!this.reconnect||this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach(function(n){t.unsentMessagesQueue.push(t.buildMessage(n,oi.default.GQL_START,t.operations[n].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout();var r=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout(function(){t.connect()},r)}},e.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach(function(r){t.sendMessageRaw(r)}),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){if(this.wasKeepAliveReceived){this.wasKeepAliveReceived=!1;return}this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))},this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var t,r=this;this.client=new((t=this.wsImpl).bind.apply(t,VQ([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return die(r,void 0,void 0,function(){var n,i;return pie(this,function(o){switch(o.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return n=o.sent(),this.sendMessage(void 0,oi.default.GQL_CONNECTION_INIT,n),this.flushUnsentMessagesQueue(),[3,4];case 3:return i=o.sent(),this.sendMessage(void 0,oi.default.GQL_CONNECTION_ERROR,i),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){r.closedByUser||r.close(!1,!1)},this.client.onerror=function(n){r.eventEmitter.emit("error",n)},this.client.onmessage=function(n){var i=n.data;r.processReceivedData(i)}},e.prototype.processReceivedData=function(t){var r,n;try{r=JSON.parse(t),n=r.id}catch(l){throw new Error("Message must be JSON-parseable. Got: "+t)}if([oi.default.GQL_DATA,oi.default.GQL_COMPLETE,oi.default.GQL_ERROR].indexOf(r.type)!==-1&&!this.operations[n]){this.unsubscribe(n);return}switch(r.type){case oi.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(r.payload);break;case oi.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",r.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case oi.default.GQL_COMPLETE:var i=this.operations[n].handler;delete this.operations[n],i.call(this,null,null);break;case oi.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(r.payload),null),delete this.operations[n];break;case oi.default.GQL_DATA:var o=r.payload.errors?rf(rf({},r.payload),{errors:this.formatErrors(r.payload.errors)}):r.payload;this.operations[n].handler(null,o);break;case oi.default.GQL_CONNECTION_KEEP_ALIVE:var s=typeof this.wasKeepAliveReceived=="undefined";this.wasKeepAliveReceived=!0,s&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}},e.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,oi.default.GQL_STOP,void 0))},e}();ua.SubscriptionClient=_ie});var Eie=Ee(zt()),Sie=Ee(a_());var ut=Ee(zt()),ii=Ee(ht()),hQ=Ee(aP());var it=Ee(ht());"use strict";var oP;(function(e){function t(r){return typeof r=="string"}e.is=t})(oP||(oP={}));var Vk;(function(e){function t(r){return typeof r=="string"}e.is=t})(Vk||(Vk={}));var uP;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(uP||(uP={}));var Nm;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(Nm||(Nm={}));var ka;(function(e){function t(n,i){return n===Number.MAX_VALUE&&(n=Nm.MAX_VALUE),i===Number.MAX_VALUE&&(i=Nm.MAX_VALUE),{line:n,character:i}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ne.uinteger(i.line)&&ne.uinteger(i.character)}e.is=r})(ka||(ka={}));var Lr;(function(e){function t(n,i,o,s){if(ne.uinteger(n)&&ne.uinteger(i)&&ne.uinteger(o)&&ne.uinteger(s))return{start:ka.create(n,i),end:ka.create(o,s)};if(ka.is(n)&&ka.is(i))return{start:n,end:i};throw new Error("Range#create called with invalid arguments[".concat(n,", ").concat(i,", ").concat(o,", ").concat(s,"]"))}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ka.is(i.start)&&ka.is(i.end)}e.is=r})(Lr||(Lr={}));var Dm;(function(e){function t(n,i){return{uri:n,range:i}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&Lr.is(i.range)&&(ne.string(i.uri)||ne.undefined(i.uri))}e.is=r})(Dm||(Dm={}));var sP;(function(e){function t(n,i,o,s){return{targetUri:n,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&Lr.is(i.targetRange)&&ne.string(i.targetUri)&&Lr.is(i.targetSelectionRange)&&(Lr.is(i.originSelectionRange)||ne.undefined(i.originSelectionRange))}e.is=r})(sP||(sP={}));var Uk;(function(e){function t(n,i,o,s){return{red:n,green:i,blue:o,alpha:s}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ne.numberRange(i.red,0,1)&&ne.numberRange(i.green,0,1)&&ne.numberRange(i.blue,0,1)&&ne.numberRange(i.alpha,0,1)}e.is=r})(Uk||(Uk={}));var lP;(function(e){function t(n,i){return{range:n,color:i}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&Lr.is(i.range)&&Uk.is(i.color)}e.is=r})(lP||(lP={}));var cP;(function(e){function t(n,i,o){return{label:n,textEdit:i,additionalTextEdits:o}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ne.string(i.label)&&(ne.undefined(i.textEdit)||Co.is(i))&&(ne.undefined(i.additionalTextEdits)||ne.typedArray(i.additionalTextEdits,Co.is))}e.is=r})(cP||(cP={}));var fP;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(fP||(fP={}));var dP;(function(e){function t(n,i,o,s,l,d){var h={startLine:n,endLine:i};return ne.defined(o)&&(h.startCharacter=o),ne.defined(s)&&(h.endCharacter=s),ne.defined(l)&&(h.kind=l),ne.defined(d)&&(h.collapsedText=d),h}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ne.uinteger(i.startLine)&&ne.uinteger(i.startLine)&&(ne.undefined(i.startCharacter)||ne.uinteger(i.startCharacter))&&(ne.undefined(i.endCharacter)||ne.uinteger(i.endCharacter))&&(ne.undefined(i.kind)||ne.string(i.kind))}e.is=r})(dP||(dP={}));var Gk;(function(e){function t(n,i){return{location:n,message:i}}e.create=t;function r(n){var i=n;return ne.defined(i)&&Dm.is(i.location)&&ne.string(i.message)}e.is=r})(Gk||(Gk={}));var pP;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(pP||(pP={}));var hP;(function(e){e.Unnecessary=1,e.Deprecated=2})(hP||(hP={}));var vP;(function(e){function t(r){var n=r;return ne.objectLiteral(n)&&ne.string(n.href)}e.is=t})(vP||(vP={}));var xm;(function(e){function t(n,i,o,s,l,d){var h={range:n,message:i};return ne.defined(o)&&(h.severity=o),ne.defined(s)&&(h.code=s),ne.defined(l)&&(h.source=l),ne.defined(d)&&(h.relatedInformation=d),h}e.create=t;function r(n){var i,o=n;return ne.defined(o)&&Lr.is(o.range)&&ne.string(o.message)&&(ne.number(o.severity)||ne.undefined(o.severity))&&(ne.integer(o.code)||ne.string(o.code)||ne.undefined(o.code))&&(ne.undefined(o.codeDescription)||ne.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(ne.string(o.source)||ne.undefined(o.source))&&(ne.undefined(o.relatedInformation)||ne.typedArray(o.relatedInformation,Gk.is))}e.is=r})(xm||(xm={}));var Dc;(function(e){function t(n,i){for(var o=[],s=2;s0&&(l.arguments=o),l}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.string(i.title)&&ne.string(i.command)}e.is=r})(Dc||(Dc={}));var Co;(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function r(o,s){return{range:{start:o,end:o},newText:s}}e.insert=r;function n(o){return{range:o,newText:""}}e.del=n;function i(o){var s=o;return ne.objectLiteral(s)&&ne.string(s.newText)&&Lr.is(s.range)}e.is=i})(Co||(Co={}));var xc;(function(e){function t(n,i,o){var s={label:n};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ne.string(i.label)&&(ne.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(ne.string(i.description)||i.description===void 0)}e.is=r})(xc||(xc={}));var Vn;(function(e){function t(r){var n=r;return ne.string(n)}e.is=t})(Vn||(Vn={}));var Cu;(function(e){function t(o,s,l){return{range:o,newText:s,annotationId:l}}e.replace=t;function r(o,s,l){return{range:{start:o,end:o},newText:s,annotationId:l}}e.insert=r;function n(o,s){return{range:o,newText:"",annotationId:s}}e.del=n;function i(o){var s=o;return Co.is(s)&&(xc.is(s.annotationId)||Vn.is(s.annotationId))}e.is=i})(Cu||(Cu={}));var Cm;(function(e){function t(n,i){return{textDocument:n,edits:i}}e.create=t;function r(n){var i=n;return ne.defined(i)&&Im.is(i.textDocument)&&Array.isArray(i.edits)}e.is=r})(Cm||(Cm={}));var Dp;(function(e){function t(n,i,o){var s={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){var i=n;return i&&i.kind==="create"&&ne.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||ne.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ne.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Vn.is(i.annotationId))}e.is=r})(Dp||(Dp={}));var xp;(function(e){function t(n,i,o,s){var l={kind:"rename",oldUri:n,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(l.options=o),s!==void 0&&(l.annotationId=s),l}e.create=t;function r(n){var i=n;return i&&i.kind==="rename"&&ne.string(i.oldUri)&&ne.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||ne.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ne.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Vn.is(i.annotationId))}e.is=r})(xp||(xp={}));var Cp;(function(e){function t(n,i,o){var s={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){var i=n;return i&&i.kind==="delete"&&ne.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||ne.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||ne.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Vn.is(i.annotationId))}e.is=r})(Cp||(Cp={}));var Qk;(function(e){function t(r){var n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(function(i){return ne.string(i.kind)?Dp.is(i)||xp.is(i)||Cp.is(i):Cm.is(i)}))}e.is=t})(Qk||(Qk={}));var Lm=function(){function e(t,r){this.edits=t,this.changeAnnotations=r}return e.prototype.insert=function(t,r,n){var i,o;if(n===void 0?i=Co.insert(t,r):Vn.is(n)?(o=n,i=Cu.insert(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),i=Cu.insert(t,r,o)),this.edits.push(i),o!==void 0)return o},e.prototype.replace=function(t,r,n){var i,o;if(n===void 0?i=Co.replace(t,r):Vn.is(n)?(o=n,i=Cu.replace(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),i=Cu.replace(t,r,o)),this.edits.push(i),o!==void 0)return o},e.prototype.delete=function(t,r){var n,i;if(r===void 0?n=Co.del(t):Vn.is(r)?(i=r,n=Cu.del(t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=Cu.del(t,i)),this.edits.push(n),i!==void 0)return i},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),gP=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return 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(t,r){var n;if(Vn.is(t)?n=t:(n=this.nextId(),r=t),this._annotations[n]!==void 0)throw new Error("Id ".concat(n," is already in use."));if(r===void 0)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=r,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),eue=function(){function e(t){var r=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new gP(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(n){if(Cm.is(n)){var i=new Lm(n.edits,r._changeAnnotations);r._textEditChanges[n.textDocument.uri]=i}})):t.changes&&Object.keys(t.changes).forEach(function(n){var i=new Lm(t.changes[n]);r._textEditChanges[n]=i})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(t){if(Im.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r={uri:t.uri,version:t.version},n=this._textEditChanges[r.uri];if(!n){var i=[],o={textDocument:r,edits:i};this._workspaceEdit.documentChanges.push(o),n=new Lm(i,this._changeAnnotations),this._textEditChanges[r.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var n=this._textEditChanges[t];if(!n){var i=[];this._workspaceEdit.changes[t]=i,n=new Lm(i),this._textEditChanges[t]=n}return n}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new gP,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;xc.is(r)||Vn.is(r)?i=r:n=r;var o,s;if(i===void 0?o=Dp.create(t,n):(s=Vn.is(i)?i:this._changeAnnotations.manage(i),o=Dp.create(t,n,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},e.prototype.renameFile=function(t,r,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;xc.is(n)||Vn.is(n)?o=n:i=n;var s,l;if(o===void 0?s=xp.create(t,r,i):(l=Vn.is(o)?o:this._changeAnnotations.manage(o),s=xp.create(t,r,i,l)),this._workspaceEdit.documentChanges.push(s),l!==void 0)return l},e.prototype.deleteFile=function(t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;xc.is(r)||Vn.is(r)?i=r:n=r;var o,s;if(i===void 0?o=Cp.create(t,n):(s=Vn.is(i)?i:this._changeAnnotations.manage(i),o=Cp.create(t,n,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},e}();var mP;(function(e){function t(n){return{uri:n}}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.string(i.uri)}e.is=r})(mP||(mP={}));var yP;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.string(i.uri)&&ne.integer(i.version)}e.is=r})(yP||(yP={}));var Im;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.string(i.uri)&&(i.version===null||ne.integer(i.version))}e.is=r})(Im||(Im={}));var bP;(function(e){function t(n,i,o,s){return{uri:n,languageId:i,version:o,text:s}}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.string(i.uri)&&ne.string(i.languageId)&&ne.integer(i.version)&&ne.string(i.text)}e.is=r})(bP||(bP={}));var Bk;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){var n=r;return n===e.PlainText||n===e.Markdown}e.is=t})(Bk||(Bk={}));var Lp;(function(e){function t(r){var n=r;return ne.objectLiteral(r)&&Bk.is(n.kind)&&ne.string(n.value)}e.is=t})(Lp||(Lp={}));var TP;(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})(TP||(TP={}));var Am;(function(e){e.PlainText=1,e.Snippet=2})(Am||(Am={}));var _P;(function(e){e.Deprecated=1})(_P||(_P={}));var EP;(function(e){function t(n,i,o){return{newText:n,insert:i,replace:o}}e.create=t;function r(n){var i=n;return i&&ne.string(i.newText)&&Lr.is(i.insert)&&Lr.is(i.replace)}e.is=r})(EP||(EP={}));var SP;(function(e){e.asIs=1,e.adjustIndentation=2})(SP||(SP={}));var kP;(function(e){function t(r){var n=r;return n&&(ne.string(n.detail)||n.detail===void 0)&&(ne.string(n.description)||n.description===void 0)}e.is=t})(kP||(kP={}));var OP;(function(e){function t(r){return{label:r}}e.create=t})(OP||(OP={}));var wP;(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}e.create=t})(wP||(wP={}));var Rm;(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(n){var i=n;return ne.string(i)||ne.objectLiteral(i)&&ne.string(i.language)&&ne.string(i.value)}e.is=r})(Rm||(Rm={}));var NP;(function(e){function t(r){var n=r;return!!n&&ne.objectLiteral(n)&&(Lp.is(n.contents)||Rm.is(n.contents)||ne.typedArray(n.contents,Rm.is))&&(r.range===void 0||Lr.is(r.range))}e.is=t})(NP||(NP={}));var DP;(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}e.create=t})(DP||(DP={}));var xP;(function(e){function t(r,n){for(var i=[],o=2;o=0;v--){var y=d[v],b=o.offsetAt(y.range.start),D=o.offsetAt(y.range.end);if(D<=h)l=l.substring(0,b)+y.newText+l.substring(D,l.length);else throw new Error("Overlapping edit");h=b}return l}e.applyEdits=n;function i(o,s){if(o.length<=1)return o;var l=o.length/2|0,d=o.slice(0,l),h=o.slice(l);i(d,s),i(h,s);for(var v=0,y=0,b=0;v0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return ka.create(0,t);for(;nt?i=o:n=o+1}var s=n-1;return ka.create(s,t-r[s])},e.prototype.offsetAt=function(t){var r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;var n=r[t.line],i=t.line+1{let i=!1;return r&&(i=r(n)),i&&t.every(o=>o.match&&!o.match(n))},e}function Cc(e,t){return{style:t,match:r=>r.kind===e}}function nt(e,t){return{style:t||"punctuation",match:r=>r.kind==="Punctuation"&&r.value===e}}var Un=Ee(ht());var Wk={Document:[gt("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return Un.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:[Sn("query"),hr(er("def")),hr("VariableDefinitions"),gt("Directive"),"SelectionSet"],Mutation:[Sn("mutation"),hr(er("def")),hr("VariableDefinitions"),gt("Directive"),"SelectionSet"],Subscription:[Sn("subscription"),hr(er("def")),hr("VariableDefinitions"),gt("Directive"),"SelectionSet"],VariableDefinitions:[nt("("),gt("VariableDefinition"),nt(")")],VariableDefinition:["Variable",nt(":"),"Type",hr("DefaultValue")],Variable:[nt("$","variable"),er("variable")],DefaultValue:[nt("="),"Value"],SelectionSet:[nt("{"),gt("Selection"),nt("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[er("property"),nt(":"),er("qualifier"),hr("Arguments"),gt("Directive"),hr("SelectionSet")],Field:[er("property"),hr("Arguments"),gt("Directive"),hr("SelectionSet")],Arguments:[nt("("),gt("Argument"),nt(")")],Argument:[er("attribute"),nt(":"),"Value"],FragmentSpread:[nt("..."),er("def"),gt("Directive")],InlineFragment:[nt("..."),hr("TypeCondition"),gt("Directive"),"SelectionSet"],FragmentDefinition:[Sn("fragment"),hr(zk(er("def"),[Sn("on")])),"TypeCondition",gt("Directive"),"SelectionSet"],TypeCondition:[Sn("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 e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[Cc("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Cc("Name","builtin")],NullValue:[Cc("Name","keyword")],EnumValue:[er("string-2")],ListValue:[nt("["),gt("Value"),nt("]")],ObjectValue:[nt("{"),gt("ObjectField"),nt("}")],ObjectField:[er("attribute"),nt(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[nt("["),"Type",nt("]"),hr(nt("!"))],NonNullType:["NamedType",hr(nt("!"))],NamedType:[lX("atom")],Directive:[nt("@","meta"),er("meta"),hr("Arguments")],DirectiveDef:[Sn("directive"),nt("@","meta"),er("meta"),hr("ArgumentsDef"),Sn("on"),gt("DirectiveLocation",nt("|"))],InterfaceDef:[Sn("interface"),er("atom"),hr("Implements"),gt("Directive"),nt("{"),gt("FieldDef"),nt("}")],Implements:[Sn("implements"),gt("NamedType",nt("&"))],DirectiveLocation:[er("string-2")],SchemaDef:[Sn("schema"),gt("Directive"),nt("{"),gt("OperationTypeDef"),nt("}")],OperationTypeDef:[er("keyword"),nt(":"),er("atom")],ScalarDef:[Sn("scalar"),er("atom"),gt("Directive")],ObjectTypeDef:[Sn("type"),er("atom"),hr("Implements"),gt("Directive"),nt("{"),gt("FieldDef"),nt("}")],FieldDef:[er("property"),hr("ArgumentsDef"),nt(":"),"Type",gt("Directive")],ArgumentsDef:[nt("("),gt("InputValueDef"),nt(")")],InputValueDef:[er("attribute"),nt(":"),"Type",hr("DefaultValue"),gt("Directive")],UnionDef:[Sn("union"),er("atom"),gt("Directive"),nt("="),gt("UnionMember",nt("|"))],UnionMember:["NamedType"],EnumDef:[Sn("enum"),er("atom"),gt("Directive"),nt("{"),gt("EnumValueDef"),nt("}")],EnumValueDef:[er("string-2"),gt("Directive")],InputDef:[Sn("input"),er("atom"),gt("Directive"),nt("{"),gt("InputValueDef"),nt("}")],ExtendDef:[Sn("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return Un.Kind.SCHEMA_EXTENSION;case"scalar":return Un.Kind.SCALAR_TYPE_EXTENSION;case"type":return Un.Kind.OBJECT_TYPE_EXTENSION;case"interface":return Un.Kind.INTERFACE_TYPE_EXTENSION;case"union":return Un.Kind.UNION_TYPE_EXTENSION;case"enum":return Un.Kind.ENUM_TYPE_EXTENSION;case"input":return Un.Kind.INPUT_OBJECT_TYPE_EXTENSION}},[Un.Kind.SCHEMA_EXTENSION]:["SchemaDef"],[Un.Kind.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[Un.Kind.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[Un.Kind.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[Un.Kind.UNION_TYPE_EXTENSION]:["UnionDef"],[Un.Kind.ENUM_TYPE_EXTENSION]:["EnumDef"],[Un.Kind.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function Sn(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function er(e){return{style:e,match:t=>t.kind==="Name",update(t,r){t.name=r.value}}}function lX(e){return{style:e,match:t=>t.kind==="Name",update(t,r){var n;((n=t.prevState)===null||n===void 0?void 0:n.prevState)&&(t.name=r.value,t.prevState.prevState.type=r.value)}}}var rF=Ee(ht()),cX={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",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"},nF=Object.assign(Object.assign({},rF.Kind),cX);var Sue=[it.Kind.SCHEMA_DEFINITION,it.Kind.OPERATION_TYPE_DEFINITION,it.Kind.SCALAR_TYPE_DEFINITION,it.Kind.OBJECT_TYPE_DEFINITION,it.Kind.INTERFACE_TYPE_DEFINITION,it.Kind.UNION_TYPE_DEFINITION,it.Kind.ENUM_TYPE_DEFINITION,it.Kind.INPUT_OBJECT_TYPE_DEFINITION,it.Kind.DIRECTIVE_DEFINITION,it.Kind.SCHEMA_EXTENSION,it.Kind.SCALAR_TYPE_EXTENSION,it.Kind.OBJECT_TYPE_EXTENSION,it.Kind.INTERFACE_TYPE_EXTENSION,it.Kind.UNION_TYPE_EXTENSION,it.Kind.ENUM_TYPE_EXTENSION,it.Kind.INPUT_OBJECT_TYPE_EXTENSION];var iF;(function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE"})(iF||(iF={}));var Mm=Ee(ht()),Zk=Ee(Xk());var qm=(e,t)=>{if(!t)return[];let r=new Map,n=new Set;(0,Mm.visit)(e,{FragmentDefinition(s){r.set(s.name.value,!0)},FragmentSpread(s){n.has(s.name.value)||n.add(s.name.value)}});let i=new Set;for(let s of n)!r.has(s)&&t.has(s)&&i.add((0,Zk.default)(t.get(s)));let o=[];for(let s of i)(0,Mm.visit)(s,{FragmentSpread(l){!n.has(l.name.value)&&t.get(l.name.value)&&(i.add((0,Zk.default)(t.get(l.name.value))),n.add(l.name.value))}}),r.has(s.name.value)||o.push(s);return o};var Lc=Ee(ht());function Vm(e,t){let r=Object.create(null);for(let n of t.definitions)if(n.kind==="OperationDefinition"){let{variableDefinitions:i}=n;if(i)for(let{variable:o,type:s}of i){let l=(0,Lc.typeFromAST)(e,s);l?r[o.name.value]=l:s.kind===Lc.Kind.NAMED_TYPE&&s.name.value==="Float"&&(r[o.name.value]=Lc.GraphQLFloat)}}return r}var Um=Ee(ht());function $k(e,t){let r=t?Vm(t,e):void 0,n=[];return(0,Um.visit)(e,{OperationDefinition(i){n.push(i)}}),{variableToType:r,operations:n}}function js(e,t){if(!!t)try{let r=(0,Um.parse)(t);return Object.assign(Object.assign({},$k(r,e)),{documentAST:r})}catch(r){return}}var Ip={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},bX={[Ip.Error]:1,[Ip.Warning]:2,[Ip.Information]:3,[Ip.Hint]:4};var Lo=Ee(zt()),kX=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),lF=function(e){kX(t,e);function t(r){var n=e.call(this,r)||this;return n._onClick=function(){n.props.isRunning?n.props.onStop():n.props.onRun()},n._onOptionSelected=function(i){n.setState({optionsOpen:!1}),n.props.onRun(i.name&&i.name.value)},n._onOptionsOpen=function(i){var o=!0,s=i.currentTarget;n.setState({highlight:null,optionsOpen:!0});var l=function(d){var h;if(o&&d.target===s)o=!1;else{document.removeEventListener("mouseup",l),l=null;var v=d.currentTarget&&((h=s.parentNode)===null||h===void 0?void 0:h.compareDocumentPosition(d.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY;v||n.setState({optionsOpen:!1})}};document.addEventListener("mouseup",l)},n.state={optionsOpen:!1,highlight:null},n}return t.prototype.render=function(){var r=this,n=this.props.operations||[],i=this.state.optionsOpen,o=n&&n.length>1,s=null;if(o&&i){var l=this.state.highlight;s=Lo.default.createElement("ul",{className:"execute-options"},n.map(function(y,b){var D=y.name?y.name.value:"";return Lo.default.createElement("li",{key:D+"-"+b,className:y===l?"selected":void 0,onMouseOver:function(){return r.setState({highlight:y})},onMouseOut:function(){return r.setState({highlight:null})},onMouseUp:function(){return r._onOptionSelected(y)}},D)}))}var d;(this.props.isRunning||!o)&&(d=this._onClick);var h=function(){};!this.props.isRunning&&o&&!i&&(h=this._onOptionsOpen);var v=this.props.isRunning?Lo.default.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):Lo.default.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return Lo.default.createElement("div",{className:"execute-button-wrap"},Lo.default.createElement("button",{type:"button",className:"execute-button",onMouseDown:h,onClick:d,title:"Execute Query (Ctrl-Enter)"},Lo.default.createElement("svg",{width:"34",height:"34"},v)),s)},t}(Lo.default.Component);var Ap=Ee(zt()),OX=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();function cF(e){if(e.type==="string"){var t=e.string.slice(1).slice(0,-1).trim();try{var r=window.location;return new URL(t,r.protocol+"//"+r.host)}catch(n){return}}}function wX(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}var fF=function(e){OX(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._node=null,r.state={width:null,height:null,src:null,mime:null},r}return t.shouldRender=function(r){var n=cF(r);return n?wX(n):!1},t.prototype.componentDidMount=function(){this._updateMetadata()},t.prototype.componentDidUpdate=function(){this._updateMetadata()},t.prototype.render=function(){var r=this,n,i=null;if(this.state.width!==null&&this.state.height!==null){var o=this.state.width+"x"+this.state.height;this.state.mime!==null&&(o+=" "+this.state.mime),i=Ap.default.createElement("div",null,o)}return Ap.default.createElement("div",null,Ap.default.createElement("img",{onLoad:function(){return r._updateMetadata()},ref:function(s){r._node=s},src:(n=cF(this.props.token))===null||n===void 0?void 0:n.href}),i)},t.prototype._updateMetadata=function(){var r=this;if(!!this._node){var n=this._node.naturalWidth,i=this._node.naturalHeight,o=this._node.src;o!==this.state.src&&(this.setState({src:o}),fetch(o,{method:"HEAD"}).then(function(s){r.setState({mime:s.headers.get("Content-Type")})})),(n!==this.state.width||i!==this.state.height)&&this.setState({height:i,width:n})}},t}(Ap.default.Component);var tO=Ee(zt()),NX=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Lu=function(e){NX(t,e);function t(r){var n=e.call(this,r)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(i){n.setState({error:i})}},n.state={error:null},n}return t.prototype.render=function(){var r=this.state.error;return tO.default.createElement("button",{className:"toolbar-button"+(r?" error":""),onClick:this.handleClick,title:r?r.message:this.props.title,"aria-invalid":r?"true":"false"},this.props.label)},t}(tO.default.Component);var dF=Ee(zt());function rO(e){var t=e.children;return dF.default.createElement("div",{className:"toolbar-button-group"},t)}var Ps=Ee(zt()),DX=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),nO=function(e){DX(t,e);function t(r){var n=e.call(this,r)||this;return n._node=null,n._listener=null,n.handleOpen=function(i){aO(i),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var r=this,n=this.state.visible;return Ps.default.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:aO,ref:function(i){i&&(r._node=i)},title:this.props.title},this.props.label,Ps.default.createElement("svg",{width:"14",height:"8"},Ps.default.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),Ps.default.createElement("ul",{className:"toolbar-menu-items"+(n?" open":"")},this.props.children))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(r){this._node!==r.target&&(r.preventDefault(),this.setState({visible:!1}),this._release())},t}(Ps.default.Component);var iO=function(e){var t=e.onSelect,r=e.title,n=e.label;return Ps.default.createElement("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:aO,onMouseUp:t,title:r},n)};function aO(e){e.preventDefault()}var yw=Ee(zt()),vG=Ee(ry());var U$=Array.from({length:11},function(e,t){return String.fromCharCode(8192+t)}).concat(["\u2028","\u2029","\u202F","\xA0"]),G$=new RegExp("["+U$.join("")+"]","g");function mV(e){return e.replace(G$," ")}var ny=Ee(ht()),TV=Ee(bV()),_V=Ee(ry()),EV=new _V.default;function Iu(e,t,r){Promise.resolve().then(()=>Ee(Wt())).then(function(n){var i=n.default,o,s;i.on(t,"select",function(l,d){if(!o){var h=d.parentNode;o=document.createElement("div"),o.className="CodeMirror-hint-information",h.appendChild(o),s=document.createElement("div"),s.className="CodeMirror-hint-deprecation",h.appendChild(s);var v;h.addEventListener("DOMNodeRemoved",v=function(_){_.target===h&&(h.removeEventListener("DOMNodeRemoved",v),o=null,s=null,v=null)})}var y=l.description?EV.render(l.description):"Self descriptive.",b=l.type?''+RO(l.type)+"":"";if(o.innerHTML='
'+(y.slice(0,3)==="

"?"

"+b+y.slice(3):b+y)+"

",l&&s&&l.deprecationReason){var D=l.deprecationReason?EV.render(l.deprecationReason):"";s.innerHTML='Deprecated'+D,s.style.display="block"}else s&&(s.style.display="none");r&&r(o)})})}function RO(e){return e instanceof ny.GraphQLNonNull?RO(e.ofType)+"!":e instanceof ny.GraphQLList?"["+RO(e.ofType)+"]":''+(0,TV.default)(e.name)+""}var Io,SV=!1;typeof window=="object"&&(SV=window.navigator.platform==="MacIntel");var K$=(Io={},Io[SV?"Cmd-F":"Ctrl-F"]="findPersistent",Io["Cmd-G"]="findPersistent",Io["Ctrl-G"]="findPersistent",Io["Ctrl-Left"]="goSubwordLeft",Io["Ctrl-Right"]="goSubwordRight",Io["Alt-Left"]="goGroupLeft",Io["Alt-Right"]="goGroupRight",Io),Au=K$;var H$=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(v){try{h(n.next(v))}catch(y){s(y)}}function d(v){try{h(n.throw(v))}catch(y){s(y)}}function h(v){v.done?o(v.value):i(v.value).then(l,d)}h((n=n.apply(e,t||[])).next())})},z$=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(v){return d([h,v])}}function d(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,i=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]Ee(jO())),Promise.resolve().then(()=>Ee(PO())),Promise.resolve().then(()=>Ee(CV())),Promise.resolve().then(()=>Ee(FO())),Promise.resolve().then(()=>Ee(MO())),Promise.resolve().then(()=>Ee(VV())),Promise.resolve().then(()=>Ee(qp())),Promise.resolve().then(()=>Ee(qO())),Promise.resolve().then(()=>Ee(Vp())),Promise.resolve().then(()=>Ee(VO()))];function Ru(e,t){return H$(this,void 0,void 0,function(){var r,n;return z$(this,function(i){switch(i.label){case 0:return[4,Promise.resolve().then(()=>Ee(Wt()))];case 1:return r=i.sent().default,n=(t==null?void 0:t.useCommonAddons)===!1?e:W$.concat(e),[4,Promise.all(n.map(function(o){return o}))];case 2:return i.sent(),[2,r]}})})}var nre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Oy=function(){return Oy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]Ee(XV())),Promise.resolve().then(()=>Ee(UO())),Promise.resolve().then(()=>Ee(YU())),Promise.resolve().then(()=>Ee(XU())),Promise.resolve().then(()=>Ee(aG())),Promise.resolve().then(()=>Ee(cG())),Promise.resolve().then(()=>Ee(hG()))]},n._onKeyUp=function(i,o){ure.test(o.key)&&n.editor&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.ignoreChangeEvent&&n.editor&&(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(i,o){Iu(i,o,n.props.onHintInformationRender)},n.cachedValue=r.value||"",n}return t.prototype.componentDidMount=function(){var r=this;this.initializeEditor().then(function(n){n&&(n.on("change",r._onEdit),n.on("keyup",r._onKeyUp),n.on("hasCompletion",r._onHasCompletion),n.on("beforeChange",r._onBeforeChange))}).catch(console.error)},t.prototype.componentDidUpdate=function(r){this.ignoreChangeEvent=!0;var n=!1;this.props.schema!==r.schema&&this.editor&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,n=!0),this.props.externalFragments!==r.externalFragments&&this.editor&&(this.editor.options.lint.externalFragments=this.props.externalFragments,this.editor.options.hintOptions.externalFragments=this.props.externalFragments,n=!0),n&&this.CodeMirror.signal(this.editor,"change",this.editor),this.props.value!==r.value&&this.props.value!==this.cachedValue&&this.editor&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),this.ignoreChangeEvent=!1},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion))},t.prototype.render=function(){var r=this;return yw.default.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:function(n){r._node=n}})},t.prototype.initializeEditor=function(){var r,n,i,o;return ire(this,void 0,void 0,function(){var s,l,d,h=this;return are(this,function(v){switch(v.label){case 0:return l=this,[4,Ru(this.addonModules())];case 1:return s=l.CodeMirror=v.sent(),d=this.editor=s(this._node,{value:(r=this.props.value)!==null&&r!==void 0?r:"",lineNumbers:!0,tabSize:2,foldGutter:{minFoldSize:4},mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,lint:{schema:this.props.schema,validationRules:(n=this.props.validationRules)!==null&&n!==void 0?n:null,externalFragments:(i=this.props)===null||i===void 0?void 0:i.externalFragments},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1,container:this._node,externalFragments:(o=this.props)===null||o===void 0?void 0:o.externalFragments},info:{schema:this.props.schema,renderDescription:function(y){return ore.render(y)},onClick:function(y){return h.props.onClickReference&&h.props.onClickReference(y)}},jump:{schema:this.props.schema,onClick:function(y){return h.props.onClickReference&&h.props.onClickReference(y)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Oy(Oy({"Cmd-Space":function(){return d.showHint({completeSingle:!0,container:h._node})},"Ctrl-Space":function(){return d.showHint({completeSingle:!0,container:h._node})},"Alt-Space":function(){return d.showHint({completeSingle:!0,container:h._node})},"Shift-Space":function(){return d.showHint({completeSingle:!0,container:h._node})},"Shift-Alt-Space":function(){return d.showHint({completeSingle:!0,container:h._node})},"Cmd-Enter":function(){h.props.onRunQuery&&h.props.onRunQuery()},"Ctrl-Enter":function(){h.props.onRunQuery&&h.props.onRunQuery()},"Shift-Ctrl-C":function(){h.props.onCopyQuery&&h.props.onCopyQuery()},"Shift-Ctrl-P":function(){h.props.onPrettifyQuery&&h.props.onPrettifyQuery()},"Shift-Ctrl-F":function(){h.props.onPrettifyQuery&&h.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){h.props.onMergeQuery&&h.props.onMergeQuery()}},Au),{"Cmd-S":function(){h.props.onRunQuery},"Ctrl-S":function(){h.props.onRunQuery}})}),[2,d]}})})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t.prototype._onBeforeChange=function(r,n){if(n.origin==="paste"){var i=n.text.map(mV);n.update(n.from,n.to,i)}},t}(yw.default.Component);var Ow=Ee(zt());var Rre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),kw=function(){return kw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]Ee(yG())),Promise.resolve().then(()=>Ee(wG())),Promise.resolve().then(()=>Ee(DG()))]},n._onKeyUp=function(i,o){var s=o.keyCode;!n.editor||(s>=65&&s<=90||!o.shiftKey&&s>=48&&s<=57||o.shiftKey&&s===189||o.shiftKey&&s===222)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.editor||n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(i,o){Iu(i,o,n.props.onHintInformationRender)},n.cachedValue=r.value||"",n}return t.prototype.componentDidMount=function(){var r=this;this.initializeEditor().then(function(n){n.on("change",r._onEdit),n.on("keyup",r._onKeyUp),n.on("hasCompletion",r._onHasCompletion)}).catch(console.error)},t.prototype.componentDidUpdate=function(r){if(!!this.editor&&!!this.CodeMirror){if(this.ignoreChangeEvent=!0,this.props.variableToType!==r.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,this.CodeMirror.signal(this.editor,"change",this.editor)),this.props.value!==r.value&&this.props.value!==this.cachedValue){var n=this.props.value||"";this.cachedValue=n,this.editor.setValue(n)}this.ignoreChangeEvent=!1}},t.prototype.componentWillUnmount=function(){!this.editor||(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},t.prototype.render=function(){var r=this;return Ow.default.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(n){r._node=n}})},t.prototype.initializeEditor=function(){return jre(this,void 0,void 0,function(){var r,n,i=this;return Pre(this,function(o){switch(o.label){case 0:return r=this,[4,Ru(this.addonModules())];case 1:return r.CodeMirror=o.sent(),n=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1,container:this._node},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:kw({"Cmd-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Ctrl-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Alt-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Shift-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Cmd-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Ctrl-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Shift-Ctrl-P":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){i.props.onMergeQuery&&i.props.onMergeQuery()}},Au)}),[2,n]}})})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(Ow.default.Component);var Nw=Ee(zt());var Fre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ww=function(){return ww=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]Ee(LG()))]},n._onKeyUp=function(i,o){var s=o.keyCode;!n.editor||(s>=65&&s<=90||!o.shiftKey&&s>=48&&s<=57||o.shiftKey&&s===189||o.shiftKey&&s===222)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.editor||n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(i,o){Iu(i,o,n.props.onHintInformationRender)},n.cachedValue=r.value||"",n}return t.prototype.componentDidMount=function(){var r=this;this.initializeEditor().then(function(n){n.on("change",r._onEdit),n.on("keyup",r._onKeyUp),n.on("hasCompletion",r._onHasCompletion)}).catch(console.error)},t.prototype.componentDidUpdate=function(r){if(!!this.editor){if(this.ignoreChangeEvent=!0,this.props.value!==r.value&&this.props.value!==this.cachedValue){var n=this.props.value||"";this.cachedValue=n,this.editor.setValue(n)}this.ignoreChangeEvent=!1}},t.prototype.componentWillUnmount=function(){!this.editor||(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},t.prototype.render=function(){var r=this;return Nw.default.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(n){r._node=n}})},t.prototype.initializeEditor=function(){return Mre(this,void 0,void 0,function(){var r,n,i=this;return qre(this,function(o){switch(o.label){case 0:return r=this,[4,Ru(this.addonModules())];case 1:return r.CodeMirror=o.sent(),n=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,foldGutter:{minFoldSize:4},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:ww({"Cmd-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Ctrl-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Alt-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Shift-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Cmd-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Ctrl-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Shift-Ctrl-P":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){i.props.onMergeQuery&&i.props.onMergeQuery()}},Au)}),[2,n]}})})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(Nw.default.Component);var Yc=Ee(zt()),xw=Ee(a_());var Kre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Hre=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(v){try{h(n.next(v))}catch(y){s(y)}}function d(v){try{h(n.throw(v))}catch(y){s(y)}}function h(v){v.done?o(v.value):i(v.value).then(l,d)}h((n=n.apply(e,t||[])).next())})},zre=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(v){return d([h,v])}}function d(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,i=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]Ee(MO())),Promise.resolve().then(()=>Ee(FO())),Promise.resolve().then(()=>Ee(Vp())),Promise.resolve().then(()=>Ee(UO())),Promise.resolve().then(()=>Ee(qp())),Promise.resolve().then(()=>Ee(qO())),Promise.resolve().then(()=>Ee(VO())),Promise.resolve().then(()=>Ee(IG()))]},r}return t.prototype.componentDidMount=function(){this.initializeEditor()},t.prototype.shouldComponentUpdate=function(r){return this.props.value!==r.value},t.prototype.componentDidUpdate=function(){this.viewer&&this.viewer.setValue(this.props.value||"")},t.prototype.componentWillUnmount=function(){this.viewer=null},t.prototype.render=function(){var r=this;return Yc.default.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:function(n){n&&(r.props.registerRef(n),r._node=n)}})},t.prototype.initializeEditor=function(){return Hre(this,void 0,void 0,function(){var r,n,i,o;return zre(this,function(s){switch(s.label){case 0:return[4,Ru(this.allAddons(),{useCommonAddons:!1})];case 1:return r=s.sent(),n=this.props.ResultsTooltip,i=this.props.ImagePreview,n||i?[4,Promise.resolve().then(()=>Ee(gw()))]:[3,3];case 2:s.sent(),o=document.createElement("div"),r.registerHelper("info","graphql-results",function(l,d,h,v){var y=[];return n&&y.push(Yc.default.createElement(n,{pos:v})),i&&typeof i.shouldRender=="function"&&i.shouldRender(l)&&y.push(Yc.default.createElement(i,{token:l})),y.length?(xw.default.render(Yc.default.createElement("div",null,y),o),o):(xw.default.unmountComponentAtNode(o),null)}),s.label=3;case 3:return this.viewer=r(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:Boolean(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:Au}),[2]}})})},t.prototype.getCodeMirror=function(){return this.viewer},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(Yc.default.Component);var wn=Ee(zt()),Mw=Ee(ht());var Yt=Ee(zt());var ih=Ee(zt());var Py=Ee(zt()),Fy=Ee(ht());function ni(e){var t=e.onClick?e.onClick:function(){return null};return Lw(e.type,t)}function Lw(e,t){return e instanceof Fy.GraphQLNonNull?Py.default.createElement("span",null,Lw(e.ofType,t),"!"):e instanceof Fy.GraphQLList?Py.default.createElement("span",null,"[",Lw(e.ofType,t),"]"):Py.default.createElement("a",{className:"type-name",onClick:function(r){r.preventDefault(),t(e,r)},href:"#"},e==null?void 0:e.name)}var Iw=Ee(zt()),My=Ee(ht()),Wre=function(e){return e?(0,My.print)(e):""};function nh(e){var t=e.field;return"defaultValue"in t&&t.defaultValue!==void 0?Iw.default.createElement("span",null," = ",Iw.default.createElement("span",{className:"arg-default-value"},Wre((0,My.astFromValue)(t.defaultValue,t.type)))):null}function qu(e){var t=e.arg,r=e.onClickType,n=e.showDefaultValue;return ih.default.createElement("span",{className:"arg"},ih.default.createElement("span",{className:"arg-name"},t.name),": ",ih.default.createElement(ni,{type:t.type,onClick:r}),n!==!1&&ih.default.createElement(nh,{field:t}))}var AG=Ee(zt());function Aw(e){var t=e.directive;return AG.default.createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var Rw=Ee(zt()),RG=Ee(ry()),Yre=new RG.default({breaks:!0,linkify:!0});function Bn(e){var t=e.markdown,r=e.className;return t?Rw.default.createElement("div",{className:r,dangerouslySetInnerHTML:{__html:Yre.render(t)}}):Rw.default.createElement("div",null)}var Jre=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o};function jw(e){var t=e.field,r=e.onClickType,n=Jre(Yt.default.useState(!1),2),i=n[0],o=n[1],s,l;if(t&&"args"in t&&t.args.length>0){s=Yt.default.createElement("div",{id:"doc-args",className:"doc-category"},Yt.default.createElement("div",{className:"doc-category-title"},"arguments"),t.args.filter(function(v){return!v.deprecationReason}).map(function(v){return Yt.default.createElement("div",{key:v.name,className:"doc-category-item"},Yt.default.createElement("div",null,Yt.default.createElement(qu,{arg:v,onClickType:r})),Yt.default.createElement(Bn,{className:"doc-value-description",markdown:v.description}),v&&"deprecationReason"in v&&Yt.default.createElement(Bn,{className:"doc-deprecation",markdown:v==null?void 0:v.deprecationReason}))}));var d=t.args.filter(function(v){return Boolean(v.deprecationReason)});d.length>0&&(l=Yt.default.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},Yt.default.createElement("div",{className:"doc-category-title"},"deprecated arguments"),i?d.map(function(v,y){return Yt.default.createElement("div",{key:y},Yt.default.createElement("div",null,Yt.default.createElement(qu,{arg:v,onClickType:r})),Yt.default.createElement(Bn,{className:"doc-value-description",markdown:v.description}),v&&"deprecationReason"in v&&Yt.default.createElement(Bn,{className:"doc-deprecation",markdown:v==null?void 0:v.deprecationReason}))}):Yt.default.createElement("button",{className:"show-btn",onClick:function(){return o(!i)}},"Show deprecated arguments...")))}var h;return t&&t.astNode&&t.astNode.directives&&t.astNode.directives.length>0&&(h=Yt.default.createElement("div",{id:"doc-directives",className:"doc-category"},Yt.default.createElement("div",{className:"doc-category-title"},"directives"),t.astNode.directives.map(function(v){return Yt.default.createElement("div",{key:v.name.value,className:"doc-category-item"},Yt.default.createElement("div",null,Yt.default.createElement(Aw,{directive:v})))}))),Yt.default.createElement("div",null,Yt.default.createElement(Bn,{className:"doc-type-description",markdown:(t==null?void 0:t.description)||"No Description"}),t&&"deprecationReason"in t&&Yt.default.createElement(Bn,{className:"doc-deprecation",markdown:t==null?void 0:t.deprecationReason}),Yt.default.createElement("div",{className:"doc-category"},Yt.default.createElement("div",{className:"doc-category-title"},"type"),Yt.default.createElement(ni,{type:t==null?void 0:t.type,onClick:r})),s,h,l)}var Ti=Ee(zt());function Pw(e){var t=e.schema,r=e.onClickType,n=t.getQueryType(),i=t.getMutationType&&t.getMutationType(),o=t.getSubscriptionType&&t.getSubscriptionType();return Ti.default.createElement("div",null,Ti.default.createElement(Bn,{className:"doc-type-description",markdown:t.description||"A GraphQL schema provides a root type for each kind of operation."}),Ti.default.createElement("div",{className:"doc-category"},Ti.default.createElement("div",{className:"doc-category-title"},"root types"),Ti.default.createElement("div",{className:"doc-category-item"},Ti.default.createElement("span",{className:"keyword"},"query"),": ",Ti.default.createElement(ni,{type:n,onClick:r})),i&&Ti.default.createElement("div",{className:"doc-category-item"},Ti.default.createElement("span",{className:"keyword"},"mutation"),": ",Ti.default.createElement(ni,{type:i,onClick:r})),o&&Ti.default.createElement("div",{className:"doc-category-item"},Ti.default.createElement("span",{className:"keyword"},"subscription"),": ",Ti.default.createElement(ni,{type:o,onClick:r}))))}var Jc=Ee(zt());function ji(e,t){var r;return function(){for(var n=this,i=[],o=0;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},tne=function(e){$re(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.shouldComponentUpdate=function(r){return this.props.schema!==r.schema||this.props.searchValue!==r.searchValue},t.prototype.render=function(){var r,n,i=this.props.searchValue,o=this.props.withinType,s=this.props.schema,l=this.props.onClickType,d=this.props.onClickField,h=[],v=[],y=[],b=s.getTypeMap(),D=Object.keys(b);o&&(D=D.filter(function(w){return w!==o.name}),D.unshift(o.name));var _=function(w){if(h.length+v.length+y.length>=100)return"break";var x=b[w];if(o!==x&&Fw(w,i)&&v.push(_i.default.createElement("div",{className:"doc-category-item",key:w},_i.default.createElement(ni,{type:x,onClick:l}))),x&&"getFields"in x){var L=x.getFields();Object.keys(L).forEach(function(O){var R=L[O],M;if(!Fw(O,i))if("args"in R&&R.args.length){if(M=R.args.filter(function(z){return Fw(z.name,i)}),M.length===0)return}else return;var q=_i.default.createElement("div",{className:"doc-category-item",key:w+"."+O},o!==x&&[_i.default.createElement(ni,{key:"type",type:x,onClick:l}),"."],_i.default.createElement("a",{className:"field-name",onClick:function(z){return d(R,x,z)}},R.name),M&&["(",_i.default.createElement("span",{key:"args"},M.map(function(z){return _i.default.createElement(qu,{key:z.name,arg:z,onClickType:l,showDefaultValue:!1})})),")"]);o===x?h.push(q):y.push(q)})}};try{for(var k=ene(D),T=k.next();!T.done;T=k.next()){var S=T.value,m=_(S);if(m==="break")break}}catch(w){r={error:w}}finally{try{T&&!T.done&&(n=k.return)&&n.call(k)}finally{if(r)throw r.error}}return h.length+v.length+y.length===0?_i.default.createElement("span",{className:"doc-alert-text"},"No results found."):o&&v.length+y.length>0?_i.default.createElement("div",null,h,_i.default.createElement("div",{className:"doc-category"},_i.default.createElement("div",{className:"doc-category-title"},"other results"),v,y)):_i.default.createElement("div",{className:"doc-search-items"},h,v,y)},t}(_i.default.Component),PG=tne;function Fw(e,t){try{var r=t.replace(/[^_0-9A-Za-z]/g,function(n){return"\\"+n});return e.search(new RegExp(r,"i"))!==-1}catch(n){return e.toLowerCase().indexOf(t.toLowerCase())!==-1}}var Tt=Ee(zt()),no=Ee(ht());var rne=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),nne=function(e){rne(t,e);function t(r){var n=e.call(this,r)||this;return n.handleShowDeprecated=function(){return n.setState({showDeprecated:!0})},n.state={showDeprecated:!1},n}return t.prototype.shouldComponentUpdate=function(r,n){return this.props.type!==r.type||this.props.schema!==r.schema||this.state.showDeprecated!==n.showDeprecated},t.prototype.render=function(){var r=this.props.schema,n=this.props.type,i=this.props.onClickType,o=this.props.onClickField,s=null,l=[];n instanceof no.GraphQLUnionType?(s="possible types",l=r.getPossibleTypes(n)):n instanceof no.GraphQLInterfaceType?(s="implementations",l=r.getPossibleTypes(n)):n instanceof no.GraphQLObjectType&&(s="implements",l=n.getInterfaces());var d;l&&l.length>0&&(d=Tt.default.createElement("div",{id:"doc-types",className:"doc-category"},Tt.default.createElement("div",{className:"doc-category-title"},s),l.map(function(m){return Tt.default.createElement("div",{key:m.name,className:"doc-category-item"},Tt.default.createElement(ni,{type:m,onClick:i}))})));var h,v;if(n&&"getFields"in n){var y=n.getFields(),b=Object.keys(y).map(function(m){return y[m]});h=Tt.default.createElement("div",{id:"doc-fields",className:"doc-category"},Tt.default.createElement("div",{className:"doc-category-title"},"fields"),b.filter(function(m){return!m.deprecationReason}).map(function(m){return Tt.default.createElement(MG,{key:m.name,type:n,field:m,onClickType:i,onClickField:o})}));var D=b.filter(function(m){return Boolean(m.deprecationReason)});D.length>0&&(v=Tt.default.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},Tt.default.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?D.map(function(m){return Tt.default.createElement(MG,{key:m.name,type:n,field:m,onClickType:i,onClickField:o})}):Tt.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}var _,k;if(n instanceof no.GraphQLEnumType){var T=n.getValues();_=Tt.default.createElement("div",{className:"doc-category"},Tt.default.createElement("div",{className:"doc-category-title"},"values"),T.filter(function(m){return Boolean(!m.deprecationReason)}).map(function(m){return Tt.default.createElement(qG,{key:m.name,value:m})}));var S=T.filter(function(m){return Boolean(m.deprecationReason)});S.length>0&&(k=Tt.default.createElement("div",{className:"doc-category"},Tt.default.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?S.map(function(m){return Tt.default.createElement(qG,{key:m.name,value:m})}):Tt.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return Tt.default.createElement("div",null,Tt.default.createElement(Bn,{className:"doc-type-description",markdown:"description"in n&&n.description||"No Description"}),n instanceof no.GraphQLObjectType&&d,h,v,_,k,!(n instanceof no.GraphQLObjectType)&&d)},t}(Tt.default.Component),FG=nne;function MG(e){var t=e.type,r=e.field,n=e.onClickType,i=e.onClickField;return Tt.default.createElement("div",{className:"doc-category-item"},Tt.default.createElement("a",{className:"field-name",onClick:function(o){return i(r,t,o)}},r.name),"args"in r&&r.args&&r.args.length>0&&["(",Tt.default.createElement("span",{key:"args"},r.args.filter(function(o){return!o.deprecationReason}).map(function(o){return Tt.default.createElement(qu,{key:o.name,arg:o,onClickType:n})})),")"],": ",Tt.default.createElement(ni,{type:r.type,onClick:n}),Tt.default.createElement(nh,{field:r}),r.description&&Tt.default.createElement(Bn,{className:"field-short-description",markdown:r.description}),"deprecationReason"in r&&r.deprecationReason&&Tt.default.createElement(Bn,{className:"doc-deprecation",markdown:r.deprecationReason}))}function qG(e){var t=e.value;return Tt.default.createElement("div",{className:"doc-category-item"},Tt.default.createElement("div",{className:"enum-value"},t.name),Tt.default.createElement(Bn,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&Tt.default.createElement(Bn,{className:"doc-deprecation",markdown:t.deprecationReason}))}var ine=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qy=function(){return qy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&n.setState({navStack:n.state.navStack.slice(0,-1)})},n.handleClickType=function(i){n.showDoc(i)},n.handleClickField=function(i){n.showDoc(i)},n.handleSearch=function(i){n.showSearch(i)},n.state={navStack:[VG]},n}return t.prototype.shouldComponentUpdate=function(r,n){return this.props.schema!==r.schema||this.state.navStack!==n.navStack||this.props.schemaErrors!==r.schemaErrors},t.prototype.render=function(){var r=this.props,n=r.schema,i=r.schemaErrors,o=this.state.navStack,s=o[o.length-1],l;i?l=wn.default.createElement("div",{className:"error-container"},"Error fetching schema"):n===void 0?l=wn.default.createElement("div",{className:"spinner-container"},wn.default.createElement("div",{className:"spinner"})):n?s.search?l=wn.default.createElement(PG,{searchValue:s.search,withinType:s.def,schema:n,onClickType:this.handleClickType,onClickField:this.handleClickField}):o.length===1?l=wn.default.createElement(Pw,{schema:n,onClickType:this.handleClickType}):(0,Mw.isType)(s.def)?l=wn.default.createElement(FG,{schema:n,type:s.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):l=wn.default.createElement(jw,{field:s.def,onClickType:this.handleClickType}):l=wn.default.createElement("div",{className:"error-container"},"No Schema Available");var d=o.length===1||(0,Mw.isType)(s.def)&&"getFields"in s.def,h;return o.length>1&&(h=o[o.length-2].name),wn.default.createElement("section",{className:"doc-explorer",key:s.name,"aria-label":"Documentation Explorer"},wn.default.createElement("div",{className:"doc-explorer-title-bar"},h&&wn.default.createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+h},h),wn.default.createElement("div",{className:"doc-explorer-title"},s.title||s.name),wn.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),wn.default.createElement("div",{className:"doc-explorer-contents"},d&&wn.default.createElement(jG,{value:s.search,placeholder:"Search "+s.name+"...",onSearch:this.handleSearch}),l))},t.prototype.showDoc=function(r){var n=this.state.navStack,i=n[n.length-1];i.def!==r&&this.setState({navStack:n.concat([{name:r.name,def:r}])})},t.prototype.showDocForReference=function(r){r&&r.kind==="Type"?this.showDoc(r.type):r.kind==="Field"?this.showDoc(r.field):r.kind==="Argument"&&r.field?this.showDoc(r.field):r.kind==="EnumValue"&&r.type&&this.showDoc(r.type)},t.prototype.showSearch=function(r){var n=this.state.navStack.slice(),i=n[n.length-1];n[n.length-1]=qy(qy({},i),{search:r}),this.setState({navStack:n})},t.prototype.reset=function(){this.setState({navStack:[VG]})},t}(wn.default.Component);var Vu=Ee(zt());var Ks=Ee(zt()),ane=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),one=function(e){ane(t,e);function t(r){var n=e.call(this,r)||this;return n.state={editable:!1},n.editField=null,n}return t.prototype.render=function(){var r=this,n,i=this.props.label||this.props.operationName||((n=this.props.query)===null||n===void 0?void 0:n.split(` `).filter(function(s){return s.indexOf("#")!==0}).join("")),o=this.props.favorite?"\u2605":"\u2606";return Ks.default.createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?Ks.default.createElement("input",{type:"text",defaultValue:this.props.label,ref:function(s){r.editField=s},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):Ks.default.createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},i),Ks.default.createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"\u270E"),Ks.default.createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},o))},t.prototype.handleClick=function(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)},t.prototype.handleStarClick=function(r){r.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)},t.prototype.handleFieldBlur=function(r){r.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,r.target.value,this.props.favorite)},t.prototype.handleFieldKeyDown=function(r){r.keyCode===13&&(r.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,r.currentTarget.value,this.props.favorite))},t.prototype.handleEditClick=function(r){var n=this;r.stopPropagation(),this.setState({editable:!0},function(){n.editField&&n.editField.focus()})},t}(Ks.default.Component),UG=one;var une=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},sne=function(){for(var e=[],t=0;tthis.maxSize&&n.shift();for(var i=0;i<5;i++){var o=this.storage.set(this.key,JSON.stringify((r={},r[this.key]=n,r)));if(!o||!o.error)this.items=n;else if(o.isQuotaError&&this.maxSize)n.shift();else return}},e.prototype.save=function(){var t;this.storage.set(this.key,JSON.stringify((t={},t[this.key]=this.items,t)))},e}(),Vw=lne;var QG=Ee(ht()),Vy=function(){return Vy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},GG=function(){for(var e=[],t=0;tfne?!1:l?!(JSON.stringify(i)===JSON.stringify(l.query)&&(JSON.stringify(o)===JSON.stringify(l.variables)&&(JSON.stringify(s)===JSON.stringify(l.headers)||s&&!l.headers)||o&&!l.variables)):!0},this.fetchAllQueries=function(){var i=n.history.fetchAll(),o=n.favorite.fetchAll();return i.concat(o)},this.updateHistory=function(i,o,s,l){if(n.shouldSaveQuery(i,o,s,n.history.fetchRecent())){n.history.push({query:i,variables:o,headers:s,operationName:l});var d=n.history.items,h=n.favorite.items;n.queries=d.concat(h)}},this.toggleFavorite=function(i,o,s,l,d,h){var v={query:i,variables:o,headers:s,operationName:l,label:d};n.favorite.contains(v)?h&&(v.favorite=!1,n.favorite.delete(v)):(v.favorite=!0,n.favorite.push(v)),n.queries=GG(n.history.items,n.favorite.items)},this.editLabel=function(i,o,s,l,d,h){var v={query:i,variables:o,headers:s,operationName:l,label:d};h?n.favorite.edit(Vy(Vy({},v),{favorite:h})):n.history.edit(v),n.queries=GG(n.history.items,n.favorite.items)},this.history=new Vw("queries",this.storage,this.maxHistoryLength),this.favorite=new Vw("favorites",this.storage,null),this.queries=this.fetchAllQueries()}return e}(),Uy=dne;var pne=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Uw=function(){return Uw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_ne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},WG=function(){for(var e=[],t=0;t=0)continue;d.push(b)}var D=e[y.name.value];if(D){var _=D.typeCondition,k=D.directives,T=D.selectionSet;y={kind:aa.Kind.INLINE_FRAGMENT,typeCondition:_,directives:k,selectionSet:T}}}if(y.kind===aa.Kind.INLINE_FRAGMENT&&(!y.directives||((o=y.directives)===null||o===void 0?void 0:o.length)===0)){var S=y.typeCondition?y.typeCondition.name.value:null;if(!S||S===s){l.push.apply(l,WG(YG(e,y.selectionSet.selections,r)));continue}}l.push(y)}}catch(m){n={error:m}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}return l}function Gy(e,t){var r,n,i=t?new aa.TypeInfo(t):null,o=Object.create(null);try{for(var s=Bw(e.definitions),l=s.next();!l.done;l=s.next()){var d=l.value;d.kind===aa.Kind.FRAGMENT_DEFINITION&&(o[d.name.value]=d)}}catch(v){r={error:v}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}var h={SelectionSet:function(v){var y=i?i.getParentType():null,b=v.selections;return b=YG(o,b,y),b=Ene(b,function(D){return D.alias?D.alias.value:D.name.value}),Xc(Xc({},v),{selections:b})},FragmentDefinition:function(){return null}};return(0,aa.visit)(e,i?(0,aa.visitWithTypeInfo)(i,h):h)}var Sne="IntrospectionQuery",JG=Sne;var vQ=Ee(sQ());var Ky=Ee(ht());var zs=Ee(zt()),Qy=function(){return Qy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"}function Uu(e){var t,r,n;return[(t=e.query)!==null&&t!==void 0?t:"",(r=e.variables)!==null&&r!==void 0?r:"",(n=e.headers)!==null&&n!==void 0?n:""].join("|")}function By(){var e=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}var Rne=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ke=function(){return Ke=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},pQ=function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gQ=350,Mne=parseInt(ut.default.version.slice(0,2),10);if(Mne<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(` `));var mQ=function(e){return JSON.stringify(e,null,2)},qne=function(e){return Ke(Ke({},e),{message:e.message,stack:e.stack})},yQ=function(e){return e instanceof ii.GraphQLError?e.toString():e instanceof Error?qne(e):e},bQ=function(e){Rne(t,e);function t(r){var n,i,o,s,l,d,h,v,y,b,D,_=e.call(this,r)||this;if(_._editorQueryID=0,_.safeSetState=function(te,ce){_.componentIsMounted&&_.setState(te,ce)},_.persistTabsState=function(){var te,ce;_.props.tabs&&(_._storage.set("tabState",JSON.stringify(_.state.tabs,function(we,ot){return we==="response"||_.state.shouldPersistHeaders&&we==="headers"?void 0:ot})),typeof _.props.tabs=="object"&&((ce=(te=_.props.tabs).onTabChange)===null||ce===void 0||ce.call(te,_.state.tabs)))},_.makeHandleOnSelectTab=function(te){return function(){_.handleStopQuery(),_.setState(function(ce){return Hne(te,ce)},function(){_.persistTabsState(),_.state.query&&_.handleEditQuery(_.state.query)})}},_.makeHandleOnCloseTab=function(te){return function(){_.state.tabs.activeTabIndex===te&&_.handleStopQuery(),_.setState(function(ce){return zne(te,ce)},_.persistTabsState)}},_.handleOnAddTab=function(){_.setState(function(te){return Wne(te)},_.persistTabsState)},_.handleClickReference=function(te){_.setState({docExplorerOpen:!0},function(){_.docExplorerComponent&&_.docExplorerComponent.showDocForReference(te)}),_._storage.set("docExplorerOpen",JSON.stringify(_.state.docExplorerOpen))},_.handleRunQuery=function(te){return Hw(_,void 0,void 0,function(){var ce,we,ot,Me,Qe,ze,mt,oe,me,fe=this;return zw(this,function(se){switch(se.label){case 0:this._editorQueryID++,ce=this._editorQueryID,we=this.autoCompleteLeafs()||this.state.query||"",ot=this.state.variables,Me=this.state.headers,Qe=this.state.shouldPersistHeaders,ze=this.state.operationName,te&&te!==ze&&(ze=te,this.handleEditOperationName(ze)),se.label=1;case 1:return se.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:ze}),this._storage.set("operationName",ze),this._queryHistory?this._queryHistory.onUpdateHistory(we,ot,Me,ze):this._historyStore&&this._historyStore.updateHistory(we,ot,Me,ze),mt={data:{}},[4,this._fetchQuery(we,ot,Me,ze,Qe,function(Ue){var at,ct;if(ce===fe._editorQueryID){var st=Array.isArray(Ue)?Ue:!1;if(!st&&typeof Ue!="string"&&Ue!==null&&"hasNext"in Ue&&(st=[Ue]),st){var Dn={data:mt.data},Ei=pQ((mt==null?void 0:mt.errors)||[],st.map(function(vr){return vr.errors}).flat().filter(Boolean));Ei.length&&(Dn.errors=Ei);try{for(var dn=sh(st),Hn=dn.next();!Hn.done;Hn=dn.next()){var pn=Hn.value,Pi=pn.path,Qr=pn.data,Kt=pn.errors,hn=jne(pn,["path","data","errors"]);if(Pi){if(!Qr)throw new Error("Expected part to contain a data property, but got "+pn);(0,vQ.default)(Dn.data,Pi,Qr,{merge:!0})}else Qr&&(Dn.data=pn.data);mt=Ke(Ke({},Dn),hn)}}catch(vr){at={error:vr}}finally{try{Hn&&!Hn.done&&(ct=dn.return)&&ct.call(dn)}finally{if(at)throw at.error}}fe.setState({isWaitingForResponse:!1,response:t.formatResult(mt)})}else{var zn=t.formatResult(Ue);fe.setState(function(vr){return Ke(Ke({},vr),{tabs:Ke(Ke({},vr.tabs),{tabs:vr.tabs.tabs.map(function(Ro,xn){return xn!==vr.tabs.activeTabIndex?Ro:Ke(Ke({},Ro),{response:zn})})}),isWaitingForResponse:!1,response:zn})},fe.persistTabsState)}}})];case 2:return oe=se.sent(),this.setState({subscription:oe}),[3,4];case 3:return me=se.sent(),this.setState({isWaitingForResponse:!1,response:me.message}),[3,4];case 4:return[2]}})})},_.handleStopQuery=function(){var te=_.state.subscription;_.setState({isWaitingForResponse:!1,subscription:null}),te&&te.unsubscribe()},_.handlePrettifyQuery=function(){var te,ce,we,ot=_.getQueryEditor(),Me=(te=ot==null?void 0:ot.getValue())!==null&&te!==void 0?te:"",Qe=(0,ii.print)((0,ii.parse)(Me));Qe!==Me&&(ot==null||ot.setValue(Qe));var ze=_.getVariableEditor(),mt=(ce=ze==null?void 0:ze.getValue())!==null&&ce!==void 0?ce:"";try{var oe=JSON.stringify(JSON.parse(mt),null,2);oe!==mt&&(ze==null||ze.setValue(oe))}catch(Ue){}var me=_.getHeaderEditor(),fe=(we=me==null?void 0:me.getValue())!==null&&we!==void 0?we:"";try{var se=JSON.stringify(JSON.parse(fe),null,2);se!==fe&&(me==null||me.setValue(se))}catch(Ue){}},_.handleMergeQuery=function(){var te=_.getQueryEditor(),ce=te.getValue();if(!!ce){var we=_.state.documentAST;te.setValue((0,ii.print)(Gy(we,_.state.schema)))}},_.handleEditQuery=ji(100,function(te){var ce=_._updateQueryFacts(te,_.state.operationName,_.state.operations,_.state.schema);if(_.setState(function(we){return Ke(Ke(Ke(Ke({},we),{query:te}),ce),{tabs:Kne(te,we.tabs,ce==null?void 0:ce.operationName)})},_.persistTabsState),_._storage.set("query",te),_.props.onEditQuery)return _.props.onEditQuery(te,ce==null?void 0:ce.documentAST)}),_.handleCopyQuery=function(){var te=_.getQueryEditor(),ce=te&&te.getValue();if(!!ce&&((0,hQ.default)(ce),_.props.onCopyQuery))return _.props.onCopyQuery(ce)},_._updateQueryFacts=function(te,ce,we,ot){var Me=js(ot,te);if(Me){var Qe=ah(we,ce,Me.operations),ze=_.props.onEditOperationName;return ze&&Qe&&ce!==Qe&&ze(Qe),Ke({operationName:Qe},Me)}},_.handleEditVariables=function(te){_.setState(function(ce){return Ke(Ke({},ce),{variables:te,tabs:Bne(te,ce.tabs)})},_.persistTabsState),ji(500,function(){return _._storage.set("variables",te)})(),_.props.onEditVariables&&_.props.onEditVariables(te)},_.handleEditHeaders=function(te){_.setState(function(ce){return Ke(Ke({},ce),{headers:te,tabs:Qne(te,ce.tabs)})},_.persistTabsState),_.props.shouldPersistHeaders&&ji(500,function(){return _._storage.set("headers",te)})(),_.props.onEditHeaders&&_.props.onEditHeaders(te)},_.handleEditOperationName=function(te){var ce=_.props.onEditOperationName;ce&&ce(te)},_.handleHintInformationRender=function(te){te.addEventListener("click",_._onClickHintInformation);var ce;te.addEventListener("DOMNodeRemoved",ce=function(){te.removeEventListener("DOMNodeRemoved",ce),te.removeEventListener("click",_._onClickHintInformation)})},_.handleEditorRunQuery=function(){_._runQueryAtCursor()},_._onClickHintInformation=function(te){if((te==null?void 0:te.currentTarget)&&"className"in te.currentTarget&&te.currentTarget.className==="typeName"){var ce=te.currentTarget.innerHTML,we=_.state.schema;if(we){var ot=we.getType(ce);ot&&(_.setState({docExplorerOpen:!0},function(){_.docExplorerComponent&&_.docExplorerComponent.showDoc(ot)}),ji(500,function(){return _._storage.set("docExplorerOpen",JSON.stringify(_.state.docExplorerOpen))})())}}},_.handleToggleDocs=function(){typeof _.props.onToggleDocs=="function"&&_.props.onToggleDocs(!_.state.docExplorerOpen),_._storage.set("docExplorerOpen",JSON.stringify(!_.state.docExplorerOpen)),_.setState({docExplorerOpen:!_.state.docExplorerOpen})},_.handleToggleHistory=function(){typeof _.props.onToggleHistory=="function"&&_.props.onToggleHistory(!_.state.historyPaneOpen),_._storage.set("historyPaneOpen",JSON.stringify(!_.state.historyPaneOpen)),_.setState({historyPaneOpen:!_.state.historyPaneOpen})},_.handleSelectHistoryQuery=function(te,ce,we,ot){te&&_.handleEditQuery(te),ce&&_.handleEditVariables(ce),we&&_.handleEditHeaders(we),ot&&_.handleEditOperationName(ot)},_.handleResizeStart=function(te){if(!!_._didClickDragBar(te)){te.preventDefault();var ce=te.clientX-uh(te.target),we=function(Me){if(Me.buttons===0)return ot();var Qe=_.editorBarComponent,ze=Me.clientX-uh(Qe)-ce,mt=Qe.clientWidth-ze;_.setState({editorFlex:ze/mt}),ji(500,function(){return _._storage.set("editorFlex",JSON.stringify(_.state.editorFlex))})()},ot=function(){document.removeEventListener("mousemove",we),document.removeEventListener("mouseup",ot),we=null,ot=null};document.addEventListener("mousemove",we),document.addEventListener("mouseup",ot)}},_.handleResetResize=function(){_.setState({editorFlex:1}),_._storage.set("editorFlex",JSON.stringify(_.state.editorFlex))},_.handleDocsResizeStart=function(te){te.preventDefault();var ce=_.state.docExplorerWidth,we=te.clientX-uh(te.target),ot=function(Qe){if(Qe.buttons===0)return Me();var ze=_.graphiqlContainer,mt=Qe.clientX-uh(ze)-we,oe=ze.clientWidth-mt;oe<100?(typeof _.props.onToggleDocs=="function"&&_.props.onToggleDocs(!_.state.docExplorerOpen),_._storage.set("docExplorerOpen",JSON.stringify(_.state.docExplorerOpen)),_.setState({docExplorerOpen:!1})):(_.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(oe,650)}),ji(500,function(){return _._storage.set("docExplorerWidth",JSON.stringify(_.state.docExplorerWidth))})()),_._storage.set("docExplorerOpen",JSON.stringify(_.state.docExplorerOpen))},Me=function(){_.state.docExplorerOpen||(_.setState({docExplorerWidth:ce}),ji(500,function(){return _._storage.set("docExplorerWidth",JSON.stringify(_.state.docExplorerWidth))})()),document.removeEventListener("mousemove",ot),document.removeEventListener("mouseup",Me),ot=null,Me=null};document.addEventListener("mousemove",ot),document.addEventListener("mouseup",Me)},_.handleDocsResetResize=function(){_.setState({docExplorerWidth:gQ}),ji(500,function(){return _._storage.set("docExplorerWidth",JSON.stringify(_.state.docExplorerWidth))})()},_.handleTabClickPropogation=function(te){te.preventDefault(),te.stopPropagation()},_.handleOpenHeaderEditorTab=function(te){_.setState({headerEditorActive:!0,variableEditorActive:!1,secondaryEditorOpen:!0})},_.handleOpenVariableEditorTab=function(te){_.setState({headerEditorActive:!1,variableEditorActive:!0,secondaryEditorOpen:!0})},_.handleSecondaryEditorResizeStart=function(te){te.preventDefault();var ce=!1,we=_.state.secondaryEditorOpen,ot=_.state.secondaryEditorHeight,Me=te.clientY-Qw(te.target),Qe=function(mt){if(mt.buttons===0)return ze();ce=!0;var oe=_.editorBarComponent,me=mt.clientY-Qw(oe)-Me,fe=oe.clientHeight-me;fe<60?_.setState({secondaryEditorOpen:!1,secondaryEditorHeight:ot}):_.setState({secondaryEditorOpen:!0,secondaryEditorHeight:fe}),ji(500,function(){return _._storage.set("secondaryEditorHeight",JSON.stringify(_.state.secondaryEditorHeight))})()},ze=function(){ce||_.setState({secondaryEditorOpen:!we}),document.removeEventListener("mousemove",Qe),document.removeEventListener("mouseup",ze),Qe=null,ze=null};document.addEventListener("mousemove",Qe),document.addEventListener("mouseup",ze)},typeof r.fetcher!="function")throw new TypeError("GraphiQL requires a fetcher function.");_._storage=new HG(r.storage);var k=(l=r.maxHistoryLength)!==null&&l!==void 0?l:20;_._historyStore=new Uy(_._storage,k),_.componentIsMounted=!1;var T=r.query!==void 0?r.query:_._storage.get("query")?_._storage.get("query"):r.defaultQuery!==void 0?r.defaultQuery:Vne,S=js(r.schema,T),m=r.variables!==void 0?r.variables:_._storage.get("variables"),w=r.headers!==void 0?r.headers:_._storage.get("headers"),x=r.operationName!==void 0?r.operationName:ah(void 0,_._storage.get("operationName"),S&&S.operations),L=r.docExplorerOpen||!1;_._storage.get("docExplorerOpen")&&(L=_._storage.get("docExplorerOpen")==="true");var O;r.defaultVariableEditorOpen!==void 0?O=r.defaultVariableEditorOpen:r.defaultSecondaryEditorOpen!==void 0?O=r.defaultSecondaryEditorOpen:O=Boolean(m||w);var R=(d=r.headerEditorEnabled)!==null&&d!==void 0?d:!0,M=(h=r.shouldPersistHeaders)!==null&&h!==void 0?h:!1,q=r.schema,z=r.response,B=void 0;if(q&&!_.props.dangerouslyAssumeSchemaIsValid){var Q=(0,Ky.validateSchema)(q);Q&&Q.length>0&&(z=t.formatError(Q),q=void 0,B=Q)}_._introspectionQuery=(0,ii.getIntrospectionQuery)({schemaDescription:(v=r.schemaDescription)!==null&&v!==void 0?v:void 0,inputValueDeprecation:(y=r.inputValueDeprecation)!==null&&y!==void 0?y:void 0}),_._introspectionQueryName=(b=r.introspectionQueryName)!==null&&b!==void 0?b:JG,_._introspectionQuerySansSubscriptions=_._introspectionQuery.replace("subscriptionType { name }","");var P=Uu({query:T,variables:m,headers:w}),he={id:By(),hash:P,title:x!=null?x:"",query:T,variables:m,headers:w,operationName:x,response:void 0},xe=null;_.props.tabs&&(xe=_._storage.get("tabState"));var ge;if(xe===null)ge={activeTabIndex:0,tabs:[he]};else{ge=JSON.parse(xe);var Fe=!1;try{for(var Le=sh(ge.tabs),He=Le.next();!He.done;He=Le.next()){var Xe=He.value;Xe.query=Xe.query,Xe.variables=Xe.variables,Xe.headers=M?Xe.headers:void 0,Xe.response=void 0,Xe.operationName=void 0,Xe.id=By(),Xe.hash=Uu(Xe),Xe.hash===P&&(Fe=!0)}}catch(te){n={error:te}}finally{try{He&&!He.done&&(i=Le.return)&&i.call(Le)}finally{if(n)throw n.error}}Fe===!1&&(ge.tabs.push(he),ge.activeTabIndex=ge.tabs.length-1)}var Ve=ge.tabs[0],At=0;try{for(var Ot=sh(ge.tabs),Ie=Ot.next();!Ie.done;Ie=Ot.next()){var Xe=Ie.value;if(Xe.hash===P){ge.activeTabIndex=At,Ve=Xe;break}At++}}catch(te){o={error:te}}finally{try{Ie&&!Ie.done&&(s=Ot.return)&&s.call(Ot)}finally{if(o)throw o.error}}return _.state=Ke({tabs:ge,schema:q,query:Ve==null?void 0:Ve.query,variables:Ve==null?void 0:Ve.variables,headers:Ve==null?void 0:Ve.headers,operationName:Ve==null?void 0:Ve.operationName,response:(D=Ve==null?void 0:Ve.response)!==null&&D!==void 0?D:z,docExplorerOpen:L,schemaErrors:B,editorFlex:Number(_._storage.get("editorFlex"))||1,secondaryEditorOpen:O,secondaryEditorHeight:Number(_._storage.get("secondaryEditorHeight"))||200,variableEditorActive:_._storage.get("variableEditorActive")==="true"||r.headerEditorEnabled?_._storage.get("headerEditorActive")!=="true":!0,headerEditorActive:_._storage.get("headerEditorActive")==="true",headerEditorEnabled:R,shouldPersistHeaders:M,historyPaneOpen:_._storage.get("historyPaneOpen")==="true"||!1,docExplorerWidth:Number(_._storage.get("docExplorerWidth"))||gQ,isWaitingForResponse:!1,subscription:null,maxHistoryLength:k},S),_.state.query&&_.handleEditQuery(_.state.query),_}return t.formatResult=function(r){return JSON.stringify(r,null,2)},t.prototype.componentDidMount=function(){this.componentIsMounted=!0,this.state.schema===void 0&&this.fetchSchema(),this.codeMirrorSizer=new KG,typeof window!="undefined"&&(window.g=this)},t.prototype.UNSAFE_componentWillMount=function(){this.componentIsMounted=!1},t.prototype.UNSAFE_componentWillReceiveProps=function(r){var n=this,i=this.state.schema,o=this.state.query,s=this.state.variables,l=this.state.headers,d=this.state.operationName,h=this.state.response;if(r.schema!==void 0&&(i=r.schema),r.query!==void 0&&this.props.query!==r.query&&(o=r.query),r.variables!==void 0&&this.props.variables!==r.variables&&(s=r.variables),r.headers!==void 0&&this.props.headers!==r.headers&&(l=r.headers),r.operationName!==void 0&&(d=r.operationName),r.response!==void 0&&(h=r.response),o&&i&&(i!==this.state.schema||o!==this.state.query||d!==this.state.operationName)){if(!this.props.dangerouslyAssumeSchemaIsValid){var v=(0,Ky.validateSchema)(i);v&&v.length>0&&(this.handleSchemaErrors(v),i=void 0)}var y=this._updateQueryFacts(o,d,this.state.operations,i);y!==void 0&&(d=y.operationName,this.setState(y))}r.schema===void 0&&r.fetcher!==this.props.fetcher&&(i=void 0),this._storage.set("operationName",d),this.setState({schema:i,query:o,variables:s,headers:l,operationName:d,response:h},function(){n.state.schema===void 0&&(n.docExplorerComponent&&n.docExplorerComponent.reset(),n.fetchSchema())})},t.prototype.componentDidUpdate=function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])},t.prototype.render=function(){var r=this,n,i=ut.default.Children.toArray(this.props.children),o=oh(i,function(k){return Ww(k,t.Logo)})||ut.default.createElement(t.Logo,null),s=oh(i,function(k){return Ww(k,t.Toolbar)})||ut.default.createElement(t.Toolbar,null,ut.default.createElement(Lu,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),ut.default.createElement(Lu,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),ut.default.createElement(Lu,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),ut.default.createElement(Lu,{onClick:this.handleToggleHistory,title:"Show History",label:"History"}),((n=this.props.toolbar)===null||n===void 0?void 0:n.additionalContent)?this.props.toolbar.additionalContent:null),l=oh(i,function(k){return Ww(k,t.Footer)}),d={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},h={display:"block",width:this.state.docExplorerWidth},v="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),y={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},b=this.state.secondaryEditorOpen,D={height:b?this.state.secondaryEditorHeight:void 0},_=this.state.tabs;return ut.default.createElement("div",{ref:function(k){r.graphiqlContainer=k},"data-testid":"graphiql-container",className:"graphiql-container"},this.state.historyPaneOpen&&ut.default.createElement("div",{className:"historyPaneWrap",style:y},ut.default.createElement(BG,{ref:function(k){r._queryHistory=k},operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,maxHistoryLength:this.state.maxHistoryLength,queryID:this._editorQueryID},ut.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"\u2715"))),ut.default.createElement("div",{className:"editorWrap"},ut.default.createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,ut.default.createElement("div",{className:"topBar"},o,ut.default.createElement(lF,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),s),!this.state.docExplorerOpen&&ut.default.createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?ut.default.createElement(fQ,{tabsProps:{"aria-label":"Select active operation"}},_.tabs.map(function(k,T){return ut.default.createElement(lQ,{key:k.id,isActive:T===_.activeTabIndex,title:k.title,isCloseable:_.tabs.length>1,onSelect:r.makeHandleOnSelectTab(T),onClose:r.makeHandleOnCloseTab(T),tabProps:{"aria-controls":"sessionWrap",id:"session-tab-"+T}})}),ut.default.createElement(cQ,{onClick:this.handleOnAddTab})):null,ut.default.createElement("div",{ref:function(k){r.editorBarComponent=k},role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-"+_.activeTabIndex,onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},ut.default.createElement("div",{className:"queryWrap",style:d},ut.default.createElement(wy,{ref:function(k){r.queryEditorComponent=k},schema:this.state.schema,validationRules:this.props.validationRules,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onCopyQuery:this.handleCopyQuery,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,externalFragments:this.props.externalFragments}),ut.default.createElement("section",{className:"variable-editor secondary-editor",style:D,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers"},ut.default.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:b?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart},ut.default.createElement("div",{className:"variable-editor-title-text"+(this.state.variableEditorActive?" active":""),onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation},"Query Variables"),this.state.headerEditorEnabled&&ut.default.createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text"+(this.state.headerEditorActive?" active":""),onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation},"Request Headers")),ut.default.createElement(Ry,{ref:function(k){r.variableEditorComponent=k},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.variableEditorActive}),this.state.headerEditorEnabled&&ut.default.createElement(Dw,{ref:function(k){r.headerEditorComponent=k},value:this.state.headers,onEdit:this.handleEditHeaders,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.headerEditorActive}))),ut.default.createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&ut.default.createElement("div",{className:"spinner-container"},ut.default.createElement("div",{className:"spinner"})),ut.default.createElement(Cw,{registerRef:function(k){r.resultViewerElement=k},ref:function(k){r.resultComponent=k},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:fF}),l))),this.state.docExplorerOpen&&ut.default.createElement("div",{className:v,style:h},ut.default.createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),ut.default.createElement(qw,{ref:function(k){r.docExplorerComponent=k},schemaErrors:this.state.schemaErrors,schema:this.state.schema},ut.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer"},"\u2715"))))},t.prototype.getQueryEditor=function(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()},t.prototype.getVariableEditor=function(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null},t.prototype.getHeaderEditor=function(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null},t.prototype.refresh=function(){this.queryEditorComponent&&this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent&&this.variableEditorComponent.getCodeMirror().refresh(),this.headerEditorComponent&&this.headerEditorComponent.getCodeMirror().refresh(),this.resultComponent&&this.resultComponent.getCodeMirror().refresh()},t.prototype.autoCompleteLeafs=function(){var r=Gw(this.state.schema,this.state.query,this.props.getDefaultFieldNames),n=r.insertions,i=r.result;if(n&&n.length>0){var o=this.getQueryEditor();o&&o.operation(function(){var s=o.getCursor(),l=o.indexFromPos(s);o.setValue(i||"");var d=0,h=n.map(function(y){var b=y.index,D=y.string;return o.markText(o.posFromIndex(b+d),o.posFromIndex(b+(d+=D.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(function(){return h.forEach(function(y){return y.clear()})},7e3);var v=l;n.forEach(function(y){var b=y.index,D=y.string;b2?i.headers=JSON.parse(this.state.headers):this.props.headers&&(i.headers=JSON.parse(this.props.headers))}catch(s){this.setState({response:"Introspection failed as headers are invalid."});return}var o=wQ(n({query:this._introspectionQuery,operationName:this._introspectionQueryName},i));if(!SQ(o)){this.setState({response:"Fetcher did not return a Promise for introspection."});return}o.then(function(s){if(typeof s!="string"&&"data"in s)return s;var l=wQ(n({query:r._introspectionQuerySansSubscriptions,operationName:r._introspectionQueryName},i));if(!SQ(o))throw new Error("Fetcher did not return a Promise for introspection.");return l}).then(function(s){var l,d;if(r.state.schema===void 0)if(s&&s.data&&"__schema"in(s==null?void 0:s.data)){var h=(0,ii.buildClientSchema)(s.data);if(!r.props.dangerouslyAssumeSchemaIsValid){var v=(0,Ky.validateSchema)(h);v&&v.length>0&&(h=void 0,r.handleSchemaErrors(v))}if(h){var y=js(h,r.state.query);r.safeSetState(Ke(Ke({schema:h},y),{schemaErrors:void 0})),(d=(l=r.props).onSchemaChange)===null||d===void 0||d.call(l,h)}}else{var b=typeof s=="string"?s:t.formatResult(s);r.handleSchemaErrors([b])}}).catch(function(s){r.handleSchemaErrors([s])})},t.prototype.handleSchemaErrors=function(r){this.safeSetState({response:r?t.formatError(r):void 0,schema:void 0,schemaErrors:r})},t.prototype._fetchQuery=function(r,n,i,o,s,l){return Hw(this,void 0,void 0,function(){var d,h,v,y,b,D,_=this;return zw(this,function(k){d=this.props.fetcher,h=null,v=null;try{h=n&&n.trim()!==""?JSON.parse(n):null}catch(T){throw new Error("Variables are invalid JSON: "+T.message+".")}if(typeof h!="object")throw new Error("Variables are not a JSON object.");try{v=i&&i.trim()!==""?JSON.parse(i):null}catch(T){throw new Error("Headers are invalid JSON: "+T.message+".")}if(typeof v!="object")throw new Error("Headers are not a JSON object.");return this.props.externalFragments&&(y=new Map,Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach(function(T){y.set(T.name.value,T)}):(0,ii.visit)((0,ii.parse)(this.props.externalFragments,{}),{FragmentDefinition:function(T){y.set(T.name.value,T)}}),b=qm(this.state.documentAST,y),b.length>0&&(r+=` `+b.map(function(T){return(0,ii.print)(T)}).join(` `))),D=d({query:r,variables:h,operationName:o},{headers:v,shouldPersistHeaders:s,documentAST:this.state.documentAST}),[2,Promise.resolve(D).then(function(T){if(kQ(T)){var S=T.subscribe({next:l,error:function(m){_.safeSetState({isWaitingForResponse:!1,response:m?t.formatError(m):void 0,subscription:null})},complete:function(){_.safeSetState({isWaitingForResponse:!1,subscription:null})}});return S}else return OQ(T)?(function(){return Hw(_,void 0,void 0,function(){var m,w,x,L,O,R,M;return zw(this,function(q){switch(q.label){case 0:q.trys.push([0,13,,14]),q.label=1;case 1:q.trys.push([1,6,7,12]),m=Pne(T),q.label=2;case 2:return[4,m.next()];case 3:if(w=q.sent(),!!w.done)return[3,5];x=w.value,l(x),q.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return L=q.sent(),R={error:L},[3,12];case 7:return q.trys.push([7,,10,11]),w&&!w.done&&(M=m.return)?[4,M.call(m)]:[3,9];case 8:q.sent(),q.label=9;case 9:return[3,11];case 10:if(R)throw R.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return O=q.sent(),this.safeSetState({isWaitingForResponse:!1,response:O?t.formatError(O):void 0,subscription:null}),[3,14];case 14:return[2]}})})}(),{unsubscribe:function(){var m,w;return(w=(m=T[Symbol.asyncIterator]()).return)===null||w===void 0?void 0:w.call(m)}}):(l(T),null)}).catch(function(T){return _.safeSetState({isWaitingForResponse:!1,response:T?t.formatError(T):void 0}),null})]})})},t.prototype._runQueryAtCursor=function(){if(this.state.subscription){this.handleStopQuery();return}var r,n=this.state.operations;if(n){var i=this.getQueryEditor();if(i&&i.hasFocus())for(var o=i.getCursor(),s=i.indexFromPos(o),l=0;l=s){r=d.name&&d.name.value;break}}}this.handleRunQuery(r)},t.prototype._didClickDragBar=function(r){if(r.button!==0||r.ctrlKey)return!1;var n=r.target;if(n.className.indexOf("CodeMirror-gutter")!==0)return!1;for(var i=this.resultViewerElement;n;){if(n===i)return!0;n=n.parentNode}return!1},t.formatError=function(r){return Array.isArray(r)?mQ({errors:r.map(function(n){return yQ(n)})}):mQ({errors:yQ(r)})},t.Logo=TQ,t.Toolbar=_Q,t.Footer=EQ,t.QueryEditor=wy,t.VariableEditor=Ry,t.HeaderEditor=Dw,t.ResultViewer=Cw,t.Button=Lu,t.ToolbarButton=Lu,t.Group=rO,t.Menu=nO,t.MenuItem=iO,t}(ut.default.Component);function TQ(e){return ut.default.createElement("div",{className:"title"},e.children||ut.default.createElement("span",null,"Graph",ut.default.createElement("em",null,"i"),"QL"))}TQ.displayName="GraphiQLLogo";function _Q(e){return ut.default.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}_Q.displayName="GraphiQLToolbar";function EQ(e){return ut.default.createElement("div",{className:"footer"},e.children)}EQ.displayName="GraphiQLFooter";var Vne=`# Welcome to GraphiQL # # GraphiQL is an in-browser tool for writing, validating, and # testing GraphQL queries. # # Type queries into this side of the screen, and you will see intelligent # typeaheads aware of the current GraphQL type schema and live syntax and # validation errors highlighted within the text. # # GraphQL queries typically start with a "{" character. Lines that start # with a # are ignored. # # An example GraphQL query might look like: # # { # field(arg: "value") { # subField # } # } # # Keyboard shortcuts: # # Prettify Query: Shift-Ctrl-P (or press the prettify button above) # # Merge Query: Shift-Ctrl-M (or press the merge button above) # # Run Query: Ctrl-Enter (or press the play button above) # # Auto Complete: Ctrl-Space (or just start typing) # `;function SQ(e){return typeof e=="object"&&typeof e.then=="function"}function Une(e){return new Promise(function(t,r){var n=e.subscribe({next:function(i){t(i),n.unsubscribe()},error:r,complete:function(){r(new Error("no value resolved"))}})})}function kQ(e){return typeof e=="object"&&"subscribe"in e&&typeof e.subscribe=="function"}function OQ(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}function Gne(e){return new Promise(function(t,r){var n,i=(n=("return"in e?e:e[Symbol.asyncIterator]()).return)===null||n===void 0?void 0:n.bind(e),o=("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e);o().then(function(s){t(s.value),i==null||i()}).catch(function(s){r(s)})})}function wQ(e){return Promise.resolve(e).then(function(t){return OQ(t)?Gne(t):kQ(t)?Une(t):t})}function Ww(e,t){var r;return((r=e==null?void 0:e.type)===null||r===void 0?void 0:r.displayName)&&e.type.displayName===t.displayName?!0:e.type===t}function Qne(e,t){return Ke(Ke({},t),{tabs:t.tabs.map(function(r,n){return n!==t.activeTabIndex?r:Ke(Ke({},r),{headers:e,hash:Uu({query:r.query,headers:e,variables:r.variables})})})})}function Bne(e,t){return Ke(Ke({},t),{tabs:t.tabs.map(function(r,n){return n!==t.activeTabIndex?r:Ke(Ke({},r),{variables:e,hash:Uu({query:r.query,headers:r.headers,variables:e})})})})}function Kne(e,t,r){return Ke(Ke({},t),{tabs:t.tabs.map(function(n,i){return i!==t.activeTabIndex?n:Ke(Ke({},n),{title:r!=null?r:dQ(e),query:e,hash:Uu({query:e,headers:n.headers,variables:n.variables})})})})}function Hne(e,t){var r=t.tabs.activeTabIndex,n=t.tabs.tabs.map(function(o,s){return s!==r?o:Ke(Ke({},o),{query:t.query,variables:t.variables,operationName:t.operationName,headers:t.headers,response:t.response,hash:Uu({query:t.query,variables:t.variables,headers:t.headers})})}),i=t.tabs.tabs[e];return Ke(Ke({},t),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:Ke(Ke({},t.tabs),{tabs:n,activeTabIndex:e})})}function zne(e,t){var r=t.tabs.activeTabIndex>0?t.tabs.activeTabIndex-1:0,n=Ke(Ke({},t.tabs),{activeTabIndex:r,tabs:t.tabs.tabs.filter(function(o,s){return e!==s})}),i=n.tabs[r];return Ke(Ke({},t),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:n})}function Wne(e){var t=e.tabs.activeTabIndex,r={id:By(),title:"",headers:"",variables:"",query:"",operationName:"",response:"",hash:Uu({query:"",variables:"",headers:""})},n=e.tabs.tabs.map(function(i,o){return o!==t?i:Ke(Ke({},i),{headers:e.headers,variables:e.variables,query:e.query,operationName:e.operationName,response:e.response})});return Ke(Ke({},e),{headers:r.headers,variables:r.variables,query:r.query,operationName:r.operationName,response:r.response,tabs:Ke(Ke({},e.tabs),{activeTabIndex:e.tabs.tabs.length,tabs:pQ(n,[r])})})}var oa=Ee(zt()),Yne=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Yw=function(){return Yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ /*! * is-primitive * * Copyright (c) 2014-present, Jon Schlinkert. * Released under the MIT License. */ /*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ /*! * set-value * * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert). * Released under the MIT License. */ /** @license React v0.20.2 * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** @license React v17.0.2 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** @license React v17.0.2 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */