var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,a=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:"Module"}),r},u=(e,i,a,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(var l,u=r(i),c=0,d=u.length;ci[e]).bind(null,l),enumerable:!(s=n(i,l))||s.enumerable});return e},c=(n,r,o)=>(o=null!=n?e(i(n)):{},u(!r&&n&&n.__esModule?o:t(o,"default",{value:n,enumerable:!0}),n));!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var d,f=s(e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray;function E(){}var k={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function S(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:void 0!==i?i:null,props:r}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var _=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function A(e,r,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case t:case n:c=!0;break;case d:return A((c=e._init)(e._payload),r,i,o,a)}}if(c)return a=a(e),c=""===o?"."+N(e,0):o,x(a)?(i="",null!=c&&(i=c.replace(_,"$&/")+"/"),A(a,r,i,"",function(e){return e})):null!=a&&(T(a)&&(l=a,u=i+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+c,a=S(l.type,u,l.props)),r.push(a)),1;c=0;var f,h=""===o?".":o+":";if(x(e))for(var m=0;m{t.exports=f()}),h=s(e=>{function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ri(l,n))ui(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(ui(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function x(e){if(m=!1,w(e),!h)if(null!==n(l))h=!0,k||(k=!0,E());else{var t=n(u);null!==t&&O(x,t.startTime-e)}}var E,k=!1,C=-1,S=5,T=-1;function _(){return!(!g&&e.unstable_now()-Tt&&_());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,w(t),i=!0;break t}d===n(l)&&r(l),w(t)}else r(l);d=n(l)}if(null!==d)i=!0;else{var c=n(u);null!==c&&O(x,c.startTime-t),i=!1}}break e}finally{d=null,f=o,p=!1}i=void 0}}finally{i?E():k=!1}}}if("function"==typeof b)E=function(){b(N)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,D=A.port2;A.port1.onmessage=N,E=function(){D.postMessage(null)}}else E=function(){v(N,0)};function O(t,n){C=v(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125a?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(m?(y(C),C=-1):m=!0,O(x,o-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,k||(k=!0,E()))),r},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}),m=s((e,t)=>{t.exports=h()}),g=s(e=>{var t=p();function n(e){var t="https://react.dev/errors/"+e;if(1{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),t.exports=g()}),y=s(e=>{var t=m(),n=p(),r=v();function i(e){var t="https://react.dev/errors/"+e;if(1j||(e.current=R[j],R[j]=null,j--)}function z(e,t){j++,R[j]=e.current,e.current=t}var $,U,H=V(null),W=V(null),q=V(null),G=V(null);function K(e,t){switch(z(q,t),z(W,e),z(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=yd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(H),z(H,e)}function Y(){B(H),B(W),B(q)}function Q(e){null!==e.memoizedState&&z(G,e);var t=H.current,n=yd(t,e.type);t!==n&&(z(W,e),z(H,n))}function X(e){W.current===e&&(B(H),B(W)),G.current===e&&(B(G),df._currentValue=P)}function J(e){if(void 0===$)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||"",U=-1)":-1--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?J(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return J(e.type);case 16:return J("Lazy");case 13:return e.child!==t&&null!==t?J("Suspense Fallback"):J("Suspense");case 19:return J("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return J("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var re=Object.prototype.hasOwnProperty,ie=t.unstable_scheduleCallback,oe=t.unstable_cancelCallback,ae=t.unstable_shouldYield,se=t.unstable_requestPaint,le=t.unstable_now,ue=t.unstable_getCurrentPriorityLevel,ce=t.unstable_ImmediatePriority,de=t.unstable_UserBlockingPriority,fe=t.unstable_NormalPriority,pe=t.unstable_LowPriority,he=t.unstable_IdlePriority,me=t.log,ge=t.unstable_setDisableYieldValue,ve=null,ye=null;function be(e){if("function"==typeof me&&ge(e),ye&&"function"==typeof ye.setStrictMode)try{ye.setStrictMode(ve,e)}catch(t){}}var we=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(xe(e)/Ee|0)|0},xe=Math.log,Ee=Math.LN2,ke=256,Ce=262144,Se=4194304;function Te(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _e(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~o)?i=Te(r):0!==(a&=s)?i=Te(a):n||0!==(n=s&~e)&&(i=Te(n)):0!==(s=r&~o)?i=Te(s):0!==a?i=Te(a):n||0!==(n=r&~e)&&(i=Te(n)),0===i?0:0!==t&&t!==i&&0===(t&o)&&((o=i&-i)>=(n=t&-t)||32===o&&4194048&n)?t:i}function Ne(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ae(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function De(){var e=Se;return!(62914560&(Se<<=1))&&(Se=4194304),e}function Oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Le(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Me(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),i=1<=Tn),An=String.fromCharCode(32),Dn=!1;function On(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1,Mn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mn[e.type]:"textarea"===t}function Pn(e,t,n,r){Ft?Pt?Pt.push(r):Pt=[r]:Ft=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rn=null,jn=null;function Vn(e){Yc(e,0)}function Bn(e){if(ht(Je(e)))return e}function zn(e,t){if("change"===e)return t}var $n=!1;if(zt){var Un;if(zt){var Hn="oninput"in document;if(!Hn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Hn="function"==typeof Wn.oninput}Un=Hn}else Un=!1;$n=Un&&(!document.documentMode||9=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=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var or=zt&&"documentMode"in document&&11>=document.documentMode,ar=null,sr=null,lr=null,ur=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ur||null==ar||ar!==mt(r)||(r="selectionStart"in(r=ar)&&ir(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Zn(lr,r)||(lr=r,0<(r=rd(sr,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ar)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},pr={},hr={};function mr(e){if(pr[e])return pr[e];if(!fr[e])return e;var t,n=fr[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return pr[e]=n[t];return e}zt&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);var gr=mr("animationend"),vr=mr("animationiteration"),yr=mr("animationstart"),br=mr("transitionrun"),wr=mr("transitionstart"),xr=mr("transitioncancel"),Er=mr("transitionend"),kr=new Map,Cr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Sr(e,t){kr.set(e,t),rt(t,[e])}Cr.push("scrollEnd");var Tr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)},_r=[],Nr=0,Ar=0;function Dr(){for(var e=Nr,t=Ar=Nr=0;t>=a,i-=a,ni=1<<32-we(t)+i|n<f?(h=d,d=null):h=d.sibling;var g=m(i,d,s[f],l);if(null===g){null===d&&(d=h);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,f),null===c?u=g:c.sibling=g,c=g,d=h}if(f===s.length)return n(i,d),di&&ii(i,f),u;if(null===d){for(;fh?(g=f,f=null):g=f.sibling;var b=m(o,f,y.value,u);if(null===b){null===f&&(f=g);break}e&&f&&null===b.alternate&&t(o,f),s=a(b,s,h),null===d?c=b:d.sibling=b,d=b,f=g}if(y.done)return n(o,f),di&&ii(o,h),c;if(null===f){for(;!y.done;h++,y=l.next())null!==(y=p(o,y.value,u))&&(s=a(y,s,h),null===d?c=y:d.sibling=y,d=y);return di&&ii(o,h),c}for(f=r(f);!y.done;h++,y=l.next())null!==(y=v(f,o,h,y.value,u))&&(e&&null!==y.alternate&&f.delete(null===y.key?h:y.key),s=a(y,s,h),null===d?c=y:d.sibling=y,d=y);return e&&f.forEach(function(e){return t(o,e)}),di&&ii(o,h),c}(l,u,c=b.call(c),d)}if("function"==typeof c.then)return y(l,u,uo(c),d);if(c.$$typeof===x)return y(l,u,Ii(l,c),d);fo(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=o(u,c)).return=l,l=d):(n(l,u),(d=Hr(c,l.mode,d)).return=l,l=d),s(l)):n(l,u)}return function(e,t,n,r){try{lo=0;var i=y(e,t,n,r);return so=null,i}catch(a){if(a===Xi||a===Zi)throw a;var o=jr(29,a,null,e.mode);return o.lanes=r,o.return=e,o}}}var ho=po(!0),mo=po(!1),go=!1;function vo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function bo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&pu){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Fr(e),Mr(e,null,n),t}return Or(e,r,t,n),Fr(e)}function xo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Me(e,n)}}function Eo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ko=!1;function Co(){if(ko&&null!==Hi)throw Hi}function So(e,t,n,r){ko=!1;var i=e.updateQueue;go=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var d=e.alternate;null!==d&&(s=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===s?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l)}if(null!==o){var f=i.baseState;for(a=0,d=u=l=null,s=o;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(gu&p)===p:(r&p)===p){0!==p&&p===Ui&&(ko=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;p=t;var v=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){f=m.call(v,f,p);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(v,f,p):m))break e;f=c({},f,p);break e;case 2:go=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=h,l=f):d=d.next=h,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===d&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,null===o&&(i.shared.lanes=0),Cu|=a,e.lanes=a,e.memoizedState=f}}function To(e,t){if("function"!=typeof e)throw Error(i(191,e));e.call(t)}function _o(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;eo?o:8;var a,s,l,u=M.T,c={};M.T=c,ds(e,!1,t,n);try{var d=i(),f=M.S;null!==f&&f(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?cs(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?s.createElement(o,{is:r.is}):s.createElement(o)}}a[ze]=t,a[$e]=r;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;e:switch(fd(a,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&sl(t)}}return fl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=q.current,yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=ui))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ze]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ud(e.nodeValue,n)))||mi(t,!0)}else(e=gd(e).createTextNode(r))[ze]=t,t.stateNode=e}return fl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=yi(t),null!==n){if(null===e){if(!r)throw Error(i(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(i(557));e[ze]=t}else bi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fl(t),e=!1}else n=wi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Vo(t),t):(Vo(t),null);if(128&t.flags)throw Error(i(558))}return fl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=yi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[ze]=t}else bi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fl(t),o=!1}else o=wi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(Vo(t),t):(Vo(t),null)}return Vo(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==o&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cl(t,t.updateQueue),fl(t),null);case 4:return Y(),null===e&&Zc(t.stateNode.containerInfo),fl(t),null;case 10:return Ti(t.type),fl(t),null;case 19:if(B(Bo),null===(r=t.memoizedState))return fl(t),null;if(o=!!(128&t.flags),null===(a=r.rendering))if(o)dl(r,!1);else{if(0!==ku||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=zo(e))){for(t.flags|=128,dl(r,!1),e=a.updateQueue,t.updateQueue=e,cl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)zr(n,e),n=n.sibling;return z(Bo,1&Bo.current|2),di&&ii(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&le()>Mu&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=zo(a))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,cl(t,e),dl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate&&!di)return fl(t),null}else 2*le()-r.renderingStartTime>Mu&&536870912!==n&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=r.last)?e.sibling=a:t.child=a,r.last=a)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=le(),e.sibling=null,n=Bo.current,z(Bo,o?1&n|2:1&n),di&&ii(t,r.treeForkCount),e):(fl(t),null);case 22:case 23:return Vo(t),Lo(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(fl(t),6&t.subtreeFlags&&(t.flags|=8192)):fl(t),null!==(n=t.updateQueue)&&cl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&B(Gi),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ti(ji),fl(t),null;case 25:case 30:return null}throw Error(i(156,t.tag))}function hl(e,t){switch(si(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ti(ji),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(Vo(t),null===t.alternate)throw Error(i(340));bi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Vo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));bi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return B(Bo),null;case 4:return Y(),null;case 10:return Ti(t.type),null;case 22:case 23:return Vo(t),Lo(),null!==e&&B(Gi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ti(ji),null;default:return null}}function ml(e,t){switch(si(t),t.tag){case 3:Ti(ji),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&Vo(t);break;case 13:Vo(t);break;case 19:B(Bo);break;case 10:Ti(t.type);break;case 22:case 23:Vo(t),Lo(),null!==e&&B(Gi);break;case 24:Ti(ji)}}function gl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(Oh){kc(t,t.return,Oh)}}function vl(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,i=t;var l=n,u=s;try{u()}catch(Oh){kc(i,l,Oh)}}}r=r.next}while(r!==o)}}catch(Oh){kc(t,t.return,Oh)}}function yl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{_o(t,n)}catch(Oh){kc(e,e.return,Oh)}}}function bl(e,t,n){n.props=ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(Oh){kc(e,t,Oh)}}function wl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(Oh){kc(e,t,Oh)}}function xl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(Oh){kc(e,t,Oh)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){kc(e,t,i)}else n.current=null}function El(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(Oh){kc(e,e.return,Oh)}}function kl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,a=null,s=null,l=null,u=null,c=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":u=f;default:r.hasOwnProperty(h)||cd(e,t,h,null,r,f)}}for(var p in r){var h=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":o=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(i(137,t));break;default:h!==f&&cd(e,t,p,h,r,f)}}return void yt(e,s,l,u,c,d,a,o);case"select":for(a in h=s=l=p=null,n)if(u=n[a],n.hasOwnProperty(a)&&null!=u)switch(a){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(a)||cd(e,t,a,null,r,u)}for(o in r)if(a=r[o],u=n[o],r.hasOwnProperty(o)&&(null!=a||null!=u))switch(o){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==u&&cd(e,t,o,a,r,u)}return t=l,n=s,r=h,void(null!=p?xt(e,!!n,p,!1):!!r!=!!n&&(null!=t?xt(e,!!n,t,!0):xt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:cd(e,t,l,null,r,o)}for(s in r)if(o=r[s],a=n[s],r.hasOwnProperty(s)&&(null!=o||null!=a))switch(s){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(i(91));break;default:o!==a&&cd(e,t,s,o,r,a)}return void Et(e,p,h);case"option":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m)&&("selected"===m?e.selected=!1:cd(e,t,m,null,r,p));for(u in r)p=r[u],h=n[u],!r.hasOwnProperty(u)||p===h||null==p&&null==h||("selected"===u?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:cd(e,t,u,p,r,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&cd(e,t,g,null,r,p);for(c in r)if(p=r[c],h=n[c],r.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(i(137,t));break;default:cd(e,t,c,p,r,h)}return;default:if(Nt(t)){for(var v in n)p=n[v],n.hasOwnProperty(v)&&void 0!==p&&!r.hasOwnProperty(v)&&dd(e,t,v,void 0,r,p);for(d in r)p=r[d],h=n[d],!r.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||dd(e,t,d,p,r,h);return}}for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&cd(e,t,y,null,r,p);for(f in r)p=r[f],h=n[f],!r.hasOwnProperty(f)||p===h||null==p&&null==h||cd(e,t,f,p,r,h)}(r,e.type,n,t),r[$e]=t}catch(Oh){kc(e,e.return,Oh)}}function Cl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Td(e.type)||4===e.tag}function Sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Cl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Td(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Tl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Lt));else if(4!==r&&(27===r&&Td(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Tl(e,t,n),e=e.sibling;null!==e;)Tl(e,t,n),e=e.sibling}function _l(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Td(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(_l(e,t,n),e=e.sibling;null!==e;)_l(e,t,n),e=e.sibling}function Nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);fd(t,r,n),t[ze]=e,t[$e]=n}catch(Oh){kc(e,e.return,Oh)}}var Al=!1,Dl=!1,Ol=!1,Ll="function"==typeof WeakSet?WeakSet:Set,Il=null;function Ml(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Kl(e,n),4&r&&gl(5,n);break;case 1:if(Kl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(Oh){kc(n,n.return,Oh)}else{var i=ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){kc(n,n.return,a)}}64&r&&yl(n),512&r&&wl(n,n.return);break;case 3:if(Kl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{_o(e,t)}catch(Oh){kc(n,n.return,Oh)}}break;case 27:null===t&&4&r&&Nl(n);case 26:case 5:Kl(e,n),null===t&&4&r&&El(n),512&r&&wl(n,n.return);break;case 12:Kl(e,n);break;case 31:Kl(e,n),4&r&&Bl(e,n);break;case 13:Kl(e,n),4&r&&zl(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=_c.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Al)){t=null!==t&&null!==t.memoizedState||Dl,i=Al;var o=Dl;Al=r,(Dl=t)&&!o?Ql(e,n,!!(8772&n.subtreeFlags)):Kl(e,n),Al=i,Dl=o}break;case 30:break;default:Kl(e,n)}}function Fl(e){var t=e.alternate;null!==t&&(e.alternate=null,Fl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ye(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pl=null,Rl=!1;function jl(e,t,n){for(n=n.child;null!==n;)Vl(e,t,n),n=n.sibling}function Vl(e,t,n){if(ye&&"function"==typeof ye.onCommitFiberUnmount)try{ye.onCommitFiberUnmount(ve,n)}catch(o){}switch(n.tag){case 26:Dl||xl(n,t),jl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Dl||xl(n,t);var r=Pl,i=Rl;Td(n.type)&&(Pl=n.stateNode,Rl=!1),jl(e,t,n),jd(n.stateNode),Pl=r,Rl=i;break;case 5:Dl||xl(n,t);case 6:if(r=Pl,i=Rl,Pl=null,jl(e,t,n),Rl=i,null!==(Pl=r))if(Rl)try{(9===Pl.nodeType?Pl.body:"HTML"===Pl.nodeName?Pl.ownerDocument.body:Pl).removeChild(n.stateNode)}catch(Oh){kc(n,t,Oh)}else try{Pl.removeChild(n.stateNode)}catch(Oh){kc(n,t,Oh)}break;case 18:null!==Pl&&(Rl?(_d(9===(e=Pl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Uf(e)):_d(Pl,n.stateNode));break;case 4:r=Pl,i=Rl,Pl=n.stateNode.containerInfo,Rl=!0,jl(e,t,n),Pl=r,Rl=i;break;case 0:case 11:case 14:case 15:vl(2,n,t),Dl||vl(4,n,t),jl(e,t,n);break;case 1:Dl||(xl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&bl(n,t,r)),jl(e,t,n);break;case 21:jl(e,t,n);break;case 22:Dl=(r=Dl)||null!==n.memoizedState,jl(e,t,n),Dl=r;break;default:jl(e,t,n)}}function Bl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Uf(e)}catch(Oh){kc(t,t.return,Oh)}}}function zl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Uf(e)}catch(Oh){kc(t,t.return,Oh)}}function $l(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Ll),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ll),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Nc.bind(null,e,t);t.then(r,r)}})}function Ul(e,t){var n=t.deletions;if(null!==n)for(var r=0;r title"))),fd(a,r,n),a[ze]=e,et(a),r=a;break e;case"link":var s=nf("link","href",o).get(r+(n.href||""));if(s)for(var l=0;ls)break;var c=l.transferSize,d=l.initiatorType;c&&pd(d)&&(a+=c*((l=l.responseEnd)af?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}(d,h),null!==h)return Bu=o,e.cancelPendingCommit=h(mc.bind(null,e,t,o,n,r,i,a,s,l,c,d,null,f,p)),void Ju(e,o,a,!u)}mc(e,t,o,n,r,i,a,s,l)}function Xu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;rg&&(a=g,g=m,m=a);var v=tr(s,m),y=tr(s,g);if(v&&y&&(1!==p.rangeCount||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var b=d.createRange();b.setStart(v.node,v.offset),p.removeAllRanges(),m>g?(p.addRange(b),p.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),p.addRange(b))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;sn?32:n,M.T=null,n=$u,$u=null;var a=ju,s=Bu;if(Ru=0,Vu=ju=null,Bu=0,6&pu)throw Error(i(331));var l=pu;if(pu|=4,lu(a.current),eu(a,a.current,s,n),pu=l,Pc(0,!1),ye&&"function"==typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(ve,a)}catch(u){}return!0}finally{F.p=o,M.T=r,bc(e,t)}}function Ec(e,t,n){t=Kr(n,t),null!==(e=wo(e,t=As(e.stateNode,t,2),2))&&(Le(e,2),Fc(e))}function kc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Pu||!Pu.has(r))){e=Kr(n,e),null!==(r=wo(t,n=Ds(2),2))&&(Os(n,r,t,e),Le(r,2),Fc(r));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fu;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(xu=!0,i.add(n),e=Sc.bind(null,e,t,n),t.then(e,e))}function Sc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,hu===e&&(gu&n)===n&&(4===ku||3===ku&&(62914560&gu)===gu&&300>le()-Lu?!(2&pu)&&tc(e,0):Tu|=n,Nu===gu&&(Nu=0)),Fc(e)}function Tc(e,t){0===t&&(t=De()),null!==(e=Ir(e,t))&&(Le(e,t),Fc(e))}function _c(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),Tc(e,n)}var Ac=null,Dc=null,Oc=!1,Lc=!1,Ic=!1,Mc=0;function Fc(e){e!==Dc&&null===e.next&&(null===Dc?Ac=Dc=e:Dc=Dc.next=e),Lc=!0,Oc||(Oc=!0,Cd(function(){6&pu?ie(ce,Rc):jc()}))}function Pc(e,t){if(!Ic&&Lc){Ic=!0;do{for(var n=!1,r=Ac;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-we(42|e)+1)-1,o=201326741&(o&=i&~(a&~s))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,zc(r,o))}else o=gu,!(3&(o=_e(r,r===hu?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ne(r,o)||(n=!0,zc(r,o));r=r.next}}while(n);Ic=!1}}function Rc(){jc()}function jc(){Lc=Oc=!1;var e,t=0;0!==Mc&&((e=window.event)&&"popstate"===e.type?e!==wd&&(wd=e,1):(wd=null,0))&&(t=Mc);for(var n=le(),r=null,i=Ac;null!==i;){var o=i.next,a=Vc(i,n);0===a?(i.next=null,null===r?Ac=o:r.next=o,null===o&&(Dc=r)):(r=i,(0!==t||3&a)&&(Lc=!0)),i=o}0!==Ru&&5!==Ru||Pc(t,!1),0!==Mc&&(Mc=0)}function Vc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0 title"):null)}function of(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var af=0;function sf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)uf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var lf=null;function uf(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,lf=new Map,t.forEach(cf,e),lf=null,sf.call(e))}function cf(e,t){if(!(4&t.state.loading)){var n=lf.get(e);if(n)var r=n.get(null);else{n=new Map,lf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),t.exports=y()}),w=s(e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(e,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:void 0!==n?n:null,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r}),x=s((e,t)=>{t.exports=w()}),E=s((e,t)=>{var n,r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))l.call(e,s)||s===n||i(e,s,{get:()=>t[s],enumerable:!(r=o(t,s))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(c,{$dispatcherGuard:()=>S,$makeReadOnly:()=>_,$reset:()=>T,$structuralCheck:()=>L,c:()=>w,clearRenderCounterRegistry:()=>A,renderCounterRegistry:()=>N,useRenderCounter:()=>D}),t.exports=(n=c,u(i({},"__esModule",{value:!0}),n));var d,f,h=((e,t,n)=>(n=null!=e?r(s(e)):{},u(e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)))(p()),{useRef:m,useEffect:g,isValidElement:v}=h,y=null!=(d=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?d:h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.memo_cache_sentinel"),w="function"==typeof(null==(f=h.__COMPILER_RUNTIME)?void 0:f.c)?h.__COMPILER_RUNTIME.c:function(e){return h.useMemo(()=>{const t=new Array(e);for(let n=0;n{x[e]=()=>{throw new Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var E=null;function k(e){return y.ReactCurrentDispatcher.current=e,y.ReactCurrentDispatcher.current}x.useMemoCache=e=>{if(null==E)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return E.useMemoCache(e)};var C=[];function S(e){const t=y.ReactCurrentDispatcher.current;if(0===e){if(C.push(t),1===C.length&&(E=t),t===x)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");k(x)}else if(1===e){const e=C.pop();if(null==e)throw new Error("React Compiler internal error: unexpected null in guard stack");0===C.length&&(E=null),k(e)}else if(2===e)C.push(t),k(E);else{if(3!==e)throw new Error("React Compiler internal error: unreachable block"+e);{const e=C.pop();if(null==e)throw new Error("React Compiler internal error: unexpected null in guard stack");k(e)}}}function T(e){for(let t=0;t{e.count=0})}function D(e){const t=m(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){const n={count:0};!function(e,t){let n=N.get(e);null==n&&(n=new Set,N.set(e,n)),n.add(t)}(e,n),t.current=n}return()=>{null!==t.current&&function(e,t){const n=N.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var O=new Set;function L(e,t,n,r,i,o){function a(e,t,a,s){const l=`${r}:${o} [${i}] ${n}${a} changed from ${e} to ${t} at depth ${s}`;O.has(l)||O.add(l)}!function e(t,n,r,i){if(!(i>2)&&t!==n)if(typeof t!=typeof n)a("type "+typeof t,"type "+typeof n,r,i);else if("object"==typeof t){const o=Array.isArray(t),s=Array.isArray(n);if(null===t&&null!==n)a("null","type "+typeof n,r,i);else if(null===n)a("type "+typeof t,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)a(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(const[l,u]of t)n.has(l)?e(u,n.get(l),`${r}.get(${l})`,i+1):a(`Map instance with key ${l}`,`Map instance without key ${l}`,r,i);else a("Map instance","other value",r,i);else if(n instanceof Map)a("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)a(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(const e of n)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else a("Set instance","other value",r,i);else if(n instanceof Set)a("other value","Set instance",r,i);else if(o||s)if(o!==s)a("type "+(o?"array":"object"),"type "+(s?"array":"object"),r,i);else if(t.length!==n.length)a(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let a=0;a(t=Symbol[e])?t:Symbol.for("Symbol."+e),D=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t)=>{for(var n in t||(t={}))_.call(t,n)&&D(e,n,t[n]);if(T)for(var n of T(t))N.call(t,n)&&D(e,n,t[n]);return e},L=(e,t)=>C(e,S(t)),I=function(e,t){this[0]=e,this[1]=t};function M(e){return"object"==typeof e&&null!==e&&"function"==typeof e.then}function F(e){return"object"==typeof e&&null!==e&&"subscribe"in e&&"function"==typeof e.subscribe}function P(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}async function R(e){const t=await e;return P(t)?async function(e){var t;const n=null==(t=("return"in e?e:e[Symbol.asyncIterator]()).return)?void 0:t.bind(e),r=await("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return null==n||n(),r.value}(t):F(t)?(n=t,new Promise((e,t)=>{const r=n.subscribe({next(t){e(t),r.unsubscribe()},error:t,complete(){t(new Error("no value resolved"))}})})):t;var n}var j=a(()=>{d=Object.freeze({major:16,minor:13,patch:2,preReleaseTag:null})});function V(e,t){if(!Boolean(e))throw new Error(t)}var B=a(()=>{});function z(e){return"function"==typeof(null==e?void 0:e.then)}var $=a(()=>{});function U(e){return"object"==typeof e&&null!==e}var H=a(()=>{});function W(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var q,G=a(()=>{});function K(e,t){let n=0,r=1;for(const i of e.body.matchAll(q)){if("number"==typeof i.index||W(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var Y=a(()=>{G(),q=/\r\n|[\n\r]/g});function Q(e){return X(e.source,K(e.source,e.start))}function X(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l}\n`,c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let r=0;r["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+J([[a-1+" |",c[i-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function J(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}var Z,ee=a(()=>{Y()});function te(e){return void 0===e||0===e.length?void 0:e}var ne=a(()=>{H(),Y(),ee(),Z=class e extends Error{constructor(t,...n){var r,i,o;const{nodes:a,source:s,positions:l,path:u,originalError:c,extensions:d}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(n);super(t),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=c?c:void 0,this.nodes=te(Array.isArray(a)?a:a?[a]:void 0);const f=te(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==f||null===(i=f[0])||void 0===i?void 0:i.source,this.positions=null!=l?l:null==f?void 0:f.map(e=>e.start),this.locations=l&&s?l.map(e=>K(s,e)):null==f?void 0:f.map(e=>K(e.source,e.start));const p=U(null==c?void 0:c.extensions)?null==c?void 0:c.extensions:void 0;this.extensions=null!==(o=null!=d?d:p)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+Q(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+X(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}});function re(e,t,n){return new Z(`Syntax Error: ${n}`,{source:e,positions:[t]})}var ie,oe,ae,se,le,ue=a(()=>{ne()});function ce(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&se.has(t)}var de,fe,pe=a(()=>{ie=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},oe=class{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},ae={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},se=new Set(Object.keys(ae)),function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(le||(le={}))}),he=a(()=>{!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(de||(de={}))}),me=a(()=>{!function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(fe||(fe={}))});function ge(e){return 9===e||32===e}function ve(e){return e>=48&&e<=57}function ye(e){return e>=97&&e<=122||e>=65&&e<=90}function be(e){return ye(e)||95===e}function we(e){return ye(e)||ve(e)||95===e}var xe=a(()=>{});function Ee(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;a0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function ke(e){let t=0;for(;t{xe()}),_e=a(()=>{!function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(Ce||(Ce={}))});function Ne(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Ae(e,t){return De(e.charCodeAt(t))&&Oe(e.charCodeAt(t+1))}function De(e){return e>=55296&&e<=56319}function Oe(e){return e>=56320&&e<=57343}function Le(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return Ce.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Ie(e,t,n,r,i){const o=e.line;return new oe(t,n,r,o,1+n-e.lineStart,i)}function Me(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Ue(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw re(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function He(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const l=[];for(;o{ue(),pe(),Te(),xe(),_e(),Se=class{constructor(e){const t=new oe(Ce.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==Ce.EOF)do{if(e.next)e=e.next;else{const t=Me(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===Ce.COMMENT);return e}}});function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}var Ke=a(()=>{}),Ye=a(()=>{Ke()}),Qe=a(()=>{Ke(),Ye()});function Xe(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ge(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ge(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Je,Ze,et=a(()=>{Qe()});function tt(e){return nt(e,[])}function nt(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:nt(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>Ze)return"[Array]";const n=Math.min(Je,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>Ze?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map(([e,n])=>e+": "+nt(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var rt,it,ot,at,st=a(()=>{Je=10,Ze=2}),lt=a(()=>{st(),rt=globalThis.process&&!0,it=rt?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=tt(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1}}),ut=a(()=>{B(),st(),lt(),ot=class{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||V(!1,`Body must be a string. Received: ${tt(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||V(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||V(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}});function ct(e,t){const n=new at(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function dt(e){const t=e.value;return ft(e.kind)+(null!=t?` "${t}"`:"")}function ft(e){return function(e){return e===Ce.BANG||e===Ce.DOLLAR||e===Ce.AMP||e===Ce.PAREN_L||e===Ce.PAREN_R||e===Ce.DOT||e===Ce.SPREAD||e===Ce.COLON||e===Ce.EQUALS||e===Ce.AT||e===Ce.BRACKET_L||e===Ce.BRACKET_R||e===Ce.BRACE_L||e===Ce.PIPE||e===Ce.BRACE_R}(e)?`"${e}"`:e}var pt,ht=a(()=>{ue(),pe(),he(),me(),qe(),ut(),_e(),at=class{constructor(e,t={}){const{lexer:n,...r}=t;this._lexer=n||new Se(function(e){return it(e,ot)}(e)?e:new ot(e)),this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(Ce.NAME);return this.node(e,{kind:fe.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:fe.DOCUMENT,definitions:this.many(Ce.SOF,this.parseDefinition,Ce.EOF)})}parseDefinition(){if(this.peek(Ce.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===Ce.BRACE_L)throw re(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===Ce.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw re(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(Ce.BRACE_L))return this.node(e,{kind:fe.OPERATION_DEFINITION,operation:le.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(Ce.NAME)&&(r=this.parseName()),this.node(e,{kind:fe.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(Ce.NAME);switch(e.value){case"query":return le.QUERY;case"mutation":return le.MUTATION;case"subscription":return le.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(Ce.PAREN_L,this.parseVariableDefinition,Ce.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:fe.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(Ce.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ce.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(Ce.DOLLAR),this.node(e,{kind:fe.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:fe.SELECTION_SET,selections:this.many(Ce.BRACE_L,this.parseSelection,Ce.BRACE_R)})}parseSelection(){return this.peek(Ce.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(Ce.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:fe.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ce.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ce.PAREN_L,t,Ce.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(Ce.COLON),this.node(t,{kind:fe.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(Ce.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(Ce.NAME)?this.node(e,{kind:fe.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:fe.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:fe.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:fe.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case Ce.BRACKET_L:return this.parseList(e);case Ce.BRACE_L:return this.parseObject(e);case Ce.INT:return this.advanceLexer(),this.node(t,{kind:fe.INT,value:t.value});case Ce.FLOAT:return this.advanceLexer(),this.node(t,{kind:fe.FLOAT,value:t.value});case Ce.STRING:case Ce.BLOCK_STRING:return this.parseStringLiteral();case Ce.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:fe.BOOLEAN,value:!0});case"false":return this.node(t,{kind:fe.BOOLEAN,value:!1});case"null":return this.node(t,{kind:fe.NULL});default:return this.node(t,{kind:fe.ENUM,value:t.value})}case Ce.DOLLAR:if(e){if(this.expectToken(Ce.DOLLAR),this._lexer.token.kind===Ce.NAME){const e=this._lexer.token.value;throw re(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:fe.STRING,value:e.value,block:e.kind===Ce.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:fe.LIST,values:this.any(Ce.BRACKET_L,()=>this.parseValueLiteral(e),Ce.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:fe.OBJECT,fields:this.any(Ce.BRACE_L,()=>this.parseObjectField(e),Ce.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(Ce.COLON),this.node(t,{kind:fe.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(Ce.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(Ce.AT),this.node(t,{kind:fe.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(Ce.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(Ce.BRACKET_R),t=this.node(e,{kind:fe.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(Ce.BANG)?this.node(e,{kind:fe.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:fe.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Ce.STRING)||this.peek(Ce.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(Ce.BRACE_L,this.parseOperationTypeDefinition,Ce.BRACE_R);return this.node(e,{kind:fe.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(Ce.COLON);const n=this.parseNamedType();return this.node(e,{kind:fe.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:fe.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:fe.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Ce.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Ce.BRACE_L,this.parseFieldDefinition,Ce.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(Ce.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:fe.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(Ce.PAREN_L,this.parseInputValueDef,Ce.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Ce.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(Ce.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:fe.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:fe.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:fe.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(Ce.EQUALS)?this.delimitedMany(Ce.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:fe.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(Ce.BRACE_L,this.parseEnumValueDefinition,Ce.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:fe.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw re(this._lexer.source,this._lexer.token.start,`${dt(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:fe.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(Ce.BRACE_L,this.parseInputValueDef,Ce.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===Ce.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(Ce.BRACE_L,this.parseOperationTypeDefinition,Ce.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:fe.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:fe.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:fe.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:fe.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:fe.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:fe.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:fe.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ce.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:fe.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Ce.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(de,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(Ce.AT),n=this.parseName();let r,i;return!t&&this.expectOptionalToken(Ce.DOT)&&(r=this.parseName()),(t||r)&&this.expectOptionalToken(Ce.PAREN_L)&&(i=this.parseName(),this.expectToken(Ce.COLON),this.expectToken(Ce.PAREN_R)),t?i?this.node(e,{kind:fe.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:fe.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:fe.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:fe.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:fe.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new ie(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw re(this._lexer.source,t.start,`Expected ${ft(e)}, found ${dt(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==Ce.NAME||t.value!==e)throw re(this._lexer.source,t.start,`Expected "${e}", found ${dt(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===Ce.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return re(this._lexer.source,t.start,`Unexpected ${dt(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==Ce.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw re(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}});function mt(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,pt),s=a.pop();return i+a.join(", ")+", or "+s+"?"}var gt=a(()=>{pt=5});function vt(e){return e}var yt=a(()=>{});function bt(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}var wt=a(()=>{});function xt(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}var Et=a(()=>{});function kt(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}var Ct,St,Tt=a(()=>{});function _t(e,t){let n=0,r=0;for(;n0);let s=0;do{++r,s=10*s+o-Ct,o=t.charCodeAt(r)}while(Nt(o)&&s>0);if(as)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}function Nt(e){return!isNaN(e)&&Ct<=e&&e<=St}var At,Dt=a(()=>{Ct=48,St=57});function Ot(e,t){const n=Object.create(null),r=new At(e),i=Math.floor(.4*e.length)+1;for(const o of t){const e=r.measure(o,i);void 0!==e&&(n[o]=e)}return Object.keys(n).sort((e,t)=>{const r=n[e]-n[t];return 0!==r?r:_t(e,t)})}function Lt(e){const t=e.length,n=new Array(t);for(let r=0;r{Dt(),At=class{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Lt(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=Lt(n),i=this._inputArray;if(r.lengtht)return;const s=this._rows;for(let u=0;u<=a;u++)s[0][u]=u;for(let u=1;u<=o;u++){const e=s[(u-1)%3],n=s[u%3];let o=n[0]=u;for(let t=1;t<=a;t++){const a=r[u-1]===i[t-1]?0:1;let l=Math.min(e[t]+1,n[t-1]+1,e[t-1]+a);if(u>1&&t>1&&r[u-1]===i[t-2]&&r[u-2]===i[t-1]){const e=s[(u-2)%3][t-2];l=Math.min(l,e+1)}lt)return}const l=s[o%3][a];return l<=t?l:void 0}}});function Mt(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}var Ft,Pt,Rt=a(()=>{});function jt(e){return Pt[e.charCodeAt(0)]}var Vt,Bt=a(()=>{Ft=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g,Pt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});function zt(e,t,n=ae){const r=new Map;for(const v of Object.values(fe))r.set(v,$t(t,v));let i,o,a,s=Array.isArray(e),l=[e],u=-1,c=[],d=e;const f=[],p=[];do{u++;const e=u===l.length,v=e&&0!==c.length;if(e){if(o=0===p.length?void 0:f[f.length-1],d=a,a=p.pop(),v)if(s){d=d.slice();let e=0;for(const[t,n]of c){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d={...d};for(const[e,t]of c)d[e]=t}u=i.index,l=i.keys,c=i.edits,s=i.inArray,i=i.prev}else if(a){if(o=s?u:l[u],d=a[o],null==d)continue;f.push(o)}let y;if(!Array.isArray(d)){var h,m;ce(d)||V(!1,`Invalid AST Node: ${tt(d)}.`);const n=e?null===(h=r.get(d.kind))||void 0===h?void 0:h.leave:null===(m=r.get(d.kind))||void 0===m?void 0:m.enter;if(y=null==n?void 0:n.call(t,d,o,a,f,p),y===Vt)break;if(!1===y){if(!e){f.pop();continue}}else if(void 0!==y&&(c.push([o,y]),!e)){if(!ce(y)){f.pop();continue}d=y}}var g;void 0===y&&v&&c.push([o,d]),e?f.pop():(i={inArray:s,index:u,keys:l,edits:c,prev:i},s=Array.isArray(d),l=s?d:null!==(g=n[d.kind])&&void 0!==g?g:[],u=-1,c=[],a&&p.push(a),a=d)}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}function $t(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var Ut,Ht=a(()=>{B(),st(),pe(),me(),Vt=Object.freeze({})});function Wt(e){return zt(e,Ut)}function qt(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function Gt(e){return Kt("{\n",Yt(qt(e,"\n")),"\n}")}function Kt(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Yt(e){return Kt(" ",e.replace(/\n/g,"\n "))}function Qt(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var Xt=a(()=>{Te(),Bt(),Ht(),Ut={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>qt(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Qt(e.variableDefinitions)?Kt("(\n",qt(e.variableDefinitions,"\n"),"\n)"):Kt("(",qt(e.variableDefinitions,", "),")"),n=Kt("",e.description,"\n")+qt([e.operation,qt([e.name,t]),qt(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>Kt("",i,"\n")+e+": "+t+Kt(" = ",n)+Kt(" ",qt(r," "))},SelectionSet:{leave:({selections:e})=>Gt(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Kt("",e,": ")+t;let a=o+Kt("(",qt(n,", "),")");return a.length>80&&(a=o+Kt("(\n",Yt(qt(n,"\n")),"\n)")),qt([a,qt(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Kt(" ",qt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>qt(["...",Kt("on ",e),qt(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>Kt("",o,"\n")+`fragment ${e}${Kt("(",qt(n,", "),")")} on ${t} ${Kt("",qt(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e){const t=e.replace(/"""/g,'\\"""'),n=t.split(/\r\n|[\n\r]/g),r=1===n.length,i=n.length>1&&n.slice(1).every(e=>0===e.length||ge(e.charCodeAt(0))),o=t.endsWith('\\"""'),a=e.endsWith('"')&&!o,s=e.endsWith("\\"),l=a||s,u=!r||e.length>70||l||i||o;let c="";const d=r&&ge(e.charCodeAt(0));return(u&&!d||i)&&(c+="\n"),c+=t,(u||l)&&(c+="\n"),'"""'+c+'"""'}(e):`"${e.replace(Ft,jt)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+qt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+qt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Kt("(",qt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Kt("",e,"\n")+qt(["schema",qt(t," "),Gt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Kt("",e,"\n")+qt(["scalar",t,qt(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Kt("",e,"\n")+qt(["type",t,Kt("implements ",qt(n," & ")),qt(r," "),Gt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Kt("",e,"\n")+t+(Qt(n)?Kt("(\n",Yt(qt(n,"\n")),"\n)"):Kt("(",qt(n,", "),")"))+": "+r+Kt(" ",qt(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Kt("",e,"\n")+qt([t+": "+n,Kt("= ",r),qt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Kt("",e,"\n")+qt(["interface",t,Kt("implements ",qt(n," & ")),qt(r," "),Gt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Kt("",e,"\n")+qt(["union",t,qt(n," "),Kt("= ",qt(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Kt("",e,"\n")+qt(["enum",t,qt(n," "),Gt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Kt("",e,"\n")+qt([t,qt(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Kt("",e,"\n")+qt(["input",t,qt(n," "),Gt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Kt("",e,"\n")+"directive @"+t+(Qt(n)?Kt("(\n",Yt(qt(n,"\n")),"\n)"):Kt("(",qt(n,", "),")"))+(r?" repeatable":"")+" on "+qt(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>qt(["extend schema",qt(e," "),Gt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>qt(["extend scalar",e,qt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qt(["extend type",e,Kt("implements ",qt(t," & ")),qt(n," "),Gt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qt(["extend interface",e,Kt("implements ",qt(t," & ")),qt(n," "),Gt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>qt(["extend union",e,qt(t," "),Kt("= ",qt(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>qt(["extend enum",e,qt(t," "),Gt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>qt(["extend input",e,qt(t," "),Gt(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>qt([e,Kt(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>qt([e,Kt(".",t),Kt("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>qt(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>qt(["@",e,Kt("(",t,":)")])}}});function Jt(e,t){switch(e.kind){case fe.NULL:return null;case fe.INT:return parseInt(e.value,10);case fe.FLOAT:return parseFloat(e.value);case fe.STRING:case fe.ENUM:case fe.BOOLEAN:return e.value;case fe.LIST:return e.values.map(e=>Jt(e,t));case fe.OBJECT:return xt(e.fields,e=>e.name.value,e=>Jt(e.value,t));case fe.VARIABLE:return null==t?void 0:t[e.name.value]}}var Zt=a(()=>{Et(),me()});function en(e){if(null!=e||V(!1,"Must provide name."),"string"==typeof e||V(!1,"Expected name to be a string."),0===e.length)throw new Z("Expected name to be a non-empty string.");for(let t=1;t{B(),ne(),xe()});function fn(e){return pn(e)||hn(e)||mn(e)||gn(e)||vn(e)||yn(e)||bn(e)||wn(e)}function pn(e){return it(e,on)}function hn(e){return it(e,an)}function mn(e){return it(e,sn)}function gn(e){return it(e,ln)}function vn(e){return it(e,un)}function yn(e){return it(e,cn)}function bn(e){return it(e,nn)}function wn(e){return it(e,rn)}function xn(e){return pn(e)||vn(e)||yn(e)||Tn(e)&&xn(e.ofType)}function En(e){return pn(e)||hn(e)||mn(e)||gn(e)||vn(e)||Tn(e)&&En(e.ofType)}function kn(e){return pn(e)||vn(e)}function Cn(e){return hn(e)||mn(e)||gn(e)}function Sn(e){return mn(e)||gn(e)}function Tn(e){return bn(e)||wn(e)}function _n(e){return fn(e)&&!wn(e)}function Nn(e){if(e)return wn(e)?e.ofType:e}function An(e){return pn(e)||hn(e)||mn(e)||gn(e)||vn(e)||yn(e)}function Dn(e){if(e){let t=e;for(;Tn(t);)t=t.ofType;return t}}function On(e){return"function"==typeof e?e():e}function Ln(e){return"function"==typeof e?e():e}function In(e){var t;const n=On(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||V(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Mn(e){const t=Ln(e.fields);return Pn(t)||V(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),kt(t,(t,n)=>{var r;Pn(t)||V(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||V(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${tt(t.resolve)}.`);const i=null!==(r=t.args)&&void 0!==r?r:{};return Pn(i)||V(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:en(n),description:t.description,type:t.type,args:Fn(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:Mt(t.extensions),astNode:t.astNode}})}function Fn(e){return Object.entries(e).map(([e,t])=>({name:en(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Mt(t.extensions),astNode:t.astNode}))}function Pn(e){return U(e)&&!Array.isArray(e)}function Rn(e){return kt(e,e=>({description:e.description,type:e.type,args:jn(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function jn(e){return xt(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Vn(e){return wn(e.type)&&void 0===e.defaultValue}function Bn(e){const t=On(e.types);return Array.isArray(t)||V(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}function zn(e,t){return mt("the enum value",Ot(t,e.getValues().map(e=>e.name)))}function $n(e,t){return Pn(t)||V(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(Pn(n)||V(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${tt(n)}.`),{name:tn(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:Mt(n.extensions),astNode:n.astNode}))}function Un(e){const t=Ln(e.fields);return Pn(t)||V(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),kt(t,(t,n)=>(!("resolve"in t)||V(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:en(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Mt(t.extensions),astNode:t.astNode}))}function Hn(e){return wn(e.type)&&void 0===e.defaultValue}var Wn=a(()=>{B(),gt(),yt(),st(),lt(),H(),wt(),Et(),Tt(),It(),Rt(),ne(),me(),Xt(),Zt(),dn(),nn=class{constructor(e){fn(e)||V(!1,`Expected ${tt(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},rn=class{constructor(e){_n(e)||V(!1,`Expected ${tt(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}},on=class{constructor(e){var t,n,r,i;const o=null!==(t=e.parseValue)&&void 0!==t?t:vt;this.name=en(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:vt,this.parseValue=o,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>o(Jt(e,t)),this.extensions=Mt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||V(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${tt(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||V(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||V(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},an=class{constructor(e){var t;this.name=en(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=Mt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Mn(e),this._interfaces=()=>In(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||V(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${tt(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Rn(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},sn=class{constructor(e){var t;this.name=en(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Mt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Mn.bind(void 0,e),this._interfaces=In.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||V(!1,`${this.name} must provide "resolveType" as a function, but got: ${tt(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Rn(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},ln=class{constructor(e){var t;this.name=en(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Mt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Bn.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||V(!1,`${this.name} must provide "resolveType" as a function, but got: ${tt(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},un=class{constructor(e){var t;this.name=en(e.name),this.description=e.description,this.extensions=Mt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:$n(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=$n(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=bt(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));const t=this._valueLookup.get(e);if(void 0===t)throw new Z(`Enum "${this.name}" cannot represent value: ${tt(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=tt(e);throw new Z(`Enum "${this.name}" cannot represent non-string value: ${t}.`+zn(this,t))}const t=this.getValue(e);if(null==t)throw new Z(`Value "${e}" does not exist in "${this.name}" enum.`+zn(this,e));return t.value}parseLiteral(e,t){if(e.kind!==fe.ENUM){const t=Wt(e);throw new Z(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+zn(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=Wt(e);throw new Z(`Value "${t}" does not exist in "${this.name}" enum.`+zn(this,t),{nodes:e})}return n.value}toConfig(){const e=xt(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},cn=class{constructor(e){var t,n;this.name=en(e.name),this.description=e.description,this.extensions=Mt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=Un.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=kt(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}});function qn(e,t){return e===t||(wn(e)&&wn(t)||!(!bn(e)||!bn(t)))&&qn(e.ofType,t.ofType)}function Gn(e,t,n){return t===n||(wn(n)?!!wn(t)&&Gn(e,t.ofType,n.ofType):wn(t)?Gn(e,t.ofType,n):bn(n)?!!bn(t)&&Gn(e,t.ofType,n.ofType):!bn(t)&&Sn(n)&&(mn(t)||hn(t))&&e.isSubType(n,t))}function Kn(e,t,n){return t===n||(Sn(t)?Sn(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!Sn(n)&&e.isSubType(n,t))}var Yn,Qn,Xn,Jn,Zn,er,tr=a(()=>{Wn()});function nr(e){if(U(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!U(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var rr,ir,or,ar,sr,lr,ur,cr=a(()=>{st(),H(),ne(),me(),Xt(),Wn(),Yn=new on({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=nr(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new Z(`Int cannot represent non-integer value: ${tt(t)}`);if(n>2147483647||n<-2147483648)throw new Z("Int cannot represent non 32-bit signed integer value: "+tt(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new Z(`Int cannot represent non-integer value: ${tt(e)}`);if(e>2147483647||e<-2147483648)throw new Z(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==fe.INT)throw new Z(`Int cannot represent non-integer value: ${Wt(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>2147483647||t<-2147483648)throw new Z(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),Qn=new on({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=nr(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new Z(`Float cannot represent non numeric value: ${tt(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new Z(`Float cannot represent non numeric value: ${tt(e)}`);return e},parseLiteral(e){if(e.kind!==fe.FLOAT&&e.kind!==fe.INT)throw new Z(`Float cannot represent non numeric value: ${Wt(e)}`,e);return parseFloat(e.value)}}),Xn=new on({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=nr(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new Z(`String cannot represent value: ${tt(e)}`)},parseValue(e){if("string"!=typeof e)throw new Z(`String cannot represent a non string value: ${tt(e)}`);return e},parseLiteral(e){if(e.kind!==fe.STRING)throw new Z(`String cannot represent a non string value: ${Wt(e)}`,{nodes:e});return e.value}}),Jn=new on({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=nr(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new Z(`Boolean cannot represent a non boolean value: ${tt(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new Z(`Boolean cannot represent a non boolean value: ${tt(e)}`);return e},parseLiteral(e){if(e.kind!==fe.BOOLEAN)throw new Z(`Boolean cannot represent a non boolean value: ${Wt(e)}`,{nodes:e});return e.value}}),Zn=new on({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=nr(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new Z(`ID cannot represent value: ${tt(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new Z(`ID cannot represent value: ${tt(e)}`)},parseLiteral(e){if(e.kind!==fe.STRING&&e.kind!==fe.INT)throw new Z("ID cannot represent a non-string and non-integer value: "+Wt(e),{nodes:e});return e.value}}),er=Object.freeze([Xn,Yn,Qn,Jn,Zn])});function dr(e){return it(e,rr)}var fr=a(()=>{B(),lt(),H(),Rt(),he(),dn(),Wn(),cr(),rr=class{constructor(e){var t,n;this.name=en(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=Mt(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||V(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};U(r)&&!Array.isArray(r)||V(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Fn(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:jn(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},ir=new rr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[de.FIELD,de.FRAGMENT_SPREAD,de.INLINE_FRAGMENT],args:{if:{type:new rn(Jn),description:"Included when true."}}}),or=new rr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[de.FIELD,de.FRAGMENT_SPREAD,de.INLINE_FRAGMENT],args:{if:{type:new rn(Jn),description:"Skipped when true."}}}),ar=new rr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[de.FIELD_DEFINITION,de.ARGUMENT_DEFINITION,de.INPUT_FIELD_DEFINITION,de.ENUM_VALUE],args:{reason:{type:Xn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:"No longer supported"}}}),sr=new rr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[de.SCALAR],args:{url:{type:new rn(Xn),description:"The URL that specifies the behavior of this scalar."}}}),lr=new rr({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[de.INPUT_OBJECT],args:{}}),ur=Object.freeze([ir,or,ar,sr,lr])});function pr(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}var hr,mr=a(()=>{});function gr(e,t){if(wn(t)){const n=gr(e,t.ofType);return(null==n?void 0:n.kind)===fe.NULL?null:n}if(null===e)return{kind:fe.NULL};if(void 0===e)return null;if(bn(t)){const n=t.ofType;if(pr(e)){const t=[];for(const r of e){const e=gr(r,n);null!=e&&t.push(e)}return{kind:fe.LIST,values:t}}return gr(e,n)}if(yn(t)){if(!U(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=gr(e[r.name],r.type);t&&n.push({kind:fe.OBJECT_FIELD,name:{kind:fe.NAME,value:r.name},value:t})}return{kind:fe.OBJECT,fields:n}}if(kn(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:fe.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return hr.test(e)?{kind:fe.INT,value:e}:{kind:fe.FLOAT,value:e}}if("string"==typeof n)return vn(t)?{kind:fe.ENUM,value:n}:t===Zn&&hr.test(n)?{kind:fe.INT,value:n}:{kind:fe.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${tt(n)}.`)}W(!1,"Unexpected input type: "+tt(t))}var vr,yr,br,wr,xr,Er,kr,Cr,Sr,Tr,_r,Nr,Ar,Dr=a(()=>{st(),G(),mr(),H(),me(),Wn(),cr(),hr=/^-?(?:0|[1-9][0-9]*)$/});function Or(e){return Ar.some(({name:t})=>e.name===t)}var Lr,Ir=a(()=>{st(),G(),he(),Xt(),Dr(),Wn(),cr(),vr=new an({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Xn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new rn(new nn(new rn(wr))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new rn(wr),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:wr,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:wr,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new rn(new nn(new rn(yr))),resolve:e=>e.getDirectives()}})}),yr=new an({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new rn(Xn),resolve:e=>e.name},description:{type:Xn,resolve:e=>e.description},isRepeatable:{type:new rn(Jn),resolve:e=>e.isRepeatable},locations:{type:new rn(new nn(new rn(br))),resolve:e=>e.locations},args:{type:new rn(new nn(new rn(Er))),args:{includeDeprecated:{type:Jn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),br=new un({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:de.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:de.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:de.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:de.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:de.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:de.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:de.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:de.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:de.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:de.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:de.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:de.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:de.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:de.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:de.UNION,description:"Location adjacent to a union definition."},ENUM:{value:de.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:de.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:de.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:de.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),wr=new an({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new rn(Sr),resolve:e=>pn(e)?Cr.SCALAR:hn(e)?Cr.OBJECT:mn(e)?Cr.INTERFACE:gn(e)?Cr.UNION:vn(e)?Cr.ENUM:yn(e)?Cr.INPUT_OBJECT:bn(e)?Cr.LIST:wn(e)?Cr.NON_NULL:void W(!1,`Unexpected type: "${tt(e)}".`)},name:{type:Xn,resolve:e=>"name"in e?e.name:void 0},description:{type:Xn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Xn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new nn(new rn(xr)),args:{includeDeprecated:{type:Jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(hn(e)||mn(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new nn(new rn(wr)),resolve(e){if(hn(e)||mn(e))return e.getInterfaces()}},possibleTypes:{type:new nn(new rn(wr)),resolve(e,t,n,{schema:r}){if(Sn(e))return r.getPossibleTypes(e)}},enumValues:{type:new nn(new rn(kr)),args:{includeDeprecated:{type:Jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(vn(e)){const n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new nn(new rn(Er)),args:{includeDeprecated:{type:Jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(yn(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:wr,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Jn,resolve:e=>{if(yn(e))return e.isOneOf}}})}),xr=new an({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new rn(Xn),resolve:e=>e.name},description:{type:Xn,resolve:e=>e.description},args:{type:new rn(new nn(new rn(Er))),args:{includeDeprecated:{type:Jn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new rn(wr),resolve:e=>e.type},isDeprecated:{type:new rn(Jn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Xn,resolve:e=>e.deprecationReason}})}),Er=new an({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new rn(Xn),resolve:e=>e.name},description:{type:Xn,resolve:e=>e.description},type:{type:new rn(wr),resolve:e=>e.type},defaultValue:{type:Xn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=gr(n,t);return r?Wt(r):null}},isDeprecated:{type:new rn(Jn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Xn,resolve:e=>e.deprecationReason}})}),kr=new an({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new rn(Xn),resolve:e=>e.name},description:{type:Xn,resolve:e=>e.description},isDeprecated:{type:new rn(Jn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Xn,resolve:e=>e.deprecationReason}})}),function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(Cr||(Cr={})),Sr=new un({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Cr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Cr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Cr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Cr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Cr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Cr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Cr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Cr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Tr={name:"__schema",type:new rn(vr),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},_r={name:"__type",type:wr,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new rn(Xn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Nr={name:"__typename",type:new rn(Xn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ar=Object.freeze([vr,yr,br,wr,xr,Er,kr,Sr])});function Mr(e){return it(e,Lr)}function Fr(e,t){const n=Dn(e);if(!t.has(n))if(t.add(n),gn(n))for(const r of n.getTypes())Fr(r,t);else if(hn(n)||mn(n)){for(const e of n.getInterfaces())Fr(e,t);for(const e of Object.values(n.getFields())){Fr(e.type,t);for(const n of e.args)Fr(n.type,t)}}else if(yn(n))for(const r of Object.values(n.getFields()))Fr(r.type,t);return t}var Pr,Rr=a(()=>{B(),st(),lt(),H(),Rt(),pe(),Wn(),fr(),Ir(),Lr=class{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,U(e)||V(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||V(!1,`"types" must be Array if provided but got: ${tt(e.types)}.`),!e.directives||Array.isArray(e.directives)||V(!1,`"directives" must be Array if provided but got: ${tt(e.directives)}.`),this.description=e.description,this.extensions=Mt(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:ur;const r=new Set(e.types);if(null!=e.types)for(const i of e.types)r.delete(i),Fr(i,r);null!=this._queryType&&Fr(this._queryType,r),null!=this._mutationType&&Fr(this._mutationType,r),null!=this._subscriptionType&&Fr(this._subscriptionType,r);for(const i of this._directives)if(dr(i))for(const e of i.args)Fr(e.type,r);Fr(vr,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const i of r){if(null==i)continue;const e=i.name;if(e||V(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[e])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${e}".`);if(this._typeMap[e]=i,mn(i)){for(const t of i.getInterfaces())if(mn(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.interfaces.push(i)}}else if(hn(i))for(const t of i.getInterfaces())if(mn(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.objects.push(i)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case le.QUERY:return this.getQueryType();case le.MUTATION:return this.getMutationType();case le.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return gn(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),gn(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}});function jr(e){if(function(e){if(!Mr(e))throw new Error(`Expected ${tt(e)} to be a GraphQL schema.`)}(e),e.__validationErrors)return e.__validationErrors;const t=new Pr(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!hn(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${tt(n)}.`,null!==(r=Br(t,le.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const i=t.getMutationType();var o;i&&!hn(i)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${tt(i)}.`,null!==(o=Br(t,le.MUTATION))&&void 0!==o?o:i.astNode);const a=t.getSubscriptionType();var s;a&&!hn(a)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${tt(a)}.`,null!==(s=Br(t,le.SUBSCRIPTION))&&void 0!==s?s:a.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(dr(n)){zr(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args){var t;zr(e,r),xn(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${tt(r.type)}.`,r.astNode),Vn(r)&&null!=r.deprecationReason&&e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Jr(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${tt(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if(wn(t.type)&&yn(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))An(r)?(Or(r)||zr(e,r),hn(r)||mn(r)?($r(e,r),Ur(e,r)):gn(r)?qr(e,r):vn(r)?Gr(e,r):yn(r)&&(Kr(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${tt(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Vr(e){const t=jr(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}function Br(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function zr(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function $r(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var r;zr(e,a),En(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${tt(a.type)}.`,null===(r=a.astNode)||void 0===r?void 0:r.type);for(const n of a.args){const r=n.name;var i,o;zr(e,n),xn(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${tt(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type),Vn(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[Jr(n.astNode),null===(o=n.astNode)||void 0===o?void 0:o.type])}}}function Ur(e,t){const n=Object.create(null);for(const r of t.getInterfaces())mn(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Qr(t,r)):(n[r.name]=!0,Wr(e,t,r),Hr(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Qr(t,r)):e.reportError(`Type ${tt(t)} must only implement Interface types, it cannot implement ${tt(r)}.`,Qr(t,r))}function Hr(e,t,n){const r=t.getFields();for(const l of Object.values(n.getFields())){const u=l.name,c=r[u];if(c){var i,o;Gn(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${tt(l.type)} but ${t.name}.${u} is type ${tt(c.type)}.`,[null===(i=l.astNode)||void 0===i?void 0:i.type,null===(o=c.astNode)||void 0===o?void 0:o.type]);for(const r of l.args){const i=r.name,o=c.args.find(e=>e.name===i);var a,s;o?qn(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${tt(r.type)} but ${t.name}.${u}(${i}:) is type ${tt(o.type)}.`,[null===(a=r.astNode)||void 0===a?void 0:a.type,null===(s=o.astNode)||void 0===s?void 0:s.type]):e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode])}for(const r of c.args){const i=r.name;!l.args.find(e=>e.name===i)&&Vn(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}else e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes])}}function Wr(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Qr(n,i),...Qr(t,n)])}function qr(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Xr(t,i.name)):(r[i.name]=!0,hn(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${tt(i)}.`,Xr(t,String(i))))}function Gr(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const r of n)zr(e,r)}function Kr(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){var r,i;zr(e,o),xn(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${tt(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type),Hn(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[Jr(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type]),t.isOneOf&&Yr(t,o,e)}}function Yr(e,t,n){var r;wn(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function Qr(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function Xr(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function Jr(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===ar.name)}var Zr=a(()=>{st(),ne(),pe(),tr(),Wn(),fr(),Ir(),Rr(),Pr=class{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new Z(e,{nodes:n}))}getErrors(){return this._errors}}});function ei(e,t){switch(t.kind){case fe.LIST_TYPE:{const n=ei(e,t.type);return n&&new nn(n)}case fe.NON_NULL_TYPE:{const n=ei(e,t.type);return n&&new rn(n)}case fe.NAMED_TYPE:return e.getType(t.name.value)}}var ti,ni=a(()=>{me(),Wn()});function ri(e,t,n){const r=n.name.value;return r===Tr.name&&e.getQueryType()===t?Tr:r===_r.name&&e.getQueryType()===t?_r:r===Nr.name&&Cn(t)?Nr:hn(t)||mn(t)?t.getFields()[r]:void 0}function ii(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=$t(t,r.kind).enter;if(i){const o=i.apply(t,n);return void 0!==o&&(e.leave(r),ce(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=$t(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}var oi=a(()=>{pe(),me(),Ht(),Wn(),Ir(),ni(),ti=class{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:ri,t&&(xn(t)&&this._inputTypeStack.push(t),Cn(t)&&this._parentTypeStack.push(t),En(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case fe.SELECTION_SET:{const e=Dn(this.getType());this._parentTypeStack.push(Cn(e)?e:void 0);break}case fe.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(En(i)?i:void 0);break}case fe.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case fe.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(hn(n)?n:void 0);break}case fe.INLINE_FRAGMENT:case fe.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?ei(t,n):Dn(this.getType());this._typeStack.push(En(r)?r:void 0);break}case fe.VARIABLE_DEFINITION:{const n=ei(t,e.type);this._inputTypeStack.push(xn(n)?n:void 0);break}case fe.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(xn(r)?r:void 0);break}case fe.LIST:{const e=Nn(this.getInputType()),t=bn(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(xn(t)?t:void 0);break}case fe.OBJECT_FIELD:{const t=Dn(this.getInputType());let n,r;yn(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(xn(n)?n:void 0);break}case fe.ENUM:{const t=Dn(this.getInputType());let n;vn(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case fe.SELECTION_SET:this._parentTypeStack.pop();break;case fe.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case fe.DIRECTIVE:this._directive=null;break;case fe.OPERATION_DEFINITION:case fe.INLINE_FRAGMENT:case fe.FRAGMENT_DEFINITION:this._typeStack.pop();break;case fe.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case fe.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case fe.LIST:case fe.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case fe.ENUM:this._enumValue=null}}}});function ai(e){return e.kind===fe.OPERATION_DEFINITION||e.kind===fe.FRAGMENT_DEFINITION}function si(e){return e.kind===fe.SCALAR_TYPE_DEFINITION||e.kind===fe.OBJECT_TYPE_DEFINITION||e.kind===fe.INTERFACE_TYPE_DEFINITION||e.kind===fe.UNION_TYPE_DEFINITION||e.kind===fe.ENUM_TYPE_DEFINITION||e.kind===fe.INPUT_OBJECT_TYPE_DEFINITION}function li(e){return e.kind===fe.SCALAR_TYPE_EXTENSION||e.kind===fe.OBJECT_TYPE_EXTENSION||e.kind===fe.INTERFACE_TYPE_EXTENSION||e.kind===fe.UNION_TYPE_EXTENSION||e.kind===fe.ENUM_TYPE_EXTENSION||e.kind===fe.INPUT_OBJECT_TYPE_EXTENSION}var ui=a(()=>{me()});function ci(e){return{Document(t){for(const n of t.definitions)if(!ai(n)){const t=n.kind===fe.SCHEMA_DEFINITION||n.kind===fe.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new Z(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}var di=a(()=>{ne(),me(),ui()});function fi(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const r=e.getSchema(),i=t.name.value;let o=mt("to use an inline fragment on",function(e,t,n){if(!Sn(t))return[];const r=new Set,i=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(const e of a.getInterfaces()){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}}return[...r].sort((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:mn(t)&&e.isSubType(t,n)?-1:mn(n)&&e.isSubType(n,t)?1:_t(t.name,n.name)}).map(e=>e.name)}(r,n,i));""===o&&(o=mt(function(e,t){return hn(e)||mn(e)?Ot(t,Object.keys(e.getFields())):[]}(n,i))),e.reportError(new Z(`Cannot query field "${i}" on type "${n.name}".`+o,{nodes:t}))}}}}var pi=a(()=>{gt(),Dt(),It(),ne(),Wn()});function hi(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=ei(e.getSchema(),n);if(t&&!Cn(t)){const t=Wt(n);e.reportError(new Z(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=ei(e.getSchema(),t.typeCondition);if(n&&!Cn(n)){const n=Wt(t.typeCondition);e.reportError(new Z(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}var mi=a(()=>{ne(),Xt(),Wn(),ni()});function gi(e){return{...vi(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const n=t.name.value,o=Ot(n,r.args.map(e=>e.name));e.reportError(new Z(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+mt(o),{nodes:t}))}}}}function vi(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ur;for(const a of r)t[a.name]=a.args.map(e=>e.name);const i=e.getDocument().definitions;for(const a of i)if(a.kind===fe.DIRECTIVE_DEFINITION){var o;const e=null!==(o=a.arguments)&&void 0!==o?o:[];t[a.name.value]=e.map(e=>e.name.value)}return{Directive(n){const r=n.name.value,i=t[r];if(n.arguments&&i)for(const t of n.arguments){const n=t.name.value;if(!i.includes(n)){const o=Ot(n,i);e.reportError(new Z(`Unknown argument "${n}" on directive "@${r}".`+mt(o),{nodes:t}))}}return!1}}}var yi=a(()=>{gt(),It(),ne(),me(),fr()});function bi(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ur;for(const o of r)t[o.name]=o.locations;const i=e.getDocument().definitions;for(const o of i)o.kind===fe.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(e=>e.value));return{Directive(n,r,i,o,a){const s=n.name.value,l=t[s];if(!l)return void e.reportError(new Z(`Unknown directive "@${s}".`,{nodes:n}));const u=function(e){const t=e[e.length-1];switch("kind"in t||W(!1),t.kind){case fe.OPERATION_DEFINITION:return function(e){switch(e){case le.QUERY:return de.QUERY;case le.MUTATION:return de.MUTATION;case le.SUBSCRIPTION:return de.SUBSCRIPTION}}(t.operation);case fe.FIELD:return de.FIELD;case fe.FRAGMENT_SPREAD:return de.FRAGMENT_SPREAD;case fe.INLINE_FRAGMENT:return de.INLINE_FRAGMENT;case fe.FRAGMENT_DEFINITION:return de.FRAGMENT_DEFINITION;case fe.VARIABLE_DEFINITION:return de.VARIABLE_DEFINITION;case fe.SCHEMA_DEFINITION:case fe.SCHEMA_EXTENSION:return de.SCHEMA;case fe.SCALAR_TYPE_DEFINITION:case fe.SCALAR_TYPE_EXTENSION:return de.SCALAR;case fe.OBJECT_TYPE_DEFINITION:case fe.OBJECT_TYPE_EXTENSION:return de.OBJECT;case fe.FIELD_DEFINITION:return de.FIELD_DEFINITION;case fe.INTERFACE_TYPE_DEFINITION:case fe.INTERFACE_TYPE_EXTENSION:return de.INTERFACE;case fe.UNION_TYPE_DEFINITION:case fe.UNION_TYPE_EXTENSION:return de.UNION;case fe.ENUM_TYPE_DEFINITION:case fe.ENUM_TYPE_EXTENSION:return de.ENUM;case fe.ENUM_VALUE_DEFINITION:return de.ENUM_VALUE;case fe.INPUT_OBJECT_TYPE_DEFINITION:case fe.INPUT_OBJECT_TYPE_EXTENSION:return de.INPUT_OBJECT;case fe.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||W(!1),t.kind===fe.INPUT_OBJECT_TYPE_DEFINITION?de.INPUT_FIELD_DEFINITION:de.ARGUMENT_DEFINITION}default:W(!1,"Unexpected kind: "+tt(t.kind))}}(a);u&&!l.includes(u)&&e.reportError(new Z(`Directive "@${s}" may not be used on ${u}.`,{nodes:n}))}}}var wi=a(()=>{st(),G(),ne(),pe(),he(),me(),fr()});function xi(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new Z(`Unknown fragment "${n}".`,{nodes:t.name}))}}}var Ei,ki=a(()=>{ne()});function Ci(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const o of e.getDocument().definitions)si(o)&&(r[o.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){const u=t.name.value;if(!n[u]&&!r[u]){var c;const n=null!==(c=l[2])&&void 0!==c?c:a,r=null!=n&&"kind"in(d=n)&&(function(e){return e.kind===fe.SCHEMA_DEFINITION||si(e)||e.kind===fe.DIRECTIVE_DEFINITION}(d)||function(e){return e.kind===fe.SCHEMA_EXTENSION||li(e)}(d));if(r&&Ei.includes(u))return;const o=Ot(u,r?Ei.concat(i):i);e.reportError(new Z(`Unknown type "${u}".`+mt(o),{nodes:t}))}var d}}}var Si=a(()=>{gt(),It(),ne(),ui(),Ir(),cr(),Ei=[...er,...Ar].map(e=>e.name)});function Ti(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===fe.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new Z("This anonymous operation must be the only defined operation.",{nodes:n}))}}}var _i=a(()=>{ne(),me()});function Ni(e){var t,n,r;const i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let a=0;return{SchemaDefinition(t){o?e.reportError(new Z("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new Z("Must provide only one schema definition.",{nodes:t})),++a)}}}var Ai,Di=a(()=>{ne()});function Oi(e){function t(n,r=Object.create(null),i=0){if(n.kind===fe.FRAGMENT_SPREAD){const o=n.name.value;if(!0===r[o])return!1;const a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===fe.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=Ai)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,i))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new Z("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}var Li=a(()=>{ne(),me(),Ai=3});function Ii(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(o){if(t[o.name.value])return;const a=o.name.value;t[a]=!0;const s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){r[a]=n.length;for(const t of s){const o=t.name.value,a=r[o];if(n.push(t),void 0===a){const t=e.getFragment(o);t&&i(t)}else{const t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new Z(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}}}var Mi=a(()=>{ne()});function Fi(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==t[r]&&e.reportError(new Z(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}var Pi=a(()=>{ne()});function Ri(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new Z(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}var ji=a(()=>{ne()});function Vi(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)r[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==r[t]&&e.reportError(new Z(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}}var Bi=a(()=>{ne()});function zi(e){switch(e.kind){case fe.OBJECT:return{...e,fields:(t=e.fields,t.map(e=>({...e,value:zi(e.value)})).sort((e,t)=>_t(e.name.value,t.name.value)))};case fe.LIST:return{...e,values:e.values.map(zi)};case fe.INT:case fe.FLOAT:case fe.STRING:case fe.BOOLEAN:case fe.NULL:case fe.ENUM:case fe.VARIABLE:return e}var t}var $i,Ui,Hi=a(()=>{Dt(),me()});function Wi(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+Wi(t)).join(" and "):e}function qi(e){const t=new $i,n=new Ui,r=new Map;return{SelectionSet(i){const o=function(e,t,n,r,i,o){const a=[],[s,l]=Zi(e,t,i,o);if(function(e,t,n,r,i,o){for(const[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o[e.value,t]));return n.every(e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&Xi(t)===Xi(n)})}(u,f))return[[o,"they have differing arguments"],[u],[f]]}const m=null==c?void 0:c.type,g=null==p?void 0:p.type;if(m&&g&&Ji(m,g))return[[o,`they return conflicting types "${tt(m)}" and "${tt(g)}"`],[u],[f]];const v=u.selectionSet,y=f.selectionSet;return v&&y?function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(function(e,t,n,r,i,o,a,s,l){const u=[],[c,d]=Zi(e,t,o,a),[f,p]=Zi(e,t,s,l);Yi(e,u,t,n,r,i,c,f);for(const h of p)Gi(e,u,t,n,r,i,c,h);for(const h of d)Gi(e,u,t,n,r,i,f,h);for(const h of d)for(const o of p)Ki(e,u,t,n,r,i,h,o);return u}(e,t,n,r,h,Dn(m),v,Dn(g),y),o,u,f):void 0}function Xi(e){return Wt(zi(e))}function Ji(e,t){return bn(e)?!bn(t)||Ji(e.ofType,t.ofType):!!bn(t)||(wn(e)?!wn(t)||Ji(e.ofType,t.ofType):!!wn(t)||!(!kn(e)&&!kn(t))&&e!==t)}function Zi(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);to(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function eo(e,t,n){return t.get(n.selectionSet)||Zi(e,t,ei(e.getSchema(),n.typeCondition),n.selectionSet)}function to(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case fe.FIELD:{const e=o.name.value;let n;(hn(t)||mn(t))&&(n=t.getFields()[e]);const i=o.alias?o.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,o,n]);break}case fe.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case fe.INLINE_FRAGMENT:{const n=o.typeCondition;to(e,n?ei(e.getSchema(),n):t,o.selectionSet,r,i);break}}}var no=a(()=>{st(),ne(),me(),Xt(),Wn(),Hi(),ni(),$i=class{constructor(){this._data=new Map}has(e,t,n){var r;const i=null===(r=this._data.get(e))||void 0===r?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}},Ui=class{constructor(){this._orderedPairSet=new $i}has(e,t,n){return e{st(),ne(),Wn(),tr(),ni()});function ao(e){const t=e.getSchema(),n=Object.create(null);for(const i of e.getDocument().definitions)si(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,o=n[i],a=null==t?void 0:t.getType(i);let s;if(o?s=io[o.kind]:a&&(s=pn(l=a)?fe.SCALAR_TYPE_EXTENSION:hn(l)?fe.OBJECT_TYPE_EXTENSION:mn(l)?fe.INTERFACE_TYPE_EXTENSION:gn(l)?fe.UNION_TYPE_EXTENSION:vn(l)?fe.ENUM_TYPE_EXTENSION:yn(l)?fe.INPUT_OBJECT_TYPE_EXTENSION:void W(!1,"Unexpected type: "+tt(l))),s){if(s!==r.kind){const t=function(e){switch(e){case fe.SCALAR_TYPE_EXTENSION:return"scalar";case fe.OBJECT_TYPE_EXTENSION:return"object";case fe.INTERFACE_TYPE_EXTENSION:return"interface";case fe.UNION_TYPE_EXTENSION:return"union";case fe.ENUM_TYPE_EXTENSION:return"enum";case fe.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:W(!1,"Unexpected kind: "+tt(e))}}(r.kind);e.reportError(new Z(`Cannot extend non-${t} type "${i}".`,{nodes:o?[o,r]:r}))}}else{const o=Ot(i,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new Z(`Cannot extend type "${i}" because it is not defined.`+mt(o),{nodes:r.name}))}var l}}var so=a(()=>{gt(),st(),G(),It(),ne(),me(),ui(),Wn(),io={[fe.SCALAR_TYPE_DEFINITION]:fe.SCALAR_TYPE_EXTENSION,[fe.OBJECT_TYPE_DEFINITION]:fe.OBJECT_TYPE_EXTENSION,[fe.INTERFACE_TYPE_DEFINITION]:fe.INTERFACE_TYPE_EXTENSION,[fe.UNION_TYPE_DEFINITION]:fe.UNION_TYPE_EXTENSION,[fe.ENUM_TYPE_DEFINITION]:fe.ENUM_TYPE_EXTENSION,[fe.INPUT_OBJECT_TYPE_DEFINITION]:fe.INPUT_OBJECT_TYPE_EXTENSION}});function lo(e){return{...uo(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(const o of r.args)if(!i.has(o.name)&&Vn(o)){const n=tt(o.type);e.reportError(new Z(`Field "${r.name}" argument "${o.name}" of type "${n}" is required, but it was not provided.`,{nodes:t}))}}}}}function uo(e){var t;const n=Object.create(null),r=e.getSchema(),i=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:ur;for(const s of i)n[s.name]=bt(s.args.filter(Vn),e=>e.name);const o=e.getDocument().definitions;for(const s of o)if(s.kind===fe.DIRECTIVE_DEFINITION){var a;const e=null!==(a=s.arguments)&&void 0!==a?a:[];n[s.name.value]=bt(e.filter(co),e=>e.name.value)}return{Directive:{leave(t){const r=t.name.value,i=n[r];if(i){var o;const n=null!==(o=t.arguments)&&void 0!==o?o:[],a=new Set(n.map(e=>e.name.value));for(const[o,s]of Object.entries(i))if(!a.has(o)){const n=fn(s.type)?tt(s.type):Wt(s.type);e.reportError(new Z(`Directive "@${r}" argument "${o}" of type "${n}" is required, but it was not provided.`,{nodes:t}))}}}}}}function co(e){return e.type.kind===fe.NON_NULL_TYPE&&null==e.defaultValue}var fo=a(()=>{st(),wt(),ne(),me(),Xt(),Wn(),fr()});function po(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(kn(Dn(n))){if(r){const i=t.name.value,o=tt(n);e.reportError(new Z(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){const r=t.name.value,i=tt(n);e.reportError(new Z(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{const r=t.name.value,i=tt(n);e.reportError(new Z(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}var ho=a(()=>{st(),ne(),Wn()});function mo(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}var go=a(()=>{});function vo(e,t,n){return{prev:e,key:t,typename:n}}function yo(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}var bo=a(()=>{});function wo(e,t,n=xo){return Eo(e,t,n,void 0)}function xo(e,t,n){let r="Invalid value "+tt(t);throw e.length>0&&(r+=` at "value${mo(e)}"`),n.message=r+": "+n.message,n}function Eo(e,t,n,r){if(wn(t))return null!=e?Eo(e,t.ofType,n,r):void n(yo(r),e,new Z(`Expected non-nullable type "${tt(t)}" not to be null.`));if(null==e)return null;if(bn(t)){const i=t.ofType;return pr(e)?Array.from(e,(e,t)=>Eo(e,i,n,vo(r,t,void 0))):[Eo(e,i,n,r)]}if(yn(t)){if(!U(e)||Array.isArray(e))return void n(yo(r),e,new Z(`Expected type "${t.name}" to be an object.`));const i=Object.create(null),o=t.getFields();for(const a of Object.values(o)){const o=e[a.name];if(void 0!==o)i[a.name]=Eo(o,a.type,n,vo(r,a.name,t.name));else if(void 0!==a.defaultValue)i[a.name]=a.defaultValue;else if(wn(a.type)){const t=tt(a.type);n(yo(r),e,new Z(`Field "${a.name}" of required type "${t}" was not provided.`))}}for(const a of Object.keys(e))if(!o[a]){const i=Ot(a,Object.keys(t.getFields()));n(yo(r),e,new Z(`Field "${a}" is not defined by type "${t.name}".`+mt(i)))}if(t.isOneOf){const o=Object.keys(i);1!==o.length&&n(yo(r),e,new Z(`Exactly one key must be specified for OneOf type "${t.name}".`));const a=o[0],s=i[a];null===s&&n(yo(r).concat(a),s,new Z(`Field "${a}" must be non-null.`))}return{...i}}if(kn(t)){let i;try{i=t.parseValue(e)}catch(Oh){return void n(yo(r),e,Oh instanceof Z?Oh:new Z(`Expected type "${t.name}". `+Oh.message,{originalError:Oh}))}return void 0===i&&n(yo(r),e,new Z(`Expected type "${t.name}".`)),i}W(!1,"Unexpected input type: "+tt(t))}var ko=a(()=>{gt(),st(),G(),mr(),H(),bo(),go(),It(),ne(),Wn()});function Co(e,t,n){if(e){if(e.kind===fe.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&wn(t))return;return i}if(wn(t)){if(e.kind===fe.NULL)return;return Co(e,t.ofType,n)}if(e.kind===fe.NULL)return null;if(bn(t)){const r=t.ofType;if(e.kind===fe.LIST){const t=[];for(const i of e.values)if(So(i,n)){if(wn(r))return;t.push(null)}else{const e=Co(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=Co(e,r,n);if(void 0===i)return;return[i]}if(yn(t)){if(e.kind!==fe.OBJECT)return;const r=Object.create(null),i=bt(e.fields,e=>e.name.value);for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||So(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(wn(e.type))return;continue}const o=Co(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if(kn(t)){let i;try{i=t.parseLiteral(e,n)}catch(r){return}if(void 0===i)return;return i}W(!1,"Unexpected input type: "+tt(t))}}function So(e,t){return e.kind===fe.VARIABLE&&(null==t||void 0===t[e.name.value])}var To=a(()=>{st(),G(),wt(),me(),Wn()});function _o(e,t,n){var r;const i=Object.create(null),o=bt(null!==(r=t.arguments)&&void 0!==r?r:[],e=>e.name.value);for(const a of e.args){const e=a.name,r=a.type,s=o[e];if(!s){if(void 0!==a.defaultValue)i[e]=a.defaultValue;else if(wn(r))throw new Z(`Argument "${e}" of required type "${tt(r)}" was not provided.`,{nodes:t});continue}const l=s.value;let u=l.kind===fe.NULL;if(l.kind===fe.VARIABLE){const t=l.name.value;if(null==n||!Ao(n,t)){if(void 0!==a.defaultValue)i[e]=a.defaultValue;else if(wn(r))throw new Z(`Argument "${e}" of required type "${tt(r)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&wn(r))throw new Z(`Argument "${e}" of non-null type "${tt(r)}" must not be null.`,{nodes:l});const c=Co(l,r,n);if(void 0===c)throw new Z(`Argument "${e}" has invalid value ${Wt(l)}.`,{nodes:l});i[e]=c}return{...i}}function No(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(i)return _o(e,i,n)}function Ao(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Do=a(()=>{st(),wt(),go(),ne(),me(),Xt(),Wn(),ko(),ni(),To()});function Oo(e,t,n,r,i){const o=new Map;return Lo(e,t,n,r,i,o,new Set),o}function Lo(e,t,n,r,i,o,a){for(const s of i.selections)switch(s.kind){case fe.FIELD:{if(!Io(n,s))continue;const e=Fo(s),t=o.get(e);void 0!==t?t.push(s):o.set(e,[s]);break}case fe.INLINE_FRAGMENT:if(!Io(n,s)||!Mo(e,s,r))continue;Lo(e,t,n,r,s.selectionSet,o,a);break;case fe.FRAGMENT_SPREAD:{const i=s.name.value;if(a.has(i)||!Io(n,s))continue;a.add(i);const l=t[i];if(!l||!Mo(e,l,r))continue;Lo(e,t,n,r,l.selectionSet,o,a);break}}}function Io(e,t){const n=No(or,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=No(ir,t,e);return!1!==(null==r?void 0:r.if)}function Mo(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=ei(e,r);return i===n||!!Sn(i)&&e.isSubType(i,n)}function Fo(e){return e.alias?e.alias.value:e.name.value}var Po=a(()=>{me(),Wn(),fr(),ni(),Do()});function Ro(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(const e of a.definitions)e.kind===fe.FRAGMENT_DEFINITION&&(s[e.name.value]=e);const l=Oo(n,s,o,r,t.selectionSet);if(l.size>1){const t=[...l.values()].slice(1).flat();e.reportError(new Z(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new Z(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}var jo=a(()=>{ne(),me(),Po()});function Vo(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}var Bo=a(()=>{});function zo(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const a of i){var o;n(`${r}.${a.name.value}`,null!==(o=a.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const r=Vo(n,e=>e.name.value);for(const[i,o]of r)o.length>1&&e.reportError(new Z(`Argument "${t}(${i}:)" can only be defined once.`,{nodes:o.map(e=>e.name)}));return!1}}var $o=a(()=>{Bo(),ne()});function Uo(e){return{Field:t,Directive:t};function t(t){var n;const r=Vo(null!==(n=t.arguments)&&void 0!==n?n:[],e=>e.name.value);for(const[i,o]of r)o.length>1&&e.reportError(new Z(`There can be only one argument named "${i}".`,{nodes:o.map(e=>e.name)}))}}var Ho=a(()=>{Bo(),ne()});function Wo(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new Z(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new Z(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}var qo=a(()=>{ne()});function Go(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ur;for(const s of r)t[s.name]=!s.isRepeatable;const i=e.getDocument().definitions;for(const s of i)s.kind===fe.DIRECTIVE_DEFINITION&&(t[s.name.value]=!s.repeatable);const o=Object.create(null),a=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===fe.SCHEMA_DEFINITION||n.kind===fe.SCHEMA_EXTENSION)r=o;else if(si(n)||li(n)){const e=n.name.value;r=a[e],void 0===r&&(a[e]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(r[n]?e.reportError(new Z(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}var Ko=a(()=>{ne(),me(),ui(),fr()});function Yo(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.values)&&void 0!==i?i:[],s=r[o];for(const r of a){const t=r.name.value,i=n[o];vn(i)&&i.getValue(t)?e.reportError(new Z(`Enum value "${o}.${t}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:r.name})):s[t]?e.reportError(new Z(`Enum value "${o}.${t}" can only be defined once.`,{nodes:[s[t],r.name]})):s[t]=r.name}return!1}}var Qo=a(()=>{ne(),Wn()});function Xo(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.fields)&&void 0!==i?i:[],s=r[o];for(const r of a){const t=r.name.value;Jo(n[o],t)?e.reportError(new Z(`Field "${o}.${t}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:r.name})):s[t]?e.reportError(new Z(`Field "${o}.${t}" can only be defined once.`,{nodes:[s[t],r.name]})):s[t]=r.name}return!1}}function Jo(e,t){return!!(hn(e)||mn(e)||yn(e))&&null!=e.getFields()[t]}var Zo=a(()=>{ne(),Wn()});function ea(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new Z(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}var ta=a(()=>{ne()});function na(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||W(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new Z(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}var ra=a(()=>{G(),ne()});function ia(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new Z(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}var oa=a(()=>{ne()});function aa(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const o=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const a of o){const t=a.operation,i=n[t];r[t]?e.reportError(new Z(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:a})):i?e.reportError(new Z(`There can be only one ${t} type in schema.`,{nodes:[i,a]})):n[t]=a}return!1}}var sa=a(()=>{ne()});function la(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new Z(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new Z(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}var ua=a(()=>{ne()});function ca(e){return{OperationDefinition(t){var n;const r=Vo(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],e=>e.variable.name.value);for(const[i,o]of r)o.length>1&&e.reportError(new Z(`There can be only one variable named "$${i}".`,{nodes:o.map(e=>e.variable.name)}))}}}var da=a(()=>{Bo(),ne()});function fa(e){return{ListValue(t){if(!bn(Nn(e.getParentInputType())))return pa(e,t),!1},ObjectValue(t){const n=Dn(e.getInputType());if(!yn(n))return pa(e,t),!1;const r=bt(t.fields,e=>e.name.value);for(const i of Object.values(n.getFields()))if(!r[i.name]&&Hn(i)){const r=tt(i.type);e.reportError(new Z(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;const o=Object.keys(r);if(1!==o.length)return void e.reportError(new Z(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const a=null===(i=r[o[0]])||void 0===i?void 0:i.value;a&&a.kind!==fe.NULL||e.reportError(new Z(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){const n=Dn(e.getParentInputType());if(!e.getInputType()&&yn(n)){const r=Ot(t.name.value,Object.keys(n.getFields()));e.reportError(new Z(`Field "${t.name.value}" is not defined by type "${n.name}".`+mt(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();wn(n)&&e.reportError(new Z(`Expected value of type "${tt(n)}", found ${Wt(t)}.`,{nodes:t}))},EnumValue:t=>pa(e,t),IntValue:t=>pa(e,t),FloatValue:t=>pa(e,t),StringValue:t=>pa(e,t),BooleanValue:t=>pa(e,t)}}function pa(e,t){const n=e.getInputType();if(!n)return;const r=Dn(n);if(!kn(r)){const r=tt(n);return void e.reportError(new Z(`Expected value of type "${r}", found ${Wt(t)}.`,{nodes:t}))}try{if(void 0===r.parseLiteral(t,void 0)){const r=tt(n);e.reportError(new Z(`Expected value of type "${r}", found ${Wt(t)}.`,{nodes:t}))}}catch(Oh){const i=tt(n);Oh instanceof Z?e.reportError(Oh):e.reportError(new Z(`Expected value of type "${i}", found ${Wt(t)}; `+Oh.message,{nodes:t,originalError:Oh}))}}var ha=a(()=>{gt(),st(),wt(),It(),ne(),me(),Xt(),Wn()});function ma(e){return{VariableDefinition(t){const n=ei(e.getSchema(),t.type);if(void 0!==n&&!xn(n)){const n=t.variable.name.value,r=Wt(t.type);e.reportError(new Z(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}var ga=a(()=>{ne(),Xt(),Wn(),ni()});function va(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i,type:o,defaultValue:a,parentType:s}of r){const n=i.name.value,r=t[n];if(r&&o){const t=e.getSchema(),l=ei(t,r.type);if(l&&!ya(t,l,r.defaultValue,o,a)){const t=tt(l),a=tt(o);e.reportError(new Z(`Variable "$${n}" of type "${t}" used in position expecting type "${a}".`,{nodes:[r,i]}))}yn(s)&&s.isOneOf&&_n(l)&&e.reportError(new Z(`Variable "$${n}" is of type "${l}" but must be non-nullable to be used for OneOf Input Object "${s}".`,{nodes:[r,i]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function ya(e,t,n,r,i){return wn(r)&&!wn(t)?(null!=n&&n.kind!==fe.NULL||void 0!==i)&&Gn(e,t,r.ofType):Gn(e,t,r)}var ba,wa,xa,Ea,ka,Ca=a(()=>{st(),ne(),me(),Wn(),tr(),ni()}),Sa=a(()=>{di(),pi(),mi(),yi(),wi(),ki(),Si(),_i(),Di(),Li(),Mi(),Pi(),ji(),Bi(),no(),oo(),so(),fo(),ho(),jo(),$o(),Ho(),qo(),Ko(),Qo(),Zo(),ta(),ra(),oa(),sa(),ua(),da(),ha(),ga(),Ca(),ba=Object.freeze([Oi]),wa=Object.freeze([ci,ia,Ti,Ro,Ci,hi,ma,po,fi,ea,xi,Ri,ro,Ii,ca,Fi,Vi,bi,Go,gi,Uo,fa,lo,va,qi,na,...ba]),Object.freeze([Ni,aa,la,Yo,Xo,zo,Wo,Ci,bi,Go,ao,vi,Uo,na,uo])}),Ta=a(()=>{me(),Ht(),oi(),xa=class{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===fe.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===fe.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}},Ea=class extends xa{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new ti(this._schema);zt(e,ii(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}});function _a(e,t,n=wa,r,i=new ti(e)){var o;const a=null!==(o=null==r?void 0:r.maxErrors)&&void 0!==o?o:100;t||V(!1,"Must provide document."),Vr(e);const s=Object.freeze({}),l=[],u=new Ea(e,t,i,e=>{if(l.length>=a)throw l.push(new Z("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=function(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(fe)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;te(u)));try{zt(t,ii(i,c),ka)}catch(pV){if(pV!==s)throw pV}return l}var Na=a(()=>{B(),Tt(),ne(),pe(),Ht(),Zr(),oi(),Sa(),Ta(),ka=kt(ae,e=>e.filter(e=>"description"!==e))}),Aa=a(()=>{});function Da(e){return Promise.all(Object.values(e)).then(t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}var Oa,La=a(()=>{}),Ia=a(()=>{$()}),Ma=a(()=>{st(),Oa=class extends Error{constructor(e){super("Unexpected error value: "+tt(e)),this.name="NonErrorThrown",this.thrownValue=e}}});function Fa(e,t,n){var r;const i=(o=e)instanceof Error?o:new Oa(o);var o;return function(e){return Array.isArray(e.path)}(i)?i:new Z(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}var Pa,Ra,ja,Va,Ba=a(()=>{Ma(),ne()});function za(e){arguments.length<2||V(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:i}=e;Ua(t,n,r);const o=Ha(e);if(!("schema"in o))return{errors:o};try{const{operation:e}=o,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new Z(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=Oo(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case le.QUERY:return Wa(e,r,n,o,i);case le.MUTATION:return function(e,t,n,r,i){return function(e,t){let n=Object.create(null);for(const r of e)n=z(n)?n.then(e=>t(e,r)):t(n,r);return n}(i.entries(),(i,[o,a])=>{const s=qa(e,t,n,a,vo(r,o,t.name));return void 0===s?i:z(s)?s.then(e=>(i[o]=e,i)):(i[o]=s,i)})}(e,r,n,o,i);case le.SUBSCRIPTION:return Wa(e,r,n,o,i)}}(o,e,i);return z(t)?t.then(e=>$a(e,o.collectedErrors.errors),e=>(o.collectedErrors.add(e,void 0),$a(null,o.collectedErrors.errors))):$a(t,o.collectedErrors.errors)}catch(Oh){return o.collectedErrors.add(Oh,void 0),$a(null,o.collectedErrors.errors)}}function $a(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function Ua(e,t,n){t||V(!1,"Must provide document."),Vr(e),null==n||U(n)||V(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function Ha(e){var t,n,r;const{schema:i,document:o,rootValue:a,contextValue:s,variableValues:l,operationName:u,fieldResolver:c,typeResolver:d,subscribeFieldResolver:f,options:p}=e;let h;const m=Object.create(null);for(const v of o.definitions)switch(v.kind){case fe.OPERATION_DEFINITION:if(null==u){if(void 0!==h)return[new Z("Must provide operation name if query contains multiple operations.")];h=v}else(null===(t=v.name)||void 0===t?void 0:t.value)===u&&(h=v);break;case fe.FRAGMENT_DEFINITION:m[v.name.value]=v}if(!h)return null!=u?[new Z(`Unknown operation named "${u}".`)]:[new Z("Must provide an operation.")];const g=function(e,t,n,r){const i=[],o=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const i=Object.create(null);for(const o of t){const t=o.variable.name.value,a=ei(e,o.type);if(!xn(a)){r(new Z(`Variable "$${t}" expected value of type "${Wt(o.type)}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!Ao(n,t)){o.defaultValue?i[t]=Co(o.defaultValue,a):wn(a)&&r(new Z(`Variable "$${t}" of required type "${tt(a)}" was not provided.`,{nodes:o}));continue}const s=n[t];null===s&&wn(a)?r(new Z(`Variable "$${t}" of non-null type "${tt(a)}" must not be null.`,{nodes:o})):i[t]=wo(s,a,(e,n,i)=>{let a=`Variable "$${t}" got invalid value `+tt(n);e.length>0&&(a+=` at "${t}${mo(e)}"`),r(new Z(a+"; "+i.message,{nodes:o,originalError:i}))})}return{...i}}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new Z("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(Oh){i.push(Oh)}return{errors:i}}(i,null!==(n=h.variableDefinitions)&&void 0!==n?n:[],null!=l?l:{},{maxErrors:null!==(r=null==p?void 0:p.maxCoercionErrors)&&void 0!==r?r:50});return g.errors?g.errors:{schema:i,fragments:m,rootValue:a,contextValue:s,operation:h,variableValues:g.coerced,fieldResolver:null!=c?c:Va,typeResolver:null!=d?d:ja,subscribeFieldResolver:null!=f?f:Va,collectedErrors:new Ra}}function Wa(e,t,n,r,i){const o=Object.create(null);let a=!1;try{for(const[s,l]of i.entries()){const i=qa(e,t,n,l,vo(r,s,t.name));void 0!==i&&(o[s]=i,z(i)&&(a=!0))}}catch(Oh){if(a)return Da(o).finally(()=>{throw Oh});throw Oh}return a?Da(o):o}function qa(e,t,n,r,i){var o;const a=Za(e.schema,t,r[0]);if(!a)return;const s=a.type,l=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,u=Ga(e,a,r,t,i);try{const t=l(n,_o(a,r[0],e.variableValues),e.contextValue,u);let o;return o=z(t)?t.then(t=>Ya(e,s,r,u,i,t)):Ya(e,s,r,u,i,t),z(o)?o.then(void 0,t=>Ka(Fa(t,r,yo(i)),s,i,e)):o}catch(c){return Ka(Fa(c,r,yo(i)),s,i,e)}}function Ga(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Ka(e,t,n,r){if(wn(t))throw e;return r.collectedErrors.add(e,n),null}function Ya(e,t,n,r,i,o){if(o instanceof Error)throw o;if(wn(t)){const a=Ya(e,t.ofType,n,r,i,o);if(null===a)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:bn(t)?function(e,t,n,r,i,o){if(!pr(o))throw new Z(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=t.ofType;let s=!1;const l=Array.from(o,(t,o)=>{const l=vo(i,o,void 0);try{let i;return i=z(t)?t.then(t=>Ya(e,a,n,r,l,t)):Ya(e,a,n,r,l,t),z(i)?(s=!0,i.then(void 0,t=>Ka(Fa(t,n,yo(l)),a,l,e))):i}catch(u){return Ka(Fa(u,n,yo(l)),a,l,e)}});return s?Promise.all(l):l}(e,t,n,r,i,o):kn(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${tt(e)}.serialize(${tt(t)})\` to return non-nullable value, returned: ${tt(n)}`);return n}(t,o):Sn(t)?function(e,t,n,r,i,o){var a;const s=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,l=e.contextValue,u=s(o,l,r,t);return z(u)?u.then(a=>Xa(e,Qa(a,e,t,n,r,o),n,r,i,o)):Xa(e,Qa(u,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):hn(t)?Xa(e,t,n,r,i,o):void W(!1,"Cannot complete value of unexpected output type: "+tt(t))}function Qa(e,t,n,r,i,o){if(null==e)throw new Z(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(hn(e))throw new Z("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new Z(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${tt(o)}, received "${tt(e)}".`);const a=t.schema.getType(e);if(null==a)throw new Z(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!hn(a))throw new Z(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new Z(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function Xa(e,t,n,r,i,o){const a=Pa(e,t,n);if(t.isTypeOf){const s=t.isTypeOf(o,e.contextValue,r);if(z(s))return s.then(r=>{if(!r)throw Ja(t,o,n);return Wa(e,t,o,i,a)});if(!s)throw Ja(t,o,n)}return Wa(e,t,o,i,a)}function Ja(e,t,n){return new Z(`Expected value of type "${e.name}" but got: ${tt(t)}.`,{nodes:n})}function Za(e,t,n){const r=n.name.value;return r===Tr.name&&e.getQueryType()===t?Tr:r===_r.name&&e.getQueryType()===t?_r:r===Nr.name?Nr:t.getFields()[r]}var es=a(()=>{B(),st(),G(),mr(),H(),$(),Aa(),bo(),La(),Ia(),ne(),Ba(),pe(),me(),Wn(),Ir(),Zr(),Po(),Do(),Pa=function(){let e;return function(t,n,r){void 0===e&&(e=new WeakMap);let i=e.get(t);void 0===i&&(i=new WeakMap,e.set(t,i));let o=i.get(n);void 0===o&&(o=new WeakMap,i.set(n,o));let a=o.get(r);return void 0===a&&(l=n,u=r,a=function(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&Lo(e,t,n,r,s.selectionSet,o,a);return o}((s=t).schema,s.fragments,s.variableValues,l,u),o.set(r,a)),a;var s,l,u}}(),Ra=class{constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(e,t){this._hasNulledPosition(t)||(this._errorPositions.add(t),this._errors.push(e))}_hasNulledPosition(e){let t=e;for(;void 0!==t;){if(this._errorPositions.has(t))return!0;t=t.prev}return this._errorPositions.has(void 0)}},ja=function(e,t,n,r){if(U(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let a=0;a{}),r.name}}return o.length?Promise.all(o).then(e=>{for(let t=0;t{Rr(),Wn(),cr(),Ir(),Zr()}),ns=a(()=>{me(),ht(),Xt(),Ht(),he()});function rs(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}var is=a(()=>{}),os=a(()=>{});async function as(e){arguments.length<2||V(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await async function(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:i}=t;Ua(n,r,i);const o=Ha(t);if(!("schema"in o))return{errors:o};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new Z("Schema is not configured to execute subscription operation.",{nodes:r});const[s,l]=[...Oo(t,n,i,a,r.selectionSet).entries()][0],u=Za(t,a,l[0]);if(!u){const e=l[0].name.value;throw new Z(`The subscription field "${e}" is not defined.`,{nodes:l})}const c=vo(void 0,s,a.name),d=Ga(e,u,l,a,c);try{var f;const t=_o(u,l[0],i),n=e.contextValue,r=await(null!==(f=u.subscribe)&&void 0!==f?f:e.subscribeFieldResolver)(o,t,n,d);if(r instanceof Error)throw r;return r}catch(Oh){throw Fa(Oh,l,yo(c))}}(o);if(!rs(e))throw new Error(`Subscription field must return Async Iterable. Received: ${tt(e)}.`);return e}catch(Oh){if(Oh instanceof Z)return{errors:[Oh]};throw Oh}}(e);return rs(t)?function(t){const n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{return{value:await(r=t.value,za({...e,rootValue:r})),done:!1}}catch(Oh){if("function"==typeof n.return)try{await n.return()}catch(i){}throw Oh}var r}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t):t}var ss=a(()=>{B(),st(),is(),bo(),ne(),Ba(),Po(),es(),os(),Do()}),ls=a(()=>{es(),ss()});function us(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getParentType();null!=i||W(!1),e.reportError(new Z(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new Z(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||W(!1),e.reportError(new Z(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=Dn(e.getParentInputType());if(yn(n)){const r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new Z(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=Dn(e.getInputType());null!=i||W(!1),e.reportError(new Z(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}var cs=a(()=>{G(),ne(),Wn()}),ds=a(()=>{Na(),Sa(),di(),mi(),wi(),ki(),Si(),ji(),fo(),Ho(),Ko(),ra(),da(),Di(),sa(),ua(),Qo(),Zo(),qo(),so(),cs()}),fs=a(()=>{ne()}),ps=a(()=>{}),hs=a(()=>{me()}),ms=a(()=>{B(),st(),H(),Et(),ht(),Wn(),fr(),Ir(),cr(),Rr(),To()}),gs=a(()=>{ps(),hs(),ms(),ni(),Dr(),oi(),tr()}),vs=a(()=>{j(),ts(),ns(),ls(),ds(),fs(),gs()});function ys(e,t,n){const r=async function*(){yield*e}(),i=r.return.bind(r);if(t&&(r.return=(...e)=>(t(),i(...e))),n){const e=r.throw.bind(r);r.throw=t=>(n(t),e(t))}return r}function bs(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}var ws,xs,Es,ks,Cs=e=>{const{pushValue:t,asyncIterableIterator:n}=function(){let e={type:"running"},t=bs();const n=[];return{pushValue:function(r){"running"===e.type&&(n.push(r),t.resolve(),t=bs())},asyncIterableIterator:ys(async function*(){for(;;)if(n.length>0)yield n.shift();else{if("error"===e.type)throw e.error;if("finished"===e.type)return;await t.promise}}(),()=>{"running"===e.type&&(e={type:"finished"},t.resolve())},n=>{"running"===e.type&&(e={type:"error",error:n},t.resolve())})}}(),r=e({next:e=>{t(e)},complete:()=>{n.return()},error:e=>{n.throw(e)}}),i=n.return;let o;return n.return=()=>(void 0===o&&(r(),o=i()),o),n},Ss={},Ts=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(null==o?void 0:o.nonce)||(null==o?void 0:o.getAttribute("nonce"));i=t.map(t=>{if(t=function(e,t){return new URL(e,t).href}(t,n),t in Ss)return;Ss[t]=!0;const r=t.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(n)for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.href===t&&(!r||"stylesheet"===i.rel))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;const o=document.createElement("link");return o.rel=r?"stylesheet":"modulepreload",r||(o.as="script"),o.crossOrigin="",o.href=t,a&&o.setAttribute("nonce",a),document.head.appendChild(o),r?new Promise((e,n)=>{o.addEventListener("load",e),o.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${t}`)))}):void 0}),r=Promise.all(i.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))}var i;function o(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&o(e.reason);return e().catch(o)})};function _s(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function Ns(e){return"object"===_s(e)}function As(e){return Ns(e)&&"function"==typeof Object(e)[Symbol.asyncIterator]&&"function"==typeof e.return}function Ds(e,t){return e.length<124?e:t}function Os(e){if(!Ns(e))throw new Error(`Message is expected to be an object, but got ${_s(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw new Error(`Message is expects the 'type' property to be a string, but got ${_s(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":if(null!=e.payload&&!Ns(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case"subscribe":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${_s(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Ns(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${_s(e.payload)}`);if("string"!=typeof e.payload.query)throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${_s(e.payload.query)}`);if(null!=e.payload.variables&&!Ns(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${_s(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==_s(e.payload.operationName))throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${_s(e.payload.operationName)}`);if(null!=e.payload.extensions&&!Ns(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${_s(e.payload.extensions)}`);break;case"next":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${_s(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Ns(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${_s(e.payload)}`);break;case"error":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${_s(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(t=e.payload,!(Array.isArray(t)&&t.length>0&&t.every(e=>"message"in e)))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case"complete":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${_s(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw new Error(`Invalid message 'type' property "${e.type}"`)}var t;return e}function Ls(e,t){return Os("string"==typeof e?JSON.parse(e,t):e)}function Is(e,t){return Os(e),JSON.stringify(e,t)}var Ms,Fs=a(()=>{ws="graphql-transport-ws",xs="graphql-ws",Es=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(Es||{}),ks=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(ks||{})});function Ps(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:l=0,retryAttempts:u=5,retryWait:c=async function(e){const t=Math.pow(2,e);await new Promise(e=>setTimeout(e,1e3*t+Math.floor(2700*Math.random()+300)))},shouldRetry:d=Rs,on:f,webSocketImpl:p,generateID:h=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:m,jsonMessageReviver:g}=e;let v;if(p){if(!("function"==typeof(y=p)&&"constructor"in y&&"CLOSED"in y&&"CLOSING"in y&&"CONNECTING"in y&&"OPEN"in y))throw new Error("Invalid WebSocket implementation provided");v=p}else"undefined"!=typeof WebSocket?v=WebSocket:"undefined"!=typeof global?v=global.WebSocket||global.MozWebSocket:"undefined"!=typeof window&&(v=window.WebSocket||window.MozWebSocket);var y;if(!v)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const b=v,w=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null==f?void 0:f.connecting)?[f.connecting]:[],opened:(null==f?void 0:f.opened)?[f.opened]:[],connected:(null==f?void 0:f.connected)?[f.connected]:[],ping:(null==f?void 0:f.ping)?[f.ping]:[],pong:(null==f?void 0:f.pong)?[f.pong]:[],message:(null==f?void 0:f.message)?[e.emit,f.message]:[e.emit],closed:(null==f?void 0:f.closed)?[f.closed]:[],error:(null==f?void 0:f.error)?[f.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e,...n){for(const r of[...t[e]])r(...n)}}})();function x(e){const t=[w.on("error",n=>{t.forEach(e=>e()),e(n)}),w.on("closed",n=>{t.forEach(e=>e()),e(n)})]}let E,k,C=0,S=!1,T=0,_=!1;async function N(){var e;clearTimeout(k);const[r,i]=await(null!==(e=E)&&void 0!==e?e:E=new Promise((e,r)=>(async()=>{if(S){if(await c(T),!C)return E=void 0,r({code:1e3,reason:"All Subscriptions Gone"});T++}w.emit("connecting",S);const i=new b("function"==typeof t?await t():t,ws);let o,u;function d(){isFinite(a)&&a>0&&(clearTimeout(u),u=setTimeout(()=>{i.readyState===b.OPEN&&(i.send(Is({type:ks.Ping})),w.emit("ping",!1,void 0))},a))}x(e=>{E=void 0,clearTimeout(o),clearTimeout(u),r(e),e instanceof Ms&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=e=>w.emit("error",e),i.onclose=e=>w.emit("closed",e),i.onopen=async()=>{try{w.emit("opened",i);const e="function"==typeof n?await n():n;if(i.readyState!==b.OPEN)return;i.send(Is(e?{type:ks.ConnectionInit,payload:e}:{type:ks.ConnectionInit},m)),isFinite(l)&&l>0&&(o=setTimeout(()=>{i.close(Es.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),d()}catch(e){w.emit("error",e),i.close(Es.InternalClientError,Ds(e instanceof Error?e.message:String(e),"Internal client error"))}};let f=!1;i.onmessage=({data:t})=>{try{const n=Ls(t,g);if(w.emit("message",n),"ping"===n.type||"pong"===n.type)return w.emit(n.type,!0,n.payload),void("pong"===n.type?d():s||(i.send(Is(n.payload?{type:ks.Pong,payload:n.payload}:{type:ks.Pong})),w.emit("pong",!1,n.payload)));if(f)return;if(n.type!==ks.ConnectionAck)throw new Error(`First message cannot be of type ${n.type}`);clearTimeout(o),f=!0,w.emit("connected",i,n.payload,S),S=!1,T=0,e([i,new Promise((e,t)=>x(t))])}catch(n){i.onmessage=null,w.emit("error",n),i.close(Es.BadResponse,Ds(n instanceof Error?n.message:String(n),"Bad response"))}}})()));r.readyState===b.CLOSING&&await i;let u=()=>{};const d=new Promise(e=>u=e);return[r,u,Promise.race([d.then(()=>{if(!C){const e=()=>r.close(1e3,"Normal Closure");isFinite(o)&&o>0?k=setTimeout(()=>{r.readyState===b.OPEN&&e()},o):e()}}),i])]}function A(e){if(Rs(e)&&(function(e){return![1e3,1001,1006,1005,1012,1013,1014].includes(e)&&e>=1e3&&e<=1999}(e.code)||[Es.InternalServerError,Es.InternalClientError,Es.BadRequest,Es.BadResponse,Es.Unauthorized,Es.SubprotocolNotAcceptable,Es.SubscriberAlreadyExists,Es.TooManyInitialisationRequests].includes(e.code)))throw e;if(_)return!1;if(Rs(e)&&1e3===e.code)return C>0;if(!u||T>=u)throw e;if(!d(e))throw e;return S=!0}function D(e,t){const n=h(e);let r=!1,i=!1,o=()=>{C--,r=!0};return(async()=>{for(C++;;)try{const[a,s,l]=await N();if(r)return s();const u=w.onMessage(n,e=>{switch(e.type){case ks.Next:return void t.next(e.payload);case ks.Error:return i=!0,r=!0,t.error(e.payload),void o();case ks.Complete:return r=!0,void o()}});return a.send(Is({id:n,type:ks.Subscribe,payload:e},m)),o=()=>{r||a.readyState!==b.OPEN||a.send(Is({id:n,type:ks.Complete},m)),C--,r=!0,s()},void(await l.finally(u))}catch(a){if(!A(a))return}})().then(()=>{i||t.complete()}).catch(e=>{t.error(e)}),()=>{r||o()}}return r||(async()=>{for(C++;;)try{const[,,e]=await N();await e}catch(e){try{if(!A(e))return}catch(t){return null==i?void 0:i(t)}}})(),{on:w.on,subscribe:D,iterate(e){const t=[],n={done:!1,error:null,resolve:()=>{}},r=D(e,{next(e){t.push(e),n.resolve()},error(e){n.done=!0,n.error=e,n.resolve()},complete(){n.done=!0,n.resolve()}}),i=async function*(){for(;;){for(t.length||await new Promise(e=>n.resolve=e);t.length;)yield t.shift();if(n.error)throw n.error;if(n.done)return}}();return i.throw=async e=>(n.done||(n.done=!0,n.error=e,n.resolve()),{done:!0,value:void 0}),i.return=async()=>(r(),{done:!0,value:void 0}),i},async dispose(){if(_=!0,E){const[e]=await E;e.close(1e3,"Normal Closure")}},terminate(){E&&w.emit("closed",new Ms)}}}function Rs(e){return Ns(e)&&"code"in e&&"reason"in e}var js=a(()=>{Fs(),et(),Ms=class extends Error{constructor(...e){super(...e),Xe(this,"name","TerminatedCloseEvent"),Xe(this,"message","4499: Terminated"),Xe(this,"code",4499),Xe(this,"reason","Terminated"),Xe(this,"wasClean",!1)}}});function Vs(e){const{schema:t,context:n,roots:r,validate:i,execute:o,subscribe:a,connectionInitWaitTimeout:s=3e3,onConnect:l,onDisconnect:u,onClose:c,onSubscribe:f,onOperation:p,onNext:h,onError:m,onComplete:g,jsonMessageReviver:v,jsonMessageReplacer:y}=e;return{opened(e,b){const w={connectionInitReceived:!1,acknowledged:!1,subscriptions:{},extra:b};if("graphql-transport-ws"!==e.protocol)return e.close(Es.SubprotocolNotAcceptable,"Subprotocol not acceptable"),async(e,t)=>{await(null==c?void 0:c(w,e,t))};const x=s>0&&isFinite(s)?setTimeout(()=>{w.connectionInitReceived||e.close(Es.ConnectionInitialisationTimeout,"Connection initialisation timeout")},s):null;return e.onMessage(async function(s){let u;try{u=Ls(s,v)}catch(b){return e.close(Es.BadRequest,"Invalid message received")}switch(u.type){case ks.ConnectionInit:{if(w.connectionInitReceived)return e.close(Es.TooManyInitialisationRequests,"Too many initialisation requests");w.connectionInitReceived=!0,Ns(u.payload)&&(w.connectionParams=u.payload);const t=await(null==l?void 0:l(w));return!1===t?e.close(Es.Forbidden,"Forbidden"):(w.acknowledged=!0,void(await e.send(Is(Ns(t)?{type:ks.ConnectionAck,payload:t}:{type:ks.ConnectionAck},y))))}case ks.Ping:return e.onPing?await e.onPing(u.payload):void(await e.send(Is(u.payload?{type:ks.Pong,payload:u.payload}:{type:ks.Pong})));case ks.Pong:var c;return await(null===(c=e.onPong)||void 0===c?void 0:c.call(e,u.payload));case ks.Subscribe:{if(!w.acknowledged)return e.close(Es.Unauthorized,"Unauthorized");const{id:s,payload:l}=u;if(s in w.subscriptions)return e.close(Es.SubscriberAlreadyExists,`Subscriber for ${s} already exists`);w.subscriptions[s]=null;const c={next:async(t,{id:n,payload:r},i)=>{const{errors:o,...a}=t,s=await(null==h?void 0:h(w,n,r,i,t));await e.send(Is({id:n,type:ks.Next,payload:s||{...a,...o?{errors:o.map(e=>e.toJSON())}:{}}},y))},error:async(t,{id:n,payload:r})=>{const i=await(null==m?void 0:m(w,n,r,t));await e.send(Is({id:n,type:ks.Error,payload:i||t.map(e=>e.toJSON())},y))},complete:async(t,{id:n,payload:r})=>{await(null==g?void 0:g(w,n,r)),t&&await e.send(Is({id:n,type:ks.Complete},y))}};try{let e;const h=await(null==f?void 0:f(w,u.id,u.payload));if(h){if(zs(h))return s in w.subscriptions?await c.error(h,u):void 0;if(Array.isArray(h))throw new Error("Invalid return value from onSubscribe hook, expected an array of GraphQLError objects");e=h}else{if(!t)throw new Error("The GraphQL schema is not provided");const n={operationName:l.operationName,document:ct(l.query),variableValues:l.variables};e={...n,schema:"function"==typeof t?await t(w,s,l,n):t};const r=(null!=i?i:_a)(e.schema,e.document);if(r.length>0)return s in w.subscriptions?await c.error(r,u):void 0}const m=function(e,t){let n=null;for(const i of e.definitions)if(i.kind===fe.OPERATION_DEFINITION){var r;if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}(e.document,e.operationName);if(!m)return s in w.subscriptions?await c.error([new Z("Unable to identify operation")],u):void 0;let g;"rootValue"in e||(e.rootValue=null==r?void 0:r[m.operation]),"contextValue"in e||(e.contextValue="function"==typeof n?await n(w,s,l,e):n),g="subscription"===m.operation?await(null!=a?a:as)(e):await(null!=o?o:za)(e);const v=await(null==p?void 0:p(w,s,l,e,g));if(v&&(g=v),"function"==typeof Object(g)[Symbol.asyncIterator])if(s in w.subscriptions){w.subscriptions[s]=g;try{for await(const t of g)await c.next(t,u,e)}catch(b){const e=b instanceof Error?b:new Error(String(b));await c.error([d.major>=16?new Z(e.message,{originalError:e}):new Z(e.message,null,null,null,null,e)],u),delete w.subscriptions[s]}}else As(g)&&g.return(void 0);else s in w.subscriptions&&await c.next(g,u,e);await c.complete(s in w.subscriptions,u)}finally{delete w.subscriptions[s]}return}case ks.Complete:{const e=w.subscriptions[u.id];return delete w.subscriptions[u.id],void(As(e)&&await e.return(void 0))}default:throw new Error(`Unexpected message of type ${u.type} received`)}}),async(e,t)=>{x&&clearTimeout(x);const n={...w.subscriptions};w.subscriptions={},await Promise.all(Object.values(n).filter(As).map(e=>e.return(void 0))),w.acknowledged&&await(null==u?void 0:u(w,e,t)),await(null==c?void 0:c(w,e,t))}}}}function Bs(e){switch(!0){case e instanceof Set&&e.has("graphql-transport-ws"):case Array.isArray(e)&&e.includes("graphql-transport-ws"):case"string"==typeof e&&e.split(",").map(e=>e.trim()).includes("graphql-transport-ws"):return ws;default:return!1}}function zs(e){return Array.isArray(e)&&e.length>0&&e.every(e=>e instanceof Z)}var $s=a(()=>{vs(),Fs()}),Us=l({CloseCode:()=>Es,DEPRECATED_GRAPHQL_WS_PROTOCOL:()=>xs,GRAPHQL_TRANSPORT_WS_PROTOCOL:()=>ws,MessageType:()=>ks,TerminatedCloseEvent:()=>Ms,areGraphQLErrors:()=>zs,createClient:()=>Ps,handleProtocols:()=>Bs,makeServer:()=>Vs,parseMessage:()=>Ls,stringifyMessage:()=>Is,validateMessage:()=>Os}),Hs=a(()=>{js(),$s(),Fs()});vs();var Ws=e=>t=>Cs(n=>e.subscribe(t,L(O({},n),{error(e){e instanceof CloseEvent?n.error(new Error(`Socket closed with event ${e.code} ${e.reason||""}`.trim())):n.error(e)}}))),qs=(e,t)=>function(n,r){return i=function*(){const i=yield new I(t(e.url,{method:"POST",body:JSON.stringify(n),headers:O(O({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),null==r?void 0:r.headers)}).then(e=>async function(e){if(!e.ok||!e.body||e.bodyUsed)return e;let t=e.headers.get("content-type");if(!t||!~t.indexOf("multipart/"))return e;let n=t.indexOf("boundary="),r="-";if(~n){let e=n+9,i=t.indexOf(";",e);r=t.slice(e,i>-1?i:void 0).trim().replace(/"/g,"")}return async function*(e,t,n){let r,i,o,a=new TextDecoder("utf8"),s=e.getReader(),l=!n||!n.multiple,u=t.length,c="",d=[];try{let n;e:for(;!(n=await s.read()).done;){let s=a.decode(n.value,{stream:!0});r=c.length,c+=s;let f=s.indexOf(t);for(~f?r+=f:r=c.indexOf(t),d=[];~r;){let n=c.slice(0,r),a=c.slice(r+u);if(i){let t=n.indexOf("\r\n\r\n")+4,r=n.lastIndexOf("\r\n",t),i=!1,s=n.slice(t,r>-1?void 0:r),u=String(n.slice(0,t)).trim().split("\r\n"),c={},f=u.length;for(;o=u[--f];o=o.split(": "),c[o.shift().toLowerCase()]=o.join(": "));if(o=c["content-type"],o&&~o.indexOf("application/json"))try{s=JSON.parse(s),i=!0}catch(e){}if(o={headers:c,body:s,json:i},l?yield o:d.push(o),"--"===a.slice(0,2))break e}else t="\r\n"+t,i=u+=2;c=a,r=c.indexOf(t)}d.length&&(yield d)}}finally{d.length&&(yield d),await s.cancel()}}(e.body,`--${r}`,{multiple:!0})}(e)));if("object"!=typeof(o=i)||null===o||!("AsyncGenerator"===o[Symbol.toStringTag]||Symbol.asyncIterator&&Symbol.asyncIterator in o))return yield i.json();var o;try{for(var a,s,l,u=((e,t,n)=>(t=e[A("asyncIterator")])?t.call(e):(e=e[A("iterator")](),t={},(n=(n,r)=>(r=e[n])&&(t[n]=t=>new Promise((n,i,o)=>(t=r.call(e,t),o=t.done,Promise.resolve(t.value).then(e=>n({value:e,done:o}),i)))))("next"),n("return"),t))(i);a=!(s=yield new I(u.next())).done;a=!1){const e=s.value;if(e.some(e=>!e.json)){const t=e.map(e=>`Headers::\n${e.headers}\n\nBody::\n${e.body}`);throw new Error(`Expected multipart chunks to be of json type. got:\n${t}`)}yield e.map(e=>e.body)}}catch(s){l=[s]}finally{try{a&&(s=u.return)&&(yield new I(s.call(u)))}finally{if(l)throw l[0]}}},o=(e,t,n,r)=>{try{var a=i[e](t),s=(t=a.value)instanceof I,l=a.done;Promise.resolve(s?t[0]:t).then(i=>s?o("return"===e?e:"next",t[1]?{done:i.done,value:i.value}:i,n,r):n({value:i,done:l})).catch(e=>o("throw",e,n,r))}catch(pV){r(pV)}},a=e=>s[e]=t=>new Promise((n,r)=>o(e,t,n,r)),s={},i=i.apply(this,null),s[A("asyncIterator")]=()=>s,a("next"),a("throw"),a("return"),s;var i,o,a,s};function Gs(e){return JSON.stringify(e,null,2)}function Ks(e){return e instanceof Error?function(e){return L(O({},e),{message:e.message,stack:e.stack})}(e):e}function Ys(e){return Array.isArray(e)?Gs({errors:e.map(e=>Ks(e))}):Gs({errors:[Ks(e)]})}function Qs(e){return Gs(e)}function Xs(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=ct(t)}catch(pV){return{insertions:r,result:t}}const o=n||Js,a=new ti(e);return zt(i,{leave(e){a.leave(e)},enter(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){const n=Zs(function(e){if(e)return e}(a.getType()),o);if(n&&e.loc){const i=function(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.slice(n,r)}(t,e.loc.start);r.push({index:e.loc.end,string:" "+Wt(n).replaceAll("\n","\n"+i)})}}}}),{insertions:r,result:el(t,r)}}function Js(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];for(const r of Object.keys(t))kn(t[r].type)&&n.push(r);return n}function Zs(e,t){const n=Dn(e);if(!e||kn(e))return;const r=t(n);return Array.isArray(r)&&0!==r.length&&"getFields"in n?{kind:fe.SELECTION_SET,selections:r.map(e=>{const r=n.getFields()[e],i=r?r.type:null;return{kind:fe.FIELD,name:{kind:fe.NAME,value:e},selectionSet:Zs(i,t)}})}:void 0}function el(e,t){if(0===t.length)return e;let n="",r=0;for(const{index:i,string:o}of t)n+=e.slice(r,i)+o,r=i;return n+=e.slice(r),n}function tl(e,t,n){var r;const i=n?Dn(n).name:null,o=[],a=[];for(let s of t){if("FragmentSpread"===s.kind){const t=s.name.value;if(!s.directives||0===s.directives.length){if(a.includes(t))continue;a.push(t)}const n=e[s.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:r}=n;s={kind:fe.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:r}}}if(s.kind===fe.INLINE_FRAGMENT&&(!s.directives||0===(null==(r=s.directives)?void 0:r.length))){const t=s.typeCondition?s.typeCondition.name.value:null;if(!t||t===i){o.push(...tl(e,s.selectionSet.selections,n));continue}}o.push(s)}return o}function nl(e,t){const n=t?new ti(t):null,r=Object.create(null);for(const o of e.definitions)o.kind===fe.FRAGMENT_DEFINITION&&(r[o.name.value]=o);const i={SelectionSet(e){const t=n?n.getParentType():null;let{selections:i}=e;return i=tl(r,i,t),L(O({},e),{selections:i})},FragmentDefinition:()=>null};return zt(zt(e,n?ii(n,i):i),{SelectionSet(e){let{selections:t}=e;return t=function(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),a=r.get(e);if(null!=(n=o.directives)&&n.length){const e=O({},o);i.push(e)}else if(null!=a&&a.selectionSet&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const t=O({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}(t,e=>e.alias?e.alias.value:e.name.value),L(O({},e),{selections:t})},FragmentDefinition:()=>null})}vs(),vs();var rl=class{constructor(e){e?this.storage=e:null===e||"undefined"==typeof window?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let e=0;for(const t in localStorage)0===t.indexOf(`${il}:`)&&(e+=1);return e},clear(){for(const e in localStorage)0===e.indexOf(`${il}:`)&&localStorage.removeItem(e)}}}get(e){if(!this.storage)return null;const t=`${il}:${e}`,n=this.storage.getItem(t);return"null"===n||"undefined"===n?(this.storage.removeItem(t),null):n||null}set(e,t){let n=!1,r=null;if(this.storage){const i=`${il}:${e}`;if(t)try{this.storage.setItem(i,t)}catch(pV){r=pV instanceof Error?pV:new Error(`${pV}`),n=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,pV)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}clear(){this.storage&&this.storage.clear()}},il="graphiql",ol=class{constructor(e,t,n=null){this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e,t){if("number"==typeof t&&this.items[t]){const n=this.items[t];if(n.query===e.query&&n.variables===e.variables&&n.headers===e.headers&&n.operationName===e.operationName)return this.items.splice(t,1,e),void this.save()}const n=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==n&&(this.items.splice(n,1,e),this.save())}delete(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let n=0;n<5;n++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(null!=e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}};vs();var al,sl,ll,ul,cl=class{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=({query:e,variables:t,headers:n,operationName:r})=>{if(!this.shouldSaveQuery(e,t,n,this.history.fetchRecent()))return;this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)},this.deleteHistory=({query:e,variables:t,headers:n,operationName:r,favorite:i},o=!1)=>{function a(i){const o=i.items.find(i=>i.query===e&&i.variables===t&&i.headers===n&&i.operationName===r);o&&i.delete(o)}(i||o)&&a(this.favorite),(!i||o)&&a(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new ol("queries",this.storage,this.maxHistoryLength),this.favorite=new ol("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,r){if(!e)return!1;try{ct(e)}catch(pV){return!1}return!(e.length>1e5||r&&JSON.stringify(e)===JSON.stringify(r.query)&&(JSON.stringify(t)===JSON.stringify(r.variables)&&(JSON.stringify(n)===JSON.stringify(r.headers)||n&&!r.headers)||t&&!r.variables))}toggleFavorite({query:e,variables:t,headers:n,operationName:r,label:i,favorite:o}){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?(a.favorite=!1,this.favorite.delete(a),this.history.push(a)):(a.favorite=!0,this.favorite.push(a),this.history.delete(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:e,variables:t,headers:n,operationName:r,label:i,favorite:o},a){const s={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(L(O({},s),{favorite:o}),a):this.history.edit(s,a),this.queries=[...this.history.items,...this.favorite.items]}};function dl(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i({proximity:ml(hl(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry):pl(e,e=>!e.isDeprecated)}(t,hl(e.string))}function pl(e,t){const n=e.filter(t);return 0===n.length?e:n}function hl(e){return e.toLowerCase().replaceAll(/\W/g,"")}function ml(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}var gl,vl,yl,bl,wl,xl,El,kl,Cl,Sl,Tl,_l,Nl,Al,Dl,Ol,Ll,Il,Ml,Fl,Pl,Rl,jl,Vl,Bl,zl,$l,Ul,Hl,Wl,ql,Gl,Kl,Yl,Ql,Xl,Jl,Zl,eu,tu,nu,ru,iu,ou,au,su,lu,uu,cu,du,fu,pu,hu,mu,gu,vu,yu,bu,wu,xu,Eu,ku,Cu,Su,Tu,_u,Nu,Au,Du,Ou,Lu,Iu,Mu,Fu,Pu,Ru,ju,Vu,Bu,zu,$u,Uu,Hu=a(()=>{vs(),al=e=>` {\n $${null!=e?e:1}\n}`,sl=(e,t,n)=>{if(!t)return null!=n?n:e;const r=Dn(t);return hn(r)||yn(r)||bn(r)||Sn(r)?e+al():null!=n?n:e},ll=(e,t,n)=>bn(t)?e+`[${sl("",Dn(t.ofType),"$1")}]`:sl(e,t,n),ul=e=>{const t=e.args.filter(e=>e.type.toString().endsWith("!"));if(t.length)return e.name+`(${t.map((e,t)=>`${e.name}: $${t+1}`)}) ${sl("",e.type,"\n")}`}}),Wu=a(()=>{!function(e){e.is=function(e){return"string"==typeof e}}(gl||(gl={})),function(e){e.is=function(e){return"string"==typeof e}}(vl||(vl={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(yl||(yl={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(bl||(bl={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=bl.MAX_VALUE),t===Number.MAX_VALUE&&(t=bl.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return $u.objectLiteral(t)&&$u.uinteger(t.line)&&$u.uinteger(t.character)}}(wl||(wl={})),function(e){e.create=function(e,t,n,r){if($u.uinteger(e)&&$u.uinteger(t)&&$u.uinteger(n)&&$u.uinteger(r))return{start:wl.create(e,t),end:wl.create(n,r)};if(wl.is(e)&&wl.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},e.is=function(e){let t=e;return $u.objectLiteral(t)&&wl.is(t.start)&&wl.is(t.end)}}(xl||(xl={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return $u.objectLiteral(t)&&xl.is(t.range)&&($u.string(t.uri)||$u.undefined(t.uri))}}(El||(El={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){let t=e;return $u.objectLiteral(t)&&xl.is(t.targetRange)&&$u.string(t.targetUri)&&xl.is(t.targetSelectionRange)&&(xl.is(t.originSelectionRange)||$u.undefined(t.originSelectionRange))}}(kl||(kl={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){const t=e;return $u.objectLiteral(t)&&$u.numberRange(t.red,0,1)&&$u.numberRange(t.green,0,1)&&$u.numberRange(t.blue,0,1)&&$u.numberRange(t.alpha,0,1)}}(Cl||(Cl={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return $u.objectLiteral(t)&&xl.is(t.range)&&Cl.is(t.color)}}(Sl||(Sl={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return $u.objectLiteral(t)&&$u.string(t.label)&&($u.undefined(t.textEdit)||Fl.is(t))&&($u.undefined(t.additionalTextEdits)||$u.typedArray(t.additionalTextEdits,Fl.is))}}(Tl||(Tl={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(_l||(_l={})),function(e){e.create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return $u.defined(n)&&(a.startCharacter=n),$u.defined(r)&&(a.endCharacter=r),$u.defined(i)&&(a.kind=i),$u.defined(o)&&(a.collapsedText=o),a},e.is=function(e){const t=e;return $u.objectLiteral(t)&&$u.uinteger(t.startLine)&&$u.uinteger(t.startLine)&&($u.undefined(t.startCharacter)||$u.uinteger(t.startCharacter))&&($u.undefined(t.endCharacter)||$u.uinteger(t.endCharacter))&&($u.undefined(t.kind)||$u.string(t.kind))}}(Nl||(Nl={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return $u.defined(t)&&El.is(t.location)&&$u.string(t.message)}}(Al||(Al={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(Dl||(Dl={})),function(e){e.Unnecessary=1,e.Deprecated=2}(Ol||(Ol={})),function(e){e.is=function(e){const t=e;return $u.objectLiteral(t)&&$u.string(t.href)}}(Ll||(Ll={})),function(e){e.create=function(e,t,n,r,i,o){let a={range:e,message:t};return $u.defined(n)&&(a.severity=n),$u.defined(r)&&(a.code=r),$u.defined(i)&&(a.source=i),$u.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t;let n=e;return $u.defined(n)&&xl.is(n.range)&&$u.string(n.message)&&($u.number(n.severity)||$u.undefined(n.severity))&&($u.integer(n.code)||$u.string(n.code)||$u.undefined(n.code))&&($u.undefined(n.codeDescription)||$u.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&($u.string(n.source)||$u.undefined(n.source))&&($u.undefined(n.relatedInformation)||$u.typedArray(n.relatedInformation,Al.is))}}(Il||(Il={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return $u.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return $u.defined(t)&&$u.string(t.title)&&$u.string(t.command)}}(Ml||(Ml={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return $u.objectLiteral(t)&&$u.string(t.newText)&&xl.is(t.range)}}(Fl||(Fl={})),function(e){e.create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){const t=e;return $u.objectLiteral(t)&&$u.string(t.label)&&($u.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&($u.string(t.description)||void 0===t.description)}}(Pl||(Pl={})),function(e){e.is=function(e){const t=e;return $u.string(t)}}(Rl||(Rl={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return Fl.is(t)&&(Pl.is(t.annotationId)||Rl.is(t.annotationId))}}(jl||(jl={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return $u.defined(t)&&ql.is(t.textDocument)&&Array.isArray(t.edits)}}(Vl||(Vl={})),function(e){e.create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"create"===t.kind&&$u.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||$u.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||$u.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Rl.is(t.annotationId))}}(Bl||(Bl={})),function(e){e.create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){let t=e;return t&&"rename"===t.kind&&$u.string(t.oldUri)&&$u.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||$u.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||$u.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Rl.is(t.annotationId))}}(zl||(zl={})),function(e){e.create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"delete"===t.kind&&$u.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||$u.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||$u.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Rl.is(t.annotationId))}}($l||($l={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(e=>$u.string(e.kind)?Bl.is(e)||zl.is(e)||$l.is(e):Vl.is(e)))}}(Ul||(Ul={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return $u.defined(t)&&$u.string(t.uri)}}(Hl||(Hl={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return $u.defined(t)&&$u.string(t.uri)&&$u.integer(t.version)}}(Wl||(Wl={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return $u.defined(t)&&$u.string(t.uri)&&(null===t.version||$u.integer(t.version))}}(ql||(ql={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){let t=e;return $u.defined(t)&&$u.string(t.uri)&&$u.string(t.languageId)&&$u.integer(t.version)&&$u.string(t.text)}}(Gl||(Gl={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(Kl||(Kl={})),function(e){e.is=function(e){const t=e;return $u.objectLiteral(e)&&Kl.is(t.kind)&&$u.string(t.value)}}(Yl||(Yl={})),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}(Ql||(Ql={})),function(e){e.PlainText=1,e.Snippet=2}(Xl||(Xl={})),function(e){e.Deprecated=1}(Jl||(Jl={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&$u.string(t.newText)&&xl.is(t.insert)&&xl.is(t.replace)}}(Zl||(Zl={})),function(e){e.asIs=1,e.adjustIndentation=2}(eu||(eu={})),function(e){e.is=function(e){const t=e;return t&&($u.string(t.detail)||void 0===t.detail)&&($u.string(t.description)||void 0===t.description)}}(tu||(tu={})),function(e){e.create=function(e){return{label:e}}}(nu||(nu={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(ru||(ru={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return $u.string(t)||$u.objectLiteral(t)&&$u.string(t.language)&&$u.string(t.value)}}(iu||(iu={})),function(e){e.is=function(e){let t=e;return!!t&&$u.objectLiteral(t)&&(Yl.is(t.contents)||iu.is(t.contents)||$u.typedArray(t.contents,iu.is))&&(void 0===e.range||xl.is(e.range))}}(ou||(ou={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(au||(au={})),function(e){e.create=function(e,t,...n){let r={label:e};return $u.defined(t)&&(r.documentation=t),$u.defined(n)?r.parameters=n:r.parameters=[],r}}(su||(su={})),function(e){e.Text=1,e.Read=2,e.Write=3}(lu||(lu={})),function(e){e.create=function(e,t){let n={range:e};return $u.number(t)&&(n.kind=t),n}}(uu||(uu={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(cu||(cu={})),function(e){e.Deprecated=1}(du||(du={})),function(e){e.create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}}(fu||(fu={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(pu||(pu={})),function(e){e.create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},e.is=function(e){let t=e;return t&&$u.string(t.name)&&$u.number(t.kind)&&xl.is(t.range)&&xl.is(t.selectionRange)&&(void 0===t.detail||$u.string(t.detail))&&(void 0===t.deprecated||$u.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(hu||(hu={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(mu||(mu={})),function(e){e.Invoked=1,e.Automatic=2}(gu||(gu={})),function(e){e.create=function(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){let t=e;return $u.defined(t)&&$u.typedArray(t.diagnostics,Il.is)&&(void 0===t.only||$u.typedArray(t.only,$u.string))&&(void 0===t.triggerKind||t.triggerKind===gu.Invoked||t.triggerKind===gu.Automatic)}}(vu||(vu={})),function(e){e.create=function(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):Ml.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},e.is=function(e){let t=e;return t&&$u.string(t.title)&&(void 0===t.diagnostics||$u.typedArray(t.diagnostics,Il.is))&&(void 0===t.kind||$u.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||Ml.is(t.command))&&(void 0===t.isPreferred||$u.boolean(t.isPreferred))&&(void 0===t.edit||Ul.is(t.edit))}}(yu||(yu={})),function(e){e.create=function(e,t){let n={range:e};return $u.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return $u.defined(t)&&xl.is(t.range)&&($u.undefined(t.command)||Ml.is(t.command))}}(bu||(bu={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return $u.defined(t)&&$u.uinteger(t.tabSize)&&$u.boolean(t.insertSpaces)}}(wu||(wu={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return $u.defined(t)&&xl.is(t.range)&&($u.undefined(t.target)||$u.string(t.target))}}(xu||(xu={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return $u.objectLiteral(n)&&xl.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(Eu||(Eu={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(ku||(ku={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(Cu||(Cu={})),function(e){e.is=function(e){const t=e;return $u.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(Su||(Su={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&xl.is(t.range)&&$u.string(t.text)}}(Tu||(Tu={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&xl.is(t.range)&&$u.boolean(t.caseSensitiveLookup)&&($u.string(t.variableName)||void 0===t.variableName)}}(_u||(_u={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&xl.is(t.range)&&($u.string(t.expression)||void 0===t.expression)}}(Nu||(Nu={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return $u.defined(t)&&xl.is(e.stoppedLocation)}}(Au||(Au={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Du||(Du={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return $u.objectLiteral(t)&&(void 0===t.tooltip||$u.string(t.tooltip)||Yl.is(t.tooltip))&&(void 0===t.location||El.is(t.location))&&(void 0===t.command||Ml.is(t.command))}}(Ou||(Ou={})),function(e){e.create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return $u.objectLiteral(t)&&wl.is(t.position)&&($u.string(t.label)||$u.typedArray(t.label,Ou.is))&&(void 0===t.kind||Du.is(t.kind))&&void 0===t.textEdits||$u.typedArray(t.textEdits,Fl.is)&&(void 0===t.tooltip||$u.string(t.tooltip)||Yl.is(t.tooltip))&&(void 0===t.paddingLeft||$u.boolean(t.paddingLeft))&&(void 0===t.paddingRight||$u.boolean(t.paddingRight))}}(Lu||(Lu={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(Iu||(Iu={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(Mu||(Mu={})),function(e){e.create=function(e){return{items:e}}}(Fu||(Fu={})),function(e){e.Invoked=0,e.Automatic=1}(Pu||(Pu={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(Ru||(Ru={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(ju||(ju={})),function(e){e.is=function(e){const t=e;return $u.objectLiteral(t)&&vl.is(t.uri)&&$u.string(t.name)}}(Vu||(Vu={})),function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,l=0;for(;a{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(Bu||(Bu={})),zu=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return wl.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return wl.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1{Uu=class{constructor(e){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return"string"==typeof e?(i=new RegExp(e,n?"i":"g").test(this._sourceText.slice(this._pos,this._pos+e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=null==i?void 0:i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}});function Gu(e){return{ofRule:e}}function Ku(e,t){return{ofRule:e,isList:!0,separator:t}}function Yu(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every(t=>t.match&&!t.match(e))},e}function Qu(e,t){return{style:t,match:t=>t.kind===e}}function Xu(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}var Ju,Zu,ec,tc=a(()=>{});function nc(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function rc(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}var ic,oc=a(()=>{tc(),vs(),Ju=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,Zu={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:/^#.*/},ec={Document:[Ku("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return fe.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:[nc("query"),Gu(rc("def")),Gu("VariableDefinitions"),Ku("Directive"),"SelectionSet"],Mutation:[nc("mutation"),Gu(rc("def")),Gu("VariableDefinitions"),Ku("Directive"),"SelectionSet"],Subscription:[nc("subscription"),Gu(rc("def")),Gu("VariableDefinitions"),Ku("Directive"),"SelectionSet"],VariableDefinitions:[Xu("("),Ku("VariableDefinition"),Xu(")")],VariableDefinition:["Variable",Xu(":"),"Type",Gu("DefaultValue")],Variable:[Xu("$","variable"),rc("variable")],DefaultValue:[Xu("="),"Value"],SelectionSet:[Xu("{"),Ku("Selection"),Xu("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[rc("property"),Xu(":"),rc("qualifier"),Gu("Arguments"),Ku("Directive"),Gu("SelectionSet")],Field:[rc("property"),Gu("Arguments"),Ku("Directive"),Gu("SelectionSet")],Arguments:[Xu("("),Ku("Argument"),Xu(")")],Argument:[rc("attribute"),Xu(":"),"Value"],FragmentSpread:[Xu("..."),rc("def"),Ku("Directive")],InlineFragment:[Xu("..."),Gu("TypeCondition"),Ku("Directive"),"SelectionSet"],FragmentDefinition:[nc("fragment"),Gu(Yu(rc("def"),[nc("on")])),"TypeCondition",Ku("Directive"),"SelectionSet"],TypeCondition:[nc("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[Qu("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Qu("Name","builtin")],NullValue:[Qu("Name","keyword")],EnumValue:[rc("string-2")],ListValue:[Xu("["),Ku("Value"),Xu("]")],ObjectValue:[Xu("{"),Ku("ObjectField"),Xu("}")],ObjectField:[rc("attribute"),Xu(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[Xu("["),"Type",Xu("]"),Gu(Xu("!"))],NonNullType:["NamedType",Gu(Xu("!"))],NamedType:[{style:"atom",match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}],Directive:[Xu("@","meta"),rc("meta"),Gu("Arguments")],DirectiveDef:[nc("directive"),Xu("@","meta"),rc("meta"),Gu("ArgumentsDef"),nc("on"),Ku("DirectiveLocation",Xu("|"))],InterfaceDef:[nc("interface"),rc("atom"),Gu("Implements"),Ku("Directive"),Xu("{"),Ku("FieldDef"),Xu("}")],Implements:[nc("implements"),Ku("NamedType",Xu("&"))],DirectiveLocation:[rc("string-2")],SchemaDef:[nc("schema"),Ku("Directive"),Xu("{"),Ku("OperationTypeDef"),Xu("}")],OperationTypeDef:[rc("keyword"),Xu(":"),rc("atom")],ScalarDef:[nc("scalar"),rc("atom"),Ku("Directive")],ObjectTypeDef:[nc("type"),rc("atom"),Gu("Implements"),Ku("Directive"),Xu("{"),Ku("FieldDef"),Xu("}")],FieldDef:[rc("property"),Gu("ArgumentsDef"),Xu(":"),"Type",Ku("Directive")],ArgumentsDef:[Xu("("),Ku("InputValueDef"),Xu(")")],InputValueDef:[rc("attribute"),Xu(":"),"Type",Gu("DefaultValue"),Ku("Directive")],UnionDef:[nc("union"),rc("atom"),Ku("Directive"),Xu("="),Ku("UnionMember",Xu("|"))],UnionMember:["NamedType"],EnumDef:[nc("enum"),rc("atom"),Ku("Directive"),Xu("{"),Ku("EnumValueDef"),Xu("}")],EnumValueDef:[rc("string-2"),Ku("Directive")],InputDef:[nc("input"),rc("atom"),Ku("Directive"),Xu("{"),Ku("InputValueDef"),Xu("}")],ExtendDef:[nc("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return fe.SCHEMA_EXTENSION;case"scalar":return fe.SCALAR_TYPE_EXTENSION;case"type":return fe.OBJECT_TYPE_EXTENSION;case"interface":return fe.INTERFACE_TYPE_EXTENSION;case"union":return fe.UNION_TYPE_EXTENSION;case"enum":return fe.ENUM_TYPE_EXTENSION;case"input":return fe.INPUT_OBJECT_TYPE_EXTENSION}},[fe.SCHEMA_EXTENSION]:["SchemaDef"],[fe.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[fe.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[fe.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[fe.UNION_TYPE_EXTENSION]:["UnionDef"],[fe.ENUM_TYPE_EXTENSION]:["EnumDef"],[fe.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]}});function ac(e={eatWhitespace:e=>e.eatWhile(Ju),lexRules:Zu,parseRules:ec,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return lc(e.parseRules,t,fe.DOCUMENT),t},token:(t,n)=>function(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:o,eatWhitespace:a,editorConfig:s}=n;if(t.rule&&0===t.rule.length?uc(t):t.needsAdvance&&(t.needsAdvance=!1,cc(t,!0)),e.sol()){const n=(null==s?void 0:s.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const l=function(e,t){const n=Object.keys(e);for(let r=0;r0&&e.at(-1){oc(),vs(),ic={Invalid:[],Comment:[]}});function vc(e,t){const n=e.split("\n"),r=ac();let i=r.startState(),o="",a=new Uu("");for(let s=0;s{Lc(),vs(),function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"}(pc||(pc={})),hc=[fe.SCHEMA_DEFINITION,fe.OPERATION_TYPE_DEFINITION,fe.SCALAR_TYPE_DEFINITION,fe.OBJECT_TYPE_DEFINITION,fe.INTERFACE_TYPE_DEFINITION,fe.UNION_TYPE_DEFINITION,fe.ENUM_TYPE_DEFINITION,fe.INPUT_OBJECT_TYPE_DEFINITION,fe.DIRECTIVE_DEFINITION,fe.SCHEMA_EXTENSION,fe.SCALAR_TYPE_EXTENSION,fe.OBJECT_TYPE_EXTENSION,fe.INTERFACE_TYPE_EXTENSION,fe.UNION_TYPE_EXTENSION,fe.ENUM_TYPE_EXTENSION,fe.INPUT_OBJECT_TYPE_EXTENSION],mc=e=>{let t=pc.UNKNOWN;if(e)try{zt(ct(e),{enter(e){if("Document"!==e.kind)return!!hc.includes(e.kind)&&(t=pc.TYPE_SYSTEM,Vt);t=pc.EXECUTABLE}})}catch(gf){return t}return t}});function bc(e,t,n){return n===Tr.name&&e.getQueryType()===t?Tr:n===_r.name&&e.getQueryType()===t?_r:n===Nr.name&&Cn(t)?Nr:"getFields"in t?t.getFields()[n]:null}function wc(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}function xc(e,t){let n,r,i,o,a,s,l,u,c,d,f;return wc(t,t=>{var p;switch(t.kind){case kc.QUERY:case"ShortQuery":d=e.getQueryType();break;case kc.MUTATION:d=e.getMutationType();break;case kc.SUBSCRIPTION:d=e.getSubscriptionType();break;case kc.INLINE_FRAGMENT:case kc.FRAGMENT_DEFINITION:t.type&&(d=e.getType(t.type));break;case kc.FIELD:case kc.ALIASED_FIELD:d&&t.name?(a=c?bc(e,c,t.name):null,d=a?a.type:null):a=null;break;case kc.SELECTION_SET:c=Dn(d);break;case kc.DIRECTIVE:i=t.name?e.getDirective(t.name):null;break;case kc.INTERFACE_DEF:t.name&&(l=null,f=new sn({name:t.name,interfaces:[],fields:{}}));break;case kc.OBJECT_TYPE_DEF:t.name&&(f=null,l=new an({name:t.name,interfaces:[],fields:{}}));break;case kc.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case kc.FIELD:r=a&&a.args;break;case kc.DIRECTIVE:r=i&&i.args;break;case kc.ALIASED_FIELD:{const n=null===(p=t.prevState)||void 0===p?void 0:p.name;if(!n){r=null;break}const i=c?bc(e,c,n):null;if(!i){r=null;break}r=i.args;break}default:r=null}else r=null;break;case kc.ARGUMENT:if(r)for(let e=0;ee.value===t.name):null;break;case kc.LIST_VALUE:const m=Nn(s);s=m instanceof nn?m.ofType:null;break;case kc.OBJECT_VALUE:const g=Dn(s);u=g instanceof cn?g.getFields():null;break;case kc.OBJECT_FIELD:const v=t.name&&u?u[t.name]:null;s=null==v?void 0:v.type,a=v,d=a?a.type:null;break;case kc.NAMED_TYPE:t.name&&(d=e.getType(t.name))}}),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:a,inputType:s,objectFieldDefs:u,parentType:c,type:d,interfaceDef:f,objectTypeDef:l}}var Ec,kc,Cc,Sc,Tc,_c,Nc,Ac,Dc=a(()=>{vs(),Lc()}),Oc=a(()=>{vs(),Ec={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",VARIABLE:"Variable"},kc=Object.assign(Object.assign({},fe),Ec)}),Lc=a(()=>{qu(),oc(),tc(),gc(),yc(),Dc(),Oc()}),Ic=a(()=>{Wu(),Lc(),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}(Cc||(Cc={}))});function Mc(e,t,n,r,i,o){var a;const s=Object.assign(Object.assign({},o),{schema:e}),l=function(e,t,n,r,i){const o=r||function(e,t,n=0){let r=null,i=null,o=null;const a=vc(e,(e,a,s,l)=>{if(!(l!==t.line||e.getCurrentPosition()+n({label:e.name,kind:Cc.Function})));if((null==m?void 0:m.kind)===fe.OBJECT_TYPE_EXTENSION)return fl(f,Object.values(e.getTypeMap()).filter(e=>hn(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Cc.Function})));if((null==m?void 0:m.kind)===fe.INTERFACE_TYPE_EXTENSION)return fl(f,Object.values(e.getTypeMap()).filter(mn).map(e=>({label:e.name,kind:Cc.Function})));if((null==m?void 0:m.kind)===fe.UNION_TYPE_EXTENSION)return fl(f,Object.values(e.getTypeMap()).filter(gn).map(e=>({label:e.name,kind:Cc.Function})));if((null==m?void 0:m.kind)===fe.ENUM_TYPE_EXTENSION)return fl(f,Object.values(e.getTypeMap()).filter(e=>vn(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Cc.Function})));if((null==m?void 0:m.kind)===fe.INPUT_OBJECT_TYPE_EXTENSION)return fl(f,Object.values(e.getTypeMap()).filter(yn).map(e=>({label:e.name,kind:Cc.Function})));if(p===kc.IMPLEMENTS||p===kc.NAMED_TYPE&&(null==m?void 0:m.kind)===kc.IMPLEMENTS)return function(e,t,n,r,i){if(t.needsSeparator)return[];const o=dl(n.getTypeMap()).filter(mn),a=o.map(({name:e})=>e),s=new Set;vc(r,(e,t)=>{var r,o,l,u,c;if(t.name&&(t.kind!==kc.INTERFACE_DEF||a.includes(t.name)||s.add(t.name),t.kind===kc.NAMED_TYPE&&(null===(r=t.prevState)||void 0===r?void 0:r.kind)===kc.IMPLEMENTS))if(i.interfaceDef){if(null===(o=i.interfaceDef)||void 0===o?void 0:o.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),r=null===(l=i.interfaceDef)||void 0===l?void 0:l.toConfig();i.interfaceDef=new sn(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new sn({name:t.name,fields:{}})]}))}else if(i.objectTypeDef){if(null===(u=i.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),r=null===(c=i.objectTypeDef)||void 0===c?void 0:c.toConfig();i.objectTypeDef=new an(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new sn({name:t.name,fields:{}})]}))}});const l=i.interfaceDef||i.objectTypeDef,u=((null==l?void 0:l.getInterfaces())||[]).map(({name:e})=>e);return fl(e,o.concat([...s].map(e=>({name:e}))).filter(({name:e})=>e!==(null==l?void 0:l.name)&&!u.includes(e)).map(e=>{const t={label:e.name,kind:Cc.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t}))}(f,u,e,t,c);if(p===kc.SELECTION_SET||p===kc.FIELD||p===kc.ALIASED_FIELD)return function(e,t,n){var r;if(t.parentType){const{parentType:i}=t;let o=[];return"getFields"in i&&(o=dl(i.getFields())),Cn(i)&&o.push(Nr),i===(null===(r=null==n?void 0:n.schema)||void 0===r?void 0:r.getQueryType())&&o.push(Tr,_r),fl(e,o.map((t,r)=>{var i;const o={sortText:String(r)+t.name,label:t.name,detail:String(t.type),documentation:null!==(i=t.description)&&void 0!==i?i:void 0,deprecated:Boolean(t.deprecationReason),isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,kind:Cc.Field,labelDetails:{detail:" "+t.type.toString()},type:t.type};return(null==n?void 0:n.fillLeafsOnComplete)&&(o.insertText=ul(t),o.insertText||(o.insertText=sl(t.name,t.type,t.name+(e.state.needsAdvance?"":"\n"))),o.insertText&&(o.insertTextFormat=Xl.Snippet,o.insertTextMode=eu.adjustIndentation,o.command=Sc)),o}))}return[]}(f,c,s);if(p===kc.ARGUMENTS||p===kc.ARGUMENT&&0===h){const{argDefs:e}=c;if(e)return fl(f,e.map(e=>{var t;return{label:e.name,insertText:ll(e.name+": ",e.type),insertTextMode:eu.adjustIndentation,insertTextFormat:Xl.Snippet,command:Sc,labelDetails:{detail:" "+String(e.type)},documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:Cc.Variable,type:e.type}}))}if((p===kc.OBJECT_VALUE||p===kc.OBJECT_FIELD&&0===h)&&c.objectFieldDefs){const e=dl(c.objectFieldDefs),t=p===kc.OBJECT_VALUE?Cc.Value:Cc.Field;return fl(f,e.map(e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=null==e?void 0:e.description)&&void 0!==n?n:void 0,kind:t,type:e.type,insertText:ll(e.name+": ",e.type),insertTextMode:eu.adjustIndentation,insertTextFormat:Xl.Snippet,command:Sc}}))}if(p===kc.ENUM_VALUE||p===kc.LIST_VALUE&&1===h||p===kc.OBJECT_FIELD&&2===h||p===kc.ARGUMENT&&2===h)return function(e,t,n,r){const i=Dn(t.inputType),o=Fc(n,r,e).filter(e=>e.detail===(null==i?void 0:i.name));return i instanceof un?fl(e,i.getValues().map(e=>{var t;return{label:e.name,detail:String(i),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:Cc.EnumMember,type:i}}).concat(o)):i===Jn?fl(e,o.concat([{label:"true",detail:String(Jn),documentation:"Not false.",kind:Cc.Variable,type:Jn},{label:"false",detail:String(Jn),documentation:"Not true.",kind:Cc.Variable,type:Jn}])):o}(f,c,t,e);if(p===kc.VARIABLE&&1===h){const n=Dn(c.inputType);return fl(f,Fc(t,e,f).filter(e=>e.detail===(null==n?void 0:n.name)))}if(p===kc.TYPE_CONDITION&&1===h||p===kc.NAMED_TYPE&&null!=m&&m.kind===kc.TYPE_CONDITION)return function(e,t,n){let r;if(t.parentType)if(Sn(t.parentType)){const e=function(e){if(!Sn(e))throw new Error(`Expected ${tt(e)} to be a GraphQL abstract type.`);return e}(t.parentType),i=n.getPossibleTypes(e),o=Object.create(null);for(const t of i)for(const e of t.getInterfaces())o[e.name]=e;r=i.concat(dl(o))}else r=[t.parentType];else r=dl(n.getTypeMap()).filter(e=>Cn(e)&&!e.name.startsWith("__"));return fl(e,r.map(e=>{const t=Dn(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:Cc.Field}}))}(f,c,e);if(p===kc.FRAGMENT_SPREAD&&1===h)return function(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),a=function(e){let t;return wc(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}(e.state),s=function(e){const t=[];return vc(e,(e,n)=>{n.kind===kc.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:kc.FRAGMENT_DEFINITION,name:{kind:fe.NAME,value:n.name},selectionSet:{kind:kc.SELECTION_SET,selections:[]},typeCondition:{kind:kc.NAMED_TYPE,name:{kind:fe.NAME,value:n.type}}})}),t}(r);return i&&i.length>0&&s.push(...i),fl(e,s.filter(e=>o[e.typeCondition.name.value]&&!(a&&a.kind===kc.FRAGMENT_DEFINITION&&a.name===e.name.value)&&Cn(t.parentType)&&Cn(o[e.typeCondition.name.value])&&Kn(n,t.parentType,o[e.typeCondition.name.value])).map(e=>({label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,labelDetails:{detail:`fragment ${e.name.value} on ${e.typeCondition.name.value}`},kind:Cc.Field,type:o[e.typeCondition.name.value]})))}(f,c,e,t,Array.isArray(i)?i:Tc(i));const g=Pc(u);return g.kind===kc.FIELD_DEF?fl(f,Object.values(e.getTypeMap()).filter(e=>En(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Cc.Function,insertText:(null==o?void 0:o.fillLeafsOnComplete)?e.name+"\n":e.name,insertTextMode:eu.adjustIndentation}))):g.kind===kc.INPUT_VALUE_DEF&&2===h?fl(f,Object.values(e.getTypeMap()).filter(e=>xn(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Cc.Function,insertText:(null==o?void 0:o.fillLeafsOnComplete)?e.name+"\n$1":e.name,insertTextMode:eu.adjustIndentation,insertTextFormat:Xl.Snippet}))):p===kc.VARIABLE_DEFINITION&&2===h||p===kc.LIST_TYPE&&1===h||p===kc.NAMED_TYPE&&m&&(m.kind===kc.VARIABLE_DEFINITION||m.kind===kc.LIST_TYPE||m.kind===kc.NON_NULL_TYPE)?function(e,t){return fl(e,dl(t.getTypeMap()).filter(xn).map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:Cc.Variable})))}(f,e):p===kc.DIRECTIVE?function(e,t,n){var r;return(null===(r=t.prevState)||void 0===r?void 0:r.kind)?fl(e,n.getDirectives().filter(e=>function(e,t){if(!(null==e?void 0:e.kind))return!1;const{kind:n,prevState:r}=e,{locations:i}=t;switch(n){case kc.QUERY:return i.includes(de.QUERY);case kc.MUTATION:return i.includes(de.MUTATION);case kc.SUBSCRIPTION:return i.includes(de.SUBSCRIPTION);case kc.FIELD:case kc.ALIASED_FIELD:return i.includes(de.FIELD);case kc.FRAGMENT_DEFINITION:return i.includes(de.FRAGMENT_DEFINITION);case kc.FRAGMENT_SPREAD:return i.includes(de.FRAGMENT_SPREAD);case kc.INLINE_FRAGMENT:return i.includes(de.INLINE_FRAGMENT);case kc.SCHEMA_DEF:return i.includes(de.SCHEMA);case kc.SCALAR_DEF:return i.includes(de.SCALAR);case kc.OBJECT_TYPE_DEF:return i.includes(de.OBJECT);case kc.FIELD_DEF:return i.includes(de.FIELD_DEFINITION);case kc.INTERFACE_DEF:return i.includes(de.INTERFACE);case kc.UNION_DEF:return i.includes(de.UNION);case kc.ENUM_DEF:return i.includes(de.ENUM);case kc.ENUM_VALUE:return i.includes(de.ENUM_VALUE);case kc.INPUT_DEF:return i.includes(de.INPUT_OBJECT);case kc.INPUT_VALUE_DEF:switch(null==r?void 0:r.kind){case kc.ARGUMENTS_DEF:return i.includes(de.ARGUMENT_DEFINITION);case kc.INPUT_DEF:return i.includes(de.INPUT_FIELD_DEFINITION)}}return!1}(t.prevState,e)).map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:Cc.Function}))):[]}(f,u,e):p===kc.DIRECTIVE_DEF?function(e,t,n){const r=n.getDirectives().find(e=>e.name===t.name);return fl(e,(null==r?void 0:r.args.map(e=>({label:e.name,documentation:e.description||"",kind:Cc.Field})))||[])}(f,u,e):[]}function Fc(e,t,n){let r,i=null;const o=Object.create({});return vc(e,(e,a)=>{var s;if((null==a?void 0:a.kind)===kc.VARIABLE&&a.name&&(i=a.name),(null==a?void 0:a.kind)===kc.NAMED_TYPE&&i){const e=Ac(a,kc.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}if(i&&r&&!o[i]){const e="$"===n.string||"Variable"===(null===(s=null==n?void 0:n.state)||void 0===s?void 0:s.kind)?i:"$"+i;o[i]={detail:r.toString(),insertText:e,label:"$"+i,rawInsert:e,type:r,kind:Cc.Variable},i=null,r=null}}),dl(o)}function Pc(e){return e.prevState&&e.kind&&[kc.NAMED_TYPE,kc.LIST_TYPE,kc.TYPE,kc.NON_NULL_TYPE].includes(e.kind)?Pc(e.prevState):e}var Rc,jc,Vc,Bc,zc,$c,Uc,Hc=a(()=>{vs(),Ic(),Lc(),Hu(),Wu(),Sc={command:"editor.action.triggerSuggest",title:"Suggestions"},Tc=e=>{const t=[];if(e)try{zt(ct(e),{FragmentDefinition(e){t.push(e)}})}catch(gf){return[]}return t},_c=[{label:"type",kind:Cc.Function},{label:"interface",kind:Cc.Function},{label:"union",kind:Cc.Function},{label:"input",kind:Cc.Function},{label:"scalar",kind:Cc.Function},{label:"schema",kind:Cc.Function}],Nc=[{label:"query",kind:Cc.Function},{label:"mutation",kind:Cc.Function},{label:"subscription",kind:Cc.Function},{label:"fragment",kind:Cc.Function},{label:"{",kind:Cc.Constructor}],Ac=(e,t)=>{var n,r,i,o,a,s,l,u,c,d;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(d=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===d?void 0:d.kind)===t?e.prevState.prevState.prevState.prevState:void 0}}),Wc=s((e,t)=>{function n(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}t.exports=n,t.exports.default=n,Object.defineProperty(t.exports,"__esModule",{value:!0})}),qc=a(()=>{vs(),Rc=c(Wc()),jc=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;zt(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const i=new Set;for(const a of r)!n.has(a)&&t.has(a)&&i.add((0,Rc.default)(t.get(a)));const o=[];for(const a of i)zt(a,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add((0,Rc.default)(t.get(e.name.value))),r.add(e.name.value))}}),n.has(a.name.value)||o.push(a);return o}}),Gc=a(()=>{Vc=class{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new Bc(e,t)}setEnd(e,t){this.end=new Bc(e,t)}},Bc=class{constructor(e,t){this.lessThanOrEqualTo=e=>this.line{vs()}),Yc=a(()=>{vs()}),Qc=a(()=>{vs(),Yc()}),Xc=a(()=>{qc(),Gc(),Kc(),Qc()}),Jc=a(()=>{Xc()});function Zc(e,t,n){if(!e.nodes)return[];const r=[];for(const[i,o]of e.nodes.entries()){const a="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(a){Uc(e.locations,"GraphQL validation error requires locations.");const o=e.locations[i],s=ed(a),l=o.column+(s.end-s.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new Vc(new Bc(o.line-1,o.column-1),new Bc(o.line-1,l))})}}return r}function ed(e){const t=e.loc;return Uc(t,"Expected ASTNode to have a location."),t}var td=a(()=>{vs(),Lc(),Xc(),zc={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},$c={[zc.Error]:1,[zc.Warning]:2,[zc.Information]:3,[zc.Hint]:4},Uc=(e,t)=>{if(!e)throw new Error(t)}}),nd=a(()=>{Xc()}),rd=a(()=>{Lc()}),id=a(()=>{Hu(),Hc(),Jc(),td(),nd(),rd()}),od=a(()=>{id(),Lc(),Ic(),Xc()}),ad=s((e,t)=>{t.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}}),sd=s((e,t)=>{t.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}}),ld=s((e,t)=>{var n=sd();function r(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}t.exports=function(e){var t,n;return!1!==r(e)&&"function"==typeof(t=e.constructor)&&!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}}),ud=s((e,t)=>{var{deleteProperty:n}=Reflect,r=ad(),i=ld(),o=e=>"object"==typeof e&&null!==e||"function"==typeof e,a=e=>{if(!r(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},s=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:((e,t,n)=>{const r=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n})(e,t):e);a(r);const i=u.cache.get(r)||n();return u.cache.set(r,i),i})(e,t,()=>((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let s=0;s{if(a(t),void 0===r)n(e,t);else if(o&&o.merge){const n="function"===o.merge?o.merge:Object.assign;n&&i(e[t])&&i(r)?e[t]=n(e[t],r):e[t]=r}else e[t]=r;return e},u=(e,t,n,r)=>{if(!t||!o(e))return e;const i=s(t,r);let u=e;for(let s=0;s{u.cache=new Map},t.exports=u}),cd=s((e,t)=>{var n=sd();function r(e,t,n){return"function"==typeof n.join?n.join(e):e[0]+t+e[1]}function i(e,t,n){return"function"!=typeof n.isValid||n.isValid(e,t)}function o(e){return n(e)||Array.isArray(e)||"function"==typeof e}t.exports=function(e,t,a){if(n(a)||(a={default:a}),!o(e))return void 0!==a.default?a.default:e;"number"==typeof t&&(t=String(t));const s=Array.isArray(t),l="string"==typeof t,u=a.separator||".",c=a.joinChar||("string"==typeof u?u:".");if(!l&&!s)return e;if(l&&t in e)return i(t,e,a)?e[t]:a.default;let d=s?t:function(e,t,n){return"function"==typeof n.split?n.split(e):e.split(t)}(t,u,a),f=d.length,p=0;do{let t=d[p];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=r([t.slice(0,-1),d[++p]||""],c,a);if(t in e){if(!i(t,e,a))return a.default;e=e[t]}else{let n=!1,o=p+1;for(;o{let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,i,o);return o},md=e=>e?hd(e):hd,gd=e=>e,vd=e=>t=>function(e,t=gd){const n=dd.useSyncExternalStore(e.subscribe,dd.useCallback(()=>t(e.getState()),[e,t]),dd.useCallback(()=>t(e.getInitialState()),[e,t]));return dd.useDebugValue(n),n}(e,t),yd=E(),bd=md(()=>({storage:null})),wd=e=>{const t=(0,yd.c)(3),{storage:n,children:r}=e,i=xd(kd);let o,a;return t[0]!==n?(o=()=>{bd.setState({storage:new rl(n)})},a=[n],t[0]=n,t[1]=o,t[2]=a):(o=t[1],a=t[2]),(0,dd.useEffect)(o,a),i?r:null},xd=vd(bd),Ed=()=>xd(Cd);function kd(e){return Boolean(e.storage)}function Cd(e){return e.storage}var Sd="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac"),Td=s((e,t)=>{!function(n,r){"object"==typeof e&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):(n=n||self).CodeMirror=r()}(e,function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),d=c&&+c[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),w=/\bCrOS\b/.test(e),x=/win/i.test(t),E=f&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(f=!1,l=!0);var k=b&&(u||f&&(null==E||E<12.11)),C=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,_=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return N(e).appendChild(t)}function D(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(P=function(e){try{e.select()}catch(t){}});var H=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};function W(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var X=[""];function J(e){for(;X.length<=e;)X.push(Z(X)+" ");return X[e]}function Z(e){return e[e.length-1]}function ee(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\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 le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ue(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var de=null;function fe(e,t,n){var r;de=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:de=i)}return null!=r?r:de}var pe=function(){function e(e){return e<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,r=/[LRr]/,i=/[Lb1n]/,o=/[1n]/;function a(e,t,n){this.level=e,this.from=t,this.to=n}return function(s,l){var u="ltr"==l?"L":"R";if(0==s.length||"ltr"==l&&!t.test(s))return!1;for(var c=s.length,d=[],f=0;f-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function be(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function ke(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function _e(e){Ce(e),Se(e)}function Ne(e){return e.target||e.srcElement}function Ae(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var De,Oe,Le=function(){if(a&&s<9)return!1;var e=D("div");return"draggable"in e||"dragDrop"in e}();function Ie(e){if(null==De){var t=D("span","​");A(e,D("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(De=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=De?D("span","​"):D("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Me(e){if(null!=Oe)return Oe;var t=A(e,document.createTextNode("AخA")),n=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return N(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Fe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Pe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(pV){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(pV){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re=function(){var e=D("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),je=null,Ve={},Be={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ve[e]=t}function $e(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $e("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $e("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ue(e,t){t=$e(t);var n=Ve[t.name];if(!n)return Ue(e,"text/plain");var r=n(e,t);if(He.hasOwnProperty(t.name)){var i=He[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var He={};function We(e,t){$(t,He.hasOwnProperty(e)?He[e]:He[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}var Ye=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Qe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?it(n,Qe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}(t,Qe(e,t.line).text.length)}function ft(e,t){for(var n=[],r=0;r=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.post},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},ht=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var i=[e.state.modeGen],o={};Ct(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Ct(e,t.text,s.mode,n,function(e,t){for(var n=l;ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&qe(e.doc.mode,r.state),o=mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function vt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ht(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Qe(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof pt?u.lookAhead:0)<=o.modeFrontier))return s;var c=U(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&Qe(r,o-1).stateAfter,s=a?ht.fromSaved(r,a,o):new ht(r,Ke(r.mode),o);return r.iter(o,t,function(n){yt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ht.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ht.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ht.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ht.fromSaved=function(e,t,n){return t instanceof pt?new ht(e,qe(e.mode,t.state),n,t.lookAhead):new ht(e,qe(e.mode,t),n)},ht.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var xt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Et(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Qe(a,(t=dt(a,t)).line),u=vt(e,t.line,n),c=new Ye(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&&yt(e,t,r,d.pos),d.pos=t.length,l=null):l=kt(wt(n,d,r.state,f),o),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u=t:o.to>t);(r||(r=[])).push(new _t(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;bt)&&(!n||Pt(n,o.marker)<0)&&(n=o.marker)}return n}function zt(e,t,n,r,i){var o=Qe(e,t),a=Tt&&o.markedSpans;if(a)for(var s=0;s=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.from,r)<=0:ot(u.from,r)<0)))return!0}}}function $t(e){for(var t;t=jt(e);)e=t.find(-1,!0).line;return e}function Ut(e,t){var n=Qe(e,t),r=$t(n);return n==r?t:et(r)}function Ht(e,t){if(t>e.lastLine())return t;var n,r=Qe(e,t);if(!Wt(e,r))return t;for(;n=Vt(r);)r=n.find(1,!0).line;return et(r)+1}function Wt(e,t){var n=Tt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Qt=function(e,t,n){this.text=e,It(this,t),this.height=n?n(this):1};function Xt(e){e.parent=null,Lt(e)}Qt.prototype.lineNo=function(){return et(this)},ke(Qt);var Jt={},Zt={};function en(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Zt:Jt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function tn(e,t){var n=O("span",null,null,l?"padding-right: .1px":null),r={pre:O("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=rn,Me(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=on(r.addToken,a)),r.map=[],sn(o,r,gt(e,o,t!=e.display.externalMeasured&&et(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=F(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=F(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ie(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=F(r.pre.className,r.textClass||"")),r}function nn(e){var t=D("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function rn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&d.from<=u);f++);if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function an(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function sn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,w=0;wh||E.collapsed&&x.to==h&&x.from==h)){if(null!=x.to&&x.to!=h&&v>x.to&&(v=x.to,u=""),E.className&&(l+=" "+E.className),E.css&&(s=(s?s+";":"")+E.css),E.startStyle&&x.from==h&&(c+=" "+E.startStyle),E.endStyle&&x.to==v&&(b||(b=[])).push(E.endStyle,x.to),E.title&&((f||(f={})).title=E.title),E.attributes)for(var k in E.attributes)(f||(f={}))[k]=E.attributes[k];E.collapsed&&(!d||Pt(d.marker,E)<0)&&(d=x)}else x.from>h&&v>x.from&&(v=x.from)}if(b)for(var C=0;C=p)break;for(var T=Math.min(p,v);;){if(g){var _=h+g.length;if(!d){var N=_>T?g.slice(0,T-h):g;t.addToken(t,N,a?a+l:l,c,h+N.length==v?u:"",s,f)}if(_>=T){g=g.slice(T-h),h=T;break}h=_,c=""}g=i.slice(o,o=n[m++]),a=en(n[m++],t.cm.options)}}else for(var A=1;An)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Mn(e,t,n,r){return Rn(e,Pn(e,t),n,r)}function Fn(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),o=function(e,t,n,r){var i,o=Bn(t.map,n,r),l=o.node,u=o.start,c=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;u&&le(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;u>0&&(d=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+lr(e.display),top:h.top,bottom:h.bottom}:Vn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function $n(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=fe(s,l,u),f=de,p=c(l,d,"before"==u);return null!=f&&(p.other=c(l,f,"before"!=u)),p}function Jn(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=lr(e.display)*t.ch);var r=Qe(e.doc,t.line),i=Gt(r)+_n(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Zn(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Zn(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return Zn(r.first+r.size-1,Qe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Qe(r,i);;){var s=ir(e,a,i,t,n),l=Bt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Qe(r,i=u.line)}}function tr(e,t,n,r){r-=Gn(t);var i=t.text.length,o=ce(function(t){return Rn(e,n,t-1).bottom<=r},i,0);return i=ce(function(t){return Rn(e,n,t).top>r},o,i),{begin:o,end:i}}function nr(e,t,n,r){return n||(n=Pn(e,t)),tr(e,t,n,Kn(e,t,Rn(e,n,r),"line").top)}function rr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function ir(e,t,n,r,i){i-=Gt(t);var o=Pn(e,t),a=Gn(t),s=0,l=t.text.length,u=!0,c=he(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?ar:or)(e,t,n,o,c,r,i);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var f,p,h=null,m=null,g=ce(function(t){var n=Rn(e,o,t);return n.top+=a,n.bottom+=a,!!rr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)},s,l),v=!1;if(m){var y=r-m.left=w.bottom?1:0}return Zn(n,g=ue(t.text,g,1),p,v,r-f)}function or(e,t,n,r,i,o,a){var s=ce(function(s){var l=i[s],u=1!=l.level;return rr(Xn(e,it(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Xn(e,it(n,u?l.from:l.to,u?"after":"before"),"line",t,r);rr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function ar(e,t,n,r,i,o,a){var s=tr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f=u||p.to<=l)){var h=Rn(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=hm)&&(c=p,d=m)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function sr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==jn){jn=D("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)jn.appendChild(document.createTextNode("x")),jn.appendChild(D("br"));jn.appendChild(document.createTextNode("x"))}A(e.measure,jn);var n=jn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),N(e.measure),n||1}function lr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=D("span","xxxxxxxxxx"),n=D("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ur(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:cr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function cr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function dr(e){var t=sr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/lr(e.display)-3);return function(i){if(Wt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=Qe(e.doc,u.line).text).length==u.ch){var c=U(l,l.length,e.options.tabSize)-l.length;u=it(u.line,Math.max(0,Math.round((o-An(e.display).left)/lr(e.display))-c))}return u}function hr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Tt&&Ut(e.doc,t)i.viewFrom?vr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)vr(e);else if(t<=i.viewFrom){var o=yr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):vr(e)}else if(n>=i.viewTo){var a=yr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):vr(e)}else{var s=yr(e,t,t,-1),l=yr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(un(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):vr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[hr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,n)&&a.push(n)}}}function vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function yr(e,t,n,r){var i,o=hr(e,t),a=e.display.view;if(!Tt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Ut(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function br(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(D("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function kr(e,t){return e.top-t.top||e.left-t.left}function Cr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=An(e.display),s=a.left,l=Math.max(r.sizerWidth,On(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Qe(i,t),f=d.text.length;function p(n,r){return Qn(e,it(t,n),"div",d,r)}function h(t,n,r){var i=nr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return p("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=he(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,function(e,t,i,d){var g="ltr"==i,v=p(e,g?"left":"right"),y=p(t-1,g?"right":"left"),b=null==n&&0==e,w=null==r&&t==f,x=0==d,E=!m||d==m.length-1;if(y.top-v.top<=3){var k=(u?w:b)&&E,C=(u?b:w)&&x?s:(g?v:y).left,S=k?l:(g?y:v).right;c(C,v.top,S-C,v.bottom)}else{var T,_,N,A;g?(T=u&&b&&x?s:v.left,_=u?l:h(e,i,"before"),N=u?s:h(t,i,"after"),A=u&&w&&E?l:y.right):(T=u?h(e,i,"before"):s,_=!u&&b&&x?l:v.right,N=!u&&w&&E?s:y.left,A=u?h(t,i,"after"):l),c(T,v.top,_-T,v.bottom),v.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Ar(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Tr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Nr(e))}function _r(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ar(e))},100)}function Nr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,M(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Sr(e))}function Ar(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Dr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ie.display.sizerWidth){var v=Math.ceil(f/lr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Or(e){if(e.widgets)for(var t=0;t=a&&(o=tt(t,Gt(Qe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Ir(e,t){var n=e.display,r=sr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Ln(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Nn(n),l=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=On(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Mr(e,t){null!=t&&(Rr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Fr(e){Rr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Pr(e,t,n){null==t&&null==n||Rr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Rr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,jr(e,Jn(e,t.from),Jn(e,t.to),t.margin))}function jr(e,t,n,r){var i=Ir(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Pr(e,i.scrollLeft,i.scrollTop)}function Vr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||fi(e,{top:t}),Br(e,t,!0),n&&fi(e),si(e,100))}function Br(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function zr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,mi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function $r(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Nn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Dn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ur=function(e,t,n){this.cm=n;var r=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ge(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),ge(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ur.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Ur.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ur.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ur.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new H,this.disableVert=new H},Ur.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)})},Ur.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Hr=function(){};function Wr(e,t){t||(t=$r(e));var n=e.display.barWidth,r=e.display.barHeight;qr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Dr(e),qr(e,$r(e)),n=e.display.barWidth,r=e.display.barHeight}function qr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Hr.prototype.update=function(){return{bottom:0,right:0}},Hr.prototype.setScrollLeft=function(){},Hr.prototype.setScrollTop=function(){},Hr.prototype.clear=function(){};var Gr={native:Ur,null:Hr};function Kr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Gr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ge(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?zr(e,t):Vr(e,t)},e),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)}var Yr=0;function Qr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Yr,markArrays:null},t=e.curOp,cn?cn.ops.push(t):t.ownsGroup=cn={ops:[t],delayedCallbacks:[]}}function Xr(e){var t=e.curOp;t&&function(e){var t=e.ownsGroup;if(t)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ui(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Zr(e){e.updatedDisplay=e.mustUpdate&&ci(e.cm,e.update)}function ei(e){var t=e.cm,n=t.display;e.updatedDisplay&&Dr(t),e.barMeasure=$r(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Mn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Dn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-On(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ti(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=D("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-_n(e.display))+"px;\n height: "+(t.bottom-t.top+Dn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?it(t.line,t.ch+1,"before"):t,t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Xn(e,t),l=n&&n!=t?Xn(e,n):s,u=Ir(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(Vr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(zr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,dt(r,e.scrollToPos.from),dt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,l=mt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&fn)return si(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ri(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==br(e))return!1;gi(e)&&(vr(e),t.dims=ur(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Tt&&(o=Ut(e.doc,o),a=Ht(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=un(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=un(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,hr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Gt(Qe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=br(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=I(j(e));if(!t||!L(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=B(e).getSelection();r.anchorNode&&r.extend&&L(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d-1&&(p=!1),hn(e,f,c,n)),p&&(N(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=f.node.nextSibling}else{var h=xn(e,f,c,n);o.insertBefore(h,a)}c+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=I(V(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&L(document.body,e.anchorNode)&&L(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(c),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,si(e,400)),n.updateLineNumbers=null,!0}function di(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=On(e))r&&(t.visible=Lr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Nn(e.display)-Ln(e),n.top)}),t.visible=Lr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ci(e,t))break;Dr(e);var i=$r(e);wr(e),Wr(e,i),hi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fi(e,t){var n=new ui(e,t);if(ci(e,n)){Dr(e),di(e,n);var r=$r(e);wr(e),Wr(e,r),hi(e,r),n.finish()}}function pi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",fn(e,"gutterChanged",e)}function hi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Dn(e)+"px"}function mi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=cr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;au.clientWidth,h=u.scrollHeight>u.clientHeight;if(i&&p||o&&h){if(o&&b&&l)e:for(var m=t.target,g=s.view;m!=u;m=m.parentNode)for(var v=0;v=0&&ot(e,r.to())<=0)return n}return-1};var _i=function(e,t){this.anchor=e,this.head=t};function Ni(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return ot(e.from(),t.from())}),n=W(t,i);for(var o=1;o0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new _i(d?c:u,d?u:c))}}return new Ti(t,n)}function Ai(e,t){return new Ti([new _i(e,t||e)],0)}function Di(e){return e.text?it(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Oi(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return Di(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Di(t).ch-t.to.ch),it(n,r)}function Li(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}fn(e,"change",e,t)}function ji(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;as-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Ui(e.done),Z(e.done)):e.done.length&&!Z(e.done).ranges?Z(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}(i,i.lastOp==r)))a=Z(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=Di(t):o.changes.push($i(e,t));else{var l=Z(i.done);for(l&&l.ranges||Wi(e.sel,i.done),o={changes:[$i(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||be(e,"historyAdded")}function Wi(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function qi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Gi(e){if(!e)return null;for(var t,n=0;n-1&&(Z(s)[d]=u[d],delete u[d])}}}return r}function Qi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new _i(i,t)}return new _i(n||t,t)}function Xi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),no(e,new Ti([Qi(e.sel.primary(),t,n,i)],0),r)}function Ji(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(be(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=uo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=ot(d,n))&&(r<0?f<0:f>0))return so(e,d,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=uo(e,p,r,p.line==t.line?o:null)),p?so(e,p,t,r,i):null}}return t}function lo(e,t,n,r,i){var o=r||1;return so(e,t,n,o,i)||!i&&so(e,t,n,o,!0)||so(e,t,n,-o,i)||!i&&so(e,t,n,-o,!0)||(e.cantEdit=!0,it(e.first,0))}function uo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?dt(e,it(t.line-1)):null:n>0&&t.ch==(r||Qe(e,t.line)).text.length?t.line0)){var c=[l,1],d=ot(u.from,s.from),f=ot(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ho(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ho(e,t)}}function ho(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=Li(e,t);Hi(e,t,n,e.cm?e.cm.curOp.id:NaN),vo(e,t,n,Dt(e,t));var r=[];ji(e,function(e,n){n||-1!=W(r,e.history)||(xo(e.history,t),r.push(e.history)),vo(e,t,null,Dt(e,t))})}}function mo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u=0;--p){var h=f(p);if(h)return h.v}}}}function go(e,t){if(0!=t&&(e.first+=t,e.sel=new Ti(ee(e.sel.ranges,function(e){return new _i(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){mr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:it(o,Qe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=Li(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=et($t(Qe(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&xe(e),Ri(r,t,n,dr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=Kt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Qe(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead1||!(this.children[0]instanceof ko))){var s=[];this.collapse(s),this.children=[new ko(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=O("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(zt(e,t.line,t,n,o)||t.line!=n.line&&zt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tt=!0}o.addToHistory&&Hi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,function(r){u&&o.collapsed&&!u.options.lineWrapping&&$t(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Ze(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new _t(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Wt(e,t)&&Ze(t,0)}),o.clearOnEnter&&ge(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(St=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++_o,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)mr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)gr(u,c,"text");o.atomic&&oo(u.doc),fn(u,"markerAdded",u,o)}return o}No.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Qr(e),Ee(this,"clear")){var n=this.find();n&&fn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&mr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&oo(e.doc)),e&&fn(e,"markerCleared",e,this,r,i),t&&Xr(e),this.parent&&this.parent.clear()}},No.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)po(this,r[l]);s?to(this,s):this.cm&&Fr(this.cm)}),undo:ai(function(){mo(this,"undo")}),redo:ai(function(){mo(this,"redo")}),undoSelection:ai(function(){mo(this,"undo",!0)}),redoSelection:ai(function(){mo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),dt(this,it(n,t))},indexFromPos:function(e){var t=(e=dt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),ro(t.doc,Ai(n,n)),f)for(var p=0;p=0;t--)yo(e.doc,"",r[t].from,r[t].to,"+delete");Fr(e)})}function ea(e,t,n){var r=ue(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ta(e,t,n){var r=ea(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function na(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,s=i<0?Z(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Pn(t,n);a=i<0?n.text.length-1:0;var c=Rn(t,u,a).top;a=ce(function(e){return Rn(t,u,e).top==c},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=ea(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,l)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}Wo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Wo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Wo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Wo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Wo.default=b?Wo.macDefault:Wo.pcDefault;var ra={selectAll:co,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return Zo(e,function(t){if(t.empty()){var n=Qe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Qe(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new _i(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return ri(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(ot((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=ii(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:_r(e)),ye(i.wrapper.ownerDocument,"mouseup",u),ye(i.wrapper.ownerDocument,"mousemove",c),ye(i.scroller,"dragstart",d),ye(i.scroller,"drop",u),o||(Ce(t),r.addNew||Xi(e.doc,n,null,null,r.extend),l&&!p||a&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,ge(i.wrapper.ownerDocument,"mouseup",u),ge(i.wrapper.ownerDocument,"mousemove",c),ge(i.scroller,"dragstart",d),ge(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&_r(e);var i=e.display,o=e.doc;Ce(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new _i(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new _i(n,n)),n=pr(e,t,!0,!0),l=-1;else{var d=ba(e,n,r.unit);s=r.extend?Qi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=c.length,no(o,Ni(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(no(o,Ni(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Zi(o,l,s,K):(l=0,no(o,new Ti([s],0),K),u=o.sel);var f=n,p=i.wrapper.getBoundingClientRect(),h=0;function m(t){var a=++h,c=pr(e,t,!0,"rectangle"==r.unit);if(c)if(0!=ot(c,f)){e.curOp.focus=I(j(e)),function(t){if(0!=ot(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=U(Qe(o,n.line).text,n.ch,a),d=U(Qe(o,t.line).text,t.ch,a),p=Math.min(c,d),h=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Qe(o,m).text,y=Q(v,p,a);p==h?i.push(new _i(it(m,y),it(m,y))):v.length>y&&i.push(new _i(it(m,y),it(m,Q(v,h,a))))}i.length||i.push(new _i(n,n)),no(o,Ni(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,x=ba(e,t,r.unit),E=w.anchor;ot(x.anchor,E)>0?(b=x.head,E=ut(w.from(),x.anchor)):(b=x.anchor,E=lt(w.to(),x.head));var k=u.ranges.slice(0);k[l]=function(e,t){var n=t.anchor,r=t.head,i=Qe(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=fe(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=fe(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new _i(new it(n.line,h,m),r)}(e,new _i(dt(o,E),b)),no(o,Ni(e,k,l),K)}}(c);var d=Lr(i,o);(c.line>=d.to||c.linep.bottom?20:0;g&&setTimeout(ii(e,function(){h==a&&(i.scroller.scrollTop+=g,m(t))}),50)}}function g(t){e.state.selectingText=!1,h=1/0,t&&(Ce(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",v),ye(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var v=ii(e,function(e){0!==e.buttons&&Ae(e)?m(e):g(e)}),y=ii(e,g);e.state.selectingText=y,ge(i.wrapper.ownerDocument,"mousemove",v),ge(i.wrapper.ownerDocument,"mouseup",y)}(e,r,t,o)}(t,r,o,e):Ne(e)==n.scroller&&Ce(e):2==i?(r&&Xi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(C?t.display.input.onContextMenu(e):_r(t)))}}function ba(e,t,n){if("char"==n)return new _i(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new _i(it(t.line,0),dt(e.doc,it(t.line+1,0)));var r=n(e,t);return new _i(r.from,r.to)}function wa(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(c){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ce(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ee(e,n))return Te(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return be(e,n,e,tt(e.doc,o),e.display.gutterSpecs[l].className,t),Te(t)}}function xa(e,t){return wa(e,t,"gutterClick",!0)}function Ea(e,t){Tn(e.display,t)||function(e,t){return!!Ee(e,"gutterContextMenu")&&wa(e,t,"gutterContextMenu",!1)}(e,t)||we(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function ka(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hn(e)}va.prototype.compare=function(e,t,n){return this.time+400>e&&0==ot(t,this.pos)&&n==this.button};var Ca={toString:function(){return"CodeMirror.Init"}},Sa={},Ta={};function _a(e,t,n){if(!t!=!(n&&n!=Ca)){var r=e.display.dragFunctions,i=t?ge:ye;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Na(e){e.options.lineWrapping?(M(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),Yt(e)),fr(e),mr(e),Hn(e),setTimeout(function(){return Wr(e)},100)}function Aa(e,t){var n=this;if(!(this instanceof Aa))return new Aa(e,t);this.options=t=t?$(t):{},$(Sa,t,!1);var r=t.value;"string"==typeof r?r=new Mo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Aa.inputStyles[t.inputStyle](this),o=this.display=new wi(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,ka(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(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 H,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;ge(t.scroller,"mousedown",ii(e,ya)),ge(t.scroller,"dblclick",a&&s<11?ii(e,function(t){if(!we(e,t)){var n=pr(e,t);if(n&&!xa(e,t)&&!Tn(e.display,t)){Ce(t);var r=e.findWordAt(n);Xi(e.doc,r.anchor,r.head)}}}):function(t){return we(e,t)||Ce(t)}),ge(t.scroller,"contextmenu",function(t){return Ea(e,t)}),ge(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||Ea(e,n)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ge(t.scroller,"touchstart",function(i){if(!we(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!xa(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),ge(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ge(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Tn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new _i(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new _i(it(s.line,0),dt(e.doc,it(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ce(n)}i()}),ge(t.scroller,"touchcancel",i),ge(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Vr(e,t.scroller.scrollTop),zr(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))}),ge(t.scroller,"mousewheel",function(t){return Si(e,t)}),ge(t.scroller,"DOMMouseScroll",function(t){return Si(e,t)}),ge(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){we(e,t)||_e(t)},over:function(t){we(e,t)||(function(e,t){var n=pr(e,t);if(n){var r=document.createDocumentFragment();Er(e,n,r),e.display.dragCursor||(e.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,r)}}(e,t),_e(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Fo<100))_e(t);else if(!we(e,t)&&!Tn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=D("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ii(e,Po),leave:function(t){we(e,t)||Ro(e)}};var l=t.input.getField();ge(l,"keyup",function(t){return pa.call(e,t)}),ge(l,"keydown",ii(e,fa)),ge(l,"keypress",ii(e,ha)),ge(l,"focus",function(t){return Nr(e,t)}),ge(l,"blur",function(t){return Ar(e,t)})}(this),function(){var e;Vo||(ge(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,jo(Bo)},100))}),ge(window,"blur",function(){return jo(Ar)}),Vo=!0)}(),Qr(this),this.curOp.forceUpdate=!0,Vi(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Nr(n)},20):Ar(this),Ta)Ta.hasOwnProperty(u)&&Ta[u](this,t[u],Ca);gi(this),t.finishInit&&t.finishInit(this);for(var c=0;c150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?U(Qe(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\t";if(fa,l=Fe(t),u=null;if(s&&r.ranges.length>1)if(La&&La.text.join("\n")==t){if(r.ranges.length%La.text.length==0){u=[];for(var c=0;c=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=it(h.line,h.ch-n):e.state.overwrite&&!s?m=it(m.line,Math.min(Qe(o,m.line).text.length,m.ch+Z(l).length)):s&&La&&La.lineWise&&La.text.join("\n")==l.join("\n")&&(h=m=it(h.line,0)));var g={from:h,to:m,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};po(e.doc,g),fn(e,"inputRead",e,g)}t&&!s&&Pa(e,t),Fr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Fa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ri(t,function(){return Ma(t,n,0,null,"paste")}),!0}function Pa(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Oa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Qe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Oa(e,i.head.line,"smart"));a&&fn(e,"electricInput",e,i.head.line)}}}function Ra(e){for(var t=[],n=[],r=0;r0?0:-1));if(isNaN(c))a=null;else{var d=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new it(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?function(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return ta(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=fe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&f>=c.begin)){var p=d?"before":"after";return new it(n.line,f,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,l(e,1),"before"):new it(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,u(g)))?null:m}(e.cm,s,t,n):ta(s,t,n);if(null==a){if(o||(u=t.line+l)=e.first+e.size||(t=new it(u,t.ch,t.sticky),!(s=Qe(e,u))))return!1;t=na(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",m=oe(h,f)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||p||m||(m="s"),c&&c!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(c=m),n>0&&!u(!p))break}var g=lo(e,t,o,a,!0);return at(o,g)&&(g.hitSide=!0),g}function za(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,B(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*sr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=er(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var $a=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new H,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ua(e,t){var n=Fn(e,t.line);if(!n||n.hidden)return null;var r=Qe(e.doc,t.line),i=In(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=fe(o,t.ch)%2?"right":"left");var s=Bn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ha(e,t){return t&&(e.bad=!0),e}function Wa(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ha(e.clipPos(it(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Ua(t,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=it(a.line-1,Qe(r.doc,a.line-1).length)),s.ch==Qe(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=hr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=hr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=et(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(it(r,0),it(i+1,0),function(e){return function(t){return t.id==e}}(+f));return void(p.length&&(o=p[0].find(0))&&c(Xe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var m=0;m1&&f.length>1;)if(Z(d)==Z(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);pa.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var x=it(t,p),E=it(l,f.length?Z(f).length-h:0);return d.length>1||d[0]||ot(x,E)?(yo(r.doc,d,x,E,"+input"),!0):void 0},$a.prototype.ensurePolled=function(){this.forceCompositionEnd()},$a.prototype.reset=function(){this.forceCompositionEnd()},$a.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$a.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},$a.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ri(this.cm,function(){return mr(e.cm)})},$a.prototype.setUneditable=function(e){e.contentEditable="false"},$a.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ii(this.cm,Ma)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},$a.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},$a.prototype.onContextMenu=function(){},$a.prototype.resetPosition=function(){},$a.prototype.needsContentAttribute=!0;var Ga=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new H,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ga.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!we(r,e)){if(r.somethingSelected())Ia({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ra(r);Ia({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,G):(n.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),ge(i,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),ge(i,"paste",function(e){we(r,e)||Fa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),ge(i,"cut",o),ge(i,"copy",o),ge(e.scroller,"paste",function(t){if(!Tn(e,t)&&!we(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),ge(e.lineSpace,"selectstart",function(t){Tn(e,t)||Ce(t)}),ge(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),ge(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Ga.prototype.createField=function(e){this.wrapper=Va(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;ja(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Ga.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ga.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=xr(e);if(e.options.moveInputWithCursor){var i=Xn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ga.prototype.showSelection=function(e){var t=this.cm.display;A(t.cursorDiv,e.cursors),A(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ga.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&P(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Ga.prototype.getField=function(){return this.textarea},Ga.prototype.supportsTouch=function(){return!1},Ga.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||I(V(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(pV){}},Ga.prototype.blur=function(){this.textarea.blur()},Ga.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ga.prototype.receivedFocus=function(){this.slowPoll()},Ga.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ga.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Ga.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Pe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ga.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ga.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ga.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=pr(n,e),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ii(n,no)(n.doc,Ai(o),G);var c,d=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),C){_e(e);var m=function(){ye(window,"mouseup",m),setTimeout(v,20)};ge(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ii(n,co)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ga.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ga.prototype.setUneditable=function(){},Ga.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ca&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ca,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Mi(e)},!0),n("indentUnit",2,Mi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Fi(e),Hn(e),mr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++});for(var i=n.length-1;i>=0;i--)yo(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ca&&e.refresh()}),n("specialCharPlaceholder",nn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ka(e),bi(e)},!0),n("keyMap","default",function(e,t,n){var r=Jo(t),i=n!=Ca&&Jo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Na,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=vi(t,e.options.lineNumbers),bi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?cr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Wr(e)},!0),n("scrollbarStyle","native",function(e){Kr(e),Wr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=vi(e.options.gutters,t),bi(e)},!0),n("firstLineNumber",1,bi,!0),n("lineNumberFormatter",function(e){return e},bi,!0),n("showCursorWhenSelecting",!1,wr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Ar(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,_a),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,wr,!0),n("singleCursorHeightPerLine",!0,wr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Fi,!0),n("addModeClass",!1,Fi,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Fi,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(Aa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){B(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ii(this,t[e])(this,n,i),be(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Jo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Oa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Fr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Zi(this.doc,r,new _i(o,u[r].to()),G)}}}),getTokenAt:function(e,t){return Et(this,e,t)},getLineTokens:function(e,t){return Et(this,it(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=gt(this,Qe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Qe(this.doc,e)}else r=e;return Kn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Gt(r):0)},defaultTextHeight:function(){return sr(this.display)},defaultCharWidth:function(){return lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a=this.display,s=(e=Xn(this,dt(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==r)s=e.top;else if("above"==r||"near"==r){var u=Math.max(a.wrapper.clientHeight,this.doc.height),c=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(s=e.bottom),l+t.offsetWidth>c&&(l=c-t.offsetWidth)}t.style.top=s+"px",t.style.left=t.style.right="","right"==i?(l=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&(null!=(o=Ir(this,{left:l,top:s,right:l+t.offsetWidth,bottom:s+t.offsetHeight})).scrollTop&&Vr(this,o.scrollTop),null!=o.scrollLeft&&zr(this,o.scrollLeft))},triggerOnKeyDown:oi(fa),triggerOnKeyPress:oi(ha),triggerOnKeyUp:pa,triggerOnMouseDown:oi(ya),execCommand:function(e){if(ra.hasOwnProperty(e))return ra[e].call(null,this)},triggerElectric:oi(function(e){Pa(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=dt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&fr(this),be(this,"refresh",this)}),swapDoc:oi(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Vi(this,e),Hn(this),this.display.input.reset(),Pr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,fn(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ke(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Aa);var Ka="iter insert remove copy getEditor constructor".split(" ");for(var Ya in Mo.prototype)Mo.prototype.hasOwnProperty(Ya)&&W(Ka,Ya)<0&&(Aa.prototype[Ya]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mo.prototype[Ya]));return ke(Mo),Aa.inputStyles={textarea:Ga,contenteditable:$a},Aa.defineMode=function(e){Aa.defaults.mode||"null"==e||(Aa.defaults.mode=e),ze.apply(this,arguments)},Aa.defineMIME=function(e,t){Be[e]=t},Aa.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Aa.defineMIME("text/plain","null"),Aa.defineExtension=function(e,t){Aa.prototype[e]=t},Aa.defineDocExtension=function(e,t){Mo.prototype[e]=t},Aa.fromTextArea=function(e,t){if((t=t?$(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I(V(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(pV){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Aa(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},function(e){e.off=ye,e.on=ge,e.wheelEventPixels=Ci,e.Doc=Mo,e.splitLines=Fe,e.countColumn=U,e.findColumn=Q,e.isWordChar=ie,e.Pass=q,e.signal=be,e.Line=Qt,e.changeEnd=Di,e.scrollbarModel=Gr,e.Pos=it,e.cmpPos=ot,e.modes=Ve,e.mimeModes=Be,e.resolveMode=$e,e.getMode=Ue,e.modeExtensions=He,e.extendMode=We,e.copyState=qe,e.startState=Ke,e.innerMode=Ge,e.commands=ra,e.keyMap=Wo,e.keyName=Xo,e.isModifierKey=Yo,e.lookupKey=Ko,e.normalizeKeyMap=Go,e.StringStream=Ye,e.SharedTextMarker=Do,e.TextMarker=No,e.LineWidget=So,e.e_preventDefault=Ce,e.e_stopPropagation=Se,e.e_stop=_e,e.addClass=M,e.contains=L,e.rmClass=_,e.keyNames=zo}(Aa),Aa.version="5.65.21",Aa})}),_d=s((e,t)=>{var n;n=function(e){var t="CodeMirror-hint-active";function n(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(t){t=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in u)i[o]=u[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;ic.clientHeight+1;if(setTimeout(function(){N=s.getScrollInfo()}),A.bottom-_>0){var O=A.bottom-A.top,L=A.top-(v.bottom-v.top)-2;_-A.topL&&(c.style.height=(O=L)+"px"),c.style.top=(b=v.top-O)-E+"px",w=!1):c.style.height=_-A.top-2+"px"}var I,M=A.right-T;if(D&&(M+=s.display.nativeBarWidth),M>0&&(A.right-A.left>T&&(c.style.width=T-5+"px",M-=A.right-A.left-T),c.style.left=(y=Math.max(v.left-M-x,0))+"px"),D)for(var F=c.firstChild;F;F=F.nextSibling)F.style.paddingRight=s.display.nativeBarWidth+"px";s.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(n,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:d.length,close:function(){n.close()},pick:function(){i.pick()},data:r})),n.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){I=setTimeout(function(){n.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(I)})),s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),t=s.getWrapperElement().getBoundingClientRect();N||(N=s.getScrollInfo());var r=b+N.top-e.top,i=r-(u.pageYOffset||(l.documentElement||l.body).scrollTop);if(w||(i+=c.offsetHeight),i<=t.top||i>=t.bottom)return n.close();c.style.top=r+"px",c.style.left=y+N.left-e.left+"px"}),e.on(c,"dblclick",function(e){var t=a(c,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())}),e.on(c,"click",function(e){var t=a(c,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),n.options.completeOnSingleClick&&i.pick())}),e.on(c,"mousedown",function(){setTimeout(function(){s.focus()},20)});var P=this.getSelectedHintRange();return 0===P.from&&0===P.to||this.scrollToActive(),e.signal(r,"select",d[this.selectedHint],c.childNodes[this.selectedHint]),!0}function l(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],i=this;this.cm.operation(function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(o(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?n=r?this.data.list.length-1:0:n<0&&(n=r?0:this.data.list.length-1),this.selectedHint!=n){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+t,""),i.removeAttribute("aria-selected")),(i=this.hints.childNodes[this.selectedHint=n]).className+=" "+t,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):i(o+1)})}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)},"object"==typeof e&&"object"==typeof t?n(Td()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),Nd=s((e,t)=>{var n;n=function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),d=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(f>0?1:0)),f,p,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:f>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=i(s),f=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=o){var h=e.getLine(p);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(p,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c{var n;n=function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))});var i={Backspace:function(t){var i=s(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),l=0;l=0;l--){var d=a[l].head;t.replaceRange("",n(d.line,d.ch-1),n(d.line,d.ch+1),"+delete")}},Enter:function(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a1&&h.indexOf(i)>=0&&t.getRange(n(x.line,x.ch-2),x)==i+i){if(x.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(x.line,x.ch-2))))return e.Pass;b="addFour"}else if(m){var k=0==x.ch?" ":t.getRange(n(x.line,x.ch-1),x);if(e.isWordChar(E)||k==i||e.isWordChar(k))return e.Pass;b="both"}else{if(!v||!(0===E.length||/\s/.test(E)||p.indexOf(E)>-1))return e.Pass;b="both"}else b=m&&d(t,x)?"both":h.indexOf(i)>=0&&t.getRange(x,n(x.line,x.ch+3))==i+i+i?"skipThree":"skip";if(f){if(f!=b)return e.Pass}else f=b}var C=c%2?a.charAt(c-1):i,S=c%2?i:a.charAt(c+1);t.operation(function(){if("skip"==f)l(t,1);else if("skipThree"==f)l(t,3);else if("surround"==f){for(var e=t.getSelections(),n=0;n0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function u(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function c(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function d(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")},"object"==typeof e&&"object"==typeof t?n(Td()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),Dd=s((e,t)=>{var n;n=function(e){function t(t){return function(n,r){var i=r.line,o=n.getLine(i);function a(t){for(var a,s=r.ch,l=0;;){var u=s<=0?-1:o.lastIndexOf(t[0],s-1);if(-1!=u){if(1==l&&ut.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}}),e.registerHelper("fold","include",function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})},"object"==typeof e&&"object"==typeof t?n(Td()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),Od=s((e,t)=>{var n;n=function(e){function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.linet.firstLine();)n=e.Pos(n.line-1,0),u=l(!1);if(u&&!u.cleared&&"unfold"!==o){var c=function(e,t,n){var i=r(e,t,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,u);e.on(c,"mousedown",function(t){d.clear(),e.e_preventDefault(t)});var d=t.markText(u.from,u.to,{replacedWith:c,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});d.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,u.from,u.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n{var n;n=function(e){e.defineOption("foldGutter",!1,function(t,r,i){var o;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",l),t.off("changes",c),t.off("viewportChange",d),t.off("fold",f),t.off("unfold",f),t.off("swapDoc",c),t.off("optionChange",u)),r&&(t.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),s(t),t.on("gutterClick",l),t.on("changes",c),t.on("viewportChange",d),t.on("fold",f),t.on("unfold",f),t.on("swapDoc",c),t.on("optionChange",u))});var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i=u){if(f&&a&&f.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)})}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function l(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function u(e,t){"mode"==t&&c(e)}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){s(e)},n.foldOnChangeTimeSpan||600)}}function d(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation(function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function f(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r{var n;n=function(e){var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i,o){var a=function(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);var n=Math.max(0,t.clientY-i.offsetHeight-5),r=Math.max(0,Math.min(t.clientX+5,i.ownerDocument.defaultView.innerWidth-i.offsetWidth));i.style.top=n+"px",i.style.left=r+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(t,r,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout(function(){n(t)},600)),a=null)}var l=setInterval(function(){if(a)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(l)},400);e.on(o,"mouseout",s)}function i(e,t,n){for(var i in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},o)this.options[i]=o[i];for(var i in t)o.hasOwnProperty(i)?null!=t[i]&&(this.options[i]=t[i]):t.options||(this.linterOptions[i]=t[i]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,s=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),l=[],c=0;c1,i.tooltips)),i.highlightLines&&e.addLineClass(c,"wrap","CodeMirror-lint-line-"+f)}}i.onUpdateLinting&&i.onUpdateLinting(n,o,e)}}function f(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){c(e)},t.options.delay))}e.defineOption("lint",!1,function(n,r,o){if(o&&o!=e.Init&&(a(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",f),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),l=!1,u=0;u{var n;n=function(e){var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;ic);d++){var f=e.getLine(u++);s=null==s?f:s+"\n"+f}l*=2,t.lastIndex=n.ch;var p=t.exec(s);if(p){var h=s.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,d=n.line,f=e.firstLine();d>=f;){for(var p=0;p=f;p++){var h=e.getLine(d--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,c);if(m){var g=a.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=d+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.lastLine()+1-l.length;u<=f;u++,c=0){var p=e.getLine(u).slice(c),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=d(p,h,m,s)+c,{from:r(u,d(p,h,m,s)+c),to:r(u,d(p,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v=f;u--,c=-1){var p=e.getLine(u);c>-1&&(p=p.slice(0,c));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,d(p,h,m,s)),to:r(u,d(p,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new h(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new h(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})},"object"==typeof e&&"object"==typeof t?n(Td()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),Fd=s((e,t)=>{var n;n=function(e){function t(t,n,r){var i=t.getWrapperElement(),o=i.appendChild(document.createElement("div"));return o.className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?o.innerHTML=n:o.appendChild(n),e.addClass(i,"dialog-opened"),o}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)d.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",function(e){o.onInput(e,d.value,u)}),o.onKeyUp&&e.on(d,"keyup",function(e){o.onKeyUp(e,d.value,u)}),e.on(d,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),u()),13==t.keyCode&&i(d.value,t))}),!1!==o.closeOnBlur&&e.on(a,"focusout",function(e){null!==e.relatedTarget&&u()})):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",function(){u(),l.focus()}),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u}),e.defineExtension("openConfirm",function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var f=0;f{var n;n=function(e){function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}(e,function(e){return e.phrase("Jump to line:")+' '+e.phrase("(Use line:column or scroll% syntax)")+""}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)})},e.keyMap.default["Alt-G"]="jumpToLine"},"object"==typeof e&&"object"==typeof t?n(Td(),Fd()):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],n):n(CodeMirror)}),Rd=s((e,t)=>{var n;n=function(e){var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy(function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,d=0;u!=c;u+=i,d++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()})}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation(function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=o(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}})}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){l(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!l(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy(function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head})},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;so?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation(function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()})},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()})},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}})},t.delLineRight=function(e){e.operation(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()})},t.upcaseAtCursor=function(e){d(e,function(e){return e.toUpperCase()})},t.downcaseAtCursor=function(e){d(e,function(e){return e.toLowerCase()})},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var h=e.keyMap;h.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(h.macSublime),h.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(h.pcSublime),h.sublime=h.default==h.macDefault?h.macSublime:h.pcSublime},"object"==typeof e&&"object"==typeof t?n(Td(),Md(),Nd()):"function"==typeof define&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/edit/matchbrackets"],n):n(CodeMirror)}),jd="graphiql",Vd="sublime",Bd={[Sd?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function zd(e,t){const n=await Ts(()=>Promise.resolve().then(()=>c(Td())).then(e=>"function"==typeof e?e:e.default),void 0,import.meta.url);return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[Ts(()=>Promise.resolve().then(()=>c(_d())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Nd())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Ad())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Dd())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Ld())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Id())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Md())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Pd())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Fd())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Rd())),void 0,import.meta.url),...e]),n}var $d=s((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{var n=$d(),r={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(e,t){var i,o,a,s,l,u=!1;t||(t={}),t.debug;try{if(o=n(),a=document.createRange(),s=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",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(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),s.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(c){try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(c){i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(a):s.removeAllRanges()),l&&document.body.removeChild(l),o()}return u}}),Hd=md((e,t)=>({plugins:[],visiblePlugin:null,referencePlugin:void 0,setVisiblePlugin(n){const{plugins:r,onTogglePluginVisibility:i}=t(),o="string"==typeof n,a=n&&r.find(e=>(o?e.title:e)===n)||null;e(({visiblePlugin:e})=>a===e?{visiblePlugin:e}:(null==i||i(a),{visiblePlugin:a}))}})),Wd=e=>{const t=(0,yd.c)(8),{onTogglePluginVisibility:n,children:r,visiblePlugin:i,plugins:o,referencePlugin:a}=e;let s;t[0]!==o?(s=void 0===o?[]:o,t[0]=o,t[1]=s):s=t[1];const l=s;let u,c;return t[2]!==n||t[3]!==l||t[4]!==a||t[5]!==i?(u=()=>{const e=new Set;for(const{title:t}of l){if("string"!=typeof t||!t)throw new Error("All GraphiQL plugins must have a unique title");if(e.has(t))throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${t}'`);e.add(t)}Hd.setState({plugins:l,onTogglePluginVisibility:n,referencePlugin:a}),Hd.getState().setVisiblePlugin(null!=i?i:null)},c=[l,n,a,i],t[2]=n,t[3]=l,t[4]=a,t[5]=i,t[6]=u,t[7]=c):(u=t[6],c=t[7]),(0,dd.useEffect)(u,c),r},qd=vd(Hd);vs();var Gd=md((e,t)=>({inputValueDeprecation:null,introspectionQueryName:null,schemaDescription:null,fetcher:null,onSchemaChange:void 0,fetchError:null,isFetching:!1,schema:null,validationErrors:[],schemaReference:null,setSchemaReference(t){e({schemaReference:t})},requestCounter:0,shouldIntrospect:!0,async introspect(){const{requestCounter:n,fetcher:r,onSchemaChange:i,shouldIntrospect:o,headerEditor:a,...s}=t();if(!o)return;const l=n+1;e({requestCounter:l});try{const n=function(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch(r){n=!1}return{headers:t,isValidJSON:n}}(null==a?void 0:a.getValue());if(!n.isValidJSON)return void e({fetchError:"Introspection failed as headers are invalid."});const o=n.headers?{headers:n.headers}:{},{introspectionQuery:u,introspectionQueryName:c,introspectionQuerySansSubscriptions:d}=function({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){const r=function(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"";function i(e){return t.inputValueDeprecation?e:""}const o=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${t.directiveIsRepeatable?"isRepeatable":""}\n locations\n args${i("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${o}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${i("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${i("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${i("isDeprecated")}\n ${i("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}({inputValueDeprecation:e,schemaDescription:n});return{introspectionQueryName:t,introspectionQuery:"IntrospectionQuery"===t?r:r.replace("query IntrospectionQuery",`query ${t}`),introspectionQuerySansSubscriptions:r.replace("subscriptionType { name }","")}}(s),f=R(r({query:u,operationName:c},o));if(!M(f))return void e({fetchError:"Fetcher did not return a Promise for introspection."});e({isFetching:!0,fetchError:null});let p,h=await f;if("object"!=typeof h||null===h||!("data"in h)){const e=R(r({query:d,operationName:c},o));if(!M(e))throw new Error("Fetcher did not return a Promise for introspection.");h=await e}if(e({isFetching:!1}),(null==h?void 0:h.data)&&"__schema"in h.data?p=h.data:e({fetchError:"string"==typeof h?h:Qs(h)}),l!==t().requestCounter||!p)return;const m=function(e){U(e)&&U(e.__schema)||V(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${tt(e)}.`);const t=e.__schema,n=xt(t.types,e=>e.name,e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case Cr.SCALAR:return new on({name:(r=e).name,description:r.description,specifiedByURL:r.specifiedByURL});case Cr.OBJECT:return new an({name:(n=e).name,description:n.description,interfaces:()=>d(n),fields:()=>f(n)});case Cr.INTERFACE:return new sn({name:(t=e).name,description:t.description,interfaces:()=>d(t),fields:()=>f(t)});case Cr.UNION:return function(e){if(!e.possibleTypes){const t=tt(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new ln({name:e.name,description:e.description,types:()=>e.possibleTypes.map(u)})}(e);case Cr.ENUM:return function(e){if(!e.enumValues){const t=tt(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new un({name:e.name,description:e.description,values:xt(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case Cr.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=tt(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new cn({name:e.name,description:e.description,fields:()=>h(e.inputFields),isOneOf:e.isOneOf})}(e)}var t,n,r;const i=tt(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e));for(const g of[...er,...Ar])n[g.name]&&(n[g.name]=g);const r=t.queryType?u(t.queryType):null,i=t.mutationType?u(t.mutationType):null,o=t.subscriptionType?u(t.subscriptionType):null,a=t.directives?t.directives.map(function(e){if(!e.args){const t=tt(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=tt(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new rr({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:h(e.args)})}):[];return new Lr({description:t.description,query:r,mutation:i,subscription:o,types:Object.values(n),directives:a,assumeValid:void 0});function s(e){if(e.kind===Cr.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new nn(s(t))}if(e.kind===Cr.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new rn(function(e){if(!_n(e))throw new Error(`Expected ${tt(e)} to be a GraphQL nullable type.`);return e}(s(t)))}return l(e)}function l(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${tt(e)}.`);const r=n[t];if(!r)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return r}function u(e){return function(e){if(!hn(e))throw new Error(`Expected ${tt(e)} to be a GraphQL Object type.`);return e}(l(e))}function c(e){return function(e){if(!mn(e))throw new Error(`Expected ${tt(e)} to be a GraphQL Interface type.`);return e}(l(e))}function d(e){if(null===e.interfaces&&e.kind===Cr.INTERFACE)return[];if(!e.interfaces){const t=tt(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(c)}function f(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${tt(e)}.`);return xt(e.fields,e=>e.name,p)}function p(e){const t=s(e.type);if(!En(t)){const e=tt(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=tt(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:h(e.args)}}function h(e){return xt(e,e=>e.name,m)}function m(e){const t=s(e.type);if(!xn(t)){const e=tt(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?Co(function(e){const t=new at(e,void 0);t.expectToken(Ce.SOF);const n=t.parseValueLiteral(!1);return t.expectToken(Ce.EOF),n}(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}(p);e({schema:m}),null==i||i(m)}catch(Oh){if(l!==t().requestCounter)return;e({fetchError:Ys(Oh),isFetching:!1})}}})),Kd=e=>{const t=(0,yd.c)(14),{fetcher:n,onSchemaChange:r,dangerouslyAssumeSchemaIsValid:i,children:o,schema:a,inputValueDeprecation:s,introspectionQueryName:l,schemaDescription:u}=e,c=void 0!==i&&i,d=void 0!==s&&s,f=void 0===l?"IntrospectionQuery":l,p=void 0!==u&&u;if(!n)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h={nonNull:!0,caller:Kd},t[0]=h):h=t[0];const{headerEditor:m}=Tv(h);let g,v,y,b,w;return t[1]!==m?(g=()=>{m&&Gd.setState({headerEditor:m})},v=[m],t[1]=m,t[2]=g,t[3]=v):(g=t[2],v=t[3]),(0,dd.useEffect)(g,v),t[4]!==c||t[5]!==n||t[6]!==d||t[7]!==f||t[8]!==r||t[9]!==a||t[10]!==p?(y=()=>{const e=Mr(a)||null==a?a:void 0,t=!e||c?[]:jr(e);Gd.setState(i=>{const{requestCounter:o}=i;return{fetcher:n,onSchemaChange:r,schema:e,shouldIntrospect:!Mr(a)&&null!==a,inputValueDeprecation:d,introspectionQueryName:f,schemaDescription:p,validationErrors:t,requestCounter:o+1}}),Gd.getState().introspect()},b=[a,c,r,n,d,f,p],t[4]=c,t[5]=n,t[6]=d,t[7]=f,t[8]=r,t[9]=a,t[10]=p,t[11]=y,t[12]=b):(y=t[11],b=t[12]),(0,dd.useEffect)(y,b),t[13]===Symbol.for("react.memo_cache_sentinel")?(w=[],t[13]=w):w=t[13],(0,dd.useEffect)(Qd,w),o},Yd=vd(Gd);function Qd(){const e=function(e){e.ctrlKey&&"R"===e.key&&Gd.getState().introspect()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}var Xd={};function Jd(e,t){"string"!=typeof t&&(t=Jd.defaultChars);const n=function(e){let t=Xd[e];if(t)return t;t=Xd[e]=[];for(let n=0;n<128;n++){const e=String.fromCharCode(n);t.push(e)}for(let n=0;n=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&o)&&r+91114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t})}Jd.defaultChars=";/?:@&=+$,#",Jd.componentChars="";var Zd={};function ef(e,t,n){"string"!=typeof t&&(n=t,t=ef.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=Zd[e];if(t)return t;t=Zd[e]=[];for(let n=0;n<128;n++){const e=String.fromCharCode(n);/^[0-9a-z]$/i.test(e)?t.push(e):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n=55296&&t<=57343){if(t>=55296&&t<=56319&&o+1=56320&&t<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(e[o])}return i}function tf(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function nf(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}ef.defaultChars=";/?:@&=+$,-_.!~*'()#",ef.componentChars="-_.!~*'()";var rf=/^([a-z0-9.+-]+:)/i,of=/:[0-9]*$/,af=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,sf=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),lf=["'"].concat(sf),uf=["%","/","?",";","#"].concat(lf),cf=["/","?","#"],df=/^[+a-z0-9A-Z_-]{0,63}$/,ff=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,pf={javascript:!0,"javascript:":!0},hf={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function mf(e,t){if(e&&e instanceof nf)return e;const n=new nf;return n.parse(e,t),n}nf.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&1===e.split("#").length){const e=af.exec(o);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=rf.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===o.substr(0,2),!i||a&&pf[a]||(o=o.substr(2),this.slashes=!0)),!pf[a]&&(i||a&&!hf[a])){let e,t,n=-1;for(let s=0;s127?r+="x":r+=n[e];if(!r.match(df)){const r=e.slice(0,t),i=e.slice(t+1),a=n.match(ff);a&&(r.push(a[1]),i.unshift(a[2])),i.length&&(o=i.join(".")+o),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");-1!==s&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return-1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),hf[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},nf.prototype.parseHost=function(e){let t=of.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var gf,vf,yf,bf,wf,xf=l({decode:()=>Jd,encode:()=>ef,format:()=>tf,parse:()=>mf}),Ef=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kf=/[\0-\x1F\x7F-\x9F]/,Cf=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Sf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\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-\u2E4F\u2E52-\u2E5D\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[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Tf=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,_f=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Nf=l({Any:()=>Ef,Cc:()=>kf,Cf:()=>Cf,P:()=>Sf,S:()=>Tf,Z:()=>_f}),Af=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Df=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),Of=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Lf=null!==(gf=String.fromCodePoint)&&void 0!==gf?gf:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function If(e){return e>=vf.ZERO&&e<=vf.NINE}function Mf(e){return e>=vf.UPPER_A&&e<=vf.UPPER_F||e>=vf.LOWER_A&&e<=vf.LOWER_F}function Ff(e){return e===vf.EQUALS||function(e){return e>=vf.UPPER_A&&e<=vf.UPPER_Z||e>=vf.LOWER_A&&e<=vf.LOWER_Z||If(e)}(e)}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(vf||(vf={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(yf||(yf={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(bf||(bf={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(wf||(wf={}));var Pf=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=bf.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=wf.Strict}startEntity(e){this.decodeMode=e,this.state=bf.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case bf.EntityStart:return e.charCodeAt(t)===vf.NUM?(this.state=bf.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=bf.NamedEntity,this.stateNamedEntity(e,t));case bf.NumericStart:return this.stateNumericStart(e,t);case bf.NumericDecimal:return this.stateNumericDecimal(e,t);case bf.NumericHex:return this.stateNumericHex(e,t);case bf.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===vf.LOWER_X?(this.state=bf.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=bf.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t=55296&&e<=57343||e>1114111?65533:null!==(t=Of.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==vf.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&yf.VALUE_LENGTH)>>14;for(;t>14,0!==i){if(o===vf.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==wf.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&yf.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~yf.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case bf.NamedEntity:return 0===this.result||this.decodeMode===wf.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case bf.NumericDecimal:return this.emitNumericEntity(0,2);case bf.NumericHex:return this.emitNumericEntity(0,3);case bf.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case bf.EntityStart:return 0}}};function Rf(e){let t="";const n=new Pf(e,e=>t+=Lf(e));return function(e,r){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);const a=n.write(e,o+1);if(a<0){i=o+n.end();break}i=o+a,o=0===a?i+1:i}const a=t+e.slice(i);return t="",a}}function jf(e,t,n,r){const i=(t&yf.BRANCH_LENGTH)>>7,o=t&yf.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let a=n,s=a+i-1;for(;a<=s;){const t=a+s>>>1,n=e[t];if(nr))return e[t+i];s=t-1}}return-1}var Vf=Rf(Af);function Bf(e,t=wf.Legacy){return Vf(e,t)}Rf(Df);var zf=l({arrayReplaceAt:()=>qf,assign:()=>Wf,escapeHtml:()=>ip,escapeRE:()=>ap,fromCodePoint:()=>Kf,has:()=>Hf,isMdAsciiPunct:()=>cp,isPunctChar:()=>up,isSpace:()=>sp,isString:()=>$f,isValidEntityCode:()=>Gf,isWhiteSpace:()=>lp,lib:()=>fp,normalizeReference:()=>dp,unescapeAll:()=>Zf,unescapeMd:()=>Jf});function $f(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}var Uf=Object.prototype.hasOwnProperty;function Hf(e,t){return Uf.call(e,t)}function Wf(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function qf(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Gf(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Kf(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var Yf=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Qf=new RegExp(Yf.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),Xf=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Jf(e){return e.indexOf("\\")<0?e:e.replace(Yf,"$1")}function Zf(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Qf,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&Xf.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Gf(n)?Kf(n):e}const n=Bf(e);return n!==e?n:e}(e,n)})}var ep=/[&<>"]/,tp=/[&<>"]/g,np={"&":"&","<":"<",">":">",'"':"""};function rp(e){return np[e]}function ip(e){return ep.test(e)?e.replace(tp,rp):e}var op=/[.?*+^$[\]\\(){}|-]/g;function ap(e){return e.replace(op,"\\$&")}function sp(e){switch(e){case 9:case 32:return!0}return!1}function lp(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}function up(e){return Sf.test(e)||Tf.test(e)}function cp(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 dp(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}var fp={mdurl:xf,ucmicro:Nf};function pp(e,t,n){let r,i,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos32))return o;if(41===r){if(0===a)break;a--}i++}return t===i||0!==a||(o.str=Zf(e.slice(t,i)),o.pos=i,o.ok=!0),o}function mp(e,t,n,r){let i,o=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let r=e.charCodeAt(o);if(34!==r&&39!==r&&40!==r)return a;t++,o++,40===r&&(r=41),a.marker=r}for(;ohp,parseLinkLabel:()=>pp,parseLinkTitle:()=>mp}),vp={};function yp(){this.rules=Wf({},vp)}function bp(){this.__rules__=[],this.__cache__=null}function wp(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function xp(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}vp.code_inline=function(e,t,n,r,i){const o=e[t];return""+ip(o.content)+""},vp.code_block=function(e,t,n,r,i){const o=e[t];return""+ip(e[t].content)+"\n"},vp.fence=function(e,t,n,r,i){const o=e[t],a=o.info?Zf(o.info).trim():"";let s,l="",u="";if(a){const e=a.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(s=n.highlight&&n.highlight(o.content,l,u)||ip(o.content),0===s.indexOf("${s}\n`}return`
${s}
\n`},vp.image=function(e,t,n,r,i){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},vp.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},vp.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},vp.text=function(e,t){return ip(e[t].content)},vp.html_block=function(e,t){return e[t].content},vp.html_inline=function(e,t){return e[t].content},yp.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">",i},yp.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o=0&&(n=this.attrs[t][1]),n},wp.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},xp.prototype.Token=wp;var Ep=/\r\n?|\n/g,kp=/\0/g;function Cp(e){return/^\s]/i.test(e)}function Sp(e){return/^<\/a\s*>/i.test(e)}var Tp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,_p=/\((c|tm|r)\)/i,Np=/\((c|tm|r)\)/gi,Ap={c:"©",r:"®",tm:"™"};function Dp(e,t){return Ap[t.toLowerCase()]}function Op(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(Np,Dp)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function Lp(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Tp.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}var Ip=/['"]/,Mp=/['"]/g;function Fp(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Pp(e,t){let n;const r=[];for(let i=0;i=0&&!(r[n].level<=a);n--);if(r.length=n+1,"text"!==o.type)continue;let s=o.content,l=0,u=s.length;e:for(;l=0)h=s.charCodeAt(c.index-1);else for(n=i-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l=48&&h<=57&&(f=d=!1),d&&f&&(d=g,f=v),d||f){if(f)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level=0;o--){const a=r[o];if("link_close"!==a.type){if("html_inline"===a.type&&(Cp(a.content)&&i>0&&i--,Sp(a.content)&&i++),!(i>0)&&"text"===a.type&&e.md.linkify.test(a.content)){const i=a.content;let s=e.md.linkify.match(i);const l=[];let u=a.level,c=0;s.length>0&&0===s[0].index&&o>0&&"text_special"===r[o-1].type&&(s=s.slice(1));for(let t=0;tc){const t=new e.Token("text","",0);t.content=i.slice(c,a),t.level=u,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",r]],d.level=u++,d.markup="linkify",d.info="auto",l.push(d);const f=new e.Token("text","",0);f.content=o,f.level=u,l.push(f);const p=new e.Token("link_close","a",-1);p.level=--u,p.markup="linkify",p.info="auto",l.push(p),c=s[t].lastIndex}if(c=0;t--)"inline"===e.tokens[t].type&&(_p.test(e.tokens[t].content)&&Op(e.tokens[t].children),Tp.test(e.tokens[t].content)&&Lp(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&Ip.test(e.tokens[t].content)&&Pp(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,i=r.length;for(let o=0;o=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),!(o>=48&&o<=57)){if(41===o||46===o)break;return-1}if(i-n>=10)return-1}return i0&&this.level++,this.tokens.push(r),r},Vp.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Vp.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;et;)if(!sp(this.src.charCodeAt(--e)))return e+1;return e},Vp.prototype.skipChars=function(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},Vp.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const i=new Array(t-e);for(let o=0,a=e;an?new Array(e-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return i.join("")},Vp.prototype.Token=wp;var Hp="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Wp=new RegExp("^(?:"+Hp+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),qp=new RegExp("^(?:"+Hp+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)"),Gp=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(qp.source+"\\s*$"),/^$/,!1]],Kp=[["table",function(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(124!==a&&45!==a&&58!==a)return!1;if(o>=e.eMarks[i])return!1;const s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s&&!sp(s))return!1;if(45===a&&sp(s))return!1;for(;o=4)return!1;u=zp(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();const d=u.length;if(0===d||d!==c.length)return!1;if(r)return!0;const f=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),h=[t,0];e.push("table_open","table",1).map=h,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let v=0;v=4)break;if(u=zp(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),g+=d-u.length,g>65536)break;i===t+2&&(e.push("tbody_open","tbody",1).map=m=[t+2,0]),e.push("tr_open","tr",1).map=[i,i+1];for(let t=0;t=4))break;r++,i=r}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(i+3>o)return!1;const a=e.src.charCodeAt(i);if(126!==a&&96!==a)return!1;let s=i;i=e.skipChars(i,a);let l=i-s;if(l<3)return!1;const u=e.src.slice(s,i),c=e.src.slice(i,o);if(96===a&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i=4||(i=e.skipChars(i,a),i-s=4)return!1;if(62!==e.src.charCodeAt(i))return!1;if(r)return!0;const s=[],l=[],u=[],c=[],d=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let p,h=!1;for(p=t;p=o)break;if(62===e.src.charCodeAt(i++)&&!t){let t,n,r=e.sCount[p]+1;32===e.src.charCodeAt(i)?(i++,r++,n=!1,t=!0):9===e.src.charCodeAt(i)?(t=!0,(e.bsCount[p]+r)%4==3?(i++,r++,n=!1):n=!0):t=!1;let a=r;for(s.push(e.bMarks[p]),e.bMarks[p]=i;i=o,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),u.push(e.sCount[p]),e.sCount[p]=a-r,c.push(e.tShift[p]),e.tShift[p]=i-e.bMarks[p];continue}if(h)break;let r=!1;for(let i=0,o=d.length;i";const v=[t,0];g.map=v,e.md.block.tokenize(e,t,p),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=a,e.parentType=f,v[1]=e.line;for(let y=0;y=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(42!==a&&45!==a&&95!==a)return!1;let s=1;for(;o=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(p=!0),(f=Up(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(a,f-1)),p&&1!==d)return!1}else{if(!((f=$p(e,l))>=0))return!1;c=!1}if(p&&e.skipSpaces(f)>=e.eMarks[l])return!1;if(r)return!0;const h=e.src.charCodeAt(f-1),m=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),1!==d&&(s.attrs=[["start",d]])):s=e.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(h);let v=!1;const y=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l=i?1:r-t,p>4&&(p=1);const m=t+p;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(h);const g=[l,0];s.map=g,c&&(s.info=e.src.slice(a,f-1));const b=e.tight,w=e.tShift[l],x=e.sCount[l],E=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!v||(u=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[l]=w,e.sCount[l]=x,e.tight=b,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(h),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]=4)break;let k=!1;for(let i=0,o=y.length;i=4)return!1;if(91!==e.src.charCodeAt(i))return!1;function s(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let o=!1;for(let a=0,s=r.length;a=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(i))return!1;let a=e.src.slice(i,o),s=0;for(;s=4)return!1;let a=e.src.charCodeAt(i);if(35!==a||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);35===a&&i6||ii&&sp(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const u=e.push("heading_open","h"+String(s),1);u.markup="########".slice(0,s),u.map=[t,e.line];const c=e.push("inline","",0);return c.content=e.src.slice(i,o).trim(),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o,a=0,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s];const n=e.eMarks[s];if(t=n))){a=61===o?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,o=r.length;i3)continue;if(e.sCount[o]<0)continue;let t=!1;for(let i=0,a=r.length;i=n))&&!(e.sCount[a]=o){e.line=n;break}const t=e.line;let l=!1;for(let o=0;o=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Qp.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o?@[]^_`{|}~-".split("").forEach(function(e){Zp[e.charCodeAt(0)]=1});var th={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const i=e.scanDelims(e.pos,!0);let o=i.length;const a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const i=t[r.end],o=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=o?"strong_open":"em_open",s.tag=o?"strong":"em",s.nesting=1,s.markup=o?a+a:a,s.content="";const l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?a+a:a,l.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}var rh={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const i=e.scanDelims(e.pos,42===r);for(let o=0;o\x00-\x20]*)$/,ah=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,sh=/^&([a-z][a-z0-9]{1,31});/i;function lh(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;as;l-=o[l]+1){const t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?o[l-1]+1:0;o[a]=a-l+r,o[l]=r,n.open=!1,t.end=a,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}var uh=[["text",function(e,t){let n=e.pos;for(;n0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(Jp);if(!r)return!1;const i=r[1],o=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!o)return!1;let a=o.url;if(a.length<=i.length)return!1;let s=a.length;for(;s>0&&42===a.charCodeAt(s-1);)s--;s!==a.length&&(a=a.slice(0,s));const l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=a.length-i.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n=r)return!1;let i=e.src.charCodeAt(n);if(10===i){for(t||e.push("hardbreak","br",0),n++;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const t=e.push("text_special","",0);i<256&&0!==Zp[i]?t.content=o:t.content=a,t.markup=a,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const i=e.posMax;for(;n=d)return!1;if(l=h,i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?h=i.pos:a="",l=h;h=d||41!==e.src.charCodeAt(h))&&(u=!0),h++}if(u){if(void 0===e.env.references)return!1;if(h=0?r=e.src.slice(l,h++):h=p+1):h=p+1,r||(r=e.src.slice(f,p)),o=e.env.references[dp(r)],!o)return e.pos=c,!1;a=o.href,s=o.title}if(!t){e.pos=f,e.posMax=p;const t=[["href",a]];e.push("link_open","a",1).attrs=t,s&&t.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=d,!0}],["image",function(e,t){let n,r,i,o,a,s,l,u,c="";const d=e.pos,f=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(o=h+1,o=f)return!1;for(u=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?o=s.pos:c=""),u=o;o=f||41!==e.src.charCodeAt(o))return e.pos=d,!1;o++}else{if(void 0===e.env.references)return!1;if(o=0?i=e.src.slice(u,o++):o=h+1):o=h+1,i||(i=e.src.slice(p,h)),a=e.env.references[dp(i)],!a)return e.pos=d,!1;c=a.href,l=a.title}if(!t){r=e.src.slice(p,h);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),i=[["src",c],["alt",""]];n.attrs=i,n.children=t,n.content=r,l&&i.push(["title",l])}return e.pos=o,e.posMax=f,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const o=e.src.slice(r+1,n);if(oh.test(o)){const n=e.md.normalizeLink(o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}if(ih.test(o)){const n=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!function(e){const t=32|e;return t>=97&&t<=122}(i))return!1;const o=e.src.slice(r).match(Wp);if(!o)return!1;if(!t){const t=e.push("html_inline","",0);t.content=o[0],a=t.content,/^\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var a;return e.pos+=o[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(ah);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=Gf(t)?Kf(t):Kf(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(sh);if(r){const n=Bf(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],ch=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;lh(e.delimiters);for(let r=0;r0&&r++,"text"===i[t].type&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos},dh.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},dh.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},yh="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function bh(e){const t=e.re=function(e){const t={};return e=e||{},t.src_Any=Ef.source,t.src_Cc=kf.source,t.src_Z=_f.source,t.src_P=Sf.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===ph(n))return"[object RegExp]"!==ph(n.validate)?hh(n.validate)?r.validate=n.validate:o(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(hh(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});"[object String]"!==ph(n)?o(t,n):i.push(t)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const a=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(mh).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function wh(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function xh(e,t){const n=new wh(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Eh(e,t){if(!(this instanceof Eh))return new Eh(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||gh.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=fh({},gh,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=fh({},vh,e),this.__compiled__={},this.__tlds__=yh,this.__tlds_replaced__=!1,this.re={},bh(this)}Eh.prototype.add=function(e,t){return this.__schemas__[e]=t,bh(this),this},Eh.prototype.set=function(e){return this.__opts__=fh(this.__opts__,e),this},Eh.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,o,a,s,l,u;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0},Eh.prototype.pretest=function(e){return this.re.pretest.test(e)},Eh.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Eh.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(xh(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(xh(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Eh.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,xh(this,0)):null},Eh.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),bh(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,bh(this),this)},Eh.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},Eh.prototype.onCompile=function(){};var kh=2147483647,Ch=36,Sh=/^xn--/,Th=/[^\0-\x7F]/,_h=/[\x2E\u3002\uFF0E\uFF61]/g,Nh={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ah=Math.floor,Dh=String.fromCharCode;function Oh(e){throw new RangeError(Nh[e])}function Lh(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(_h,".")).split("."),t).join(".");return r+i}var Ih=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Ch},Mh=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},Fh=function(e,t,n){let r=0;for(e=n?Ah(e/700):e>>1,e+=Ah(e/t);e>455;r+=Ch)e=Ah(e/35);return Ah(r+36*e/(e+38))},Ph={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},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","fragments_join"]}}}},Rh=/^(vbscript|javascript|file|data):/,jh=/^data:image\/(gif|png|jpeg|webp);/;function Vh(e){const t=e.trim().toLowerCase();return!Rh.test(t)||jh.test(t)}var Bh=["http:","https:","mailto:"];function zh(e){const t=mf(e,!0);if(t.hostname&&(!t.protocol||Bh.indexOf(t.protocol)>=0))try{t.hostname=Lh(t.hostname,function(e){return Th.test(e)?"xn--"+function(e){const t=[],n=(e=function(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&n=r&&tAh((kh-i)/l)&&Oh("overflow"),i+=(n-r)*l,r=n;for(const u of e)if(ukh&&Oh("overflow"),u===r){let e=i;for(let n=Ch;;n+=Ch){const r=n<=o?1:n>=o+26?26:n-o;if(e=0))try{t.hostname=Lh(t.hostname,function(e){return Sh.test(e)?function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let s=0;s=128&&Oh("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s=n&&Oh("invalid-input");const a=Ih(e.charCodeAt(s++));a>=Ch&&Oh("invalid-input"),a>Ah((kh-r)/t)&&Oh("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(aAh(kh/u)&&Oh("overflow"),t*=u}const l=t.length+1;o=Fh(r-a,l,0==a),Ah(r/l)>kh-i&&Oh("overflow"),i+=Ah(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)}(e.slice(4).toLowerCase()):e})}catch(n){}return Jd(tf(t),Jd.defaultChars+"%")}function Uh(e,t){if(!(this instanceof Uh))return new Uh(e,t);t||$f(e)||(t=e||{},e="default"),this.inline=new dh,this.block=new Yp,this.core=new jp,this.renderer=new yp,this.linkify=new Eh,this.validateLink=Vh,this.normalizeLink=zh,this.normalizeLinkText=$h,this.utils=zf,this.helpers=Wf({},gp),this.options={},this.configure(e),t&&this.set(t)}Uh.prototype.set=function(e){return Wf(this.options,e),this},Uh.prototype.configure=function(e){const t=this;if($f(e)){const t=e;if(!(e=Ph[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&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},Uh.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Uh.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Uh.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Uh.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Uh.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Uh.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Uh.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Hh=new Uh({breaks:!1,linkify:!0});function Wh(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}vs();var qh=c(Ud());function Gh(e,t){const n=(0,yd.c)(4);let r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,dd.useEffect)(r,i)}function Kh(e,t,n){const r=(0,yd.c)(5);let i,o;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{null==e||e.setOption(t,n)},o=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,dd.useEffect)(i,o)}function Yh(e,t,n,r,i){const o=(0,yd.c)(9);let a;o[0]!==i?(a={nonNull:!0,caller:i},o[0]=i,o[1]=a):a=o[1];const{updateActiveTabValues:s}=Tv(a);let l,u;o[2]!==t||o[3]!==e||o[4]!==n||o[5]!==r||o[6]!==s?(l=()=>{if(!e)return;const{storage:i}=bd.getState(),o=Wh(500,e=>{null!==n&&i.set(n,e)}),a=Wh(100,e=>{s({[r]:e})}),l=(e,n)=>{if(!n)return;const r=e.getValue();o(r),a(r),null==t||t(r)};return e.on("change",l),()=>e.off("change",l)},u=[t,e,n,r,s],o[2]=t,o[3]=e,o[4]=n,o[5]=r,o[6]=s,o[7]=l,o[8]=u):(l=o[7],u=o[8]),(0,dd.useEffect)(l,u)}function Qh(e,t){const n=(0,yd.c)(7),{schema:r,setSchemaReference:i}=Yd(),o=qd();let a,s;n[0]!==t||n[1]!==e||n[2]!==o||n[3]!==r||n[4]!==i?(a=()=>{if(!e)return;const n=(e,n)=>{!function(e,t,{schema:n,setSchemaReference:r},i,o){function a(e){const t=null==i?void 0:i.referencePlugin;if(!(n&&t&&e.currentTarget instanceof HTMLElement))return;const a=e.currentTarget.textContent||"",s=n.getType(a);s&&(i.setVisiblePlugin(t),r({kind:"Type",type:s}),null==o||o(s))}zd([],{useCommonAddons:!1}).then(e=>{let n,r,i,o,s,l,u,c,d;e.on(t,"select",(e,t)=>{if(!n){const e=t.parentNode;n=document.createElement("div"),n.className="CodeMirror-hint-information",e.append(n);const f=document.createElement("header");f.className="CodeMirror-hint-information-header",n.append(f),r=document.createElement("span"),r.className="CodeMirror-hint-information-field-name",f.append(r),i=document.createElement("span"),i.className="CodeMirror-hint-information-type-name-pill",f.append(i),o=document.createElement("span"),i.append(o),s=document.createElement("a"),s.className="CodeMirror-hint-information-type-name",s.href="javascript:void 0",s.addEventListener("click",a),i.append(s),l=document.createElement("span"),i.append(l),u=document.createElement("div"),u.className="CodeMirror-hint-information-description",n.append(u),c=document.createElement("div"),c.className="CodeMirror-hint-information-deprecation",n.append(c);const p=document.createElement("span");p.className="CodeMirror-hint-information-deprecation-label",p.textContent="Deprecated",c.append(p),d=document.createElement("div"),d.className="CodeMirror-hint-information-deprecation-reason",c.append(d);const h=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,""),10)||0,m=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,""),10)||0,g=()=>{n&&(n.style.paddingTop=e.scrollTop+h+"px",n.style.maxHeight=e.scrollTop+m+"px")};let v;e.addEventListener("scroll",g),e.addEventListener("DOMNodeRemoved",v=t=>{t.target===e&&(e.removeEventListener("scroll",g),e.removeEventListener("DOMNodeRemoved",v),null==n||n.removeEventListener("click",a),n=null,r=null,i=null,o=null,s=null,l=null,u=null,c=null,d=null,v=null)})}if(r&&(r.textContent=e.text),i&&o&&s&&l)if(e.type){i.style.display="inline";const t=e=>{wn(e)?(l.textContent="!"+l.textContent,t(e.ofType)):bn(e)?(o.textContent+="[",l.textContent="]"+l.textContent,t(e.ofType)):s.textContent=e.name};o.textContent="",l.textContent="",t(e.type)}else o.textContent="",s.textContent="",l.textContent="",i.style.display="none";u&&(e.description?(u.style.display="block",u.innerHTML=Hh.render(e.description)):(u.style.display="none",u.innerHTML="")),c&&d&&(e.deprecationReason?(c.style.display="block",d.innerHTML=Hh.render(e.deprecationReason)):(c.style.display="none",d.innerHTML=""))})})}(0,n,{schema:r,setSchemaReference:i},o,e=>{null==t||t({kind:"Type",type:e,schema:r||void 0})})};return e.on("hasCompletion",n),()=>e.off("hasCompletion",n)},s=[t,e,o,r,i],n[0]=t,n[1]=e,n[2]=o,n[3]=r,n[4]=i,n[5]=a,n[6]=s):(a=n[5],s=n[6]),(0,dd.useEffect)(a,s)}function Xh(e,t,n){const r=(0,yd.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,dd.useEffect)(i,o)}vs();var Jh=nm,Zh=rm,em=om,tm=am;function nm(e){const t=(0,yd.c)(7);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r,onCopyQuery:i}=n,o=r||Jh;let a;t[2]!==o?(a={nonNull:!0,caller:o},t[2]=o,t[3]=a):a=t[3];const{queryEditor:s}=Tv(a);let l;return t[4]!==i||t[5]!==s?(l=()=>{if(!s)return;const e=s.getValue();(0,qh.default)(e),null==i||i(e)},t[4]=i,t[5]=s,t[6]=l):l=t[6],l}function rm(e){const t=(0,yd.c)(7);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r}=n,i=r||Zh;let o;t[2]!==i?(o={nonNull:!0,caller:i},t[2]=i,t[3]=o):o=t[3];const{queryEditor:a}=Tv(o),{schema:s}=Yd();let l;return t[4]!==a||t[5]!==s?(l=()=>{const e=null==a?void 0:a.documentAST,t=null==a?void 0:a.getValue();e&&t&&a.setValue(Wt(nl(e,s)))},t[4]=a,t[5]=s,t[6]=l):l=t[6],l}function im(e){return Wt(ct(e))}function om(e){const t=(0,yd.c)(9);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r,onPrettifyQuery:i}=n,o=void 0===i?im:i,a=r||em;let s;t[2]!==a?(s={nonNull:!0,caller:a},t[2]=a,t[3]=s):s=t[3];const{queryEditor:l,headerEditor:u,variableEditor:c}=Tv(s);let d;return t[4]!==u||t[5]!==o||t[6]!==l||t[7]!==c?(d=async()=>{if(c){const t=c.getValue();try{const e=JSON.stringify(JSON.parse(t),null,2);e!==t&&c.setValue(e)}catch(e){}}if(u){const e=u.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&u.setValue(t)}catch(t){}}if(l){const e=l.getValue();try{const t=await o(e);t!==e&&l.setValue(t)}catch(n){}}},t[4]=u,t[5]=o,t[6]=l,t[7]=c,t[8]=d):d=t[8],d}function am(e){const t=(0,yd.c)(8);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{getDefaultFieldNames:r,caller:i}=n,{schema:o}=Yd(),a=i||tm;let s;t[2]!==a?(s={nonNull:!0,caller:a},t[2]=a,t[3]=s):s=t[3];const{queryEditor:l}=Tv(s);let u;return t[4]!==r||t[5]!==l||t[6]!==o?(u=()=>{if(!l)return;const{insertions:e,result:t}=Xs(o,l.getValue(),r);return e&&e.length>0&&l.operation(()=>{const n=l.getCursor(),r=l.indexFromPos(n);l.setValue(t||"");let i=0;const o=e.map(e=>{const{index:t,string:n}=e;return i+=n.length,l.markText(l.posFromIndex(t+i),l.posFromIndex(t+i),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(()=>{for(const e of o)e.clear()},7e3);let a=r;for(const{index:t,string:s}of e)t{var n;n=function(e){e.defineMode("javascript",function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,d=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return r=e,i=n,t}function g(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=g),m("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):Ze(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=y,y(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(d))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(d.test(r)){e.eatWhile(d);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function y(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(d.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function E(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function k(e,t,n,r,i){var o=e.cc;for(C.state=e,C.stream=i,C.marked=null,C.cc=o,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?$:B)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&E(e,r)?"variable-2":t}}var C={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function T(){return S.apply(null,arguments),!0}function _(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function N(e){var t=C.state;if(C.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=A(e,t.context);if(null!=r)return void(t.context=r)}else if(!_(e,t.localVars))return void(t.localVars=new L(e,t.localVars));n.globalVars&&!_(e,t.globalVars)&&(t.globalVars=new L(e,t.globalVars))}}function A(e,t){if(t){if(t.block){var n=A(e,t.prev);return n?n==t.prev?t:new O(n,t.vars,!0):null}return _(e,t.vars)?t:new O(t.prev,new L(e,t.vars),!1)}return null}function D(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function O(e,t,n){this.prev=e,this.vars=t,this.block=n}function L(e,t){this.name=e,this.next=t}var I=new L("this",new L("arguments",null));function M(){C.state.context=new O(C.state.context,C.state.localVars,!1),C.state.localVars=I}function F(){C.state.context=new O(C.state.context,C.state.localVars,!0),C.state.localVars=null}function P(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function R(e,t){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,C.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function j(){var e=C.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function V(e){return function t(n){return n==e?T():";"==e||"}"==n||")"==n||"]"==n?S():T(t)}}function B(e,t){return"var"==e?T(R("vardef",t),Ce,V(";"),j):"keyword a"==e?T(R("form"),H,B,j):"keyword b"==e?T(R("form"),B,j):"keyword d"==e?C.stream.match(/^\s*$/,!1)?T():T(R("stat"),q,V(";"),j):"debugger"==e?T(V(";")):"{"==e?T(R("}"),F,le,j,P):";"==e?T():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==j&&C.state.cc.pop()(),T(R("form"),H,B,j,De)):"function"==e?T(Me):"for"==e?T(R("form"),F,Oe,B,P,j):"class"==e||c&&"interface"==t?(C.marked="keyword",T(R("form","class"==e?e:t),Ve,j)):"variable"==e?c&&"declare"==t?(C.marked="keyword",T(B)):c&&("module"==t||"enum"==t||"type"==t)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==t?T(Xe):"type"==t?T(Pe,V("operator"),pe,V(";")):T(R("form"),Se,V("{"),R("}"),le,j,j)):c&&"namespace"==t?(C.marked="keyword",T(R("form"),$,B,j)):c&&"abstract"==t?(C.marked="keyword",T(B)):T(R("stat"),te):"switch"==e?T(R("form"),H,V("{"),R("}","switch"),F,le,j,j,P):"case"==e?T($,V(":")):"default"==e?T(V(":")):"catch"==e?T(R("form"),M,z,B,j,P):"export"==e?T(R("stat"),Ue,j):"import"==e?T(R("stat"),We,j):"async"==e?T(B):"@"==t?T($,B):S(R("stat"),$,V(";"),j)}function z(e){if("("==e)return T(Re,V(")"))}function $(e,t){return W(e,t,!1)}function U(e,t){return W(e,t,!0)}function H(e){return"("!=e?S():T(R(")"),q,V(")"),j)}function W(e,t,n){if(C.state.fatArrowAt==C.stream.start){var r=n?J:X;if("("==e)return T(M,R(")"),ae(Re,")"),j,V("=>"),r,P);if("variable"==e)return S(M,Se,V("=>"),r,P)}var i=n?K:G;return w.hasOwnProperty(e)?T(i):"function"==e?T(Me,i):"class"==e||c&&"interface"==t?(C.marked="keyword",T(R("form"),je,j)):"keyword c"==e||"async"==e?T(n?U:$):"("==e?T(R(")"),q,V(")"),j,i):"operator"==e||"spread"==e?T(n?U:$):"["==e?T(R("]"),Qe,j,i):"{"==e?se(re,"}",null,i):"quasi"==e?S(Y,i):"new"==e?T(function(e){return function(t){return"."==t?T(e?ee:Z):"variable"==t&&c?T(xe,e?K:G):S(e?U:$)}}(n)):T()}function q(e){return e.match(/[;\}\)\],]/)?S():S($)}function G(e,t){return","==e?T(q):K(e,t,!1)}function K(e,t,n){var r=0==n?G:K,i=0==n?$:U;return"=>"==e?T(M,n?J:X,P):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?T(r):c&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(R(">"),ae(pe,">"),j,r):"?"==t?T($,V(":"),i):T(i):"quasi"==e?S(Y,r):";"!=e?"("==e?se(U,")","call",r):"."==e?T(ne,r):"["==e?T(R("]"),q,V("]"),j,r):c&&"as"==t?(C.marked="keyword",T(pe,r)):"regexp"==e?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),T(i)):void 0:void 0}function Y(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?T(Y):T(q,Q)}function Q(e){if("}"==e)return C.marked="string-2",C.state.tokenize=y,T(Y)}function X(e){return b(C.stream,C.state),S("{"==e?B:$)}function J(e){return b(C.stream,C.state),S("{"==e?B:U)}function Z(e,t){if("target"==t)return C.marked="keyword",T(G)}function ee(e,t){if("target"==t)return C.marked="keyword",T(K)}function te(e){return":"==e?T(j,B):S(G,V(";"),j)}function ne(e){if("variable"==e)return C.marked="property",T()}function re(e,t){return"async"==e?(C.marked="property",T(re)):"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?T(ie):(c&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),T(oe))):"number"==e||"string"==e?(C.marked=s?"property":C.style+" property",T(oe)):"jsonld-keyword"==e?T(oe):c&&D(t)?(C.marked="keyword",T(re)):"["==e?T($,ue,V("]"),oe):"spread"==e?T(U,oe):"*"==t?(C.marked="keyword",T(re)):":"==e?S(oe):void 0;var n}function ie(e){return"variable"!=e?S(oe):(C.marked="property",T(Me))}function oe(e){return":"==e?T(U):"("==e?S(Me):void 0}function ae(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),T(function(n,r){return n==t||r==t?S():S(e)},r)}return i==t||o==t?T():n&&n.indexOf(";")>-1?S(e):T(V(t))}return function(n,i){return n==t||i==t?T():S(e,r)}}function se(e,t,n){for(var r=3;r"),pe):"quasi"==e?S(ve,we):void 0}function he(e){if("=>"==e)return T(pe)}function me(e){return e.match(/[\}\)\]]/)?T():","==e||";"==e?T(me):S(ge,me)}function ge(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",T(ge)):"?"==t||"number"==e||"string"==e?T(ge):":"==e?T(pe):"["==e?T(V("variable"),ce,V("]"),ge):"("==e?S(Fe,ge):e.match(/[;\}\)\],]/)?void 0:T()}function ve(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?T(ve):T(pe,ye)}function ye(e){if("}"==e)return C.marked="string-2",C.state.tokenize=y,T(ve)}function be(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?T(be):":"==e?T(pe):"spread"==e?T(be):S(pe)}function we(e,t){return"<"==t?T(R(">"),ae(pe,">"),j,we):"|"==t||"."==e||"&"==t?T(pe):"["==e?T(pe,V("]"),we):"extends"==t||"implements"==t?(C.marked="keyword",T(pe)):"?"==t?T(pe,V(":"),pe):void 0}function xe(e,t){if("<"==t)return T(R(">"),ae(pe,">"),j,we)}function Ee(){return S(pe,ke)}function ke(e,t){if("="==t)return T(pe)}function Ce(e,t){return"enum"==t?(C.marked="keyword",T(Xe)):S(Se,ue,Ne,Ae)}function Se(e,t){return c&&D(t)?(C.marked="keyword",T(Se)):"variable"==e?(N(t),T()):"spread"==e?T(Se):"["==e?se(_e,"]"):"{"==e?se(Te,"}"):void 0}function Te(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),"spread"==e?T(Se):"}"==e?S():"["==e?T($,V("]"),V(":"),Te):T(V(":"),Se,Ne)):(N(t),T(Ne))}function _e(){return S(Se,Ne)}function Ne(e,t){if("="==t)return T(U)}function Ae(e){if(","==e)return T(Ce)}function De(e,t){if("keyword b"==e&&"else"==t)return T(R("form","else"),B,j)}function Oe(e,t){return"await"==t?T(Oe):"("==e?T(R(")"),Le,j):void 0}function Le(e){return"var"==e?T(Ce,Ie):"variable"==e?T(Ie):S(Ie)}function Ie(e,t){return")"==e?T():";"==e?T(Ie):"in"==t||"of"==t?(C.marked="keyword",T($,Ie)):S($,Ie)}function Me(e,t){return"*"==t?(C.marked="keyword",T(Me)):"variable"==e?(N(t),T(Me)):"("==e?T(M,R(")"),ae(Re,")"),j,de,B,P):c&&"<"==t?T(R(">"),ae(Ee,">"),j,Me):void 0}function Fe(e,t){return"*"==t?(C.marked="keyword",T(Fe)):"variable"==e?(N(t),T(Fe)):"("==e?T(M,R(")"),ae(Re,")"),j,de,P):c&&"<"==t?T(R(">"),ae(Ee,">"),j,Fe):void 0}function Pe(e,t){return"keyword"==e||"variable"==e?(C.marked="type",T(Pe)):"<"==t?T(R(">"),ae(Ee,">"),j):void 0}function Re(e,t){return"@"==t&&T($,Re),"spread"==e?T(Re):c&&D(t)?(C.marked="keyword",T(Re)):c&&"this"==e?T(ue,Ne):S(Se,ue,Ne)}function je(e,t){return"variable"==e?Ve(e,t):Be(e,t)}function Ve(e,t){if("variable"==e)return N(t),T(Be)}function Be(e,t){return"<"==t?T(R(">"),ae(Ee,">"),j,Be):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(C.marked="keyword"),T(c?pe:$,Be)):"{"==e?T(R("}"),ze,j):void 0}function ze(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&D(t))&&C.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",T(ze)):"variable"==e||"keyword"==C.style?(C.marked="property",T($e,ze)):"number"==e||"string"==e?T($e,ze):"["==e?T($,ue,V("]"),$e,ze):"*"==t?(C.marked="keyword",T(ze)):c&&"("==e?S(Fe,ze):";"==e||","==e?T(ze):"}"==e?T():"@"==t?T($,ze):void 0}function $e(e,t){if("!"==t)return T($e);if("?"==t)return T($e);if(":"==e)return T(pe,Ne);if("="==t)return T(U);var n=C.state.lexical.prev;return S(n&&"interface"==n.info?Fe:Me)}function Ue(e,t){return"*"==t?(C.marked="keyword",T(Ye,V(";"))):"default"==t?(C.marked="keyword",T($,V(";"))):"{"==e?T(ae(He,"}"),Ye,V(";")):S(B)}function He(e,t){return"as"==t?(C.marked="keyword",T(V("variable"))):"variable"==e?S(U,He):void 0}function We(e){return"string"==e?T():"("==e?S($):"."==e?S(G):S(qe,Ge,Ye)}function qe(e,t){return"{"==e?se(qe,"}"):("variable"==e&&N(t),"*"==t&&(C.marked="keyword"),T(Ke))}function Ge(e){if(","==e)return T(qe,Ge)}function Ke(e,t){if("as"==t)return C.marked="keyword",T(qe)}function Ye(e,t){if("from"==t)return C.marked="keyword",T($)}function Qe(e){return"]"==e?T():S(ae(U,"]"))}function Xe(){return S(R("form"),Se,V("{"),R("}"),ae(Je,"}"),j,j)}function Je(){return S(Se,Ne)}function Ze(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return M.lex=F.lex=!0,P.lex=!0,j.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new O(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",k(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v||t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==j)l=l.prev;else if(c!=De&&c!=P)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==G||i==K)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||f||0==n.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Ze,skipExpression:function(t){k(t,"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})},"object"==typeof e&&"object"==typeof t?n(Td()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),lm=um;function um(e,t){const n=(0,yd.c)(17);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onEdit:a,readOnly:s}=r,l=void 0===i?jd:i,u=void 0===o?Vd:o,d=void 0!==s&&s,f=t||lm;let p;n[2]!==f?(p={nonNull:!0,caller:f},n[2]=f,n[3]=p):p=n[3];const{initialHeaders:h,headerEditor:m,setHeaderEditor:g,shouldPersistHeaders:v}=Tv(p),y=Lv(),b=t||lm;let w;n[4]!==b?(w={caller:b},n[4]=b,n[5]=w):w=n[5];const x=rm(w),E=t||lm;let k;n[6]!==E?(k={caller:E},n[6]=E,n[7]=k):k=n[7];const C=om(k),S=(0,dd.useRef)(null);let T,_,N,A,D;return n[8]!==l||n[9]!==h||n[10]!==d||n[11]!==g?(T=()=>{let e=!0;return zd([Ts(()=>Promise.resolve().then(()=>c(sm())),void 0,import.meta.url)]).then(t=>{if(!e)return;const n=S.current;if(!n)return;const r=t(n,{value:h,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:l,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!d&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Bd});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on("keyup",cm),g(r)}),()=>{e=!1}},_=[l,h,d,g],n[8]=l,n[9]=h,n[10]=d,n[11]=g,n[12]=T,n[13]=_):(T=n[12],_=n[13]),(0,dd.useEffect)(T,_),Kh(m,"keyMap",u),Yh(m,a,v?dm:null,"headers",lm),n[14]===Symbol.for("react.memo_cache_sentinel")?(N=["Cmd-Enter","Ctrl-Enter"],n[14]=N):N=n[14],Xh(m,N,null==y?void 0:y.run),n[15]===Symbol.for("react.memo_cache_sentinel")?(A=["Shift-Ctrl-P"],n[15]=A):A=n[15],Xh(m,A,C),n[16]===Symbol.for("react.memo_cache_sentinel")?(D=["Shift-Ctrl-M"],n[16]=D):D=n[16],Xh(m,D,x),S}function cm(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}var dm="headers",fm=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),pm=new RegExp("["+fm.join("")+"]","g");function hm(e){return e.replace(pm," ")}var mm,gm,vm,ym,bm=s((e,t)=>{var n;n=function(e){var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var l=o[s].from(),u=o[s].to();l.line>=i||(u.line>=i&&(u=r(i,0)),i=l.line,null==a?n.uncomment(l,u,e)?a="un":(n.lineComment(l,u,e),a="line"):"un"==a?n.uncomment(l,u,e):n.lineComment(l,u,e))}}),e.defineExtension("lineComment",function(e,i,s){s||(s=t);var l=this,u=a(l,e),c=l.getLine(e.line);if(null!=c&&(d=e,f=c,!/\bstring\b/.test(l.getTokenTypeAt(r(d.line,0)))||/^[\'\"\`]/.test(f))){var d,f,p=s.lineComment||u.lineComment;if(p){var h=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,l.lastLine()+1),m=null==s.padding?" ":s.padding,g=s.commentBlankLines||e.line==i.line;l.operation(function(){if(s.indent){for(var t=null,i=e.line;ia.length)&&(t=a)}for(i=e.line;if||l.operation(function(){if(0!=s.fullLines){var t=n.test(l.getLine(f));l.replaceRange(p+d,r(f)),l.replaceRange(c+p,r(e.line,0));var a=s.blockCommentLead||u.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=f;++h)(h!=f||t)&&l.replaceRange(a+p,r(h,0))}else{var m=0==i(l.getCursor("to"),o),g=!l.somethingSelected();l.replaceRange(d,o),m&&l.setSelection(g?o:l.getCursor("from"),o),l.replaceRange(c,e)}})}}else(s.lineComment||u.lineComment)&&0!=s.fullLines&&l.lineComment(e,o,s)}),e.defineExtension("uncomment",function(e,i,o){o||(o=t);var s,l=this,u=a(l,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,l.lastLine()),d=Math.min(e.line,c),f=o.lineComment||u.lineComment,p=[],h=null==o.padding?" ":o.padding;e:if(f){for(var m=d;m<=c;++m){var g=l.getLine(m),v=g.indexOf(f);if(v>-1&&!/comment/.test(l.getTokenTypeAt(r(m,v+1)))&&(v=-1),-1==v&&n.test(g))break e;if(v>-1&&n.test(g.slice(0,v)))break e;p.push(g)}if(l.operation(function(){for(var e=d;e<=c;++e){var t=p[e-d],n=t.indexOf(f),i=n+f.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,l.replaceRange("",r(e,n),r(e,i)))}}),s)return!0}var y=o.blockCommentStart||u.blockCommentStart,b=o.blockCommentEnd||u.blockCommentEnd;if(!y||!b)return!1;var w=o.blockCommentLead||u.blockCommentLead,x=l.getLine(d),E=x.indexOf(y);if(-1==E)return!1;var k=c==d?x:l.getLine(c),C=k.indexOf(b,c==d?E+y.length:0),S=r(d,E+1),T=r(c,C+1);if(-1==C||!/comment/.test(l.getTokenTypeAt(S))||!/comment/.test(l.getTokenTypeAt(T))||l.getRange(S,T,"\n").indexOf(b)>-1)return!1;var _=x.lastIndexOf(y,e.ch),N=-1==_?-1:x.slice(0,e.ch).indexOf(b,_+y.length);if(-1!=_&&-1!=N&&N+b.length!=e.ch)return!1;N=k.indexOf(b,i.ch);var A=k.slice(i.ch).lastIndexOf(y,N-i.ch);return _=-1==N||-1==A?-1:i.ch+A,(-1==N||-1==_||_==i.ch)&&(l.operation(function(){l.replaceRange("",r(c,C-(h&&k.slice(C-h.length,C)==h?h.length:0)),r(c,C+b.length));var e=E+y.length;if(h&&x.slice(e,e+h.length)==h&&(e+=h.length),l.replaceRange("",r(d,E),r(d,e)),w)for(var t=d+1;t<=c;++t){var i=l.getLine(t),o=i.indexOf(w);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+w.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),l.replaceRange("",r(t,o),r(t,a))}}}),!0)})},"object"==typeof e&&"object"==typeof t?n(Td()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),wm=s((e,t)=>{var n;n=function(e){function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function a(e){return e.replace(/\\([nrt\\])/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e})}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(pV){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function l(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function u(t,r,i,a){var s=n(t);if(s.query)return c(t,r);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var f=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(l(t,s,n),s.posFrom=s.posTo=t.getCursor()),f&&(f.style.opacity=1),c(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((f=r).style.opacity=.4)}))};!function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){d(e)},onKeyDown:i,bottom:e.options.search.bottom})}(t,p(t),u,h,function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),l(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))}),a&&u&&(l(t,s,u),c(t,r))}else o(t,p(t),"Search for:",u,function(e){e&&!s.query&&t.operation(function(){l(t,s,e),s.posFrom=s.posTo=t.getCursor(),c(t,r)})})}function c(t,r,o){t.operation(function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))})}function d(e){e.operation(function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function f(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i{mm=c(Td()),_d(),od(),mm.default.registerHelper("hint","graphql",(e,t)=>{const{schema:n,externalFragments:r,autocompleteOptions:i}=t;if(!n)return;const o=e.getCursor(),a=e.getTokenAt(o),s=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,l=new Bc(o.line,s),u={list:Mc(n,e.getValue(),l,a,r,i).map(e=>{var t;return{text:null!==(t=null==e?void 0:e.rawInsert)&&void 0!==t?t:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}),from:{line:o.line,ch:s},to:{line:o.line,ch:a.end}};return(null==u?void 0:u.list)&&u.list.length>0&&(u.from=mm.default.Pos(u.from.line,u.from.ch),u.to=mm.default.Pos(u.to.line,u.to.ch),mm.default.signal(e,"hasCompletion",e,u,a)),u})}),km=l({}),Cm=a(()=>{gm=c(Td()),od(),vm=["error","warning","information","hint"],ym={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"},gm.default.registerHelper("lint","graphql",(e,t)=>{const{schema:n,validationRules:r,externalFragments:i}=t;return function(e,t=null,n,r,i){var o,a;let s=null,l="";i&&(l="string"==typeof i?i:i.reduce((e,t)=>e+Wt(t)+"\n\n",""));const u=l?`${e}\n\n${l}`:e;try{s=ct(u)}catch(Oh){if(Oh instanceof Z){const t=function(e,t){const n=ac(),r=n.startState(),i=t.split("\n");Uc(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let u=0;ue!==Ri&&e!==ci&&(!r||e!==xi));return n&&Array.prototype.push.apply(i,n),_a(e,t,i).filter(e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===fe.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})}(t,e,n,r).flatMap(e=>Zc(e,$c.Error,"Validation")),o=_a(t,e,[us]).flatMap(e=>Zc(e,$c.Warning,"Deprecation"));return i.concat(o)}(s,t,n,r)}(e,n,r,void 0,i).map(e=>({message:e.message,severity:e.severity?vm[e.severity-1]:vm[0],type:e.source?ym[e.source]:void 0,from:gm.default.Pos(e.range.start.line,e.range.start.character),to:gm.default.Pos(e.range.end.line,e.range.end.character)}))})});function Sm(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}var Tm=a(()=>{});function _m(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return Sm(t,t=>{var r,i;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?Nm(e,n.parentType,t.name):null,n.type=null===(r=n.fieldDef)||void 0===r?void 0:r.type;break;case"SelectionSet":n.parentType=n.type?Dn(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const o=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&Nm(e,n.parentType,t.prevState.name):null:null;n.argDefs=o?o.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;ee.value===t.name):null;break;case"ListValue":const s=n.inputType?Nn(n.inputType):null;n.inputType=s instanceof nn?s.ofType:null;break;case"ObjectValue":const l=n.inputType?Dn(n.inputType):null;n.objectFieldDefs=l instanceof cn?l.getFields():null;break;case"ObjectField":const u=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==u?void 0:u.type,n.fieldDef=u;break;case"NamedType":n.type=t.name?e.getType(t.name):null}}),n}function Nm(e,t,n){return n===Tr.name&&e.getQueryType()===t?Tr:n===_r.name&&e.getQueryType()===t?_r:n===Nr.name&&Cn(t)?Nr:t&&t.getFields?t.getFields()[n]:void 0}var Am=a(()=>{vs(),Tm()});function Dm(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:Fm(e.fieldDef)?null:e.parentType}}function Om(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function Lm(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:Fm(e.fieldDef)?null:e.parentType}}function Im(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?Dn(e.inputType):void 0}}function Mm(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function Fm(e){return"__"===e.name.slice(0,2)}var Pm,Rm=a(()=>{vs()}),jm=l({});function Vm(e,t){const n=e.state.info,r=t.target||t.srcElement;if(!(r instanceof HTMLElement))return;if("SPAN"!==r.nodeName||void 0!==n.hoverTimeout)return;const i=r.getBoundingClientRect(),o=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(s,l)},a=function(){Pm.default.off(document,"mousemove",o),Pm.default.off(e.getWrapperElement(),"mouseout",a),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},s=function(){Pm.default.off(document,"mousemove",o),Pm.default.off(e.getWrapperElement(),"mouseout",a),n.hoverTimeout=void 0,function(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),{options:r}=e.state.info,i=r.render||e.getHelper(n,"info");if(i){const o=e.getTokenAt(n,!0);if(o){const a=i(o,r,e,n);a&&function(e,t,n){const r=document.createElement("div");r.className="CodeMirror-info",r.append(n),document.body.append(r);const i=r.getBoundingClientRect(),{marginLeft:o,marginRight:a,marginBottom:s,marginTop:l}=getComputedStyle(r),u=i.right-i.left+parseFloat(o)+parseFloat(a),c=i.bottom-i.top+parseFloat(l)+parseFloat(s);let d=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(d=t.top-c),d<0&&(d=t.bottom);let f,p=Math.max(0,window.innerWidth-u-15);p>t.left&&(p=t.left),r.style.opacity="1",r.style.top=d+"px",r.style.left=p+"px";const h=function(){clearTimeout(f)},m=function(){clearTimeout(f),f=setTimeout(g,200)},g=function(){Pm.default.off(r,"mouseover",h),Pm.default.off(r,"mouseout",m),Pm.default.off(e.getWrapperElement(),"mouseout",m),r.style.opacity?(r.style.opacity="0",setTimeout(()=>{r.parentNode&&r.remove()},600)):r.parentNode&&r.remove()};Pm.default.on(r,"mouseover",h),Pm.default.on(r,"mouseout",m),Pm.default.on(e.getWrapperElement(),"mouseout",m)}(e,t,a)}}}(e,i)},l=function(e){const{options:t}=e.state.info;return(null==t?void 0:t.hoverTime)||500}(e);n.hoverTimeout=setTimeout(s,l),Pm.default.on(document,"mousemove",o),Pm.default.on(e.getWrapperElement(),"mouseout",a)}var Bm,zm=a(()=>{(Pm=c(Td())).default.defineOption("info",!1,(e,t,n)=>{if(n&&n!==Pm.default.Init){const t=e.state.info.onMouseOver;Pm.default.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);n.onMouseOver=Vm.bind(null,e),Pm.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}})}),$m=l({});function Um(e,t,n,r){const i=document.createElement("span");i.className="type-name-pill",r instanceof rn?(Hm(i,t,n,r.ofType),qm(i,"!")):r instanceof nn?(qm(i,"["),Hm(i,t,n,r.ofType),qm(i,"]")):qm(i,(null==r?void 0:r.name)||"","type-name",n,Mm(t,r)),e.append(i)}function Hm(e,t,n,r){r instanceof rn?(Hm(e,t,n,r.ofType),qm(e,"!")):r instanceof nn?(qm(e,"["),Hm(e,t,n,r.ofType),qm(e,"]")):qm(e,(null==r?void 0:r.name)||"","type-name",n,Mm(t,r))}function Wm(e,t,n){const{description:r}=n;if(r){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(r):n.append(document.createTextNode(r)),e.append(n)}!function(e,t,n){const r=n.deprecationReason;if(r){const n=document.createElement("div");n.className="info-deprecation",e.append(n);const i=document.createElement("span");i.className="info-deprecation-label",i.append(document.createTextNode("Deprecated")),n.append(i);const o=document.createElement("div");o.className="info-deprecation-reason",t.renderDescription?o.innerHTML=t.renderDescription(r):o.append(document.createTextNode(r)),n.append(o)}}(e,t,n)}function qm(e,t,n="",r={onClick:null},i=null){if(n){const{onClick:o}=r;let a;o?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",e=>{e.preventDefault(),o(i,e)})):a=document.createElement("span"),a.className=n,a.append(document.createTextNode(t)),e.append(a)}else e.append(document.createTextNode(t))}var Gm,Km,Ym=a(()=>{vs(),Bm=c(Td()),Am(),Rm(),zm(),Bm.default.registerHelper("info","graphql",(e,t)=>{var n;if(!t.schema||!e.state)return;const{kind:r,step:i}=e.state,o=_m(t.schema,e.state);if("Field"===r&&0===i&&o.fieldDef||"AliasedField"===r&&2===i&&o.fieldDef||"ObjectField"===r&&0===i&&o.fieldDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){!function(e,t,n){var r;qm(e,(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"","field-name",n,Dm(t))}(e,t,n),Um(e,t,n,t.type)}(e,o,t);const n=document.createElement("div");return n.append(e),Wm(n,t,o.fieldDef),n}if("Directive"===r&&1===i&&o.directiveDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;qm(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,Om(t))}(e,o,t);const n=document.createElement("div");return n.append(e),Wm(n,t,o.directiveDef),n}if("Argument"===r&&0===i&&o.argDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;qm(e,(null===(r=t.argDef)||void 0===r?void 0:r.name)||"","arg-name",n,Lm(t)),Um(e,t,n,t.inputType)}(e,o,t);const n=document.createElement("div");return n.append(e),Wm(n,t,o.argDef),n}if("EnumValue"===r&&(null===(n=o.enumValue)||void 0===n?void 0:n.description)){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;const i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";Hm(e,t,n,t.inputType),qm(e,"."),qm(e,i,"enum-value",n,Im(t))}(e,o,t);const n=document.createElement("div");return n.append(e),Wm(n,t,o.enumValue),n}if("NamedType"===r&&o.type&&o.type.description){const e=document.createElement("div");e.className="CodeMirror-info-header",Hm(e,o,t,o.type);const n=document.createElement("div");return n.append(e),Wm(n,t,o.type),n}})});function Qm(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement))return;if("SPAN"!==(null==n?void 0:n.nodeName))return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&Zm(e)}function Xm(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&eg(e):e.state.jump.cursor=null}function Jm(e,t){if(e.state.jump.isHoldingModifier||t.key!==(Km?"Meta":"Control"))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&Zm(e);const n=o=>{o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&eg(e),Gm.default.off(document,"keyup",n),Gm.default.off(document,"click",r),e.off("mousedown",i))},r=t=>{const{destination:n,options:r}=e.state.jump;n&&r.onClick(n,t)},i=(t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)};Gm.default.on(document,"keyup",n),Gm.default.on(document,"click",r),e.on("mousedown",i)}function Zm(e){if(e.state.jump.marker)return;const{cursor:t,options:n}=e.state.jump,r=e.coordsChar(t),i=e.getTokenAt(r,!0),o=n.getDestination||e.getHelper(r,"jump");if(o){const t=o(i,n,e);if(t){const n=e.markText({line:r.line,ch:i.start},{line:r.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=n,e.state.jump.destination=t}}}function eg(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}var tg,ng=a(()=>{(Gm=c(Td())).default.defineOption("jump",!1,(e,t,n)=>{if(n&&n!==Gm.default.Init){const t=e.state.jump.onMouseOver;Gm.default.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;Gm.default.off(e.getWrapperElement(),"mouseout",n),Gm.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:Qm.bind(null,e),onMouseOut:Xm.bind(null,e),onKeyDown:Jm.bind(null,e)};Gm.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver),Gm.default.on(e.getWrapperElement(),"mouseout",n.onMouseOut),Gm.default.on(document,"keydown",n.onKeyDown)}}),Km="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac")}),rg=l({}),ig=a(()=>{tg=c(Td()),Am(),Rm(),ng(),tg.default.registerHelper("jump","graphql",(e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:i}=n,o=_m(t.schema,n);return"Field"===r&&0===i&&o.fieldDef||"AliasedField"===r&&2===i&&o.fieldDef?Dm(o):"Directive"===r&&1===i&&o.directiveDef?Om(o):"Argument"===r&&0===i&&o.argDef?Lm(o):"EnumValue"===r&&o.enumValue?Im(o):"NamedType"===r&&o.type?Mm(o):void 0})});function og(e,t){var n,r;const{levels:i,indentLevel:o}=e;return((i&&0!==i.length?i.at(-1)-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):o)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}var ag,sg,lg=a(()=>{}),ug=a(()=>{od(),lg(),ag=e=>{const t=ac({eatWhitespace:e=>e.eatWhile(Ju),lexRules:Zu,parseRules:ec,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:og,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}}),cg=l({}),dg=a(()=>{sg=c(Td()),ug(),sg.default.defineMode("graphql",ag)});od();var fg=pg;function pg(e,t){const n=(0,yd.c)(40);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onClickReference:a,onCopyQuery:s,onEdit:l,onPrettifyQuery:u,readOnly:d}=r,f=void 0===i?jd:i,p=void 0===o?Vd:o,h=void 0!==d&&d,{schema:m,setSchemaReference:g}=Yd(),v=t||fg;let y;n[2]!==v?(y={nonNull:!0,caller:v},n[2]=v,n[3]=y):y=n[3];const{externalFragments:b,initialQuery:w,queryEditor:x,setOperationName:E,setQueryEditor:k,validationRules:C,variableEditor:S,updateActiveTabValues:T}=Tv(y),_=Lv(),N=Ed(),A=qd(),D=t||fg;let O;n[4]!==s||n[5]!==D?(O={caller:D,onCopyQuery:s},n[4]=s,n[5]=D,n[6]=O):O=n[6];const L=nm(O),I=t||fg;let M;n[7]!==I?(M={caller:I},n[7]=I,n[8]=M):M=n[8];const F=rm(M),P=t||fg;let R;n[9]!==u||n[10]!==P?(R={caller:P,onPrettifyQuery:u},n[9]=u,n[10]=P,n[11]=R):R=n[11];const j=om(R),V=(0,dd.useRef)(null),B=(0,dd.useRef)(void 0),z=(0,dd.useRef)(vg);let $,U,H,W,q,G;n[12]!==a||n[13]!==A||n[14]!==g?($=()=>{z.current=e=>{const t=null==A?void 0:A.referencePlugin;t&&(A.setVisiblePlugin(t),g(e),null==a||a(e))}},U=[a,A,g],n[12]=a,n[13]=A,n[14]=g,n[15]=$,n[16]=U):($=n[15],U=n[16]),(0,dd.useEffect)($,U),n[17]!==f||n[18]!==w||n[19]!==h||n[20]!==k?(H=()=>{let e=!0;return zd([Ts(()=>Promise.resolve().then(()=>c(bm())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(wm())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>(Em(),xm)),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>(Cm(),km)),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>(Ym(),$m)),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>(ig(),rg)),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>(dg(),cg)),void 0,import.meta.url)]).then(t=>{if(!e)return;B.current=t;const n=V.current;if(!n)return;const r=t(n,{value:w,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:f,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!h&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0,autocompleteOptions:{mode:pc.EXECUTABLE}},info:{schema:void 0,renderDescription:gg,onClick(e){z.current(e)}},jump:{schema:void 0,onClick(e){z.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...Bd,"Cmd-S"(){},"Ctrl-S"(){}}}),i=function(){r.showHint({completeSingle:!0,container:n})};r.addKeyMap({"Cmd-Space":i,"Ctrl-Space":i,"Alt-Space":i,"Shift-Space":i,"Shift-Alt-Space":i}),r.on("keyup",mg);let o=!1;r.on("startCompletion",()=>{o=!0}),r.on("endCompletion",()=>{o=!1}),r.on("keydown",(e,t)=>{"Escape"===t.key&&o&&t.stopPropagation()}),r.on("beforeChange",hg),r.documentAST=null,r.operationName=null,r.operations=null,r.variableToType=null,k(r)}),()=>{e=!1}},W=[f,w,h,k],n[17]=f,n[18]=w,n[19]=h,n[20]=k,n[21]=H,n[22]=W):(H=n[21],W=n[22]),(0,dd.useEffect)(H,W),Kh(x,"keyMap",p),n[23]!==l||n[24]!==x||n[25]!==m||n[26]!==E||n[27]!==N||n[28]!==T||n[29]!==S?(q=()=>{if(!x)return;const e=function(e){var t,n,r,i,o;const a=function(e,t){if(t)try{const n=ct(t);return Object.assign(Object.assign({},function(e,t){const n=t?function(e,t){const n=Object.create(null);for(const r of t.definitions)if("OperationDefinition"===r.kind){const{variableDefinitions:t}=r;if(t)for(const{variable:r,type:i}of t){const t=ei(e,i);t?n[r.name.value]=t:i.kind===fe.NAMED_TYPE&&"Float"===i.name.value&&(n[r.name.value]=Qn)}}return n}(t,e):void 0,r=[];return zt(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}(n,e)),{documentAST:n})}catch(o){}}(m,e.getValue()),s=function(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>{var t;return null==(t=e.name)?void 0:t.value});if(t&&r.includes(t))return t;if(t&&e){const n=e.map(e=>{var t;return null==(t=e.name)?void 0:t.value}).indexOf(t);if(-1!==n&&n{var n;const r=t.getValue();N.set(bg,r);const i=t.operationName,o=e(t);void 0!==(null==o?void 0:o.operationName)&&N.set(wg,o.operationName),null==l||l(r,null==o?void 0:o.documentAST),(null==o?void 0:o.operationName)&&i!==o.operationName&&E(o.operationName),T({query:r,operationName:null!==(n=null==o?void 0:o.operationName)&&void 0!==n?n:null})});return e(x),x.on("change",t),()=>x.off("change",t)},G=[l,x,m,E,N,S,T],n[23]=l,n[24]=x,n[25]=m,n[26]=E,n[27]=N,n[28]=T,n[29]=S,n[30]=q,n[31]=G):(q=n[30],G=n[31]),(0,dd.useEffect)(q,G),function(e,t,n){const r=(0,yd.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const r=e.options.lint.schema!==t;!function(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}(e,t),r&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,dd.useEffect)(i,o)}(x,null!=m?m:null,B),function(e,t,n){const r=(0,yd.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const r=e.options.lint.validationRules!==t;!function(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}(e,t),r&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,dd.useEffect)(i,o)}(x,null!=C?C:null,B),function(e,t,n){const r=(0,yd.c)(7);let i;r[0]!==t?(i=[...t.values()],r[0]=t,r[1]=i):i=r[1];const o=i;let a,s;r[2]!==n||r[3]!==e||r[4]!==o?(a=()=>{if(!e)return;const t=e.options.lint.externalFragments!==o;!function(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}(e,o),t&&n.current&&n.current.signal(e,"change",e)},s=[e,o,n],r[2]=n,r[3]=e,r[4]=o,r[5]=a,r[6]=s):(a=r[5],s=r[6]),(0,dd.useEffect)(a,s)}(x,b,B),Qh(x,a);const K=null==_?void 0:_.run;let Y;n[32]!==x||n[33]!==K||n[34]!==E?(Y=()=>{var e;if(!(K&&x&&x.operations&&x.hasFocus()))return void(null==K||K());const t=x.indexFromPos(x.getCursor());let n;for(const r of x.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==x.operationName&&E(n),K()},n[32]=x,n[33]=K,n[34]=E,n[35]=Y):Y=n[35];const Q=Y;let X,J,Z,ee;return n[36]===Symbol.for("react.memo_cache_sentinel")?(X=["Cmd-Enter","Ctrl-Enter"],n[36]=X):X=n[36],Xh(x,X,Q),n[37]===Symbol.for("react.memo_cache_sentinel")?(J=["Shift-Ctrl-C"],n[37]=J):J=n[37],Xh(x,J,L),n[38]===Symbol.for("react.memo_cache_sentinel")?(Z=["Shift-Ctrl-P","Shift-Ctrl-F"],n[38]=Z):Z=n[38],Xh(x,Z,j),n[39]===Symbol.for("react.memo_cache_sentinel")?(ee=["Shift-Ctrl-M"],n[39]=ee):ee=n[39],Xh(x,ee,F),V}function hg(e,t){var n;if("paste"===t.origin){const e=t.text.map(hm);null==(n=t.update)||n.call(t,t.from,t.to,e)}}function mg(e,t){yg.test(t.key)&&e.execCommand("autocomplete")}function gg(e){return Hh.render(e)}function vg(){}var yg=/^[a-zA-Z0-9_@(]$/,bg="query",wg="operationName";function xg(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Eg(e,"id")&&Eg(e,"title")&&kg(e,"query")&&kg(e,"variables")&&kg(e,"headers")&&kg(e,"operationName")&&kg(e,"response")}function Eg(e,t){return t in e&&"string"==typeof e[t]}function kg(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function Cg(e,t=!1){return JSON.stringify(e,(e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n)}function Sg({query:e=null,variables:t=null,headers:n=null}={}){const r=e?Ag(e):null;return{id:_g(),hash:Ng({query:e,variables:t,headers:n}),title:r||Dg,query:e,variables:t,headers:n,operationName:r,response:null}}function Tg(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:Ng(i),title:i.operationName||(i.query?Ag(i.query):void 0)||Dg}})}}function _g(){const e=()=>Math.floor(65536*(1+Math.random())).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Ng(e){var t,n,r;return[null!==(t=e.query)&&void 0!==t?t:"",null!==(n=e.variables)&&void 0!==n?n:"",null!==(r=e.headers)&&void 0!==r?r:""].join("|")}function Ag(e){var t;const n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return null!==(t=null==n?void 0:n[2])&&void 0!==t?t:null}var Dg="",Og="tabState";function Lg(e,t,n){const r=function(e,t){return t?Ig(Ig(e.map(e=>({proximity:Fg(Mg(e.text),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length).map(e=>e.entry):Ig(e,e=>!e.isDeprecated)}(n,Mg(t.string));if(!r)return;const i=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}function Ig(e,t){const n=e.filter(t);return 0===n.length?e:n}function Mg(e){return e.toLowerCase().replaceAll(/\W/g,"")}function Fg(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}var Pg,Rg,jg,Vg,Bg,zg,$g,Ug,Hg,Wg=a(()=>{}),qg=l({}),Gg=a(()=>{Pg=c(Td()),vs(),Tm(),Wg(),Pg.default.registerHelper("hint","graphql-variables",(e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),i=function(e,t,n){const{kind:r,step:i}="Invalid"===t.state.kind?t.state.prevState:t.state;if("Document"===r&&0===i)return Lg(e,t,[{text:"{"}]);const{variableToType:o}=n;if(!o)return;const a=function(e,t){const n={type:null,fields:null};return Sm(t,t=>{switch(t.kind){case"Variable":n.type=e[t.name];break;case"ListValue":{const e=n.type?Nn(n.type):void 0;n.type=e instanceof nn?e.ofType:null;break}case"ObjectValue":{const e=n.type?Dn(n.type):void 0;n.fields=e instanceof cn?e.getFields():null;break}case"ObjectField":{const e=t.name&&n.fields?n.fields[t.name]:null;n.type=null==e?void 0:e.type;break}}}),n}(o,t.state);if("Document"===r||"Variable"===r&&0===i)return Lg(e,t,Object.keys(o).map(e=>({text:`"${e}": `,type:o[e]})));if(("ObjectValue"===r||"ObjectField"===r&&0===i)&&a.fields)return Lg(e,t,Object.keys(a.fields).map(e=>a.fields[e]).map(e=>({text:`"${e.name}": `,type:e.type,description:e.description})));if("StringValue"===r||"NumberValue"===r||"BooleanValue"===r||"NullValue"===r||"ListValue"===r&&1===i||"ObjectField"===r&&2===i||"Variable"===r&&2===i){const n=a.type?Dn(a.type):void 0;if(n instanceof cn)return Lg(e,t,[{text:"{"}]);if(n instanceof un)return Lg(e,t,n.getValues().map(e=>({text:`"${e.name}"`,type:n,description:e.description})));if(n===Jn)return Lg(e,t,[{text:"true",type:Jn,description:"Not false."},{text:"false",type:Jn,description:"Not true."}])}}(n,r,t);return(null==i?void 0:i.list)&&i.list.length>0&&(i.from=Pg.default.Pos(i.from.line,i.from.ch),i.to=Pg.default.Pos(i.to.line,i.to.ch),Pg.default.signal(e,"hasCompletion",e,i,r)),i})});function Kg(){const e=Vg,t=[];if(Jg("{"),!ev("}")){do{t.push(Yg())}while(ev(","));Jg("}")}return{kind:"Object",start:e,end:zg,members:t}}function Yg(){const e=Vg,t="String"===Ug?Xg():null;Jg("String"),Jg(":");const n=Qg();return{kind:"Member",start:e,end:zg,key:t,value:n}}function Qg(){switch(Ug){case"[":return function(){const e=Vg,t=[];if(Jg("["),!ev("]")){do{t.push(Qg())}while(ev(","));Jg("]")}return{kind:"Array",start:e,end:zg,values:t}}();case"{":return Kg();case"String":case"Number":case"Boolean":case"Null":const e=Xg();return nv(),e}Jg("Value")}function Xg(){return{kind:Ug,start:Vg,end:Bg,value:JSON.parse(Rg.slice(Vg,Bg))}}function Jg(e){if(Ug===e)return void nv();let t;if("EOF"===Ug)t="[end of file]";else if(Bg-Vg>1)t="`"+Rg.slice(Vg,Bg)+"`";else{const e=Rg.slice(Vg).match(/^.+?\b/);t="`"+(e?e[0]:Rg[Vg])+"`"}throw Zg(`Expected ${e} but found ${t}.`)}function Zg(e){return new Hg(e,{start:Vg,end:Bg})}function ev(e){if(Ug===e)return nv(),!0}function tv(){return Bg31;)if(92===$g)switch($g=tv()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:tv();break;case 117:tv(),rv(),rv(),rv(),rv();break;default:throw Zg("Bad character escape sequence.")}else{if(Bg===jg)throw Zg("Unterminated string.");tv()}if(34!==$g)throw Zg("Unterminated string.");tv()}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ug="Number",45===$g&&tv(),48===$g?tv():iv(),46===$g&&(tv(),iv()),void(69!==$g&&101!==$g||(43!==($g=tv())&&45!==$g||tv(),iv()));case 102:if("false"!==Rg.slice(Vg,Vg+5))break;return Bg+=4,tv(),void(Ug="Boolean");case 110:if("null"!==Rg.slice(Vg,Vg+4))break;return Bg+=3,tv(),void(Ug="Null");case 116:if("true"!==Rg.slice(Vg,Vg+4))break;return Bg+=3,tv(),void(Ug="Boolean")}Ug=Rg[Vg],tv()}else Ug="EOF"}function rv(){if($g>=48&&$g<=57||$g>=65&&$g<=70||$g>=97&&$g<=102)return tv();throw Zg("Expected hexadecimal digit.")}function iv(){if($g<48||$g>57)throw Zg("Expected decimal digit.");do{tv()}while($g>=48&&$g<=57)}var ov,av=a(()=>{Hg=class extends Error{constructor(e,t){super(e),this.position=t}}}),sv=l({});function lv(e,t){if(!e||!t)return[];if(e instanceof rn)return"Null"===t.kind?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:lv(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof nn){const n=e.ofType;return"Array"===t.kind?cv(t.values||[],e=>lv(n,e)):lv(n,t)}if(e instanceof cn){if("Object"!==t.kind)return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=cv(t.members,t=>{var r;const i=null===(r=null==t?void 0:t.key)||void 0===r?void 0:r.value;n[i]=!0;const o=e.getFields()[i];return o?lv(o?o.type:void 0,t.value):[[t.key,`Type "${e}" does not have a field "${i}".`]]});for(const i of Object.keys(e.getFields())){const o=e.getFields()[i];!n[i]&&o.type instanceof rn&&!o.defaultValue&&r.push([t,`Object of type "${e}" is missing required field "${i}".`])}return r}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof un||e instanceof on)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||null==(n=e.parseValue(t.value))||n!=n)?[[t,`Expected value of type "${e}".`]]:[];var n}function uv(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function cv(e,t){return Array.prototype.concat.apply([],e.map(t))}var dv,fv,pv,hv=a(()=>{ov=c(Td()),vs(),av(),ov.default.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=function(e){Rg=e,jg=e.length,Vg=Bg=zg=-1,tv(),nv();const t=Kg();return Jg("EOF"),t}(e)}catch(Oh){if(Oh instanceof Hg)return[uv(n,Oh.position,Oh.message)];throw Oh}const{variableToType:i}=t;return i?function(e,t,n){var r;const i=[];for(const o of n.members)if(o){const n=null===(r=o.key)||void 0===r?void 0:r.value,a=t[n];if(a)for(const[t,r]of lv(a,o.value))i.push(uv(e,t,r));else i.push(uv(e,o.key,`Variable "$${n}" does not appear in any GraphQL query.`))}return i}(n,i,r):[]})}),mv=l({});function gv(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}var vv=a(()=>{dv=c(Td()),od(),lg(),dv.default.defineMode("graphql-variables",e=>{const t=ac({eatWhitespace:e=>e.eatSpace(),lexRules:fv,parseRules:pv,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:og,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}),fv={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/},pv={Document:[Xu("{"),Ku("Variable",Gu(Xu(","))),Xu("}")],Variable:[gv("variable"),Xu(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[Qu("Number","number")],StringValue:[Qu("String","string")],BooleanValue:[Qu("Keyword","builtin")],NullValue:[Qu("Keyword","keyword")],ListValue:[Xu("["),Ku("Value",Gu(Xu(","))),Xu("]")],ObjectValue:[Xu("{"),Ku("ObjectField",Gu(Xu(","))),Xu("}")],ObjectField:[gv("attribute"),Xu(":"),"Value"]}}),yv=bv;function bv(e,t){const n=(0,yd.c)(17);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onClickReference:a,onEdit:s,readOnly:l}=r,u=void 0===i?jd:i,c=void 0===o?Vd:o,d=void 0!==l&&l,f=t||yv;let p;n[2]!==f?(p={nonNull:!0,caller:f},n[2]=f,n[3]=p):p=n[3];const{initialVariables:h,variableEditor:m,setVariableEditor:g}=Tv(p),v=Lv(),y=t||yv;let b;n[4]!==y?(b={caller:y},n[4]=y,n[5]=b):b=n[5];const w=rm(b),x=t||yv;let E;n[6]!==x?(E={caller:x},n[6]=x,n[7]=E):E=n[7];const k=om(E),C=(0,dd.useRef)(null);let S,T,_,N,A;return n[8]!==u||n[9]!==h||n[10]!==d||n[11]!==g?(S=()=>{let e=!0;return zd([Ts(()=>Promise.resolve().then(()=>(Gg(),qg)),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>(hv(),sv)),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>(vv(),mv)),void 0,import.meta.url)]).then(t=>{if(!e)return;const n=C.current;if(!n)return;const r=t(n,{value:h,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:u,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!d&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Bd});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on("keyup",wv),g(r)}),()=>{e=!1}},T=[u,h,d,g],n[8]=u,n[9]=h,n[10]=d,n[11]=g,n[12]=S,n[13]=T):(S=n[12],T=n[13]),(0,dd.useEffect)(S,T),Kh(m,"keyMap",c),Yh(m,s,xv,"variables",yv),Qh(m,a),n[14]===Symbol.for("react.memo_cache_sentinel")?(_=["Cmd-Enter","Ctrl-Enter"],n[14]=_):_=n[14],Xh(m,_,null==v?void 0:v.run),n[15]===Symbol.for("react.memo_cache_sentinel")?(N=["Shift-Ctrl-P"],n[15]=N):N=n[15],Xh(m,N,k),n[16]===Symbol.for("react.memo_cache_sentinel")?(A=["Shift-Ctrl-M"],n[16]=A):A=n[16],Xh(m,A,w),C}function wv(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}var xv="variables",Ev='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify query: Shift-Ctrl-P (or press the prettify button)\n#\n# Merge fragments: Shift-Ctrl-M (or press the merge button)\n#\n# Run Query: Ctrl-Enter (or press the play button)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n',kv=x();vs();var Cv=fd("EditorContext"),Sv=e=>{const t=(0,yd.c)(88),n=Ed(),[r,i]=(0,dd.useState)(null),[o,a]=(0,dd.useState)(null),[s,l]=(0,dd.useState)(null),[u,c]=(0,dd.useState)(null);let d;t[0]!==e.shouldPersistHeaders||t[1]!==n?(d=()=>{const t=null!==n.get(_v);return!1!==e.shouldPersistHeaders&&t?"true"===n.get(_v):Boolean(e.shouldPersistHeaders)},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=d):d=t[2];const[f,p]=(0,dd.useState)(d);let h;Gh(r,e.headers),Gh(o,e.query),Gh(s,e.response),Gh(u,e.variables),t[3]!==f?(h={shouldPersistHeaders:f},t[3]=f,t[4]=h):h=t[4];const m=function({shouldPersistHeaders:e}){return(0,dd.useCallback)(t=>{const{storage:n}=bd.getState();Wh(500,e=>{n.set(Og,e)})(Cg(t,e))},[e])}(h);let g;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==f||t[13]!==n||t[14]!==m?(g=()=>{var t,r,i,o,a,s,l,u,c;const d=null!==(t=null!==(r=e.query)&&void 0!==r?r:n.get("query"))&&void 0!==t?t:null,p=null!==(i=null!==(o=e.variables)&&void 0!==o?o:n.get("variables"))&&void 0!==i?i:null,h=null!==(a=null!==(s=e.headers)&&void 0!==s?s:n.get("headers"))&&void 0!==a?a:null,g=null!==(l=e.response)&&void 0!==l?l:"",v=function({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,shouldPersistHeaders:a}){const{storage:s}=bd.getState(),l=s.get(Og);try{if(!l)throw new Error("Storage for tabs is empty");const e=JSON.parse(l),t=a?n:void 0;if((u=e)&&"object"==typeof u&&!Array.isArray(u)&&function(e,t){return t in e&&"number"==typeof e[t]}(u,"activeTabIndex")&&"tabs"in u&&Array.isArray(u.tabs)&&u.tabs.every(xg)){const r=Ng({query:i,variables:o,headers:t});let a=-1;for(let t=0;t=0)e.activeTabIndex=a;else{const t=i?Ag(i):null;e.tabs.push({id:_g(),hash:r,title:t||Dg,query:i,variables:o,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw new Error("Storage for tabs is invalid")}catch(c){return{activeTabIndex:0,tabs:(r||[{query:null!=i?i:e,variables:o,headers:null!=n?n:t}]).map(Sg)}}var u}({query:d,variables:p,headers:h,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||Ev,defaultHeaders:e.defaultHeaders,shouldPersistHeaders:f});return m(v),{query:null!==(u=null!=d?d:0===v.activeTabIndex?v.tabs[0].query:null)&&void 0!==u?u:"",variables:null!=p?p:"",headers:null!==(c=null!=h?h:e.defaultHeaders)&&void 0!==c?c:"",response:g,tabState:v}},t[5]=e.defaultHeaders,t[6]=e.defaultQuery,t[7]=e.defaultTabs,t[8]=e.headers,t[9]=e.query,t[10]=e.response,t[11]=e.variables,t[12]=f,t[13]=n,t[14]=m,t[15]=g):g=t[15];const[v]=(0,dd.useState)(g),[y,b]=(0,dd.useState)(v.tabState);let w;t[16]!==r||t[17]!==n||t[18]!==y?(w=e=>{if(e){var t;n.set(dm,null!==(t=null==r?void 0:r.getValue())&&void 0!==t?t:"");const e=Cg(y,!0);n.set(Og,e)}else n.set(dm,""),function(){const{storage:e}=bd.getState(),t=e.get(Og);if(t){const n=JSON.parse(t);e.set(Og,JSON.stringify(n,(e,t)=>"headers"===e?null:t))}}();p(e),n.set(_v,e.toString())},t[16]=r,t[17]=n,t[18]=y,t[19]=w):w=t[19];const x=w,E=(0,dd.useRef)(void 0);let k,C,S;t[20]!==e.shouldPersistHeaders||t[21]!==x?(k=()=>{const t=Boolean(e.shouldPersistHeaders);(null==E?void 0:E.current)!==t&&(x(t),E.current=t)},C=[e.shouldPersistHeaders,x],t[20]=e.shouldPersistHeaders,t[21]=x,t[22]=k,t[23]=C):(k=t[22],C=t[23]),(0,dd.useEffect)(k,C),t[24]!==r||t[25]!==o||t[26]!==s||t[27]!==u?(S={queryEditor:o,variableEditor:u,headerEditor:r,responseEditor:s},t[24]=r,t[25]=o,t[26]=s,t[27]=u,t[28]=S):S=t[28];const T=function({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,dd.useCallback)(i=>{var o,a,s,l,u;const c=null!==(o=null==e?void 0:e.getValue())&&void 0!==o?o:null,d=null!==(a=null==t?void 0:t.getValue())&&void 0!==a?a:null,f=null!==(s=null==n?void 0:n.getValue())&&void 0!==s?s:null,p=null!==(l=null==e?void 0:e.operationName)&&void 0!==l?l:null;return Tg(i,{query:c,variables:d,headers:f,response:null!==(u=null==r?void 0:r.getValue())&&void 0!==u?u:null,operationName:p})},[e,t,n,r])}(S),{onTabChange:_,defaultHeaders:N,defaultQuery:A,children:D}=e;let O;t[29]!==N||t[30]!==r||t[31]!==o||t[32]!==s||t[33]!==u?(O={queryEditor:o,variableEditor:u,headerEditor:r,responseEditor:s,defaultHeaders:N},t[29]=N,t[30]=r,t[31]=o,t[32]=s,t[33]=u,t[34]=O):O=t[34];const L=function({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return(0,dd.useCallback)(({query:o,variables:a,headers:s,response:l})=>{var u;null==e||e.setValue(null!=o?o:""),null==t||t.setValue(null!=a?a:""),null==n||n.setValue(null!==(u=null!=s?s:i)&&void 0!==u?u:""),null==r||r.setValue(null!=l?l:"")},[n,e,r,t,i])}(O);let I;t[35]!==N||t[36]!==A||t[37]!==_||t[38]!==L||t[39]!==m||t[40]!==T?(I=()=>{b(e=>{const t=T(e),n={tabs:[...t.tabs,Sg({headers:N,query:null!=A?A:Ev})],activeTabIndex:t.tabs.length};return m(n),L(n.tabs[n.activeTabIndex]),null==_||_(n),n})},t[35]=N,t[36]=A,t[37]=_,t[38]=L,t[39]=m,t[40]=T,t[41]=I):I=t[41];const M=I;let F;t[42]!==_||t[43]!==L||t[44]!==m?(F=e=>{b(t=>{const n={...t,activeTabIndex:e};return m(n),L(n.tabs[n.activeTabIndex]),null==_||_(n),n})},t[42]=_,t[43]=L,t[44]=m,t[45]=F):F=t[45];const P=F;let R;t[46]!==_||t[47]!==L||t[48]!==m?(R=e=>{b(t=>{const n=t.tabs[t.activeTabIndex],r={tabs:e,activeTabIndex:e.indexOf(n)};return m(r),L(r.tabs[r.activeTabIndex]),null==_||_(r),r})},t[46]=_,t[47]=L,t[48]=m,t[49]=R):R=t[49];const j=R;let V;t[50]!==_||t[51]!==L||t[52]!==m?(V=e=>{b(t=>{const n={tabs:t.tabs.filter((t,n)=>e!==n),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return m(n),L(n.tabs[n.activeTabIndex]),null==_||_(n),n})},t[50]=_,t[51]=L,t[52]=m,t[53]=V):V=t[53];const B=V;let z;t[54]!==_||t[55]!==m?(z=e=>{b(t=>{const n=Tg(t,e);return m(n),null==_||_(n),n})},t[54]=_,t[55]=m,t[56]=z):z=t[56];const $=z,{onEditOperationName:U}=e;let H;t[57]!==U||t[58]!==o||t[59]!==$?(H=e=>{o&&(function(e,t){e.operationName=t}(o,e),$({operationName:e}),null==U||U(e))},t[57]=U,t[58]=o,t[59]=$,t[60]=H):H=t[60];const W=H;let q,G;if(t[61]!==e.externalFragments){if(G=new Map,Array.isArray(e.externalFragments))for(const t of e.externalFragments)G.set(t.name.value,t);else if("string"==typeof e.externalFragments)zt(ct(e.externalFragments,{}),{FragmentDefinition(e){G.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");t[61]=e.externalFragments,t[62]=G}else G=t[62];q=G;const K=q;let Y;t[63]!==e.validationRules?(Y=e.validationRules||[],t[63]=e.validationRules,t[64]=Y):Y=t[64];const Q=Y;let X;t[65]!==M||t[66]!==P||t[67]!==B||t[68]!==K||t[69]!==r||t[70]!==v.headers||t[71]!==v.query||t[72]!==v.response||t[73]!==v.variables||t[74]!==j||t[75]!==o||t[76]!==s||t[77]!==W||t[78]!==x||t[79]!==f||t[80]!==y||t[81]!==$||t[82]!==Q||t[83]!==u?(X={...y,addTab:M,changeTab:P,moveTab:j,closeTab:B,updateActiveTabValues:$,headerEditor:r,queryEditor:o,responseEditor:s,variableEditor:u,setHeaderEditor:i,setQueryEditor:a,setResponseEditor:l,setVariableEditor:c,setOperationName:W,initialQuery:v.query,initialVariables:v.variables,initialHeaders:v.headers,initialResponse:v.response,externalFragments:K,validationRules:Q,shouldPersistHeaders:f,setShouldPersistHeaders:x},t[65]=M,t[66]=P,t[67]=B,t[68]=K,t[69]=r,t[70]=v.headers,t[71]=v.query,t[72]=v.response,t[73]=v.variables,t[74]=j,t[75]=o,t[76]=s,t[77]=W,t[78]=x,t[79]=f,t[80]=y,t[81]=$,t[82]=Q,t[83]=u,t[84]=X):X=t[84];const J=X;let Z;return t[85]!==D||t[86]!==J?(Z=(0,kv.jsx)(Cv.Provider,{value:J,children:D}),t[85]=D,t[86]=J,t[87]=Z):Z=t[87],Z},Tv=pd(Cv),_v="shouldPersistHeaders";vs(),od();var Nv=c(ud()),Av=c(cd()),Dv=fd("ExecutionContext"),Ov=e=>{const t=(0,yd.c)(26),{fetcher:n,getDefaultFieldNames:r,children:i,operationName:o}=e;if("function"!=typeof n)throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:Ov},t[0]=a):a=t[0];const{externalFragments:s,headerEditor:l,queryEditor:u,responseEditor:c,variableEditor:d,updateActiveTabValues:f}=Tv(a);let p;t[1]!==r?(p={getDefaultFieldNames:r,caller:Ov},t[1]=r,t[2]=p):p=t[2];const h=am(p),[m,g]=(0,dd.useState)(!1),[v,y]=(0,dd.useState)(null),b=(0,dd.useRef)(0);let w;t[3]!==v?(w=()=>{null==v||v.unsubscribe(),g(!1),y(null)},t[3]=v,t[4]=w):w=t[4];const x=w;let E;t[5]!==h||t[6]!==s||t[7]!==n||t[8]!==l||t[9]!==o||t[10]!==u||t[11]!==c||t[12]!==x||t[13]!==v||t[14]!==f||t[15]!==d?(E=async()=>{var e,t,r;if(!u||!c)return;if(v)return void x();const i=e=>{c.setValue(e),f({response:e})};b.current=b.current+1;const a=b.current;let p=h()||u.getValue();const m=null==d?void 0:d.getValue();let w;try{w=Iv({json:m,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(_){const e=_;return void i(e instanceof Error?e.message:`${e}`)}const E=null==l?void 0:l.getValue();let k;try{k=Iv({json:E,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(N){const e=N;return void i(e instanceof Error?e.message:`${e}`)}if(s){const e=u.documentAST?jc(u.documentAST,s):[];e.length>0&&(p=p+"\n"+e.map(Pv).join("\n"))}i(""),g(!0);const C=null!==(e=null!=o?o:u.operationName)&&void 0!==e?e:void 0,S=null!==(t=k)&&void 0!==t?t:void 0,T=null!==(r=u.documentAST)&&void 0!==r?r:void 0;try{const e={},t=t=>{if(a!==b.current)return;let n=!!Array.isArray(t)&&t;if(!n&&"object"==typeof t&&null!==t&&"hasNext"in t&&(n=[t]),n){for(const t of n)Fv(e,t);g(!1),i(Qs(e))}else{const e=Qs(t);g(!1),i(e)}},r=await n({query:p,variables:w,operationName:C},{headers:S,documentAST:T});F(r)?y(r.subscribe({next(e){t(e)},error(e){g(!1),e&&i(Ys(e)),y(null)},complete(){g(!1),y(null)}})):P(r)?(y({unsubscribe:()=>{var e,t;return null==(t=(e=r[Symbol.asyncIterator]()).return)?void 0:t.call(e)}}),await async function(e,t){for await(const n of t)e(n)}(t,r),g(!1),y(null)):t(r)}catch(A){const e=A;g(!1),i(Ys(e)),y(null)}},t[5]=h,t[6]=s,t[7]=n,t[8]=l,t[9]=o,t[10]=u,t[11]=c,t[12]=x,t[13]=v,t[14]=f,t[15]=d,t[16]=E):E=t[16];const k=E,C=Boolean(v),S=null!=o?o:null;let T;t[17]!==m||t[18]!==k||t[19]!==x||t[20]!==C||t[21]!==S?(T={isFetching:m,isSubscribed:C,operationName:S,run:k,stop:x},t[17]=m,t[18]=k,t[19]=x,t[20]=C,t[21]=S,t[22]=T):T=t[22];const _=T;let N;return t[23]!==i||t[24]!==_?(N=(0,kv.jsx)(Dv.Provider,{value:_,children:i}),t[23]=i,t[24]=_,t[25]=N):N=t[25],N},Lv=pd(Dv);function Iv({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&""!==e.trim()?JSON.parse(e):void 0}catch(Oh){throw new Error(`${t}: ${Oh instanceof Error?Oh.message:Oh}.`)}if(void 0!==r&&("object"!=typeof r||null===r||Array.isArray(r)))throw new Error(n);return r}var Mv=new WeakMap;function Fv(e,t){var n,r,i,o;let a=["data",...null!==(n=t.path)&&void 0!==n?n:[]];for(const c of[e,t])if(c.pending){let t=Mv.get(e);void 0===t&&(t=new Map,Mv.set(e,t));for(const{id:e,path:n}of c.pending)t.set(e,["data",...n])}const{items:s}=t;if(s){const{id:n}=t;if(n){if(a=null==(r=Mv.get(e))?void 0:r.get(n),void 0===a)throw new Error("Invalid incremental delivery format.");(0,Av.default)(e,a.join(".")).push(...s)}else{var l;a=["data",...null!==(l=t.path)&&void 0!==l?l:[]];for(const t of s)(0,Nv.default)(e,a.join("."),t),a[a.length-1]++}}const{data:u}=t;if(u){const{id:n}=t;if(n){if(a=null==(i=Mv.get(e))?void 0:i.get(n),void 0===a)throw new Error("Invalid incremental delivery format.");const{subPath:r}=t;void 0!==r&&(a=[...a,...r])}(0,Nv.default)(e,a.join("."),u,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&(0,Nv.default)(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const c of t.incremental)Fv(e,c);if(t.completed)for(const{id:c,errors:d}of t.completed)null==(o=Mv.get(e))||o.delete(c),d&&(e.errors||(e.errors=[]),e.errors.push(...d))}function Pv(e){return Wt(e)}var Rv=e=>{const t=(0,yd.c)(45),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:o,defaultTabs:a,externalFragments:s,fetcher:l,getDefaultFieldNames:u,headers:c,inputValueDeprecation:d,introspectionQueryName:f,onEditOperationName:p,onSchemaChange:h,onTabChange:m,onTogglePluginVisibility:g,operationName:v,plugins:y,referencePlugin:b,query:w,response:x,schema:E,schemaDescription:k,shouldPersistHeaders:C,storage:S,validationRules:T,variables:_,visiblePlugin:N}=e;let A;t[0]!==o||t[1]!==i||t[2]!==a||t[3]!==s||t[4]!==c||t[5]!==p||t[6]!==m||t[7]!==w||t[8]!==x||t[9]!==C||t[10]!==T||t[11]!==_?(A={defaultQuery:i,defaultHeaders:o,defaultTabs:a,externalFragments:s,headers:c,onEditOperationName:p,onTabChange:m,query:w,response:x,shouldPersistHeaders:C,validationRules:T,variables:_},t[0]=o,t[1]=i,t[2]=a,t[3]=s,t[4]=c,t[5]=p,t[6]=m,t[7]=w,t[8]=x,t[9]=C,t[10]=T,t[11]=_,t[12]=A):A=t[12];const D=A;let O;t[13]!==r||t[14]!==l||t[15]!==d||t[16]!==f||t[17]!==h||t[18]!==E||t[19]!==k?(O={dangerouslyAssumeSchemaIsValid:r,fetcher:l,inputValueDeprecation:d,introspectionQueryName:f,onSchemaChange:h,schema:E,schemaDescription:k},t[13]=r,t[14]=l,t[15]=d,t[16]=f,t[17]=h,t[18]=E,t[19]=k,t[20]=O):O=t[20];const L=O;let I;t[21]!==l||t[22]!==u||t[23]!==v?(I={getDefaultFieldNames:u,fetcher:l,operationName:v},t[21]=l,t[22]=u,t[23]=v,t[24]=I):I=t[24];const M=I;let F;t[25]!==g||t[26]!==y||t[27]!==b||t[28]!==N?(F={onTogglePluginVisibility:g,plugins:y,visiblePlugin:N,referencePlugin:b},t[25]=g,t[26]=y,t[27]=b,t[28]=N,t[29]=F):F=t[29];const P=F;let R,j,V,B,z;return t[30]!==n||t[31]!==P?(R=(0,kv.jsx)(Wd,{...P,children:n}),t[30]=n,t[31]=P,t[32]=R):R=t[32],t[33]!==M||t[34]!==R?(j=(0,kv.jsx)(Ov,{...M,children:R}),t[33]=M,t[34]=R,t[35]=j):j=t[35],t[36]!==L||t[37]!==j?(V=(0,kv.jsx)(Kd,{...L,children:j}),t[36]=L,t[37]=j,t[38]=V):V=t[38],t[39]!==D||t[40]!==V?(B=(0,kv.jsx)(Sv,{...D,children:V}),t[39]=D,t[40]=V,t[41]=B):B=t[41],t[42]!==S||t[43]!==B?(z=(0,kv.jsx)(wd,{storage:S,children:B}),t[42]=S,t[43]=B,t[44]=z):z=t[44],z},jv="theme",Vv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),dd.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"}))),Bv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5}))),zv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75}))),$v=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5}))),Uv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M1 1L12.9998 12.9997"}),dd.createElement("path",{d:"M13 1L1.00079 13.0003"}))),Hv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),dd.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5}))),Wv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),dd.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),dd.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2}))),qv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),dd.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),dd.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"}))),Gv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),dd.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),dd.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}))),Kv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),dd.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"}))),Yv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),dd.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),dd.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"}))),Qv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),dd.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5}))),Xv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),dd.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"}))),Jv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),dd.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"}))),Zv=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),dd.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),dd.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5}))),ey=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5 6 6)"}),dd.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"}))),ty=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),dd.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),dd.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),dd.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),dd.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}))),ny=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),dd.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3}))),ry=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),dd.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),dd.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),dd.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5}))),iy=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),dd.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),dd.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}))),oy=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"}))),ay=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"}))),sy=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),dd.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),dd.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),dd.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),dd.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}))),ly=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),dd.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),dd.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),dd.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1}))),uy=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),dd.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2}))),cy=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"}))),dy=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"}))),fy=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5}))),py=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"}))),hy=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"}))),my=gy(({title:e,titleId:t,...n})=>dd.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?dd.createElement("title",{id:t},e):null,dd.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),dd.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})));function gy(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=n=>{const r=(0,yd.c)(2);let i;return r[0]!==n?(i=(0,kv.jsx)(e,{title:t,...n}),r[0]=n,r[1]=i):i=r[1],i};return n.displayName=e.name,n}function vy(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{const t=(0,yd.c)(13);let n,r,i;t[0]!==e?(({isHidden:r,...n}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]),t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:by},t[3]=i):i=t[3];const{headerEditor:o}=Tv(i),a=um(n,by);let s,l;t[4]!==o||t[5]!==r?(s=()=>{r||null==o||o.refresh()},l=[o,r],t[4]=o,t[5]=r,t[6]=s,t[7]=l):(s=t[6],l=t[7]),(0,dd.useEffect)(s,l);const u=r&&"hidden";let c,d;return t[8]!==u?(c=yy("graphiql-editor",u),t[8]=u,t[9]=c):c=t[9],t[10]!==a||t[11]!==c?(d=(0,kv.jsx)("div",{className:c,ref:a}),t[10]=a,t[11]=c,t[12]=d):d=t[12],d},wy=Object.assign(e=>{var t;const n=(0,yd.c)(14);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={width:null,height:null},n[0]=r):r=n[0];const[i,o]=(0,dd.useState)(r),[a,s]=(0,dd.useState)(null),l=(0,dd.useRef)(null),u=null==(t=xy(e.token))?void 0:t.href;let c,d,f;n[1]!==u?(c=()=>{if(l.current)return u?void fetch(u,{method:"HEAD"}).then(e=>{s(e.headers.get("Content-Type"))}).catch(()=>{s(null)}):(o({width:null,height:null}),void s(null))},d=[u],n[1]=u,n[2]=c,n[3]=d):(c=n[2],d=n[3]),(0,dd.useEffect)(c,d),n[4]!==i.height||n[5]!==i.width||n[6]!==a?(f=null!==i.width&&null!==i.height?(0,kv.jsxs)("div",{children:[i.width,"x",i.height,null===a?null:" "+a]}):null,n[4]=i.height,n[5]=i.width,n[6]=a,n[7]=f):f=n[7];const p=f;let h,m,g;return n[8]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{var e,t,n,r;o({width:null!==(e=null==(n=l.current)?void 0:n.naturalWidth)&&void 0!==e?e:null,height:null!==(t=null==(r=l.current)?void 0:r.naturalHeight)&&void 0!==t?t:null})},n[8]=h):h=n[8],n[9]!==u?(m=(0,kv.jsx)("img",{onLoad:h,ref:l,src:u}),n[9]=u,n[10]=m):m=n[10],n[11]!==p||n[12]!==m?(g=(0,kv.jsxs)("div",{children:[m,p]}),n[11]=p,n[12]=m,n[13]=g):g=n[13],g},{shouldRender(e){const t=xy(e);return!!t&&function(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}(t)}});function xy(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+"//"+location.host)}catch(n){}}var Ey,ky,Cy,Sy=e=>{const t=(0,yd.c)(2),n=pg(e,Sy);let r;return t[0]!==n?(r=(0,kv.jsx)("div",{className:"graphiql-editor",ref:n}),t[0]=n,t[1]=r):r=t[1],r},Ty=l({}),_y=a(()=>{Ey=c(Td()),od(),lg(),Ey.default.defineMode("graphql-results",e=>{const t=ac({eatWhitespace:e=>e.eatSpace(),lexRules:ky,parseRules:Cy,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:og,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}),ky={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/},Cy={Document:[Xu("{"),Ku("Entry",Xu(",")),Xu("}")],Entry:[Qu("String","def"),Xu(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[Qu("Number","number")],StringValue:[Qu("String","string")],BooleanValue:[Qu("Keyword","builtin")],NullValue:[Qu("Keyword","keyword")],ListValue:[Xu("["),Ku("Value",Xu(",")),Xu("]")],ObjectValue:[Xu("{"),Ku("ObjectField",Xu(",")),Xu("}")],ObjectField:[Qu("String","property"),Xu(":"),"Value"]}}),Ny=c(b()),Ay=Dy;function Dy(e,t){const n=(0,yd.c)(17);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{responseTooltip:i,editorTheme:o,keyMap:a}=r,s=void 0===o?jd:o,l=void 0===a?Vd:a,{fetchError:u,validationErrors:d}=Yd(),f=t||Ay;let p;n[2]!==f?(p={nonNull:!0,caller:f},n[2]=f,n[3]=p):p=n[3];const{initialResponse:h,responseEditor:m,setResponseEditor:g}=Tv(p),v=(0,dd.useRef)(null),y=(0,dd.useRef)(i);let b,w,x,E,k,C;return n[4]!==i?(b=()=>{y.current=i},w=[i],n[4]=i,n[5]=b,n[6]=w):(b=n[5],w=n[6]),(0,dd.useEffect)(b,w),n[7]!==s||n[8]!==h||n[9]!==g?(x=()=>{let e=!0;return zd([Ts(()=>Promise.resolve().then(()=>c(Ld())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Dd())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Fd())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(wm())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Md())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Pd())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>c(Rd())),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>(_y(),Ty)),void 0,import.meta.url),Ts(()=>Promise.resolve().then(()=>(zm(),jm)),void 0,import.meta.url)],{useCommonAddons:!1}).then(t=>{if(!e)return;const n=document.createElement("div"),r=(0,Ny.createRoot)(n);t.registerHelper("info","graphql-results",(e,t,i,o)=>{const a=y.current,s=[a&&(0,kv.jsx)(a,{pos:o,token:e}),wy.shouldRender(e)&&(0,kv.jsx)(wy,{token:e},"image-preview")].filter(Oy);if(s.length)return r.render(s),n;r.unmount()});const i=v.current;i&&g(t(i,{value:h,lineWrapping:!0,readOnly:!0,theme:s,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Bd}))}),()=>{e=!1}},E=[s,h,g],n[7]=s,n[8]=h,n[9]=g,n[10]=x,n[11]=E):(x=n[10],E=n[11]),(0,dd.useEffect)(x,E),Kh(m,"keyMap",l),n[12]!==u||n[13]!==m||n[14]!==d?(k=()=>{u&&(null==m||m.setValue(u)),d.length&&(null==m||m.setValue(Ys(d)))},C=[m,u,d],n[12]=u,n[13]=m,n[14]=d,n[15]=k,n[16]=C):(k=n[15],C=n[16]),(0,dd.useEffect)(k,C),v}function Oy(e){return Boolean(e)}var Ly=e=>{const t=(0,yd.c)(2),n=Dy(e,Ly);let r;return t[0]!==n?(r=(0,kv.jsx)("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:n}),t[0]=n,t[1]=r):r=t[1],r},Iy=e=>{const t=(0,yd.c)(13);let n,r,i;t[0]!==e?(({isHidden:r,...n}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]),t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:Iy},t[3]=i):i=t[3];const{variableEditor:o}=Tv(i),a=bv(n,Iy);let s,l;t[4]!==r||t[5]!==o?(s=()=>{r||null==o||o.refresh()},l=[o,r],t[4]=r,t[5]=o,t[6]=s,t[7]=l):(s=t[6],l=t[7]),(0,dd.useEffect)(s,l);const u=r&&"hidden";let c,d;return t[8]!==u?(c=yy("graphiql-editor",u),t[8]=u,t[9]=c):c=t[9],t[10]!==a||t[11]!==c?(d=(0,kv.jsx)("div",{className:c,ref:a}),t[10]=a,t[11]=c,t[12]=d):d=t[12],d};function My(e){const t=(0,yd.c)(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:o,sizeThresholdFirst:a,sizeThresholdSecond:s,storageKey:l}=e,u=void 0===n?1:n,c=void 0===a?100:a,d=void 0===s?100:s,f=Ed();let p;t[0]!==f||t[1]!==l?(p=Wh(500,e=>{l&&f.set(l,e)}),t[0]=f,t[1]=l,t[2]=p):p=t[2];const h=p;let m;t[3]!==i||t[4]!==f||t[5]!==l?(m=()=>{const e=l&&f.get(l);return e===Fy||"first"===i?"first":e===Py||"second"===i?"second":null},t[3]=i,t[4]=f,t[5]=l,t[6]=m):m=t[6];const[g,v]=(0,dd.useState)(m);let y;t[7]!==g||t[8]!==o?(y=e=>{e!==g&&(v(e),null==o||o(e))},t[7]=g,t[8]=o,t[9]=y):y=t[9];const b=y,w=(0,dd.useRef)(null),x=(0,dd.useRef)(null),E=(0,dd.useRef)(null),k=(0,dd.useRef)(`${u}`);let C,S,T,_,N,A,D;return t[10]!==f||t[11]!==l?(C=()=>{const e=l&&f.get(l)||k.current;w.current&&(w.current.style.flex=e===Fy||e===Py?k.current:e),E.current&&(E.current.style.flex="1")},t[10]=f,t[11]=l,t[12]=C):C=t[12],t[13]!==r||t[14]!==f||t[15]!==l?(S=[r,f,l],t[13]=r,t[14]=f,t[15]=l,t[16]=S):S=t[16],(0,dd.useEffect)(C,S),t[17]!==g||t[18]!==f||t[19]!==l?(_=()=>{const e=e=>{const t="first"===e?w.current:E.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",w.current)){const e=parseFloat(w.current.style.flex);(!Number.isFinite(e)||e<1)&&(w.current.style.flex="1")}},t=e=>{const t="first"===e?w.current:E.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",l)){const e=f.get(l);w.current&&e!==Fy&&e!==Py&&(w.current.style.flex=e||k.current)}};"first"===g?e("first"):t("first"),"second"===g?e("second"):t("second")},T=[g,f,l],t[17]=g,t[18]=f,t[19]=l,t[20]=T,t[21]=_):(T=t[20],_=t[21]),(0,dd.useEffect)(_,T),t[22]!==r||t[23]!==b||t[24]!==c||t[25]!==d||t[26]!==h?(N=()=>{if(!x.current||!w.current||!E.current)return;const e=x.current,t=w.current,n=t.parentElement,i="horizontal"===r?"clientX":"clientY",o="horizontal"===r?"left":"top",a="horizontal"===r?"right":"bottom",s="horizontal"===r?"clientWidth":"clientHeight",l=function(r){if(r.target!==r.currentTarget)return;r.preventDefault();const l=r[i]-e.getBoundingClientRect()[o],u=function(r){if(0===r.buttons)return f();const u=r[i]-n.getBoundingClientRect()[o]-l,p=n.getBoundingClientRect()[a]-r[i]+l-e[s];if(u{e.removeEventListener("mousedown",l),e.removeEventListener("dblclick",u)}},A=[r,b,c,d,h],t[22]=r,t[23]=b,t[24]=c,t[25]=d,t[26]=h,t[27]=N,t[28]=A):(N=t[27],A=t[28]),(0,dd.useEffect)(N,A),t[29]!==g?(D={dragBarRef:x,hiddenElement:g,firstRef:w,setHiddenElement:v,secondRef:E},t[29]=g,t[30]=D):D=t[30],D}var Fy="hide-first",Py="hide-second",Ry=(0,dd.forwardRef)((e,t)=>{const n=(0,yd.c)(6);let r,i;return n[0]!==e.className?(r=yy("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,kv.jsx)("button",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Ry.displayName="UnStyledButton";var jy=(0,dd.forwardRef)((e,t)=>{const n=(0,yd.c)(7);let r,i;return n[0]!==e.className||n[1]!==e.state?(r=yy("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2],n[3]!==e||n[4]!==t||n[5]!==r?(i=(0,kv.jsx)("button",{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});jy.displayName="Button";var Vy,By=(0,dd.forwardRef)((e,t)=>{const n=(0,yd.c)(6);let r,i;return n[0]!==e.className?(r=yy("graphiql-button-group",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,kv.jsx)("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});function zy(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function $y(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Uy(...e){return t=>{let n=!1;const r=e.map(e=>{const r=$y(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{const t=n.map(e=>dd.createContext(e));return function(n){const r=(null==n?void 0:n[e])||t;return dd.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const i=dd.createContext(r),o=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...s}=t,l=(null==r||null===(n=r[e])||void 0===n?void 0:n[o])||i,u=dd.useMemo(()=>s,Object.values(s));return(0,kv.jsx)(l.Provider,{value:u,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var s;const l=(null==a||null===(s=a[e])||void 0===s?void 0:s[o])||i,u=dd.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},qy(r,...t)]}function qy(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return dd.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}By.displayName="ButtonGroup","undefined"==typeof window||!window.document||window.document.createElement;var Gy=(null===(Vy=globalThis)||void 0===Vy?void 0:Vy.document)?dd.useLayoutEffect:()=>{},Ky=dd[" useId ".trim().toString()]||(()=>{}),Yy=0;function Qy(e){const[t,n]=dd.useState(Ky());return Gy(()=>{e||n(e=>null!=e?e:String(Yy++))},[e]),e||(t?`radix-${t}`:"")}var Xy=dd[" useInsertionEffect ".trim().toString()]||Gy;function Jy({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=function({defaultProp:e,onChange:t}){const[n,r]=dd.useState(e),i=dd.useRef(n),o=dd.useRef(t);return Xy(()=>{o.current=t},[t]),dd.useEffect(()=>{var e;i.current!==n&&(null===(e=o.current)||void 0===e||e.call(o,n),i.current=n)},[n,i]),[n,r,o]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:i;{const t=dd.useRef(void 0!==e);dd.useEffect(()=>{t.current,t.current=s},[s,r])}return[l,dd.useCallback(t=>{if(s){const r=function(e){return"function"==typeof e}(t)?t(e):t;var n;r!==e&&(null===(n=a.current)||void 0===n||n.call(a,r))}else o(t)},[s,e,o,a])]}function Zy(e){const t=eb(e),n=dd.forwardRef((e,n)=>{const{children:r,...i}=e,o=dd.Children.toArray(r),a=o.find(nb);if(a){const e=a.props.children,r=o.map(t=>t===a?dd.Children.count(e)>1?dd.Children.only(null):dd.isValidElement(e)?e.props.children:null:t);return(0,kv.jsx)(t,{...i,ref:n,children:dd.isValidElement(e)?dd.cloneElement(e,void 0,r):null})}return(0,kv.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function eb(e){const t=dd.forwardRef((e,t)=>{const{children:n,...r}=e;if(dd.isValidElement(n)){const e=function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}(n),i=function(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{const t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==dd.Fragment&&(i.ref=t?Uy(t,e):e),dd.cloneElement(n,i)}return dd.Children.count(n)>1?dd.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tb=Symbol("radix.slottable");function nb(e){return dd.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tb}var rb=c(v(),1),ib=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=Zy(`Primitive.${t}`),r=dd.forwardRef((e,r)=>{const{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,kv.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ob(e,t){e&&rb.flushSync(()=>e.dispatchEvent(t))}function ab(e){const t=dd.useRef(e);return dd.useEffect(()=>{t.current=e}),dd.useMemo(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}var sb,lb="dismissableLayer.update",ub=dd.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cb=dd.forwardRef((e,t)=>{var n,r;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=dd.useContext(ub),[f,p]=dd.useState(null),h=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null===(r=globalThis)||void 0===r?void 0:r.document,[,m]=dd.useState({}),g=Hy(t,e=>p(e)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,k=function(e,t=(()=>{var e;return null===(e=globalThis)||void 0===e?void 0:e.document})()){const n=ab(e),r=dd.useRef(!1),i=dd.useRef(()=>{});return dd.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){fb("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));E&&!n&&(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},h),C=function(e,t=(()=>{var e;return null===(e=globalThis)||void 0===e?void 0:e.document})()){const n=ab(e),r=dd.useRef(!1);return dd.useEffect(()=>{const e=e=>{e.target&&!r.current&&fb("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},h);return function(e,t=(()=>{var e;return null===(e=globalThis)||void 0===e?void 0:e.document})()){const n=ab(e);dd.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{w===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},h),dd.useEffect(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(sb=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),db(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=sb)}},[f,h,i,d]),dd.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),db())},[f,d]),dd.useEffect(()=>{const e=()=>m({});return document.addEventListener(lb,e),()=>document.removeEventListener(lb,e)},[]),(0,kv.jsx)(ib.div,{...c,ref:g,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:zy(e.onFocusCapture,C.onFocusCapture),onBlurCapture:zy(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:zy(e.onPointerDownCapture,k.onPointerDownCapture)})});function db(){const e=new CustomEvent(lb);document.dispatchEvent(e)}function fb(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ob(i,o):i.dispatchEvent(o)}cb.displayName="DismissableLayer",dd.forwardRef((e,t)=>{const n=dd.useContext(ub),r=dd.useRef(null),i=Hy(t,r);return dd.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,kv.jsx)(ib.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var pb="focusScope.autoFocusOnMount",hb="focusScope.autoFocusOnUnmount",mb={bubbles:!1,cancelable:!0},gb=dd.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=dd.useState(null),u=ab(i),c=ab(o),d=dd.useRef(null),f=Hy(t,e=>l(e)),p=dd.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;dd.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:wb(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||wb(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&wb(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,p.paused]),dd.useEffect(()=>{if(s){xb.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(pb,mb);s.addEventListener(pb,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(wb(r,{select:t}),document.activeElement!==n)return}(vb(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&wb(s))}return()=>{s.removeEventListener(pb,u),setTimeout(()=>{const t=new CustomEvent(hb,mb);s.addEventListener(hb,c),s.dispatchEvent(t),t.defaultPrevented||wb(null!=e?e:document.body,{select:!0}),s.removeEventListener(hb,c),xb.remove(p)},0)}}},[s,u,c,p]);const h=dd.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){const t=e.currentTarget,[r,o]=function(e){const t=vb(e);return[yb(t,e),yb(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&wb(o,{select:!0})):(e.preventDefault(),n&&wb(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,kv.jsx)(ib.div,{tabIndex:-1,...a,ref:f,onKeyDown:h})});function vb(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yb(e,t){for(const n of e)if(!bb(n,{upTo:t}))return n}function bb(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function wb(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}gb.displayName="FocusScope";var xb=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Eb(e,t),e.unshift(t)},remove(t){var n;e=Eb(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Eb(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var kb=dd.forwardRef((e,t)=>{var n;const{container:r,...i}=e,[o,a]=dd.useState(!1);Gy(()=>a(!0),[]);const s=r||o&&(null===(n=globalThis)||void 0===n||null===(n=n.document)||void 0===n?void 0:n.body);return s?rb.createPortal((0,kv.jsx)(ib.div,{...i,ref:t}),s):null});kb.displayName="Portal";var Cb=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=dd.useState(),r=dd.useRef(null),i=dd.useRef(e),o=dd.useRef("none"),[a,s]=(l=e?"mounted":"unmounted",u={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},dd.useReducer((e,t)=>{const n=u[e][t];return null!=n?n:e},l));var l,u;return dd.useEffect(()=>{const e=Sb(r.current);o.current="mounted"===a?e:"none"},[a]),Gy(()=>{const t=r.current,n=i.current;if(n!==e){const r=o.current,a=Sb(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,s]),Gy(()=>{if(t){var e;let n;const a=null!==(e=t.ownerDocument.defaultView)&&void 0!==e?e:window,l=e=>{const o=Sb(r.current).includes(CSS.escape(e.animationName));if(e.target===t&&o&&(s("ANIMATION_END"),!i.current)){const e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=a.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},u=e=>{e.target===t&&(o.current=Sb(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{a.clearTimeout(n),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:dd.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):dd.Children.only(n),o=Hy(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}(i));return"function"==typeof n||r.isPresent?dd.cloneElement(i,{ref:o}):null};function Sb(e){return(null==e?void 0:e.animationName)||"none"}Cb.displayName="Presence";var Tb=0;function _b(){dd.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Nb()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Nb()),Tb++,()=>{1===Tb&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Tb--}},[])}function Nb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ab=function(){return Ab=Object.assign||function(e){for(var t,n=1,r=arguments.length;n