2021-08-30 08:13:49 -07:00
( ( ) => { var eV = Object . create ; var Uy = Object . defineProperty ; var tV = Object . getOwnPropertyDescriptor ; var rV = Object . getOwnPropertyNames ; var nV = Object . getPrototypeOf , iV = Object . prototype . hasOwnProperty ; var aV = e => Uy ( e , "__esModule" , { value : ! 0 } ) ; var PC = e => { if ( typeof require != "undefined" ) return require ( e ) ; throw new Error ( 'Dynamic require of "' + e + '" is not supported' ) } ; var U = ( e , t ) => ( ) => ( t || e ( ( t = { exports : { } } ) . exports , t ) , t . exports ) ; var oV = ( e , t , r ) => { if ( t && typeof t == "object" || typeof t == "function" ) for ( let n of rV ( t ) ) ! iV . call ( e , n ) && n !== "default" && Uy ( e , n , { get : ( ) => t [ n ] , enumerable : ! ( r = tV ( t , n ) ) || r . enumerable } ) ; return e } , ze = e => oV ( aV ( Uy ( e != null ? eV ( nV ( e ) ) : { } , "default" , e && e . _ _esModule && "default" in e ? { get : ( ) => e . default , enumerable : ! 0 } : { value : e , enumerable : ! 0 } ) ) , e ) ; var Gy = U ( ( qee , MC ) => { "use strict" ; var jC = Object . getOwnPropertySymbols , uV = Object . prototype . hasOwnProperty , sV = Object . prototype . propertyIsEnumerable ; function lV ( e ) { if ( e == null ) throw new TypeError ( "Object.assign cannot be called with null or undefined" ) ; return Object ( e ) } function cV ( ) { try { if ( ! Object . assign ) return ! 1 ; var e = new String ( "abc" ) ; if ( e [ 5 ] = "de" , Object . getOwnPropertyNames ( e ) [ 0 ] === "5" ) return ! 1 ; for ( var t = { } , r = 0 ; r < 10 ; r ++ ) t [ "_" + String . fromCharCode ( r ) ] = r ; var n = Object . getOwnPropertyNames ( t ) . map ( function ( o ) { return t [ o ] } ) ; if ( n . join ( "" ) !== "0123456789" ) return ! 1 ; var a = { } ; return "abcdefghijklmnopqrst" . split ( "" ) . forEach ( function ( o ) { a [ o ] = o } ) , Object . keys ( Object . assign ( { } , a ) ) . join ( "" ) === "abcdefghijklmnopqrst" } catch ( o ) { return ! 1 } } MC . exports = cV ( ) ? Object . assign : function ( e , t ) { for ( var r , n = lV ( e ) , a , o = 1 ; o < arguments . length ; o ++ ) { r = Object ( arguments [ o ] ) ; for ( var s in r ) uV . call ( r , s ) && ( n [ s ] = r [ s ] ) ; if ( jC ) { a = jC ( r ) ; for ( var c = 0 ; c < a . length ; c ++ ) sV . call ( r , a [ c ] ) && ( n [ a [ c ] ] = r [ a [ c ] ] ) } } return n } } ) ; var e2 = U ( dt => { "use strict" ; var Qy = Gy ( ) , js = 60103 , qC = 60106 ; dt . Fragment = 60107 ; dt . StrictMode = 60108 ; dt . Profiler = 60114 ; var BC = 60109 , VC = 60110 , UC = 60112 ; dt . Suspense = 60113 ; var GC = 60115 , QC = 60116 ; typeof Symbol == "function" && Symbol . for && ( di = Symbol . for , js = di ( "react.element" ) , qC = di ( "react.portal" ) , dt . Fragment = di ( "react.fragment" ) , dt . StrictMode = di ( "react.strict_mode" ) , dt . Profiler = di ( "react.profiler" ) , BC = di ( "react.provider" ) , VC = di ( "react.context" ) , UC = di ( "react.forward_ref" ) , dt . Suspense = di ( "react.suspense" ) , GC = di ( "react.memo" ) , QC = di ( "react.lazy" ) ) ; var di , KC = typeof Symbol == "function" && Symbol . iterator ; function fV ( e ) { return e === null || typeof e != "object" ? null : ( e = KC && e [ KC ] || e [ "@@iterator" ] , typeof e == "function" ? e : null ) } function tf ( e ) { for ( var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e , r = 1 ; r < arguments . length ; r ++ ) t += "&args[]=" + encodeURIComponent ( arguments [ r ] ) ; return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." } var HC = { isMounted : function ( ) { return ! 1 } , enqueueForceUpdate : function ( ) { } , enqueueReplaceState : function ( ) { } , enqueueSetState : function ( ) { } } , zC = { } ; function Ms ( e , t , r ) { this . props = e , this . context = t , this . refs = zC , this . updater = r || HC } Ms . prototype . isReactComponent = { } ; Ms . prototype . setState = function ( e , t ) { if ( typeof e != "object" && typeof e != "function" && e != null ) throw Error ( tf ( 85 ) ) ; this . updater . enqueueSetState ( this , e , t , "setState" ) } ; Ms . prototype . forceUpdate = function ( e ) { this . updater . enqueueForceUpdate ( this , e , "forceUpdate" ) } ; function WC ( ) { } WC . prototype = Ms . prototype ; function Ky ( e , t , r ) { this . props = e , this . context = t , this . refs = zC , this . updater = r || HC } var Hy = Ky . prototype = new WC ; Hy . constructor = Ky ; Qy ( Hy , Ms . prototype ) ; Hy . isPureReactComponent = ! 0 ; var zy = { current : null } , YC = Object . prototype . hasOwnProperty , JC = { key : ! 0 , ref : ! 0 , _ _self : ! 0 , _ _source : ! 0 } ; function XC ( e , t , r ) { var n , a = { } , o = null , s = null ; if ( t != null ) for ( n in t . ref !== void 0 && ( s = t . ref ) , t . key !== void 0 && ( o = "" + t . key ) , t ) YC . call ( t , n ) && ! JC . hasOwnProperty ( n ) && ( a [ n ] = t [ n ] ) ; var c = arguments . length - 2 ; if ( c === 1 ) a . children = r ; else if ( 1 < c ) { for ( var d = Array ( c ) , h = 0 ; h < c ; h ++ ) d [ h ] = arguments [ h + 2 ] ; a . children = d } if ( e && e . defaultProps ) for ( n in c = e . defaultProps , c ) a [ n ] === void 0 && ( a [ n ] = c [ n ] ) ; return { $$typeof : js , type : e , key : o , ref : s , props : a , _owner : zy . current } } function dV ( e , t ) { return { $$typeof : js , type : e . type , key : t , ref : e . ref , props : e . props , _owner : e . _owner } } function Wy ( e ) { return
` +y0+e}var b0=!1;function Dh(e,t){if(!e||b0)return"";b0=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var n=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){n=d}e.call(t.prototype)}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var a=d.stack.split( `
2021-07-31 23:49:48 -07:00
` ),o=n.stack.split( `
` ),s=a.length-1,c=o.length-1;1<=s&&0<=c&&a[s]!==o[c];)c--;for(;1<=s&&0<=c;s--,c--)if(a[s]!==o[c]){if(s!==1||c!==1)do if(s--,c--,0>c||a[s]!==o[c])return `
2021-08-30 08:13:49 -07:00
` +a[s].replace(" at new "," at ");while(1<=s&&0<=c);break}}}finally{b0=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?df(e):""}function _V(e){switch(e.tag){case 5:return df(e.type);case 16:return df("Lazy");case 13:return df("Suspense");case 19:return df("SuspenseList");case 0:case 2:case 15:return e=Dh(e.type,!1),e;case 11:return e=Dh(e.type.render,!1),e;case 22:return e=Dh(e.type._render,!1),e;case 1:return e=Dh(e.type,!0),e;default:return""}}function Us(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yo:return"Fragment";case ku:return"Portal";case lf:return"Profiler";case c0:return"StrictMode";case cf:return"Suspense";case _h:return"SuspenseList"}if(typeof e=="object")switch(e. $ $ typeof){case d0:return(e.displayName||"Context")+".Consumer";case f0:return(e._context.displayName||"Context")+".Provider";case Th:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Sh:return Us(e.type);case h0:return Us(e._render);case p0:t=e._payload,e=e._init;try{return Us(e(t))}catch(r){}}return null}function bo(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function g2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function SV(e){var t=g2(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kh(e){e._valueTracker||(e._valueTracker=SV(e))}function m2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=g2(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ch(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function E0(e,t){var r=t.checked;return Yt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function y2(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=bo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function b2(e,t){t=t.checked,t!=null&&l0(e,"checked",t,!1)}function T0(e,t){b2(e,t);var r=bo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_0(e,t.type,r):t.hasOwnProperty("defaultValue")&&_0(e,t.type,bo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function E2(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function _0(e,t,r){(t!=="number"||Ch(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function DV(e){var t="";return Eh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function S0(e,t){return e=Yt({children:void 0},t),(t=DV(t.children))&&(e.children=t),e}function Gs(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t[" $ "+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty(" $ "+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defa
2021-07-31 23:49:48 -07:00
Error generating stack : ` +o.message+ `
2021-08-30 08:13:49 -07:00
` +o.stack}return{value:e,source:t,stack:a}}function jb(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var GU=typeof WeakMap=="function"?WeakMap:Map;function Ow(e,t,r){r=No(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){mv||(mv=!0,zb=n),jb(e,t)},r}function ww(e,t,r){r=No(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return jb(e,t),n(a)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(da===null?da=new Set([this]):da.add(this),jb(e,t));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}var QU=typeof WeakSet=="function"?WeakSet:Set;function Nw(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Po(e,r)}else t.current=null}function KU(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:Vi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&ub(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(de(163))}function HU(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)==3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var a=e;n=a.next,a=a.tag,(a&4)!=0&&(a&1)!=0&&(Qw(r,e),eG(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Vi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&KO(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}KO(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&CO(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&G2(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(de(163))}function Aw(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var a=r.memoizedProps.style;a=a!=null&&a.hasOwnProperty("display")?a.display:null,n.style.display=C2("display",a)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function Lw(e,t){if(Au&&typeof Au.onCommitFiberUnmount=="function")try{Au.onCommitFiberUnmount(cb,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,a=n.destroy;if(n=n.tag,a!==void 0)if((n&4)!=0)Qw(t,r);else{n=t;try{a()}catch(o){Po(n,o)}}r=r.next}while(r!==e)}break;case 1:if(Nw(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Po(t,o)}break;case 5:Nw(t);break;case 4:Fw(e,t)}}function xw(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Iw(e){return e.tag===5||e.tag===3||e.tag===4}function Rw(e){e:{for(var t=e.return;t!==null;){if(Iw(t))break e;t=t.return}throw Error(de(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(de(161))}r.flags&16&&(pf(t,""),r.flags&
2021-07-31 23:49:48 -07:00
2021-08-30 08:13:49 -07:00
Add a < Suspense fallback = ... > component higher in the tree to provide a loading indicator or placeholder to display . ` )}Hr!==5&&(Hr=2),d=Pb(d,c),b=s;do{switch(b.tag){case 3:o=d,b.flags|=4096,t&=-t,b.lanes|=t;var w=Ow(b,o,t);QO(b,w);break e;case 1:o=d;var D=b.type,F=b.stateNode;if((b.flags&64)==0&&(typeof D.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(da===null||!da.has(F)))){b.flags|=4096,t&=-t,b.lanes|=t;var P=ww(b,o,t);QO(b,P);break e}}b=b.return}while(b!==null)}Gw(r)}catch(B){t=B,Or===r&&r!==null&&(Or=r=r.return);continue}break}while(1)}function Vw(){var e=vv.current;return vv.current=pv,e===null?pv:e}function Xf(e,t){var r=Ke;Ke|=16;var n=Vw();Tn===e&&an===t||hl(e,t);do try{JU();break}catch(a){Bw(e,a)}while(1);if(gb(),Ke=r,vv.current=n,Or!==null)throw Error(de(261));return Tn=null,an=0,Hr}function JU(){for(;Or!==null;)Uw(Or)}function XU(){for(;Or!==null&&!xU();)Uw(Or)}function Uw(e){var t=Hw(e.alternate,e,Fu);e.memoizedProps=e.pendingProps,t===null?Gw(e):Or=t,Vb.current=null}function Gw(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)==0){if(r=VU(r,t,Fu),r!==null){Or=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(Fu&1073741824)!=0||(r.mode&4)==0){for(var n=0,a=r.child;a!==null;)n|=a.lanes|a.childLanes,a=a.sibling;r.childLanes=n}e!==null&&(e.flags&2048)==0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(r=UU(t),r!==null){r.flags&=2047,Or=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){Or=t;return}Or=t=e}while(t!==null);Hr===0&&(Hr=5)}function Pu(e){var t=al();return Lu(99,ZU.bind(null,e,t)),null}function ZU(e,t){do Fo();while(zf!==null);if((Ke&48)!=0)throw Error(de(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(de(177));e.callbackNode=null;var n=r.lanes|r.childLanes,a=n,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,c=e.expirationTimes;0<o;){var d=31-So(o),h=1<<d;a[d]=0,s[d]=-1,c[d]=-1,o&=~h}if(Ka!==null&&(n&24)==0&&Ka.has(e)&&Ka.delete(e),e===Tn&&(Or=Tn=null,an=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(a=Ke,Ke|=32,Vb.current=null,ib=Fh,s=vO(),eb(s)){if("selectionStart"in s)c={start:s.selectionStart,end:s.selectionEnd};else e:if(c=(c=s.ownerDocument)&&c.defaultView||window,(h=c.getSelection&&c.getSelection())&&h.rangeCount!==0){c=h.anchorNode,o=h.anchorOffset,d=h.focusNode,h=h.focusOffset;try{c.nodeType,d.nodeType}catch(B){c=null;break e}var m=0,T=-1,b=-1,C=0,L=0,S=s,y=null;t:for(;;){for(var _;S!==c||o!==0&&S.nodeType!==3||(T=m+o),S!==d||h!==0&&S.nodeType!==3||(b=m+h),S.nodeType===3&&(m+=S.nodeValue.length),(_=S.firstChild)!==null;)y=S,S=_;for(;;){if(S===s)break t;if(y===c&&++C===o&&(T=m),y===d&&++L===h&&(b=m),(_=S.nextSibling)!==null)break;S=y,y=S.parentNode}S=_}c=T===-1||b===-1?null:{start:T,end:b}}else c=null;c=c||{start:0,end:0}}else c=null;ab={focusedElem:s,selectionRange:c},Fh=!1,Jf=null,Ev=!1,Le=n;do try{ $ U()}catch(B){if(Le===null)throw Error(de(330));Po(Le,B),Le=Le.nextEffect}while(Le!==null);Jf=null,Le=n;do try{for(s=e;Le!==null;){var g=Le.flags;if(g&16&&pf(Le.stateNode,""),g&128){var k=Le.alternate;if(k!==null){var N=k.ref;N!==null&&(typeof N=="function"?N(null):N.current=null)}}switch(g&1038){case 2:Rw(Le),Le.flags&=-3;break;case 6:Rw(Le),Le.flags&=-3,Bb(Le.alternate,Le);break;case 1024:Le.flags&=-1025;break;case 1028:Le.flags&=-1025,Bb(Le.alternate,Le);break;case 4:Bb(Le.alternate,Le);break;case 8:c=Le,Fw(s,c);var w=c.alternate;xw(c),w!==null&&xw(w)}Le=Le.nextEffect}}catch(B){if(Le===null)throw Error(de(330));Po(Le,B),Le=Le.nextEffect}while(Le!==null);if(N=ab,k=vO(),g=N.focusedElem,s=N.selectionRange,k!==g&&g&&g.ownerDo
` ),m=n.split(/ \r \n |[ \n \r ]/g),T=m[a];if(T.length>120){for(var b=Math.floor(d/80),C=d%80,L=[],S=0;S<T.length;S+=80)L.push(T.slice(S,S+80));return h+eN([["".concat(s),L[0]]].concat(L.slice(1,b+1).map(function(y){return["",y]}),[[" ",Nv(C-1)+"^"],["",L[b+1]]]))}return h+eN([["".concat(s-1),m[a-1]],["".concat(s),T],["",Nv(d-1)+"^"],["".concat(s+1),m[a+1]]])}function eN(e){var t=e.filter(function(n){var a=n[0],o=n[1];return o!==void 0}),r=Math.max.apply(Math,t.map(function(n){var a=n[0];return a.length}));return t.map(function(n){var a=n[0],o=n[1];return _G(r,a)+(o?" | "+o:" |")}).join( `
` )}function Nv(e){return Array(e+1).join(" ")}function _G(e,t){return Nv(e-t.length)+t}});var Ve=U(id=>{"use strict";function Lv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lv=function(r){return typeof r}:Lv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lv(e)}Object.defineProperty(id,"__esModule",{value:!0});id.printError=oN;id.GraphQLError=void 0;var SG=kG(pa()),DG=ha(),tN=wv(),rN=cE();function kG(e){return e&&e.__esModule?e:{default:e}}function CG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function OG(e,t,r){return t&&nN(e.prototype,t),r&&nN(e,r),e}function wG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rd(e,t)}function NG(e){var t=aN();return function(){var n=nd(e),a;if(t){var o=nd(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return iN(this,a)}}function iN(e,t){return t&&(Lv(t)==="object"||typeof t=="function")?t:td(e)}function td(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fE(e){var t=typeof Map=="function"?new Map:void 0;return fE=function(n){if(n===null||!AG(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return xv(n,arguments,nd(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),rd(a,n)},fE(e)}function xv(e,t,r){return aN()?xv=Reflect.construct:xv=function(a,o,s){var c=[null];c.push.apply(c,o);var d=Function.bind.apply(a,c),h=new d;return s&&rd(h,s.prototype),h},xv.apply(null,arguments)}function aN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function AG(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function rd(e,t){return rd=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},rd(e,t)}function nd(e){return nd=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},nd(e)}var LG=function(e){wG(r,e);var t=NG(r);function r(n,a,o,s,c,d,h){var m,T,b,C,L;CG(this,r),L=t.call(this,n);var S=Array.isArray(a)?a.length!==0?a:void 0:a?[a]:void 0,y=o;if(!y&&S){var _;y=(_=S[0].loc)===null||_===void 0?void 0:_.source}var g=s;!g&&S&&(g=S.reduce(function(D,F){return F.loc&&D.push(F.loc.start),D},[])),g&&g.length===0&&(g=void 0);var k;s&&o?k=s.map(function(D){return(0,tN.getLocation)(o,D)}):S&&(k=S.reduce(function(D,F){return F.loc&&D.push((0,tN.getLocation)(F.loc.source,F.loc.start)),D},[]));var N=h;if(N==null&&d!=null){var w=d.extensions;(0,SG.default)(w)&&(N=w)}return Object.defineProperties(td(L),{name:{value:"GraphQLError"},message:{value:n,enumerable:!0,writable:!0},locations:{value:(m=k)!==null&&m!==void 0?m:void 0,enumerable:k!=null},path:{value:c!=null?c:void 0,enumerable:c!=null},nodes:{value:S!=null?S:void 0},source:{value:(T=y)!==null&&T!==void 0?T:void 0},positions:{value:(b=g)!==null&&b!==void 0?b:void 0},originalError:{value:d},extensions:{value:(C=N)!==null&&C!==void 0?C:void 0,enumerable:N!=null}}),d!=null&&d.stack?(Object.defineProperty(td(L),"stack",{value:d.stack,writable:!0,configurable:!0}),iN(L)):(Error.captureStackTrace?Error.captureStackTrace(td(L),r):Object.defineProperty(td(L),"stack",{value:Error().stack,writable:!0,configurable:!0}),L)}return OG(r,[{key:"toString",value:function(){return oN(this)}},{key:DG.SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),r}(fE(
2021-07-31 23:49:48 -07:00
2021-08-30 08:13:49 -07:00
` +(0,rN.printLocation)(a.loc))}else if(e.source&&e.locations)for(var o=0,s=e.locations;o<s.length;o++){var c=s[o];t+= `
2021-07-31 23:49:48 -07:00
2021-08-30 08:13:49 -07:00
` +(0,rN.printSourceLocation)(e.source,c)}return t}});var Iv=U(dE=>{"use strict";Object.defineProperty(dE,"__esModule",{value:!0});dE.syntaxError=IG;var xG=Ve();function IG(e,t,r){return new xG.GraphQLError("Syntax Error: ".concat(r),void 0,e,[t])}});var Pt=U(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});Rv.Kind=void 0;var RG=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});Rv.Kind=RG});var zr=U(pE=>{"use strict";Object.defineProperty(pE,"__esModule",{value:!0});pE.default=FG;function FG(e,t){var r=Boolean(e);if(!r)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var hE=U(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});Fv.default=void 0;var PG=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,jG=PG;Fv.default=jG});var Pv=U(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.default=qG;var MG=sN(zr()),uN=sN(hE());function sN(e){return e&&e.__esModule?e:{default:e}}function qG(e){var t=e.prototype.toJSON;typeof t=="function"||(0,MG.default)(0),e.prototype.inspect=t,uN.default&&(e.prototype[uN.default]=t)}});var ml=U(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.isNode=VG;ju.Token=ju.Location=void 0;var lN=BG(Pv());function BG(e){return e&&e.__esModule?e:{default:e}}var cN=function(){function e(r,n,a){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=a}var t=e.prototype;return t.toJSON=function(){return{start:this.start,end:this.end}},e}();ju.Location=cN;(0,lN.default)(cN);var fN=function(){function e(r,n,a,o,s,c,d){this.kind=r,this.start=n,this.end=a,this.line=o,this.column=s,this.value=d,this.prev=c,this.next=null}var t=e.prototype;return t.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();ju.Token=fN;(0,lN.default)(fN);function VG(e){return e!=null&&typeof e.kind=="string"}});var yl=U(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});jv.TokenKind=void 0;var UG=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:" $ ",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});jv.TokenKind=UG});var _t=U(gE=>{"use strict";Object.defineProperty(gE,"__esModule",{value:!0});gE.default=HG;var GG=QG(hE());function QG(e){return e&&e.__esModule?e:{default:e}}function Mv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mv=function(r){return typeof r}:Mv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Sym
` )}function vN(e){for(var t=0;t<e.length;++t)if(e[t]!==" "&&e[t]!==" ")return!1;return!0}function gN(e){for(var t,r=!0,n=!0,a=0,o=null,s=0;s<e.length;++s)switch(e.charCodeAt(s)){case 13:e.charCodeAt(s+1)===10&&++s;case 10:r=!1,n=!0,a=0;break;case 9:case 32:++a;break;default:n&&!r&&(o===null||a<o)&&(o=a),n=!1}return(t=o)!==null&&t!==void 0?t:0}function u5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=e.indexOf( `
2021-07-31 23:49:48 -07:00
` )===-1,a=e[0]===" "||e[0]===" ",o=e[e.length-1]==='"',s=e[e.length-1]===" \\ ",c=!n||o||s||r,d="";return c&&!(n&&a)&&(d+= `
` +t),d+=t?e.replace(/ \n /g, `
` +t):e,c&&(d+= `
2021-08-30 08:13:49 -07:00
` ),'"""'+d.replace(/"""/g,' \\ """')+'"""'}});var Qv=U(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.isPunctuatorTokenKind=c5;sd.Lexer=void 0;var va=Iv(),pr=ml(),nt=yl(),s5=El(),l5=function(){function e(r){var n=new pr.Token(nt.TokenKind.SOF,0,0,0,0,null);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){this.lastToken=this.token;var n=this.token=this.lookahead();return n},t.lookahead=function(){var n=this.token;if(n.kind!==nt.TokenKind.EOF)do{var a;n=(a=n.next)!==null&&a!==void 0?a:n.next=f5(this,n)}while(n.kind===nt.TokenKind.COMMENT);return n},e}();sd.Lexer=l5;function c5(e){return e===nt.TokenKind.BANG||e===nt.TokenKind.DOLLAR||e===nt.TokenKind.AMP||e===nt.TokenKind.PAREN_L||e===nt.TokenKind.PAREN_R||e===nt.TokenKind.SPREAD||e===nt.TokenKind.COLON||e===nt.TokenKind.EQUALS||e===nt.TokenKind.AT||e===nt.TokenKind.BRACKET_L||e===nt.TokenKind.BRACKET_R||e===nt.TokenKind.BRACE_L||e===nt.TokenKind.PIPE||e===nt.TokenKind.BRACE_R}function Mu(e){return isNaN(e)?nt.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'" \\ u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function f5(e,t){for(var r=e.source,n=r.body,a=n.length,o=t.end;o<a;){var s=n.charCodeAt(o),c=e.line,d=1+o-e.lineStart;switch(s){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:n.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new pr.Token(nt.TokenKind.BANG,o,o+1,c,d,t);case 35:return p5(r,o,c,d,t);case 36:return new pr.Token(nt.TokenKind.DOLLAR,o,o+1,c,d,t);case 38:return new pr.Token(nt.TokenKind.AMP,o,o+1,c,d,t);case 40:return new pr.Token(nt.TokenKind.PAREN_L,o,o+1,c,d,t);case 41:return new pr.Token(nt.TokenKind.PAREN_R,o,o+1,c,d,t);case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return new pr.Token(nt.TokenKind.SPREAD,o,o+3,c,d,t);break;case 58:return new pr.Token(nt.TokenKind.COLON,o,o+1,c,d,t);case 61:return new pr.Token(nt.TokenKind.EQUALS,o,o+1,c,d,t);case 64:return new pr.Token(nt.TokenKind.AT,o,o+1,c,d,t);case 91:return new pr.Token(nt.TokenKind.BRACKET_L,o,o+1,c,d,t);case 93:return new pr.Token(nt.TokenKind.BRACKET_R,o,o+1,c,d,t);case 123:return new pr.Token(nt.TokenKind.BRACE_L,o,o+1,c,d,t);case 124:return new pr.Token(nt.TokenKind.PIPE,o,o+1,c,d,t);case 125:return new pr.Token(nt.TokenKind.BRACE_R,o,o+1,c,d,t);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?g5(r,o,c,d,t,e):v5(r,o,c,d,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return h5(r,o,s,c,d,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return y5(r,o,c,d,t)}throw(0,va.syntaxError)(r,o,d5(s))}var h=e.line,m=1+o-e.lineStart;return new pr.Token(nt.TokenKind.EOF,a,a,h,m,t)}function d5(e){return e<32&&e!==9&&e!==10&&e!==13?"Cannot contain the invalid character ".concat(Mu(e),"."):e===39? ` Unexpected single quote character ( ' ) , did you mean to use a double quote ( ")?`:" Cannot parse the unexpected character ".concat(Mu(e)," . ")}function p5(e,t,r,n,a){var o=e.body,s,c=t;do s=o.charCodeAt(++c);while(!isNaN(s)&&(s>31||s===9));return new pr.Token(nt.TokenKind.COMMENT,t,c,r,n,a,o.slice(t+1,c))}function h5(e,t,r,n,a,o){var s=e.body,c=r,d=t,h=!1;if(c===45&&(c=s.charCodeAt(++d)),c===48){if(c=s.charCodeAt(++d),c>=48&&c<=57)throw(0,va.syntaxError)(e,d," Invalid number , unexpected digit after 0 : ".concat(Mu(c)," . " ) ) } else d = EE ( e , d , c ) , c = s . charCodeAt ( d ) ; if ( c === 46 && ( h = ! 0 , c = s . charCodeAt ( ++ d ) , d = EE ( e , d , c ) , c = s . charCodeAt ( d ) ) , ( c === 69 || c === 101 ) && ( h = ! 0 , c = s . charCodeAt ( ++ d ) , ( c === 43 || c === 45 ) && ( c = s . charCodeAt ( ++ d ) ) , d = EE ( e , d , c ) , c = s . charCodeAt ( d ) ) , c === 46 || b5 ( c ) ) throw ( 0 , va . syntax
` ;break;case 114:h+=" \r ";break;case 116:h+=" ";break;case 117:{var m=m5(o.charCodeAt(s+1),o.charCodeAt(s+2),o.charCodeAt(s+3),o.charCodeAt(s+4));if(m<0){var T=o.slice(s+1,s+5);throw(0,va.syntaxError)(e,s,"Invalid character escape sequence: \\ u".concat(T,"."))}h+=String.fromCharCode(m),s+=4;break}default:throw(0,va.syntaxError)(e,s,"Invalid character escape sequence: \\ ".concat(String.fromCharCode(d),"."))}++s,c=s}}throw(0,va.syntaxError)(e,s,"Unterminated string.")}function g5(e,t,r,n,a,o){for(var s=e.body,c=t+3,d=c,h=0,m="";c<s.length&&!isNaN(h=s.charCodeAt(c));){if(h===34&&s.charCodeAt(c+1)===34&&s.charCodeAt(c+2)===34)return m+=s.slice(d,c),new pr.Token(nt.TokenKind.BLOCK_STRING,t,c+3,r,n,a,(0,s5.dedentBlockStringValue)(m));if(h<32&&h!==9&&h!==10&&h!==13)throw(0,va.syntaxError)(e,c,"Invalid character within String: ".concat(Mu(h),"."));h===10?(++c,++o.line,o.lineStart=c):h===13?(s.charCodeAt(c+1)===10?c+=2:++c,++o.line,o.lineStart=c):h===92&&s.charCodeAt(c+1)===34&&s.charCodeAt(c+2)===34&&s.charCodeAt(c+3)===34?(m+=s.slice(d,c)+'"""',c+=4,d=c):++c}throw(0,va.syntaxError)(e,c,"Unterminated string.")}function m5(e,t,r,n){return Gv(e)<<12|Gv(t)<<8|Gv(r)<<4|Gv(n)}function Gv(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function y5(e,t,r,n,a){for(var o=e.body,s=o.length,c=t+1,d=0;c!==s&&!isNaN(d=o.charCodeAt(c))&&(d===95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122);)++c;return new pr.Token(nt.TokenKind.NAME,t,c,r,n,a,o.slice(t,c))}function b5(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}});var Tl=U(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.parse=_5;qu.parseValue=S5;qu.parseType=D5;qu.Parser=void 0;var TE=Iv(),Ge=Pt(),E5=ml(),Te=yl(),mN=Vv(),T5=bl(),yN=Qv();function _5(e,t){var r=new Kv(e,t);return r.parseDocument()}function S5(e,t){var r=new Kv(e,t);r.expectToken(Te.TokenKind.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(Te.TokenKind.EOF),n}function D5(e,t){var r=new Kv(e,t);r.expectToken(Te.TokenKind.SOF);var n=r.parseTypeReference();return r.expectToken(Te.TokenKind.EOF),n}var Kv=function(){function e(r,n){var a=(0,mN.isSource)(r)?r:new mN.Source(r);this._lexer=new yN.Lexer(a),this._options=n}var t=e.prototype;return t.parseName=function(){var n=this.expectToken(Te.TokenKind.NAME);return{kind:Ge.Kind.NAME,value:n.value,loc:this.loc(n)}},t.parseDocument=function(){var n=this._lexer.token;return{kind:Ge.Kind.DOCUMENT,definitions:this.many(Te.TokenKind.SOF,this.parseDefinition,Te.TokenKind.EOF),loc:this.loc(n)}},t.parseDefinition=function(){if(this.peek(Te.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Te.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(Te.TokenKind.BRACE_L))return{kind:Ge.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var a=this.parseOperationType(),o;return this.peek(Te.TokenKind.NAME)&&(o=this.parseName()),{kind:Ge.Kind.OPERATION_DEFINITION,operation:a,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseOperationType=function(){var n=this.expectToken(Te.TokenKind.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},t.parseVariableDefinitions=function(){return this.optionalMany(Te.TokenKind.PAREN_L,this.parseVariableDefinition,Te.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:Ge.Kind.VA
2021-07-31 23:49:48 -07:00
` )+ `
` },OperationDefinition:function(t){var r=t.operation,n=t.name,a=tr("(",Ie(t.variableDefinitions,", "),")"),o=Ie(t.directives," "),s=t.selectionSet;return!n&&!o&&!a&&r==="query"?s:Ie([r,Ie([n,a]),o,s]," ")},VariableDefinition:function(t){var r=t.variable,n=t.type,a=t.defaultValue,o=t.directives;return r+": "+n+tr(" = ",a)+tr(" ",Ie(o," "))},SelectionSet:function(t){var r=t.selections;return Qi(r)},Field:function(t){var r=t.alias,n=t.name,a=t.arguments,o=t.directives,s=t.selectionSet,c=tr("",r,": ")+n,d=c+tr("(",Ie(a,", "),")");return d.length>lQ&&(d=c+tr( ` (
2021-08-30 08:13:49 -07:00
` , $ v(Ie(a, `
2021-07-31 23:49:48 -07:00
` )), `
2021-08-30 08:13:49 -07:00
) ` )),Ie([d,Ie(o," "),s]," ")},Argument:function(t){var r=t.name,n=t.value;return r+": "+n},FragmentSpread:function(t){var r=t.name,n=t.directives;return"..."+r+tr(" ",Ie(n," "))},InlineFragment:function(t){var r=t.typeCondition,n=t.directives,a=t.selectionSet;return Ie(["...",tr("on ",r),Ie(n," "),a]," ")},FragmentDefinition:function(t){var r=t.name,n=t.typeCondition,a=t.variableDefinitions,o=t.directives,s=t.selectionSet;return"fragment ".concat(r).concat(tr("(",Ie(a,", "),")")," ")+"on ".concat(n," ").concat(tr("",Ie(o," ")," "))+s},IntValue:function(t){var r=t.value;return r},FloatValue:function(t){var r=t.value;return r},StringValue:function(t,r){var n=t.value,a=t.block;return a?(0,uQ.printBlockString)(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function(t){var r=t.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){var r=t.value;return r},ListValue:function(t){var r=t.values;return"["+Ie(r,", ")+"]"},ObjectValue:function(t){var r=t.fields;return"{"+Ie(r,", ")+"}"},ObjectField:function(t){var r=t.name,n=t.value;return r+": "+n},Directive:function(t){var r=t.name,n=t.arguments;return"@"+r+tr("(",Ie(n,", "),")")},NamedType:function(t){var r=t.name;return r},ListType:function(t){var r=t.type;return"["+r+"]"},NonNullType:function(t){var r=t.type;return r+"!"},SchemaDefinition:Gi(function(e){var t=e.directives,r=e.operationTypes;return Ie(["schema",Ie(t," "),Qi(r)]," ")}),OperationTypeDefinition:function(t){var r=t.operation,n=t.type;return r+": "+n},ScalarTypeDefinition:Gi(function(e){var t=e.name,r=e.directives;return Ie(["scalar",t,Ie(r," ")]," ")}),ObjectTypeDefinition:Gi(function(e){var t=e.name,r=e.interfaces,n=e.directives,a=e.fields;return Ie(["type",t,tr("implements ",Ie(r," & ")),Ie(n," "),Qi(a)]," ")}),FieldDefinition:Gi(function(e){var t=e.name,r=e.arguments,n=e.type,a=e.directives;return t+(CN(r)?tr( ` (
` , $ v(Ie(r, `
2021-07-31 23:49:48 -07:00
` )), `
2021-08-30 08:13:49 -07:00
) ` ):tr("(",Ie(r,", "),")"))+": "+n+tr(" ",Ie(a," "))}),InputValueDefinition:Gi(function(e){var t=e.name,r=e.type,n=e.defaultValue,a=e.directives;return Ie([t+": "+r,tr("= ",n),Ie(a," ")]," ")}),InterfaceTypeDefinition:Gi(function(e){var t=e.name,r=e.interfaces,n=e.directives,a=e.fields;return Ie(["interface",t,tr("implements ",Ie(r," & ")),Ie(n," "),Qi(a)]," ")}),UnionTypeDefinition:Gi(function(e){var t=e.name,r=e.directives,n=e.types;return Ie(["union",t,Ie(r," "),n&&n.length!==0?"= "+Ie(n," | "):""]," ")}),EnumTypeDefinition:Gi(function(e){var t=e.name,r=e.directives,n=e.values;return Ie(["enum",t,Ie(r," "),Qi(n)]," ")}),EnumValueDefinition:Gi(function(e){var t=e.name,r=e.directives;return Ie([t,Ie(r," ")]," ")}),InputObjectTypeDefinition:Gi(function(e){var t=e.name,r=e.directives,n=e.fields;return Ie(["input",t,Ie(r," "),Qi(n)]," ")}),DirectiveDefinition:Gi(function(e){var t=e.name,r=e.arguments,n=e.repeatable,a=e.locations;return"directive @"+t+(CN(r)?tr( ` (
` , $ v(Ie(r, `
2021-07-31 23:49:48 -07:00
` )), `
) ` ):tr("(",Ie(r,", "),")"))+(n?" repeatable":"")+" on "+Ie(a," | ")}),SchemaExtension:function(t){var r=t.directives,n=t.operationTypes;return Ie(["extend schema",Ie(r," "),Qi(n)]," ")},ScalarTypeExtension:function(t){var r=t.name,n=t.directives;return Ie(["extend scalar",r,Ie(n," ")]," ")},ObjectTypeExtension:function(t){var r=t.name,n=t.interfaces,a=t.directives,o=t.fields;return Ie(["extend type",r,tr("implements ",Ie(n," & ")),Ie(a," "),Qi(o)]," ")},InterfaceTypeExtension:function(t){var r=t.name,n=t.interfaces,a=t.directives,o=t.fields;return Ie(["extend interface",r,tr("implements ",Ie(n," & ")),Ie(a," "),Qi(o)]," ")},UnionTypeExtension:function(t){var r=t.name,n=t.directives,a=t.types;return Ie(["extend union",r,Ie(n," "),a&&a.length!==0?"= "+Ie(a," | "):""]," ")},EnumTypeExtension:function(t){var r=t.name,n=t.directives,a=t.values;return Ie(["extend enum",r,Ie(n," "),Qi(a)]," ")},InputObjectTypeExtension:function(t){var r=t.name,n=t.directives,a=t.fields;return Ie(["extend input",r,Ie(n," "),Qi(a)]," ")}};function Gi(e){return function(t){return Ie([t.description,e(t)], `
` )}}function Ie(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(t=e==null?void 0:e.filter(function(n){return n}).join(r))!==null&&t!==void 0?t:""}function Qi(e){return tr( ` {
2021-08-30 08:13:49 -07:00
` , $ v(Ie(e, `
2021-07-31 23:49:48 -07:00
` )), `
2021-08-30 08:13:49 -07:00
} ` )}function tr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t!=null&&t!==""?e+t+r:""}function $ v(e){return tr(" ",e.replace(/ \n /g, `
2021-07-31 23:49:48 -07:00
` ))}function fQ(e){return e.indexOf( `
2021-08-30 08:13:49 -07:00
` )!==-1}function CN(e){return e!=null&&e.some(fQ)}});var qE=U(ME=>{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});ME.valueFromASTUntyped=jE;var dQ=PE(_t()),pQ=PE(zr()),hQ=PE(cd()),Wa=Pt();function PE(e){return e&&e.__esModule?e:{default:e}}function jE(e,t){switch(e.kind){case Wa.Kind.NULL:return null;case Wa.Kind.INT:return parseInt(e.value,10);case Wa.Kind.FLOAT:return parseFloat(e.value);case Wa.Kind.STRING:case Wa.Kind.ENUM:case Wa.Kind.BOOLEAN:return e.value;case Wa.Kind.LIST:return e.values.map(function(r){return jE(r,t)});case Wa.Kind.OBJECT:return(0,hQ.default)(e.fields,function(r){return r.name.value},function(r){return jE(r.value,t)});case Wa.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}(0,pQ.default)(0,"Unexpected value node: "+(0,dQ.default)(e))}});var lt=U(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.isType=BE;Me.assertType=xN;Me.isScalarType=Bu;Me.assertScalarType=TQ;Me.isObjectType=Cl;Me.assertObjectType=_Q;Me.isInterfaceType=Vu;Me.assertInterfaceType=SQ;Me.isUnionType=Uu;Me.assertUnionType=DQ;Me.isEnumType=Gu;Me.assertEnumType=kQ;Me.isInputObjectType=pd;Me.assertInputObjectType=CQ;Me.isListType=tg;Me.assertListType=OQ;Me.isNonNullType=Ho;Me.assertNonNullType=wQ;Me.isInputType=VE;Me.assertInputType=NQ;Me.isOutputType=UE;Me.assertOutputType=AQ;Me.isLeafType=IN;Me.assertLeafType=LQ;Me.isCompositeType=RN;Me.assertCompositeType=xQ;Me.isAbstractType=FN;Me.assertAbstractType=IQ;Me.GraphQLList=zo;Me.GraphQLNonNull=Wo;Me.isWrappingType=hd;Me.assertWrappingType=RQ;Me.isNullableType=PN;Me.assertNullableType=jN;Me.getNullableType=FQ;Me.isNamedType=MN;Me.assertNamedType=PQ;Me.getNamedType=jQ;Me.argsToArgsConfig=UN;Me.isRequiredArgument=MQ;Me.isRequiredInputField=UQ;Me.GraphQLInputObjectType=Me.GraphQLEnumType=Me.GraphQLUnionType=Me.GraphQLInterfaceType=Me.GraphQLObjectType=Me.GraphQLScalarType=void 0;var ON= $ n(Dl()),Go=ha(),Ht= $ n(_t()),vQ= $ n(Bo()),eg= $ n(OE()),ga= $ n(Xv()),Jt= $ n(Ei()),wN= $ n(cd()),Qo= $ n(ad()),gQ= $ n(Vo()),mQ= $ n(pa()),NN= $ n(DN()),Ko= $ n(Pv()),yQ= $ n(Uo()),dd=Ve(),bQ=Pt(),AN=jn(),EQ=qE();function $ n(e){return e&&e.__esModule?e:{default:e}}function LN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kl(e,t,r){return t&&LN(e.prototype,t),r&&LN(e,r),e}function BE(e){return Bu(e)||Cl(e)||Vu(e)||Uu(e)||Gu(e)||pd(e)||tg(e)||Ho(e)}function xN(e){if(!BE(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL type."));return e}function Bu(e){return(0,Qo.default)(e,GE)}function TQ(e){if(!Bu(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Scalar type."));return e}function Cl(e){return(0,Qo.default)(e,QE)}function _Q(e){if(!Cl(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Object type."));return e}function Vu(e){return(0,Qo.default)(e,KE)}function SQ(e){if(!Vu(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Interface type."));return e}function Uu(e){return(0,Qo.default)(e,HE)}function DQ(e){if(!Uu(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Union type."));return e}function Gu(e){return(0,Qo.default)(e,zE)}function kQ(e){if(!Gu(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Enum type."));return e}function pd(e){return(0,Qo.default)(e,WE)}function CQ(e){if(!pd(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Input Object type."));return e}function tg(e){return(0,Qo.default)(e,zo)}function OQ(e){if(!tg(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL List type."));return e}function Ho(e){return(0,Qo.default)(e,Wo)}function wQ(e){if(!Ho(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Non-Null type."));return e}function VE(e){return Bu(e)||Gu(e)||pd(e)||hd(e)&&VE(e.ofType)}function NQ(e){if(!VE(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL input type."));return e}function UE(e){return Bu(e)||Cl(e)||Vu(e)||Uu(e)|
2021-07-31 23:49:48 -07:00
2021-08-30 08:13:49 -07:00
In some cases , you need to provide options to alter GraphQL ' s execution behavior in ways field arguments will not suffice , such as conditionally including or skipping a field . Directives provide this by describing additional information to the executor . ` ,fields:function(){return{name:{type:new Re.GraphQLNonNull(Bt.GraphQLString),resolve:function(r){return r.name}},description:{type:Bt.GraphQLString,resolve:function(r){return r.description}},isRepeatable:{type:new Re.GraphQLNonNull(Bt.GraphQLBoolean),resolve:function(r){return r.isRepeatable}},locations:{type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(oT))),resolve:function(r){return r.locations}},args:{type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(Sd))),resolve:function(r){return r.args}}}}});Ot.__Directive=aT;var oT=new Re.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:wr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:wr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:wr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:wr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:wr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:wr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:wr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:wr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:wr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:wr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:wr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:wr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:wr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:wr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:wr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:wr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:wr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:wr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:wr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Ot.__DirectiveLocation=oT;var _i=new Re.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the ` _ _TypeKind ` enum. \n \n Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional ` specifiedByUrl ` , while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new Re.GraphQLNonNull(lT),resolve:function(r){if((0,Re.isScalarType)(r))return Wr.SCALAR;if((0,Re.isObjectType)(r))return Wr.OBJECT;if((0,Re.isInterfaceType)(r))return Wr.INTERFACE;if((0,Re.isUnionType)(r))return Wr.UNION;if((0,Re.isEnumType)(r))return Wr.ENUM;if((0,Re.isInputObjectTyp
2021-07-31 23:49:48 -07:00
2021-08-30 08:13:49 -07:00
` ))}var W9=function(){function e(r){this._errors=[],this.schema=r}var t=e.prototype;return t.reportError=function(n,a){var o=Array.isArray(a)?a.filter(Boolean):a;this.addError(new U9.GraphQLError(n,o))},t.addError=function(n){this._errors.push(n)},t.getErrors=function(){return this._errors},e}();function Y9(e){var t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,hr.isObjectType)(r)){var n;e.reportError("Query root type must be Object type, it cannot be ".concat((0,un.default)(r),"."),(n=hT(t,"query"))!==null&&n!==void 0?n:r.astNode)}var a=t.getMutationType();if(a&&!(0,hr.isObjectType)(a)){var o;e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,un.default)(a),"."),(o=hT(t,"mutation"))!==null&&o!==void 0?o:a.astNode)}var s=t.getSubscriptionType();if(s&&!(0,hr.isObjectType)(s)){var c;e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,un.default)(s),"."),(c=hT(t,"subscription"))!==null&&c!==void 0?c:s.astNode)}}function hT(e,t){for(var r=vT(e,function(o){return o.operationTypes}),n=0;n<r.length;n++){var a=r[n];if(a.operation===t)return a.type}}function J9(e){for(var t=0,r=e.schema.getDirectives();t<r.length;t++){var n=r[t];if(!(0,vA.isDirective)(n)){e.reportError("Expected directive but got: ".concat((0,un.default)(n),"."),n==null?void 0:n.astNode);continue}Wu(e,n);for(var a=0,o=n.args;a<o.length;a++){var s=o[a];if(Wu(e,s),(0,hr.isInputType)(s.type)||e.reportError("The type of @".concat(n.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat((0,un.default)(s.type),"."),s.astNode),(0,hr.isRequiredArgument)(s)&&s.deprecationReason!=null){var c;e.reportError("Required argument @".concat(n.name,"(").concat(s.name,":) cannot be deprecated."),[gT(s.astNode),(c=s.astNode)===null||c===void 0?void 0:c.type])}}}}function Wu(e,t){var r=(0,Q9.isValidNameError)(t.name);r&&e.addError((0,G9.locatedError)(r,t.astNode))}function X9(e){for(var t=n4(e),r=e.schema.getTypeMap(),n=0,a=(0,Dd.default)(r);n<a.length;n++){var o=a[n];if(!(0,hr.isNamedType)(o)){e.reportError("Expected GraphQL named type but got: ".concat((0,un.default)(o),"."),o.astNode);continue}(0,H9.isIntrospectionType)(o)||Wu(e,o),(0,hr.isObjectType)(o)||(0,hr.isInterfaceType)(o)?(mA(e,o),yA(e,o)):(0,hr.isUnionType)(o)?e4(e,o):(0,hr.isEnumType)(o)?t4(e,o):(0,hr.isInputObjectType)(o)&&(r4(e,o),t(o))}}function mA(e,t){var r=(0,Dd.default)(t.getFields());r.length===0&&e.reportError("Type ".concat(t.name," must define one or more fields."),Ll(t));for(var n=0;n<r.length;n++){var a=r[n];if(Wu(e,a),!(0,hr.isOutputType)(a.type)){var o;e.reportError("The type of ".concat(t.name,".").concat(a.name," must be Output Type ")+"but got: ".concat((0,un.default)(a.type),"."),(o=a.astNode)===null||o===void 0?void 0:o.type)}for(var s=0,c=a.args;s<c.length;s++){var d=c[s],h=d.name;if(Wu(e,d),!(0,hr.isInputType)(d.type)){var m;e.reportError("The type of ".concat(t.name,".").concat(a.name,"(").concat(h,":) must be Input ")+"Type but got: ".concat((0,un.default)(d.type),"."),(m=d.astNode)===null||m===void 0?void 0:m.type)}if((0,hr.isRequiredArgument)(d)&&d.deprecationReason!=null){var T;e.reportError("Required argument ".concat(t.name,".").concat(a.name,"(").concat(h,":) cannot be deprecated."),[gT(d.astNode),(T=d.astNode)===null||T===void 0?void 0:T.type])}}}}function yA(e,t){for(var r=Object.create(null),n=0,a=t.getInterfaces();n<a.length;n++){var o=a[n];if(!(0,hr.isInterfaceType)(o)){e.reportError("Type ".concat((0,un.default)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,un.default)(o),"."),kd(t,o));continue}if(t===o){e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),kd(t,o));continue}if(r[o.name]){e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),kd(t,o));continue}r[o.name]=!0, $ 9(e,t,o),Z9(e,t,o)}}function Z9(e,t,r){for(var n=t.getFields(),a=0,o=(0,Dd.default)(r.getFields());a<o.length;a++){var s=o[a],c=s.name
2021-07-31 23:49:48 -07:00
2021-08-30 08:13:49 -07:00
` ))}function e6(e,t){var r=U_(e,t);if(r.length!==0)throw new Error(r.map(function(n){return n.message}).join( `
2021-07-31 23:49:48 -07:00
2021-08-30 08:13:49 -07:00
` ))}});var jL=U(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0});G_.default=t6;function t6(e){var t;return function(n,a,o){t||(t=new WeakMap);var s=t.get(n),c;if(s){if(c=s.get(a),c){var d=c.get(o);if(d!==void 0)return d}}else s=new WeakMap,t.set(n,s);c||(c=new WeakMap,s.set(a,c));var h=e(n,a,o);return c.set(o,h),h}}});var ML=U(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0});Q_.default=i6;var r6=n6(Cv());function n6(e){return e&&e.__esModule?e:{default:e}}function i6(e,t,r){return e.reduce(function(n,a){return(0,r6.default)(n)?n.then(function(o){return t(o,a)}):t(n,a)},r)}});var qL=U(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0});K_.default=a6;function a6(e){var t=Object.keys(e),r=t.map(function(n){return e[n]});return Promise.all(r).then(function(n){return n.reduce(function(a,o,s){return a[t[s]]=o,a},Object.create(null))})}});var Ld=U(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.addPath=o6;Ag.pathToArray=u6;function o6(e,t,r){return{prev:e,key:t,typename:r}}function u6(e){for(var t=[],r=e;r;)t.push(r.key),r=r.prev;return t.reverse()}});var xg=U(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.getOperationRootType=s6;var Lg=Ve();function s6(e,t){if(t.operation==="query"){var r=e.getQueryType();if(!r)throw new Lg.GraphQLError("Schema does not define the required query root type.",t);return r}if(t.operation==="mutation"){var n=e.getMutationType();if(!n)throw new Lg.GraphQLError("Schema is not configured for mutations.",t);return n}if(t.operation==="subscription"){var a=e.getSubscriptionType();if(!a)throw new Lg.GraphQLError("Schema is not configured for subscriptions.",t);return a}throw new Lg.GraphQLError("Can only have query, mutation and subscription operations.",t)}});var W_=U(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0});z_.default=l6;function l6(e){return e.map(function(t){return typeof t=="number"?"["+t.toString()+"]":"."+t}).join("")}});var Id=U(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.valueFromAST=xd;var c6=Ig(Zn()),f6=Ig(Bo()),d6=Ig(_t()),p6=Ig(zr()),Ml=Pt(),Zu=lt();function Ig(e){return e&&e.__esModule?e:{default:e}}function xd(e,t,r){if(!!e){if(e.kind===Ml.Kind.VARIABLE){var n=e.name.value;if(r==null||r[n]===void 0)return;var a=r[n];return a===null&&(0,Zu.isNonNullType)(t)?void 0:a}if((0,Zu.isNonNullType)(t))return e.kind===Ml.Kind.NULL?void 0:xd(e,t.ofType,r);if(e.kind===Ml.Kind.NULL)return null;if((0,Zu.isListType)(t)){var o=t.ofType;if(e.kind===Ml.Kind.LIST){for(var s=[],c=0,d=e.values;c<d.length;c++){var h=d[c];if(BL(h,r)){if((0,Zu.isNonNullType)(o))return;s.push(null)}else{var m=xd(h,o,r);if(m===void 0)return;s.push(m)}}return s}var T=xd(e,o,r);return T===void 0?void 0:[T]}if((0,Zu.isInputObjectType)(t)){if(e.kind!==Ml.Kind.OBJECT)return;for(var b=Object.create(null),C=(0,f6.default)(e.fields,function(N){return N.name.value}),L=0,S=(0,c6.default)(t.getFields());L<S.length;L++){var y=S[L],_=C[y.name];if(!_||BL(_.value,r)){if(y.defaultValue!==void 0)b[y.name]=y.defaultValue;else if((0,Zu.isNonNullType)(y.type))return;continue}var g=xd(_.value,y.type,r);if(g===void 0)return;b[y.name]=g}return b}if((0,Zu.isLeafType)(t)){var k;try{k=t.parseLiteral(e,r)}catch(N){return}return k===void 0?void 0:k}(0,p6.default)(0,"Unexpected input type: "+(0,d6.default)(t))}}function BL(e,t){return e.kind===Ml.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var X_=U(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.coerceInputValue=T6;var h6=Zo(Zn()),Rg=Zo(_t()),v6=Zo(zr()),g6=Zo(Vo()),m6=Zo(pa()),y6=Zo(sg()),b6=Zo(Uo()),E6=Zo(W_()),Ya=Ld(), $ u=Ve(),Rd=lt();function Zo(e){return e&&e.__esModule?e:{default:e}}function T6(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_6;return Fd(e,t,r)}function _6(e,t,r){var n="Invalid value "+(0,Rg.default)(t);throw e.length>0&&(n+=' at "value'.concat((0,E6.default)(e),'"')),r.message=n+": "+r.message,r}function Fd(e,t,r,n){if((0,Rd.isNonNullType)(t)){if(e!=null)return Fd(e,t.ofType,r,n);r((0,Y
2021-07-31 23:49:48 -07:00
query IntrospectionQuery {
_ _schema {
` .concat(o, `
queryType { name }
mutationType { name }
subscriptionType { name }
types {
... FullType
}
directives {
name
` ).concat(r, `
` ).concat(a, `
locations
args ` ).concat(s("(includeDeprecated: true)"), ` {
... InputValue
}
}
}
}
fragment FullType on _ _Type {
kind
name
` ).concat(r, `
` ).concat(n, `
fields ( includeDeprecated : true ) {
name
` ).concat(r, `
args ` ).concat(s("(includeDeprecated: true)"), ` {
... InputValue
}
type {
... TypeRef
}
isDeprecated
deprecationReason
}
inputFields ` ).concat(s("(includeDeprecated: true)"), ` {
... InputValue
}
interfaces {
... TypeRef
}
enumValues ( includeDeprecated : true ) {
name
` ).concat(r, `
isDeprecated
deprecationReason
}
possibleTypes {
... TypeRef
}
}
fragment InputValue on _ _InputValue {
name
` ).concat(r, `
type { ... TypeRef }
defaultValue
` ).concat(s("isDeprecated"), `
` ).concat(s("deprecationReason"), `
}
fragment TypeRef on _ _Type {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
}
}
}
2021-08-30 08:13:49 -07:00
` )}});var mS=U(gS=>{"use strict";Object.defineProperty(gS,"__esModule",{value:!0});gS.getOperationAST=_z;var Tz=Pt();function _z(e,t){for(var r=null,n=0,a=e.definitions;n<a.length;n++){var o=a[n];if(o.kind===Tz.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r)return null;r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t)return o}}return r}});var Fx=U(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});yS.introspectionFromSchema=Az;var Sz=Oz(zr()),Dz=Tl(),kz=Vd(),Cz=vS();function Oz(e){return e&&e.__esModule?e:{default:e}}function Rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function wz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rx(Object(r),!0).forEach(function(n){Nz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nz(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Az(e,t){var r=wz({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),n=(0,Dz.parse)((0,Cz.getIntrospectionQuery)(r)),a=(0,kz.executeSync)({schema:e,document:n});return!a.errors&&a.data||(0,Sz.default)(0),a.data}});var jx=U(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0});bS.buildClientSchema=Mz;var Lz=Gd(Zn()),ti=Gd(_t()),xz=Gd(Ei()),Kg=Gd(cd()),Px=Gd(pa()),Iz=Tl(),Rz=zu(),Fz=qn(),Pz=ma(),_a=Mn(),ri=lt(),jz=Id();function Gd(e){return e&&e.__esModule?e:{default:e}}function Mz(e,t){(0,Px.default)(e)&&(0,Px.default)(e.__schema)||(0,xz.default)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,ti.default)(e),"."));for(var r=e.__schema,n=(0,Kg.default)(r.types,function(M){return M.name},function(M){return S(M)}),a=0,o=[].concat(Pz.specifiedScalarTypes,_a.introspectionTypes);a<o.length;a++){var s=o[a];n[s.name]&&(n[s.name]=s)}var c=r.queryType?C(r.queryType):null,d=r.mutationType?C(r.mutationType):null,h=r.subscriptionType?C(r.subscriptionType):null,m=r.directives?r.directives.map(G):[];return new Rz.GraphQLSchema({description:r.description,query:c,mutation:d,subscription:h,types:(0,Lz.default)(n),directives:m,assumeValid:t==null?void 0:t.assumeValid});function T(M){if(M.kind===_a.TypeKind.LIST){var j=M.ofType;if(!j)throw new Error("Decorated type deeper than introspection query.");return new ri.GraphQLList(T(j))}if(M.kind===_a.TypeKind.NON_NULL){var ce=M.ofType;if(!ce)throw new Error("Decorated type deeper than introspection query.");var ke=T(ce);return new ri.GraphQLNonNull((0,ri.assertNullableType)(ke))}return b(M)}function b(M){var j=M.name;if(!j)throw new Error("Unknown type reference: ".concat((0,ti.default)(M),"."));var ce=n[j];if(!ce)throw new Error("Invalid or incomplete schema, unknown type: ".concat(j,". Ensure that a full introspection query is used in order to build a client schema."));return ce}function C(M){return(0,ri.assertObjectType)(b(M))}function L(M){return(0,ri.assertInterfaceType)(b(M))}function S(M){if(M!=null&&M.name!=null&&M.kind!=null)switch(M.kind){case _a.TypeKind.SCALAR:return y(M);case _a.TypeKind.OBJECT:return g(M);case _a.TypeKind.INTERFACE:return k(M);case _a.TypeKind.UNION:return N(M);case _a.TypeKind.ENUM:return w(M);case _a.TypeKind.INPUT_OBJECT:return D(M)}var j=(0,ti.default)(M);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(j,"."))}function y(M){return new ri.GraphQLScalarType({name:M.name,description:M.description,specifiedByUrl:M.specifiedByUrl})}function _(M){if(M.interfaces===null&&M.kind===_a.TypeKind.INTERFACE)return[];if(!M.interfaces){var j=(0,ti.default)(M);th
2021-07-31 23:49:48 -07:00
` +r)}}function zz(e){var t=e.loc;if(!!t){for(var r=[],n=t.startToken.prev;n!=null&&n.kind===Uz.TokenKind.COMMENT&&n.next&&n.prev&&n.line+1===n.next.line&&n.line!==n.prev.line;){var a=String(n.value);r.push(a),n=n.prev}return r.length>0?r.reverse().join( `
2021-08-30 08:13:49 -07:00
` ):void 0}}});var Zx=U(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});Wg.buildASTSchema=Xx;Wg.buildSchema=t7;var Wz=e7(Ei()),Yz=Pt(),Jz=Tl(),Xz=jl(),Zz=zu(),Jx=qn(), $ z=ES();function e7(e){return e&&e.__esModule?e:{default:e}}function Xx(e,t){e!=null&&e.kind===Yz.Kind.DOCUMENT||(0,Wz.default)(0,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,Xz.assertValidSDL)(e);var r={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},n=(0, $ z.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(var a=0,o=n.types;a<o.length;a++){var s=o[a];switch(s.name){case"Query":n.query=s;break;case"Mutation":n.mutation=s;break;case"Subscription":n.subscription=s;break}}for(var c=n.directives,d=function(T){var b=Jx.specifiedDirectives[T];c.every(function(C){return C.name!==b.name})&&c.push(b)},h=0;h<Jx.specifiedDirectives.length;h++)d(h);return new Zz.GraphQLSchema(n)}function t7(e,t){var r=(0,Jz.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacySDLEmptyFields:t==null?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:t==null?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:t==null?void 0:t.experimentalFragmentVariables});return Xx(r,{commentDescriptions:t==null?void 0:t.commentDescriptions,assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var eI=U(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});SS.lexicographicSortSchema=f7;var r7=Hd(Zn()),n7=Hd(_t()),i7=Hd(zr()),a7=Hd(cd()),o7=Hd(fd()),u7=zu(),s7=qn(),l7=Mn(),Sn=lt();function Hd(e){return e&&e.__esModule?e:{default:e}}function $ x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2? $ x(Object(r),!0).forEach(function(n){c7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)): $ x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f7(e){var t=e.toConfig(),r=(0,a7.default)(TS(t.types),function(b){return b.name},T);return new u7.GraphQLSchema(yr(yr({},t),{},{types:(0,r7.default)(r),directives:TS(t.directives).map(s),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function n(b){return(0,Sn.isListType)(b)?new Sn.GraphQLList(n(b.ofType)):(0,Sn.isNonNullType)(b)?new Sn.GraphQLNonNull(n(b.ofType)):a(b)}function a(b){return r[b.name]}function o(b){return b&&a(b)}function s(b){var C=b.toConfig();return new s7.GraphQLDirective(yr(yr({},C),{},{locations:_S(C.locations,function(L){return L}),args:c(C.args)}))}function c(b){return Yg(b,function(C){return yr(yr({},C),{},{type:n(C.type)})})}function d(b){return Yg(b,function(C){return yr(yr({},C),{},{type:n(C.type),args:c(C.args)})})}function h(b){return Yg(b,function(C){return yr(yr({},C),{},{type:n(C.type)})})}function m(b){return TS(b).map(a)}function T(b){if((0,Sn.isScalarType)(b)||(0,l7.isIntrospectionType)(b))return b;if((0,Sn.isObjectType)(b)){var C=b.toConfig();return new Sn.GraphQLObjectType(yr(yr({},C),{},{interfaces:function(){return m(C.interfaces)},fields:function(){return d(C.fields)}}))}if((0,Sn.isInterfaceType)(b)){var L=b.toConfig();return new Sn.GraphQLInterfaceType(yr(yr({},L),{},{interfaces:function(){return m(L.interfaces)},fields:function(){return d(L.fields)}}))}if((0,Sn.isUnionType)(b)){var S=b.toConfig();return new Sn.GraphQLUnionType(yr(yr({},S),{},{types:function(){return m(S.types)}}))}if((0,Sn.isEnumType)(b)){var y=b.toConfig();return new Sn.GraphQLEnumType(yr(yr({},y),{},{values:Yg(y.values)}))}if((0,Sn.isInputObjectType)(b)){var _=b.toConfig();return new Sn.GraphQLInputObjectType(yr(yr(
2021-07-31 23:49:48 -07:00
` )+ `
` }function m7(e){if(!(e.description==null&&y7(e))){var t=[],r=e.getQueryType();r&&t.push(" query: ".concat(r.name));var n=e.getMutationType();n&&t.push(" mutation: ".concat(n.name));var a=e.getSubscriptionType();return a&&t.push(" subscription: ".concat(a.name)),ki({},e)+ ` schema {
` .concat(t.join( `
` ), `
2021-08-30 08:13:49 -07:00
} ` )}}function y7(e){var t=e.getQueryType();if(t&&t.name!=="Query")return!1;var r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;var n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function iI(e,t){if((0,Kl.isScalarType)(e))return b7(e,t);if((0,Kl.isObjectType)(e))return E7(e,t);if((0,Kl.isInterfaceType)(e))return T7(e,t);if((0,Kl.isUnionType)(e))return _7(e,t);if((0,Kl.isEnumType)(e))return S7(e,t);if((0,Kl.isInputObjectType)(e))return D7(e,t);(0,tI.default)(0,"Unexpected type: "+(0,d7.default)(e))}function b7(e,t){return ki(t,e)+"scalar ".concat(e.name)+C7(e)}function aI(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(r){return r.name}).join(" & "):""}function E7(e,t){return ki(t,e)+"type ".concat(e.name)+aI(e)+oI(t,e)}function T7(e,t){return ki(t,e)+"interface ".concat(e.name)+aI(e)+oI(t,e)}function _7(e,t){var r=e.getTypes(),n=r.length?" = "+r.join(" | "):"";return ki(t,e)+"union "+e.name+n}function S7(e,t){var r=e.getValues().map(function(n,a){return ki(t,n," ",!a)+" "+n.name+xS(n.deprecationReason)});return ki(t,e)+"enum ".concat(e.name)+AS(r)}function D7(e,t){var r=(0,DS.default)(e.getFields()).map(function(n,a){return ki(t,n," ",!a)+" "+LS(n)});return ki(t,e)+"input ".concat(e.name)+AS(r)}function oI(e,t){var r=(0,DS.default)(t.getFields()).map(function(n,a){return ki(e,n," ",!a)+" "+n.name+uI(e,n.args," ")+": "+String(n.type)+xS(n.deprecationReason)});return AS(r)}function AS(e){return e.length!==0? ` {
2021-07-31 23:49:48 -07:00
` +e.join( `
` )+ `
2021-08-30 08:13:49 -07:00
} ` :""}function uI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t.length===0?"":t.every(function(n){return!n.description})?"("+t.map(LS).join(", ")+")": ` (
` +t.map(function(n,a){return ki(e,n," "+r,!a)+" "+r+LS(n)}).join( `
2021-07-31 23:49:48 -07:00
` )+ `
2021-08-30 08:13:49 -07:00
` +r+")"}function LS(e){var t=(0,wS.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=" = ".concat((0,kS.print)(t))),r+xS(e.deprecationReason)}function k7(e,t){return ki(t,e)+"directive @"+e.name+uI(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function xS(e){if(e==null)return"";var t=(0,wS.astFromValue)(e,CS.GraphQLString);return t&&e!==OS.DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+(0,kS.print)(t)+")":" @deprecated"}function C7(e){if(e.specifiedByUrl==null)return"";var t=e.specifiedByUrl,r=(0,wS.astFromValue)(t,CS.GraphQLString);return r||(0,tI.default)(0,"Unexpected null value returned from ` astFromValue ` for specifiedByUrl")," @specifiedBy(url: "+(0,kS.print)(r)+")"}function ki(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=t.description;if(a==null)return"";if((e==null?void 0:e.commentDescriptions)===!0)return O7(a,r,n);var o=a.length>70,s=(0,p7.printBlockString)(a,"",o),c=r&&!n? `
2021-07-31 23:49:48 -07:00
` +r:r;return c+s.replace(/ \n /g, `
` +r)+ `
` }function O7(e,t,r){var n=t&&!r? `
` :"",a=e.split( `
` ).map(function(o){return t+(o!==""?"# "+o:"#")}).join( `
` );return n+a+ `
2021-08-30 08:13:49 -07:00
` }});var lI=U(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.concatAST=w7;function w7(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t=t.concat(n.definitions)}return{kind:"Document",definitions:t}}});var dI=U(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0});RS.separateOperations=A7;var Jg=Pt(),N7=qo();function A7(e){for(var t=[],r=Object.create(null),n=0,a=e.definitions;n<a.length;n++){var o=a[n];switch(o.kind){case Jg.Kind.OPERATION_DEFINITION:t.push(o);break;case Jg.Kind.FRAGMENT_DEFINITION:r[o.name.value]=fI(o.selectionSet);break}}for(var s=Object.create(null),c=function(m){for(var T=t[m],b=new Set,C=0,L=fI(T.selectionSet);C<L.length;C++){var S=L[C];cI(b,r,S)}var y=T.name?T.name.value:"";s[y]={kind:Jg.Kind.DOCUMENT,definitions:e.definitions.filter(function(_){return _===T||_.kind===Jg.Kind.FRAGMENT_DEFINITION&&b.has(_.name.value)})}},d=0;d<t.length;d++)c(d);return s}function cI(e,t,r){if(!e.has(r)){e.add(r);var n=t[r];if(n!==void 0)for(var a=0;a<n.length;a++){var o=n[a];cI(e,t,o)}}}function fI(e){var t=[];return(0,N7.visit)(e,{FragmentSpread:function(n){t.push(n.name.value)}}),t}});var gI=U(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0});PS.stripIgnoredCharacters=L7;var pI=Vv(),FS=yl(),hI=Qv(),vI=El();function L7(e){for(var t=(0,pI.isSource)(e)?e:new pI.Source(e),r=t.body,n=new hI.Lexer(t),a="",o=!1;n.advance().kind!==FS.TokenKind.EOF;){var s=n.token,c=s.kind,d=!(0,hI.isPunctuatorTokenKind)(s.kind);o&&(d||s.kind===FS.TokenKind.SPREAD)&&(a+=" ");var h=r.slice(s.start,s.end);c===FS.TokenKind.BLOCK_STRING?a+=x7(h):a+=h,o=d}return a}function x7(e){var t=e.slice(3,-3),r=(0,vI.dedentBlockStringValue)(t);(0,vI.getBlockStringIndentation)(r)>0&&(r= `
2021-07-31 23:49:48 -07:00
` +r);var n=r[r.length-1],a=n==='"'&&r.slice(-4)!==' \\ """';return(a||n===" \\ ")&&(r+= `
2021-08-30 08:13:49 -07:00
` ),'"""'+r+'"""'}});var CI=U(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.findBreakingChanges=B7;eu.findDangerousChanges=V7;eu.DangerousChangeType=eu.BreakingChangeType=void 0;var Hl=Wd(Zn()),mI=Wd(Bo()),I7=Wd(_t()),yI=Wd(zr()),R7=Wd(fd()),F7=jn(),P7=qo(),j7=ma(),Et=lt(),M7=_d();function Wd(e){return e&&e.__esModule?e:{default:e}}function bI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function EI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bI(Object(r),!0).forEach(function(n){q7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var br=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"});eu.BreakingChangeType=br;var eo=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});eu.DangerousChangeType=eo;function B7(e,t){var r=TI(e,t).filter(function(n){return n.type in br});return r}function V7(e,t){var r=TI(e,t).filter(function(n){return n.type in eo});return r}function TI(e,t){return[].concat(G7(e,t),U7(e,t))}function U7(e,t){for(var r=[],n=to(e.getDirectives(),t.getDirectives()),a=0,o=n.removed;a<o.length;a++){var s=o[a];r.push({type:br.DIRECTIVE_REMOVED,description:"".concat(s.name," was removed.")})}for(var c=0,d=n.persisted;c<d.length;c++){for(var h=d[c],m=h[0],T=h[1],b=to(m.args,T.args),C=0,L=b.added;C<L.length;C++){var S=L[C];(0,Et.isRequiredArgument)(S)&&r.push({type:br.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(S.name," on directive ").concat(m.name," was added.")})}for(var y=0,_=b.removed;y<_.length;y++){var g=_[y];r.push({type:br.DIRECTIVE_ARG_REMOVED,description:"".concat(g.name," was removed from ").concat(m.name,".")})}m.isRepeatable&&!T.isRepeatable&&r.push({type:br.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(m.name,".")});for(var k=0,N=m.locations;k<N.length;k++){var w=N[k];T.locations.indexOf(w)===-1&&r.push({type:br.DIRECTIVE_LOCATION_REMOVED,description:"".concat(w," was removed from ").concat(m.name,".")})}}return r}function G7(e,t){for(var r=[],n=to((0,Hl.default)(e.getTypeMap()),(0,Hl.default)(t.getTypeMap())),a=0,o=n.removed;a<o.length;a++){var s=o[a];r.push({type:br.TYPE_REMOVED,description:(0,j7.isSpecifiedScalarType)(s)?"Standard scalar ".concat(s.name," was removed because it is not referenced anymore."):"".concat(s.name," was removed.")})}for(var c=0,d=n.persisted;c<d.length;c++){var h=d[c],m=h[0],T=h[1];(0,Et.isEnumType)(m)&&(0,Et.isEnumType)(T)?r.push.apply(r,H7(m,T)):(0,Et.isUnionType)(m)&&(0,Et.isUnionType)(T)?r.push.apply(r,K7(m,T)):(0,Et.isInputObjectType)(m)&&(0,Et.isInputObjectType)(T)?r.push.apply(r,Q7(m,T)):(0,Et.isObjectType)(m)&&(0,Et.isObjectType)(T)||(0,Et.isInterfaceType)(m)&&(0,Et.isInterfaceType)
` ).slice(0,t.line);return t.character+r.map(n=>n.length+1).reduce((n,a)=>n+a,0)}Wl.pointToOffset=KI});var zI=U(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.locToRange=Sa.offsetToPosition=Sa.Position=Sa.Range=void 0;var VS=class{constructor(t,r){this.containsPosition=n=>this.start.line===n.line?this.start.character<=n.character:this.end.line===n.line?this.end.character>=n.character:this.start.line<=n.line&&this.end.line>=n.line,this.start=t,this.end=r}setStart(t,r){this.start=new Zd(t,r)}setEnd(t,r){this.end=new Zd(t,r)}};Sa.Range=VS;var Zd=class{constructor(t,r){this.lessThanOrEqualTo=n=>this.line<n.line||this.line===n.line&&this.character<=n.character,this.line=t,this.character=r}setLine(t){this.line=t}setCharacter(t){this.character=t}};Sa.Position=Zd;function US(e,t){let r= `
` ,n=e.slice(0,t),a=n.split(r).length-1,o=n.lastIndexOf(r);return new Zd(a,t-o-1)}Sa.offsetToPosition=US;function TW(e,t){let r=US(e,t.start),n=US(e,t.end);return new VS(r,n)}Sa.locToRange=TW});var WI=U(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0});Object.defineProperty(GS,"ExecutableDefinitions",{enumerable:!0,get:function(){return _W.ExecutableDefinitionsRule}});var _W=yg()});var YI=U( $ g=>{"use strict";Object.defineProperty( $ g,"__esModule",{value:!0}); $ g.validateWithCustomRules=void 0;var $ d=Nt(),SW=WI();function DW(e,t,r,n){let a= $ d.specifiedRules.filter(s=>!(s=== $ d.NoUnusedFragmentsRule||s===SW.ExecutableDefinitions||n&&s=== $ d.KnownFragmentNamesRule));return r&&Array.prototype.push.apply(a,r), $ d.validate(e,t,a).filter(s=>{if(s.message.indexOf("Unknown directive")!==-1&&s.nodes){let c=s.nodes[0];if(c&&c.kind=== $ d.Kind.DIRECTIVE){let d=c.name.value;if(d==="arguments"||d==="argumentDefinitions")return!1}}return!0})} $ g.validateWithCustomRules=DW});var is=U(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.validateWithCustomRules=Er.offsetToPosition=Er.locToRange=Er.Range=Er.Position=Er.pointToOffset=Er.getASTNodeAtPosition=Er.getFragmentDependenciesForAST=Er.getFragmentDependencies=void 0;var JI=QI();Object.defineProperty(Er,"getFragmentDependencies",{enumerable:!0,get:function(){return JI.getFragmentDependencies}});Object.defineProperty(Er,"getFragmentDependenciesForAST",{enumerable:!0,get:function(){return JI.getFragmentDependenciesForAST}});var XI=HI();Object.defineProperty(Er,"getASTNodeAtPosition",{enumerable:!0,get:function(){return XI.getASTNodeAtPosition}});Object.defineProperty(Er,"pointToOffset",{enumerable:!0,get:function(){return XI.pointToOffset}});var em=zI();Object.defineProperty(Er,"Position",{enumerable:!0,get:function(){return em.Position}});Object.defineProperty(Er,"Range",{enumerable:!0,get:function(){return em.Range}});Object.defineProperty(Er,"locToRange",{enumerable:!0,get:function(){return em.locToRange}});Object.defineProperty(Er,"offsetToPosition",{enumerable:!0,get:function(){return em.offsetToPosition}});var kW=YI();Object.defineProperty(Er,"validateWithCustomRules",{enumerable:!0,get:function(){return kW.validateWithCustomRules}})});var nR=U((kne,LW)=>{LW.exports={Aacute:" \x C1",aacute:" \x E1",Abreve:" \u 0102",abreve:" \u 0103",ac:" \u 223E",acd:" \u 223F",acE:" \u 223E \u 0333",Acirc:" \x C2",acirc:" \x E2",acute:" \x B4",Acy:" \u 0410",acy:" \u 0430",AElig:" \x C6",aelig:" \x E6",af:" \u 2061",Afr:" \u {1D504}",afr:" \u {1D51E}",Agrave:" \x C0",agrave:" \x E0",alefsym:" \u 2135",aleph:" \u 2135",Alpha:" \u 0391",alpha:" \u 03B1",Amacr:" \u 0100",amacr:" \u 0101",amalg:" \u 2A3F",amp:"&",AMP:"&",andand:" \u 2A55",And:" \u 2A53",and:" \u 2227",andd:" \u 2A5C",andslope:" \u 2A58",andv:" \u 2A5A",ang:" \u 2220",ange:" \u 29A4",angle:" \u 2220",angmsdaa:" \u 29A8",angmsdab:" \u 29A9",angmsdac:" \u 29AA",angmsdad:" \u 29AB",angmsdae:" \u 29AC",angmsdaf:" \u 29AD",angmsdag:" \u 29AE",angmsdah:" \u 29AF",angmsd:" \u 2221",angrt:" \u 221F",angrtvb:" \u 22BE",angrtvbd:" \u 299D",angsph:" \u 2222",angst:" \x C5",angzarr:" \u 237C",Aogon:" \u 0104",aogon:" \u 0105",Aopf:" \u {1D538}",aopf:" \u {1D552}",apacir:" \u 2A6F",ap:" \u 2248",apE:" \u 2A70",ape:" \u 224A",apid:" \u 224B",apos:"'",ApplyFunction:" \u 2061",approx:" \u 2248",approxeq:" \u 224A",Aring:" \x C5",aring:" \x E5",Ascr:" \u {1D49C}",ascr:" \u {1D4B6}",Assign:" \u 2254",ast:"*",asymp:" \u 2248",asympeq:" \u 224D",Atilde:" \x C3",atilde:" \x E3",Auml:" \x C4",auml:" \x E4",awconint:" \u 2233",awint:" \u 2A11",backcong:" \u 224C",backepsilon:" \u 03F6",backprime:" \u 2035",backsim:" \u 223D",backsimeq:" \u 22CD",Backslash:" \u 2216",Barv:" \u 2AE7",barvee:" \u 22BD",barwed:" \u 2305",Barwed:" \u 2306",barwedge:" \u 2305",bbrk:" \u 23B5",bbrktbrk:" \u 23B6",bcong:" \u 224C",Bcy:" \u 0411",bcy:" \u 0431",bdquo:" \u 201E",becaus:" \u 2235",because:" \u 2235",Because:" \u 2235",bemptyv:" \u 29B0",bepsi:" \u 03F6",bernou:" \u 212C",Bernoullis:" \u 212C",Beta:" \u 0392",beta:" \u 03B2",beth:" \u 2136",between:" \u 226C",Bfr:" \u {1D505}",bfr:" \u {1D51F}",bigcap:" \u 22C2",bigcirc:" \u 25EF",bigcup:" \u 22C3",bigodot:" \u 2A00",bigoplus:" \u 2A01",bigotimes:" \u 2A02",bigsqcup:" \u 2A06",bigstar:" \u 2605",bigtriangledown:" \
` ,nexist:" \u 2204",nexists:" \u 2204",Nfr:" \u {1D511}",nfr:" \u {1D52B}",ngE:" \u 2267 \u 0338",nge:" \u 2271",ngeq:" \u 2271",ngeqq:" \u 2267 \u 0338",ngeqslant:" \u 2A7E \u 0338",nges:" \u 2A7E \u 0338",nGg:" \u 22D9 \u 0338",ngsim:" \u 2275",nGt:" \u 226B \u 20D2",ngt:" \u 226F",ngtr:" \u 226F",nGtv:" \u 226B \u 0338",nharr:" \u 21AE",nhArr:" \u 21CE",nhpar:" \u 2AF2",ni:" \u 220B",nis:" \u 22FC",nisd:" \u 22FA",niv:" \u 220B",NJcy:" \u 040A",njcy:" \u 045A",nlarr:" \u 219A",nlArr:" \u 21CD",nldr:" \u 2025",nlE:" \u 2266 \u 0338",nle:" \u 2270",nleftarrow:" \u 219A",nLeftarrow:" \u 21CD",nleftrightarrow:" \u 21AE",nLeftrightarrow:" \u 21CE",nleq:" \u 2270",nleqq:" \u 2266 \u 0338",nleqslant:" \u 2A7D \u 0338",nles:" \u 2A7D \u 0338",nless:" \u 226E",nLl:" \u 22D8 \u 0338",nlsim:" \u 2274",nLt:" \u 226A \u 20D2",nlt:" \u 226E",nltri:" \u 22EA",nltrie:" \u 22EC",nLtv:" \u 226A \u 0338",nmid:" \u 2224",NoBreak:" \u 2060",NonBreakingSpace:" \x A0",nopf:" \u {1D55F}",Nopf:" \u 2115",Not:" \u 2AEC",not:" \x AC",NotCongruent:" \u 2262",NotCupCap:" \u 226D",NotDoubleVerticalBar:" \u 2226",NotElement:" \u 2209",NotEqual:" \u 2260",NotEqualTilde:" \u 2242 \u 0338",NotExists:" \u 2204",NotGreater:" \u 226F",NotGreaterEqual:" \u 2271",NotGreaterFullEqual:" \u 2267 \u 0338",NotGreaterGreater:" \u 226B \u 0338",NotGreaterLess:" \u 2279",NotGreaterSlantEqual:" \u 2A7E \u 0338",NotGreaterTilde:" \u 2275",NotHumpDownHump:" \u 224E \u 0338",NotHumpEqual:" \u 224F \u 0338",notin:" \u 2209",notindot:" \u 22F5 \u 0338",notinE:" \u 22F9 \u 0338",notinva:" \u 2209",notinvb:" \u 22F7",notinvc:" \u 22F6",NotLeftTriangleBar:" \u 29CF \u 0338",NotLeftTriangle:" \u 22EA",NotLeftTriangleEqual:" \u 22EC",NotLess:" \u 226E",NotLessEqual:" \u 2270",NotLessGreater:" \u 2278",NotLessLess:" \u 226A \u 0338",NotLessSlantEqual:" \u 2A7D \u 0338",NotLessTilde:" \u 2274",NotNestedGreaterGreater:" \u 2AA2 \u 0338",NotNestedLessLess:" \u 2AA1 \u 0338",notni:" \u 220C",notniva:" \u 220C",notnivb:" \u 22FE",notnivc:" \u 22FD",NotPrecedes:" \u 2280",NotPrecedesEqual:" \u 2AAF \u 0338",NotPrecedesSlantEqual:" \u 22E0",NotReverseElement:" \u 220C",NotRightTriangleBar:" \u 29D0 \u 0338",NotRightTriangle:" \u 22EB",NotRightTriangleEqual:" \u 22ED",NotSquareSubset:" \u 228F \u 0338",NotSquareSubsetEqual:" \u 22E2",NotSquareSuperset:" \u 2290 \u 0338",NotSquareSupersetEqual:" \u 22E3",NotSubset:" \u 2282 \u 20D2",NotSubsetEqual:" \u 2288",NotSucceeds:" \u 2281",NotSucceedsEqual:" \u 2AB0 \u 0338",NotSucceedsSlantEqual:" \u 22E1",NotSucceedsTilde:" \u 227F \u 0338",NotSuperset:" \u 2283 \u 20D2",NotSupersetEqual:" \u 2289",NotTilde:" \u 2241",NotTildeEqual:" \u 2244",NotTildeFullEqual:" \u 2247",NotTildeTilde:" \u 2249",NotVerticalBar:" \u 2224",nparallel:" \u 2226",npar:" \u 2226",nparsl:" \u 2AFD \u 20E5",npart:" \u 2202 \u 0338",npolint:" \u 2A14",npr:" \u 2280",nprcue:" \u 22E0",nprec:" \u 2280",npreceq:" \u 2AAF \u 0338",npre:" \u 2AAF \u 0338",nrarrc:" \u 2933 \u 0338",nrarr:" \u 219B",nrArr:" \u 21CF",nrarrw:" \u 219D \u 0338",nrightarrow:" \u 219B",nRightarrow:" \u 21CF",nrtri:" \u 22EB",nrtrie:" \u 22ED",nsc:" \u 2281",nsccue:" \u 22E1",nsce:" \u 2AB0 \u 0338",Nscr:" \u {1D4A9}",nscr:" \u {1D4C3}",nshortmid:" \u 2224",nshortparallel:" \u 2226",nsim:" \u 2241",nsime:" \u 2244",nsimeq:" \u 2244",nsmid:" \u 2224",nspar:" \u 2226",nsqsube:" \u 22E2",nsqsupe:" \u 22E3",nsub:" \u 2284",nsubE:" \u 2AC5 \u 0338",nsube:" \u 2288",nsubset:" \u 2282 \u 20D2",nsubseteq:" \u 2288",nsubseteqq:" \u 2AC5 \u 0338",nsucc:" \u 2281",nsucceq:" \u 2AB0 \u 0338",nsup:" \u 2285",nsupE:" \u 2AC6 \u 0338",nsupe:" \u 2289",nsupset:" \u 2283 \u 20D2",nsupseteq:" \u 2289",nsupseteqq:" \u 2AC6 \u 0338",ntgl:" \u 2279",Ntilde:" \x D1",ntilde:" \x F1",ntlg:" \u 2278",ntriangleleft:" \u 22EA",ntrianglelefteq:" \u 22EC",ntriangleright:" \u 22EB",ntrianglerighteq:" \u 22ED",Nu:" \u 039D",nu:" \u 03BD",num:"#",numero:" \u 2116",numsp:" \u 2007",nvap:" \u 224D \u 20D2",nvdash:" \u 22AC",nvDash:" \u 22AD",nVdash:" \u 22AE",nVDash:" \u 22AF",nvge:" \u 2265 \u 20D2",nvgt:"> \u 20D2",nvHarr:" \u 2904",nvinfin:" \u 29DE",nvlArr:" \u 2902",nvle:" \u 2264 \u 20D2",nvlt:"< \u 20D2",nvltrie:" \u 22B4 \u 20D2",nvrArr:" \u 2903",nvrtrie:" \u 22B5 \u 20D2",nvsim:" \u 223C \u 20D2",nwarhk:" \u 2923",nwarr:" \u 2196",nwArr:" \u 21D6",nwarrow:" \u 2196",nwnear:" \u 2927",Oacute:" \x D3",oacute:" \x F3",oast:" \u 229B",Ocirc:" \x D4",ocirc:" \x F4",ocir:" \u 229A",Ocy:" \u 041E",ocy:" \u 043E",odash:" \u 229D",Odblac:" \u 0150",odblac:" \u 0151",odiv:" \u 2A38",odot:" \u 2299",odsold:" \u 29BC",OElig:" \u 0152",oelig:" \u 01
` ," "],MW=["{","}","|"," \\ ","^"," ` "].concat(jW),qW=[" '"].concat(MW),hR=["%","/","?",";","#"].concat(qW),vR=["/","?","#"],BW=255,gR=/^[+a-z0-9A-Z_-]{0,63}$/,VW=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mR={javascript:!0,"javascript:":!0},yR={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function UW(e,t){if(e&&e instanceof im)return e;var r=new im;return r.parse(e,t),r}im.prototype.parse=function(e,t){var r,n,a,o,s,c=e;if(c=c.trim(),!t&&e.split("#").length===1){var d=PW.exec(c);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=RW.exec(c);if(h&&(h=h[0],a=h.toLowerCase(),this.protocol=h,c=c.substr(h.length)),(t||h||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=c.substr(0,2)==="//",s&&!(h&&mR[h])&&(c=c.substr(2),this.slashes=!0)),!mR[h]&&(s||h&&!yR[h])){var m=-1;for(r=0;r<vR.length;r++)o=c.indexOf(vR[r]),o!==-1&&(m===-1||o<m)&&(m=o);var T,b;for(m===-1?b=c.lastIndexOf("@"):b=c.lastIndexOf("@",m),b!==-1&&(T=c.slice(0,b),c=c.slice(b+1),this.auth=T),m=-1,r=0;r<hR.length;r++)o=c.indexOf(hR[r]),o!==-1&&(m===-1||o<m)&&(m=o);m===-1&&(m=c.length),c[m-1]===":"&&m--;var C=c.slice(0,m);c=c.slice(m),this.parseHost(C),this.hostname=this.hostname||"";var L=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!L){var S=this.hostname.split(/\./);for(r=0,n=S.length;r<n;r++){var y=S[r];if(!!y&&!y.match(gR)){for(var _="",g=0,k=y.length;g<k;g++)y.charCodeAt(g)>127?_+="x":_+=y[g];if(!_.match(gR)){var N=S.slice(0,r),w=S.slice(r+1),D=y.match(VW);D&&(N.push(D[1]),w.unshift(D[2])),w.length&&(c=w.join(".")+c),this.hostname=N.join(".");break}}}}this.hostname.length>BW&&(this.hostname=""),L&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var F=c.indexOf("#");F!==-1&&(this.hash=c.substr(F),c=c.slice(0,F));var P=c.indexOf("?");return P!==-1&&(this.search=c.substr(P),c=c.slice(0,P)),c&&(this.pathname=c),yR[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this};im.prototype.parseHost=function(e){var t=FW.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};bR.exports=UW});var YS=U((xne,tp)=>{"use strict";tp.exports.encode=sR();tp.exports.decode=fR();tp.exports.format=pR();tp.exports.parse=ER()});var JS=U((Ine,TR)=>{TR.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var XS=U((Rne,_R)=>{_R.exports=/[\0-\x1F\x7F-\x9F]/});var DR=U((Fne,SR)=>{SR.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var ZS=U((Pne,kR)=>{kR.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var CR=U(Yl=>{"use strict";Yl.Any=JS();Yl.Cc=XS();Yl.Cf=DR();Yl.P=tm();Yl.Z=ZS()});var St=U(Lr=>{"use strict";function GW(e){return Object.prototype.toString.call(e)}function QW(e){return GW(e)==="[object String]"}var KW=Object.prototype.hasOwnProperty;function OR(e,t){return KW.call(e,t)}function HW(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){if(!!r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function zW(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function wR(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function NR(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var AR=/\\([!"#$%&' ( ) * + , \ - . \ / : ; <= > ? @ [ \ \ \ ] ^ _ ` {|}~])/g,WW=/&([a-z#][a-z0-9]{1,31});/gi,YW=new RegExp(AR.source+"|"+WW.source,"gi"),JW=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,LR=WS();function XW(e,t){var r=0;return OR(LR,t)?LR[t]:t.charCodeAt(0)===35&&JW.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),wR(r))?NR(r):e}function ZW(e){return e.indexOf(" \\ ")<0?e:e.replace(AR," $ 1")}function $ W(e){return e.in
` };Da.fence=function(e,t,r,n,a){var o=e[t],s=o.info?vY(o.info).trim():"",c="",d,h,m,T;return s&&(c=s.split(/ \s +/g)[0]),r.highlight?d=r.highlight(o.content,c)||os(o.content):d=os(o.content),d.indexOf("<pre")===0?d+ `
` :s?(h=o.attrIndex("class"),m=o.attrs?o.attrs.slice():[],h<0?m.push(["class",r.langPrefix+c]):m[h][1]+=" "+r.langPrefix+c,T={attrs:m},"<pre><code"+a.renderAttrs(T)+">"+d+ ` < / c o d e > < / p r e >
2021-07-31 23:49:48 -07:00
` ):"<pre><code"+a.renderAttrs(o)+">"+d+ ` < / c o d e > < / p r e >
` };Da.image=function(e,t,r,n,a){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=a.renderInlineAsText(o.children,r,n),a.renderToken(e,t,r)};Da.hardbreak=function(e,t,r){return r.xhtmlOut? ` < br / >
` : ` < br >
` };Da.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut? ` < br / >
` : ` < br >
` : `
` };Da.text=function(e,t){return os(e[t].content)};Da.html_block=function(e,t){return e[t].content};Da.html_inline=function(e,t){return e[t].content};function Jl(){this.rules=hY({},Da)}Jl.prototype.renderAttrs=function(t){var r,n,a;if(!t.attrs)return"";for(a="",r=0,n=t.attrs.length;r<n;r++)a+=" "+os(t.attrs[r][0])+'="'+os(t.attrs[r][1])+'"';return a};Jl.prototype.renderToken=function(t,r,n){var a,o="",s=!1,c=t[r];return c.hidden?"":(c.block&&c.nesting!==-1&&r&&t[r-1].hidden&&(o+= `
` ),o+=(c.nesting===-1?"</":"<")+c.tag,o+=this.renderAttrs(c),c.nesting===0&&n.xhtmlOut&&(o+=" /"),c.block&&(s=!0,c.nesting===1&&r+1<t.length&&(a=t[r+1],(a.type==="inline"||a.hidden||a.nesting===-1&&a.tag===c.tag)&&(s=!1))),o+=s? ` >
2021-08-30 08:13:49 -07:00
` :">",o)};Jl.prototype.renderInline=function(e,t,r){for(var n,a="",o=this.rules,s=0,c=e.length;s<c;s++)n=e[s].type,typeof o[n]!="undefined"?a+=o[n](e,s,t,r,this):a+=this.renderToken(e,s,t);return a};Jl.prototype.renderInlineAsText=function(e,t,r){for(var n="",a=0,o=e.length;a<o;a++)e[a].type==="text"?n+=e[a].content:e[a].type==="image"&&(n+=this.renderInlineAsText(e[a].children,t,r));return n};Jl.prototype.render=function(e,t,r){var n,a,o,s="",c=this.rules;for(n=0,a=e.length;n<a;n++)o=e[n].type,o==="inline"?s+=this.renderInline(e[n].children,t,r):typeof c[o]!="undefined"?s+=c[e[n].type](e,n,t,r,this):s+=this.renderToken(e,n,t,r);return s};BR.exports=Jl});var om=U((Qne,UR)=>{"use strict";function Ji(){this.__rules__=[],this.__cache__=null}Ji.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Ji.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(r){!r.enabled||r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){!n.enabled||r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn)})})};Ji.prototype.at=function(e,t,r){var n=this.__find__(e),a=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=a.alt||[],this.__cache__=null};Ji.prototype.before=function(e,t,r,n){var a=this.__find__(e),o=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};Ji.prototype.after=function(e,t,r,n){var a=this.__find__(e),o=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};Ji.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};Ji.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach(function(n){var a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!0,r.push(n)},this),this.__cache__=null,r};Ji.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)};Ji.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach(function(n){var a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!1,r.push(n)},this),this.__cache__=null,r};Ji.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};UR.exports=Ji});var QR=U((Kne,GR)=>{"use strict";var gY=/ \r \n ?| \n /g,mY=/ \0 /g;GR.exports=function(t){var r;r=t.src.replace(gY, `
` ),r=r.replace(mY," \u FFFD"),t.src=r}});var HR=U((Hne,KR)=>{"use strict";KR.exports=function(t){var r;t.inlineMode?(r=new t.Token("inline","",0),r.content=t.src,r.map=[0,1],r.children=[],t.tokens.push(r)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var WR=U((zne,zR)=>{"use strict";zR.exports=function(t){var r=t.tokens,n,a,o;for(a=0,o=r.length;a<o;a++)n=r[a],n.type==="inline"&&t.md.inline.parse(n.content,t.md,t.env,n.children)}});var JR=U((Wne,YR)=>{"use strict";var yY=St().arrayReplaceAt;function bY(e){return/^<a[> \s ]/i.test(e)}function EY(e){return/^< \/ a \s *>/i.test(e)}YR.exports=function(t){var r,n,a,o,s,c,d,h,m,T,b,C,L,S,y,_,g=t.tokens,k;if(!!t.md.options.linkify){for(n=0,a=g.length;n<a;n++)if(!(g[n].type!=="inline"||!t.md.linkify.pretest(g[n].content)))for(o=g[n].children,L=0,r=o.length-1;r>=0;r--){if(c=o[r],c.type==="link_close"){for(r--;o[r].level!==c.level&&o[r].type!=="link_open";)r--;continue}if(c.type==="html_inline"&&(bY(c.content)&&L>0&&L--,EY(c.content)&&L++),!(L>0)&&c.type==="text"&&t.md.linkify.test(c.content)){for(m=c.content,k=t.md.linkify.match(m),d=[],C=c.level,b=0,h=0;h<k.length;h++)S=k[h].url,y=t.md.normalizeLink(S),!!t.md.validateLink(y)&&(_=k[h].text,k[h].schema?k[h].schema==="mailto:"&&!/^mailto:/i.test(_)?_=t.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=t.md.normalizeLinkText(_):_=t.md.normalizeLinkText("http://"+_).replace(/^http: \/ \/ /,""),T=k[h].index,T>b&&(s=new t.Token("text","",0),s.content=m.slice(b,T),s.level=C,d.push(s)),s=new t.Token("link_open","a",1),s.attrs=[["href",y]],s.level=C++,s.markup="linkify",s.info="auto",d.push(s),s=new t.Token("text","",0),s.content=_,s.level=C,d.push(s),s=new t.Token("link_close","a",-1),s.level=--C,s.markup="linkify",s.info="auto",d.push(s),b=k[h].lastIndex);b<m.length&&(s=new t.Token("text","",0),s.content=m.slice(b),s.level=C,d.push(s)),g[n].children=o=yY(o,r,d)}}}}});var $ R=U((Yne,ZR)=>{"use strict";var XR=/ \+ -| \. \. | \? \? \? \? |!!!!|,,|--/,TY=/ \( (c|tm|r|p) \) /i,_Y=/ \( (c|tm|r|p) \) /ig,SY={c:" \x A9",r:" \x AE",p:" \x A7",tm:" \u 2122"};function DY(e,t){return SY[t.toLowerCase()]}function kY(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&(r.content=r.content.replace(_Y,DY)),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}function CY(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&XR.test(r.content)&&(r.content=r.content.replace(/ \+ -/g," \x B1").replace(/ \. {2,}/g," \u 2026").replace(/([?!])…/g," $ 1..").replace(/([?!]){4,}/g," $ 1 $ 1 $ 1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]| $ )/mg," $ 1 \u 2014 $ 2").replace(/(^| \s )--( \s | $ )/mg," $ 1 \u 2013 $ 2").replace(/(^|[^- \s ])--([^- \s ]| $ )/mg," $ 1 \u 2013 $ 2")),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}ZR.exports=function(t){var r;if(!!t.md.options.typographer)for(r=t.tokens.length-1;r>=0;r--)t.tokens[r].type==="inline"&&(TY.test(t.tokens[r].content)&&kY(t.tokens[r].children),XR.test(t.tokens[r].content)&&CY(t.tokens[r].children))}});var oF=U((Jne,aF)=>{"use strict";var eF=St().isWhiteSpace,tF=St().isPunctChar,rF=St().isMdAsciiPunct,OY=/['"]/,nF=/['"]/g,iF=" \u 2019";function um(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function wY(e,t){var r,n,a,o,s,c,d,h,m,T,b,C,L,S,y,_,g,k,N,w,D;for(N=[],r=0;r<e.length;r++){for(n=e[r],d=e[r].level,g=N.length-1;g>=0&&!(N[g].level<=d);g--);if(N.length=g+1,n.type!=="text")continue;a=n.content,s=0,c=a.length;e:for(;s<c&&(nF.lastIndex=s,o=nF.exec(a),!!o);){if(y=_=!0,s=o.index+1,k=o[0]==="'",m=32,o.index-1>=0)m=a.charCodeAt(o.index-1);else for(g=r-1;g>=0&&!(e[g].type==="softbreak"||e[g].type==="hardbreak");g--)if(e[g].type==="text"){m=e[g].content.charCodeAt(e[g].content.length-1);break}if(T=32,s<c)T=a.charCodeAt(s);else for(g=r+1;g<e.length&&!(e[g].type==="softbreak"||e[g].type==="hardbreak");g++)if(e[g].type==="text"){T=e[g].content.charCodeAt(0);break}if(b=rF(m)||tF(String.fromCharCode(m)),C=rF(T)||tF(String.fromCharCode(T)),L=eF(m),S=eF(T),S?y=!1:C&&(L||b||(y=!1)),L?_=!1:b&&(S||C||(_=!1)),T===34&&o[0]==='"'&&m>=48&&m<=57&&(_=y=!1),y&&_&&(y=!1,_=C),!y&&!_){k&&(n.conten
2021-07-31 23:49:48 -07:00
b ` .split(/ \n /).length!=3?function(i){for(var u=0,f=[],l=i.length;u<=l;){var p=i.indexOf( `
2021-08-30 08:13:49 -07:00
` ,u);p==-1&&(p=i.length);var v=i.slice(u,i.charAt(p-1)==" \r "?p-1:p),E=v.indexOf(" \r ");E!=-1?(f.push(v.slice(0,E)),u+=E+1):(f.push(v),u=p+1)}return f}:function(i){return i.split(/ \r \n ?| \n /)},Rp=window.getSelection?function(i){try{return i.selectionStart!=i.selectionEnd}catch(u){return!1}}:function(i){var u;try{u=i.ownerDocument.selection.createRange()}catch(f){}return!u||u.parentElement()!=i?!1:u.compareEndPoints("StartToEnd",u)!=0},Fp=function(){var i=M("div");return"oncopy"in i?!0:(i.setAttribute("oncopy","return;"),typeof i.oncopy=="function")}(),Sc=null;function oo(i){if(Sc!=null)return Sc;var u=G(i,M("span","x")),f=u.getBoundingClientRect(),l=ce(u,0,1).getBoundingClientRect();return Sc=Math.abs(f.left-l.left)>1}var fi={},Kn={};function Pp(i,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),fi[i]=u}function Ra(i,u){Kn[i]=u}function vs(i){if(typeof i=="string"&&Kn.hasOwnProperty(i))i=Kn[i];else if(i&&typeof i.name=="string"&&Kn.hasOwnProperty(i.name)){var u=Kn[i.name];typeof u=="string"&&(u={name:u}),i=je(u,i),i.name=u.name}else{if(typeof i=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test(i))return vs("application/xml");if(typeof i=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test(i))return vs("application/json")}return typeof i=="string"?{name:i}:i||{name:"null"}}function gs(i,u){u=vs(u);var f=fi[u.name];if(!f)return gs(i,"text/plain");var l=f(i,u);if(Fi.hasOwnProperty(u.name)){var p=Fi[u.name];for(var v in p)!p.hasOwnProperty(v)||(l.hasOwnProperty(v)&&(l["_"+v]=l[v]),l[v]=p[v])}if(l.name=u.name,u.helperType&&(l.helperType=u.helperType),u.modeProps)for(var E in u.modeProps)l[E]=u.modeProps[E];return l}var Fi={};function Pi(i,u){var f=Fi.hasOwnProperty(i)?Fi[i]:Fi[i]={};at(u,f)}function Hn(i,u){if(u===!0)return u;if(i.copyState)return i.copyState(u);var f={};for(var l in u){var p=u[l];p instanceof Array&&(p=p.concat([])),f[l]=p}return f}function Dc(i,u){for(var f;i.innerMode&&(f=i.innerMode(u),!(!f||f.mode==i));)u=f.state,i=f.mode;return f||{mode:i,state:u}}function kc(i,u,f){return i.startState?i.startState(u,f):!0}var $ t=function(i,u,f){this.pos=this.start=0,this.string=i,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=f}; $ t.prototype.eol=function(){return this.pos>=this.string.length}, $ t.prototype.sol=function(){return this.pos==this.lineStart}, $ t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0}, $ t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}, $ t.prototype.eat=function(i){var u=this.string.charAt(this.pos),f;if(typeof i=="string"?f=u==i:f=u&&(i.test?i.test(u):i(u)),f)return++this.pos,u}, $ t.prototype.eatWhile=function(i){for(var u=this.pos;this.eat(i););return this.pos>u}, $ t.prototype.eatSpace=function(){for(var i=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>i}, $ t.prototype.skipToEnd=function(){this.pos=this.string.length}, $ t.prototype.skipTo=function(i){var u=this.string.indexOf(i,this.pos);if(u>-1)return this.pos=u,!0}, $ t.prototype.backUp=function(i){this.pos-=i}, $ t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=st(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?st(this.string,this.lineStart,this.tabSize):0)}, $ t.prototype.indentation=function(){return st(this.string,null,this.tabSize)-(this.lineStart?st(this.string,this.lineStart,this.tabSize):0)}, $ t.prototype.match=function(i,u,f){if(typeof i=="string"){var l=function(E){return f?E.toLowerCase():E},p=this.string.substr(this.pos,i.length);if(l(p)==l(i))return u!==!1&&(this.pos+=i.length),!0}else{var v=this.string.slice(this.pos).match(i);return v&&v.index>0?null:(v&&u!==!1&&(this.pos+=v[0].length),v)}}, $ t.prototype.current=function(){return this.string.slice(this.start,this.pos)}, $ t.prototype.hideFirstChars=function(i,u){this.lineStart+=i;try{return u()}finally{this.lineStart-=i}}, $ t.prototype.lookAhead=function(i){var u=this.lineOracle;return u&&u.lookAhead(
` ?(ae=V.appendChild(M("span",J[0]==" \r "?" \u 240D":" \u 2424","cm-invalidchar")),ae.setAttribute("cm-text",J[0]),i.col+=1):(ae=i.cm.options.specialCharPlaceholder(J[0]),ae.setAttribute("cm-text",J[0]),s&&c<9?V.appendChild(M("span",[ae])):V.appendChild(ae),i.col+=1);i.map.push(i.pos,i.pos+1,ae),i.pos++}}if(i.trailingSpace=O.charCodeAt(u.length-1)==32,f||l||p||x||v||E){var Se=f||"";l&&(Se+=l),p&&(Se+=p);var ve=M("span",[V],Se,v);if(E)for(var Ce in E)E.hasOwnProperty(Ce)&&Ce!="style"&&Ce!="class"&&ve.setAttribute(Ce,E[Ce]);return i.content.appendChild(ve)}i.content.appendChild(V)}}function E3(i,u){if(i.length>1&&!/ /.test(i))return i;for(var f=u,l="",p=0;p<i.length;p++){var v=i.charAt(p);v==" "&&f&&(p==i.length-1||i.charCodeAt(p+1)==32)&&(v=" \x A0"),l+=v,f=v==" "}return l}function T3(i,u){return function(f,l,p,v,E,O,A){p=p?p+" cm-force-border":"cm-force-border";for(var x=f.pos,V=x+l.length;;){for(var Q=void 0,J=0;J<u.length&&(Q=u[J],!(Q.to>x&&Q.from<=x));J++);if(Q.to>=V)return i(f,l,p,v,E,O,A);i(f,l.slice(0,Q.to-x),p,v,null,O,A),v=null,l=l.slice(Q.to-x),x=Q.to}}}function ek(i,u,f,l){var p=!l&&f.widgetNode;p&&i.map.push(i.pos,i.pos+u,p),!l&&i.cm.display.input.needsContentAttribute&&(p||(p=i.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",f.id)),p&&(i.cm.display.input.setUneditable(p),i.content.appendChild(p)),i.pos+=u,i.trailingSpace=!1}function _3(i,u,f){var l=i.markedSpans,p=i.text,v=0;if(!l){for(var E=1;E<f.length;E+=2)u.addToken(u,p.slice(v,v=f[E]),ZD(f[E+1],u.cm.options));return}for(var O=p.length,A=0,x=1,V="",Q,J,Y=0,re,ae,le,he,Se;;){if(Y==A){re=ae=le=J="",Se=null,he=null,Y=1/0;for(var ve=[],Ce=void 0,Pe=0;Pe<l.length;++Pe){var Fe=l[Pe],Je=Fe.marker;if(Je.type=="bookmark"&&Fe.from==A&&Je.widgetNode)ve.push(Je);else if(Fe.from<=A&&(Fe.to==null||Fe.to>A||Je.collapsed&&Fe.to==A&&Fe.from==A)){if(Fe.to!=null&&Fe.to!=A&&Y>Fe.to&&(Y=Fe.to,ae=""),Je.className&&(re+=" "+Je.className),Je.css&&(J=(J?J+";":"")+Je.css),Je.startStyle&&Fe.from==A&&(le+=" "+Je.startStyle),Je.endStyle&&Fe.to==Y&&(Ce||(Ce=[])).push(Je.endStyle,Fe.to),Je.title&&((Se||(Se={})).title=Je.title),Je.attributes)for(var xt in Je.attributes)(Se||(Se={}))[xt]=Je.attributes[xt];Je.collapsed&&(!he||ey(he.marker,Je)<0)&&(he=Fe)}else Fe.from>A&&Y>Fe.from&&(Y=Fe.from)}if(Ce)for(var Dr=0;Dr<Ce.length;Dr+=2)Ce[Dr+1]==Y&&(ae+=" "+Ce[Dr]);if(!he||he.from==A)for(var Wt=0;Wt<ve.length;++Wt)ek(u,0,ve[Wt]);if(he&&(he.from||0)==A){if(ek(u,(he.to==null?O+1:he.to)-A,he.marker,he.from==null),he.to==null)return;he.to==A&&(he=!1)}}if(A>=O)break;for(var xn=Math.min(O,Y);;){if(V){var mn=A+V.length;if(!he){var cr=mn>xn?V.slice(0,xn-A):V;u.addToken(u,cr,Q?Q+re:re,le,A+cr.length==Y?ae:"",J,Se)}if(mn>=xn){V=V.slice(xn-A),A=xn;break}A=mn,le=""}V=p.slice(v,v=f[x++]),Q=ZD(f[x++],u.cm.options)}}}function tk(i,u,f){this.line=u,this.rest=p3(u),this.size=this.rest?gt(ee(this.rest))-f+1:1,this.node=this.text=null,this.hidden=uo(i,u)}function Up(i,u,f){for(var l=[],p,v=u;v<f;v=p){var E=new tk(i.doc,Ae(i.doc,v),v);p=v+E.size,l.push(E)}return l}var bs=null;function S3(i){bs?bs.ops.push(i):i.ownsGroup=bs={ops:[i],delayedCallbacks:[]}}function D3(i){var u=i.delayedCallbacks,f=0;do{for(;f<u.length;f++)u[f].call(null);for(var l=0;l<i.ops.length;l++){var p=i.ops[l];if(p.cursorActivityHandlers)for(;p.cursorActivityCalled<p.cursorActivityHandlers.length;)p.cursorActivityHandlers[p.cursorActivityCalled++].call(null,p.cm)}}while(f<u.length)}function k3(i,u){var f=i.ownsGroup;if(!!f)try{D3(f)}finally{bs=null,u(f)}}var Ac=null;function Tr(i,u){var f= $ (i,u);if(!!f.length){var l=Array.prototype.slice.call(arguments,2),p;bs?p=bs.delayedCallbacks:Ac?p=Ac:(p=Ac=[],setTimeout(C3,0));for(var v=function(O){p.push(function(){return f[O].apply(null,l)})},E=0;E<f.length;++E)v(E)}}function C3(){var i=Ac;Ac=null;for(var u=0;u<i.length;++u)i[u]()}function rk(i,u,f,l){for(var p=0;p<u.changes.length;p++){var v=u.changes[p];v=="text"?w3(i,u):v=="gutter"?ik(i,u,f,l):v=="class"?iy(i,u):v=="widget"&&N3(i,u,l)}u.changes=null}function Lc(i){return i.node==i.text&&(i.node=M("div",null,null,"position: r
2021-07-31 23:49:48 -07:00
top : ` +Ce+"px; width: "+(Pe==null?A-ve:Pe)+ ` px ;
2021-08-30 08:13:49 -07:00
height : ` +(Fe-Ce)+"px"))}function Q(ve,Ce,Pe){var Fe=Ae(p,ve),Je=Fe.text.length,xt,Dr;function Wt(cr,yn){return Kp(i,oe(ve,cr),"div",Fe,yn)}function xn(cr,yn,Fr){var mr=bk(i,Fe,null,cr),fr=yn=="ltr"==(Fr=="after")?"left":"right",er=Fr=="after"?mr.begin:mr.end-(/ \s /.test(Fe.text.charAt(mr.end-1))?2:1);return Wt(er,fr)[fr]}var mn=Z(Fe,p.direction);return cu(mn,Ce||0,Pe==null?Je:Pe,function(cr,yn,Fr,mr){var fr=Fr=="ltr",er=Wt(cr,fr?"left":"right"),bn=Wt(yn-1,fr?"right":"left"),Fs=Ce==null&&cr==0,go=Pe==null&&yn==Je,Gr=mr==0,aa=!mn||mr==mn.length-1;if(bn.top-er.top<=3){var kr=(x?Fs:go)&&Gr,By=(x?go:Fs)&&aa,qa=kr?O:(fr?er:bn).left,Eu=By?A:(fr?bn:er).right;V(qa,er.top,Eu-qa,er.bottom)}else{var Tu, $ r,Ps,Vy;fr?(Tu=x&&Fs&&Gr?O:er.left, $ r=x?A:xn(cr,Fr,"before"),Ps=x?O:xn(yn,Fr,"after"),Vy=x&&go&&aa?A:bn.right):(Tu=x?xn(cr,Fr,"before"):O, $ r=!x&&Fs&&Gr?A:er.right,Ps=!x&&go&&aa?O:bn.left,Vy=x?xn(yn,Fr,"after"):A),V(Tu,er.top, $ r-Tu,er.bottom),er.bottom<bn.top&&V(O,er.bottom,null,bn.top),V(Ps,bn.top,Vy-Ps,bn.bottom)}(!xt||zp(er,xt)<0)&&(xt=er),zp(bn,xt)<0&&(xt=bn),(!Dr||zp(er,Dr)<0)&&(Dr=er),zp(bn,Dr)<0&&(Dr=bn)}),{start:xt,end:Dr}}var J=u.from(),Y=u.to();if(J.line==Y.line)Q(J.line,J.ch,Y.ch);else{var re=Ae(p,J.line),ae=Ae(p,Y.line),le=ra(re)==ra(ae),he=Q(J.line,J.ch,le?re.text.length+1:null).end,Se=Q(Y.line,le?0:null,Y.ch).start;le&&(he.top<Se.top-2?(V(he.right,he.top,null,he.bottom),V(O,Se.top,Se.left,Se.bottom)):V(he.right,he.top,Se.left-he.right,he.bottom)),he.bottom<Se.top&&V(O,he.bottom,null,Se.top)}f.appendChild(v)}function vy(i){if(!!i.state.focused){var u=i.display;clearInterval(u.blinker);var f=!0;u.cursorDiv.style.visibility="",i.options.cursorBlinkRate>0?u.blinker=setInterval(function(){i.hasFocus()||Ss(i),u.cursorDiv.style.visibility=(f=!f)?"":"hidden"},i.options.cursorBlinkRate):i.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility="hidden")}}function Dk(i){i.hasFocus()||(i.display.input.focus(),i.state.focused||my(i))}function gy(i){i.state.delayingBlurEvent=!0,setTimeout(function(){i.state.delayingBlurEvent&&(i.state.delayingBlurEvent=!1,i.state.focused&&Ss(i))},100)}function my(i,u){i.state.delayingBlurEvent&&!i.state.draggingText&&(i.state.delayingBlurEvent=!1),i.options.readOnly!="nocursor"&&(i.state.focused||(fe(i,"focus",i,u),i.state.focused=!0,we(i.display.wrapper,"CodeMirror-focused"),!i.curOp&&i.display.selForContextMenu!=i.doc.sel&&(i.display.input.reset(),d&&setTimeout(function(){return i.display.input.reset(!0)},20)),i.display.input.receivedFocus()),vy(i))}function Ss(i,u){i.state.delayingBlurEvent||(i.state.focused&&(fe(i,"blur",i,u),i.state.focused=!1,B(i.display.wrapper,"CodeMirror-focused")),clearInterval(i.display.blinker),setTimeout(function(){i.state.focused||(i.display.shift=!1)},150))}function Wp(i){for(var u=i.display,f=u.lineDiv.offsetTop,l=0;l<u.view.length;l++){var p=u.view[l],v=i.options.lineWrapping,E=void 0,O=0;if(!p.hidden){if(s&&c<8){var A=p.node.offsetTop+p.node.offsetHeight;E=A-f,f=A}else{var x=p.node.getBoundingClientRect();E=x.bottom-x.top,!v&&p.text.firstChild&&(O=p.text.firstChild.getBoundingClientRect().right-x.left-1)}var V=p.line.height-E;if((V>.005||V<-.005)&&(An(p.line,E),kk(p.line),p.rest))for(var Q=0;Q<p.rest.length;Q++)kk(p.rest[Q]);if(O>i.display.sizerWidth){var J=Math.ceil(O/_s(i.display));J>i.display.maxLineLength&&(i.display.maxLineLength=J,i.display.maxLine=p.line,i.display.maxLineChanged=!0)}}}}function kk(i){if(i.widgets)for(var u=0;u<i.widgets.length;++u){var f=i.widgets[u],l=f.node.parentNode;l&&(f.height=l.offsetHeight)}}function Yp(i,u,f){var l=f&&f.top!=null?Math.max(0,f.top):i.scroller.scrollTop;l=Math.floor(l-Gp(i));var p=f&&f.bottom!=null?f.bottom:l+i.wrapper.clientHeight,v=ea(u,l),E=ea(u,p);if(f&&f.ensure){var O=f.ensure.from.line,A=f.ensure.to.line;O<v?(v=O,E=ea(u,Pa(Ae(u,O))+i.wrapper.clientHeight)):Math.min(A,u.lastLine())>=E&&(v=ea(u,Pa(Ae(u,A))-i.wrapper.clientHeight),E=A)}return{from:v,to:Math.max(E,v+1)}}function U3(i,u){if(!Qe(i,"scrollCursorIntoView")){var f=i.display,l=f.sizer.getBoundingClientRect(),p=null;if(u.top+l
2021-07-31 23:49:48 -07:00
top : ` +(u.top-f.viewOffset-Gp(i.display))+ ` px ;
height : ` +(u.bottom-u.top+na(i)+f.barHeight)+ ` px ;
2021-08-30 08:13:49 -07:00
left : ` +u.left+"px; width: "+Math.max(2,u.right-u.left)+"px;");i.display.lineSpace.appendChild(v),v.scrollIntoView(p),i.display.lineSpace.removeChild(v)}}}function G3(i,u,f,l){l==null&&(l=0);var p;!i.options.lineWrapping&&u==f&&(f=u.sticky=="before"?oe(u.line,u.ch+1,"before"):u,u=u.ch?oe(u.line,u.sticky=="before"?u.ch-1:u.ch,"after"):u);for(var v=0;v<5;v++){var E=!1,O=ji(i,u),A=!f||f==u?O:ji(i,f);p={left:Math.min(O.left,A.left),top:Math.min(O.top,A.top)-l,right:Math.max(O.left,A.left),bottom:Math.max(O.bottom,A.bottom)+l};var x=yy(i,p),V=i.doc.scrollTop,Q=i.doc.scrollLeft;if(x.scrollTop!=null&&(Pc(i,x.scrollTop),Math.abs(i.doc.scrollTop-V)>1&&(E=!0)),x.scrollLeft!=null&&(gu(i,x.scrollLeft),Math.abs(i.doc.scrollLeft-Q)>1&&(E=!0)),!E)break}return p}function Q3(i,u){var f=yy(i,u);f.scrollTop!=null&&Pc(i,f.scrollTop),f.scrollLeft!=null&&gu(i,f.scrollLeft)}function yy(i,u){var f=i.display,l=Ts(i.display);u.top<0&&(u.top=0);var p=i.curOp&&i.curOp.scrollTop!=null?i.curOp.scrollTop:f.scroller.scrollTop,v=oy(i),E={};u.bottom-u.top>v&&(u.bottom=u.top+v);var O=i.doc.height+ay(f),A=u.top<l,x=u.bottom>O-l;if(u.top<p)E.scrollTop=A?0:u.top;else if(u.bottom>p+v){var V=Math.min(u.top,(x?O:u.bottom)-v);V!=p&&(E.scrollTop=V)}var Q=i.options.fixedGutter?0:f.gutters.offsetWidth,J=i.curOp&&i.curOp.scrollLeft!=null?i.curOp.scrollLeft:f.scroller.scrollLeft-Q,Y=du(i)-f.gutters.offsetWidth,re=u.right-u.left>Y;return re&&(u.right=u.left+Y),u.left<10?E.scrollLeft=0:u.left<J?E.scrollLeft=Math.max(0,u.left+Q-(re?0:10)):u.right>Y+J-3&&(E.scrollLeft=u.right+(re?0:10)-Y),E}function by(i,u){u!=null&&(Jp(i),i.curOp.scrollTop=(i.curOp.scrollTop==null?i.doc.scrollTop:i.curOp.scrollTop)+u)}function Ds(i){Jp(i);var u=i.getCursor();i.curOp.scrollToPos={from:u,to:u,margin:i.options.cursorScrollMargin}}function Fc(i,u,f){(u!=null||f!=null)&&Jp(i),u!=null&&(i.curOp.scrollLeft=u),f!=null&&(i.curOp.scrollTop=f)}function K3(i,u){Jp(i),i.curOp.scrollToPos=u}function Jp(i){var u=i.curOp.scrollToPos;if(u){i.curOp.scrollToPos=null;var f=mk(i,u.from),l=mk(i,u.to);Ck(i,f,l,u.margin)}}function Ck(i,u,f,l){var p=yy(i,{left:Math.min(u.left,f.left),top:Math.min(u.top,f.top)-l,right:Math.max(u.right,f.right),bottom:Math.max(u.bottom,f.bottom)+l});Fc(i,p.scrollLeft,p.scrollTop)}function Pc(i,u){Math.abs(i.doc.scrollTop-u)<2||(r||Ty(i,{top:u}),Ok(i,u,!0),r&&Ty(i),qc(i,100))}function Ok(i,u,f){u=Math.max(0,Math.min(i.display.scroller.scrollHeight-i.display.scroller.clientHeight,u)),!(i.display.scroller.scrollTop==u&&!f)&&(i.doc.scrollTop=u,i.display.scrollbars.setScrollTop(u),i.display.scroller.scrollTop!=u&&(i.display.scroller.scrollTop=u))}function gu(i,u,f,l){u=Math.max(0,Math.min(u,i.display.scroller.scrollWidth-i.display.scroller.clientWidth)),!((f?u==i.doc.scrollLeft:Math.abs(i.doc.scrollLeft-u)<2)&&!l)&&(i.doc.scrollLeft=u,xk(i),i.display.scroller.scrollLeft!=u&&(i.display.scroller.scrollLeft=u),i.display.scrollbars.setScrollLeft(u))}function jc(i){var u=i.display,f=u.gutters.offsetWidth,l=Math.round(i.doc.height+ay(i.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:i.options.fixedGutter?f:0,docHeight:l,scrollHeight:l+na(i)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:f}}var mu=function(i,u,f){this.cm=f;var l=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=p.tabIndex=-1,i(l),i(p),R(l,"scroll",function(){l.clientHeight&&u(l.scrollTop,"vertical")}),R(p,"scroll",function(){p.clientWidth&&u(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mu.prototype.update=function(i){var u=i.scrollWidth>i.clientWidth+1,f=i.scrollHeight>i.clientHeight+1,l=i.nativeBarWidth;if(f){this.vert.style.display="block",this.vert.style.bottom=u?l+"px":"0";var p=i.viewHeight-(u?l:0);this.vert.firstChild.sty
` },setDirection:Sr(function(i){i!="rtl"&&(i="ltr"),i!=this.direction&&(this.direction=i,this.iter(function(u){return u.order=null}),this.cm&&uB(this.cm))})}),gn.prototype.eachLine=gn.prototype.iter;var lC=0;function EB(i){var u=this;if(cC(u),!(Qe(u,i)||ja(u.display,i))){Rt(i),s&&(lC=+new Date);var f=hu(u,i,!0),l=i.dataTransfer.files;if(!(!f||u.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var p=l.length,v=Array(p),E=0,O=function(){++E==p&&_r(u,function(){f=_e(u.doc,f);var Y={from:f,to:f,text:u.doc.splitLines(v.filter(function(re){return re!=null}).join(u.doc.lineSeparator())),origin:"paste"};ws(u.doc,Y),Wk(u.doc,co(_e(u.doc,f),_e(u.doc,fo(Y))))})()},A=function(Y,re){if(u.options.allowDropFileTypes&&Oe(u.options.allowDropFileTypes,Y.type)==-1){O();return}var ae=new FileReader;ae.onerror=function(){return O()},ae.onload=function(){var le=ae.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(le)){O();return}v[re]=le,O()},ae.readAsText(Y)},x=0;x<l.length;x++)A(l[x],x);else{if(u.state.draggingText&&u.doc.sel.contains(f)>-1){u.state.draggingText(i),setTimeout(function(){return u.display.input.focus()},20);return}try{var V=i.dataTransfer.getData("Text");if(V){var Q;if(u.state.draggingText&&!u.state.draggingText.copy&&(Q=u.listSelections()),rh(u.doc,co(f,f)),Q)for(var J=0;J<Q.length;++J)Ns(u.doc,"",Q[J].anchor,Q[J].head,"drag");u.replaceSelection(V,"around","paste"),u.display.input.focus()}}catch(Y){}}}}function TB(i,u){if(s&&(!i.state.draggingText||+new Date-lC<100)){ci(u);return}if(!(Qe(i,u)||ja(i.display,u))&&(u.dataTransfer.setData("Text",i.getSelection()),u.dataTransfer.effectAllowed="copyMove",u.dataTransfer.setDragImage&&!b)){var f=M("img",null,null,"position: fixed; left: 0; top: 0;");f.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",T&&(f.width=f.height=1,i.display.wrapper.appendChild(f),f._top=f.offsetTop),u.dataTransfer.setDragImage(f,0,0),T&&f.parentNode.removeChild(f)}}function _B(i,u){var f=hu(i,u);if(!!f){var l=document.createDocumentFragment();Sk(i,f,l),i.display.dragCursor||(i.display.dragCursor=M("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),i.display.lineSpace.insertBefore(i.display.dragCursor,i.display.cursorDiv)),G(i.display.dragCursor,l)}}function cC(i){i.display.dragCursor&&(i.display.lineSpace.removeChild(i.display.dragCursor),i.display.dragCursor=null)}function fC(i){if(!!document.getElementsByClassName){for(var u=document.getElementsByClassName("CodeMirror"),f=[],l=0;l<u.length;l++){var p=u[l].CodeMirror;p&&f.push(p)}f.length&&f[0].operation(function(){for(var v=0;v<f.length;v++)i(f[v])})}}var dC=!1;function SB(){dC||(DB(),dC=!0)}function DB(){var i;R(window,"resize",function(){i==null&&(i=setTimeout(function(){i=null,fC(kB)},100))}),R(window,"blur",function(){return fC(Ss)})}function kB(i){var u=i.display;u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.scrollbarsClipped=!1,i.setSize()}for(var vo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:" ` ",219:" [ ",220:" \ \ ",221:" ] ",222:" ' ",224:" Mod ",63232:" Up ",63233:" Down ",63234:" Left ",63235:" Right ",63272:" Delete ",63273:" Home ",63275:" End ",63276:" PageUp ",63277:" PageDown ",63302:" Insert "},Wc=0;Wc<10;Wc++)vo[Wc+48]=vo[Wc+96]=String(Wc);for(var ah=65;ah<=90;ah++)vo[ah]=String.fromCharCode(ah);for(var Yc=1;Yc<=12;Yc++)vo[Yc+111]=vo[Yc+63235]=" F "+Yc;var Ma={};Ma.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 "},Ma.pcDefault={" Ctrl - A ":" selectAll "," Ctrl - D ":" delete
` ,"start")},toggleOverwrite:function(i){return i.toggleOverwrite()}};function gC(i,u){var f=Ae(i.doc,u),l=ra(f);return l!=f&&(u=gt(l)),Iy(!0,i,l,u,1)}function NB(i,u){var f=Ae(i.doc,u),l=d3(f);return l!=f&&(u=gt(l)),Iy(!0,i,f,u,-1)}function mC(i,u){var f=gC(i,u.line),l=Ae(i.doc,f.line),p=Z(l,i.doc.direction);if(!p||p[0].level==0){var v=Math.max(f.ch,l.text.search(/ \S /)),E=u.line==f.line&&u.ch<=v&&u.ch;return oe(f.line,E?0:v,f.sticky)}return f}function uh(i,u,f){if(typeof u=="string"&&(u=Jc[u],!u))return!1;i.display.input.ensurePolled();var l=i.display.shift,p=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),f&&(i.display.shift=!1),p=u(i)!=Ue}finally{i.display.shift=l,i.state.suppressEdits=!1}return p}function AB(i,u,f){for(var l=0;l<i.state.keyMaps.length;l++){var p=Ls(u,i.state.keyMaps[l],f,i);if(p)return p}return i.options.extraKeys&&Ls(u,i.options.extraKeys,f,i)||Ls(u,i.options.keyMap,f,i)}var LB=new vt;function Xc(i,u,f,l){var p=i.state.keySeq;if(p){if(pC(u))return"handled";if(/ \' $ /.test(u)?i.state.keySeq=null:LB.set(50,function(){i.state.keySeq==p&&(i.state.keySeq=null,i.display.input.reset())}),yC(i,p+" "+u,f,l))return!0}return yC(i,u,f,l)}function yC(i,u,f,l){var p=AB(i,u,l);return p=="multi"&&(i.state.keySeq=u),p=="handled"&&Tr(i,"keyHandled",i,u,f),(p=="handled"||p=="multi")&&(Rt(f),vy(i)),!!p}function bC(i,u){var f=vC(u,!0);return f?u.shiftKey&&!i.state.keySeq?Xc(i,"Shift-"+f,u,function(l){return uh(i,l,!0)})||Xc(i,f,u,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return uh(i,l)}):Xc(i,f,u,function(l){return uh(i,l)}):!1}function xB(i,u,f){return Xc(i,"'"+f+"'",u,function(l){return uh(i,l,!0)})}var Ry=null;function EC(i){var u=this;if(!(i.target&&i.target!=u.display.input.getField())&&(u.curOp.focus=pe(),!Qe(u,i))){s&&c<11&&i.keyCode==27&&(i.returnValue=!1);var f=i.keyCode;u.display.shift=f==16||i.shiftKey;var l=bC(u,i);T&&(Ry=l?f:null,!l&&f==88&&!Fp&&(g?i.metaKey:i.ctrlKey)&&u.replaceSelection("",null,"cut")),r&&!g&&!l&&f==46&&i.shiftKey&&!i.ctrlKey&&document.execCommand&&document.execCommand("cut"),f==18&&!/ \b CodeMirror-crosshair \b /.test(u.display.lineDiv.className)&&IB(u)}}function IB(i){var u=i.display.lineDiv;we(u,"CodeMirror-crosshair");function f(l){(l.keyCode==18||!l.altKey)&&(B(u,"CodeMirror-crosshair"),ie(document,"keyup",f),ie(document,"mouseover",f))}R(document,"keyup",f),R(document,"mouseover",f)}function TC(i){i.keyCode==16&&(this.doc.sel.shift=!1),Qe(this,i)}function _C(i){var u=this;if(!(i.target&&i.target!=u.display.input.getField())&&!(ja(u.display,i)||Qe(u,i)||i.ctrlKey&&!i.altKey||g&&i.metaKey)){var f=i.keyCode,l=i.charCode;if(T&&f==Ry){Ry=null,Rt(i);return}if(!(T&&(!i.which||i.which<10)&&bC(u,i))){var p=String.fromCharCode(l==null?f:l);p!=" \b "&&(xB(u,i,p)||u.display.input.onKeyPress(i))}}}var RB=400,Fy=function(i,u,f){this.time=i,this.pos=u,this.button=f};Fy.prototype.compare=function(i,u,f){return this.time+RB>i&&I(u,this.pos)==0&&f==this.button};var Zc, $ c;function FB(i,u){var f=+new Date;return $ c&& $ c.compare(f,i,u)?(Zc= $ c=null,"triple"):Zc&&Zc.compare(f,i,u)?( $ c=new Fy(f,i,u),Zc=null,"double"):(Zc=new Fy(f,i,u), $ c=null,"single")}function SC(i){var u=this,f=u.display;if(!(Qe(u,i)||f.activeTouch&&f.input.supportsTouch())){if(f.input.ensurePolled(),f.shift=i.shiftKey,ja(f,i)){d||(f.scroller.draggable=!1,setTimeout(function(){return f.scroller.draggable=!0},100));return}if(!Py(u,i)){var l=hu(u,i),p=xp(i),v=l?FB(l,p):"single";window.focus(),p==1&&u.state.selectingText&&u.state.selectingText(i),!(l&&PB(u,p,l,v,i))&&(p==1?l?MB(u,l,v,i):Ri(i)==f.scroller&&Rt(i):p==2?(l&&th(u.doc,l),setTimeout(function(){return f.input.focus()},20)):p==3&&(F?u.display.input.onContextMenu(i):gy(u)))}}}function PB(i,u,f,l,p){var v="Click";return l=="double"?v="Double"+v:l=="triple"&&(v="Triple"+v),v=(u==1?"Left":u==2?"Middle":"Right")+v,Xc(i,hC(v,p),p,function(E){if(typeof E=="string"&&(E=Jc[E]),!E)return!1;var O=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),O=E(i,f)!=Ue}finally{i.state.suppressEdits=!1}return O})}function jB(i,u,f){var l=i.getOption("configureMouse"),p=l?l(i,u,f):{};if(p.unit
2021-07-31 23:49:48 -07:00
` )==u){if(l.ranges.length%qi.text.length==0){x=[];for(var V=0;V<qi.text.length;V++)x.push(v.splitLines(qi.text[V]))}}else A.length==l.ranges.length&&i.options.pasteLinesPerSelection&&(x=De(A,function(he){return[he]}));for(var Q=i.curOp.updateInput,J=l.ranges.length-1;J>=0;J--){var Y=l.ranges[J],re=Y.from(),ae=Y.to();Y.empty()&&(f&&f>0?re=oe(re.line,re.ch-f):i.state.overwrite&&!O?ae=oe(ae.line,Math.min(Ae(v,ae.line).text.length,ae.ch+ee(A).length)):O&&qi&&qi.lineWise&&qi.text.join( `
` )==A.join( `
2021-08-30 08:13:49 -07:00
` )&&(re=ae=oe(re.line,0)));var le={from:re,to:ae,text:x?x[J%x.length]:A,origin:p||(O?"paste":i.state.cutIncoming>E?"cut":"+input")};ws(i.doc,le),Tr(i,"inputRead",i,le)}u&&!O&&AC(i,u),Ds(i),i.curOp.updateInput<2&&(i.curOp.updateInput=Q),i.curOp.typing=!0,i.state.pasteIncoming=i.state.cutIncoming=-1}function NC(i,u){var f=i.clipboardData&&i.clipboardData.getData("Text");if(f)return i.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&Ln(u,function(){return My(u,f,0,null,"paste")}),!0}function AC(i,u){if(!(!i.options.electricChars||!i.options.smartIndent))for(var f=i.doc.sel,l=f.ranges.length-1;l>=0;l--){var p=f.ranges[l];if(!(p.head.ch>100||l&&f.ranges[l-1].head.line==p.head.line)){var v=i.getModeAt(p.head),E=!1;if(v.electricChars){for(var O=0;O<v.electricChars.length;O++)if(u.indexOf(v.electricChars.charAt(O))>-1){E=ef(i,p.head.line,"smart");break}}else v.electricInput&&v.electricInput.test(Ae(i.doc,p.head.line).text.slice(0,p.head.ch))&&(E=ef(i,p.head.line,"smart"));E&&Tr(i,"electricInput",i,p.head.line)}}}function LC(i){for(var u=[],f=[],l=0;l<i.doc.sel.ranges.length;l++){var p=i.doc.sel.ranges[l].head.line,v={anchor:oe(p,0),head:oe(p+1,0)};f.push(v),u.push(i.getRange(v.anchor,v.head))}return{text:u,ranges:f}}function xC(i,u,f,l){i.setAttribute("autocorrect",f?"":"off"),i.setAttribute("autocapitalize",l?"":"off"),i.setAttribute("spellcheck",!!u)}function IC(){var i=M("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),u=M("div",[i],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return d?i.style.width="1000px":i.setAttribute("wrap","off"),S&&(i.style.border="1px solid black"),xC(i),u}function zB(i){var u=i.optionHandlers,f=i.helpers={};i.prototype={constructor:i,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,p){var v=this.options,E=v[l];v[l]==p&&l!="mode"||(v[l]=p,u.hasOwnProperty(l)&&_r(this,u[l])(this,p,E),fe(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,p){this.state.keyMaps[p?"push":"unshift"](oh(l))},removeKeyMap:function(l){for(var p=this.state.keyMaps,v=0;v<p.length;++v)if(p[v]==l||p[v].name==l)return p.splice(v,1),!0},addOverlay:Zr(function(l,p){var v=l.token?l:i.getMode(this.options,l);if(v.startState)throw new Error("Overlays may not be stateful.");be(this.state.overlays,{mode:v,modeSpec:l,opaque:p&&p.opaque,priority:p&&p.priority||0},function(E){return E.priority}),this.state.modeGen++,vn(this)}),removeOverlay:Zr(function(l){for(var p=this.state.overlays,v=0;v<p.length;++v){var E=p[v].modeSpec;if(E==l||typeof l=="string"&&E.name==l){p.splice(v,1),this.state.modeGen++,vn(this);return}}}),indentLine:Zr(function(l,p,v){typeof p!="string"&&typeof p!="number"&&(p==null?p=this.options.smartIndent?"smart":"prev":p=p?"add":"subtract"),fu(this.doc,l)&&ef(this,l,p,v)}),indentSelection:Zr(function(l){for(var p=this.doc.sel.ranges,v=-1,E=0;E<p.length;E++){var O=p[E];if(O.empty())O.head.line>v&&(ef(this,O.head.line,l,!0),v=O.head.line,E==this.doc.sel.primIndex&&Ds(this));else{var A=O.from(),x=O.to(),V=Math.max(v,A.line);v=Math.min(this.lastLine(),x.line-(x.ch?0:1))+1;for(var Q=V;Q<v;++Q)ef(this,Q,l);var J=this.doc.sel.ranges;A.ch==0&&p.length==J.length&&J[E].from().ch>0&&Ay(this.doc,E,new mt(A,J[E].to()),Ze)}}}),getTokenAt:function(l,p){return VD(this,l,p)},getLineTokens:function(l,p){return VD(this,oe(l),p,!0)},getTokenTypeAt:function(l){l=_e(this.doc,l);var p=MD(this,Ae(this.doc,l.line)),v=0,E=(p.length-1)/2,O=l.ch,A;if(O==0)A=p[2];else for(;;){var x=v+E>>1;if((x?p[x*2-1]:0)>=O)E=x;else if(p[x*2+1]<O)v=x+1;else{A=p[x*2+2];break}}var V=A?A.indexOf("overlay "):-1;return V<0?A:V==0?null:A.slice(0,V-1)},getModeAt:function(l){var p=this.doc.mode;return p.innerMode?i.innerMode(p,this.getTokenAt(l).state).mode:p},getHelper:function(l,p){return this.getHelpers(l,p)[0]},getHelpers:function(l,p){var v=[];if(!f.hasOwnProperty(p))return v;var E=f[p],O=this.getModeAt(l);if(typeof O[p]=="string")E[O[p]]&&v.push(E[O[p]]);else if(
2021-07-31 23:49:48 -07:00
` ,le=rt(ae,Y)?"w":J&&ae== `
2021-08-30 08:13:49 -07:00
` ?"n":!J||/ \s /.test(ae)?null:"p";if(J&&!re&&!le&&(le="s"),Q&&Q!=le){f<0&&(f=1,V(),u.sticky="after");break}if(le&&(Q=le),f>0&&!V(!re))break}var he=nh(i,u,v,E,!0);return K(v,he)&&(he.hitSide=!0),he}function RC(i,u,f,l){var p=i.doc,v=u.left,E;if(l=="page"){var O=Math.min(i.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),A=Math.max(O-.5*Ts(i.display),3);E=(f>0?u.bottom:u.top)+f*A}else l=="line"&&(E=f>0?u.bottom+3:u.top-3);for(var x;x=cy(i,v,E),!!x.outside;){if(f<0?E<=0:E>=p.height){x.hitSide=!0;break}E+=f*5}return x}var kt=function(i){this.cm=i,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new vt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};kt.prototype.init=function(i){var u=this,f=this,l=f.cm,p=f.div=i.lineDiv;p.contentEditable=!0,xC(p,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function v(O){for(var A=O.target;A;A=A.parentNode){if(A==p)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(A.className))break}return!1}R(p,"paste",function(O){!v(O)||Qe(l,O)||NC(O,l)||c<=11&&setTimeout(_r(l,function(){return u.updateFromDOM()}),20)}),R(p,"compositionstart",function(O){u.composing={data:O.data,done:!1}}),R(p,"compositionupdate",function(O){u.composing||(u.composing={data:O.data,done:!1})}),R(p,"compositionend",function(O){u.composing&&(O.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),R(p,"touchstart",function(){return f.forceCompositionEnd()}),R(p,"input",function(){u.composing||u.readFromDOMSoon()});function E(O){if(!(!v(O)||Qe(l,O))){if(l.somethingSelected())lh({lineWise:!1,text:l.getSelections()}),O.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var A=LC(l);lh({lineWise:!0,text:A.text}),O.type=="cut"&&l.operation(function(){l.setSelections(A.ranges,0,Ze),l.replaceSelection("",null,"cut")})}else return;if(O.clipboardData){O.clipboardData.clearData();var x=qi.text.join( `
` );if(O.clipboardData.setData("Text",x),O.clipboardData.getData("Text")==x){O.preventDefault();return}}var V=IC(),Q=V.firstChild;l.display.lineSpace.insertBefore(V,l.display.lineSpace.firstChild),Q.value=qi.text.join( `
` );var J=pe();qe(Q),setTimeout(function(){l.display.lineSpace.removeChild(V),J.focus(),J==p&&f.showPrimarySelection()},50)}}R(p,"copy",E),R(p,"cut",E)},kt.prototype.screenReaderLabelChanged=function(i){i?this.div.setAttribute("aria-label",i):this.div.removeAttribute("aria-label")},kt.prototype.prepareSelection=function(){var i=_k(this.cm,!1);return i.focus=pe()==this.div,i},kt.prototype.showSelection=function(i,u){!i||!this.cm.display.view.length||((i.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(i))},kt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},kt.prototype.showPrimarySelection=function(){var i=this.getSelection(),u=this.cm,f=u.doc.sel.primary(),l=f.from(),p=f.to();if(u.display.viewTo==u.display.viewFrom||l.line>=u.display.viewTo||p.line<u.display.viewFrom){i.removeAllRanges();return}var v=ch(u,i.anchorNode,i.anchorOffset),E=ch(u,i.focusNode,i.focusOffset);if(!(v&&!v.bad&&E&&!E.bad&&I(Be(v,E),l)==0&&I(se(v,E),p)==0)){var O=u.display.view,A=l.line>=u.display.viewFrom&&FC(u,l)||{node:O[0].measure.map[2],offset:0},x=p.line<u.display.viewTo&&FC(u,p);if(!x){var V=O[O.length-1].measure,Q=V.maps?V.maps[V.maps.length-1]:V.map;x={node:Q[Q.length-1],offset:Q[Q.length-2]-Q[Q.length-3]}}if(!A||!x){i.removeAllRanges();return}var J=i.rangeCount&&i.getRangeAt(0),Y;try{Y=ce(A.node,A.offset,x.offset,x.node)}catch(re){}Y&&(!r&&u.state.focused?(i.collapse(A.node,A.offset),Y.collapsed||(i.removeAllRanges(),i.addRange(Y))):(i.removeAllRanges(),i.addRange(Y)),J&&i.anchorNode==null?i.addRange(J):r&&this.startGracePeriod()),this.rememberSelection()}},kt.prototype.startGracePeriod=function(){var i=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){i.gracePeriod=!1,i.selectionChanged()&&i.cm.operation(function(){return i.cm.curOp.selectionChanged=!0})},20)},kt.prototype.showMultipleSelections=function(i){G(this.cm.display.cursorDiv,i.cursors),G(this.cm.display.selectionDiv,i.selection)},kt.prototype.rememberSelection=function(){var i=this.getSelection();this.lastAnchorNode=i.anchorNode,this.lastAnchorOffset=i.anchorOffset,this.lastFocusNode=i.focusNode,this.lastFocusOffset=i.focusOffset},kt.prototype.selectionInEditor=function(){var i=this.getSelection();if(!i.rangeCount)return!1;var u=i.getRangeAt(0).commonAncestorContainer;return ke(this.div,u)},kt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||pe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},kt.prototype.blur=function(){this.div.blur()},kt.prototype.getField=function(){return this.div},kt.prototype.supportsTouch=function(){return!0},kt.prototype.receivedFocus=function(){var i=this;this.selectionInEditor()?this.pollSelection():Ln(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function u(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},kt.prototype.selectionChanged=function(){var i=this.getSelection();return i.anchorNode!=this.lastAnchorNode||i.anchorOffset!=this.lastAnchorOffset||i.focusNode!=this.lastFocusNode||i.focusOffset!=this.lastFocusOffset},kt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var i=this.getSelection(),u=this.cm;if(y&&m&&this.cm.display.gutterSpecs.length&&WB(i.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var f=ch(u,i.anchorNode,i.anchorOffset),l=ch(u,i.focusNode,i.focusOffset);f&&l&&Ln(u,function(){Ur(u.doc,co(f,l),Ze),(f.bad||l.bad)&&(u.curOp.selectionChanged=!0)})}}},kt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var i=this.cm,u=i.display,f=i.doc.sel.primary(),l=f.from(),p=f.to();if(l.ch==0&&l.line>i.firstLine()&&(l=oe(l.line-1,Ae(i.doc,l.line-1).length)),p.ch==Ae(i.doc,p.line).text.length&&p.line<i.lastLine()&&(p=oe(p.line+1,0)),l.line<u
` ),qe(p))}else return;E.type=="cut"&&(l.state.cutIncoming=+new Date)}}R(p,"cut",v),R(p,"copy",v),R(i.scroller,"paste",function(E){if(!(ja(i,E)||Qe(l,E))){if(!p.dispatchEvent){l.state.pasteIncoming=+new Date,f.focus();return}var O=new Event("paste");O.clipboardData=E.clipboardData,p.dispatchEvent(O)}}),R(i.lineSpace,"selectstart",function(E){ja(i,E)||Rt(E)}),R(p,"compositionstart",function(){var E=l.getCursor("from");f.composing&&f.composing.range.clear(),f.composing={start:E,range:l.markText(E,l.getCursor("to"),{className:"CodeMirror-composing"})}}),R(p,"compositionend",function(){f.composing&&(f.poll(),f.composing.range.clear(),f.composing=null)})},ir.prototype.createField=function(i){this.wrapper=IC(),this.textarea=this.wrapper.firstChild},ir.prototype.screenReaderLabelChanged=function(i){i?this.textarea.setAttribute("aria-label",i):this.textarea.removeAttribute("aria-label")},ir.prototype.prepareSelection=function(){var i=this.cm,u=i.display,f=i.doc,l=_k(i);if(i.options.moveInputWithCursor){var p=ji(i,f.sel.primary().head,"div"),v=u.wrapper.getBoundingClientRect(),E=u.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,p.top+E.top-v.top)),l.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,p.left+E.left-v.left))}return l},ir.prototype.showSelection=function(i){var u=this.cm,f=u.display;G(f.cursorDiv,i.cursors),G(f.selectionDiv,i.selection),i.teTop!=null&&(this.wrapper.style.top=i.teTop+"px",this.wrapper.style.left=i.teLeft+"px")},ir.prototype.reset=function(i){if(!(this.contextMenuPending||this.composing)){var u=this.cm;if(u.somethingSelected()){this.prevInput="";var f=u.getSelection();this.textarea.value=f,u.state.focused&&qe(this.textarea),s&&c>=9&&(this.hasSelection=f)}else i||(this.prevInput=this.textarea.value="",s&&c>=9&&(this.hasSelection=null))}},ir.prototype.getField=function(){return this.textarea},ir.prototype.supportsTouch=function(){return!1},ir.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||pe()!=this.textarea))try{this.textarea.focus()}catch(i){}},ir.prototype.blur=function(){this.textarea.blur()},ir.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ir.prototype.receivedFocus=function(){this.slowPoll()},ir.prototype.slowPoll=function(){var i=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){i.poll(),i.cm.state.focused&&i.slowPoll()})},ir.prototype.fastPoll=function(){var i=!1,u=this;u.pollingFast=!0;function f(){var l=u.poll();!l&&!i?(i=!0,u.polling.set(60,f)):(u.pollingFast=!1,u.slowPoll())}u.polling.set(20,f)},ir.prototype.poll=function(){var i=this,u=this.cm,f=this.textarea,l=this.prevInput;if(this.contextMenuPending||!u.state.focused||Rp(f)&&!l&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var p=f.value;if(p==l&&!u.somethingSelected())return!1;if(s&&c>=9&&this.hasSelection===p||g&&/[ \u f700- \u f7ff]/.test(p))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var v=p.charCodeAt(0);if(v==8203&&!l&&(l=" \u 200B"),v==8666)return this.reset(),this.cm.execCommand("undo")}for(var E=0,O=Math.min(l.length,p.length);E<O&&l.charCodeAt(E)==p.charCodeAt(E);)++E;return Ln(u,function(){My(u,p.slice(E),l.length-E,null,i.composing?"*compose":null),p.length>1e3||p.indexOf( `
` )>-1?f.value=i.prevInput="":i.prevInput=p,i.composing&&(i.composing.range.clear(),i.composing.range=u.markText(i.composing.start,u.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ir.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ir.prototype.onKeyPress=function(){s&&c>=9&&(this.hasSelection=null),this.fastPoll()},ir.prototype.onContextMenu=function(i){var u=this,f=u.cm,l=f.display,p=u.textarea;u.contextMenuPending&&u.contextMenuPending();var v=hu(f,i),E=l.scroller.scrollTop;if(!v||T)return;var O=f.options.resetSelectionOnContextMenu;O&&f.doc.sel.contains(v)==-1&&_r(f,Ur)(f.doc,co(v),Ze);var A=p.style.cssText,x=u.wrapper.style.cssText,V=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText="position: static",p.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
2021-07-31 23:49:48 -07:00
top : ` +(i.clientY-V.top-5)+"px; left: "+(i.clientX-V.left-5)+ ` px ;
z - index : 1000 ; background : ` +(s?"rgba(255, 255, 255, .05)":"transparent")+ ` ;
2021-08-30 08:13:49 -07:00
outline : none ; border - width : 0 ; outline : none ; overflow : hidden ; opacity : . 05 ; filter : alpha ( opacity = 5 ) ; ` ;var Q;d&&(Q=window.scrollY),l.input.focus(),d&&window.scrollTo(null,Q),l.input.reset(),f.somethingSelected()||(p.value=u.prevInput=" "),u.contextMenuPending=Y,l.selForContextMenu=f.doc.sel,clearTimeout(l.detectingSelectAll);function J(){if(p.selectionStart!=null){var ae=f.somethingSelected(),le=" \u 200B"+(ae?p.value:"");p.value=" \u 21DA",p.value=le,u.prevInput=ae?"":" \u 200B",p.selectionStart=1,p.selectionEnd=le.length,l.selForContextMenu=f.doc.sel}}function Y(){if(u.contextMenuPending==Y&&(u.contextMenuPending=!1,u.wrapper.style.cssText=x,p.style.cssText=A,s&&c<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=E),p.selectionStart!=null)){(!s||s&&c<9)&&J();var ae=0,le=function(){l.selForContextMenu==f.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&u.prevInput==" \u 200B"?_r(f, $ k)(f):ae++<10?l.detectingSelectAll=setTimeout(le,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(le,200)}}if(s&&c>=9&&J(),F){ci(i);var re=function(){ie(window,"mouseup",re),setTimeout(Y,20)};R(window,"mouseup",re)}else setTimeout(Y,50)},ir.prototype.readOnlyChanged=function(i){i||this.reset(),this.textarea.disabled=i=="nocursor",this.textarea.readOnly=!!i},ir.prototype.setUneditable=function(){},ir.prototype.needsContentAttribute=!1;function XB(i,u){if(u=u?at(u):{},u.value=i.value,!u.tabindex&&i.tabIndex&&(u.tabindex=i.tabIndex),!u.placeholder&&i.placeholder&&(u.placeholder=i.placeholder),u.autofocus==null){var f=pe();u.autofocus=f==i||i.getAttribute("autofocus")!=null&&f==document.body}function l(){i.value=O.getValue()}var p;if(i.form&&(R(i.form,"submit",l),!u.leaveSubmitMethodAlone)){var v=i.form;p=v.submit;try{var E=v.submit=function(){l(),v.submit=p,v.submit(),v.submit=E}}catch(A){}}u.finishInit=function(A){A.save=l,A.getTextArea=function(){return i},A.toTextArea=function(){A.toTextArea=isNaN,l(),i.parentNode.removeChild(A.getWrapperElement()),i.style.display="",i.form&&(ie(i.form,"submit",l),!u.leaveSubmitMethodAlone&&typeof i.form.submit=="function"&&(i.form.submit=p))}},i.style.display="none";var O=Gt(function(A){return i.parentNode.insertBefore(A,i.nextSibling)},u);return O}function ZB(i){i.off=ie,i.on=R,i.wheelEventPixels=aB,i.Doc=gn,i.splitLines=_c,i.countColumn=st,i.findColumn=Mt,i.isWordChar=We,i.Pass=Ue,i.signal=fe,i.Line=ys,i.changeEnd=fo,i.scrollbarModel=Nk,i.Pos=oe,i.cmpPos=I,i.modes=fi,i.mimeModes=Kn,i.resolveMode=vs,i.getMode=gs,i.modeExtensions=Fi,i.extendMode=Pi,i.copyState=Hn,i.startState=kc,i.innerMode=Dc,i.commands=Jc,i.keyMap=Ma,i.keyName=vC,i.isModifierKey=pC,i.lookupKey=Ls,i.normalizeKeyMap=OB,i.StringStream= $ t,i.SharedTextMarker=zc,i.TextMarker=ho,i.LineWidget=Hc,i.e_preventDefault=Rt,i.e_stopPropagation=Ye,i.e_stop=ci,i.addClass=we,i.contains=ke,i.rmClass=B,i.keyNames=vo}GB(Gt),zB(Gt);var $ B="iter insert remove copy getEditor constructor".split(" ");for(var fh in gn.prototype)gn.prototype.hasOwnProperty(fh)&&Oe( $ B,fh)<0&&(Gt.prototype[fh]=function(i){return function(){return i.apply(this.doc,arguments)}}(gn.prototype[fh]));return nr(gn),Gt.inputStyles={textarea:ir,contenteditable:kt},Gt.defineMode=function(i){!Gt.defaults.mode&&i!="null"&&(Gt.defaults.mode=i),Pp.apply(this,arguments)},Gt.defineMIME=Ra,Gt.defineMode("null",function(){return{token:function(i){return i.skipToEnd()}}}),Gt.defineMIME("text/plain","null"),Gt.defineExtension=function(i,u){Gt.prototype[i]=u},Gt.defineDocExtension=function(i,u){gn.prototype[i]=u},Gt.fromTextArea=XB,ZB(Gt),Gt.version="5.62.3",Gt})});var op=U((pj,hj)=>{(function(e){typeof pj=="object"&&typeof hj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t="CodeMirror-hint",r="CodeMirror-hint-active";e.showHint=function(S,y,_){if(!y)return S.showHint(_);_&&_.async&&(y.async=!0);var g={hint:y};if(_)for(var k in _)g[k]=_[k];return S.showHint(g)},e.defineExtension("showHint",function(S){S=s(this,this.getCursor("start"),S);var y=this.listSelections();if(!(y.length>1)){if(
` ).indexOf(F)>-1)return!1;var ke=B.lastIndexOf(D,d.ch),pe=ke==-1?-1:B.slice(0,d.ch).indexOf(F,ke+D.length);if(ke!=-1&&pe!=-1&&pe+F.length!=d.ch)return!1;pe=G.indexOf(F,h.ch);var we=G.slice(h.ch).lastIndexOf(D,pe-h.ch);return ke=pe==-1||we==-1?-1:h.ch+we,pe!=-1&&ke!=-1&&ke!=h.ch?!1:(T.operation(function(){T.replaceRange("",n(C,M-(_&&G.slice(M-_.length,M)==_?_.length:0)),n(C,M+F.length));var Ne=z+D.length;if(_&&B.slice(Ne,Ne+_.length)==_&&(Ne+=_.length),T.replaceRange("",n(L,z),n(L,Ne)),P)for(var qe=L+1;qe<=C;++qe){var ht=T.getLine(qe),at=ht.indexOf(P);if(!(at==-1||r.test(ht.slice(0,at)))){var st=at+P.length;_&&ht.slice(st,st+_.length)==_&&(st+=_.length),T.replaceRange("",n(qe,at),n(qe,st))}}}),!0)})})});var up=U((yj,bj)=>{(function(e){typeof yj=="object"&&typeof bj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){var t=/MSIE \d /.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),r=e.Pos,n={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function a(m){return m&&m.bracketRegex||/[(){}[ \] ]/}function o(m,T,b){var C=m.getLineHandle(T.line),L=T.ch-1,S=b&&b.afterCursor;S==null&&(S=/(^| )cm-fat-cursor( $ | )/.test(m.getWrapperElement().className));var y=a(b),_=!S&&L>=0&&y.test(C.text.charAt(L))&&n[C.text.charAt(L)]||y.test(C.text.charAt(L+1))&&n[C.text.charAt(++L)];if(!_)return null;var g=_.charAt(1)==">"?1:-1;if(b&&b.strict&&g>0!=(L==T.ch))return null;var k=m.getTokenTypeAt(r(T.line,L+1)),N=s(m,r(T.line,L+(g>0?1:0)),g,k,b);return N==null?null:{from:r(T.line,L),to:N&&N.pos,match:N&&N.ch==_.charAt(0),forward:g>0}}function s(m,T,b,C,L){for(var S=L&&L.maxScanLineLength||1e4,y=L&&L.maxScanLines||1e3,_=[],g=a(L),k=b>0?Math.min(T.line+y,m.lastLine()+1):Math.max(m.firstLine()-1,T.line-y),N=T.line;N!=k;N+=b){var w=m.getLine(N);if(!!w){var D=b>0?0:w.length-1,F=b>0?w.length:-1;if(!(w.length>S))for(N==T.line&&(D=T.ch-(b<0?1:0));D!=F;D+=b){var P=w.charAt(D);if(g.test(P)&&(C===void 0||(m.getTokenTypeAt(r(N,D+1))||"")==(C||""))){var B=n[P];if(B&&B.charAt(1)==">"==b>0)_.push(P);else if(_.length)_.pop();else return{pos:r(N,D),ch:P}}}}}return N-b==(b>0?m.lastLine():m.firstLine())?!1:null}function c(m,T,b){for(var C=m.state.matchBrackets.maxHighlightLineLength||1e3,L=b&&b.highlightNonMatching,S=[],y=m.listSelections(),_=0;_<y.length;_++){var g=y[_].empty()&&o(m,y[_].head,b);if(g&&(g.match||L!==!1)&&m.getLine(g.from.line).length<=C){var k=g.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";S.push(m.markText(g.from,r(g.from.line,g.from.ch+1),{className:k})),g.to&&m.getLine(g.to.line).length<=C&&S.push(m.markText(g.to,r(g.to.line,g.to.ch+1),{className:k}))}}if(S.length){t&&m.state.focused&&m.focus();var N=function(){m.operation(function(){for(var w=0;w<S.length;w++)S[w].clear()})};if(T)setTimeout(N,800);else return N}}function d(m){m.operation(function(){m.state.matchBrackets.currentlyHighlighted&&(m.state.matchBrackets.currentlyHighlighted(),m.state.matchBrackets.currentlyHighlighted=null),m.state.matchBrackets.currentlyHighlighted=c(m,!1,m.state.matchBrackets)})}function h(m){m.state.matchBrackets&&m.state.matchBrackets.currentlyHighlighted&&(m.state.matchBrackets.currentlyHighlighted(),m.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,function(m,T,b){b&&b!=e.Init&&(m.off("cursorActivity",d),m.off("focus",d),m.off("blur",h),h(m)),T&&(m.state.matchBrackets=typeof T=="object"?T:{},m.on("cursorActivity",d),m.on("focus",d),m.on("blur",h))}),e.defineExtension("matchBrackets",function(){c(this,!0)}),e.defineExtension("findMatchingBracket",function(m,T,b){return(b||typeof T=="boolean")&&(b?(b.strict=T,T=b):T=T?{strict:!0}:null),o(this,m,T)}),e.defineExtension("scanForBracket",function(m,T,b,C){return s(this,m,T,b,C)})})});var mm=U((Ej,Tj)=>{(function(e){typeof Ej=="object"&&typeof Tj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){var t={pairs: ` ( ) [ ] { } '' "" ` ,closeBefore: ` ) ] } ' ":;>`,triples:" ",explode:" [ ] { } " } , r = e . Pos ;
` ;S.replaceSelection(w+w,null),m(S,-1),g=S.listSelections();for(var D=0;D<g.length;D++){var F=g[D].head.line;S.indentLine(F,null,!0),S.indentLine(F+1,null,!0)}})}function m(S,y){for(var _=[],g=S.listSelections(),k=0,N=0;N<g.length;N++){var w=g[N];w.head==S.getCursor()&&(k=N);var D=w.head.ch||y>0?{line:w.head.line,ch:w.head.ch+y}:{line:w.head.line-1};_.push({anchor:D,head:D})}S.setSelections(_,k)}function T(S){var y=e.cmpPos(S.anchor,S.head)>0;return{anchor:new r(S.anchor.line,S.anchor.ch+(y?-1:1)),head:new r(S.head.line,S.head.ch+(y?1:-1))}}function b(S,y){var _=c(S);if(!_||S.getOption("disableInput"))return e.Pass;var g=n(_,"pairs"),k=g.indexOf(y);if(k==-1)return e.Pass;for(var N=n(_,"closeBefore"),w=n(_,"triples"),D=g.charAt(k+1)==y,F=S.listSelections(),P=k%2==0,B,z=0;z<F.length;z++){var G=F[z],M=G.head,j,ce=S.getRange(M,r(M.line,M.ch+1));if(P&&!G.empty())j="surround";else if((D||!P)&&ce==y)D&&L(S,M)?j="both":w.indexOf(y)>=0&&S.getRange(M,r(M.line,M.ch+3))==y+y+y?j="skipThree":j="skip";else if(D&&M.ch>1&&w.indexOf(y)>=0&&S.getRange(r(M.line,M.ch-2),M)==y+y){if(M.ch>2&&/ \b string/.test(S.getTokenTypeAt(r(M.line,M.ch-2))))return e.Pass;j="addFour"}else if(D){var ke=M.ch==0?" ":S.getRange(r(M.line,M.ch-1),M);if(!e.isWordChar(ce)&&ke!=y&&!e.isWordChar(ke))j="both";else return e.Pass}else if(P&&(ce.length===0||/ \s /.test(ce)||N.indexOf(ce)>-1))j="both";else return e.Pass;if(!B)B=j;else if(B!=j)return e.Pass}var pe=k%2?g.charAt(k-1):y,we=k%2?y:g.charAt(k+1);S.operation(function(){if(B=="skip")m(S,1);else if(B=="skipThree")m(S,3);else if(B=="surround"){for(var Ne=S.getSelections(),qe=0;qe<Ne.length;qe++)Ne[qe]=pe+Ne[qe]+we;S.replaceSelections(Ne,"around"),Ne=S.listSelections().slice();for(var qe=0;qe<Ne.length;qe++)Ne[qe]=T(Ne[qe]);S.setSelections(Ne)}else B=="both"?(S.replaceSelection(pe+we,null),S.triggerElectric(pe+we),m(S,-1)):B=="addFour"&&(S.replaceSelection(pe+pe+pe+pe,"before"),m(S,1))})}function C(S,y){var _=S.getRange(r(y.line,y.ch-1),r(y.line,y.ch+1));return _.length==2?_:null}function L(S,y){var _=S.getTokenAt(r(y.line,y.ch+1));return/ \b string/.test(_.type)&&_.start==y.ch&&(y.ch==0||!/ \b string/.test(S.getTokenTypeAt(y)))}})});var Dj=U((_j,Sj)=>{(function(e){typeof _j=="object"&&typeof Sj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";function t(o,s,c,d){if(c&&c.call){var h=c;c=null}else var h=a(o,c,"rangeFinder");typeof s=="number"&&(s=e.Pos(s,0));var m=a(o,c,"minFoldSize");function T(S){var y=h(o,s);if(!y||y.to.line-y.from.line<m)return null;if(d==="fold")return y;for(var _=o.findMarksAt(y.from),g=0;g<_.length;++g)if(_[g].__isFold){if(!S)return null;y.cleared=!0,_[g].clear()}return y}var b=T(!0);if(a(o,c,"scanUp"))for(;!b&&s.line>o.firstLine();)s=e.Pos(s.line-1,0),b=T(!1);if(!(!b||b.cleared||d==="unfold")){var C=r(o,c,b);e.on(C,"mousedown",function(S){L.clear(),e.e_preventDefault(S)});var L=o.markText(b.from,b.to,{replacedWith:C,clearOnEnter:a(o,c,"clearOnEnter"),__isFold:!0});L.on("clear",function(S,y){e.signal(o,"unfold",o,S,y)}),e.signal(o,"fold",o,b.from,b.to)}}function r(o,s,c){var d=a(o,s,"widget");if(typeof d=="function"&&(d=d(c.from,c.to)),typeof d=="string"){var h=document.createTextNode(d);d=document.createElement("span"),d.appendChild(h),d.className="CodeMirror-foldmarker"}else d&&(d=d.cloneNode(!0));return d}e.newFoldFunction=function(o,s){return function(c,d){t(c,d,{rangeFinder:o,widget:s})}},e.defineExtension("foldCode",function(o,s,c){t(this,o,s,c)}),e.defineExtension("isFolded",function(o){for(var s=this.findMarksAt(o),c=0;c<s.length;++c)if(s[c].__isFold)return!0}),e.commands.toggleFold=function(o){o.foldCode(o.getCursor())},e.commands.fold=function(o){o.foldCode(o.getCursor(),null,"fold")},e.commands.unfold=function(o){o.foldCode(o.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(o){o.operation(function(){for(var s=o.firstLine(),c=o.lastLine();s<=c;s++)o.foldCode(e.Pos(s,0),{scanUp:!1},"fold")})},e.commands.unfoldAll=function(o){o.operation(function(){for(var s=o.firstLine(),c=o.lastLine();s<=c;s++)o
` +P}N=N*2,_.lastIndex=g.ch;var B=_.exec(k);if(B){var z=k.slice(0,B.index).split( `
2021-07-31 23:49:48 -07:00
` ),G=B[0].split( `
2021-08-30 08:13:49 -07:00
` ),M=g.line+z.length-1,j=z[z.length-1].length;return{from:t(M,j),to:t(M+G.length-1,G.length==1?j+G[0].length:G[G.length-1].length),match:B}}}}function c(y,_,g){for(var k,N=0;N<=y.length;){_.lastIndex=N;var w=_.exec(y);if(!w)break;var D=w.index+w[0].length;if(D>y.length-g)break;(!k||D>k.index+k[0].length)&&(k=w),N=w.index+1}return k}function d(y,_,g){_=n(_,"g");for(var k=g.line,N=g.ch,w=y.firstLine();k>=w;k--,N=-1){var D=y.getLine(k),F=c(D,_,N<0?0:D.length-N);if(F)return{from:t(k,F.index),to:t(k,F.index+F[0].length),match:F}}}function h(y,_,g){if(!a(_))return d(y,_,g);_=n(_,"gm");for(var k,N=1,w=y.getLine(g.line).length-g.ch,D=g.line,F=y.firstLine();D>=F;){for(var P=0;P<N&&D>=F;P++){var B=y.getLine(D--);k=k==null?B:B+ `
` +k}N*=2;var z=c(k,_,w);if(z){var G=k.slice(0,z.index).split( `
2021-07-31 23:49:48 -07:00
` ),M=z[0].split( `
2021-08-30 08:13:49 -07:00
` ),j=D+G.length,ce=G[G.length-1].length;return{from:t(j,ce),to:t(j+M.length-1,M.length==1?ce+M[0].length:M[M.length-1].length),match:z}}}}var m,T;String.prototype.normalize?(m=function(y){return y.normalize("NFD").toLowerCase()},T=function(y){return y.normalize("NFD")}):(m=function(y){return y.toLowerCase()},T=function(y){return y});function b(y,_,g,k){if(y.length==_.length)return g;for(var N=0,w=g+Math.max(0,y.length-_.length);;){if(N==w)return N;var D=N+w>>1,F=k(y.slice(0,D)).length;if(F==g)return D;F>g?w=D:N=D+1}}function C(y,_,g,k){if(!_.length)return null;var N=k?m:T,w=N(_).split(/ \r | \n \r ?/);e:for(var D=g.line,F=g.ch,P=y.lastLine()+1-w.length;D<=P;D++,F=0){var B=y.getLine(D).slice(F),z=N(B);if(w.length==1){var G=z.indexOf(w[0]);if(G==-1)continue e;var g=b(B,z,G,N)+F;return{from:t(D,b(B,z,G,N)+F),to:t(D,b(B,z,G+w[0].length,N)+F)}}else{var M=z.length-w[0].length;if(z.slice(M)!=w[0])continue e;for(var j=1;j<w.length-1;j++)if(N(y.getLine(D+j))!=w[j])continue e;var ce=y.getLine(D+w.length-1),ke=N(ce),pe=w[w.length-1];if(ke.slice(0,pe.length)!=pe)continue e;return{from:t(D,b(B,z,M,N)+F),to:t(D+w.length-1,b(ce,ke,pe.length,N))}}}}function L(y,_,g,k){if(!_.length)return null;var N=k?m:T,w=N(_).split(/ \r | \n \r ?/);e:for(var D=g.line,F=g.ch,P=y.firstLine()-1+w.length;D>=P;D--,F=-1){var B=y.getLine(D);F>-1&&(B=B.slice(0,F));var z=N(B);if(w.length==1){var G=z.lastIndexOf(w[0]);if(G==-1)continue e;return{from:t(D,b(B,z,G,N)),to:t(D,b(B,z,G+w[0].length,N))}}else{var M=w[w.length-1];if(z.slice(0,M.length)!=M)continue e;for(var j=1,g=D-w.length+1;j<w.length-1;j++)if(N(y.getLine(g+j))!=w[j])continue e;var ce=y.getLine(D+1-w.length),ke=N(ce);if(ke.slice(ke.length-w[0].length)!=w[0])continue e;return{from:t(D+1-w.length,b(ce,ke,ce.length-w[0].length,N)),to:t(D,b(B,z,M.length,N))}}}}function S(y,_,g,k){this.atOccurrence=!1,this.doc=y,g=g?y.clipPos(g):t(0,0),this.pos={from:g,to:g};var N;typeof k=="object"?N=k.caseFold:(N=k,k=null),typeof _=="string"?(N==null&&(N=!1),this.matches=function(w,D){return(w?L:C)(y,_,D,N)}):(_=n(_,"gm"),!k||k.multiline!==!1?this.matches=function(w,D){return(w?h:s)(y,_,D)}:this.matches=function(w,D){return(w?d:o)(y,_,D)})}S.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(y){for(var _=this.matches(y,this.doc.clipPos(y?this.pos.from:this.pos.to));_&&e.cmpPos(_.from,_.to)==0;)y?_.from.ch?_.from=t(_.from.line,_.from.ch-1):_.from.line==this.doc.firstLine()?_=null:_=this.matches(y,this.doc.clipPos(t(_.from.line-1))):_.to.ch<this.doc.getLine(_.to.line).length?_.to=t(_.to.line,_.to.ch+1):_.to.line==this.doc.lastLine()?_=null:_=this.matches(y,t(_.to.line+1,0));if(_)return this.pos=_,this.atOccurrence=!0,this.pos.match||!0;var g=t(y?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:g,to:g},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(y,_){if(!!this.atOccurrence){var g=e.splitLines(y);this.doc.replaceRange(g,this.pos.from,this.pos.to,_),this.pos.to=t(this.pos.from.line+g.length-1,g[g.length-1].length+(g.length==1?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(y,_,g){return new S(this.doc,y,_,g)}),e.defineDocExtension("getSearchCursor",function(y,_,g){return new S(this,y,_,g)}),e.defineExtension("selectMatches",function(y,_){for(var g=[],k=this.getSearchCursor(y,this.getCursor("from"),_);k.findNext()&&!(e.cmpPos(k.to(),this.getCursor("to"))>0);)g.push({anchor:k.from(),head:k.to()});g.length&&this.setSelections(g,0)})})});var ls=U((Lj,xj)=>{(function(e){typeof Lj=="object"&&typeof xj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){function t(n,a,o){var s=n.getWrapperElement(),c;return c=s.appendChild(document.createElement("div")),o?c.className="CodeMirror-dialog CodeMirror-dialog-bottom":c.className="CodeMirror-dialog CodeMirror-dialog-top",typeof a=="string"?c.innerHTML=a:c.appendChild(a),e.addClass(s,"dialog-opened"),c}function r(n,a){n.state.
` :P=="r"?" \r ":P=="t"?" ":P==" \\ "?" \\ ":F})}function m(D){var F=D.match(/^ \/ (.*) \/ ([a-z]*) $ /);if(F)try{D=new RegExp(F[1],F[2].indexOf("i")==-1?"":"i")}catch(P){}else D=h(D);return(typeof D=="string"?D=="":D.test(""))&&(D=/x^/),D}function T(D,F,P){F.queryText=P,F.query=m(P),D.removeOverlay(F.overlay,a(F.query)),F.overlay=t(F.query,a(F.query)),D.addOverlay(F.overlay),D.showMatchesOnScrollbar&&(F.annotate&&(F.annotate.clear(),F.annotate=null),F.annotate=D.showMatchesOnScrollbar(F.query,a(F.query)))}function b(D,F,P,B){var z=n(D);if(z.query)return C(D,F);var G=D.getSelection()||z.lastQuery;if(G instanceof RegExp&&G.source=="x^"&&(G=null),P&&D.openDialog){var M=null,j=function(ce,ke){e.e_stop(ke),!!ce&&(ce!=z.queryText&&(T(D,z,ce),z.posFrom=z.posTo=D.getCursor()),M&&(M.style.opacity=1),C(D,ke.shiftKey,function(pe,we){var Ne;we.line<3&&document.querySelector&&(Ne=D.display.wrapper.querySelector(".CodeMirror-dialog"))&&Ne.getBoundingClientRect().bottom-4>D.cursorCoords(we,"window").top&&((M=Ne).style.opacity=.4)}))};s(D,y(D),G,j,function(ce,ke){var pe=e.keyName(ce),we=D.getOption("extraKeys"),Ne=we&&we[pe]||e.keyMap[D.getOption("keyMap")][pe];Ne=="findNext"||Ne=="findPrev"||Ne=="findPersistentNext"||Ne=="findPersistentPrev"?(e.e_stop(ce),T(D,n(D),ke),D.execCommand(Ne)):(Ne=="find"||Ne=="findPersistent")&&(e.e_stop(ce),j(ke,ce))}),B&&G&&(T(D,z,G),C(D,F))}else c(D,y(D),"Search for:",G,function(ce){ce&&!z.query&&D.operation(function(){T(D,z,ce),z.posFrom=z.posTo=D.getCursor(),C(D,F)})})}function C(D,F,P){D.operation(function(){var B=n(D),z=o(D,B.query,F?B.posFrom:B.posTo);!z.find(F)&&(z=o(D,B.query,F?e.Pos(D.lastLine()):e.Pos(D.firstLine(),0)),!z.find(F))||(D.setSelection(z.from(),z.to()),D.scrollIntoView({from:z.from(),to:z.to()},20),B.posFrom=z.from(),B.posTo=z.to(),P&&P(z.from(),z.to()))})}function L(D){D.operation(function(){var F=n(D);F.lastQuery=F.query,!!F.query&&(F.query=F.queryText=null,D.removeOverlay(F.overlay),F.annotate&&(F.annotate.clear(),F.annotate=null))})}function S(D,F){var P=D?document.createElement(D):document.createDocumentFragment();for(var B in F)P[B]=F[B];for(var z=2;z<arguments.length;z++){var G=arguments[z];P.appendChild(typeof G=="string"?document.createTextNode(G):G)}return P}function y(D){return S("",null,S("span",{className:"CodeMirror-search-label"},D.phrase("Search:"))," ",S("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",S("span",{style:"color: #888",className:"CodeMirror-search-hint"},D.phrase("(Use /re/ syntax for regexp search)")))}function _(D){return S("",null," ",S("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",S("span",{style:"color: #888",className:"CodeMirror-search-hint"},D.phrase("(Use /re/ syntax for regexp search)")))}function g(D){return S("",null,S("span",{className:"CodeMirror-search-label"},D.phrase("With:"))," ",S("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function k(D){return S("",null,S("span",{className:"CodeMirror-search-label"},D.phrase("Replace?"))," ",S("button",{},D.phrase("Yes"))," ",S("button",{},D.phrase("No"))," ",S("button",{},D.phrase("All"))," ",S("button",{},D.phrase("Stop")))}function N(D,F,P){D.operation(function(){for(var B=o(D,F);B.findNext();)if(typeof F!="string"){var z=D.getRange(B.from(),B.to()).match(F);B.replace(P.replace(/ \$ ( \d )/g,function(G,M){return z[M]}))}else B.replace(P)})}function w(D,F){if(!D.getOption("readOnly")){var P=D.getSelection()||n(D).lastQuery,B=F?D.phrase("Replace all:"):D.phrase("Replace:"),z=S("",null,S("span",{className:"CodeMirror-search-label"},B),_(D));c(D,z,B,P,function(G){!G||(G=m(G),c(D,g(D),D.phrase("Replace with:"),"",function(M){if(M=h(M),F)N(D,G,M);else{L(D);var j=o(D,G,D.getCursor("from")),ce=function(){var pe=j.from(),we;!(we=j.findNext())&&(j=o(D,G),!(we=j.findNext())||pe&&j.from().line==pe.line&&j.from().ch==pe.ch)||(D.setSelection(j.from(),j.to()),D.scrollIntoView({from:j.from(),to:j.to()}),d(D,k(D),D.phrase("Replace?"),[function(){ke(we)},ce,function(){N(D,G,M)}]))},ke=function(pe){j.replace(typeof G=="string"?
` ,B,null,"+insertLine"),g.indentLine(B.line,null,!0),w.push({head:B,anchor:B}),D=P.line+1}}g.setSelections(w)}),g.execCommand("indentAuto")}t.insertLineAfter=function(g){return o(g,!1)},t.insertLineBefore=function(g){return o(g,!0)};function s(g,k){for(var N=k.ch,w=N,D=g.getLine(k.line);N&&e.isWordChar(D.charAt(N-1));)--N;for(;w<D.length&&e.isWordChar(D.charAt(w));)++w;return{from:r(k.line,N),to:r(k.line,w),word:D.slice(N,w)}}t.selectNextOccurrence=function(g){var k=g.getCursor("from"),N=g.getCursor("to"),w=g.state.sublimeFindFullWord==g.doc.sel;if(e.cmpPos(k,N)==0){var D=s(g,k);if(!D.word)return;g.setSelection(D.from,D.to),w=!0}else{var F=g.getRange(k,N),P=w?new RegExp(" \\ b"+F+" \\ b"):F,B=g.getSearchCursor(P,N),z=B.findNext();if(z||(B=g.getSearchCursor(P,r(g.firstLine(),0)),z=B.findNext()),!z||d(g.listSelections(),B.from(),B.to()))return;g.addSelection(B.from(),B.to())}w&&(g.state.sublimeFindFullWord=g.doc.sel)},t.skipAndSelectNextOccurrence=function(g){var k=g.getCursor("anchor"),N=g.getCursor("head");t.selectNextOccurrence(g),e.cmpPos(k,N)!=0&&g.doc.setSelections(g.doc.listSelections().filter(function(w){return w.anchor!=k||w.head!=N}))};function c(g,k){for(var N=g.listSelections(),w=[],D=0;D<N.length;D++){var F=N[D],P=g.findPosV(F.anchor,k,"line",F.anchor.goalColumn),B=g.findPosV(F.head,k,"line",F.head.goalColumn);P.goalColumn=F.anchor.goalColumn!=null?F.anchor.goalColumn:g.cursorCoords(F.anchor,"div").left,B.goalColumn=F.head.goalColumn!=null?F.head.goalColumn:g.cursorCoords(F.head,"div").left;var z={anchor:P,head:B};w.push(F),w.push(z)}g.setSelections(w)}t.addCursorToPrevLine=function(g){c(g,-1)},t.addCursorToNextLine=function(g){c(g,1)};function d(g,k,N){for(var w=0;w<g.length;w++)if(e.cmpPos(g[w].from(),k)==0&&e.cmpPos(g[w].to(),N)==0)return!0;return!1}var h="(){}[]";function m(g){for(var k=g.listSelections(),N=[],w=0;w<k.length;w++){var D=k[w],F=D.head,P=g.scanForBracket(F,-1);if(!P)return!1;for(;;){var B=g.scanForBracket(F,1);if(!B)return!1;if(B.ch==h.charAt(h.indexOf(P.ch)+1)){var z=r(P.pos.line,P.pos.ch+1);if(e.cmpPos(z,D.from())==0&&e.cmpPos(B.pos,D.to())==0){if(P=g.scanForBracket(P.pos,-1),!P)return!1}else{N.push({anchor:z,head:B.pos});break}}F=r(B.pos.line,B.pos.ch+1)}}return g.setSelections(N),!0}t.selectScope=function(g){m(g)||g.execCommand("selectAll")},t.selectBetweenBrackets=function(g){if(!m(g))return e.Pass};function T(g){return g?/ \b punctuation \b /.test(g)?g:void 0:null}t.goToBracket=function(g){g.extendSelectionsBy(function(k){var N=g.scanForBracket(k.head,1,T(g.getTokenTypeAt(k.head)));if(N&&e.cmpPos(N.pos,k.head)!=0)return N.pos;var w=g.scanForBracket(k.head,-1,T(g.getTokenTypeAt(r(k.head.line,k.head.ch+1))));return w&&r(w.pos.line,w.pos.ch+1)||k.head})},t.swapLineUp=function(g){if(g.isReadOnly())return e.Pass;for(var k=g.listSelections(),N=[],w=g.firstLine()-1,D=[],F=0;F<k.length;F++){var P=k[F],B=P.from().line-1,z=P.to().line;D.push({anchor:r(P.anchor.line-1,P.anchor.ch),head:r(P.head.line-1,P.head.ch)}),P.to().ch==0&&!P.empty()&&--z,B>w?N.push(B,z):N.length&&(N[N.length-1]=z),w=z}g.operation(function(){for(var G=0;G<N.length;G+=2){var M=N[G],j=N[G+1],ce=g.getLine(M);g.replaceRange("",r(M,0),r(M+1,0),"+swapLine"),j>g.lastLine()?g.replaceRange( `
2021-07-31 23:49:48 -07:00
` +ce,r(g.lastLine()),null,"+swapLine"):g.replaceRange(ce+ `
` ,r(j,0),null,"+swapLine")}g.setSelections(D),g.scrollIntoView()})},t.swapLineDown=function(g){if(g.isReadOnly())return e.Pass;for(var k=g.listSelections(),N=[],w=g.lastLine()+1,D=k.length-1;D>=0;D--){var F=k[D],P=F.to().line+1,B=F.from().line;F.to().ch==0&&!F.empty()&&P--,P<w?N.push(P,B):N.length&&(N[N.length-1]=B),w=B}g.operation(function(){for(var z=N.length-2;z>=0;z-=2){var G=N[z],M=N[z+1],j=g.getLine(G);G==g.lastLine()?g.replaceRange("",r(G-1),r(G),"+swapLine"):g.replaceRange("",r(G,0),r(G+1,0),"+swapLine"),g.replaceRange(j+ `
` ,r(M,0),null,"+swapLine")}g.scrollIntoView()})},t.toggleCommentIndented=function(g){g.toggleComment({indent:!0})},t.joinLines=function(g){for(var k=g.listSelections(),N=[],w=0;w<k.length;w++){for(var D=k[w],F=D.from(),P=F.line,B=D.to().line;w<k.length-1&&k[w+1].from().line==B;)B=k[++w].to().line;N.push({start:P,end:B,anchor:!D.empty()&&F})}g.operation(function(){for(var z=0,G=[],M=0;M<N.length;M++){for(var j=N[M],ce=j.anchor&&r(j.anchor.line-z,j.anchor.ch),ke,pe=j.start;pe<=j.end;pe++){var we=pe-z;pe==j.end&&(ke=r(we,g.getLine(we).length+1)),we<g.lastLine()&&(g.replaceRange(" ",r(we),r(we+1,/^ \s */.exec(g.getLine(we+1))[0].length)),++z)}G.push({anchor:ce||ke,head:ke})}g.setSelections(G,0)})},t.duplicateLine=function(g){g.operation(function(){for(var k=g.listSelections().length,N=0;N<k;N++){var w=g.listSelections()[N];w.empty()?g.replaceRange(g.getLine(w.head.line)+ `
2021-08-30 08:13:49 -07:00
` ,r(w.head.line,0)):g.replaceRange(g.getRange(w.from(),w.to()),w.from())}g.scrollIntoView()})};function b(g,k,N){if(g.isReadOnly())return e.Pass;for(var w=g.listSelections(),D=[],F,P=0;P<w.length;P++){var B=w[P];if(!B.empty()){for(var z=B.from().line,G=B.to().line;P<w.length-1&&w[P+1].from().line==G;)G=w[++P].to().line;w[P].to().ch||G--,D.push(z,G)}}D.length?F=!0:D.push(g.firstLine(),g.lastLine()),g.operation(function(){for(var M=[],j=0;j<D.length;j+=2){var ce=D[j],ke=D[j+1],pe=r(ce,0),we=r(ke),Ne=g.getRange(pe,we,!1);k?Ne.sort(function(qe,ht){return qe<ht?-N:qe==ht?0:N}):Ne.sort(function(qe,ht){var at=qe.toUpperCase(),st=ht.toUpperCase();return at!=st&&(qe=at,ht=st),qe<ht?-N:qe==ht?0:N}),g.replaceRange(Ne,pe,we),F&&M.push({anchor:pe,head:r(ke+1,0)})}F&&g.setSelections(M,0)})}t.sortLines=function(g){b(g,!0,1)},t.reverseSortLines=function(g){b(g,!0,-1)},t.sortLinesInsensitive=function(g){b(g,!1,1)},t.reverseSortLinesInsensitive=function(g){b(g,!1,-1)},t.nextBookmark=function(g){var k=g.state.sublimeBookmarks;if(k)for(;k.length;){var N=k.shift(),w=N.find();if(w)return k.push(N),g.setSelection(w.from,w.to)}},t.prevBookmark=function(g){var k=g.state.sublimeBookmarks;if(k)for(;k.length;){k.unshift(k.pop());var N=k[k.length-1].find();if(!N)k.pop();else return g.setSelection(N.from,N.to)}},t.toggleBookmark=function(g){for(var k=g.listSelections(),N=g.state.sublimeBookmarks||(g.state.sublimeBookmarks=[]),w=0;w<k.length;w++){for(var D=k[w].from(),F=k[w].to(),P=k[w].empty()?g.findMarksAt(D):g.findMarks(D,F),B=0;B<P.length;B++)if(P[B].sublimeBookmark){P[B].clear();for(var z=0;z<N.length;z++)N[z]==P[B]&&N.splice(z--,1);break}B==P.length&&N.push(g.markText(D,F,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(g){var k=g.state.sublimeBookmarks;if(k)for(var N=0;N<k.length;N++)k[N].clear();k.length=0},t.selectBookmarks=function(g){var k=g.state.sublimeBookmarks,N=[];if(k)for(var w=0;w<k.length;w++){var D=k[w].find();D?N.push({anchor:D.from,head:D.to}):k.splice(w--,0)}N.length&&g.setSelections(N,0)};function C(g,k){g.operation(function(){for(var N=g.listSelections(),w=[],D=[],F=0;F<N.length;F++){var P=N[F];P.empty()?(w.push(F),D.push("")):D.push(k(g.getRange(P.from(),P.to())))}g.replaceSelections(D,"around","case");for(var F=w.length-1,B;F>=0;F--){var P=N[w[F]];if(!(B&&e.cmpPos(P.head,B)>0)){var z=s(g,P.head);B=z.from,g.replaceRange(k(z.word),z.from,z.to)}}})}t.smartBackspace=function(g){if(g.somethingSelected())return e.Pass;g.operation(function(){for(var k=g.listSelections(),N=g.getOption("indentUnit"),w=k.length-1;w>=0;w--){var D=k[w].head,F=g.getRange({line:D.line,ch:0},D),P=e.countColumn(F,null,g.getOption("tabSize")),B=g.findPosH(D,-1,"char",!1);if(F&&!/ \S /.test(F)&&P%N==0){var z=new r(D.line,e.findColumn(F,P-N,N));z.ch!=D.ch&&(B=z)}g.replaceRange("",B,D,"+delete")}})},t.delLineRight=function(g){g.operation(function(){for(var k=g.listSelections(),N=k.length-1;N>=0;N--)g.replaceRange("",k[N].anchor,r(k[N].to().line),"+delete");g.scrollIntoView()})},t.upcaseAtCursor=function(g){C(g,function(k){return k.toUpperCase()})},t.downcaseAtCursor=function(g){C(g,function(k){return k.toLowerCase()})},t.setSublimeMark=function(g){g.state.sublimeMark&&g.state.sublimeMark.clear(),g.state.sublimeMark=g.setBookmark(g.getCursor())},t.selectToSublimeMark=function(g){var k=g.state.sublimeMark&&g.state.sublimeMark.find();k&&g.setSelection(g.getCursor(),k)},t.deleteToSublimeMark=function(g){var k=g.state.sublimeMark&&g.state.sublimeMark.find();if(k){var N=g.getCursor(),w=k;if(e.cmpPos(N,w)>0){var D=w;w=N,N=D}g.state.sublimeKilled=g.getRange(N,w),g.replaceRange("",N,w)}},t.swapWithSublimeMark=function(g){var k=g.state.sublimeMark&&g.state.sublimeMark.find();k&&(g.state.sublimeMark.clear(),g.state.sublimeMark=g.setBookmark(g.getCursor()),g.setCursor(k))},t.sublimeYank=function(g){g.state.sublimeKilled!=null&&g.replaceSelection(g.state.sublimeKilled,null,"paste")},t.showInCenter=function(g){var k=g.cursorCoords(null,"local");g.scrollTo(null,(k.top+k.bottom)/2-g.getScrollInfo().clientHeight/2)};function L(g){var k=g.getCursor("from"),N=g
2021-07-31 23:49:48 -07:00
` , ` \ r
` ," \r "];var Nn;(function(q){function X( $ ,ie,fe,Qe){return new cu( $ ,ie,fe,Qe)}q.create=X;function Z( $ ){var ie= $ ;return!!(te.defined(ie)&&te.string(ie.uri)&&(te.undefined(ie.languageId)||te.string(ie.languageId))&&te.uinteger(ie.lineCount)&&te.func(ie.getText)&&te.func(ie.positionAt)&&te.func(ie.offsetAt))}q.is=Z;function H( $ ,ie){for(var fe= $ .getText(),Qe=R(ie,function(gr,ci){var Ri=gr.range.start.line-ci.range.start.line;return Ri===0?gr.range.start.character-ci.range.start.character:Ri}),It=fe.length,Dt=Qe.length-1;Dt>=0;Dt--){var nr=Qe[Dt],Rt= $ .offsetAt(nr.range.start),Ye= $ .offsetAt(nr.range.end);if(Ye<=It)fe=fe.substring(0,Rt)+nr.newText+fe.substring(Ye,fe.length);else throw new Error("Overlapping edit");It=Rt}return fe}q.applyEdits=H;function R( $ ,ie){if( $ .length<=1)return $ ;var fe= $ .length/2|0,Qe= $ .slice(0,fe),It= $ .slice(fe);R(Qe,ie),R(It,ie);for(var Dt=0,nr=0,Rt=0;Dt<Qe.length&&nr<It.length;){var Ye=ie(Qe[Dt],It[nr]);Ye<=0? $ [Rt++]=Qe[Dt++]: $ [Rt++]=It[nr++]}for(;Dt<Qe.length;) $ [Rt++]=Qe[Dt++];for(;nr<It.length;) $ [Rt++]=It[nr++];return $ }})(Nn=t.TextDocument||(t.TextDocument={}));var cu=function(){function q(X,Z,H,R){this._uri=X,this._languageId=Z,this._version=H,this._content=R,this._lineOffsets=void 0}return Object.defineProperty(q.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),q.prototype.getText=function(X){if(X){var Z=this.offsetAt(X.start),H=this.offsetAt(X.end);return this._content.substring(Z,H)}return this._content},q.prototype.update=function(X,Z){this._content=X.text,this._version=Z,this._lineOffsets=void 0},q.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var X=[],Z=this._content,H=!0,R=0;R<Z.length;R++){H&&(X.push(R),H=!1);var $ =Z.charAt(R);H= $ ===" \r "|| $ === `
` , $ ===" \r "&&R+1<Z.length&&Z.charAt(R+1)=== `
2021-08-30 08:13:49 -07:00
` &&R++}H&&Z.length>0&&X.push(Z.length),this._lineOffsets=X}return this._lineOffsets},q.prototype.positionAt=function(X){X=Math.max(Math.min(X,this._content.length),0);var Z=this.getLineOffsets(),H=0,R=Z.length;if(R===0)return a.create(0,X);for(;H<R;){var $ =Math.floor((H+R)/2);Z[ $ ]>X?R= $ :H= $ +1}var ie=H-1;return a.create(ie,X-Z[ie])},q.prototype.offsetAt=function(X){var Z=this.getLineOffsets();if(X.line>=Z.length)return this._content.length;if(X.line<0)return 0;var H=Z[X.line],R=X.line+1<Z.length?Z[X.line+1]:this._content.length;return Math.max(Math.min(H+X.character,R),H)},Object.defineProperty(q.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),q}(),te;(function(q){var X=Object.prototype.toString;function Z(Ye){return typeof Ye!="undefined"}q.defined=Z;function H(Ye){return typeof Ye=="undefined"}q.undefined=H;function R(Ye){return Ye===!0||Ye===!1}q.boolean=R;function $ (Ye){return X.call(Ye)==="[object String]"}q.string= $ ;function ie(Ye){return X.call(Ye)==="[object Number]"}q.number=ie;function fe(Ye,gr,ci){return X.call(Ye)==="[object Number]"&&gr<=Ye&&Ye<=ci}q.numberRange=fe;function Qe(Ye){return X.call(Ye)==="[object Number]"&&-2147483648<=Ye&&Ye<=2147483647}q.integer=Qe;function It(Ye){return X.call(Ye)==="[object Number]"&&0<=Ye&&Ye<=2147483647}q.uinteger=It;function Dt(Ye){return X.call(Ye)==="[object Function]"}q.func=Dt;function nr(Ye){return Ye!==null&&typeof Ye=="object"}q.objectLiteral=nr;function Rt(Ye,gr){return Array.isArray(Ye)&&Ye.every(gr)}q.typedArray=Rt})(te||(te={}))})});var Kj=U(C1=>{"use strict";Object.defineProperty(C1,"__esModule",{value:!0});var Qj=class{constructor(t){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{let r=this._sourceText.charAt(this._pos);return this._pos++,r},this.eat=r=>{if(this._testNextCharacter(r))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=r=>{let n=this._testNextCharacter(r),a=!1;for(n&&(a=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(r),a=!0;return a},this.eatSpace=()=>this.eatWhile(/[ \s \u 00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=r=>{this._pos=r},this.match=(r,n=!0,a=!1)=>{let o=null,s=null;return typeof r=="string"?(s=new RegExp(r,a?"i":"g").test(this._sourceText.substr(this._pos,r.length)),o=r):r instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(r),o=s&&s[0]),s!=null&&(typeof r=="string"||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos))?(n&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),s):!1},this.backUp=r=>{this._pos-=r},this.column=()=>this._pos,this.indentation=()=>{let r=this._sourceText.match(/ \s */),n=0;if(r&&r.length!==0){let a=r[0],o=0;for(;a.length>o;)a.charCodeAt(o)===9?n+=2:n++,o++}return n},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=t}_testNextCharacter(t){let r=this._sourceText.charAt(this._pos),n=!1;return typeof t=="string"?n=r===t:n=t instanceof RegExp?t.test(r):t(r),n}};C1.default=Qj});var O1=U(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.p=Ni.t=Ni.butNot=Ni.list=Ni.opt=void 0;function $ J(e){return{ofRule:e}}Ni.opt= $ J;function eX(e,t){return{ofRule:e,isList:!0,separator:t}}Ni.list=eX;function tX(e,t){let r=e.match;return e.match=n=>{let a=!1;return r&&(a=r(n)),a&&t.every(o=>o.match&&!o.match(n))},e}Ni.butNot=tX;function rX(e,t){return{style:t,match:r=>r.kind===e}}Ni.t=rX;function nX(e,t){return{style:t||"punctuation",match:r=>r.kind==="Punctuation"&&r.value===e}}Ni.p=nX});var w1=U(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.ParseRules=iu.LexRules=iu.isIgnored=void 0;var ue=O1(),iX=e=>e===" "||e===" "||e===","||e=== `
` ||e===" \r "||e===" \u FEFF"||e===" \x A0";iu.isIgnored=iX;iu.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!| \$ | \( | \) | \. \. \. |:|=|&|@| \[ |]| \{ | \| | \} )/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?: \. [0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?: \\ """|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^" \\ ]| \\ (?:"| \/ | \\ |b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/};iu.ParseRules={Document:[ue.list("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";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:[Yr("query"),ue.opt(Vt("def")),ue.opt("VariableDefinitions"),ue.list("Directive"),"SelectionSet"],Mutation:[Yr("mutation"),ue.opt(Vt("def")),ue.opt("VariableDefinitions"),ue.list("Directive"),"SelectionSet"],Subscription:[Yr("subscription"),ue.opt(Vt("def")),ue.opt("VariableDefinitions"),ue.list("Directive"),"SelectionSet"],VariableDefinitions:[ue.p("("),ue.list("VariableDefinition"),ue.p(")")],VariableDefinition:["Variable",ue.p(":"),"Type",ue.opt("DefaultValue")],Variable:[ue.p(" $ ","variable"),Vt("variable")],DefaultValue:[ue.p("="),"Value"],SelectionSet:[ue.p("{"),ue.list("Selection"),ue.p("}")],Selection(e,t){return e.value==="..."?t.match(/[ \s \u 00a0,]*(on \b |@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[ \s \u 00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[Vt("property"),ue.p(":"),Vt("qualifier"),ue.opt("Arguments"),ue.list("Directive"),ue.opt("SelectionSet")],Field:[Vt("property"),ue.opt("Arguments"),ue.list("Directive"),ue.opt("SelectionSet")],Arguments:[ue.p("("),ue.list("Argument"),ue.p(")")],Argument:[Vt("attribute"),ue.p(":"),"Value"],FragmentSpread:[ue.p("..."),Vt("def"),ue.list("Directive")],InlineFragment:[ue.p("..."),ue.opt("TypeCondition"),ue.list("Directive"),"SelectionSet"],FragmentDefinition:[Yr("fragment"),ue.opt(ue.butNot(Vt("def"),[Yr("on")])),"TypeCondition",ue.list("Directive"),"SelectionSet"],TypeCondition:[Yr("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case" $ ":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[ue.t("Number","number")],StringValue:[ue.t("String","string")],BooleanValue:[ue.t("Name","builtin")],NullValue:[ue.t("Name","keyword")],EnumValue:[Vt("string-2")],ListValue:[ue.p("["),ue.list("Value"),ue.p("]")],ObjectValue:[ue.p("{"),ue.list("ObjectField"),ue.p("}")],ObjectField:[Vt("attribute"),ue.p(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[ue.p("["),"Type",ue.p("]"),ue.opt(ue.p("!"))],NonNullType:["NamedType",ue.opt(ue.p("!"))],NamedType:[aX("atom")],Directive:[ue.p("@","meta"),Vt("meta"),ue.opt("Arguments")],DirectiveDef:[Yr("directive"),ue.p("@","meta"),Vt("meta"),ue.opt("ArgumentsDef"),Yr("on"),ue.list("DirectiveLocation",ue.p("|"))],InterfaceDef:[Yr("interface"),Vt("atom"),ue.opt("Implements"),ue.list("Directive"),ue.p("{"),ue.list("FieldDef"),ue.p("}")],Implements:[Yr("implements"),ue.list("NamedType",ue.p("&"))],DirectiveLocation:[Vt("string-2")],SchemaDef:[Yr("schema"),ue.list("Directive"),ue.p("{"),ue.list("OperationTypeDef"),ue.p("}")],OperationTypeDef:[Vt("keyword"),ue.p(":"),Vt("atom")],ScalarDef:[Yr("scalar"),Vt("atom"),ue.list("Directive")],ObjectTypeDef:[Yr("type"),Vt("atom"),ue.opt("Implements"),ue.list("Directive"),ue.p("{"),ue.list("FieldDef"),ue.p("}")],FieldDef:[Vt("property"),ue.opt("ArgumentsDef"),ue.p(":"),"Type",ue.list("Directive")],ArgumentsDef:[ue.p("("),ue.list("InputValueDef"),ue.p(")")],InputValueDef:[Vt("attribute"),ue.p(":"),"T
` ),n=ye.onlineParser(),a=n.startState(),o="",s=new ye.CharacterStream("");for(let c=0;c<r.length;c++){for(s=new ye.CharacterStream(r[c]);!s.eol()&&(o=n.token(s,a),t(s,a,o,c)!=="BREAK"););t(s,a,o,c),a.kind||(a=n.startState())}return{start:s.getStartOfToken(),end:s.getCurrentPosition(),string:s.current(),state:a,style:o}}sn.runOnlineParser=hp;function $ j(e,t){if(!e||!e.kind)return!1;let r=e.kind,n=t.locations;switch(r){case ye.RuleKinds.QUERY:return n.indexOf("QUERY")!==-1;case ye.RuleKinds.MUTATION:return n.indexOf("MUTATION")!==-1;case ye.RuleKinds.SUBSCRIPTION:return n.indexOf("SUBSCRIPTION")!==-1;case ye.RuleKinds.FIELD:case ye.RuleKinds.ALIASED_FIELD:return n.indexOf("FIELD")!==-1;case ye.RuleKinds.FRAGMENT_DEFINITION:return n.indexOf("FRAGMENT_DEFINITION")!==-1;case ye.RuleKinds.FRAGMENT_SPREAD:return n.indexOf("FRAGMENT_SPREAD")!==-1;case ye.RuleKinds.INLINE_FRAGMENT:return n.indexOf("INLINE_FRAGMENT")!==-1;case ye.RuleKinds.SCHEMA_DEF:return n.indexOf("SCHEMA")!==-1;case ye.RuleKinds.SCALAR_DEF:return n.indexOf("SCALAR")!==-1;case ye.RuleKinds.OBJECT_TYPE_DEF:return n.indexOf("OBJECT")!==-1;case ye.RuleKinds.FIELD_DEF:return n.indexOf("FIELD_DEFINITION")!==-1;case ye.RuleKinds.INTERFACE_DEF:return n.indexOf("INTERFACE")!==-1;case ye.RuleKinds.UNION_DEF:return n.indexOf("UNION")!==-1;case ye.RuleKinds.ENUM_DEF:return n.indexOf("ENUM")!==-1;case ye.RuleKinds.ENUM_VALUE:return n.indexOf("ENUM_VALUE")!==-1;case ye.RuleKinds.INPUT_DEF:return n.indexOf("INPUT_OBJECT")!==-1;case ye.RuleKinds.INPUT_VALUE_DEF:switch(e.prevState&&e.prevState.kind){case ye.RuleKinds.ARGUMENTS_DEF:return n.indexOf("ARGUMENT_DEFINITION")!==-1;case ye.RuleKinds.INPUT_DEF:return n.indexOf("INPUT_FIELD_DEFINITION")!==-1}}return!1}sn.canUseDirective= $ j;function eM(e,t){let r,n,a,o,s,c,d,h,m,T,b;return rr.forEachState(t,C=>{switch(C.kind){case ye.RuleKinds.QUERY:case"ShortQuery":T=e.getQueryType();break;case ye.RuleKinds.MUTATION:T=e.getMutationType();break;case ye.RuleKinds.SUBSCRIPTION:T=e.getSubscriptionType();break;case ye.RuleKinds.INLINE_FRAGMENT:case ye.RuleKinds.FRAGMENT_DEFINITION:C.type&&(T=e.getType(C.type));break;case ye.RuleKinds.FIELD:case ye.RuleKinds.ALIASED_FIELD:{!T||!C.name?s=null:(s=m?rr.getFieldDef(e,m,C.name):null,T=s?s.type:null);break}case ye.RuleKinds.SELECTION_SET:m=Lt.getNamedType(T);break;case ye.RuleKinds.DIRECTIVE:a=C.name?e.getDirective(C.name):null;break;case ye.RuleKinds.INTERFACE_DEF:C.name&&(d=null,b=new fs.GraphQLInterfaceType({name:C.name,interfaces:[],fields:{}}));break;case ye.RuleKinds.OBJECT_TYPE_DEF:C.name&&(b=null,d=new fs.GraphQLObjectType({name:C.name,interfaces:[],fields:{}}));break;case ye.RuleKinds.ARGUMENTS:{if(!C.prevState)n=null;else switch(C.prevState.kind){case ye.RuleKinds.FIELD:n=s&&s.args;break;case ye.RuleKinds.DIRECTIVE:n=a&&a.args;break;case ye.RuleKinds.ALIASED_FIELD:{let g=C.prevState&&C.prevState.name;if(!g){n=null;break}let k=m?rr.getFieldDef(e,m,g):null;if(!k){n=null;break}n=k.args;break}default:n=null;break}break}case ye.RuleKinds.ARGUMENT:if(n){for(let g=0;g<n.length;g++)if(n[g].name===C.name){r=n[g];break}}c=r&&r.type;break;case ye.RuleKinds.ENUM_VALUE:let L=Lt.getNamedType(c);o=L instanceof Lt.GraphQLEnumType?kX(L.getValues(),g=>g.value===C.name):null;break;case ye.RuleKinds.LIST_VALUE:let S=Lt.getNullableType(c);c=S instanceof Lt.GraphQLList?S.ofType:null;break;case ye.RuleKinds.OBJECT_VALUE:let y=Lt.getNamedType(c);h=y instanceof Lt.GraphQLInputObjectType?y.getFields():null;break;case ye.RuleKinds.OBJECT_FIELD:let _=C.name&&h?h[C.name]:null;c=_&&_.type;break;case ye.RuleKinds.NAMED_TYPE:C.name&&(T=e.getType(C.name));break}}),{argDef:r,argDefs:n,directiveDef:a,enumValue:o,fieldDef:s,inputType:c,objectFieldDefs:h,parentType:m,type:T,interfaceDef:b,objectTypeDef:d}}sn.getTypeInfo=eM;function kX(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return e[r];return null}});var j1=U(Un=>{"use strict";var tM=Un&&Un.__awaiter||function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(m){try{h(n.next(m))}catch(T){s(T)}}fun
2021-07-31 23:49:48 -07:00
` +a:e+= `
` +a.reduce((s,c)=>(s+=AX.print(c)+ `
2021-08-30 08:13:49 -07:00
` ,s),""));try{o=aM.parse(e)}catch(s){let c=cM(s.locations[0],e);return[{severity:xr.DIAGNOSTIC_SEVERITY.Error,message:s.message,source:"GraphQL: Syntax",range:c}]}return uM(o,t,r,n)}xr.getDiagnostics=LX;function uM(e,t=null,r,n){if(!t)return[];let a=sM(ds.validateWithCustomRules(t,e,r,n),s=>lM(s,xr.DIAGNOSTIC_SEVERITY.Error,"Validation")),o=sM(aM.findDeprecatedUsages(t,e),s=>lM(s,xr.DIAGNOSTIC_SEVERITY.Warning,"Deprecation"));return a.concat(o)}xr.validateQuery=uM;function sM(e,t){return Array.prototype.concat.apply([],e.map(t))}function lM(e,t,r){if(!e.nodes)return[];let n=[];return e.nodes.forEach(a=>{let o=a.kind!=="Variable"&&"name"in a&&a.name!==void 0?a.name:"variable"in a&&a.variable!==void 0?a.variable:a;if(o){Tm(e.locations,"GraphQL validation error requires locations.");let s=e.locations[0],c=xX(o),d=s.column+(c.end-c.start);n.push({source: ` GraphQL : $ { r } ` ,message:e.message,severity:t,range:new ds.Range(new ds.Position(s.line-1,s.column-1),new ds.Position(s.line-1,d))})}}),n}function cM(e,t){let r=oM.onlineParser(),n=r.startState(),a=t.split( `
` );Tm(a.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let h=0;h<e.line;h++)for(o=new oM.CharacterStream(a[h]);!o.eol()&&r.token(o,n)!=="invalidchar";);Tm(o,"Expected Parser stream to be available.");let s=e.line-1,c=o.getStartOfToken(),d=o.getCurrentPosition();return new ds.Range(new ds.Position(s,c),new ds.Position(s,d))}xr.getRange=cM;function xX(e){let r=e.loc;return Tm(r,"Expected ASTNode to have a location."),r}});var B1=U(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.getOutline=void 0;var q1=Nt(),fM=is(),{INLINE_FRAGMENT:IX}=q1.Kind;function RX(e){let t;try{t=q1.parse(e)}catch(a){return null}let r=FX(e);return{outlineTrees:q1.visit(t,{leave(a){return r!==void 0&&a.kind in r?r[a.kind](a):null}})}}_m.getOutline=RX;function FX(e){let t=r=>({representativeName:r.name,startPosition:fM.offsetToPosition(e,r.loc.start),endPosition:fM.offsetToPosition(e,r.loc.end),kind:r.kind,children:r.selectionSet||r.fields||r.values||r.arguments||[]});return{Field:r=>{let n=r.alias?[Ut("plain",r.alias),Ut("plain",": ")]:[];return n.push(Ut("plain",r.name)),Object.assign({tokenizedText:n},t(r))},OperationDefinition:r=>Object.assign({tokenizedText:[Ut("keyword",r.operation),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),Document:r=>r.definitions,SelectionSet:r=>PX(r.selections,n=>n.kind===IX?n.selectionSet:n),Name:r=>r.value,FragmentDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","fragment"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),InterfaceTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","interface"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),EnumTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","enum"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),EnumValueDefinition:r=>Object.assign({tokenizedText:[Ut("plain",r.name)]},t(r)),ObjectTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","type"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),InputObjectTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","input"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),FragmentSpread:r=>Object.assign({tokenizedText:[Ut("plain","..."),Ut("class-name",r.name)]},t(r)),InputValueDefinition:r=>Object.assign({tokenizedText:[Ut("plain",r.name)]},t(r)),FieldDefinition:r=>Object.assign({tokenizedText:[Ut("plain",r.name)]},t(r)),InlineFragment:r=>r.selectionSet}}function Ut(e,t){return{kind:e,value:t}}function PX(e,t){let r=[];for(let n=0;n<e.length;n++){let a=t(e[n],n);Array.isArray(a)?r.push(...a):r.push(a)}return r}});var V1=U(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.getHoverInformation=void 0;var dM=Nt(),pM=Em();function jX(e,t,r,n){let a=n||pM.getTokenAtPosition(t,r);if(!e||!a||!a.state)return"";let o=a.state,s=o.kind,c=o.step,d=pM.getTypeInfo(e,a.state),h={schema:e};if(s==="Field"&&c===0&&d.fieldDef||s==="AliasedField"&&c===2&&d.fieldDef){let m=[];return MX(m,d,h),gp(m,h,d.fieldDef),m.join("").trim()}else if(s==="Directive"&&c===1&&d.directiveDef){let m=[];return vM(m,d,h),gp(m,h,d.directiveDef),m.join("").trim()}else if(s==="Argument"&&c===0&&d.argDef){let m=[];return qX(m,d,h),gp(m,h,d.argDef),m.join("").trim()}else if(s==="EnumValue"&&d.enumValue&&"description"in d.enumValue){let m=[];return BX(m,d,h),gp(m,h,d.enumValue),m.join("").trim()}else if(s==="NamedType"&&d.type&&"description"in d.type){let m=[];return nc(m,d,h,d.type),gp(m,h,d.type),m.join("").trim()}return""}Sm.getHoverInformation=jX;function MX(e,t,r){hM(e,t,r),gM(e,t,r,t.type)}function hM(e,t,r){if(!t.fieldDef)return;let n=t.fieldDef.name;n.slice(0,2)!=="__"&&(nc(e,t,r,t.parentType),qr(e,".")),qr(e,n)}function vM(e,t,r){if(!t.directiveDef)return;let n="@"+t.directiveDef.name;qr(e,n)}function qX(e,t,r){if(t.directiveDef?vM(e,t,r):t.fieldDef&&hM(e,t,r),!t.argDef)return;let n=t.argDef.name;qr(e,"("),qr(e,n),gM(e,t,r,t.inputType),qr(e,")")}function gM(e,t,r,n){qr(e,": "),nc(e,t,r,n)}function BX(e,t,r){if(!t.enumValue)return;let n=t.enumValue.name;nc(e,t,r,t.inputType),qr(e,"."),qr(e,n)}function nc(
2021-07-31 23:49:48 -07:00
` ),qr(e,n)),VX(e,t,r)}function VX(e,t,r){if(!r)return;let n=r.deprecationReason?r.deprecationReason:null;!n||(qr(e, `
2021-08-30 08:13:49 -07:00
` ),qr(e,"Deprecated: "),qr(e,n))}function qr(e,t){e.push(t)}});var kM=U(ic=>{"use strict";var au=ic&&ic.__awaiter||function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(m){try{h(n.next(m))}catch(T){s(T)}}function d(m){try{h(n.throw(m))}catch(T){s(T)}}function h(m){m.done?o(m.value):a(m.value).then(c,d)}h((n=n.apply(e,t||[])).next())})};Object.defineProperty(ic,"__esModule",{value:!0});ic.GraphQLLanguageService=void 0;var ni=k1(),Jr=Nt(),UX=Em(),GX=V1(),U1=M1(),G1=j1(),QX=B1(),KX=is(),{FRAGMENT_DEFINITION:mM,OBJECT_TYPE_DEFINITION:yM,INTERFACE_TYPE_DEFINITION:bM,ENUM_TYPE_DEFINITION:EM,UNION_TYPE_DEFINITION:HX,SCALAR_TYPE_DEFINITION:TM,INPUT_OBJECT_TYPE_DEFINITION:_M,SCALAR_TYPE_EXTENSION:zX,OBJECT_TYPE_EXTENSION:WX,INTERFACE_TYPE_EXTENSION:YX,UNION_TYPE_EXTENSION:JX,ENUM_TYPE_EXTENSION:XX,INPUT_OBJECT_TYPE_EXTENSION:ZX,DIRECTIVE_DEFINITION: $ X,FRAGMENT_SPREAD:eZ,OPERATION_DEFINITION:tZ,NAMED_TYPE:rZ}=Jr.Kind,SM={[Jr.Kind.FIELD]:ni.SymbolKind.Field,[Jr.Kind.OPERATION_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.FRAGMENT_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.FRAGMENT_SPREAD]:ni.SymbolKind.Struct,[Jr.Kind.OBJECT_TYPE_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.ENUM_TYPE_DEFINITION]:ni.SymbolKind.Enum,[Jr.Kind.ENUM_VALUE_DEFINITION]:ni.SymbolKind.EnumMember,[Jr.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.INPUT_VALUE_DEFINITION]:ni.SymbolKind.Field,[Jr.Kind.FIELD_DEFINITION]:ni.SymbolKind.Field,[Jr.Kind.INTERFACE_TYPE_DEFINITION]:ni.SymbolKind.Interface,[Jr.Kind.DOCUMENT]:ni.SymbolKind.File,FieldWithArguments:ni.SymbolKind.Method};function nZ(e){return e.kind==="FieldDefinition"&&e.children&&e.children.length>0?SM.FieldWithArguments:SM[e.kind]}var DM=class{constructor(t){this._graphQLCache=t,this._graphQLConfig=t.getGraphQLConfig()}getConfigForURI(t){let r=this._graphQLCache.getProjectForFile(t);if(r)return r;throw Error( ` No config found for uri : $ { t } ` )}getDiagnostics(t,r,n){return au(this,void 0,void 0,function*(){let a=!1,o=this.getConfigForURI(r);if(!o)return[];let{schema:s,name:c,extensions:d}=o;try{let y=Jr.parse(t);(!s||r!==s)&&(a=y.definitions.some(_=>{switch(_.kind){case yM:case bM:case EM:case HX:case TM:case _M:case zX:case WX:case YX:case JX:case XX:case ZX:case $ X:return!0}return!1}))}catch(y){let _=U1.getRange(y.locations[0],t);return[{severity:U1.DIAGNOSTIC_SEVERITY.Error,message:y.message,source:"GraphQL: Syntax",range:_}]}let h=t,m=yield this._graphQLCache.getFragmentDefinitions(o),b=(yield this._graphQLCache.getFragmentDependencies(t,m)).reduce((y,_)=> ` $ { y } $ { Jr . print ( _ . definition ) } ` ,"");h= ` $ { h } $ { b } ` ;let C=null;try{C=Jr.parse(h)}catch(y){return[]}let L=null;(d==null?void 0:d.customValidationRules)&&typeof d.customValidationRules=="function"&&(L=d.customValidationRules(this._graphQLConfig));let S=yield this._graphQLCache.getSchema(c,a);return S?U1.validateQuery(C,S,L,n):[]})}getAutocompleteSuggestions(t,r,n){return au(this,void 0,void 0,function*(){let a=this.getConfigForURI(n),o=yield this._graphQLCache.getSchema(a.name),s=yield this._graphQLCache.getFragmentDefinitions(a),c=Array.from(s).map(([,d])=>d.definition);return o?UX.getAutocompleteSuggestions(o,t,r,void 0,c):[]})}getHoverInformation(t,r,n){return au(this,void 0,void 0,function*(){let a=this.getConfigForURI(n),o=yield this._graphQLCache.getSchema(a.name);return o?GX.getHoverInformation(o,t,r):""})}getDefinition(t,r,n){return au(this,void 0,void 0,function*(){let a=this.getConfigForURI(n),o;try{o=Jr.parse(t)}catch(c){return null}let s=KX.getASTNodeAtPosition(t,o,r);if(s)switch(s.kind){case eZ:return this._getDefinitionForFragmentSpread(t,o,s,n,a);case mM:case tZ:return G1.getDefinitionQueryResultForDefinitionNode(n,t,s);case rZ:return this._getDefinitionForNamedType(t,o,s,n,a)}return null})}getDocumentSymbols(t,r){return au(this,void 0,void 0,function*(){let n=yield this.getOutline(t);if(!n)return[];let a=[],o=n.outlineTrees.map(s=>[null,s]);for(;o.length>0;){let s=o.pop();if(!s)return[];let[c,d]=s;if(!d)return[];a.push({name:d.representativeName,kind:nZ(d)
` ).filter(function(s){return s.indexOf("#")!==0}).join("")),o=this.props.favorite?" \u 2605":" \u 2606";return hs.default.createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?hs.default.createElement("input",{type:"text",defaultValue:this.props.label,ref:function(s){r.editField=s},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):hs.default.createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},a),hs.default.createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"}," \u 270E"),hs.default.createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},o))},t.prototype.handleClick=function(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)},t.prototype.handleStarClick=function(r){r.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)},t.prototype.handleFieldBlur=function(r){r.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,r.target.value,this.props.favorite)},t.prototype.handleFieldKeyDown=function(r){r.keyCode===13&&(r.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,r.currentTarget.value,this.props.favorite))},t.prototype.handleEditClick=function(r){var n=this;r.stopPropagation(),this.setState({editable:!0},function(){n.editField&&n.editField.focus()})},t}(hs.default.Component),hq=M $ ;var q $ =function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cp=function(){return Cp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Cp.apply(this,arguments)},vq=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],s=0,c=o.length;s<c;s++,a++)n[a]=o[s];return n},B $ =1e5,V $ =20,U $ =function(e,t,r,n){if(!e)return!1;try{(0,gq.parse)(e)}catch(a){return!1}return e.length>B $ ?!1:n?!(JSON.stringify(e)===JSON.stringify(n.query)&&(JSON.stringify(t)===JSON.stringify(n.variables)&&(JSON.stringify(r)===JSON.stringify(n.headers)||r&&!n.headers)||t&&!n.variables)):!0},mq=function(e){q $ (t,e);function t(r){var n=e.call(this,r)||this;n.updateHistory=function(c,d,h,m){if(U $ (c,d,h,n.historyStore.fetchRecent())){n.historyStore.push({query:c,variables:d,headers:h,operationName:m});var T=n.historyStore.items,b=n.favoriteStore.items,C=T.concat(b);n.setState({queries:C})}},n.toggleFavorite=function(c,d,h,m,T,b){var C={query:c,variables:d,headers:h,operationName:m,label:T};n.favoriteStore.contains(C)?b&&(C.favorite=!1,n.favoriteStore.delete(C)):(C.favorite=!0,n.favoriteStore.push(C)),n.setState({queries:vq(n.historyStore.items,n.favoriteStore.items)})},n.editLabel=function(c,d,h,m,T,b){var C={query:c,variables:d,headers:h,operationName:m,label:T};b?n.favoriteStore.edit(Cp(Cp({},C),{favorite:b})):n.historyStore.edit(C),n.setState({queries:vq(n.historyStore.items,n.favoriteStore.items)})},n.historyStore=new ED("queries",r.storage,V $ ),n.favoriteStore=new ED("favorites",r.storage,null);var a=n.historyStore.fetchAll(),o=n.favoriteStore.fetchAll(),s=a.concat(o);return n.state={queries:s},n}return t.prototype.render=function(){var r=this,n=this.state.queries.slice().reverse(),a=n.map(function(o,s){return su.default.createEleme
` +m)})}}}}),{insertions:n,result:W $ (t,n)}}function z $ (e){if(!("getFields"in e))return[];var t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];var r=[];return Object.keys(t).forEach(function(n){(0,si.isLeafType)(t[n].type)&&r.push(n)}),r}function Eq(e,t){var r=(0,si.getNamedType)(e);if(!(!e||(0,si.isLeafType)(e))){var n=t(r);if(!(!Array.isArray(n)||n.length===0||!("getFields"in r)))return{kind:"SelectionSet",selections:n.map(function(a){var o=r.getFields()[a],s=o?o.type:null;return{kind:"Field",name:{kind:"Name",value:a},selectionSet:Eq(s,t)}})}}}function W $ (e,t){if(t.length===0)return e;var r="",n=0;return t.forEach(function(a){var o=a.index,s=a.string;r+=e.slice(n,o)+s,n=o}),r+=e.slice(n),r}function Y $ (e,t){for(var r=t,n=t;r;){var a=e.charCodeAt(r-1);if(a===10||a===13||a===8232||a===8233)break;r--,a!==9&&a!==11&&a!==12&&a!==32&&a!==160&&(n=r)}return e.substring(r,n)}function J $ (e){if(e)return e}function Ap(e){for(var t=0,r=e;r.offsetParent;)t+=r.offsetLeft,r=r.offsetParent;return t}function _D(e){for(var t=0,r=e;r.offsetParent;)t+=r.offsetTop,r=r.offsetParent;return t}var lu=ze(Nt()),hc=function(){return hc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},hc.apply(this,arguments)},X $ =function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],s=0,c=o.length;s<c;s++,a++)n[a]=o[s];return n};function Z $ (e,t){for(var r=new Map,n=[],a=0,o=e;a<o.length;a++){var s=o[a];if(s.kind==="Field"){var c=t(s),d=r.get(c);if(s.directives&&s.directives.length){var h=hc({},s);n.push(h)}else if(d&&d.selectionSet&&s.selectionSet)d.selectionSet.selections=X $ (d.selectionSet.selections,s.selectionSet.selections);else if(!d){var h=hc({},s);r.set(c,h),n.push(h)}}else n.push(s)}return n}function Tq(e,t,r){for(var n,a=r?(0,lu.getNamedType)(r).name:null,o=[],s=[],c=0,d=t;c<d.length;c++){var h=d[c];if(h.kind==="FragmentSpread"){var m=h.name.value;if(!h.directives||h.directives.length===0){if(s.indexOf(m)>=0)continue;s.push(m)}var T=e[h.name.value];if(T){var b=T.typeCondition,C=T.directives,L=T.selectionSet;h={kind:"InlineFragment",typeCondition:b,directives:C,selectionSet:L}}}if(h.kind==="InlineFragment"&&(!h.directives||((n=h.directives)===null||n===void 0?void 0:n.length)===0)){var S=h.typeCondition?h.typeCondition.name.value:null;if(!S||S===a){o.push.apply(o,Tq(e,h.selectionSet.selections,r));continue}}o.push(h)}return o}function Wm(e,t){for(var r=t?new lu.TypeInfo(t):null,n=Object.create(null),a=0,o=e.definitions;a<o.length;a++){var s=o[a];s.kind==="FragmentDefinition"&&(n[s.name.value]=s)}var c={SelectionSet:function(d){var h=r?r.getParentType():null,m=d.selections;return m=Tq(n,m,h),m=Z $ (m,function(T){return T.alias?T.alias.value:T.name.value}),hc(hc({},d),{selections:m})},FragmentDefinition:function(){return null}};return(0,lu.visit)(e,r?(0,lu.visitWithTypeInfo)(r,c):c)}var _q=ze(Nt()),SD=(0,_q.getIntrospectionQuery)(), $ $ ="IntrospectionQuery",DD= $ $ ,Sq=SD.replace("subscriptionType { name }","");function kD(e,t,r){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(r=0;r<t.length;r++)e[r]=kD(e[r],t[r]);else for(r in t)e[r]=kD(e[r],t[r]);return e}return t}function Dq(e,t,r){t.split&&(t=t.split("."));for(var n=0,a=t.length,o=e,s,c;n<a&&(c=t[n++],!(c==="__proto__"||c==="constructor"||c==="prototype"));)o=o[c]=n===a?kD(o[c],r):typeof(s=o[c])==typeof t?s:t[n]*0!=0||!!~(""+t[n]).indexOf(".")?{}:[]}var eee=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),La=function(){return La=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOw
` ));var wq=function(e){eee(t,e);function t(r){var n,a,o=e.call(this,r)||this;if(o._editorQueryID=0,o.safeSetState=function(S,y){o.componentIsMounted&&o.setState(S,y)},o.handleClickReference=function(S){o.setState({docExplorerOpen:!0},function(){o.docExplorerComponent&&o.docExplorerComponent.showDocForReference(S)}),o._storage.set("docExplorerOpen",JSON.stringify(o.state.docExplorerOpen))},o.handleRunQuery=function(S){return CD(o,void 0,void 0,function(){var y,_,g,k,N,w,D,F,P,B=this;return OD(this,function(z){switch(z.label){case 0:this._editorQueryID++,y=this._editorQueryID,_=this.autoCompleteLeafs()||this.state.query,g=this.state.variables,k=this.state.headers,N=this.state.shouldPersistHeaders,w=this.state.operationName,S&&S!==w&&(w=S,this.handleEditOperationName(w)),z.label=1;case 1:return z.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:w}),this._storage.set("operationName",w),this._queryHistory&&this._queryHistory.updateHistory(_,g,k,w),D={data:{}},[4,this._fetchQuery(_,g,k,w,N,function(G){if(y===B._editorQueryID){var M=Array.isArray(G)?G:!1;if(!M&&typeof G!="string"&&G!==null&&"hasNext"in G&&(M=[G]),M){var j={data:D.data},ce=nee((D==null?void 0:D.errors)||[],M.map(function(st){return st.errors}).flat().filter(Boolean));ce.length&&(j.errors=ce);for(var ke=0,pe=M;ke<pe.length;ke++){var we=pe[ke],Ne=we.path,qe=we.data,ht=we.errors,at=tee(we,["path","data","errors"]);if(Ne){if(!qe)throw new Error("Expected part to contain a data property, but got "+we);Dq(j.data,Ne,qe)}else qe&&(j.data=we.data);D=La(La({},j),at)}B.setState({isWaitingForResponse:!1,response:t.formatResult(D)})}else B.setState({isWaitingForResponse:!1,response:t.formatResult(G)})}})];case 2:return F=z.sent(),this.setState({subscription:F}),[3,4];case 3:return P=z.sent(),this.setState({isWaitingForResponse:!1,response:P.message}),[3,4];case 4:return[2]}})})},o.handleStopQuery=function(){var S=o.state.subscription;o.setState({isWaitingForResponse:!1,subscription:null}),S&&S.unsubscribe()},o.handlePrettifyQuery=function(){var S,y,_,g=o.getQueryEditor(),k=(S=g==null?void 0:g.getValue())!==null&&S!==void 0?S:"",N=(0,Xi.print)((0,Xi.parse)(k,{experimentalFragmentVariables:!0}));N!==k&&(g==null||g.setValue(N));var w=o.getVariableEditor(),D=(y=w==null?void 0:w.getValue())!==null&&y!==void 0?y:"";try{var F=JSON.stringify(JSON.parse(D),null,2);F!==D&&(w==null||w.setValue(F))}catch(G){}var P=o.getHeaderEditor(),B=(_=P==null?void 0:P.getValue())!==null&&_!==void 0?_:"";try{var z=JSON.stringify(JSON.parse(B),null,2);z!==B&&(P==null||P.setValue(z))}catch(G){}},o.handleMergeQuery=function(){var S=o.getQueryEditor(),y=S.getValue();if(!!y){var _=o.state.documentAST;S.setValue((0,Xi.print)(Wm(_,o.state.schema)))}},o.handleEditQuery=ui(100,function(S){var y=o._updateQueryFacts(S,o.state.operationName,o.state.operations,o.state.schema);if(o.setState(La({query:S},y)),o._storage.set("query",S),o.props.onEditQuery)return o.props.onEditQuery(S,y==null?void 0:y.documentAST)}),o.handleCopyQuery=function(){var S=o.getQueryEditor(),y=S&&S.getValue();if(!!y&&((0,kq.default)(y),o.props.onCopyQuery))return o.props.onCopyQuery(y)},o._updateQueryFacts=function(S,y,_,g){var k=Op(g,S);if(k){var N=wp(_,y,k.operations),w=o.props.onEditOperationName;return w&&N&&y!==N&&w(N),La({operationName:N},k)}},o.handleEditVariables=function(S){o.setState({variables:S}),ui(500,function(){return o._storage.set("variables",S)})(),o.props.onEditVariables&&o.props.onEditVariables(S)},o.handleEditHeaders=function(S){o.setState({headers:S}),o.props.shouldPersistHeaders&&ui(500,function(){return o._storage.set("headers",S)})(),o.props.onEditHeaders&&o.props.onEditHeaders(S)},o.handleEditOperationName=function(S){var y=o.props.onEditOperationName;y&&y(S)},o.handleHintInformationRender=function(S){S.addEventListener("click",o._onClickHintInformation);var y;S.addEventListener("DOMNodeRemoved",y=function(){S.removeEventListener("DOMNodeRemoved",y),S.removeEventListener("click",o._onClickHintInformation)})},o.handleEditorRunQuery=function(){o._runQueryAtCursor()},o._onClick
2021-07-31 23:49:48 -07:00
` +b.map(function(y){return(0,Xi.print)(y)}).join( `
2021-08-30 08:13:49 -07:00
` ))),C=d({query:r,variables:h,operationName:o},{headers:m,shouldPersistHeaders:s,documentAST:this.state.documentAST}),[2,Promise.resolve(C).then(function(y){if(Rq(y)){var _=y.subscribe({next:c,error:function(g){L.safeSetState({isWaitingForResponse:!1,response:g?t.formatError(g):void 0,subscription:null})},complete:function(){L.safeSetState({isWaitingForResponse:!1,subscription:null})}});return _}else return Fq(y)?(function(){return CD(L,void 0,void 0,function(){var g,k,N,w,D,F,P;return OD(this,function(B){switch(B.label){case 0:B.trys.push([0,13,,14]),B.label=1;case 1:B.trys.push([1,6,7,12]),g=ree(y),B.label=2;case 2:return[4,g.next()];case 3:if(k=B.sent(),!!k.done)return[3,5];N=k.value,c(N),B.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return w=B.sent(),F={error:w},[3,12];case 7:return B.trys.push([7,,10,11]),k&&!k.done&&(P=g.return)?[4,P.call(g)]:[3,9];case 8:B.sent(),B.label=9;case 9:return[3,11];case 10:if(F)throw F.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return D=B.sent(),this.safeSetState({isWaitingForResponse:!1,response:D?t.formatError(D):void 0,subscription:null}),[3,14];case 14:return[2]}})})}(),{unsubscribe:function(){var g,k;return(k=(g=y[Symbol.asyncIterator]()).return)===null||k===void 0?void 0:k.call(g)}}):(c(y),null)}).catch(function(y){return L.safeSetState({isWaitingForResponse:!1,response:y?t.formatError(y):void 0}),null})]})})},t.prototype._runQueryAtCursor=function(){if(this.state.subscription){this.handleStopQuery();return}var r,n=this.state.operations;if(n){var a=this.getQueryEditor();if(a&&a.hasFocus())for(var o=a.getCursor(),s=a.indexFromPos(o),c=0;c<n.length;c++){var d=n[c];if(d.loc&&d.loc.start<=s&&d.loc.end>=s){r=d.name&&d.name.value;break}}}this.handleRunQuery(r)},t.prototype._didClickDragBar=function(r){if(r.button!==0||r.ctrlKey)return!1;var n=r.target;if(n.className.indexOf("CodeMirror-gutter")!==0)return!1;for(var a=this.resultViewerElement;n;){if(n===a)return!0;n=n.parentNode}return!1},t.Logo=Nq,t.Toolbar=Aq,t.Footer=Lq,t.QueryEditor=Rm,t.VariableEditor=Um,t.HeaderEditor=sD,t.ResultViewer=cD,t.Button=tu,t.ToolbarButton=tu,t.Group=KS,t.Menu=HS,t.MenuItem=rR,t}(Xe.default.Component);function Nq(e){return Xe.default.createElement("div",{className:"title"},e.children||Xe.default.createElement("span",null,"Graph",Xe.default.createElement("em",null,"i"),"QL"))}Nq.displayName="GraphiQLLogo";function Aq(e){return Xe.default.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}Aq.displayName="GraphiQLToolbar";function Lq(e){return Xe.default.createElement("div",{className:"footer"},e.children)}Lq.displayName="GraphiQLFooter";var xq=function(e){return La(La({},e),{message:e.message,stack:e.stack})},aee= ` # Welcome to GraphiQL
2021-07-31 23:49:48 -07:00
#
# GraphiQL is an in - browser tool for writing , validating , and
# testing GraphQL queries .
#
# Type queries into this side of the screen , and you will see intelligent
# typeaheads aware of the current GraphQL type schema and live syntax and
# validation errors highlighted within the text .
#
# GraphQL queries typically start with a "{" character . Lines that start
# with a # are ignored .
#
# An example GraphQL query might look like :
#
# {
# field ( arg : "value" ) {
# subField
# }
# }
#
# Keyboard shortcuts :
#
# Prettify Query : Shift - Ctrl - P ( or press the prettify button above )
#
# Merge Query : Shift - Ctrl - M ( or press the merge button above )
#
# Run Query : Ctrl - Enter ( or press the play button above )
#
# Auto Complete : Ctrl - Space ( or just start typing )
#
2021-08-30 08:13:49 -07:00
` ;function Iq(e){return typeof e=="object"&&typeof e.then=="function"}function oee(e){return new Promise(function(t,r){var n=e.subscribe({next:function(a){t(a),n.unsubscribe()},error:r,complete:function(){r(new Error("no value resolved"))}})})}function Rq(e){return typeof e=="object"&&"subscribe"in e&&typeof e.subscribe=="function"}function Fq(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}function uee(e){return new Promise(function(t,r){var n,a=(n=("return"in e?e:e[Symbol.asyncIterator]()).return)===null||n===void 0?void 0:n.bind(e),o=("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e);o().then(function(s){t(s.value),a==null||a()}).catch(function(s){r(s)})})}function Pq(e){return Promise.resolve(e).then(function(t){return Fq(t)?uee(t):Rq(t)?oee(t):t})}function wD(e,t){var r;return((r=e==null?void 0:e.type)===null||r===void 0?void 0:r.displayName)&&e.type.displayName===t.displayName?!0:e.type===t}var xi=ze(Ft()),see=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ND=function(){return ND=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ND.apply(this,arguments)};function lee(e){return!(!e||typeof e!="object"||!("props"in e))}var cee=function(e){see(t,e);function t(r){var n=e.call(this,r)||this;return n._node=null,n._listener=null,n.handleOpen=function(a){Ym(a),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var r=this,n,a=this.state.visible,o=xi.default.Children.map(this.props.children,function(s,c){if(!lee(s))return null;(!n||s.props.selected)&&(n=s);var d=s.props.onSelect||r.props.onSelect&&r.props.onSelect.bind(null,s.props.value,c);return xi.default.createElement(fee,ND({},s.props,{onSelect:d}))});return xi.default.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Ym,ref:function(s){r._node=s},title:this.props.title},n==null?void 0:n.props.label,xi.default.createElement("svg",{width:"13",height:"10"},xi.default.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),xi.default.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),xi.default.createElement("ul",{className:"toolbar-select-options"+(a?" open":"")},o))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(r){this._node!==r.target&&(Ym(r),this.setState({visible:!1}),this._release())},t}(xi.default.Component);function fee(e){var t=e.onSelect,r=e.label,n=e.selected;return xi.default.createElement("li",{onMouseOver:function(a){a.currentTarget.className="hover"},onMouseOut:function(a){a.currentTarget.className=""},onMouseDown:Ym,onMouseUp:t},r,n&&xi.default.createElement("svg",{width:"13",height:"13"},xi.default.createElement("polygon",{points: ` 4.851 , 10.462 0 , 5.611 2.314 , 3.297 4.851 , 5.835
10.686 , 0 13 , 2.314 4.851 , 10.462 ` })))}function Ym(e){e.preventDefault()}var jq=wq;var t3=ze(e3());window.React=Pee;window.ReactDOM=jee;window.SubscriptionsTransportWs=t3.default;window.GraphiQL=jq;})();
2021-07-31 23:49:48 -07:00
/ *
object - assign
( c ) Sindre Sorhus
@ license MIT
* /
/ * * @ l i c e n s e R e a c t v 0 . 2 0 . 2
* scheduler . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /
/ * * @ l i c e n s e R e a c t v 1 7 . 0 . 2
* react - dom . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /
/ * * @ l i c e n s e R e a c t v 1 7 . 0 . 2
* react . production . min . js
*
* Copyright ( c ) Facebook , Inc . and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* /