2023-08-22 14:06:59 -07:00
( ( ) => { var HB = Object . create ; var U0 = Object . defineProperty ; var zB = Object . getOwnPropertyDescriptor ; var WB = Object . getOwnPropertyNames ; var YB = Object . getPrototypeOf , JB = Object . prototype . hasOwnProperty ; var XB = e => U0 ( e , "__esModule" , { value : ! 0 } ) ; var tx = ( e => typeof require != "undefined" ? require : typeof Proxy != "undefined" ? new Proxy ( e , { get : ( t , r ) => ( typeof require != "undefined" ? require : t ) [ r ] } ) : e ) ( function ( e ) { if ( typeof require != "undefined" ) return require . apply ( this , arguments ) ; throw new Error ( 'Dynamic require of "' + e + '" is not supported' ) } ) ; var G = ( e , t ) => ( ) => ( t || e ( ( t = { exports : { } } ) . exports , t ) , t . exports ) ; var ZB = ( e , t , r ) => { if ( t && typeof t == "object" || typeof t == "function" ) for ( let n of WB ( t ) ) ! JB . call ( e , n ) && n !== "default" && U0 ( e , n , { get : ( ) => t [ n ] , enumerable : ! ( r = zB ( t , n ) ) || r . enumerable } ) ; return e } , Ee = e => ZB ( XB ( U0 ( e != null ? HB ( YB ( e ) ) : { } , "default" , e && e . _ _esModule && "default" in e ? { get : ( ) => e . default , enumerable : ! 0 } : { value : e , enumerable : ! 0 } ) ) , e ) ; var G0 = G ( ( Oie , nx ) => { "use strict" ; var rx = Object . getOwnPropertySymbols , $B = Object . prototype . hasOwnProperty , eK = Object . prototype . propertyIsEnumerable ; function tK ( e ) { if ( e == null ) throw new TypeError ( "Object.assign cannot be called with null or undefined" ) ; return Object ( e ) } function rK ( ) { try { if ( ! Object . assign ) return ! 1 ; var e = new String ( "abc" ) ; if ( e [ 5 ] = "de" , Object . getOwnPropertyNames ( e ) [ 0 ] === "5" ) return ! 1 ; for ( var t = { } , r = 0 ; r < 10 ; r ++ ) t [ "_" + String . fromCharCode ( r ) ] = r ; var n = Object . getOwnPropertyNames ( t ) . map ( function ( o ) { return t [ o ] } ) ; if ( n . join ( "" ) !== "0123456789" ) return ! 1 ; var i = { } ; return "abcdefghijklmnopqrst" . split ( "" ) . forEach ( function ( o ) { i [ o ] = o } ) , Object . keys ( Object . assign ( { } , i ) ) . join ( "" ) === "abcdefghijklmnopqrst" } catch ( o ) { return ! 1 } } nx . exports = rK ( ) ? Object . assign : function ( e , t ) { for ( var r , n = tK ( e ) , i , o = 1 ; o < arguments . length ; o ++ ) { r = Object ( arguments [ o ] ) ; for ( var s in r ) $B . call ( r , s ) && ( n [ s ] = r [ s ] ) ; if ( rx ) { i = rx ( r ) ; for ( var l = 0 ; l < i . length ; l ++ ) eK . call ( r , i [ l ] ) && ( n [ i [ l ] ] = r [ i [ l ] ] ) } } return n } } ) ; var bx = G ( Et => { "use strict" ; var Q0 = G0 ( ) , ml = 60103 , ix = 60106 ; Et . Fragment = 60107 ; Et . StrictMode = 60108 ; Et . Profiler = 60114 ; var ax = 60109 , ox = 60110 , ux = 60112 ; Et . Suspense = 60113 ; var sx = 60115 , lx = 60116 ; typeof Symbol == "function" && Symbol . for && ( Mi = Symbol . for , ml = Mi ( "react.element" ) , ix = Mi ( "react.portal" ) , Et . Fragment = Mi ( "react.fragment" ) , Et . StrictMode = Mi ( "react.strict_mode" ) , Et . Profiler = Mi ( "react.profiler" ) , ax = Mi ( "react.provider" ) , ox = Mi ( "react.context" ) , ux = Mi ( "react.forward_ref" ) , Et . Suspense = Mi ( "react.suspense" ) , sx = Mi ( "react.memo" ) , lx = Mi ( "react.lazy" ) ) ; var Mi , cx = typeof Symbol == "function" && Symbol . iterator ; function nK ( e ) { return e === null || typeof e != "object" ? null : ( e = cx && e [ cx ] || e [ "@@iterator" ] , typeof e == "function" ? e : null ) } function If ( e ) { for ( var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e , r = 1 ; r < 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 fx = { isMounted : function ( ) { return ! 1 } , enqueueForceUpdate : function ( ) { } , enqueueReplaceState : function ( ) { } , enqueueSetState : function ( ) { } } , dx = { } ; function yl ( e , t , r ) { this . props = e , this . context = t , this . refs = dx , this . updater = r || fx } yl . prototype . isReactComponent = { } ; yl . prototype . setState = function ( e , t ) { if ( typeof e != "object" && typeof e != "function" && e != null ) throw Error ( If ( 85 ) ) ; this . updater . enqueueSetState ( this , e , t , "setState" ) } ; yl . prototype . forceUpdate = function ( e ) { this . updater . enqueueForceUpdate ( this , e , "forceUpdate" ) } ; function px ( ) { } px . prototype = yl . prototype ; function B0 ( e , t , r ) { this . props = e , this . context = t , this . refs = dx , this . updater = r || fx } var K0 = B0 . prototype = new px ; K0 . constructor = B0 ; Q0 ( K0 , yl . prototype ) ; K0 . isPureReactComponent = ! 0 ; var H0 = { current : null } , hx = Object . prototype . hasOwnProperty , vx = { key : ! 0 , ref : ! 0 , _ _self : ! 0 , _ _source : ! 0 } ; function gx ( e , t , r ) { var n , i = { } , 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 ) hx . call ( t , n ) && ! vx . hasOwnProperty ( n ) && ( i [ n ] = t [ n ] ) ; var l = arguments . length - 2 ; if ( l === 1 ) i . children = r ; else if ( 1 < l ) { for ( var d = Array ( l ) , h = 0 ; h < l ; h ++ ) d [ h ] = arguments [ h + 2 ] ; i . children = d } if ( e && e . defaultProps ) for ( n in l = e . defaultProps , l ) i [ n ] === void 0 && ( i [ n ] = l [ n ] ) ; return { $$typeof :
` +mb+e}var yb=!1;function ev(e,t){if(!e||yb)return"";yb=!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 i=d.stack.split( `
2021-07-31 23:49:48 -07:00
` ),o=n.stack.split( `
2023-08-22 14:06:59 -07:00
` ),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l])return `
` +i[s].replace(" at new "," at ");while(1<=s&&0<=l);break}}}finally{yb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Gf(e):""}function hK(e){switch(e.tag){case 5:return Gf(e.type);case 16:return Gf("Lazy");case 13:return Gf("Suspense");case 19:return Gf("SuspenseList");case 0:case 2:case 15:return e=ev(e.type,!1),e;case 11:return e=ev(e.type.render,!1),e;case 22:return e=ev(e.type._render,!1),e;case 1:return e=ev(e.type,!0),e;default:return""}}function El(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case zo:return"Fragment";case rs:return"Portal";case qf:return"Profiler";case lb:return"StrictMode";case Vf:return"Suspense";case Zh:return"SuspenseList"}if(typeof e=="object")switch(e. $ $ typeof){case fb:return(e.displayName||"Context")+".Consumer";case cb:return(e._context.displayName||"Context")+".Provider";case Xh:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case $ h:return El(e.type);case pb:return El(e._render);case db:t=e._payload,e=e._init;try{return El(e(t))}catch(r){}}return null}function Wo(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function jx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vK(e){var t=jx(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tv(e){e._valueTracker||(e._valueTracker=vK(e))}function Px(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=jx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function rv(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function bb(e,t){var r=t.checked;return cr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function Fx(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Wo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Mx(e,t){t=t.checked,t!=null&&sb(e,"checked",t,!1)}function Tb(e,t){Mx(e,t);var r=Wo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_b(e,t.type,r):t.hasOwnProperty("defaultValue")&&_b(e,t.type,Wo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qx(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function _b(e,t,r){(t!=="number"||rv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function gK(e){var t="";return Jh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Eb(e,t){return e=cr({children:void 0},t),(t=gK(t.children))&&(e.children=t),e}function Sl(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t[" $ "+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty(" $ "+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defa
2021-07-31 23:49:48 -07:00
Error generating stack : ` +o.message+ `
2023-08-22 14:06:59 -07:00
` +o.stack}return{value:e,source:t,stack:i}}function PT(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var j3=typeof WeakMap=="function"?WeakMap:Map;function HL(e,t,r){r=iu(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){zv||(zv=!0,HT=n),PT(e,t)},r}function zL(e,t,r){r=iu(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return PT(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this),PT(e,t));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}var P3=typeof WeakSet=="function"?WeakSet:Set;function WL(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){fu(e,r)}else t.current=null}function F3(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:va(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&oT(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(ye(163))}function M3(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)==3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,(i&4)!=0&&(i&1)!=0&&(l1(r,e),H3(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:va(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&cL(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}cL(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&KC(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&sC(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(ye(163))}function YL(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=Kx("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function JL(e,t){if(us&&typeof us.onCommitFiberUnmount=="function")try{us.onCommitFiberUnmount(lT,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if((n&4)!=0)l1(t,r);else{n=t;try{i()}catch(o){fu(n,o)}}r=r.next}while(r!==e)}break;case 1:if(WL(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){fu(t,o)}break;case 5:WL(t);break;case 4:e1(e,t)}}function XL(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ZL(e){return e.tag===5||e.tag===3||e.tag===4}function $ L(e){e:{for(var t=e.return;t!==null;){if(ZL(t))break e;t=t.return}throw Error(ye(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(ye(161))}r.flags&16&&(Qf(t,""),r.flags&
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -07:00
Add a < Suspense fallback = ... > component higher in the tree to provide a loading indicator or placeholder to display . ` )}Tn!==5&&(Tn=2),d=jT(d,l),b=s;do{switch(b.tag){case 3:o=d,b.flags|=4096,t&=-t,b.lanes|=t;var L=HL(b,o,t);lL(b,L);break e;case 1:o=d;var O=b.type,R=b.stateNode;if((b.flags&64)==0&&(typeof O.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(Fa===null||!Fa.has(R)))){b.flags|=4096,t&=-t,b.lanes|=t;var M=zL(b,o,t);lL(b,M);break e}}b=b.return}while(b!==null)}s1(r)}catch(q){t=q,Jr===r&&r!==null&&(Jr=r=r.return);continue}break}while(1)}function o1(){var e=Kv.current;return Kv.current=Qv,e===null?Qv:e}function Nd(e,t){var r=tt;tt|=16;var n=o1();ei===e&&Fn===t||Wl(e,t);do try{G3();break}catch(i){a1(e,i)}while(1);if(vT(),tt=r,Kv.current=n,Jr!==null)throw Error(ye(261));return ei=null,Fn=0,Tn}function G3(){for(;Jr!==null;)u1(Jr)}function Q3(){for(;Jr!==null&&!k3();)u1(Jr)}function u1(e){var t=f1(e.alternate,e,ds);e.memoizedProps=e.pendingProps,t===null?s1(e):Jr=t,VT.current=null}function s1(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)==0){if(r=A3(r,t,ds),r!==null){Jr=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(ds&1073741824)!=0||(r.mode&4)==0){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&(e.flags&2048)==0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(r=R3(t),r!==null){r.flags&=2047,Jr=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){Jr=t;return}Jr=t=e}while(t!==null);Tn===0&&(Tn=5)}function ps(e){var t=ql();return ss(99,B3.bind(null,e,t)),null}function B3(e,t){do cu();while(Sd!==null);if((tt&48)!=0)throw Error(ye(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ye(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var d=31-Zo(o),h=1<<d;i[d]=0,s[d]=-1,l[d]=-1,o&=~h}if(bo!==null&&(n&24)==0&&bo.has(e)&&bo.delete(e),e===ei&&(Jr=ei=null,Fn=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=tt,tt|=32,VT.current=null,nT=fv,s=RC(), $ b(s)){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(h=l.getSelection&&l.getSelection())&&h.rangeCount!==0){l=h.anchorNode,o=h.anchorOffset,d=h.focusNode,h=h.focusOffset;try{l.nodeType,d.nodeType}catch(q){l=null;break e}var v=0,y=-1,b=-1,D=0,_=0,k=s,T=null;t:for(;;){for(var S;k!==l||o!==0&&k.nodeType!==3||(y=v+o),k!==d||h!==0&&k.nodeType!==3||(b=v+h),k.nodeType===3&&(v+=k.nodeValue.length),(S=k.firstChild)!==null;)T=k,k=S;for(;;){if(k===s)break t;if(T===l&&++D===o&&(y=v),T===d&&++_===h&&(b=v),(S=k.nextSibling)!==null)break;k=T,T=k.parentNode}k=S}l=y===-1||b===-1?null:{start:y,end:b}}else l=null;l=l||{start:0,end:0}}else l=null;iT={focusedElem:s,selectionRange:l},fv=!1,wd=null,Jv=!1,Re=n;do try{K3()}catch(q){if(Re===null)throw Error(ye(330));fu(Re,q),Re=Re.nextEffect}while(Re!==null);wd=null,Re=n;do try{for(s=e;Re!==null;){var m=Re.flags;if(m&16&&Qf(Re.stateNode,""),m&128){var w=Re.alternate;if(w!==null){var x=w.ref;x!==null&&(typeof x=="function"?x(null):x.current=null)}}switch(m&1038){case 2: $ L(Re),Re.flags&=-3;break;case 6: $ L(Re),Re.flags&=-3,qT(Re.alternate,Re);break;case 1024:Re.flags&=-1025;break;case 1028:Re.flags&=-1025,qT(Re.alternate,Re);break;case 4:qT(Re.alternate,Re);break;case 8:l=Re,e1(s,l);var L=l.alternate;XL(l),L!==null&&XL(L)}Re=Re.nextEffect}}catch(q){if(Re===null)throw Error(ye(330));fu(Re,q),Re=Re.nextEffect}while(Re!==null);if(x=iT,w=RC(),m=x.focusedElem,s=x.selectionRange,w!==m&&m&&m.ownerDo
` ),v=n.split(/ \r \n |[ \n \r ]/g),y=v[i];if(y.length>120){for(var b=Math.floor(d/80),D=d%80,_=[],k=0;k<y.length;k+=80)_.push(y.slice(k,k+80));return h+b1([["".concat(s),_[0]]].concat(_.slice(1,b+1).map(function(T){return["",T]}),[[" ",ag(D-1)+"^"],["",_[b+1]]]))}return h+b1([["".concat(s-1),v[i-1]],["".concat(s),y],["",ag(d-1)+"^"],["".concat(s+1),v[i+1]]])}function b1(e){var t=e.filter(function(n){var i=n[0],o=n[1];return o!==void 0}),r=Math.max.apply(Math,t.map(function(n){var i=n[0];return i.length}));return t.map(function(n){var i=n[0],o=n[1];return hH(r,i)+(o?" | "+o:" |")}).join( `
` )}function ag(e){return Array(e+1).join(" ")}function hH(e,t){return ag(e-t.length)+t}});var Je=G(Rd=>{"use strict";function ug(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ug=function(r){return typeof r}:ug=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ug(e)}Object.defineProperty(Rd,"__esModule",{value:!0});Rd.printError=O1;Rd.GraphQLError=void 0;var vH=mH(Ma()),gH=qa(),T1=ig(),_1=l_();function mH(e){return e&&e.__esModule?e:{default:e}}function yH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E1(e,t){for(var r=0;r<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 bH(e,t,r){return t&&E1(e.prototype,t),r&&E1(e,r),e}function TH(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&&Id(e,t)}function _H(e){var t=k1();return function(){var n=Ad(e),i;if(t){var o=Ad(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return S1(this,i)}}function S1(e,t){return t&&(ug(t)==="object"||typeof t=="function")?t:Ld(e)}function Ld(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c_(e){var t=typeof Map=="function"?new Map:void 0;return c_=function(n){if(n===null||!EH(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,i)}function i(){return sg(n,arguments,Ad(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Id(i,n)},c_(e)}function sg(e,t,r){return k1()?sg=Reflect.construct:sg=function(i,o,s){var l=[null];l.push.apply(l,o);var d=Function.bind.apply(i,l),h=new d;return s&&Id(h,s.prototype),h},sg.apply(null,arguments)}function k1(){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 EH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Id(e,t){return Id=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Id(e,t)}function Ad(e){return Ad=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ad(e)}var SH=function(e){TH(r,e);var t=_H(r);function r(n,i,o,s,l,d,h){var v,y,b,D,_;yH(this,r),_=t.call(this,n);var k=Array.isArray(i)?i.length!==0?i:void 0:i?[i]:void 0,T=o;if(!T&&k){var S;T=(S=k[0].loc)===null||S===void 0?void 0:S.source}var m=s;!m&&k&&(m=k.reduce(function(O,R){return R.loc&&O.push(R.loc.start),O},[])),m&&m.length===0&&(m=void 0);var w;s&&o?w=s.map(function(O){return(0,T1.getLocation)(o,O)}):k&&(w=k.reduce(function(O,R){return R.loc&&O.push((0,T1.getLocation)(R.loc.source,R.loc.start)),O},[]));var x=h;if(x==null&&d!=null){var L=d.extensions;(0,vH.default)(L)&&(x=L)}return Object.defineProperties(Ld(_),{name:{value:"GraphQLError"},message:{value:n,enumerable:!0,writable:!0},locations:{value:(v=w)!==null&&v!==void 0?v:void 0,enumerable:w!=null},path:{value:l!=null?l:void 0,enumerable:l!=null},nodes:{value:k!=null?k:void 0},source:{value:(y=T)!==null&&y!==void 0?y:void 0},positions:{value:(b=m)!==null&&b!==void 0?b:void 0},originalError:{value:d},extensions:{value:(D=x)!==null&&D!==void 0?D:void 0,enumerable:x!=null}}),d!=null&&d.stack?(Object.defineProperty(Ld(_),"stack",{value:d.stack,writable:!0,configurable:!0}),S1(_)):(Error.captureStackTrace?Error.captureStackTrace(Ld(_),r):Object.defineProperty(Ld(_),"stack",{value:Error().stack,writable:!0,configurable:!0}),_)}return bH(r,[{key:"toString",value:function(){return O1(this)}},{key:gH.SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),r}(c_(
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -07:00
` +(0,_1.printLocation)(i.loc))}else if(e.source&&e.locations)for(var o=0,s=e.locations;o<s.length;o++){var l=s[o];t+= `
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -07:00
` +(0,_1.printSourceLocation)(e.source,l)}return t}});var lg=G(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.syntaxError=OH;var kH=Je();function OH(e,t,r){return new kH.GraphQLError("Syntax Error: ".concat(r),void 0,e,[t])}});var Jt=G(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});cg.Kind=void 0;var wH=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});cg.Kind=wH});var _n=G(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});d_.default=NH;function NH(e,t){var r=Boolean(e);if(!r)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var p_=G(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.default=void 0;var DH=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,xH=DH;fg.default=xH});var dg=G(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.default=LH;var CH=N1(_n()),w1=N1(p_());function N1(e){return e&&e.__esModule?e:{default:e}}function LH(e){var t=e.prototype.toJSON;typeof t=="function"||(0,CH.default)(0),e.prototype.inspect=t,w1.default&&(e.prototype[w1.default]=t)}});var Xl=G(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.isNode=AH;hs.Token=hs.Location=void 0;var D1=IH(dg());function IH(e){return e&&e.__esModule?e:{default:e}}var x1=function(){function e(r,n,i){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=i}var t=e.prototype;return t.toJSON=function(){return{start:this.start,end:this.end}},e}();hs.Location=x1;(0,D1.default)(x1);var C1=function(){function e(r,n,i,o,s,l,d){this.kind=r,this.start=n,this.end=i,this.line=o,this.column=s,this.value=d,this.prev=l,this.next=null}var t=e.prototype;return t.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();hs.Token=C1;(0,D1.default)(C1);function AH(e){return e!=null&&typeof e.kind=="string"}});var Zl=G(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.TokenKind=void 0;var RH=Object.freeze({SOF:"<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"});pg.TokenKind=RH});var jt=G(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});v_.default=MH;var jH=PH(p_());function PH(e){return e&&e.__esModule?e:{default:e}}function hg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hg=function(r){return typeof r}:hg=function(r){return r&&typeof Symbol=="function"&&r.constructor===Sym
` )}function R1(e){for(var t=0;t<e.length;++t)if(e[t]!==" "&&e[t]!==" ")return!1;return!0}function j1(e){for(var t,r=!0,n=!0,i=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,i=0;break;case 9:case 32:++i;break;default:n&&!r&&(o===null||i<o)&&(o=i),n=!1}return(t=o)!==null&&t!==void 0?t:0}function $ H(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( `
` )===-1,i=e[0]===" "||e[0]===" ",o=e[e.length-1]==='"',s=e[e.length-1]===" \\ ",l=!n||o||s||r,d="";return l&&!(n&&i)&&(d+= `
2021-07-31 23:49:48 -07:00
` +t),d+=t?e.replace(/ \n /g, `
2022-10-04 15:02:37 +02:00
` +t):e,l&&(d+= `
2023-08-22 14:06:59 -07:00
` ),'"""'+d.replace(/"""/g,' \\ """')+'"""'}});var Tg=G(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.isPunctuatorTokenKind=rz;Md.Lexer=void 0;var Va=lg(),xr=Xl(),dt=Zl(),ez=ec(),tz=function(){function e(r){var n=new xr.Token(dt.TokenKind.SOF,0,0,0,0,null);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){this.lastToken=this.token;var n=this.token=this.lookahead();return n},t.lookahead=function(){var n=this.token;if(n.kind!==dt.TokenKind.EOF)do{var i;n=(i=n.next)!==null&&i!==void 0?i:n.next=nz(this,n)}while(n.kind===dt.TokenKind.COMMENT);return n},e}();Md.Lexer=tz;function rz(e){return e===dt.TokenKind.BANG||e===dt.TokenKind.DOLLAR||e===dt.TokenKind.AMP||e===dt.TokenKind.PAREN_L||e===dt.TokenKind.PAREN_R||e===dt.TokenKind.SPREAD||e===dt.TokenKind.COLON||e===dt.TokenKind.EQUALS||e===dt.TokenKind.AT||e===dt.TokenKind.BRACKET_L||e===dt.TokenKind.BRACKET_R||e===dt.TokenKind.BRACE_L||e===dt.TokenKind.PIPE||e===dt.TokenKind.BRACE_R}function vs(e){return isNaN(e)?dt.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'" \\ u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function nz(e,t){for(var r=e.source,n=r.body,i=n.length,o=t.end;o<i;){var s=n.charCodeAt(o),l=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 xr.Token(dt.TokenKind.BANG,o,o+1,l,d,t);case 35:return az(r,o,l,d,t);case 36:return new xr.Token(dt.TokenKind.DOLLAR,o,o+1,l,d,t);case 38:return new xr.Token(dt.TokenKind.AMP,o,o+1,l,d,t);case 40:return new xr.Token(dt.TokenKind.PAREN_L,o,o+1,l,d,t);case 41:return new xr.Token(dt.TokenKind.PAREN_R,o,o+1,l,d,t);case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return new xr.Token(dt.TokenKind.SPREAD,o,o+3,l,d,t);break;case 58:return new xr.Token(dt.TokenKind.COLON,o,o+1,l,d,t);case 61:return new xr.Token(dt.TokenKind.EQUALS,o,o+1,l,d,t);case 64:return new xr.Token(dt.TokenKind.AT,o,o+1,l,d,t);case 91:return new xr.Token(dt.TokenKind.BRACKET_L,o,o+1,l,d,t);case 93:return new xr.Token(dt.TokenKind.BRACKET_R,o,o+1,l,d,t);case 123:return new xr.Token(dt.TokenKind.BRACE_L,o,o+1,l,d,t);case 124:return new xr.Token(dt.TokenKind.PIPE,o,o+1,l,d,t);case 125:return new xr.Token(dt.TokenKind.BRACE_R,o,o+1,l,d,t);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?sz(r,o,l,d,t,e):uz(r,o,l,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 oz(r,o,s,l,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 cz(r,o,l,d,t)}throw(0,Va.syntaxError)(r,o,iz(s))}var h=e.line,v=1+o-e.lineStart;return new xr.Token(dt.TokenKind.EOF,i,i,h,v,t)}function iz(e){return e<32&&e!==9&&e!==10&&e!==13?"Cannot contain the invalid character ".concat(vs(e),"."):e===39? ` Unexpected single quote character ( ' ) , did you mean to use a double quote ( ")?`:" Cannot parse the unexpected character ".concat(vs(e)," . ")}function az(e,t,r,n,i){var o=e.body,s,l=t;do s=o.charCodeAt(++l);while(!isNaN(s)&&(s>31||s===9));return new xr.Token(dt.TokenKind.COMMENT,t,l,r,n,i,o.slice(t+1,l))}function oz(e,t,r,n,i,o){var s=e.body,l=r,d=t,h=!1;if(l===45&&(l=s.charCodeAt(++d)),l===48){if(l=s.charCodeAt(++d),l>=48&&l<=57)throw(0,Va.syntaxError)(e,d," Invalid number , unexpected digit after 0 : ".concat(vs(l)," . " ) ) } else d = b _ ( e , d , l ) , l = s . charCodeAt ( d ) ; if ( l === 46 && ( h = ! 0 , l = s . charCodeAt ( ++ d ) , d = b _ ( e , d , l ) , l = s . charCodeAt ( d ) ) , ( l === 69 || l === 101 ) && ( h = ! 0 , l = s . charCodeAt ( ++ d ) , ( l === 43 || l === 45 ) && ( l = s . charCodeAt ( ++ d ) ) , d = b _ ( e , d , l ) , l = s . charCodeAt ( d ) ) , l === 46 || fz ( l ) ) throw ( 0 , Va . syntax
` ;break;case 114:h+=" \r ";break;case 116:h+=" ";break;case 117:{var v=lz(o.charCodeAt(s+1),o.charCodeAt(s+2),o.charCodeAt(s+3),o.charCodeAt(s+4));if(v<0){var y=o.slice(s+1,s+5);throw(0,Va.syntaxError)(e,s,"Invalid character escape sequence: \\ u".concat(y,"."))}h+=String.fromCharCode(v),s+=4;break}default:throw(0,Va.syntaxError)(e,s,"Invalid character escape sequence: \\ ".concat(String.fromCharCode(d),"."))}++s,l=s}}throw(0,Va.syntaxError)(e,s,"Unterminated string.")}function sz(e,t,r,n,i,o){for(var s=e.body,l=t+3,d=l,h=0,v="";l<s.length&&!isNaN(h=s.charCodeAt(l));){if(h===34&&s.charCodeAt(l+1)===34&&s.charCodeAt(l+2)===34)return v+=s.slice(d,l),new xr.Token(dt.TokenKind.BLOCK_STRING,t,l+3,r,n,i,(0,ez.dedentBlockStringValue)(v));if(h<32&&h!==9&&h!==10&&h!==13)throw(0,Va.syntaxError)(e,l,"Invalid character within String: ".concat(vs(h),"."));h===10?(++l,++o.line,o.lineStart=l):h===13?(s.charCodeAt(l+1)===10?l+=2:++l,++o.line,o.lineStart=l):h===92&&s.charCodeAt(l+1)===34&&s.charCodeAt(l+2)===34&&s.charCodeAt(l+3)===34?(v+=s.slice(d,l)+'"""',l+=4,d=l):++l}throw(0,Va.syntaxError)(e,l,"Unterminated string.")}function lz(e,t,r,n){return bg(e)<<12|bg(t)<<8|bg(r)<<4|bg(n)}function bg(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function cz(e,t,r,n,i){for(var o=e.body,s=o.length,l=t+1,d=0;l!==s&&!isNaN(d=o.charCodeAt(l))&&(d===95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122);)++l;return new xr.Token(dt.TokenKind.NAME,t,l,r,n,i,o.slice(t,l))}function fz(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}});var tc=G(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.parse=hz;gs.parseValue=vz;gs.parseType=gz;gs.Parser=void 0;var T_=lg(), $ e=Jt(),dz=Xl(),De=Zl(),P1=mg(),pz= $ l(),F1=Tg();function hz(e,t){var r=new _g(e,t);return r.parseDocument()}function vz(e,t){var r=new _g(e,t);r.expectToken(De.TokenKind.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(De.TokenKind.EOF),n}function gz(e,t){var r=new _g(e,t);r.expectToken(De.TokenKind.SOF);var n=r.parseTypeReference();return r.expectToken(De.TokenKind.EOF),n}var _g=function(){function e(r,n){var i=(0,P1.isSource)(r)?r:new P1.Source(r);this._lexer=new F1.Lexer(i),this._options=n}var t=e.prototype;return t.parseName=function(){var n=this.expectToken(De.TokenKind.NAME);return{kind: $ e.Kind.NAME,value:n.value,loc:this.loc(n)}},t.parseDocument=function(){var n=this._lexer.token;return{kind: $ e.Kind.DOCUMENT,definitions:this.many(De.TokenKind.SOF,this.parseDefinition,De.TokenKind.EOF),loc:this.loc(n)}},t.parseDefinition=function(){if(this.peek(De.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(De.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(De.TokenKind.BRACE_L))return{kind: $ e.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var i=this.parseOperationType(),o;return this.peek(De.TokenKind.NAME)&&(o=this.parseName()),{kind: $ e.Kind.OPERATION_DEFINITION,operation:i,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseOperationType=function(){var n=this.expectToken(De.TokenKind.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},t.parseVariableDefinitions=function(){return this.optionalMany(De.TokenKind.PAREN_L,this.parseVariableDefinition,De.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var n=this._lexer.token;return{kind: $ e.Kind.VA
2021-07-31 23:49:48 -07:00
` )+ `
2023-08-22 14:06:59 -07:00
` },OperationDefinition:function(t){var r=t.operation,n=t.name,i=yr("(",je(t.variableDefinitions,", "),")"),o=je(t.directives," "),s=t.selectionSet;return!n&&!o&&!i&&r==="query"?s:je([r,je([n,i]),o,s]," ")},VariableDefinition:function(t){var r=t.variable,n=t.type,i=t.defaultValue,o=t.directives;return r+": "+n+yr(" = ",i)+yr(" ",je(o," "))},SelectionSet:function(t){var r=t.selections;return ya(r)},Field:function(t){var r=t.alias,n=t.name,i=t.arguments,o=t.directives,s=t.selectionSet,l=yr("",r,": ")+n,d=l+yr("(",je(i,", "),")");return d.length>tW&&(d=l+yr( ` (
` ,xg(je(i, `
2021-07-31 23:49:48 -07:00
` )), `
2023-08-22 14:06:59 -07:00
) ` )),je([d,je(o," "),s]," ")},Argument:function(t){var r=t.name,n=t.value;return r+": "+n},FragmentSpread:function(t){var r=t.name,n=t.directives;return"..."+r+yr(" ",je(n," "))},InlineFragment:function(t){var r=t.typeCondition,n=t.directives,i=t.selectionSet;return je(["...",yr("on ",r),je(n," "),i]," ")},FragmentDefinition:function(t){var r=t.name,n=t.typeCondition,i=t.variableDefinitions,o=t.directives,s=t.selectionSet;return"fragment ".concat(r).concat(yr("(",je(i,", "),")")," ")+"on ".concat(n," ").concat(yr("",je(o," ")," "))+s},IntValue:function(t){var r=t.value;return r},FloatValue:function(t){var r=t.value;return r},StringValue:function(t,r){var n=t.value,i=t.block;return i?(0, $ z.printBlockString)(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function(t){var r=t.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){var r=t.value;return r},ListValue:function(t){var r=t.values;return"["+je(r,", ")+"]"},ObjectValue:function(t){var r=t.fields;return"{"+je(r,", ")+"}"},ObjectField:function(t){var r=t.name,n=t.value;return r+": "+n},Directive:function(t){var r=t.name,n=t.arguments;return"@"+r+yr("(",je(n,", "),")")},NamedType:function(t){var r=t.name;return r},ListType:function(t){var r=t.type;return"["+r+"]"},NonNullType:function(t){var r=t.type;return r+"!"},SchemaDefinition:ma(function(e){var t=e.directives,r=e.operationTypes;return je(["schema",je(t," "),ya(r)]," ")}),OperationTypeDefinition:function(t){var r=t.operation,n=t.type;return r+": "+n},ScalarTypeDefinition:ma(function(e){var t=e.name,r=e.directives;return je(["scalar",t,je(r," ")]," ")}),ObjectTypeDefinition:ma(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return je(["type",t,yr("implements ",je(r," & ")),je(n," "),ya(i)]," ")}),FieldDefinition:ma(function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(K1(r)?yr( ` (
` ,xg(je(r, `
2021-07-31 23:49:48 -07:00
` )), `
2023-08-22 14:06:59 -07:00
) ` ):yr("(",je(r,", "),")"))+": "+n+yr(" ",je(i," "))}),InputValueDefinition:ma(function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return je([t+": "+r,yr("= ",n),je(i," ")]," ")}),InterfaceTypeDefinition:ma(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return je(["interface",t,yr("implements ",je(r," & ")),je(n," "),ya(i)]," ")}),UnionTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.types;return je(["union",t,je(r," "),n&&n.length!==0?"= "+je(n," | "):""]," ")}),EnumTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.values;return je(["enum",t,je(r," "),ya(n)]," ")}),EnumValueDefinition:ma(function(e){var t=e.name,r=e.directives;return je([t,je(r," ")]," ")}),InputObjectTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.fields;return je(["input",t,je(r," "),ya(n)]," ")}),DirectiveDefinition:ma(function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(K1(r)?yr( ` (
` ,xg(je(r, `
2021-07-31 23:49:48 -07:00
` )), `
2023-08-22 14:06:59 -07:00
) ` ):yr("(",je(r,", "),")"))+(n?" repeatable":"")+" on "+je(i," | ")}),SchemaExtension:function(t){var r=t.directives,n=t.operationTypes;return je(["extend schema",je(r," "),ya(n)]," ")},ScalarTypeExtension:function(t){var r=t.name,n=t.directives;return je(["extend scalar",r,je(n," ")]," ")},ObjectTypeExtension:function(t){var r=t.name,n=t.interfaces,i=t.directives,o=t.fields;return je(["extend type",r,yr("implements ",je(n," & ")),je(i," "),ya(o)]," ")},InterfaceTypeExtension:function(t){var r=t.name,n=t.interfaces,i=t.directives,o=t.fields;return je(["extend interface",r,yr("implements ",je(n," & ")),je(i," "),ya(o)]," ")},UnionTypeExtension:function(t){var r=t.name,n=t.directives,i=t.types;return je(["extend union",r,je(n," "),i&&i.length!==0?"= "+je(i," | "):""]," ")},EnumTypeExtension:function(t){var r=t.name,n=t.directives,i=t.values;return je(["extend enum",r,je(n," "),ya(i)]," ")},InputObjectTypeExtension:function(t){var r=t.name,n=t.directives,i=t.fields;return je(["extend input",r,je(n," "),ya(i)]," ")}};function ma(e){return function(t){return je([t.description,e(t)], `
` )}}function je(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(t=e==null?void 0:e.filter(function(n){return n}).join(r))!==null&&t!==void 0?t:""}function ya(e){return yr( ` {
` ,xg(je(e, `
2021-07-31 23:49:48 -07:00
` )), `
2023-08-22 14:06:59 -07:00
} ` )}function yr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t!=null&&t!==""?e+t+r:""}function xg(e){return yr(" ",e.replace(/ \n /g, `
` ))}function nW(e){return e.indexOf( `
` )!==-1}function K1(e){return e!=null&&e.some(nW)}});var M_=G(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.valueFromASTUntyped=P_;var iW=j_(jt()),aW=j_(_n()),oW=j_(Vd()),Eo=Jt();function j_(e){return e&&e.__esModule?e:{default:e}}function P_(e,t){switch(e.kind){case Eo.Kind.NULL:return null;case Eo.Kind.INT:return parseInt(e.value,10);case Eo.Kind.FLOAT:return parseFloat(e.value);case Eo.Kind.STRING:case Eo.Kind.ENUM:case Eo.Kind.BOOLEAN:return e.value;case Eo.Kind.LIST:return e.values.map(function(r){return P_(r,t)});case Eo.Kind.OBJECT:return(0,oW.default)(e.fields,function(r){return r.name.value},function(r){return P_(r.value,t)});case Eo.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}(0,aW.default)(0,"Unexpected value node: "+(0,iW.default)(e))}});var bt=G(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.isType=q_;Be.assertType=X1;Be.isScalarType=ms;Be.assertScalarType=pW;Be.isObjectType=oc;Be.assertObjectType=hW;Be.isInterfaceType=ys;Be.assertInterfaceType=vW;Be.isUnionType=bs;Be.assertUnionType=gW;Be.isEnumType=Ts;Be.assertEnumType=mW;Be.isInputObjectType=Qd;Be.assertInputObjectType=yW;Be.isListType=Lg;Be.assertListType=bW;Be.isNonNullType=_u;Be.assertNonNullType=TW;Be.isInputType=V_;Be.assertInputType=_W;Be.isOutputType=U_;Be.assertOutputType=EW;Be.isLeafType=Z1;Be.assertLeafType=SW;Be.isCompositeType= $ 1;Be.assertCompositeType=kW;Be.isAbstractType=eI;Be.assertAbstractType=OW;Be.GraphQLList=Eu;Be.GraphQLNonNull=Su;Be.isWrappingType=Bd;Be.assertWrappingType=wW;Be.isNullableType=tI;Be.assertNullableType=rI;Be.getNullableType=NW;Be.isNamedType=nI;Be.assertNamedType=DW;Be.getNamedType=xW;Be.argsToArgsConfig=uI;Be.isRequiredArgument=CW;Be.isRequiredInputField=RW;Be.GraphQLInputObjectType=Be.GraphQLEnumType=Be.GraphQLUnionType=Be.GraphQLInterfaceType=Be.GraphQLObjectType=Be.GraphQLScalarType=void 0;var H1=Di(ic()),yu=qa(),ur=Di(jt()),uW=Di(vu()),Cg=Di(w_()),Ua=Di(Ng()),fr=Di(Hi()),z1=Di(Vd()),bu=Di(jd()),sW=Di(gu()),lW=Di(Ma()),W1=Di(Q1()),Tu=Di(dg()),cW=Di(mu()),Gd=Je(),fW=Jt(),Y1=hi(),dW=M_();function Di(e){return e&&e.__esModule?e:{default:e}}function J1(e,t){for(var r=0;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 ac(e,t,r){return t&&J1(e.prototype,t),r&&J1(e,r),e}function q_(e){return ms(e)||oc(e)||ys(e)||bs(e)||Ts(e)||Qd(e)||Lg(e)||_u(e)}function X1(e){if(!q_(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL type."));return e}function ms(e){return(0,bu.default)(e,G_)}function pW(e){if(!ms(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Scalar type."));return e}function oc(e){return(0,bu.default)(e,Q_)}function hW(e){if(!oc(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Object type."));return e}function ys(e){return(0,bu.default)(e,B_)}function vW(e){if(!ys(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Interface type."));return e}function bs(e){return(0,bu.default)(e,K_)}function gW(e){if(!bs(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Union type."));return e}function Ts(e){return(0,bu.default)(e,H_)}function mW(e){if(!Ts(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Enum type."));return e}function Qd(e){return(0,bu.default)(e,z_)}function yW(e){if(!Qd(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Input Object type."));return e}function Lg(e){return(0,bu.default)(e,Eu)}function bW(e){if(!Lg(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL List type."));return e}function _u(e){return(0,bu.default)(e,Su)}function TW(e){if(!_u(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Non-Null type."));return e}function V_(e){return ms(e)||Ts(e)||Qd(e)||Bd(e)&&V_(e.ofType)}function _W(e){if(!V_(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL input type."));return e}function U_(e){return ms(e)||oc(e)||ys(e)||bs(e)|
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -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 Pe.GraphQLNonNull( $ t.GraphQLString),resolve:function(r){return r.name}},description:{type: $ t.GraphQLString,resolve:function(r){return r.description}},isRepeatable:{type:new Pe.GraphQLNonNull( $ t.GraphQLBoolean),resolve:function(r){return r.isRepeatable}},locations:{type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull(aE))),resolve:function(r){return r.locations}},args:{type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull( $ d))),resolve:function(r){return r.args}}}}});Gt.__Directive=iE;var aE=new Pe.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Xr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Xr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Xr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Xr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Xr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Xr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Xr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Xr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Xr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Xr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Xr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Xr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Xr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Xr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Xr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Xr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Xr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Xr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Xr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Gt.__DirectiveLocation=aE;var Wi=new Pe.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the ` _ _TypeKind ` enum. \n \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 Pe.GraphQLNonNull(sE),resolve:function(r){if((0,Pe.isScalarType)(r))return En.SCALAR;if((0,Pe.isObjectType)(r))return En.OBJECT;if((0,Pe.isInterfaceType)(r))return En.INTERFACE;if((0,Pe.isUnionType)(r))return En.UNION;if((0,Pe.isEnumType)(r))return En.ENUM;if((0,Pe.isInputObjectTyp
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -07:00
` ))}var V4=function(){function e(r){this._errors=[],this.schema=r}var t=e.prototype;return t.reportError=function(n,i){var o=Array.isArray(i)?i.filter(Boolean):i;this.addError(new R4.GraphQLError(n,o))},t.addError=function(n){this._errors.push(n)},t.getErrors=function(){return this._errors},e}();function U4(e){var t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Cr.isObjectType)(r)){var n;e.reportError("Query root type must be Object type, it cannot be ".concat((0,qn.default)(r),"."),(n=pE(t,"query"))!==null&&n!==void 0?n:r.astNode)}var i=t.getMutationType();if(i&&!(0,Cr.isObjectType)(i)){var o;e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,qn.default)(i),"."),(o=pE(t,"mutation"))!==null&&o!==void 0?o:i.astNode)}var s=t.getSubscriptionType();if(s&&!(0,Cr.isObjectType)(s)){var l;e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,qn.default)(s),"."),(l=pE(t,"subscription"))!==null&&l!==void 0?l:s.astNode)}}function pE(e,t){for(var r=hE(e,function(o){return o.operationTypes}),n=0;n<r.length;n++){var i=r[n];if(i.operation===t)return i.type}}function G4(e){for(var t=0,r=e.schema.getDirectives();t<r.length;t++){var n=r[t];if(!(0,RI.isDirective)(n)){e.reportError("Expected directive but got: ".concat((0,qn.default)(n),"."),n==null?void 0:n.astNode);continue}Os(e,n);for(var i=0,o=n.args;i<o.length;i++){var s=o[i];if(Os(e,s),(0,Cr.isInputType)(s.type)||e.reportError("The type of @".concat(n.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat((0,qn.default)(s.type),"."),s.astNode),(0,Cr.isRequiredArgument)(s)&&s.deprecationReason!=null){var l;e.reportError("Required argument @".concat(n.name,"(").concat(s.name,":) cannot be deprecated."),[vE(s.astNode),(l=s.astNode)===null||l===void 0?void 0:l.type])}}}}function Os(e,t){var r=(0,P4.isValidNameError)(t.name);r&&e.addError((0,j4.locatedError)(r,t.astNode))}function Q4(e){for(var t=Y4(e),r=e.schema.getTypeMap(),n=0,i=(0,ep.default)(r);n<i.length;n++){var o=i[n];if(!(0,Cr.isNamedType)(o)){e.reportError("Expected GraphQL named type but got: ".concat((0,qn.default)(o),"."),o.astNode);continue}(0,M4.isIntrospectionType)(o)||Os(e,o),(0,Cr.isObjectType)(o)||(0,Cr.isInterfaceType)(o)?(PI(e,o),FI(e,o)):(0,Cr.isUnionType)(o)?H4(e,o):(0,Cr.isEnumType)(o)?z4(e,o):(0,Cr.isInputObjectType)(o)&&(W4(e,o),t(o))}}function PI(e,t){var r=(0,ep.default)(t.getFields());r.length===0&&e.reportError("Type ".concat(t.name," must define one or more fields."),fc(t));for(var n=0;n<r.length;n++){var i=r[n];if(Os(e,i),!(0,Cr.isOutputType)(i.type)){var o;e.reportError("The type of ".concat(t.name,".").concat(i.name," must be Output Type ")+"but got: ".concat((0,qn.default)(i.type),"."),(o=i.astNode)===null||o===void 0?void 0:o.type)}for(var s=0,l=i.args;s<l.length;s++){var d=l[s],h=d.name;if(Os(e,d),!(0,Cr.isInputType)(d.type)){var v;e.reportError("The type of ".concat(t.name,".").concat(i.name,"(").concat(h,":) must be Input ")+"Type but got: ".concat((0,qn.default)(d.type),"."),(v=d.astNode)===null||v===void 0?void 0:v.type)}if((0,Cr.isRequiredArgument)(d)&&d.deprecationReason!=null){var y;e.reportError("Required argument ".concat(t.name,".").concat(i.name,"(").concat(h,":) cannot be deprecated."),[vE(d.astNode),(y=d.astNode)===null||y===void 0?void 0:y.type])}}}}function FI(e,t){for(var r=Object.create(null),n=0,i=t.getInterfaces();n<i.length;n++){var o=i[n];if(!(0,Cr.isInterfaceType)(o)){e.reportError("Type ".concat((0,qn.default)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,qn.default)(o),"."),tp(t,o));continue}if(t===o){e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),tp(t,o));continue}if(r[o.name]){e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),tp(t,o));continue}r[o.name]=!0,K4(e,t,o),B4(e,t,o)}}function B4(e,t,r){for(var n=t.getFields(),i=0,o=(0,ep.default)(r.getFields());i<o.length;i++){var s=o[i],l=s.name
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -07:00
` ))}function H9(e,t){var r=GS(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
2023-08-22 14:06:59 -07:00
` ))}});var rR=G(QS=>{"use strict";Object.defineProperty(QS,"__esModule",{value:!0});QS.default=z9;function z9(e){var t;return function(n,i,o){t||(t=new WeakMap);var s=t.get(n),l;if(s){if(l=s.get(i),l){var d=l.get(o);if(d!==void 0)return d}}else s=new WeakMap,t.set(n,s);l||(l=new WeakMap,s.set(i,l));var h=e(n,i,o);return l.set(o,h),h}}});var nR=G(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});BS.default=J9;var W9=Y9(rg());function Y9(e){return e&&e.__esModule?e:{default:e}}function J9(e,t,r){return e.reduce(function(n,i){return(0,W9.default)(n)?n.then(function(o){return t(o,i)}):t(n,i)},r)}});var iR=G(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0});KS.default=X9;function X9(e){var t=Object.keys(e),r=t.map(function(n){return e[n]});return Promise.all(r).then(function(n){return n.reduce(function(i,o,s){return i[t[s]]=o,i},Object.create(null))})}});var up=G(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.addPath=Z9;am.pathToArray= $ 9;function Z9(e,t,r){return{prev:e,key:t,typename:r}}function $ 9(e){for(var t=[],r=e;r;)t.push(r.key),r=r.prev;return t.reverse()}});var um=G(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});HS.getOperationRootType=e8;var om=Je();function e8(e,t){if(t.operation==="query"){var r=e.getQueryType();if(!r)throw new om.GraphQLError("Schema does not define the required query root type.",t);return r}if(t.operation==="mutation"){var n=e.getMutationType();if(!n)throw new om.GraphQLError("Schema is not configured for mutations.",t);return n}if(t.operation==="subscription"){var i=e.getSubscriptionType();if(!i)throw new om.GraphQLError("Schema is not configured for subscriptions.",t);return i}throw new om.GraphQLError("Can only have query, mutation and subscription operations.",t)}});var WS=G(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0});zS.default=t8;function t8(e){return e.map(function(t){return typeof t=="number"?"["+t.toString()+"]":"."+t}).join("")}});var lp=G(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0});YS.valueFromAST=sp;var r8=sm(Ni()),n8=sm(vu()),i8=sm(jt()),a8=sm(_n()),yc=Jt(),xs=bt();function sm(e){return e&&e.__esModule?e:{default:e}}function sp(e,t,r){if(!!e){if(e.kind===yc.Kind.VARIABLE){var n=e.name.value;if(r==null||r[n]===void 0)return;var i=r[n];return i===null&&(0,xs.isNonNullType)(t)?void 0:i}if((0,xs.isNonNullType)(t))return e.kind===yc.Kind.NULL?void 0:sp(e,t.ofType,r);if(e.kind===yc.Kind.NULL)return null;if((0,xs.isListType)(t)){var o=t.ofType;if(e.kind===yc.Kind.LIST){for(var s=[],l=0,d=e.values;l<d.length;l++){var h=d[l];if(aR(h,r)){if((0,xs.isNonNullType)(o))return;s.push(null)}else{var v=sp(h,o,r);if(v===void 0)return;s.push(v)}}return s}var y=sp(e,o,r);return y===void 0?void 0:[y]}if((0,xs.isInputObjectType)(t)){if(e.kind!==yc.Kind.OBJECT)return;for(var b=Object.create(null),D=(0,n8.default)(e.fields,function(x){return x.name.value}),_=0,k=(0,r8.default)(t.getFields());_<k.length;_++){var T=k[_],S=D[T.name];if(!S||aR(S.value,r)){if(T.defaultValue!==void 0)b[T.name]=T.defaultValue;else if((0,xs.isNonNullType)(T.type))return;continue}var m=sp(S.value,T.type,r);if(m===void 0)return;b[T.name]=m}return b}if((0,xs.isLeafType)(t)){var w;try{w=t.parseLiteral(e,r)}catch(x){return}return w===void 0?void 0:w}(0,a8.default)(0,"Unexpected input type: "+(0,i8.default)(t))}}function aR(e,t){return e.kind===yc.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var XS=G(JS=>{"use strict";Object.defineProperty(JS,"__esModule",{value:!0});JS.coerceInputValue=p8;var o8=Nu(Ni()),lm=Nu(jt()),u8=Nu(_n()),s8=Nu(gu()),l8=Nu(Ma()),c8=Nu(Mg()),f8=Nu(mu()),d8=Nu(WS()),So=up(),Cs=Je(),cp=bt();function Nu(e){return e&&e.__esModule?e:{default:e}}function p8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h8;return fp(e,t,r)}function h8(e,t,r){var n="Invalid value "+(0,lm.default)(t);throw e.length>0&&(n+=' at "value'.concat((0,d8.default)(e),'"')),r.message=n+": "+r.message,r}function fp(e,t,r,n){if((0,cp.isNonNullType)(t)){if(e!=null)return fp(e,t.ofType,r,n);r((0,S
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, `
2023-08-22 14:06:59 -07:00
` ).concat(i, `
2021-07-31 23:49:48 -07:00
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
}
}
}
}
}
}
}
}
2023-08-22 14:06:59 -07:00
` )}});var mk=G(gk=>{"use strict";Object.defineProperty(gk,"__esModule",{value:!0});gk.getOperationAST=h7;var p7=Jt();function h7(e,t){for(var r=null,n=0,i=e.definitions;n<i.length;n++){var o=i[n];if(o.kind===p7.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 ej=G(yk=>{"use strict";Object.defineProperty(yk,"__esModule",{value:!0});yk.introspectionFromSchema=E7;var v7=b7(_n()),g7=tc(),m7=mp(),y7=vk();function b7(e){return e&&e.__esModule?e:{default:e}}function $ R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function T7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2? $ R(Object(r),!0).forEach(function(n){_7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)): $ R(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E7(e,t){var r=T7({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),n=(0,g7.parse)((0,y7.getIntrospectionQuery)(r)),i=(0,m7.executeSync)({schema:e,document:n});return!i.errors&&i.data||(0,v7.default)(0),i.data}});var rj=G(bk=>{"use strict";Object.defineProperty(bk,"__esModule",{value:!0});bk.buildClientSchema=C7;var S7=bp(Ni()),Ci=bp(jt()),k7=bp(Hi()),Tm=bp(Vd()),tj=bp(Ma()),O7=tc(),w7=ks(),N7=gi(),D7=Ga(),za=vi(),Li=bt(),x7=lp();function bp(e){return e&&e.__esModule?e:{default:e}}function C7(e,t){(0,tj.default)(e)&&(0,tj.default)(e.__schema)||(0,k7.default)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,Ci.default)(e),"."));for(var r=e.__schema,n=(0,Tm.default)(r.types,function(Q){return Q.name},function(Q){return k(Q)}),i=0,o=[].concat(D7.specifiedScalarTypes,za.introspectionTypes);i<o.length;i++){var s=o[i];n[s.name]&&(n[s.name]=s)}var l=r.queryType?D(r.queryType):null,d=r.mutationType?D(r.mutationType):null,h=r.subscriptionType?D(r.subscriptionType):null,v=r.directives?r.directives.map(B):[];return new w7.GraphQLSchema({description:r.description,query:l,mutation:d,subscription:h,types:(0,S7.default)(n),directives:v,assumeValid:t==null?void 0:t.assumeValid});function y(Q){if(Q.kind===za.TypeKind.LIST){var P=Q.ofType;if(!P)throw new Error("Decorated type deeper than introspection query.");return new Li.GraphQLList(y(P))}if(Q.kind===za.TypeKind.NON_NULL){var he=Q.ofType;if(!he)throw new Error("Decorated type deeper than introspection query.");var xe=y(he);return new Li.GraphQLNonNull((0,Li.assertNullableType)(xe))}return b(Q)}function b(Q){var P=Q.name;if(!P)throw new Error("Unknown type reference: ".concat((0,Ci.default)(Q),"."));var he=n[P];if(!he)throw new Error("Invalid or incomplete schema, unknown type: ".concat(P,". Ensure that a full introspection query is used in order to build a client schema."));return he}function D(Q){return(0,Li.assertObjectType)(b(Q))}function _(Q){return(0,Li.assertInterfaceType)(b(Q))}function k(Q){if(Q!=null&&Q.name!=null&&Q.kind!=null)switch(Q.kind){case za.TypeKind.SCALAR:return T(Q);case za.TypeKind.OBJECT:return m(Q);case za.TypeKind.INTERFACE:return w(Q);case za.TypeKind.UNION:return x(Q);case za.TypeKind.ENUM:return L(Q);case za.TypeKind.INPUT_OBJECT:return O(Q)}var P=(0,Ci.default)(Q);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(P,"."))}function T(Q){return new Li.GraphQLScalarType({name:Q.name,description:Q.description,specifiedByUrl:Q.specifiedByUrl})}function S(Q){if(Q.interfaces===null&&Q.kind===za.TypeKind.INTERFACE)return[];if(!Q.interfaces){var P=(0,Ci.default)(Q);th
` +r)}}function q7(e){var t=e.loc;if(!!t){for(var r=[],n=t.startToken.prev;n!=null&&n.kind===R7.TokenKind.COMMENT&&n.next&&n.prev&&n.line+1===n.next.line&&n.line!==n.prev.line;){var i=String(n.value);r.push(i),n=n.prev}return r.length>0?r.reverse().join( `
` ):void 0}}});var mj=G(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.buildASTSchema=gj;Sm.buildSchema=z7;var V7=H7(Hi()),U7=Jt(),G7=tc(),Q7=mc(),B7=ks(),vj=gi(),K7=Tk();function H7(e){return e&&e.__esModule?e:{default:e}}function gj(e,t){e!=null&&e.kind===U7.Kind.DOCUMENT||(0,V7.default)(0,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,Q7.assertValidSDL)(e);var r={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},n=(0,K7.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(var i=0,o=n.types;i<o.length;i++){var s=o[i];switch(s.name){case"Query":n.query=s;break;case"Mutation":n.mutation=s;break;case"Subscription":n.subscription=s;break}}for(var l=n.directives,d=function(y){var b=vj.specifiedDirectives[y];l.every(function(D){return D.name!==b.name})&&l.push(b)},h=0;h<vj.specifiedDirectives.length;h++)d(h);return new B7.GraphQLSchema(n)}function z7(e,t){var r=(0,G7.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 gj(r,{commentDescriptions:t==null?void 0:t.commentDescriptions,assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var bj=G(Sk=>{"use strict";Object.defineProperty(Sk,"__esModule",{value:!0});Sk.lexicographicSortSchema=nJ;var W7=Ep(Ni()),Y7=Ep(jt()),J7=Ep(_n()),X7=Ep(Vd()),Z7=Ep(Ud()), $ 7=ks(),eJ=gi(),tJ=vi(),ri=bt();function Ep(e){return e&&e.__esModule?e:{default:e}}function yj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yj(Object(r),!0).forEach(function(n){rJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rJ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nJ(e){var t=e.toConfig(),r=(0,X7.default)(_k(t.types),function(b){return b.name},y);return new $ 7.GraphQLSchema(Mr(Mr({},t),{},{types:(0,W7.default)(r),directives:_k(t.directives).map(s),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function n(b){return(0,ri.isListType)(b)?new ri.GraphQLList(n(b.ofType)):(0,ri.isNonNullType)(b)?new ri.GraphQLNonNull(n(b.ofType)):i(b)}function i(b){return r[b.name]}function o(b){return b&&i(b)}function s(b){var D=b.toConfig();return new eJ.GraphQLDirective(Mr(Mr({},D),{},{locations:Ek(D.locations,function(_){return _}),args:l(D.args)}))}function l(b){return km(b,function(D){return Mr(Mr({},D),{},{type:n(D.type)})})}function d(b){return km(b,function(D){return Mr(Mr({},D),{},{type:n(D.type),args:l(D.args)})})}function h(b){return km(b,function(D){return Mr(Mr({},D),{},{type:n(D.type)})})}function v(b){return _k(b).map(i)}function y(b){if((0,ri.isScalarType)(b)||(0,tJ.isIntrospectionType)(b))return b;if((0,ri.isObjectType)(b)){var D=b.toConfig();return new ri.GraphQLObjectType(Mr(Mr({},D),{},{interfaces:function(){return v(D.interfaces)},fields:function(){return d(D.fields)}}))}if((0,ri.isInterfaceType)(b)){var _=b.toConfig();return new ri.GraphQLInterfaceType(Mr(Mr({},_),{},{interfaces:function(){return v(_.interfaces)},fields:function(){return d(_.fields)}}))}if((0,ri.isUnionType)(b)){var k=b.toConfig();return new ri.GraphQLUnionType(Mr(Mr({},k),{},{types:function(){return v(k.types)}}))}if((0,ri.isEnumType)(b)){var T=b.toConfig();return new ri.GraphQLEnumType(Mr(Mr({},T),{},{values:km(T.values)}))}if((0,ri.isInputObjectType)(b)){var S=b.toConfig();return new ri.GraphQLInputObjectType(Mr(Mr(
2021-07-31 23:49:48 -07:00
` )+ `
2023-08-22 14:06:59 -07:00
` }function lJ(e){if(!(e.description==null&&cJ(e))){var t=[],r=e.getQueryType();r&&t.push(" query: ".concat(r.name));var n=e.getMutationType();n&&t.push(" mutation: ".concat(n.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),Xi({},e)+ ` schema {
2021-07-31 23:49:48 -07:00
` .concat(t.join( `
` ), `
2023-08-22 14:06:59 -07:00
} ` )}}function cJ(e){var t=e.getQueryType();if(t&&t.name!=="Query")return!1;var r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;var n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function Sj(e,t){if((0,Oc.isScalarType)(e))return fJ(e,t);if((0,Oc.isObjectType)(e))return dJ(e,t);if((0,Oc.isInterfaceType)(e))return pJ(e,t);if((0,Oc.isUnionType)(e))return hJ(e,t);if((0,Oc.isEnumType)(e))return vJ(e,t);if((0,Oc.isInputObjectType)(e))return gJ(e,t);(0,Tj.default)(0,"Unexpected type: "+(0,iJ.default)(e))}function fJ(e,t){return Xi(t,e)+"scalar ".concat(e.name)+yJ(e)}function kj(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(r){return r.name}).join(" & "):""}function dJ(e,t){return Xi(t,e)+"type ".concat(e.name)+kj(e)+Oj(t,e)}function pJ(e,t){return Xi(t,e)+"interface ".concat(e.name)+kj(e)+Oj(t,e)}function hJ(e,t){var r=e.getTypes(),n=r.length?" = "+r.join(" | "):"";return Xi(t,e)+"union "+e.name+n}function vJ(e,t){var r=e.getValues().map(function(n,i){return Xi(t,n," ",!i)+" "+n.name+Ik(n.deprecationReason)});return Xi(t,e)+"enum ".concat(e.name)+Ck(r)}function gJ(e,t){var r=(0,kk.default)(e.getFields()).map(function(n,i){return Xi(t,n," ",!i)+" "+Lk(n)});return Xi(t,e)+"input ".concat(e.name)+Ck(r)}function Oj(e,t){var r=(0,kk.default)(t.getFields()).map(function(n,i){return Xi(e,n," ",!i)+" "+n.name+wj(e,n.args," ")+": "+String(n.type)+Ik(n.deprecationReason)});return Ck(r)}function Ck(e){return e.length!==0? ` {
2021-07-31 23:49:48 -07:00
` +e.join( `
` )+ `
2023-08-22 14:06:59 -07:00
} ` :""}function wj(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t.length===0?"":t.every(function(n){return!n.description})?"("+t.map(Lk).join(", ")+")": ` (
` +t.map(function(n,i){return Xi(e,n," "+r,!i)+" "+r+Lk(n)}).join( `
2021-07-31 23:49:48 -07:00
` )+ `
2023-08-22 14:06:59 -07:00
` +r+")"}function Lk(e){var t=(0,Dk.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=" = ".concat((0,Ok.print)(t))),r+Ik(e.deprecationReason)}function mJ(e,t){return Xi(t,e)+"directive @"+e.name+wj(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Ik(e){if(e==null)return"";var t=(0,Dk.astFromValue)(e,wk.GraphQLString);return t&&e!==Nk.DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+(0,Ok.print)(t)+")":" @deprecated"}function yJ(e){if(e.specifiedByUrl==null)return"";var t=e.specifiedByUrl,r=(0,Dk.astFromValue)(t,wk.GraphQLString);return r||(0,Tj.default)(0,"Unexpected null value returned from ` astFromValue ` for specifiedByUrl")," @specifiedBy(url: "+(0,Ok.print)(r)+")"}function Xi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=t.description;if(i==null)return"";if((e==null?void 0:e.commentDescriptions)===!0)return bJ(i,r,n);var o=i.length>70,s=(0,aJ.printBlockString)(i,"",o),l=r&&!n? `
2022-10-04 15:02:37 +02:00
` +r:r;return l+s.replace(/ \n /g, `
2021-07-31 23:49:48 -07:00
` +r)+ `
2023-08-22 14:06:59 -07:00
` }function bJ(e,t,r){var n=t&&!r? `
` :"",i=e.split( `
2021-07-31 23:49:48 -07:00
` ).map(function(o){return t+(o!==""?"# "+o:"#")}).join( `
2023-08-22 14:06:59 -07:00
` );return n+i+ `
` }});var Dj=G(Ak=>{"use strict";Object.defineProperty(Ak,"__esModule",{value:!0});Ak.concatAST=TJ;function TJ(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t=t.concat(n.definitions)}return{kind:"Document",definitions:t}}});var Lj=G(Rk=>{"use strict";Object.defineProperty(Rk,"__esModule",{value:!0});Rk.separateOperations=EJ;var Om=Jt(),_J=hu();function EJ(e){for(var t=[],r=Object.create(null),n=0,i=e.definitions;n<i.length;n++){var o=i[n];switch(o.kind){case Om.Kind.OPERATION_DEFINITION:t.push(o);break;case Om.Kind.FRAGMENT_DEFINITION:r[o.name.value]=Cj(o.selectionSet);break}}for(var s=Object.create(null),l=function(v){for(var y=t[v],b=new Set,D=0,_=Cj(y.selectionSet);D<_.length;D++){var k=_[D];xj(b,r,k)}var T=y.name?y.name.value:"";s[T]={kind:Om.Kind.DOCUMENT,definitions:e.definitions.filter(function(S){return S===y||S.kind===Om.Kind.FRAGMENT_DEFINITION&&b.has(S.name.value)})}},d=0;d<t.length;d++)l(d);return s}function xj(e,t,r){if(!e.has(r)){e.add(r);var n=t[r];if(n!==void 0)for(var i=0;i<n.length;i++){var o=n[i];xj(e,t,o)}}}function Cj(e){var t=[];return(0,_J.visit)(e,{FragmentSpread:function(n){t.push(n.name.value)}}),t}});var jj=G(Pk=>{"use strict";Object.defineProperty(Pk,"__esModule",{value:!0});Pk.stripIgnoredCharacters=SJ;var Ij=mg(),jk=Zl(),Aj=Tg(),Rj=ec();function SJ(e){for(var t=(0,Ij.isSource)(e)?e:new Ij.Source(e),r=t.body,n=new Aj.Lexer(t),i="",o=!1;n.advance().kind!==jk.TokenKind.EOF;){var s=n.token,l=s.kind,d=!(0,Aj.isPunctuatorTokenKind)(s.kind);o&&(d||s.kind===jk.TokenKind.SPREAD)&&(i+=" ");var h=r.slice(s.start,s.end);l===jk.TokenKind.BLOCK_STRING?i+=kJ(h):i+=h,o=d}return i}function kJ(e){var t=e.slice(3,-3),r=(0,Rj.dedentBlockStringValue)(t);(0,Rj.getBlockStringIndentation)(r)>0&&(r= `
` +r);var n=r[r.length-1],i=n==='"'&&r.slice(-4)!==' \\ """';return(i||n===" \\ ")&&(r+= `
` ),'"""'+r+'"""'}});var Kj=G(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.findBreakingChanges=IJ;xu.findDangerousChanges=AJ;xu.DangerousChangeType=xu.BreakingChangeType=void 0;var wc=kp(Ni()),Pj=kp(vu()),OJ=kp(jt()),Fj=kp(_n()),wJ=kp(Ud()),NJ=hi(),DJ=hu(),xJ=Ga(),Ct=bt(),CJ=Zd();function kp(e){return e&&e.__esModule?e:{default:e}}function Mj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mj(Object(r),!0).forEach(function(n){LJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LJ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qr=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"});xu.BreakingChangeType=qr;var Do=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"});xu.DangerousChangeType=Do;function IJ(e,t){var r=Vj(e,t).filter(function(n){return n.type in qr});return r}function AJ(e,t){var r=Vj(e,t).filter(function(n){return n.type in Do});return r}function Vj(e,t){return[].concat(jJ(e,t),RJ(e,t))}function RJ(e,t){for(var r=[],n=xo(e.getDirectives(),t.getDirectives()),i=0,o=n.removed;i<o.length;i++){var s=o[i];r.push({type:qr.DIRECTIVE_REMOVED,description:"".concat(s.name," was removed.")})}for(var l=0,d=n.persisted;l<d.length;l++){for(var h=d[l],v=h[0],y=h[1],b=xo(v.args,y.args),D=0,_=b.added;D<_.length;D++){var k=_[D];(0,Ct.isRequiredArgument)(k)&&r.push({type:qr.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(k.name," on directive ").concat(v.name," was added.")})}for(var T=0,S=b.removed;T<S.length;T++){var m=S[T];r.push({type:qr.DIRECTIVE_ARG_REMOVED,description:"".concat(m.name," was removed from ").concat(v.name,".")})}v.isRepeatable&&!y.isRepeatable&&r.push({type:qr.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(v.name,".")});for(var w=0,x=v.locations;w<x.length;w++){var L=x[w];y.locations.indexOf(L)===-1&&r.push({type:qr.DIRECTIVE_LOCATION_REMOVED,description:"".concat(L," was removed from ").concat(v.name,".")})}}return r}function jJ(e,t){for(var r=[],n=xo((0,wc.default)(e.getTypeMap()),(0,wc.default)(t.getTypeMap())),i=0,o=n.removed;i<o.length;i++){var s=o[i];r.push({type:qr.TYPE_REMOVED,description:(0,xJ.isSpecifiedScalarType)(s)?"Standard scalar ".concat(s.name," was removed because it is not referenced anymore."):"".concat(s.name," was removed.")})}for(var l=0,d=n.persisted;l<d.length;l++){var h=d[l],v=h[0],y=h[1];(0,Ct.isEnumType)(v)&&(0,Ct.isEnumType)(y)?r.push.apply(r,MJ(v,y)):(0,Ct.isUnionType)(v)&&(0,Ct.isUnionType)(y)?r.push.apply(r,FJ(v,y)):(0,Ct.isInputObjectType)(v)&&(0,Ct.isInputObjectType)(y)?r.push.apply(r,PJ(v,y)):(0,Ct.isObjectType)(v)&&(0,Ct.isObjectType)(y)||(0,Ct.isInterfaceType)(v)&&(0,Ct.isInterfaceType)
` ,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
` ," "],PX=["{","}","|"," \\ ","^"," ` "].concat(jX),FX=[" '"].concat(PX),kF=["%","/","?",";","#"].concat(FX),OF=["/","?","#"],MX=255,wF=/^[+a-z0-9A-Z_-]{0,63}$/,qX=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,NF={javascript:!0,"javascript:":!0},DF={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function VX(e,t){if(e&&e instanceof Km)return e;var r=new Km;return r.parse(e,t),r}Km.prototype.parse=function(e,t){var r,n,i,o,s,l=e;if(l=l.trim(),!t&&e.split("#").length===1){var d=RX.exec(l);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=IX.exec(l);if(h&&(h=h[0],i=h.toLowerCase(),this.protocol=h,l=l.substr(h.length)),(t||h||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=l.substr(0,2)==="//",s&&!(h&&NF[h])&&(l=l.substr(2),this.slashes=!0)),!NF[h]&&(s||h&&!DF[h])){var v=-1;for(r=0;r<OF.length;r++)o=l.indexOf(OF[r]),o!==-1&&(v===-1||o<v)&&(v=o);var y,b;for(v===-1?b=l.lastIndexOf("@"):b=l.lastIndexOf("@",v),b!==-1&&(y=l.slice(0,b),l=l.slice(b+1),this.auth=y),v=-1,r=0;r<kF.length;r++)o=l.indexOf(kF[r]),o!==-1&&(v===-1||o<v)&&(v=o);v===-1&&(v=l.length),l[v-1]===":"&&v--;var D=l.slice(0,v);l=l.slice(v),this.parseHost(D),this.hostname=this.hostname||"";var _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_){var k=this.hostname.split(/\./);for(r=0,n=k.length;r<n;r++){var T=k[r];if(!!T&&!T.match(wF)){for(var S="",m=0,w=T.length;m<w;m++)T.charCodeAt(m)>127?S+="x":S+=T[m];if(!S.match(wF)){var x=k.slice(0,r),L=k.slice(r+1),O=T.match(qX);O&&(x.push(O[1]),L.unshift(O[2])),L.length&&(l=L.join(".")+l),this.hostname=x.join(".");break}}}}this.hostname.length>MX&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var R=l.indexOf("#");R!==-1&&(this.hash=l.substr(R),l=l.slice(0,R));var M=l.indexOf("?");return M!==-1&&(this.search=l.substr(M),l=l.slice(0,M)),l&&(this.pathname=l),DF[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Km.prototype.parseHost=function(e){var t=AX.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};xF.exports=VX});var uO=G((Rse,Rp)=>{"use strict";Rp.exports.encode=yF();Rp.exports.decode=_F();Rp.exports.format=SF();Rp.exports.parse=CF()});var sO=G((jse,LF)=>{LF.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var lO=G((Pse,IF)=>{IF.exports=/[\0-\x1F\x7F-\x9F]/});var RF=G((Fse,AF)=>{AF.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var cO=G((Mse,jF)=>{jF.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var PF=G(Ic=>{"use strict";Ic.Any=sO();Ic.Cc=lO();Ic.Cf=RF();Ic.P=Gm();Ic.Z=cO()});var Pt=G(en=>{"use strict";function UX(e){return Object.prototype.toString.call(e)}function GX(e){return UX(e)==="[object String]"}var QX=Object.prototype.hasOwnProperty;function FF(e,t){return QX.call(e,t)}function BX(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){if(!!r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function KX(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function MF(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function qF(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var VF=/\\([!"#$%&' ( ) * + , \ - . \ / : ; <= > ? @ [ \ \ \ ] ^ _ ` {|}~])/g,HX=/&([a-z#][a-z0-9]{1,31});/gi,zX=new RegExp(VF.source+"|"+HX.source,"gi"),WX=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,UF=oO();function YX(e,t){var r=0;return FF(UF,t)?UF[t]:t.charCodeAt(0)===35&&WX.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),MF(r))?qF(r):e}function JX(e){return e.indexOf(" \\ ")<0?e:e.replace(VF," $ 1")}function XX(e){return e.in
` };Wa.fence=function(e,t,r,n,i){var o=e[t],s=o.info?pZ(o.info).trim():"",l="",d="",h,v,y,b,D;return s&&(y=s.split(/( \s +)/g),l=y[0],d=y.slice(2).join("")),r.highlight?h=r.highlight(o.content,l,d)||Fs(o.content):h=Fs(o.content),h.indexOf("<pre")===0?h+ `
` :s?(v=o.attrIndex("class"),b=o.attrs?o.attrs.slice():[],v<0?b.push(["class",r.langPrefix+l]):(b[v]=b[v].slice(),b[v][1]+=" "+r.langPrefix+l),D={attrs:b},"<pre><code"+i.renderAttrs(D)+">"+h+ ` < / c o d e > < / p r e >
` ):"<pre><code"+i.renderAttrs(o)+">"+h+ ` < / c o d e > < / p r e >
` };Wa.image=function(e,t,r,n,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(e,t,r)};Wa.hardbreak=function(e,t,r){return r.xhtmlOut? ` < br / >
2021-07-31 23:49:48 -07:00
` : ` < br >
2023-08-22 14:06:59 -07:00
` };Wa.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut? ` < br / >
2021-07-31 23:49:48 -07:00
` : ` < br >
` : `
2023-08-22 14:06:59 -07:00
` };Wa.text=function(e,t){return Fs(e[t].content)};Wa.html_block=function(e,t){return e[t].content};Wa.html_inline=function(e,t){return e[t].content};function Ac(){this.rules=dZ({},Wa)}Ac.prototype.renderAttrs=function(t){var r,n,i;if(!t.attrs)return"";for(i="",r=0,n=t.attrs.length;r<n;r++)i+=" "+Fs(t.attrs[r][0])+'="'+Fs(t.attrs[r][1])+'"';return i};Ac.prototype.renderToken=function(t,r,n){var i,o="",s=!1,l=t[r];return l.hidden?"":(l.block&&l.nesting!==-1&&r&&t[r-1].hidden&&(o+= `
` ),o+=(l.nesting===-1?"</":"<")+l.tag,o+=this.renderAttrs(l),l.nesting===0&&n.xhtmlOut&&(o+=" /"),l.block&&(s=!0,l.nesting===1&&r+1<t.length&&(i=t[r+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===l.tag)&&(s=!1))),o+=s? ` >
` :">",o)};Ac.prototype.renderInline=function(e,t,r){for(var n,i="",o=this.rules,s=0,l=e.length;s<l;s++)n=e[s].type,typeof o[n]!="undefined"?i+=o[n](e,s,t,r,this):i+=this.renderToken(e,s,t);return i};Ac.prototype.renderInlineAsText=function(e,t,r){for(var n="",i=0,o=e.length;i<o;i++)e[i].type==="text"?n+=e[i].content:e[i].type==="image"?n+=this.renderInlineAsText(e[i].children,t,r):e[i].type==="softbreak"&&(n+= `
` );return n};Ac.prototype.render=function(e,t,r){var n,i,o,s="",l=this.rules;for(n=0,i=e.length;n<i;n++)o=e[n].type,o==="inline"?s+=this.renderInline(e[n].children,t,r):typeof l[o]!="undefined"?s+=l[e[n].type](e,n,t,r,this):s+=this.renderToken(e,n,t,r);return s};JF.exports=Ac});var zm=G((Hse,ZF)=>{"use strict";function Oa(){this.__rules__=[],this.__cache__=null}Oa.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Oa.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)})})};Oa.prototype.at=function(e,t,r){var n=this.__find__(e),i=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null};Oa.prototype.before=function(e,t,r,n){var i=this.__find__(e),o=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};Oa.prototype.after=function(e,t,r,n){var i=this.__find__(e),o=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};Oa.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};Oa.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach(function(n){var i=this.__find__(n);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!0,r.push(n)},this),this.__cache__=null,r};Oa.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)};Oa.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach(function(n){var i=this.__find__(n);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!1,r.push(n)},this),this.__cache__=null,r};Oa.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};ZF.exports=Oa});var eM=G((zse, $ F)=>{"use strict";var hZ=/ \r \n ?| \n /g,vZ=/ \0 /g; $ F.exports=function(t){var r;r=t.src.replace(hZ, `
` ),r=r.replace(vZ," \u FFFD"),t.src=r}});var rM=G((Wse,tM)=>{"use strict";tM.exports=function(t){var r;t.inlineMode?(r=new t.Token("inline","",0),r.content=t.src,r.map=[0,1],r.children=[],t.tokens.push(r)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var iM=G((Yse,nM)=>{"use strict";nM.exports=function(t){var r=t.tokens,n,i,o;for(i=0,o=r.length;i<o;i++)n=r[i],n.type==="inline"&&t.md.inline.parse(n.content,t.md,t.env,n.children)}});var oM=G((Jse,aM)=>{"use strict";var gZ=Pt().arrayReplaceAt;function mZ(e){return/^<a[> \s ]/i.test(e)}function yZ(e){return/^< \/ a \s *>/i.test(e)}aM.exports=function(t){var r,n,i,o,s,l,d,h,v,y,b,D,_,k,T,S,m=t.tokens,w;if(!!t.md.options.linkify){for(n=0,i=m.length;n<i;n++)if(!(m[n].type!=="inline"||!t.md.linkify.pretest(m[n].content)))for(o=m[n].children,_=0,r=o.length-1;r>=0;r--){if(l=o[r],l.type==="link_close"){for(r--;o[r].level!==l.level&&o[r].type!=="link_open";)r--;continue}if(l.type==="html_inline"&&(mZ(l.content)&&_>0&&_--,yZ(l.content)&&_++),!(_>0)&&l.type==="text"&&t.md.linkify.test(l.content)){for(v=l.content,w=t.md.linkify.match(v),d=[],D=l.level,b=0,h=0;h<w.length;h++)k=w[h].url,T=t.md.normalizeLink(k),!!t.md.validateLink(T)&&(S=w[h].text,w[h].schema?w[h].schema==="mailto:"&&!/^mailto:/i.test(S)?S=t.md.normalizeLinkText("mailto:"+S).replace(/^mailto:/,""):S=t.md.normalizeLinkText(S):S=t.md.normalizeLinkText("http://"+S).replace(/^http: \/ \/ /,""),y=w[h].index,y>b&&(s=new t.Token("text","",0),s.content=v.slice(b,y),s.level=D,d.push(s)),s=new t.Token("link_open","a",1),s.attrs=[["href",T]],s.level=D++,s.markup="linkify",s.info="auto",d.push(s),s=new t.Token("text","",0),s.content=S,s.level=D,d.push(s),s=new t.Token("link_close","a",-1),s.level=--D,s.markup="linkify",s.info="auto",d.push(s),b=w[h].lastIndex);b<v.length&&(s=new t.Token("text","",0),s.content=v.slice(b),s.level=D,d.push(s)),m[n].children=o=gZ(o,r,d)}}}}});var lM=G((Xse,sM)=>{"use strict";var uM=/ \+ -| \. \. | \? \? \? \? |!!!!|,,|--/,bZ=/ \( (c|tm|r|p) \) /i,TZ=/ \( (c|tm|r|p) \) /ig,_Z={c:" \x A9",r:" \x AE",p:" \x A7",tm:" \u 2122"};function EZ(e,t){return _Z[t.toLowerCase()]}function SZ(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&(r.content=r.content.replace(TZ,EZ)),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}function kZ(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&uM.test(r.content)&&(r.content=r.content.replace(/ \+ -/g," \x B1").replace(/ \. {2,}/g," \u 2026").replace(/([?!])…/g," $ 1..").replace(/([?!]){4,}/g," $ 1 $ 1 $ 1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]| $ )/mg," $ 1 \u 2014").replace(/(^| \s )--(?= \s | $ )/mg," $ 1 \u 2013").replace(/(^|[^- \s ])--(?=[^- \s ]| $ )/mg," $ 1 \u 2013")),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}sM.exports=function(t){var r;if(!!t.md.options.typographer)for(r=t.tokens.length-1;r>=0;r--)t.tokens[r].type==="inline"&&(bZ.test(t.tokens[r].content)&&SZ(t.tokens[r].children),uM.test(t.tokens[r].content)&&kZ(t.tokens[r].children))}});var gM=G((Zse,vM)=>{"use strict";var cM=Pt().isWhiteSpace,fM=Pt().isPunctChar,dM=Pt().isMdAsciiPunct,OZ=/['"]/,pM=/['"]/g,hM=" \u 2019";function Wm(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function wZ(e,t){var r,n,i,o,s,l,d,h,v,y,b,D,_,k,T,S,m,w,x,L,O;for(x=[],r=0;r<e.length;r++){for(n=e[r],d=e[r].level,m=x.length-1;m>=0&&!(x[m].level<=d);m--);if(x.length=m+1,n.type!=="text")continue;i=n.content,s=0,l=i.length;e:for(;s<l&&(pM.lastIndex=s,o=pM.exec(i),!!o);){if(T=S=!0,s=o.index+1,w=o[0]==="'",v=32,o.index-1>=0)v=i.charCodeAt(o.index-1);else for(m=r-1;m>=0&&!(e[m].type==="softbreak"||e[m].type==="hardbreak");m--)if(!!e[m].content){v=e[m].content.charCodeAt(e[m].content.length-1);break}if(y=32,s<l)y=i.charCodeAt(s);else for(m=r+1;m<e.length&&!(e[m].type==="softbreak"||e[m].type==="hardbreak");m++)if(!!e[m].content){y=e[m].content.charCodeAt(0);break}if(b=dM(v)||fM(String.fromCharCode(v)),D=dM(y)||fM(String.fromCharCode(y)),_=cM(v),k=cM(y),k?T=!1:D&&(_||b||(T=!1)),_?S=!1:b&&(k||D||(S=!1)),y===34&&o[0]==='"'&&v>=48&&v<=57&&(S=T=!1),T&&S&&(T=b,S=D),!T&&!S){w&&(n.content=Wm(n.co
` ,s.map=[r,t.line],!0}});var xM=G((ile,DM)=>{"use strict";DM.exports=function(t,r,n,i){var o,s,l,d,h,v,y,b=!1,D=t.bMarks[r]+t.tShift[r],_=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||D+3>_||(o=t.src.charCodeAt(D),o!==126&&o!==96)||(h=D,D=t.skipChars(D,o),s=D-h,s<3)||(y=t.src.slice(h,D),l=t.src.slice(D,_),o===96&&l.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(d=r;d++,!(d>=n||(D=h=t.bMarks[d]+t.tShift[d],_=t.eMarks[d],D<_&&t.sCount[d]<t.blkIndent));)if(t.src.charCodeAt(D)===o&&!(t.sCount[d]-t.blkIndent>=4)&&(D=t.skipChars(D,o),!(D-h<s)&&(D=t.skipSpaces(D),!(D<_)))){b=!0;break}return s=t.sCount[r],t.line=d+(b?1:0),v=t.push("fence","code",0),v.info=l,v.content=t.getLines(r+1,d,s,!0),v.markup=y,v.map=[r,t.line],!0}});var IM=G((ale,LM)=>{"use strict";var CM=Pt().isSpace;LM.exports=function(t,r,n,i){var o,s,l,d,h,v,y,b,D,_,k,T,S,m,w,x,L,O,R,M,q=t.lineMax,z=t.bMarks[r]+t.tShift[r],B=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(z++)!==62)return!1;if(i)return!0;for(d=D=t.sCount[r]+1,t.src.charCodeAt(z)===32?(z++,d++,D++,o=!1,x=!0):t.src.charCodeAt(z)===9?(x=!0,(t.bsCount[r]+D)%4==3?(z++,d++,D++,o=!1):o=!0):x=!1,_=[t.bMarks[r]],t.bMarks[r]=z;z<B&&(s=t.src.charCodeAt(z),CM(s));){s===9?D+=4-(D+t.bsCount[r]+(o?1:0))%4:D++;z++}for(k=[t.bsCount[r]],t.bsCount[r]=t.sCount[r]+1+(x?1:0),v=z>=B,m=[t.sCount[r]],t.sCount[r]=D-d,w=[t.tShift[r]],t.tShift[r]=z-t.bMarks[r],O=t.md.block.ruler.getRules("blockquote"),S=t.parentType,t.parentType="blockquote",b=r+1;b<n&&(M=t.sCount[b]<t.blkIndent,z=t.bMarks[b]+t.tShift[b],B=t.eMarks[b],!(z>=B));b++){if(t.src.charCodeAt(z++)===62&&!M){for(d=D=t.sCount[b]+1,t.src.charCodeAt(z)===32?(z++,d++,D++,o=!1,x=!0):t.src.charCodeAt(z)===9?(x=!0,(t.bsCount[b]+D)%4==3?(z++,d++,D++,o=!1):o=!0):x=!1,_.push(t.bMarks[b]),t.bMarks[b]=z;z<B&&(s=t.src.charCodeAt(z),CM(s));){s===9?D+=4-(D+t.bsCount[b]+(o?1:0))%4:D++;z++}v=z>=B,k.push(t.bsCount[b]),t.bsCount[b]=t.sCount[b]+1+(x?1:0),m.push(t.sCount[b]),t.sCount[b]=D-d,w.push(t.tShift[b]),t.tShift[b]=z-t.bMarks[b];continue}if(v)break;for(L=!1,l=0,h=O.length;l<h;l++)if(O[l](t,b,n,!0)){L=!0;break}if(L){t.lineMax=b,t.blkIndent!==0&&(_.push(t.bMarks[b]),k.push(t.bsCount[b]),w.push(t.tShift[b]),m.push(t.sCount[b]),t.sCount[b]-=t.blkIndent);break}_.push(t.bMarks[b]),k.push(t.bsCount[b]),w.push(t.tShift[b]),m.push(t.sCount[b]),t.sCount[b]=-1}for(T=t.blkIndent,t.blkIndent=0,R=t.push("blockquote_open","blockquote",1),R.markup=">",R.map=y=[r,0],t.md.block.tokenize(t,r,b),R=t.push("blockquote_close","blockquote",-1),R.markup=">",t.lineMax=q,t.parentType=S,y[1]=t.line,l=0;l<w.length;l++)t.bMarks[l+r]=_[l],t.tShift[l+r]=w[l],t.sCount[l+r]=m[l],t.bsCount[l+r]=k[l];return t.blkIndent=T,!0}});var RM=G((ole,AM)=>{"use strict";var xZ=Pt().isSpace;AM.exports=function(t,r,n,i){var o,s,l,d,h=t.bMarks[r]+t.tShift[r],v=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(h++),o!==42&&o!==45&&o!==95))return!1;for(s=1;h<v;){if(l=t.src.charCodeAt(h++),l!==o&&!xZ(l))return!1;l===o&&s++}return s<3?!1:(i||(t.line=r+1,d=t.push("hr","hr",0),d.map=[r,t.line],d.markup=Array(s+1).join(String.fromCharCode(o))),!0)}});var qM=G((ule,MM)=>{"use strict";var jM=Pt().isSpace;function PM(e,t){var r,n,i,o;return n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],r=e.src.charCodeAt(n++),r!==42&&r!==45&&r!==43||n<i&&(o=e.src.charCodeAt(n),!jM(o))?-1:n}function FM(e,t){var r,n=e.bMarks[t]+e.tShift[t],i=n,o=e.eMarks[t];if(i+1>=o||(r=e.src.charCodeAt(i++),r<48||r>57))return-1;for(;;){if(i>=o)return-1;if(r=e.src.charCodeAt(i++),r>=48&&r<=57){if(i-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return i<o&&(r=e.src.charCodeAt(i),!jM(r))?-1:i}function CZ(e,t){var r,n,i=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}MM.exports=function(t,r,n,i){var o,s,l,d,h,v,y,b,D,_,k,T,S,m,w,x,L,O,R,M,q,z,B,Q,P,he,xe,ge,Fe=!1,Le=!0;if(t.sCount[r]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[r]-t.listIndent>=4&&t.sCount[r]<t.blkIndent)return!1;if(i&&t.parentType==="paragraph"&&t.sCount[r]>=t.b
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -07:00
b ` .split(/ \n /).length!=3?function(a){for(var u=0,f=[],c=a.length;u<=c;){var p=a.indexOf( `
` ,u);p==-1&&(p=a.length);var g=a.slice(u,a.charAt(p-1)==" \r "?p-1:p),E=g.indexOf(" \r ");E!=-1?(f.push(g.slice(0,E)),u+=E+1):(f.push(g),u=p+1)}return f}:function(a){return a.split(/ \r \n ?| \n /)},Rr=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(u){return!1}}:function(a){var u;try{u=a.ownerDocument.selection.createRange()}catch(f){}return!u||u.parentElement()!=a?!1:u.compareEndPoints("StartToEnd",u)!=0},jr=function(){var a=P("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),et=null;function sa(a){if(et!=null)return et;var u=Q(a,P("span","x")),f=u.getBoundingClientRect(),c=xe(u,0,1).getBoundingClientRect();return et=Math.abs(f.left-c.left)>1}var Cn={},la={};function ch(a,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),Cn[a]=u}function Js(a,u){la[a]=u}function ui(a){if(typeof a=="string"&&la.hasOwnProperty(a))a=la[a];else if(a&&typeof a.name=="string"&&la.hasOwnProperty(a.name)){var u=la[a.name];typeof u=="string"&&(u={name:u}),a=st(u,a),a.name=u.name}else{if(typeof a=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test(a))return ui("application/xml");if(typeof a=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test(a))return ui("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function io(a,u){u=ui(u);var f=Cn[u.name];if(!f)return io(a,"text/plain");var c=f(a,u);if(jo.hasOwnProperty(u.name)){var p=jo[u.name];for(var g in p)!p.hasOwnProperty(g)||(c.hasOwnProperty(g)&&(c["_"+g]=c[g]),c[g]=p[g])}if(c.name=u.name,u.helperType&&(c.helperType=u.helperType),u.modeProps)for(var E in u.modeProps)c[E]=u.modeProps[E];return c}var jo={};function fh(a,u){var f=jo.hasOwnProperty(a)?jo[a]:jo[a]={};Ie(u,f)}function ao(a,u){if(u===!0)return u;if(a.copyState)return a.copyState(u);var f={};for(var c in u){var p=u[c];p instanceof Array&&(p=p.concat([])),f[c]=p}return f}function Po(a,u){for(var f;a.innerMode&&(f=a.innerMode(u),!(!f||f.mode==a));)u=f.state,a=f.mode;return f||{mode:a,state:u}}function nf(a,u,f){return a.startState?a.startState(u,f):!0}var gr=function(a,u,f){this.pos=this.start=0,this.string=a,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=f};gr.prototype.eol=function(){return this.pos>=this.string.length},gr.prototype.sol=function(){return this.pos==this.lineStart},gr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},gr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},gr.prototype.eat=function(a){var u=this.string.charAt(this.pos),f;if(typeof a=="string"?f=u==a:f=u&&(a.test?a.test(u):a(u)),f)return++this.pos,u},gr.prototype.eatWhile=function(a){for(var u=this.pos;this.eat(a););return this.pos>u},gr.prototype.eatSpace=function(){for(var a=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},gr.prototype.skipToEnd=function(){this.pos=this.string.length},gr.prototype.skipTo=function(a){var u=this.string.indexOf(a,this.pos);if(u>-1)return this.pos=u,!0},gr.prototype.backUp=function(a){this.pos-=a},gr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=te(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?te(this.string,this.lineStart,this.tabSize):0)},gr.prototype.indentation=function(){return te(this.string,null,this.tabSize)-(this.lineStart?te(this.string,this.lineStart,this.tabSize):0)},gr.prototype.match=function(a,u,f){if(typeof a=="string"){var c=function(E){return f?E.toLowerCase():E},p=this.string.substr(this.pos,a.length);if(c(p)==c(a))return u!==!1&&(this.pos+=a.length),!0}else{var g=this.string.slice(this.pos).match(a);return g&&g.index>0?null:(g&&u!==!1&&(this.pos+=g[0].length),g)}},gr.prototype.current=function(){return this.string.slice(this.start,this.pos)},gr.prototype.hideFirstChars=function(a,u){this.lineStart+=a;try{return u()}finally{this.lineStart-=a}},gr.prototype.lookAhead=function(a){var u=this.lineOracle;return u&&u.lookAhead(
` ?(le=U.appendChild(P("span", $ [0]==" \r "?" \u 240D":" \u 2424","cm-invalidchar")),le.setAttribute("cm-text", $ [0]),a.col+=1):(le=a.cm.options.specialCharPlaceholder( $ [0]),le.setAttribute("cm-text", $ [0]),s&&l<9?U.appendChild(P("span",[le])):U.appendChild(le),a.col+=1);a.map.push(a.pos,a.pos+1,le),a.pos++}}if(a.trailingSpace=N.charCodeAt(u.length-1)==32,f||c||p||I||g||E){var Ne=f||"";c&&(Ne+=c),p&&(Ne+=p);var Te=P("span",[U],Ne,g);if(E)for(var Ce in E)E.hasOwnProperty(Ce)&&Ce!="style"&&Ce!="class"&&Te.setAttribute(Ce,E[Ce]);return a.content.appendChild(Te)}a.content.appendChild(U)}}function d2(a,u){if(a.length>1&&!/ /.test(a))return a;for(var f=u,c="",p=0;p<a.length;p++){var g=a.charAt(p);g==" "&&f&&(p==a.length-1||a.charCodeAt(p+1)==32)&&(g=" \x A0"),c+=g,f=g==" "}return c}function p2(a,u){return function(f,c,p,g,E,N,C){p=p?p+" cm-force-border":"cm-force-border";for(var I=f.pos,U=I+c.length;;){for(var K=void 0, $ =0; $ <u.length&&(K=u[ $ ],!(K.to>I&&K.from<=I)); $ ++);if(K.to>=U)return a(f,c,p,g,E,N,C);a(f,c.slice(0,K.to-I),p,g,null,N,C),g=null,c=c.slice(K.to-I),I=K.to}}}function _N(a,u,f,c){var p=!c&&f.widgetNode;p&&a.map.push(a.pos,a.pos+u,p),!c&&a.cm.display.input.needsContentAttribute&&(p||(p=a.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",f.id)),p&&(a.cm.display.input.setUneditable(p),a.content.appendChild(p)),a.pos+=u,a.trailingSpace=!1}function h2(a,u,f){var c=a.markedSpans,p=a.text,g=0;if(!c){for(var E=1;E<f.length;E+=2)u.addToken(u,p.slice(g,g=f[E]),bN(f[E+1],u.cm.options));return}for(var N=p.length,C=0,I=1,U="",K, $ ,X=0,ae,le,pe,be,Ne;;){if(X==C){ae=le=pe= $ ="",Ne=null,be=null,X=1/0;for(var Te=[],Ce=void 0,Ge=0;Ge<c.length;++Ge){var qe=c[Ge],lt=qe.marker;if(lt.type=="bookmark"&&qe.from==C&<.widgetNode)Te.push(lt);else if(qe.from<=C&&(qe.to==null||qe.to>C||lt.collapsed&&qe.to==C&&qe.from==C)){if(qe.to!=null&&qe.to!=C&&X>qe.to&&(X=qe.to,le=""),lt.className&&(ae+=" "+lt.className),lt.css&&( $ =( $ ? $ +";":"")+lt.css),lt.startStyle&&qe.from==C&&(pe+=" "+lt.startStyle),lt.endStyle&&qe.to==X&&(Ce||(Ce=[])).push(lt.endStyle,qe.to),lt.title&&((Ne||(Ne={})).title=lt.title),lt.attributes)for(var Ht in lt.attributes)(Ne||(Ne={}))[Ht]=lt.attributes[Ht];lt.collapsed&&(!be||Xy(be.marker,lt)<0)&&(be=qe)}else qe.from>C&&X>qe.from&&(X=qe.from)}if(Ce)for(var zr=0;zr<Ce.length;zr+=2)Ce[zr+1]==X&&(le+=" "+Ce[zr]);if(!be||be.from==C)for(var lr=0;lr<Te.length;++lr)_N(u,0,Te[lr]);if(be&&(be.from||0)==C){if(_N(u,(be.to==null?N+1:be.to)-C,be.marker,be.from==null),be.to==null)return;be.to==C&&(be=!1)}}if(C>=N)break;for(var li=Math.min(N,X);;){if(U){var Jn=C+U.length;if(!be){var wr=Jn>li?U.slice(0,li-C):U;u.addToken(u,wr,K?K+ae:ae,pe,C+wr.length==X?le:"", $ ,Ne)}if(Jn>=li){U=U.slice(li-C),C=li;break}C=Jn,pe=""}U=p.slice(g,g=f[I++]),K=bN(f[I++],u.cm.options)}}}function EN(a,u,f){this.line=u,this.rest=a2(u),this.size=this.rest?wt(se(this.rest))-f+1:1,this.node=this.text=null,this.hidden=Fo(a,u)}function yh(a,u,f){for(var c=[],p,g=u;g<f;g=p){var E=new EN(a.doc,Ae(a.doc,g),g);p=g+E.size,c.push(E)}return c}var $ s=null;function v2(a){ $ s? $ s.ops.push(a):a.ownsGroup= $ s={ops:[a],delayedCallbacks:[]}}function g2(a){var u=a.delayedCallbacks,f=0;do{for(;f<u.length;f++)u[f].call(null);for(var c=0;c<a.ops.length;c++){var p=a.ops[c];if(p.cursorActivityHandlers)for(;p.cursorActivityCalled<p.cursorActivityHandlers.length;)p.cursorActivityHandlers[p.cursorActivityCalled++].call(null,p.cm)}}while(f<u.length)}function m2(a,u){var f=a.ownsGroup;if(!!f)try{g2(f)}finally{ $ s=null,u(f)}}var uf=null;function Br(a,u){var f=Gu(a,u);if(!!f.length){var c=Array.prototype.slice.call(arguments,2),p; $ s?p= $ s.delayedCallbacks:uf?p=uf:(p=uf=[],setTimeout(y2,0));for(var g=function(N){p.push(function(){return f[N].apply(null,c)})},E=0;E<f.length;++E)g(E)}}function y2(){var a=uf;uf=null;for(var u=0;u<a.length;++u)a[u]()}function SN(a,u,f,c){for(var p=0;p<u.changes.length;p++){var g=u.changes[p];g=="text"?T2(a,u):g=="gutter"?ON(a,u,f,c):g=="class"?t0(a,u):g=="widget"&&_2(a,u,c)}u.changes=null}function sf(a){return a.node==a.text&&(a.node=P("div",null,null,"position:
top : ` +Ce+"px; width: "+(Ge==null?C-Te:Ge)+ ` px ;
height : ` +(qe-Ce)+"px"))}function K(Te,Ce,Ge){var qe=Ae(p,Te),lt=qe.text.length,Ht,zr;function lr(wr,Xn){return _h(a,W(Te,wr),"div",qe,Xn)}function li(wr,Xn,sn){var Fr=VN(a,qe,null,wr),Nr=Xn=="ltr"==(sn=="after")?"left":"right",mr=sn=="after"?Fr.begin:Fr.end-(/ \s /.test(qe.text.charAt(Fr.end-1))?2:1);return lr(mr,Nr)[Nr]}var Jn=xn(qe,p.direction);return hn(Jn,Ce||0,Ge==null?lt:Ge,function(wr,Xn,sn,Fr){var Nr=sn=="ltr",mr=lr(wr,Nr?"left":"right"),Zn=lr(Xn-1,Nr?"right":"left"),vl=Ce==null&&wr==0,Ko=Ge==null&&Xn==lt,mn=Fr==0,Ca=!Jn||Fr==Jn.length-1;if(Zn.top-mr.top<=3){var Wr=(I?vl:Ko)&&mn,q0=(I?Ko:vl)&&Ca,po=Wr?N:(Nr?mr:Zn).left,Xu=q0?C:(Nr?Zn:mr).right;U(po,mr.top,Xu-po,mr.bottom)}else{var Zu,In,gl,V0;Nr?(Zu=I&&vl&&mn?N:mr.left,In=I?C:li(wr,sn,"before"),gl=I?N:li(Xn,sn,"after"),V0=I&&Ko&&Ca?C:Zn.right):(Zu=I?li(wr,sn,"before"):N,In=!I&&vl&&mn?C:mr.right,gl=!I&&Ko&&Ca?N:Zn.left,V0=I?li(Xn,sn,"after"):C),U(Zu,mr.top,In-Zu,mr.bottom),mr.bottom<Zn.top&&U(N,mr.bottom,null,Zn.top),U(gl,Zn.top,V0-gl,Zn.bottom)}(!Ht||Sh(mr,Ht)<0)&&(Ht=mr),Sh(Zn,Ht)<0&&(Ht=Zn),(!zr||Sh(mr,zr)<0)&&(zr=mr),Sh(Zn,zr)<0&&(zr=Zn)}),{start:Ht,end:zr}}var $ =u.from(),X=u.to();if( $ .line==X.line)K( $ .line, $ .ch,X.ch);else{var ae=Ae(p, $ .line),le=Ae(p,X.line),pe=ca(ae)==ca(le),be=K( $ .line, $ .ch,pe?ae.text.length+1:null).end,Ne=K(X.line,pe?0:null,X.ch).start;pe&&(be.top<Ne.top-2?(U(be.right,be.top,null,be.bottom),U(N,Ne.top,Ne.left,Ne.bottom)):U(be.right,be.top,Ne.left-be.right,be.bottom)),be.bottom<Ne.top&&U(N,be.bottom,null,Ne.top)}f.appendChild(g)}function p0(a){if(!!a.state.focused){var u=a.display;clearInterval(u.blinker);var f=!0;u.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?u.blinker=setInterval(function(){a.hasFocus()||nl(a),u.cursorDiv.style.visibility=(f=!f)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility="hidden")}}function BN(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||v0(a))}function h0(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&nl(a))},100)}function v0(a,u){a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Ft(a,"focus",a,u),a.state.focused=!0,Le(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),d&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),p0(a))}function nl(a,u){a.state.delayingBlurEvent||(a.state.focused&&(Ft(a,"blur",a,u),a.state.focused=!1,z(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function kh(a){for(var u=a.display,f=u.lineDiv.offsetTop,c=Math.max(0,u.scroller.getBoundingClientRect().top),p=u.lineDiv.getBoundingClientRect().top,g=0,E=0;E<u.view.length;E++){var N=u.view[E],C=a.options.lineWrapping,I=void 0,U=0;if(!N.hidden){if(p+=N.line.height,s&&l<8){var K=N.node.offsetTop+N.node.offsetHeight;I=K-f,f=K}else{var $ =N.node.getBoundingClientRect();I= $ .bottom- $ .top,!C&&N.text.firstChild&&(U=N.text.firstChild.getBoundingClientRect().right- $ .left-1)}var X=N.line.height-I;if((X>.005||X<-.005)&&(p<c&&(g-=X),Fi(N.line,I),KN(N.line),N.rest))for(var ae=0;ae<N.rest.length;ae++)KN(N.rest[ae]);if(U>a.display.sizerWidth){var le=Math.ceil(U/rl(a.display));le>a.display.maxLineLength&&(a.display.maxLineLength=le,a.display.maxLine=N.line,a.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(u.scroller.scrollTop+=g)}function KN(a){if(a.widgets)for(var u=0;u<a.widgets.length;++u){var f=a.widgets[u],c=f.node.parentNode;c&&(f.height=c.offsetHeight)}}function Oh(a,u,f){var c=f&&f.top!=null?Math.max(0,f.top):a.scroller.scrollTop;c=Math.floor(c-bh(a));var p=f&&f.bottom!=null?f.bottom:c+a.wrapper.clientHeight,g=wa(u,c),E=wa(u,p);if(f&&f.ensure){var N=f.ensure.from.line,C=f.ensure.to.line;N<g?(g=N,E=wa(u,so(Ae(u,N))+a.wrapper.clientHeight)):Math.min(C,u.lastLine())>=E&&(g=wa(u,so(Ae(u,C))-a.wrappe
top : ` +(u.top-f.viewOffset-bh(a.display))+ ` px ;
height : ` +(u.bottom-u.top+Da(a)+f.barHeight)+ ` px ;
left : ` +u.left+"px; width: "+Math.max(2,u.right-u.left)+"px;");a.display.lineSpace.appendChild(E),E.scrollIntoView(p),a.display.lineSpace.removeChild(E)}}}function j2(a,u,f,c){c==null&&(c=0);var p;!a.options.lineWrapping&&u==f&&(f=u.sticky=="before"?W(u.line,u.ch+1,"before"):u,u=u.ch?W(u.line,u.sticky=="before"?u.ch-1:u.ch,"after"):u);for(var g=0;g<5;g++){var E=!1,N=fa(a,u),C=!f||f==u?N:fa(a,f);p={left:Math.min(N.left,C.left),top:Math.min(N.top,C.top)-c,right:Math.max(N.left,C.left),bottom:Math.max(N.bottom,C.bottom)+c};var I=g0(a,p),U=a.doc.scrollTop,K=a.doc.scrollLeft;if(I.scrollTop!=null&&(pf(a,I.scrollTop),Math.abs(a.doc.scrollTop-U)>1&&(E=!0)),I.scrollLeft!=null&&(zu(a,I.scrollLeft),Math.abs(a.doc.scrollLeft-K)>1&&(E=!0)),!E)break}return p}function P2(a,u){var f=g0(a,u);f.scrollTop!=null&&pf(a,f.scrollTop),f.scrollLeft!=null&&zu(a,f.scrollLeft)}function g0(a,u){var f=a.display,c=tl(a.display);u.top<0&&(u.top=0);var p=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:f.scroller.scrollTop,g=n0(a),E={};u.bottom-u.top>g&&(u.bottom=u.top+g);var N=a.doc.height+r0(f),C=u.top<c,I=u.bottom>N-c;if(u.top<p)E.scrollTop=C?0:u.top;else if(u.bottom>p+g){var U=Math.min(u.top,(I?N:u.bottom)-g);U!=p&&(E.scrollTop=U)}var K=a.options.fixedGutter?0:f.gutters.offsetWidth, $ =a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:f.scroller.scrollLeft-K,X=Qu(a)-f.gutters.offsetWidth,ae=u.right-u.left>X;return ae&&(u.right=u.left+X),u.left<10?E.scrollLeft=0:u.left< $ ?E.scrollLeft=Math.max(0,u.left+K-(ae?0:10)):u.right>X+ $ -3&&(E.scrollLeft=u.right+(ae?0:10)-X),E}function m0(a,u){u!=null&&(wh(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+u)}function il(a){wh(a);var u=a.getCursor();a.curOp.scrollToPos={from:u,to:u,margin:a.options.cursorScrollMargin}}function df(a,u,f){(u!=null||f!=null)&&wh(a),u!=null&&(a.curOp.scrollLeft=u),f!=null&&(a.curOp.scrollTop=f)}function F2(a,u){wh(a),a.curOp.scrollToPos=u}function wh(a){var u=a.curOp.scrollToPos;if(u){a.curOp.scrollToPos=null;var f=MN(a,u.from),c=MN(a,u.to);HN(a,f,c,u.margin)}}function HN(a,u,f,c){var p=g0(a,{left:Math.min(u.left,f.left),top:Math.min(u.top,f.top)-c,right:Math.max(u.right,f.right),bottom:Math.max(u.bottom,f.bottom)+c});df(a,p.scrollLeft,p.scrollTop)}function pf(a,u){Math.abs(a.doc.scrollTop-u)<2||(r||b0(a,{top:u}),zN(a,u,!0),r&&b0(a),gf(a,100))}function zN(a,u,f){u=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,u)),!(a.display.scroller.scrollTop==u&&!f)&&(a.doc.scrollTop=u,a.display.scrollbars.setScrollTop(u),a.display.scroller.scrollTop!=u&&(a.display.scroller.scrollTop=u))}function zu(a,u,f,c){u=Math.max(0,Math.min(u,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((f?u==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-u)<2)&&!c)&&(a.doc.scrollLeft=u,ZN(a),a.display.scroller.scrollLeft!=u&&(a.display.scroller.scrollLeft=u),a.display.scrollbars.setScrollLeft(u))}function hf(a){var u=a.display,f=u.gutters.offsetWidth,c=Math.round(a.doc.height+r0(a.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:a.options.fixedGutter?f:0,docHeight:c,scrollHeight:c+Da(a)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:f}}var Wu=function(a,u,f){this.cm=f;var c=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");c.tabIndex=p.tabIndex=-1,a(c),a(p),_e(c,"scroll",function(){c.clientHeight&&u(c.scrollTop,"vertical")}),_e(p,"scroll",function(){p.clientWidth&&u(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wu.prototype.update=function(a){var u=a.scrollWidth>a.clientWidth+1,f=a.scrollHeight>a.clientHeight+1,c=a.nativeBarWidth;if(f){this.vert.style.display="block",this.vert.style.bottom=u?c+"px":"0";var p=a.viewHeight-(u?c:0);this.vert.firstChild.sty
` },setDirection:Hr(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(u){return u.order=null}),this.cm&& $ 2(this.cm))})}),Yn.prototype.eachLine=Yn.prototype.iter;var xD=0;function dB(a){var u=this;if(CD(u),!(nr(u,a)||lo(u.display,a))){ee(a),s&&(xD=+new Date);var f=Ku(u,a,!0),c=a.dataTransfer.files;if(!(!f||u.isReadOnly()))if(c&&c.length&&window.FileReader&&window.File)for(var p=c.length,g=Array(p),E=0,N=function(){++E==p&&Kr(u,function(){f=Ye(u.doc,f);var X={from:f,to:f,text:u.doc.splitLines(g.filter(function(ae){return ae!=null}).join(u.doc.lineSeparator())),origin:"paste"};sl(u.doc,X),hD(u.doc,Vo(Ye(u.doc,f),Ye(u.doc,Uo(X))))})()},C=function(X,ae){if(u.options.allowDropFileTypes&&we(u.options.allowDropFileTypes,X.type)==-1){N();return}var le=new FileReader;le.onerror=function(){return N()},le.onload=function(){var pe=le.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(pe)){N();return}g[ae]=pe,N()},le.readAsText(X)},I=0;I<c.length;I++)C(c[I],I);else{if(u.state.draggingText&&u.doc.sel.contains(f)>-1){u.state.draggingText(a),setTimeout(function(){return u.display.input.focus()},20);return}try{var U=a.dataTransfer.getData("Text");if(U){var K;if(u.state.draggingText&&!u.state.draggingText.copy&&(K=u.listSelections()),Ih(u.doc,Vo(f,f)),K)for(var $ =0; $ <K.length;++ $ )ll(u.doc,"",K[ $ ].anchor,K[ $ ].head,"drag");u.replaceSelection(U,"around","paste"),u.display.input.focus()}}catch(X){}}}}function pB(a,u){if(s&&(!a.state.draggingText||+new Date-xD<100)){J(u);return}if(!(nr(a,u)||lo(a.display,u))&&(u.dataTransfer.setData("Text",a.getSelection()),u.dataTransfer.effectAllowed="copyMove",u.dataTransfer.setDragImage&&!D)){var f=P("img",null,null,"position: fixed; left: 0; top: 0;");f.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",b&&(f.width=f.height=1,a.display.wrapper.appendChild(f),f._top=f.offsetTop),u.dataTransfer.setDragImage(f,0,0),b&&f.parentNode.removeChild(f)}}function hB(a,u){var f=Ku(a,u);if(!!f){var c=document.createDocumentFragment();d0(a,f,c),a.display.dragCursor||(a.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Q(a.display.dragCursor,c)}}function CD(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function LD(a){if(!!document.getElementsByClassName){for(var u=document.getElementsByClassName("CodeMirror"),f=[],c=0;c<u.length;c++){var p=u[c].CodeMirror;p&&f.push(p)}f.length&&f[0].operation(function(){for(var g=0;g<f.length;g++)a(f[g])})}}var ID=!1;function vB(){ID||(gB(),ID=!0)}function gB(){var a;_e(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,LD(mB)},100))}),_e(window,"blur",function(){return LD(nl)})}function mB(a){var u=a.display;u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.scrollbarsClipped=!1,a.setSize()}for(var Bo={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 "},Of=0;Of<10;Of++)Bo[Of+48]=Bo[Of+96]=String(Of);for(var jh=65;jh<=90;jh++)Bo[jh]=String.fromCharCode(jh);for(var wf=1;wf<=12;wf++)Bo[wf+111]=Bo[wf+63235]=" F "+wf;var fo={};fo.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 "},fo.pcDefault={" Ctrl - A ":" selectAll "," Ctrl - D ":" delet
` ,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function PD(a,u){var f=Ae(a.doc,u),c=ca(f);return c!=f&&(u=wt(c)),L0(!0,a,c,u,1)}function _B(a,u){var f=Ae(a.doc,u),c=i2(f);return c!=f&&(u=wt(c)),L0(!0,a,f,u,-1)}function FD(a,u){var f=PD(a,u.line),c=Ae(a.doc,f.line),p=xn(c,a.doc.direction);if(!p||p[0].level==0){var g=Math.max(f.ch,c.text.search(/ \S /)),E=u.line==f.line&&u.ch<=g&&u.ch;return W(f.line,E?0:g,f.sticky)}return f}function Fh(a,u,f){if(typeof u=="string"&&(u=Nf[u],!u))return!1;a.display.input.ensurePolled();var c=a.display.shift,p=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),f&&(a.display.shift=!1),p=u(a)!=Me}finally{a.display.shift=c,a.state.suppressEdits=!1}return p}function EB(a,u,f){for(var c=0;c<a.state.keyMaps.length;c++){var p=fl(u,a.state.keyMaps[c],f,a);if(p)return p}return a.options.extraKeys&&fl(u,a.options.extraKeys,f,a)||fl(u,a.options.keyMap,f,a)}var SB=new ce;function Df(a,u,f,c){var p=a.state.keySeq;if(p){if(AD(u))return"handled";if(/ \' $ /.test(u)?a.state.keySeq=null:SB.set(50,function(){a.state.keySeq==p&&(a.state.keySeq=null,a.display.input.reset())}),MD(a,p+" "+u,f,c))return!0}return MD(a,u,f,c)}function MD(a,u,f,c){var p=EB(a,u,c);return p=="multi"&&(a.state.keySeq=u),p=="handled"&&Br(a,"keyHandled",a,u,f),(p=="handled"||p=="multi")&&(ee(f),p0(a)),!!p}function qD(a,u){var f=jD(u,!0);return f?u.shiftKey&&!a.state.keySeq?Df(a,"Shift-"+f,u,function(c){return Fh(a,c,!0)})||Df(a,f,u,function(c){if(typeof c=="string"?/^go[A-Z]/.test(c):c.motion)return Fh(a,c)}):Df(a,f,u,function(c){return Fh(a,c)}):!1}function kB(a,u,f){return Df(a,"'"+f+"'",u,function(c){return Fh(a,c,!0)})}var I0=null;function VD(a){var u=this;if(!(a.target&&a.target!=u.display.input.getField())&&(u.curOp.focus=Fe(Ve(u)),!nr(u,a))){s&&l<11&&a.keyCode==27&&(a.returnValue=!1);var f=a.keyCode;u.display.shift=f==16||a.shiftKey;var c=qD(u,a);b&&(I0=c?f:null,!c&&f==88&&!jr&&(w?a.metaKey:a.ctrlKey)&&u.replaceSelection("",null,"cut")),r&&!w&&!c&&f==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),f==18&&!/ \b CodeMirror-crosshair \b /.test(u.display.lineDiv.className)&&OB(u)}}function OB(a){var u=a.display.lineDiv;Le(u,"CodeMirror-crosshair");function f(c){(c.keyCode==18||!c.altKey)&&(z(u,"CodeMirror-crosshair"),Ar(document,"keyup",f),Ar(document,"mouseover",f))}_e(document,"keyup",f),_e(document,"mouseover",f)}function UD(a){a.keyCode==16&&(this.doc.sel.shift=!1),nr(this,a)}function GD(a){var u=this;if(!(a.target&&a.target!=u.display.input.getField())&&!(lo(u.display,a)||nr(u,a)||a.ctrlKey&&!a.altKey||w&&a.metaKey)){var f=a.keyCode,c=a.charCode;if(b&&f==I0){I0=null,ee(a);return}if(!(b&&(!a.which||a.which<10)&&qD(u,a))){var p=String.fromCharCode(c==null?f:c);p!=" \b "&&(kB(u,a,p)||u.display.input.onKeyPress(a))}}}var wB=400,A0=function(a,u,f){this.time=a,this.pos=u,this.button=f};A0.prototype.compare=function(a,u,f){return this.time+wB>a&&ie(u,this.pos)==0&&f==this.button};var xf,Cf;function NB(a,u){var f=+new Date;return Cf&&Cf.compare(f,a,u)?(xf=Cf=null,"triple"):xf&&xf.compare(f,a,u)?(Cf=new A0(f,a,u),xf=null,"double"):(xf=new A0(f,a,u),Cf=null,"single")}function QD(a){var u=this,f=u.display;if(!(nr(u,a)||f.activeTouch&&f.input.supportsTouch())){if(f.input.ensurePolled(),f.shift=a.shiftKey,lo(f,a)){d||(f.scroller.draggable=!1,setTimeout(function(){return f.scroller.draggable=!0},100));return}if(!R0(u,a)){var c=Ku(u,a),p=A(a),g=c?NB(c,p):"single";At(u).focus(),p==1&&u.state.selectingText&&u.state.selectingText(a),!(c&&DB(u,p,c,g,a))&&(p==1?c?CB(u,c,g,a):V(a)==f.scroller&&ee(a):p==2?(c&&Lh(u.doc,c),setTimeout(function(){return f.input.focus()},20)):p==3&&(M?u.display.input.onContextMenu(a):h0(u)))}}}function DB(a,u,f,c,p){var g="Click";return c=="double"?g="Double"+g:c=="triple"&&(g="Triple"+g),g=(u==1?"Left":u==2?"Middle":"Right")+g,Df(a,RD(g,p),p,function(E){if(typeof E=="string"&&(E=Nf[E]),!E)return!1;var N=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),N=E(a,f)!=Me}finally{a.state.suppressEdits=!1}return N})}function xB(a,u,f){var c=a.getOption("configureMouse"),p=c?c(a,u,f):{};if(p
` )==u){if(c.ranges.length%pa.text.length==0){I=[];for(var U=0;U<pa.text.length;U++)I.push(g.splitLines(pa.text[U]))}}else C.length==c.ranges.length&&a.options.pasteLinesPerSelection&&(I=Ue(C,function(be){return[be]}));for(var K=a.curOp.updateInput, $ =c.ranges.length-1; $ >=0; $ --){var X=c.ranges[ $ ],ae=X.from(),le=X.to();X.empty()&&(f&&f>0?ae=W(ae.line,ae.ch-f):a.state.overwrite&&!N?le=W(le.line,Math.min(Ae(g,le.line).text.length,le.ch+se(C).length)):N&&pa&&pa.lineWise&&pa.text.join( `
` )==C.join( `
` )&&(ae=le=W(ae.line,0)));var pe={from:ae,to:le,text:I?I[ $ %I.length]:C,origin:p||(N?"paste":a.state.cutIncoming>E?"cut":"+input")};sl(a.doc,pe),Br(a,"inputRead",a,pe)}u&&!N&&JD(a,u),il(a),a.curOp.updateInput<2&&(a.curOp.updateInput=K),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function YD(a,u){var f=a.clipboardData&&a.clipboardData.getData("Text");if(f)return a.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&u.hasFocus()&&si(u,function(){return P0(u,f,0,null,"paste")}),!0}function JD(a,u){if(!(!a.options.electricChars||!a.options.smartIndent))for(var f=a.doc.sel,c=f.ranges.length-1;c>=0;c--){var p=f.ranges[c];if(!(p.head.ch>100||c&&f.ranges[c-1].head.line==p.head.line)){var g=a.getModeAt(p.head),E=!1;if(g.electricChars){for(var N=0;N<g.electricChars.length;N++)if(u.indexOf(g.electricChars.charAt(N))>-1){E=Lf(a,p.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Ae(a.doc,p.head.line).text.slice(0,p.head.ch))&&(E=Lf(a,p.head.line,"smart"));E&&Br(a,"electricInput",a,p.head.line)}}}function XD(a){for(var u=[],f=[],c=0;c<a.doc.sel.ranges.length;c++){var p=a.doc.sel.ranges[c].head.line,g={anchor:W(p,0),head:W(p+1,0)};f.push(g),u.push(a.getRange(g.anchor,g.head))}return{text:u,ranges:f}}function F0(a,u,f,c){a.setAttribute("autocorrect",f?"on":"off"),a.setAttribute("autocapitalize",c?"on":"off"),a.setAttribute("spellcheck",!!u)}function ZD(){var a=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),u=P("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return d?a.style.width="1000px":a.setAttribute("wrap","off"),T&&(a.style.border="1px solid black"),u}function qB(a){var u=a.optionHandlers,f=a.helpers={};a.prototype={constructor:a,focus:function(){At(this).focus(),this.display.input.focus()},setOption:function(c,p){var g=this.options,E=g[c];g[c]==p&&c!="mode"||(g[c]=p,u.hasOwnProperty(c)&&Kr(this,u[c])(this,p,E),Ft(this,"optionChange",this,c))},getOption:function(c){return this.options[c]},getDoc:function(){return this.doc},addKeyMap:function(c,p){this.state.keyMaps[p?"push":"unshift"](Ph(c))},removeKeyMap:function(c){for(var p=this.state.keyMaps,g=0;g<p.length;++g)if(p[g]==c||p[g].name==c)return p.splice(g,1),!0},addOverlay:Ln(function(c,p){var g=c.token?c:a.getMode(this.options,c);if(g.startState)throw new Error("Overlays may not be stateful.");at(this.state.overlays,{mode:g,modeSpec:c,opaque:p&&p.opaque,priority:p&&p.priority||0},function(E){return E.priority}),this.state.modeGen++,Wn(this)}),removeOverlay:Ln(function(c){for(var p=this.state.overlays,g=0;g<p.length;++g){var E=p[g].modeSpec;if(E==c||typeof c=="string"&&E.name==c){p.splice(g,1),this.state.modeGen++,Wn(this);return}}}),indentLine:Ln(function(c,p,g){typeof p!="string"&&typeof p!="number"&&(p==null?p=this.options.smartIndent?"smart":"prev":p=p?"add":"subtract"),j(this.doc,c)&&Lf(this,c,p,g)}),indentSelection:Ln(function(c){for(var p=this.doc.sel.ranges,g=-1,E=0;E<p.length;E++){var N=p[E];if(N.empty())N.head.line>g&&(Lf(this,N.head.line,c,!0),g=N.head.line,E==this.doc.sel.primIndex&&il(this));else{var C=N.from(),I=N.to(),U=Math.max(g,C.line);g=Math.min(this.lastLine(),I.line-(I.ch?0:1))+1;for(var K=U;K<g;++K)Lf(this,K,c);var $ =this.doc.sel.ranges;C.ch==0&&p.length== $ .length&& $ [E].from().ch>0&&D0(this.doc,E,new Nt(C, $ [E].to()),Qe)}}}),getTokenAt:function(c,p){return sN(this,c,p)},getLineTokens:function(c,p){return sN(this,W(c),p,!0)},getTokenTypeAt:function(c){c=Ye(this.doc,c);var p=aN(this,Ae(this.doc,c.line)),g=0,E=(p.length-1)/2,N=c.ch,C;if(N==0)C=p[2];else for(;;){var I=g+E>>1;if((I?p[I*2-1]:0)>=N)E=I;else if(p[I*2+1]<N)g=I+1;else{C=p[I*2+2];break}}var U=C?C.indexOf("overlay "):-1;return U<0?C:U==0?null:C.slice(0,U-1)},getModeAt:function(c){var p=this.doc.mode;return p.innerMode?a.innerMode(p,this.getTokenAt(c).state).mode:p},getHelper:function(c,p){return this.getHelpers(c,p)[0]},getHelpers:function(c,p){var g=[];if(!f.hasOwnProperty(p))return g;var E=f[p],N=this.getModeAt(c);if(typeof N[p]=="string")E[N[p]]
` ,pe=dn(le,X)?"w": $ &&le== `
` ?"n":! $ ||/ \s /.test(le)?null:"p";if( $ &&!ae&&!pe&&(pe="s"),K&&K!=pe){f<0&&(f=1,U(),u.sticky="after");break}if(pe&&(K=pe),f>0&&!U(!ae))break}var be=Ah(a,u,g,E,!0);return We(g,be)&&(be.hitSide=!0),be}function $ D(a,u,f,c){var p=a.doc,g=u.left,E;if(c=="page"){var N=Math.min(a.display.wrapper.clientHeight,At(a).innerHeight||p(a).documentElement.clientHeight),C=Math.max(N-.5*tl(a.display),3);E=(f>0?u.bottom:u.top)+f*C}else c=="line"&&(E=f>0?u.bottom+3:u.top-3);for(var I;I=u0(a,g,E),!!I.outside;){if(f<0?E<=0:E>=p.height){I.hitSide=!0;break}E+=f*5}return I}var Mt=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Mt.prototype.init=function(a){var u=this,f=this,c=f.cm,p=f.div=a.lineDiv;p.contentEditable=!0,F0(p,c.options.spellcheck,c.options.autocorrect,c.options.autocapitalize);function g(N){for(var C=N.target;C;C=C.parentNode){if(C==p)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(C.className))break}return!1}_e(p,"paste",function(N){!g(N)||nr(c,N)||YD(N,c)||l<=11&&setTimeout(Kr(c,function(){return u.updateFromDOM()}),20)}),_e(p,"compositionstart",function(N){u.composing={data:N.data,done:!1}}),_e(p,"compositionupdate",function(N){u.composing||(u.composing={data:N.data,done:!1})}),_e(p,"compositionend",function(N){u.composing&&(N.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),_e(p,"touchstart",function(){return f.forceCompositionEnd()}),_e(p,"input",function(){u.composing||u.readFromDOMSoon()});function E(N){if(!(!g(N)||nr(c,N))){if(c.somethingSelected())qh({lineWise:!1,text:c.getSelections()}),N.type=="cut"&&c.replaceSelection("",null,"cut");else if(c.options.lineWiseCopyCut){var C=XD(c);qh({lineWise:!0,text:C.text}),N.type=="cut"&&c.operation(function(){c.setSelections(C.ranges,0,Qe),c.replaceSelection("",null,"cut")})}else return;if(N.clipboardData){N.clipboardData.clearData();var I=pa.text.join( `
` );if(N.clipboardData.setData("Text",I),N.clipboardData.getData("Text")==I){N.preventDefault();return}}var U=ZD(),K=U.firstChild;F0(K),c.display.lineSpace.insertBefore(U,c.display.lineSpace.firstChild),K.value=pa.text.join( `
` );var $ =Fe(p.ownerDocument);Xe(K),setTimeout(function(){c.display.lineSpace.removeChild(U), $ .focus(), $ ==p&&f.showPrimarySelection()},50)}}_e(p,"copy",E),_e(p,"cut",E)},Mt.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Mt.prototype.prepareSelection=function(){var a=QN(this.cm,!1);return a.focus=Fe(this.div.ownerDocument)==this.div,a},Mt.prototype.showSelection=function(a,u){!a||!this.cm.display.view.length||((a.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Mt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Mt.prototype.showPrimarySelection=function(){var a=this.getSelection(),u=this.cm,f=u.doc.sel.primary(),c=f.from(),p=f.to();if(u.display.viewTo==u.display.viewFrom||c.line>=u.display.viewTo||p.line<u.display.viewFrom){a.removeAllRanges();return}var g=Vh(u,a.anchorNode,a.anchorOffset),E=Vh(u,a.focusNode,a.focusOffset);if(!(g&&!g.bad&&E&&!E.bad&&ie(Pr(g,E),c)==0&&ie(_t(g,E),p)==0)){var N=u.display.view,C=c.line>=u.display.viewFrom&&ex(u,c)||{node:N[0].measure.map[2],offset:0},I=p.line<u.display.viewTo&&ex(u,p);if(!I){var U=N[N.length-1].measure,K=U.maps?U.maps[U.maps.length-1]:U.map;I={node:K[K.length-1],offset:K[K.length-2]-K[K.length-3]}}if(!C||!I){a.removeAllRanges();return}var $ =a.rangeCount&&a.getRangeAt(0),X;try{X=xe(C.node,C.offset,I.offset,I.node)}catch(ae){}X&&(!r&&u.state.focused?(a.collapse(C.node,C.offset),X.collapsed||(a.removeAllRanges(),a.addRange(X))):(a.removeAllRanges(),a.addRange(X)), $ &&a.anchorNode==null?a.addRange( $ ):r&&this.startGracePeriod()),this.rememberSelection()}},Mt.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Mt.prototype.showMultipleSelections=function(a){Q(this.cm.display.cursorDiv,a.cursors),Q(this.cm.display.selectionDiv,a.selection)},Mt.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Mt.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var u=a.getRangeAt(0).commonAncestorContainer;return ge(this.div,u)},Mt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Mt.prototype.blur=function(){this.div.blur()},Mt.prototype.getField=function(){return this.div},Mt.prototype.supportsTouch=function(){return!0},Mt.prototype.receivedFocus=function(){var a=this,u=this;this.selectionInEditor()?setTimeout(function(){return a.pollSelection()},20):si(this.cm,function(){return u.cm.curOp.selectionChanged=!0});function f(){u.cm.state.focused&&(u.pollSelection(),u.polling.set(u.cm.options.pollInterval,f))}this.polling.set(this.cm.options.pollInterval,f)},Mt.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Mt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),u=this.cm;if(S&&v&&this.cm.display.gutterSpecs.length&&VB(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var f=Vh(u,a.anchorNode,a.anchorOffset),c=Vh(u,a.focusNode,a.focusOffset);f&&c&&si(u,function(){gn(u.doc,Vo(f,c),Qe),(f.bad||c.bad)&&(u.curOp.selectionChanged=!0)})}}},Mt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,u=a.display,f=a.doc.sel.primary(),c=f.from(),p=f.to();if(c.ch==0&&c.line>a.firstLine()&&(c=W(c.line-1,Ae(a.doc,c.l
` ),Xe(p))}else return;E.type=="cut"&&(c.state.cutIncoming=+new Date)}}_e(p,"cut",g),_e(p,"copy",g),_e(a.scroller,"paste",function(E){if(!(lo(a,E)||nr(c,E))){if(!p.dispatchEvent){c.state.pasteIncoming=+new Date,f.focus();return}var N=new Event("paste");N.clipboardData=E.clipboardData,p.dispatchEvent(N)}}),_e(a.lineSpace,"selectstart",function(E){lo(a,E)||ee(E)}),_e(p,"compositionstart",function(){var E=c.getCursor("from");f.composing&&f.composing.range.clear(),f.composing={start:E,range:c.markText(E,c.getCursor("to"),{className:"CodeMirror-composing"})}}),_e(p,"compositionend",function(){f.composing&&(f.poll(),f.composing.range.clear(),f.composing=null)})},Tr.prototype.createField=function(a){this.wrapper=ZD(),this.textarea=this.wrapper.firstChild;var u=this.cm.options;F0(this.textarea,u.spellcheck,u.autocorrect,u.autocapitalize)},Tr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Tr.prototype.prepareSelection=function(){var a=this.cm,u=a.display,f=a.doc,c=QN(a);if(a.options.moveInputWithCursor){var p=fa(a,f.sel.primary().head,"div"),g=u.wrapper.getBoundingClientRect(),E=u.lineDiv.getBoundingClientRect();c.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,p.top+E.top-g.top)),c.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,p.left+E.left-g.left))}return c},Tr.prototype.showSelection=function(a){var u=this.cm,f=u.display;Q(f.cursorDiv,a.cursors),Q(f.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Tr.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing&&a)){var u=this.cm;if(this.resetting=!0,u.somethingSelected()){this.prevInput="";var f=u.getSelection();this.textarea.value=f,u.state.focused&&Xe(this.textarea),s&&l>=9&&(this.hasSelection=f)}else a||(this.prevInput=this.textarea.value="",s&&l>=9&&(this.hasSelection=null));this.resetting=!1}},Tr.prototype.getField=function(){return this.textarea},Tr.prototype.supportsTouch=function(){return!1},Tr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!m||Fe(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(a){}},Tr.prototype.blur=function(){this.textarea.blur()},Tr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Tr.prototype.receivedFocus=function(){this.slowPoll()},Tr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Tr.prototype.fastPoll=function(){var a=!1,u=this;u.pollingFast=!0;function f(){var c=u.poll();!c&&!a?(a=!0,u.polling.set(60,f)):(u.pollingFast=!1,u.slowPoll())}u.polling.set(20,f)},Tr.prototype.poll=function(){var a=this,u=this.cm,f=this.textarea,c=this.prevInput;if(this.contextMenuPending||this.resetting||!u.state.focused||Rr(f)&&!c&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var p=f.value;if(p==c&&!u.somethingSelected())return!1;if(s&&l>=9&&this.hasSelection===p||w&&/[ \u f700- \u f7ff]/.test(p))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var g=p.charCodeAt(0);if(g==8203&&!c&&(c=" \u 200B"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var E=0,N=Math.min(c.length,p.length);E<N&&c.charCodeAt(E)==p.charCodeAt(E);)++E;return si(u,function(){P0(u,p.slice(E),c.length-E,null,a.composing?"*compose":null),p.length>1e3||p.indexOf( `
` )>-1?f.value=a.prevInput="":a.prevInput=p,a.composing&&(a.composing.range.clear(),a.composing.range=u.markText(a.composing.start,u.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Tr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Tr.prototype.onKeyPress=function(){s&&l>=9&&(this.hasSelection=null),this.fastPoll()},Tr.prototype.onContextMenu=function(a){var u=this,f=u.cm,c=f.display,p=u.textarea;u.contextMenuPending&&u.contextMenuPending();var g=Ku(f,a),E=c.scroller.scrollTop;if(!g||b)return;var N=f.options.resetSelectionOnContextMenu;N&&f.doc.sel.contains(g)==-1&&Kr(f,gn)(f.doc,Vo(g),Qe);var C=p.style.cssText,I=u.wrapper.style.cssText,U=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText="position: static",p.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
top : ` +(a.clientY-U.top-5)+"px; left: "+(a.clientX-U.left-5)+ ` px ;
2021-07-31 23:49:48 -07:00
z - index : 1000 ; background : ` +(s?"rgba(255, 255, 255, .05)":"transparent")+ ` ;
2023-08-22 14:06:59 -07:00
outline : none ; border - width : 0 ; outline : none ; overflow : hidden ; opacity : . 05 ; filter : alpha ( opacity = 5 ) ; ` ;var K;d&&(K=p.ownerDocument.defaultView.scrollY),c.input.focus(),d&&p.ownerDocument.defaultView.scrollTo(null,K),c.input.reset(),f.somethingSelected()||(p.value=u.prevInput=" "),u.contextMenuPending=X,c.selForContextMenu=f.doc.sel,clearTimeout(c.detectingSelectAll);function $ (){if(p.selectionStart!=null){var le=f.somethingSelected(),pe=" \u 200B"+(le?p.value:"");p.value=" \u 21DA",p.value=pe,u.prevInput=le?"":" \u 200B",p.selectionStart=1,p.selectionEnd=pe.length,c.selForContextMenu=f.doc.sel}}function X(){if(u.contextMenuPending==X&&(u.contextMenuPending=!1,u.wrapper.style.cssText=I,p.style.cssText=C,s&&l<9&&c.scrollbars.setScrollTop(c.scroller.scrollTop=E),p.selectionStart!=null)){(!s||s&&l<9)&& $ ();var le=0,pe=function(){c.selForContextMenu==f.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&u.prevInput==" \u 200B"?Kr(f,bD)(f):le++<10?c.detectingSelectAll=setTimeout(pe,500):(c.selForContextMenu=null,c.input.reset())};c.detectingSelectAll=setTimeout(pe,200)}}if(s&&l>=9&& $ (),M){J(a);var ae=function(){Ar(window,"mouseup",ae),setTimeout(X,20)};_e(window,"mouseup",ae)}else setTimeout(X,50)},Tr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Tr.prototype.setUneditable=function(){},Tr.prototype.needsContentAttribute=!1;function QB(a,u){if(u=u?Ie(u):{},u.value=a.value,!u.tabindex&&a.tabIndex&&(u.tabindex=a.tabIndex),!u.placeholder&&a.placeholder&&(u.placeholder=a.placeholder),u.autofocus==null){var f=Fe(a.ownerDocument);u.autofocus=f==a||a.getAttribute("autofocus")!=null&&f==document.body}function c(){a.value=N.getValue()}var p;if(a.form&&(_e(a.form,"submit",c),!u.leaveSubmitMethodAlone)){var g=a.form;p=g.submit;try{var E=g.submit=function(){c(),g.submit=p,g.submit(),g.submit=E}}catch(C){}}u.finishInit=function(C){C.save=c,C.getTextArea=function(){return a},C.toTextArea=function(){C.toTextArea=isNaN,c(),a.parentNode.removeChild(C.getWrapperElement()),a.style.display="",a.form&&(Ar(a.form,"submit",c),!u.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=p))}},a.style.display="none";var N=ir(function(C){return a.parentNode.insertBefore(C,a.nextSibling)},u);return N}function BB(a){a.off=Ar,a.on=_e,a.wheelEventPixels=X2,a.Doc=Yn,a.splitLines=vn,a.countColumn=te,a.findColumn=oe,a.isWordChar=Ei,a.Pass=Me,a.signal=Ft,a.Line=Zs,a.changeEnd=Uo,a.scrollbarModel=YN,a.Pos=W,a.cmpPos=ie,a.modes=Cn,a.mimeModes=la,a.resolveMode=ui,a.getMode=io,a.modeExtensions=jo,a.extendMode=fh,a.copyState=ao,a.startState=nf,a.innerMode=Po,a.commands=Nf,a.keyMap=fo,a.keyName=jD,a.isModifierKey=AD,a.lookupKey=fl,a.normalizeKeyMap=bB,a.StringStream=gr,a.SharedTextMarker=kf,a.TextMarker=Qo,a.LineWidget=Sf,a.e_preventDefault=ee,a.e_stopPropagation=F,a.e_stop=J,a.addClass=Le,a.contains=ge,a.rmClass=z,a.keyNames=Bo}jB(ir),qB(ir);var KB="iter insert remove copy getEditor constructor".split(" ");for(var Uh in Yn.prototype)Yn.prototype.hasOwnProperty(Uh)&&we(KB,Uh)<0&&(ir.prototype[Uh]=function(a){return function(){return a.apply(this.doc,arguments)}}(Yn.prototype[Uh]));return un(Yn),ir.inputStyles={textarea:Tr,contenteditable:Mt},ir.defineMode=function(a){!ir.defaults.mode&&a!="null"&&(ir.defaults.mode=a),ch.apply(this,arguments)},ir.defineMIME=Js,ir.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),ir.defineMIME("text/plain","null"),ir.defineExtension=function(a,u){ir.prototype[a]=u},ir.defineDocExtension=function(a,u){Yn.prototype[a]=u},ir.fromTextArea=QB,BB(ir),ir.version="5.65.14",ir})});var jO=G((kV,OV)=>{(function(e){typeof kV=="object"&&typeof OV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t="CodeMirror-hint",r="CodeMirror-hint-active";e.showHint=function(k,T,S){if(!T)return k.showHint(S);S&&S.async&&(T.async=!0);var m={hint:T};if(S)for(var w in S)m[w]=S[w];return k.showHint(m)},e.defineExtension("showHint",function(k){k=s(this,this.getCursor("st
` ;k.replaceSelection(L+L,null),v(k,-1),m=k.listSelections();for(var O=0;O<m.length;O++){var R=m[O].head.line;k.indentLine(R,null,!0),k.indentLine(R+1,null,!0)}})}function v(k,T){for(var S=[],m=k.listSelections(),w=0,x=0;x<m.length;x++){var L=m[x];L.head==k.getCursor()&&(w=x);var O=L.head.ch||T>0?{line:L.head.line,ch:L.head.ch+T}:{line:L.head.line-1};S.push({anchor:O,head:O})}k.setSelections(S,w)}function y(k){var T=e.cmpPos(k.anchor,k.head)>0;return{anchor:new r(k.anchor.line,k.anchor.ch+(T?-1:1)),head:new r(k.head.line,k.head.ch+(T?1:-1))}}function b(k,T){var S=l(k);if(!S||k.getOption("disableInput"))return e.Pass;var m=n(S,"pairs"),w=m.indexOf(T);if(w==-1)return e.Pass;for(var x=n(S,"closeBefore"),L=n(S,"triples"),O=m.charAt(w+1)==T,R=k.listSelections(),M=w%2==0,q,z=0;z<R.length;z++){var B=R[z],Q=B.head,P,he=k.getRange(Q,r(Q.line,Q.ch+1));if(M&&!B.empty())P="surround";else if((O||!M)&&he==T)O&&_(k,Q)?P="both":L.indexOf(T)>=0&&k.getRange(Q,r(Q.line,Q.ch+3))==T+T+T?P="skipThree":P="skip";else if(O&&Q.ch>1&&L.indexOf(T)>=0&&k.getRange(r(Q.line,Q.ch-2),Q)==T+T){if(Q.ch>2&&/ \b string/.test(k.getTokenTypeAt(r(Q.line,Q.ch-2))))return e.Pass;P="addFour"}else if(O){var xe=Q.ch==0?" ":k.getRange(r(Q.line,Q.ch-1),Q);if(!e.isWordChar(he)&&xe!=T&&!e.isWordChar(xe))P="both";else return e.Pass}else if(M&&(he.length===0||/ \s /.test(he)||x.indexOf(he)>-1))P="both";else return e.Pass;if(!q)q=P;else if(q!=P)return e.Pass}var ge=w%2?m.charAt(w-1):T,Fe=w%2?T:m.charAt(w+1);k.operation(function(){if(q=="skip")v(k,1);else if(q=="skipThree")v(k,3);else if(q=="surround"){for(var Le=k.getSelections(),He=0;He<Le.length;He++)Le[He]=ge+Le[He]+Fe;k.replaceSelections(Le,"around"),Le=k.listSelections().slice();for(var He=0;He<Le.length;He++)Le[He]=y(Le[He]);k.setSelections(Le)}else q=="both"?(k.replaceSelection(ge+Fe,null),k.triggerElectric(ge+Fe),v(k,-1)):q=="addFour"&&(k.replaceSelection(ge+ge+ge+ge,"before"),v(k,1))})}function D(k,T){var S=k.getRange(r(T.line,T.ch-1),r(T.line,T.ch+1));return S.length==2?S:null}function _(k,T){var S=k.getTokenAt(r(T.line,T.ch+1));return/ \b string/.test(S.type)&&S.start==T.ch&&(T.ch==0||!/ \b string/.test(k.getTokenTypeAt(T)))}})});var FO=G((LV,IV)=>{(function(e){typeof LV=="object"&&typeof IV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";function t(r){return function(n,i){var o=i.line,s=n.getLine(o);function l(D){for(var _,k=i.ch,T=0;;){var S=k<=0?-1:s.lastIndexOf(D[0],k-1);if(S==-1){if(T==1)break;T=1,k=s.length;continue}if(T==1&&S<i.ch)break;if(_=n.getTokenTypeAt(e.Pos(o,S+1)),!/^(comment|string)/.test(_))return{ch:S+1,tokenType:_,pair:D};k=S-1}}function d(D){var _=1,k=n.lastLine(),T,S=D.ch,m;e:for(var w=o;w<=k;++w)for(var x=n.getLine(w),L=w==o?S:0;;){var O=x.indexOf(D.pair[0],L),R=x.indexOf(D.pair[1],L);if(O<0&&(O=x.length),R<0&&(R=x.length),L=Math.min(O,R),L==x.length)break;if(n.getTokenTypeAt(e.Pos(w,L+1))==D.tokenType){if(L==O)++_;else if(!--_){T=w,m=L;break e}}++L}return T==null||o==T?null:{from:e.Pos(o,S),to:e.Pos(T,m)}}for(var h=[],v=0;v<r.length;v++){var y=l(r[v]);y&&h.push(y)}h.sort(function(D,_){return D.ch-_.ch});for(var v=0;v<h.length;v++){var b=d(h[v]);if(b)return b}return null}}e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(r,n){function i(v){if(v<r.firstLine()||v>r.lastLine())return null;var y=r.getTokenAt(e.Pos(v,1));if(/ \S /.test(y.string)||(y=r.getTokenAt(e.Pos(v,y.end+1))),y.type!="keyword"||y.string!="import")return null;for(var b=v,D=Math.min(r.lastLine(),v+10);b<=D;++b){var _=r.getLine(b),k=_.indexOf(";");if(k!=-1)return{startCh:y.end,end:e.Pos(b,k)}}}var o=n.line,s=i(o),l;if(!s||i(o-1)||(l=i(o-2))&&l.end.line==o-1)return null;for(var d=s.end;;){var h=i(d.line+1);if(h==null)break;d=h.end}return{from:r.clipPos(e.Pos(o,s.startCh+1)),to:d}}),e.registerHelper("fold","include",function(r,n){function i(h){if(h<r.firstLine()||h>r.lastLine())return null;var v=r.getTokenAt(e.Pos(h,1));if(/ \S /.test(
` +M}x=x*2,S.lastIndex=m.ch;var q=S.exec(w);if(q){var z=w.slice(0,q.index).split( `
` ),B=q[0].split( `
` ),Q=m.line+z.length-1,P=z[z.length-1].length;return{from:t(Q,P),to:t(Q+B.length-1,B.length==1?P+B[0].length:B[B.length-1].length),match:q}}}}function l(T,S,m){for(var w,x=0;x<=T.length;){S.lastIndex=x;var L=S.exec(T);if(!L)break;var O=L.index+L[0].length;if(O>T.length-m)break;(!w||O>w.index+w[0].length)&&(w=L),x=L.index+1}return w}function d(T,S,m){S=n(S,"g");for(var w=m.line,x=m.ch,L=T.firstLine();w>=L;w--,x=-1){var O=T.getLine(w),R=l(O,S,x<0?0:O.length-x);if(R)return{from:t(w,R.index),to:t(w,R.index+R[0].length),match:R}}}function h(T,S,m){if(!i(S))return d(T,S,m);S=n(S,"gm");for(var w,x=1,L=T.getLine(m.line).length-m.ch,O=m.line,R=T.firstLine();O>=R;){for(var M=0;M<x&&O>=R;M++){var q=T.getLine(O--);w=w==null?q:q+ `
` +w}x*=2;var z=l(w,S,L);if(z){var B=w.slice(0,z.index).split( `
` ),Q=z[0].split( `
` ),P=O+B.length,he=B[B.length-1].length;return{from:t(P,he),to:t(P+Q.length-1,Q.length==1?he+Q[0].length:Q[Q.length-1].length),match:z}}}}var v,y;String.prototype.normalize?(v=function(T){return T.normalize("NFD").toLowerCase()},y=function(T){return T.normalize("NFD")}):(v=function(T){return T.toLowerCase()},y=function(T){return T});function b(T,S,m,w){if(T.length==S.length)return m;for(var x=0,L=m+Math.max(0,T.length-S.length);;){if(x==L)return x;var O=x+L>>1,R=w(T.slice(0,O)).length;if(R==m)return O;R>m?L=O:x=O+1}}function D(T,S,m,w){if(!S.length)return null;var x=w?v:y,L=x(S).split(/ \r | \n \r ?/);e:for(var O=m.line,R=m.ch,M=T.lastLine()+1-L.length;O<=M;O++,R=0){var q=T.getLine(O).slice(R),z=x(q);if(L.length==1){var B=z.indexOf(L[0]);if(B==-1)continue e;var m=b(q,z,B,x)+R;return{from:t(O,b(q,z,B,x)+R),to:t(O,b(q,z,B+L[0].length,x)+R)}}else{var Q=z.length-L[0].length;if(z.slice(Q)!=L[0])continue e;for(var P=1;P<L.length-1;P++)if(x(T.getLine(O+P))!=L[P])continue e;var he=T.getLine(O+L.length-1),xe=x(he),ge=L[L.length-1];if(xe.slice(0,ge.length)!=ge)continue e;return{from:t(O,b(q,z,Q,x)+R),to:t(O+L.length-1,b(he,xe,ge.length,x))}}}}function _(T,S,m,w){if(!S.length)return null;var x=w?v:y,L=x(S).split(/ \r | \n \r ?/);e:for(var O=m.line,R=m.ch,M=T.firstLine()-1+L.length;O>=M;O--,R=-1){var q=T.getLine(O);R>-1&&(q=q.slice(0,R));var z=x(q);if(L.length==1){var B=z.lastIndexOf(L[0]);if(B==-1)continue e;return{from:t(O,b(q,z,B,x)),to:t(O,b(q,z,B+L[0].length,x))}}else{var Q=L[L.length-1];if(z.slice(0,Q.length)!=Q)continue e;for(var P=1,m=O-L.length+1;P<L.length-1;P++)if(x(T.getLine(m+P))!=L[P])continue e;var he=T.getLine(O+1-L.length),xe=x(he);if(xe.slice(xe.length-L[0].length)!=L[0])continue e;return{from:t(O+1-L.length,b(he,xe,he.length-L[0].length,x)),to:t(O,b(q,z,Q.length,x))}}}}function k(T,S,m,w){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=T,m=m?T.clipPos(m):t(0,0),this.pos={from:m,to:m};var x;typeof w=="object"?x=w.caseFold:(x=w,w=null),typeof S=="string"?(x==null&&(x=!1),this.matches=function(L,O){return(L?_:D)(T,S,O,x)}):(S=n(S,"gm"),!w||w.multiline!==!1?this.matches=function(L,O){return(L?h:s)(T,S,O)}:this.matches=function(L,O){return(L?d:o)(T,S,O)})}k.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(T){var S=this.doc.clipPos(T?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(S=t(S.line,S.ch),T?(S.ch--,S.ch<0&&(S.line--,S.ch=(this.doc.getLine(S.line)||"").length)):(S.ch++,S.ch>(this.doc.getLine(S.line)||"").length&&(S.ch=0,S.line++)),e.cmpPos(S,this.doc.clipPos(S))!=0))return this.atOccurrence=!1;var m=this.matches(T,S);if(this.afterEmptyMatch=m&&e.cmpPos(m.from,m.to)==0,m)return this.pos=m,this.atOccurrence=!0,this.pos.match||!0;var w=t(T?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:w,to:w},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(T,S){if(!!this.atOccurrence){var m=e.splitLines(T);this.doc.replaceRange(m,this.pos.from,this.pos.to,S),this.pos.to=t(this.pos.from.line+m.length-1,m[m.length-1].length+(m.length==1?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(T,S,m){return new k(this.doc,T,S,m)}),e.defineDocExtension("getSearchCursor",function(T,S,m){return new k(this,T,S,m)}),e.defineExtension("selectMatches",function(T,S){for(var m=[],w=this.getSearchCursor(T,this.getCursor("from"),S);w.findNext()&&!(e.cmpPos(w.to(),this.getCursor("to"))>0);)m.push({anchor:w.from(),head:w.to()});m.length&&this.setSelections(m,0)})})});var Vp=G((QV,BV)=>{(function(e){typeof QV=="object"&&typeof BV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){function t(n,i,o){var s=n.getWrapperElement(),l;return l=s.appendChild(document.createElement("div")),o?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof i=="string"?l.innerHTML=i:l.appendChild(i),e.addClass(s,"dialog-o
` ,q,null,"+insertLine"),m.indentLine(q.line,null,!0),L.push({head:q,anchor:q}),O=M.line+1}}m.setSelections(L)}),m.execCommand("indentAuto")}t.insertLineAfter=function(m){return o(m,!1)},t.insertLineBefore=function(m){return o(m,!0)};function s(m,w){for(var x=w.ch,L=x,O=m.getLine(w.line);x&&e.isWordChar(O.charAt(x-1));)--x;for(;L<O.length&&e.isWordChar(O.charAt(L));)++L;return{from:r(w.line,x),to:r(w.line,L),word:O.slice(x,L)}}t.selectNextOccurrence=function(m){var w=m.getCursor("from"),x=m.getCursor("to"),L=m.state.sublimeFindFullWord==m.doc.sel;if(e.cmpPos(w,x)==0){var O=s(m,w);if(!O.word)return;m.setSelection(O.from,O.to),L=!0}else{var R=m.getRange(w,x),M=L?new RegExp(" \\ b"+R+" \\ b"):R,q=m.getSearchCursor(M,x),z=q.findNext();if(z||(q=m.getSearchCursor(M,r(m.firstLine(),0)),z=q.findNext()),!z||d(m.listSelections(),q.from(),q.to()))return;m.addSelection(q.from(),q.to())}L&&(m.state.sublimeFindFullWord=m.doc.sel)},t.skipAndSelectNextOccurrence=function(m){var w=m.getCursor("anchor"),x=m.getCursor("head");t.selectNextOccurrence(m),e.cmpPos(w,x)!=0&&m.doc.setSelections(m.doc.listSelections().filter(function(L){return L.anchor!=w||L.head!=x}))};function l(m,w){for(var x=m.listSelections(),L=[],O=0;O<x.length;O++){var R=x[O],M=m.findPosV(R.anchor,w,"line",R.anchor.goalColumn),q=m.findPosV(R.head,w,"line",R.head.goalColumn);M.goalColumn=R.anchor.goalColumn!=null?R.anchor.goalColumn:m.cursorCoords(R.anchor,"div").left,q.goalColumn=R.head.goalColumn!=null?R.head.goalColumn:m.cursorCoords(R.head,"div").left;var z={anchor:M,head:q};L.push(R),L.push(z)}m.setSelections(L)}t.addCursorToPrevLine=function(m){l(m,-1)},t.addCursorToNextLine=function(m){l(m,1)};function d(m,w,x){for(var L=0;L<m.length;L++)if(e.cmpPos(m[L].from(),w)==0&&e.cmpPos(m[L].to(),x)==0)return!0;return!1}var h="(){}[]";function v(m){for(var w=m.listSelections(),x=[],L=0;L<w.length;L++){var O=w[L],R=O.head,M=m.scanForBracket(R,-1);if(!M)return!1;for(;;){var q=m.scanForBracket(R,1);if(!q)return!1;if(q.ch==h.charAt(h.indexOf(M.ch)+1)){var z=r(M.pos.line,M.pos.ch+1);if(e.cmpPos(z,O.from())==0&&e.cmpPos(q.pos,O.to())==0){if(M=m.scanForBracket(M.pos,-1),!M)return!1}else{x.push({anchor:z,head:q.pos});break}}R=r(q.pos.line,q.pos.ch+1)}}return m.setSelections(x),!0}t.selectScope=function(m){v(m)||m.execCommand("selectAll")},t.selectBetweenBrackets=function(m){if(!v(m))return e.Pass};function y(m){return m?/ \b punctuation \b /.test(m)?m:void 0:null}t.goToBracket=function(m){m.extendSelectionsBy(function(w){var x=m.scanForBracket(w.head,1,y(m.getTokenTypeAt(w.head)));if(x&&e.cmpPos(x.pos,w.head)!=0)return x.pos;var L=m.scanForBracket(w.head,-1,y(m.getTokenTypeAt(r(w.head.line,w.head.ch+1))));return L&&r(L.pos.line,L.pos.ch+1)||w.head})},t.swapLineUp=function(m){if(m.isReadOnly())return e.Pass;for(var w=m.listSelections(),x=[],L=m.firstLine()-1,O=[],R=0;R<w.length;R++){var M=w[R],q=M.from().line-1,z=M.to().line;O.push({anchor:r(M.anchor.line-1,M.anchor.ch),head:r(M.head.line-1,M.head.ch)}),M.to().ch==0&&!M.empty()&&--z,q>L?x.push(q,z):x.length&&(x[x.length-1]=z),L=z}m.operation(function(){for(var B=0;B<x.length;B+=2){var Q=x[B],P=x[B+1],he=m.getLine(Q);m.replaceRange("",r(Q,0),r(Q+1,0),"+swapLine"),P>m.lastLine()?m.replaceRange( `
` +he,r(m.lastLine()),null,"+swapLine"):m.replaceRange(he+ `
` ,r(P,0),null,"+swapLine")}m.setSelections(O),m.scrollIntoView()})},t.swapLineDown=function(m){if(m.isReadOnly())return e.Pass;for(var w=m.listSelections(),x=[],L=m.lastLine()+1,O=w.length-1;O>=0;O--){var R=w[O],M=R.to().line+1,q=R.from().line;R.to().ch==0&&!R.empty()&&M--,M<L?x.push(M,q):x.length&&(x[x.length-1]=q),L=q}m.operation(function(){for(var z=x.length-2;z>=0;z-=2){var B=x[z],Q=x[z+1],P=m.getLine(B);B==m.lastLine()?m.replaceRange("",r(B-1),r(B),"+swapLine"):m.replaceRange("",r(B,0),r(B+1,0),"+swapLine"),m.replaceRange(P+ `
` ,r(Q,0),null,"+swapLine")}m.scrollIntoView()})},t.toggleCommentIndented=function(m){m.toggleComment({indent:!0})},t.joinLines=function(m){for(var w=m.listSelections(),x=[],L=0;L<w.length;L++){for(var O=w[L],R=O.from(),M=R.line,q=O.to().line;L<w.length-1&&w[L+1].from().line==q;)q=w[++L].to().line;x.push({start:M,end:q,anchor:!O.empty()&&R})}m.operation(function(){for(var z=0,B=[],Q=0;Q<x.length;Q++){for(var P=x[Q],he=P.anchor&&r(P.anchor.line-z,P.anchor.ch),xe,ge=P.start;ge<=P.end;ge++){var Fe=ge-z;ge==P.end&&(xe=r(Fe,m.getLine(Fe).length+1)),Fe<m.lastLine()&&(m.replaceRange(" ",r(Fe),r(Fe+1,/^ \s */.exec(m.getLine(Fe+1))[0].length)),++z)}B.push({anchor:he||xe,head:xe})}m.setSelections(B,0)})},t.duplicateLine=function(m){m.operation(function(){for(var w=m.listSelections().length,x=0;x<w;x++){var L=m.listSelections()[x];L.empty()?m.replaceRange(m.getLine(L.head.line)+ `
` ,r(L.head.line,0)):m.replaceRange(m.getRange(L.from(),L.to()),L.from())}m.scrollIntoView()})};function b(m,w,x){if(m.isReadOnly())return e.Pass;for(var L=m.listSelections(),O=[],R,M=0;M<L.length;M++){var q=L[M];if(!q.empty()){for(var z=q.from().line,B=q.to().line;M<L.length-1&&L[M+1].from().line==B;)B=L[++M].to().line;L[M].to().ch||B--,O.push(z,B)}}O.length?R=!0:O.push(m.firstLine(),m.lastLine()),m.operation(function(){for(var Q=[],P=0;P<O.length;P+=2){var he=O[P],xe=O[P+1],ge=r(he,0),Fe=r(xe),Le=m.getRange(ge,Fe,!1);w?Le.sort(function(He,Xe){return He<Xe?-x:He==Xe?0:x}):Le.sort(function(He,Xe){var Ve=He.toUpperCase(),At=Xe.toUpperCase();return Ve!=At&&(He=Ve,Xe=At),He<Xe?-x:He==Xe?0:x}),m.replaceRange(Le,ge,Fe),R&&Q.push({anchor:ge,head:r(xe+1,0)})}R&&m.setSelections(Q,0)})}t.sortLines=function(m){b(m,!0,1)},t.reverseSortLines=function(m){b(m,!0,-1)},t.sortLinesInsensitive=function(m){b(m,!1,1)},t.reverseSortLinesInsensitive=function(m){b(m,!1,-1)},t.nextBookmark=function(m){var w=m.state.sublimeBookmarks;if(w)for(;w.length;){var x=w.shift(),L=x.find();if(L)return w.push(x),m.setSelection(L.from,L.to)}},t.prevBookmark=function(m){var w=m.state.sublimeBookmarks;if(w)for(;w.length;){w.unshift(w.pop());var x=w[w.length-1].find();if(!x)w.pop();else return m.setSelection(x.from,x.to)}},t.toggleBookmark=function(m){for(var w=m.listSelections(),x=m.state.sublimeBookmarks||(m.state.sublimeBookmarks=[]),L=0;L<w.length;L++){for(var O=w[L].from(),R=w[L].to(),M=w[L].empty()?m.findMarksAt(O):m.findMarks(O,R),q=0;q<M.length;q++)if(M[q].sublimeBookmark){M[q].clear();for(var z=0;z<x.length;z++)x[z]==M[q]&&x.splice(z--,1);break}q==M.length&&x.push(m.markText(O,R,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(m){var w=m.state.sublimeBookmarks;if(w)for(var x=0;x<w.length;x++)w[x].clear();w.length=0},t.selectBookmarks=function(m){var w=m.state.sublimeBookmarks,x=[];if(w)for(var L=0;L<w.length;L++){var O=w[L].find();O?x.push({anchor:O.from,head:O.to}):w.splice(L--,0)}x.length&&m.setSelections(x,0)};function D(m,w){m.operation(function(){for(var x=m.listSelections(),L=[],O=[],R=0;R<x.length;R++){var M=x[R];M.empty()?(L.push(R),O.push("")):O.push(w(m.getRange(M.from(),M.to())))}m.replaceSelections(O,"around","case");for(var R=L.length-1,q;R>=0;R--){var M=x[L[R]];if(!(q&&e.cmpPos(M.head,q)>0)){var z=s(m,M.head);q=z.from,m.replaceRange(w(z.word),z.from,z.to)}}})}t.smartBackspace=function(m){if(m.somethingSelected())return e.Pass;m.operation(function(){for(var w=m.listSelections(),x=m.getOption("indentUnit"),L=w.length-1;L>=0;L--){var O=w[L].head,R=m.getRange({line:O.line,ch:0},O),M=e.countColumn(R,null,m.getOption("tabSize")),q=m.findPosH(O,-1,"char",!1);if(R&&!/ \S /.test(R)&&M%x==0){var z=new r(O.line,e.findColumn(R,M-x,x));z.ch!=O.ch&&(q=z)}m.replaceRange("",q,O,"+delete")}})},t.delLineRight=function(m){m.operation(function(){for(var w=m.listSelections(),x=w.length-1;x>=0;x--)m.replaceRange("",w[x].anchor,r(w[x].to().line),"+delete");m.scrollIntoView()})},t.upcaseAtCursor=function(m){D(m,function(w){return w.toUpperCase()})},t.downcaseAtCursor=function(m){D(m,function(w){return w.toLowerCase()})},t.setSublimeMark=function(m){m.state.sublimeMark&&m.state.sublimeMark.clear(),m.state.sublimeMark=m.setBookmark(m.getCursor())},t.selectToSublimeMark=function(m){var w=m.state.sublimeMark&&m.state.sublimeMark.find();w&&m.setSelection(m.getCursor(),w)},t.deleteToSublimeMark=function(m){var w=m.state.sublimeMark&&m.state.sublimeMark.find();if(w){var x=m.getCursor(),L=w;if(e.cmpPos(x,L)>0){var O=L;L=x,x=O}m.state.sublimeKilled=m.getRange(x,L),m.replaceRange("",x,L)}},t.swapWithSublimeMark=function(m){var w=m.state.sublimeMark&&m.state.sublimeMark.find();w&&(m.state.sublimeMark.clear(),m.state.sublimeMark=m.setBookmark(m.getCursor()),m.setCursor(w))},t.sublimeYank=function(m){m.state.sublimeKilled!=null&&m.replaceSelection(m.state.sublimeKilled,null,"paste")},t.showInCenter=function(m){var w=m.cursorCoords(null,"local");m.scrollTo(null,(w.top+w.bottom)/2-m.getScrollInfo().clientHeight/2)};function _(m){var w=m.getCursor("from"),x=m
` ).indexOf(R)>-1)return!1;var xe=q.lastIndexOf(O,d.ch),ge=xe==-1?-1:q.slice(0,d.ch).indexOf(R,xe+O.length);if(xe!=-1&&ge!=-1&&ge+R.length!=d.ch)return!1;ge=B.indexOf(R,h.ch);var Fe=B.slice(h.ch).lastIndexOf(O,ge-h.ch);return xe=ge==-1||Fe==-1?-1:h.ch+Fe,ge!=-1&&xe!=-1&&xe!=h.ch?!1:(y.operation(function(){y.replaceRange("",n(D,Q-(S&&B.slice(Q-S.length,Q)==S?S.length:0)),n(D,Q+R.length));var Le=z+O.length;if(S&&q.slice(Le,Le+S.length)==S&&(Le+=S.length),y.replaceRange("",n(_,z),n(_,Le)),M)for(var He=_+1;He<=D;++He){var Xe=y.getLine(He),Ve=Xe.indexOf(M);if(!(Ve==-1||r.test(Xe.slice(0,Ve)))){var At=Ve+M.length;S&&Xe.slice(At,At+S.length)==S&&(At+=S.length),y.replaceRange("",n(He,Ve),n(He,At))}}}),!0)})})});var UO=G((ZV, $ V)=>{(function(e){typeof ZV=="object"&&typeof $ V=="object"?e(Wt(),qp(),Vp()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("search",{bottom:!1});function t(O,R){return typeof O=="string"?O=new RegExp(O.replace(/[ \- \[ \] \/ \{ \} \( \) \* \+ \? \. \\ \^ \$ \| ]/g," \\ $ &"),R?"gi":"g"):O.global||(O=new RegExp(O.source,O.ignoreCase?"gi":"g")),{token:function(M){O.lastIndex=M.pos;var q=O.exec(M.string);if(q&&q.index==M.pos)return M.pos+=q[0].length||1,"searching";q?M.pos=q.index:M.skipToEnd()}}}function r(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(O){return O.state.search||(O.state.search=new r)}function i(O){return typeof O=="string"&&O==O.toLowerCase()}function o(O,R,M){return O.getSearchCursor(R,M,{caseFold:i(R),multiline:!0})}function s(O,R,M,q,z){O.openDialog(R,q,{value:M,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){_(O)},onKeyDown:z,bottom:O.options.search.bottom})}function l(O,R,M,q,z){O.openDialog?O.openDialog(R,z,{value:q,selectValueOnOpen:!0,bottom:O.options.search.bottom}):z(prompt(M,q))}function d(O,R,M,q){O.openConfirm?O.openConfirm(R,q):confirm(M)&&q[0]()}function h(O){return O.replace(/ \\ ([nrt \\ ])/g,function(R,M){return M=="n"? `
` :M=="r"?" \r ":M=="t"?" ":M==" \\ "?" \\ ":R})}function v(O){var R=O.match(/^ \/ (.*) \/ ([a-z]*) $ /);if(R)try{O=new RegExp(R[1],R[2].indexOf("i")==-1?"":"i")}catch(M){}else O=h(O);return(typeof O=="string"?O=="":O.test(""))&&(O=/x^/),O}function y(O,R,M){R.queryText=M,R.query=v(M),O.removeOverlay(R.overlay,i(R.query)),R.overlay=t(R.query,i(R.query)),O.addOverlay(R.overlay),O.showMatchesOnScrollbar&&(R.annotate&&(R.annotate.clear(),R.annotate=null),R.annotate=O.showMatchesOnScrollbar(R.query,i(R.query)))}function b(O,R,M,q){var z=n(O);if(z.query)return D(O,R);var B=O.getSelection()||z.lastQuery;if(B instanceof RegExp&&B.source=="x^"&&(B=null),M&&O.openDialog){var Q=null,P=function(he,xe){e.e_stop(xe),!!he&&(he!=z.queryText&&(y(O,z,he),z.posFrom=z.posTo=O.getCursor()),Q&&(Q.style.opacity=1),D(O,xe.shiftKey,function(ge,Fe){var Le;Fe.line<3&&document.querySelector&&(Le=O.display.wrapper.querySelector(".CodeMirror-dialog"))&&Le.getBoundingClientRect().bottom-4>O.cursorCoords(Fe,"window").top&&((Q=Le).style.opacity=.4)}))};s(O,T(O),B,P,function(he,xe){var ge=e.keyName(he),Fe=O.getOption("extraKeys"),Le=Fe&&Fe[ge]||e.keyMap[O.getOption("keyMap")][ge];Le=="findNext"||Le=="findPrev"||Le=="findPersistentNext"||Le=="findPersistentPrev"?(e.e_stop(he),y(O,n(O),xe),O.execCommand(Le)):(Le=="find"||Le=="findPersistent")&&(e.e_stop(he),P(xe,he))}),q&&B&&(y(O,z,B),D(O,R))}else l(O,T(O),"Search for:",B,function(he){he&&!z.query&&O.operation(function(){y(O,z,he),z.posFrom=z.posTo=O.getCursor(),D(O,R)})})}function D(O,R,M){O.operation(function(){var q=n(O),z=o(O,q.query,R?q.posFrom:q.posTo);!z.find(R)&&(z=o(O,q.query,R?e.Pos(O.lastLine()):e.Pos(O.firstLine(),0)),!z.find(R))||(O.setSelection(z.from(),z.to()),O.scrollIntoView({from:z.from(),to:z.to()},20),q.posFrom=z.from(),q.posTo=z.to(),M&&M(z.from(),z.to()))})}function _(O){O.operation(function(){var R=n(O);R.lastQuery=R.query,!!R.query&&(R.query=R.queryText=null,O.removeOverlay(R.overlay),R.annotate&&(R.annotate.clear(),R.annotate=null))})}function k(O,R){var M=O?document.createElement(O):document.createDocumentFragment();for(var q in R)M[q]=R[q];for(var z=2;z<arguments.length;z++){var B=arguments[z];M.appendChild(typeof B=="string"?document.createTextNode(B):B)}return M}function T(O){var R=k("label",{className:"CodeMirror-search-label"},O.phrase("Search:"),k("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return R.setAttribute("for","CodeMirror-search-field"),k("",null,R," ",k("span",{style:"color: #666",className:"CodeMirror-search-hint"},O.phrase("(Use /re/ syntax for regexp search)")))}function S(O){return k("",null," ",k("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",k("span",{style:"color: #666",className:"CodeMirror-search-hint"},O.phrase("(Use /re/ syntax for regexp search)")))}function m(O){return k("",null,k("span",{className:"CodeMirror-search-label"},O.phrase("With:"))," ",k("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function w(O){return k("",null,k("span",{className:"CodeMirror-search-label"},O.phrase("Replace?"))," ",k("button",{},O.phrase("Yes"))," ",k("button",{},O.phrase("No"))," ",k("button",{},O.phrase("All"))," ",k("button",{},O.phrase("Stop")))}function x(O,R,M){O.operation(function(){for(var q=o(O,R);q.findNext();)if(typeof R!="string"){var z=O.getRange(q.from(),q.to()).match(R);q.replace(M.replace(/ \$ ( \d )/g,function(B,Q){return z[Q]}))}else q.replace(M)})}function L(O,R){if(!O.getOption("readOnly")){var M=O.getSelection()||n(O).lastQuery,q=R?O.phrase("Replace all:"):O.phrase("Replace:"),z=k("",null,k("span",{className:"CodeMirror-search-label"},q),S(O));l(O,z,q,M,function(B){!B||(B=v(B),l(O,m(O),O.phrase("Replace with:"),"",function(Q){if(Q=h(Q),R)x(O,B,Q);else{_(O);var P=o(O,B,O.getCursor("from")),he=function(){var ge=P.from(),Fe;!(Fe=P.findNext())&&(P=o(O,B),!(Fe=P.findNext())||ge&&P.from().line==ge.line&&P.from().ch==ge.ch)||(O.setSelection(P.from(),P.to()),O.scrollIntoView({from:P.from(),to:P.to()}),d(O,w(O),O.phrase("Replace?"),[function()
2021-07-31 23:49:48 -07:00
` , ` \ r
2023-08-22 14:06:59 -07:00
` ," \r "];var on;(function(F){function Y(re,ue,Ze,Ut){return new un(re,ue,Ze,Ut)}F.create=Y;function J(re){var ue=re;return!!(ee.defined(ue)&&ee.string(ue.uri)&&(ee.undefined(ue.languageId)||ee.string(ue.languageId))&&ee.uinteger(ue.lineCount)&&ee.func(ue.getText)&&ee.func(ue.positionAt)&&ee.func(ue.offsetAt))}F.is=J;function V(re,ue){for(var Ze=re.getText(),Ut=A(ue,function(sa,Cn){var la=sa.range.start.line-Cn.range.start.line;return la===0?sa.range.start.character-Cn.range.start.character:la}),Rt=Ze.length,vn=Ut.length-1;vn>=0;vn--){var Rr=Ut[vn],jr=re.offsetAt(Rr.range.start),et=re.offsetAt(Rr.range.end);if(et<=Rt)Ze=Ze.substring(0,jr)+Rr.newText+Ze.substring(et,Ze.length);else throw new Error("Overlapping edit");Rt=jr}return Ze}F.applyEdits=V;function A(re,ue){if(re.length<=1)return re;var Ze=re.length/2|0,Ut=re.slice(0,Ze),Rt=re.slice(Ze);A(Ut,ue),A(Rt,ue);for(var vn=0,Rr=0,jr=0;vn<Ut.length&&Rr<Rt.length;){var et=ue(Ut[vn],Rt[Rr]);et<=0?re[jr++]=Ut[vn++]:re[jr++]=Rt[Rr++]}for(;vn<Ut.length;)re[jr++]=Ut[vn++];for(;Rr<Rt.length;)re[jr++]=Rt[Rr++];return re}})(on=t.TextDocument||(t.TextDocument={}));var un=function(){function F(Y,J,V,A){this._uri=Y,this._languageId=J,this._version=V,this._content=A,this._lineOffsets=void 0}return Object.defineProperty(F.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),F.prototype.getText=function(Y){if(Y){var J=this.offsetAt(Y.start),V=this.offsetAt(Y.end);return this._content.substring(J,V)}return this._content},F.prototype.update=function(Y,J){this._content=Y.text,this._version=J,this._lineOffsets=void 0},F.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var Y=[],J=this._content,V=!0,A=0;A<J.length;A++){V&&(Y.push(A),V=!1);var re=J.charAt(A);V=re===" \r "||re=== `
` ,re===" \r "&&A+1<J.length&&J.charAt(A+1)=== `
` &&A++}V&&J.length>0&&Y.push(J.length),this._lineOffsets=Y}return this._lineOffsets},F.prototype.positionAt=function(Y){Y=Math.max(Math.min(Y,this._content.length),0);var J=this.getLineOffsets(),V=0,A=J.length;if(A===0)return s.create(0,Y);for(;V<A;){var re=Math.floor((V+A)/2);J[re]>Y?A=re:V=re+1}var ue=V-1;return s.create(ue,Y-J[ue])},F.prototype.offsetAt=function(Y){var J=this.getLineOffsets();if(Y.line>=J.length)return this._content.length;if(Y.line<0)return 0;var V=J[Y.line],A=Y.line+1<J.length?J[Y.line+1]:this._content.length;return Math.max(Math.min(V+Y.character,A),V)},Object.defineProperty(F.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),F}(),ee;(function(F){var Y=Object.prototype.toString;function J(et){return typeof et!="undefined"}F.defined=J;function V(et){return typeof et=="undefined"}F.undefined=V;function A(et){return et===!0||et===!1}F.boolean=A;function re(et){return Y.call(et)==="[object String]"}F.string=re;function ue(et){return Y.call(et)==="[object Number]"}F.number=ue;function Ze(et,sa,Cn){return Y.call(et)==="[object Number]"&&sa<=et&&et<=Cn}F.numberRange=Ze;function Ut(et){return Y.call(et)==="[object Number]"&&-2147483648<=et&&et<=2147483647}F.integer=Ut;function Rt(et){return Y.call(et)==="[object Number]"&&0<=et&&et<=2147483647}F.uinteger=Rt;function vn(et){return Y.call(et)==="[object Function]"}F.func=vn;function Rr(et){return et!==null&&typeof et=="object"}F.objectLiteral=Rr;function jr(et,sa){return Array.isArray(et)&&et.every(sa)}F.typedArray=jr})(ee||(ee={}))})});var aU=G(BO=>{"use strict";Object.defineProperty(BO,"__esModule",{value:!0});var iU=class{constructor(t){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{let r=this._sourceText.charAt(this._pos);return this._pos++,r},this.eat=r=>{if(this._testNextCharacter(r))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=r=>{let n=this._testNextCharacter(r),i=!1;for(n&&(i=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(r),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[ \s \u 00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=r=>{this._pos=r},this.match=(r,n=!0,i=!1)=>{let o=null,s=null;return typeof r=="string"?(s=new RegExp(r,i?"i":"g").test(this._sourceText.substr(this._pos,r.length)),o=r):r instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(r),o=s==null?void 0:s[0]),s!=null&&(typeof r=="string"||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos))?(n&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),s):!1},this.backUp=r=>{this._pos-=r},this.column=()=>this._pos,this.indentation=()=>{let r=this._sourceText.match(/ \s */),n=0;if(r&&r.length!==0){let i=r[0],o=0;for(;i.length>o;)i.charCodeAt(o)===9?n+=2:n++,o++}return n},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=t}_testNextCharacter(t){let r=this._sourceText.charAt(this._pos),n=!1;return typeof t=="string"?n=r===t:n=t instanceof RegExp?t.test(r):t(r),n}};BO.default=iU});var KO=G(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.p=ta.t=ta.butNot=ta.list=ta.opt=void 0;function nee(e){return{ofRule:e}}ta.opt=nee;function iee(e,t){return{ofRule:e,isList:!0,separator:t}}ta.list=iee;function aee(e,t){let r=e.match;return e.match=n=>{let i=!1;return r&&(i=r(n)),i&&t.every(o=>o.match&&!o.match(n))},e}ta.butNot=aee;function oee(e,t){return{style:t,match:r=>r.kind===e}}ta.t=oee;function uee(e,t){return{style:t||"punctuation",match:r=>r.kind==="Punctuation"&&r.value===e}}ta.p=uee});var HO=G(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.ParseRules=ju.LexRules=ju.isIgnored=void 0;var de=KO(),see=ht(),lee=e=>e===" "||e===" "||e===","||e=== `
` ||e===" \r "||e===" \u FEFF"||e===" \x A0";ju.isIgnored=lee;ju.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!| \$ | \( | \) | \. \. \. |:|=|&|@| \[ |]| \{ | \| | \} )/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?: \. [0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?: \\ """|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^" \\ ]| \\ (?:"| \/ | \\ |b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/};ju.ParseRules={Document:[(0,de.list)("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return see.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[kn("query"),(0,de.opt)(tr("def")),(0,de.opt)("VariableDefinitions"),(0,de.list)("Directive"),"SelectionSet"],Mutation:[kn("mutation"),(0,de.opt)(tr("def")),(0,de.opt)("VariableDefinitions"),(0,de.list)("Directive"),"SelectionSet"],Subscription:[kn("subscription"),(0,de.opt)(tr("def")),(0,de.opt)("VariableDefinitions"),(0,de.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,de.p)("("),(0,de.list)("VariableDefinition"),(0,de.p)(")")],VariableDefinition:["Variable",(0,de.p)(":"),"Type",(0,de.opt)("DefaultValue")],Variable:[(0,de.p)(" $ ","variable"),tr("variable")],DefaultValue:[(0,de.p)("="),"Value"],SelectionSet:[(0,de.p)("{"),(0,de.list)("Selection"),(0,de.p)("}")],Selection(e,t){return e.value==="..."?t.match(/[ \s \u 00a0,]*(on \b |@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[ \s \u 00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[tr("property"),(0,de.p)(":"),tr("qualifier"),(0,de.opt)("Arguments"),(0,de.list)("Directive"),(0,de.opt)("SelectionSet")],Field:[tr("property"),(0,de.opt)("Arguments"),(0,de.list)("Directive"),(0,de.opt)("SelectionSet")],Arguments:[(0,de.p)("("),(0,de.list)("Argument"),(0,de.p)(")")],Argument:[tr("attribute"),(0,de.p)(":"),"Value"],FragmentSpread:[(0,de.p)("..."),tr("def"),(0,de.list)("Directive")],InlineFragment:[(0,de.p)("..."),(0,de.opt)("TypeCondition"),(0,de.list)("Directive"),"SelectionSet"],FragmentDefinition:[kn("fragment"),(0,de.opt)((0,de.butNot)(tr("def"),[kn("on")])),"TypeCondition",(0,de.list)("Directive"),"SelectionSet"],TypeCondition:[kn("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case" $ ":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[(0,de.t)("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[(0,de.t)("Name","builtin")],NullValue:[(0,de.t)("Name","keyword")],EnumValue:[tr("string-2")],ListValue:[(0,de.p)("["),(0,de.list)("Value"),(0,de.p)("]")],ObjectValue:[(0,de.p)("{"),(0,de.list)("ObjectField"),(0,de.p)("}")],ObjectField:[tr("attribute"),(0,de.p)(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[(0,de.p)("["),"Type",(0,de.p)("]"),(0,de.opt)((0,de.p)("!"))],NonNullType:["NamedType",(0,de.opt)((0,de.p)("!"))],NamedType:[cee("atom")],Directive:[(0,de.p)("@","meta"),tr("meta"),(0,de.opt)("Arguments")],DirectiveDef:[kn("directive"),(0,de.p)("@","meta"),tr("meta"),(0,de.opt)("ArgumentsDef"),kn("on"),(0,de.list)("DirectiveLocation",(0,de.p)("|"))],InterfaceDef:[kn("interface"),tr("atom"),(0,de.opt)("Implements"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("FieldDef"),(0,de.p)("}")],Implements:[kn("implements"),(0,de.list)("NamedType",(0,de.p)("&"))],DirectiveLocation:[tr("string-2")],SchemaDef:[kn("schema"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("OperationTypeDef"),(0,de.p)("}")],OperationT
2022-10-04 15:02:37 +02:00
$1
2023-08-22 14:06:59 -07:00
} ` ,See=e=>{let t=e.type;return(0,kt.isCompositeType)(t)||(0,Vt.isListType)(t)&&(0,kt.isCompositeType)(t.ofType)||(0,Vt.isNonNullType)(t)&&((0,kt.isCompositeType)(t.ofType)||(0,Vt.isListType)(t.ofType)&&(0,kt.isCompositeType)(t.ofType.ofType))?oy:null};function kee(e,t,r){var n;if(t.parentType){let i=t.parentType,o=[];return"getFields"in i&&(o=(0,br.objectValues)(i.getFields())),(0,kt.isCompositeType)(i)&&o.push(kt.TypeNameMetaFieldDef),i===((n=r==null?void 0:r.schema)===null||n===void 0?void 0:n.getQueryType())&&o.push(kt.SchemaMetaFieldDef,kt.TypeMetaFieldDef),(0,br.hintList)(e,o.map((s,l)=>{var d;let h={sortText:String(l)+s.name,label:s.name,detail:String(s.type),documentation:(d=s.description)!==null&&d!==void 0?d:void 0,deprecated:Boolean(s.deprecationReason),isDeprecated:Boolean(s.deprecationReason),deprecationReason:s.deprecationReason,kind:tn.CompletionItemKind.Field,type:s.type},v=See(s);return v&&(h.insertText=s.name+v,h.insertTextFormat=tn.InsertTextFormat.Snippet,h.command=Vr.SuggestionCommand),h}))}return[]}function Oee(e,t,r,n){let i=(0,kt.getNamedType)(t.inputType),o= $ O(r,n,e).filter(s=>s.detail===i.name);if(i instanceof kt.GraphQLEnumType){let s=i.getValues();return(0,br.hintList)(e,s.map(l=>{var d;return{label:l.name,detail:String(i),documentation:(d=l.description)!==null&&d!==void 0?d:void 0,deprecated:Boolean(l.deprecationReason),isDeprecated:Boolean(l.deprecationReason),deprecationReason:l.deprecationReason,kind:tn.CompletionItemKind.EnumMember,type:i}}).concat(o))}else if(i===kt.GraphQLBoolean)return(0,br.hintList)(e,o.concat([{label:"true",detail:String(kt.GraphQLBoolean),documentation:"Not false.",kind:tn.CompletionItemKind.Variable,type:kt.GraphQLBoolean},{label:"false",detail:String(kt.GraphQLBoolean),documentation:"Not true.",kind:tn.CompletionItemKind.Variable,type:kt.GraphQLBoolean}]));return o}function wee(e,t,r,n,i){if(t.needsSeperator)return[];let o=r.getTypeMap(),s=(0,br.objectValues)(o).filter(Vt.isInterfaceType),l=s.map(({name:D})=>D),d=new Set;Qp(n,(D,_)=>{var k,T,S,m,w;if(_.name&&(_.kind===ke.RuleKinds.INTERFACE_DEF&&!l.includes(_.name)&&d.add(_.name),_.kind===ke.RuleKinds.NAMED_TYPE&&((k=_.prevState)===null||k===void 0?void 0:k.kind)===ke.RuleKinds.IMPLEMENTS)){if(i.interfaceDef){if((T=i.interfaceDef)===null||T===void 0?void 0:T.getInterfaces().find(({name:R})=>R===_.name))return;let L=r.getType(_.name),O=(S=i.interfaceDef)===null||S===void 0?void 0:S.toConfig();i.interfaceDef=new Vt.GraphQLInterfaceType(Object.assign(Object.assign({},O),{interfaces:[...O.interfaces,L||new Vt.GraphQLInterfaceType({name:_.name,fields:{}})]}))}else if(i.objectTypeDef){if((m=i.objectTypeDef)===null||m===void 0?void 0:m.getInterfaces().find(({name:R})=>R===_.name))return;let L=r.getType(_.name),O=(w=i.objectTypeDef)===null||w===void 0?void 0:w.toConfig();i.objectTypeDef=new Vt.GraphQLObjectType(Object.assign(Object.assign({},O),{interfaces:[...O.interfaces,L||new Vt.GraphQLInterfaceType({name:_.name,fields:{}})]}))}}});let h=i.interfaceDef||i.objectTypeDef,y=((h==null?void 0:h.getInterfaces())||[]).map(({name:D})=>D),b=s.concat([...d].map(D=>({name:D}))).filter(({name:D})=>D!==(h==null?void 0:h.name)&&!y.includes(D));return(0,br.hintList)(e,b.map(D=>{let _={label:D.name,kind:tn.CompletionItemKind.Interface,type:D};return(D==null?void 0:D.description)&&(_.documentation=D.description),_}))}function Nee(e,t,r,n){let i;if(t.parentType)if((0,kt.isAbstractType)(t.parentType)){let o=(0,kt.assertAbstractType)(t.parentType),s=r.getPossibleTypes(o),l=Object.create(null);s.forEach(d=>{d.getInterfaces().forEach(h=>{l[h.name]=h})}),i=s.concat((0,br.objectValues)(l))}else i=[t.parentType];else{let o=r.getTypeMap();i=(0,br.objectValues)(o).filter(kt.isCompositeType)}return(0,br.hintList)(e,i.map(o=>{let s=(0,kt.getNamedType)(o);return{label:String(o),documentation:(s==null?void 0:s.description)||"",kind:tn.CompletionItemKind.Field}}))}function Dee(e,t,r,n,i){if(!n)return[];let o=r.getTypeMap(),s=(0,br.getDefinitionState)(e.state),l=fU(n);i&&i.length>0&&l.push(...i);let d=l.filter(h=>o[h.typeCondition.name.value]&&!(s&&s
` ),n=(0,ke.onlineParser)(),i=n.startState(),o="",s=new ke.CharacterStream("");for(let l=0;l<r.length;l++){for(s=new ke.CharacterStream(r[l]);!s.eol()&&(o=n.token(s,i),t(s,i,o,l)!=="BREAK"););t(s,i,o,l),i.kind||(i=n.startState())}return{start:s.getStartOfToken(),end:s.getCurrentPosition(),string:s.current(),state:i,style:o}}Vr.runOnlineParser=Qp;function pU(e,t){var r;if(!e||!e.kind)return!1;let n=e.kind,i=t.locations;switch(n){case ke.RuleKinds.QUERY:return i.indexOf(Vt.DirectiveLocation.QUERY)!==-1;case ke.RuleKinds.MUTATION:return i.indexOf(Vt.DirectiveLocation.MUTATION)!==-1;case ke.RuleKinds.SUBSCRIPTION:return i.indexOf(Vt.DirectiveLocation.SUBSCRIPTION)!==-1;case ke.RuleKinds.FIELD:case ke.RuleKinds.ALIASED_FIELD:return i.indexOf(Vt.DirectiveLocation.FIELD)!==-1;case ke.RuleKinds.FRAGMENT_DEFINITION:return i.indexOf(Vt.DirectiveLocation.FRAGMENT_DEFINITION)!==-1;case ke.RuleKinds.FRAGMENT_SPREAD:return i.indexOf(Vt.DirectiveLocation.FRAGMENT_SPREAD)!==-1;case ke.RuleKinds.INLINE_FRAGMENT:return i.indexOf(Vt.DirectiveLocation.INLINE_FRAGMENT)!==-1;case ke.RuleKinds.SCHEMA_DEF:return i.indexOf(Vt.DirectiveLocation.SCHEMA)!==-1;case ke.RuleKinds.SCALAR_DEF:return i.indexOf(Vt.DirectiveLocation.SCALAR)!==-1;case ke.RuleKinds.OBJECT_TYPE_DEF:return i.indexOf(Vt.DirectiveLocation.OBJECT)!==-1;case ke.RuleKinds.FIELD_DEF:return i.indexOf(Vt.DirectiveLocation.FIELD_DEFINITION)!==-1;case ke.RuleKinds.INTERFACE_DEF:return i.indexOf(Vt.DirectiveLocation.INTERFACE)!==-1;case ke.RuleKinds.UNION_DEF:return i.indexOf(Vt.DirectiveLocation.UNION)!==-1;case ke.RuleKinds.ENUM_DEF:return i.indexOf(Vt.DirectiveLocation.ENUM)!==-1;case ke.RuleKinds.ENUM_VALUE:return i.indexOf(Vt.DirectiveLocation.ENUM_VALUE)!==-1;case ke.RuleKinds.INPUT_DEF:return i.indexOf(Vt.DirectiveLocation.INPUT_OBJECT)!==-1;case ke.RuleKinds.INPUT_VALUE_DEF:switch((r=e.prevState)===null||r===void 0?void 0:r.kind){case ke.RuleKinds.ARGUMENTS_DEF:return i.indexOf(Vt.DirectiveLocation.ARGUMENT_DEFINITION)!==-1;case ke.RuleKinds.INPUT_DEF:return i.indexOf(Vt.DirectiveLocation.INPUT_FIELD_DEFINITION)!==-1}}return!1}Vr.canUseDirective=pU;function hU(e,t){let r,n,i,o,s,l,d,h,v,y,b;return(0,br.forEachState)(t,D=>{var _;switch(D.kind){case ke.RuleKinds.QUERY:case"ShortQuery":y=e.getQueryType();break;case ke.RuleKinds.MUTATION:y=e.getMutationType();break;case ke.RuleKinds.SUBSCRIPTION:y=e.getSubscriptionType();break;case ke.RuleKinds.INLINE_FRAGMENT:case ke.RuleKinds.FRAGMENT_DEFINITION:D.type&&(y=e.getType(D.type));break;case ke.RuleKinds.FIELD:case ke.RuleKinds.ALIASED_FIELD:{!y||!D.name?s=null:(s=v?(0,br.getFieldDef)(e,v,D.name):null,y=s?s.type:null);break}case ke.RuleKinds.SELECTION_SET:v=(0,kt.getNamedType)(y);break;case ke.RuleKinds.DIRECTIVE:i=D.name?e.getDirective(D.name):null;break;case ke.RuleKinds.INTERFACE_DEF:D.name&&(d=null,b=new Vt.GraphQLInterfaceType({name:D.name,interfaces:[],fields:{}}));break;case ke.RuleKinds.OBJECT_TYPE_DEF:D.name&&(b=null,d=new Vt.GraphQLObjectType({name:D.name,interfaces:[],fields:{}}));break;case ke.RuleKinds.ARGUMENTS:{if(!D.prevState)n=null;else switch(D.prevState.kind){case ke.RuleKinds.FIELD:n=s&&s.args;break;case ke.RuleKinds.DIRECTIVE:n=i&&i.args;break;case ke.RuleKinds.ALIASED_FIELD:{let w=(_=D.prevState)===null||_===void 0?void 0:_.name;if(!w){n=null;break}let x=v?(0,br.getFieldDef)(e,v,w):null;if(!x){n=null;break}n=x.args;break}default:n=null;break}break}case ke.RuleKinds.ARGUMENT:if(n){for(let w=0;w<n.length;w++)if(n[w].name===D.name){r=n[w];break}}l=r==null?void 0:r.type;break;case ke.RuleKinds.ENUM_VALUE:let k=(0,kt.getNamedType)(l);o=k instanceof kt.GraphQLEnumType?k.getValues().find(w=>w.value===D.name):null;break;case ke.RuleKinds.LIST_VALUE:let T=(0,kt.getNullableType)(l);l=T instanceof kt.GraphQLList?T.ofType:null;break;case ke.RuleKinds.OBJECT_VALUE:let S=(0,kt.getNamedType)(l);h=S instanceof kt.GraphQLInputObjectType?S.getFields():null;break;case ke.RuleKinds.OBJECT_FIELD:let m=D.name&&h?h[D.name]:null;l=m==null?void 0:m.type;break;case ke.RuleKinds.NAMED_TYPE:D.name&&(y=e.getType(D.name));break}}),{argDef:r,argD
` +Za(e),(t==null?void 0:t.useMarkdownDescription)&&(l.markdownDescription=e.description+ `
` +Za(e,!0))):(l.description=Za(e),(t==null?void 0:t.useMarkdownDescription)&&(l.markdownDescription=Za(e,!0))),Object.keys(s).forEach(d=>{let h=s[d],{required:v,definition:y,definitions:b}=Bp(h.type,t),{definition:D}=Bp(h,t);l.properties[d]=Object.assign(Object.assign({},y),D);let _=Za(h.type);if(l.properties[d].description=h.description?h.description+ `
` +_:_,t==null?void 0:t.useMarkdownDescription){let k=Za(h.type,!0);l.properties[d].markdownDescription=h.description?h.description+ `
` +k:k}v&&l.required.push(d),b&&Object.keys(b).map(k=>{o[k]=b[k]})}),o[e.name]=l}return"description"in e&&!(0,Pu.isScalarType)(e)&&e.description&&!i.description?(i.description=e.description+ `
` +Za(e),(t==null?void 0:t.useMarkdownDescription)&&(i.markdownDescription=e.description+ `
` +Za(e,!0))):(i.description=Za(e),(t==null?void 0:t.useMarkdownDescription)&&(i.markdownDescription=Za(e,!0))),{required:n,definition:i,definitions:o}}function Pee(e,t){let r={ $ schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{},required:[]};return e&&Object.entries(e).forEach(([n,i])=>{var o;let{definition:s,required:l,definitions:d}=Bp(i,t);r.properties[n]=s,l&&((o=r.required)===null||o===void 0||o.push(n)),d&&(r.definitions=Object.assign(Object.assign({},r==null?void 0:r.definitions),d))}),r}qc.getVariablesJSONSchema=Pee});var bU=G(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.pointToOffset=Vc.getASTNodeAtPosition=void 0;var Fee=ht();function Mee(e,t,r){let n=yU(e,r),i;return(0,Fee.visit)(t,{enter(o){if(o.kind!=="Name"&&o.loc&&o.loc.start<=n&&n<=o.loc.end)i=o;else return!1},leave(o){if(o.loc&&o.loc.start<=n&&n<=o.loc.end)return!1}}),i}Vc.getASTNodeAtPosition=Mee;function yU(e,t){let r=e.split( `
` ).slice(0,t.line);return t.character+r.map(n=>n.length+1).reduce((n,i)=>n+i,0)}Vc.pointToOffset=yU});var TU=G( $ a=>{"use strict";Object.defineProperty( $ a,"__esModule",{value:!0}); $ a.locToRange= $ a.offsetToPosition= $ a.Position= $ a.Range=void 0;var nw=class{constructor(t,r){this.containsPosition=n=>this.start.line===n.line?this.start.character<=n.character:this.end.line===n.line?this.end.character>=n.character:this.start.line<=n.line&&this.end.line>=n.line,this.start=t,this.end=r}setStart(t,r){this.start=new Kp(t,r)}setEnd(t,r){this.end=new Kp(t,r)}}; $ a.Range=nw;var Kp=class{constructor(t,r){this.lessThanOrEqualTo=n=>this.line<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}}; $ a.Position=Kp;function iw(e,t){let r= `
` ,n=e.slice(0,t),i=n.split(r).length-1,o=n.lastIndexOf(r);return new Kp(i,t-o-1)} $ a.offsetToPosition=iw;function qee(e,t){let r=iw(e,t.start),n=iw(e,t.end);return new nw(r,n)} $ a.locToRange=qee});var _U=G(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});uy.validateWithCustomRules=void 0;var fn=ht(),Vee=[fn.LoneSchemaDefinitionRule,fn.UniqueOperationTypesRule,fn.UniqueTypeNamesRule,fn.UniqueEnumValueNamesRule,fn.UniqueFieldDefinitionNamesRule,fn.UniqueDirectiveNamesRule,fn.KnownTypeNamesRule,fn.KnownDirectivesRule,fn.UniqueDirectivesPerLocationRule,fn.PossibleTypeExtensionsRule,fn.UniqueArgumentNamesRule,fn.UniqueInputFieldNamesRule];function Uee(e,t,r,n,i){let o=fn.specifiedRules.filter(l=>!(l===fn.NoUnusedFragmentsRule||l===fn.ExecutableDefinitionsRule||n&&l===fn.KnownFragmentNamesRule));return r&&Array.prototype.push.apply(o,r),i&&Array.prototype.push.apply(o,Vee),(0,fn.validate)(e,t,o).filter(l=>{if(l.message.indexOf("Unknown directive")!==-1&&l.nodes){let d=l.nodes[0];if(d&&d.kind===fn.Kind.DIRECTIVE){let h=d.name.value;if(h==="arguments"||h==="argumentDefinitions")return!1}}return!0})}uy.validateWithCustomRules=Uee});var ow=G(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.collectVariables=void 0;var aw=ht();function Gee(e,t){let r=Object.create(null);return t.definitions.forEach(n=>{if(n.kind==="OperationDefinition"){let i=n.variableDefinitions;i&&i.forEach(({variable:o,type:s})=>{let l=(0,aw.typeFromAST)(e,s);l?r[o.name.value]=l:s.kind===aw.Kind.NAMED_TYPE&&s.name.value==="Float"&&(r[o.name.value]=aw.GraphQLFloat)})}}),r}sy.collectVariables=Gee});var OU=G(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.getQueryFacts=Us.getOperationASTFacts=void 0;var EU=ht(),Qee=ow();function SU(e,t){let r=t?(0,Qee.collectVariables)(t,e):void 0,n=[];return(0,EU.visit)(e,{OperationDefinition(i){n.push(i)}}),{variableToType:r,operations:n}}Us.getOperationASTFacts=SU;function kU(e,t){if(!!t)try{let r=(0,EU.parse)(t);return Object.assign(Object.assign({},SU(r,e)),{documentAST:r})}catch(r){return}}Us.default=kU;Us.getQueryFacts=kU});var Hp=G(Lt=>{"use strict";var Bee=Lt&&Lt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.getQueryFacts=Lt.getOperationASTFacts=Lt.getOperationFacts=Lt.collectVariables=Lt.validateWithCustomRules=Lt.offsetToPosition=Lt.locToRange=Lt.Range=Lt.Position=Lt.pointToOffset=Lt.getASTNodeAtPosition=Lt.getVariablesJSONSchema=Lt.getFragmentDependenciesForAST=Lt.getFragmentDependencies=void 0;var wU=gU();Object.defineProperty(Lt,"getFragmentDependencies",{enumerable:!0,get:function(){return wU.getFragmentDependencies}});Object.defineProperty(Lt,"getFragmentDependenciesForAST",{enumerable:!0,get:function(){return wU.getFragmentDependenciesForAST}});var Kee=mU();Object.defineProperty(Lt,"getVariablesJSONSchema",{enumerable:!0,get:function(){return Kee.getVariablesJSONSchema}});var NU=bU();Object.defineProperty(Lt,"getASTNodeAtPosition",{enumerable:!0,get:function(){return NU.getASTNodeAtPosition}});Object.defineProperty(Lt,"pointToOffset",{enumerable:!0,get:function(){return NU.pointToOffset}});var ly=TU();Object.defineProperty(Lt,"Position",{enumerable:!0,get:function(){return ly.Position}});Object.defineProperty(Lt,"Range",{enumerable:!0,get:function(){return ly.Range}});Object.defineProperty(Lt,"locToRange",{enumerable:!0,get:function(){return ly.locToRange}});Object.defineProperty(Lt,"offsetToPosition",{enumerable:!0,get:function(){return ly.offsetToPosition}});var Hee=_U();Object.defineProperty(Lt,"validateWithCustomRules",{enumerable:!0,get:function(){return Hee.validateWithCustomRules}});var zee=ow();Object.defineProperty(Lt,"collectVariables",{enumerable:!0,get:function(){return zee.collectVariables}});var uw=OU();Object.defineProperty(Lt,"getOperationFacts",{enumerable:!0,get:function(){return Bee(uw).default}});Object.defineProperty(Lt,"getOperationASTFacts",{enumerable:!0,get:function(){return uw.getOperationASTFacts}});Object.defineProperty(Lt,"getQueryFacts",{enumerable:!0
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -07:00
` +i:e+= `
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -07:00
` +i.reduce((d,h)=>(d+=(0,fy.print)(h)+ `
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -07:00
` ,d),""));try{l=(0,ete.parse)(e)}catch(d){if(d instanceof fy.GraphQLError){let h=jU((s=(o=d.locations)===null||o===void 0?void 0:o[0])!==null&&s!==void 0?s:{line:0,column:0},e);return[{severity:rn.DIAGNOSTIC_SEVERITY.Error,message:d.message,source:"GraphQL: Syntax",range:h}]}throw d}return IU(l,t,r,n)}rn.getDiagnostics=tte;function IU(e,t=null,r,n){if(!t)return[];let i=AU((0,Gs.validateWithCustomRules)(t,e,r,n),s=>RU(s,rn.DIAGNOSTIC_SEVERITY.Error,"Validation")),o=AU((0,fy.validate)(t,e,[fy.NoDeprecatedCustomRule]),s=>RU(s,rn.DIAGNOSTIC_SEVERITY.Warning,"Deprecation"));return i.concat(o)}rn.validateQuery=IU;function AU(e,t){return Array.prototype.concat.apply([],e.map(t))}function RU(e,t,r){if(!e.nodes)return[];let n=[];return e.nodes.forEach(i=>{let o=i.kind!=="Variable"&&"name"in i&&i.name!==void 0?i.name:"variable"in i&&i.variable!==void 0?i.variable:i;if(o){dy(e.locations,"GraphQL validation error requires locations.");let s=e.locations[0],l=rte(o),d=s.column+(l.end-l.start);n.push({source: ` GraphQL : $ { r } ` ,message:e.message,severity:t,range:new Gs.Range(new Gs.Position(s.line-1,s.column-1),new Gs.Position(s.line-1,d))})}}),n}function jU(e,t){let r=(0,LU.onlineParser)(),n=r.startState(),i=t.split( `
` );dy(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let h=0;h<e.line;h++)for(o=new LU.CharacterStream(i[h]);!o.eol()&&r.token(o,n)!=="invalidchar";);dy(o,"Expected Parser stream to be available.");let s=e.line-1,l=o.getStartOfToken(),d=o.getCurrentPosition();return new Gs.Range(new Gs.Position(s,l),new Gs.Position(s,d))}rn.getRange=jU;function rte(e){let r=e.loc;return dy(r,"Expected ASTNode to have a location."),r}});var MU=G(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});py.getOutline=void 0;var cw=ht(),FU=Hp(),{INLINE_FRAGMENT:nte}=cw.Kind;function ite(e){let t;try{t=(0,cw.parse)(e)}catch(i){return null}let r=ate(e);return{outlineTrees:(0,cw.visit)(t,{leave(i){return r!==void 0&&i.kind in r?r[i.kind](i):null}})}}py.getOutline=ite;function ate(e){let t=r=>({representativeName:r.name,startPosition:(0,FU.offsetToPosition)(e,r.loc.start),endPosition:(0,FU.offsetToPosition)(e,r.loc.end),kind:r.kind,children:r.selectionSet||r.fields||r.values||r.arguments||[]});return{Field:r=>{let n=r.alias?[rr("plain",r.alias),rr("plain",": ")]:[];return n.push(rr("plain",r.name)),Object.assign({tokenizedText:n},t(r))},OperationDefinition:r=>Object.assign({tokenizedText:[rr("keyword",r.operation),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),Document:r=>r.definitions,SelectionSet:r=>ote(r.selections,n=>n.kind===nte?n.selectionSet:n),Name:r=>r.value,FragmentDefinition:r=>Object.assign({tokenizedText:[rr("keyword","fragment"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),InterfaceTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","interface"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),EnumTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","enum"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),EnumValueDefinition:r=>Object.assign({tokenizedText:[rr("plain",r.name)]},t(r)),ObjectTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","type"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),InputObjectTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","input"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),FragmentSpread:r=>Object.assign({tokenizedText:[rr("plain","..."),rr("class-name",r.name)]},t(r)),InputValueDefinition:r=>Object.assign({tokenizedText:[rr("plain",r.name)]},t(r)),FieldDefinition:r=>Object.assign({tokenizedText:[rr("plain",r.name)]},t(r)),InlineFragment:r=>r.selectionSet}}function rr(e,t){return{kind:e,value:t}}function ote(e,t){let r=[];for(let n=0;n<e.length;n++){let i=t(e[n],n);Array.isArray(i)?r.push(...i):r.push(i)}return r}});var BU=G(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});hy.getHoverInformation=void 0;var qU=ht(),VU=ew();function ute(e,t,r,n,i){let o=n||(0,VU.getTokenAtPosition)(t,r);if(!e||!o||!o.state)return"";let s=o.state,l=s.kind,d=s.step,h=(0,VU.getTypeInfo)(e,o.state),v=Object.assign(Object.assign({},i),{schema:e});if(l==="Field"&&d===0&&h.fieldDef||l==="AliasedField"&&d===2&&h.fieldDef){let y=[];return zp(y,v),ste(y,h,v),Wp(y,v),Yp(y,v,h.fieldDef),y.join("").trim()}else if(l==="Directive"&&d===1&&h.directiveDef){let y=[];return zp(y,v),GU(y,h,v),Wp(y,v),Yp(y,v,h.directiveDef),y.join("").trim()}else if(l==="Argument"&&d===0&&h.argDef){let y=[];return zp(y,v),lte(y,h,v),Wp(y,v),Yp(y,v,h.argDef),y.join("").trim()}else if(l==="EnumValue"&&h.enumValue&&"description"in h.enumValue){let y=[];return zp(y,v),cte(y,h,v),Wp(y,v),Yp(y,v,h.enumValue),y.join("").trim()}else if(l==="NamedType"&&h.type&&"description"in h.type){let y=[];return zp(y,v),Gc(y,h,v,h.type),Wp(y,v),Yp(y,v,h.type),y.join("").trim()}return""}hy.getHoverInformation=ute;function zp(e,t){t.useMarkdown&&Ur(e," ` ` ` graphql \ n ")}function Wp(e,t){t.useMarkdown&&Ur(e," \ n ` ` ` ")}function ste(e,t,r){UU(e,t,r),QU(e,t,r,t.type)}function UU(e,t,r){if(!t.fieldDef)return;let n=t.fieldDef.name;n.slice(0,2)!=="__"&&(Gc(e,t,r,t.parentType),Ur(e,".")),Ur(e,n)}function GU(e,t,r){if(!t.directiveDef)return;let n="@"+t.directiveDef.name;Ur(e,n)}function lte(e,t,r){if(t.directiveDef?GU(e,t,r):t.fieldDef&&UU
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -07:00
` ),Ur(e,n)),fte(e,t,r)}function fte(e,t,r){if(!r)return;let n=r.deprecationReason?r.deprecationReason:null;!n||(Ur(e, `
2021-07-31 23:49:48 -07:00
2023-08-22 14:06:59 -07:00
` ),Ur(e,"Deprecated: "),Ur(e,n))}function Ur(e,t){e.push(t)}});var KU=G(bi=>{"use strict";var dte=bi&&bi.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),vy=bi&&bi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&dte(t,e,r)};Object.defineProperty(bi,"__esModule",{value:!0});bi.getHoverInformation=bi.getOutline=void 0;vy(QO(),bi);vy(ew(),bi);vy(CU(),bi);vy(PU(),bi);var pte=MU();Object.defineProperty(bi,"getOutline",{enumerable:!0,get:function(){return pte.getOutline}});var hte=BU();Object.defineProperty(bi,"getHoverInformation",{enumerable:!0,get:function(){return hte.getHoverInformation}})});var HU=G(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.CompletionItemKind=Qs.FileChangeTypeKind=void 0;Qs.FileChangeTypeKind={Created:1,Changed:2,Deleted:3};var vte;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(vte=Qs.CompletionItemKind||(Qs.CompletionItemKind={}))});var Qc=G(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.Range=ve.validateWithCustomRules=ve.collectVariables=ve.Position=ve.pointToOffset=ve.offsetToPosition=ve.getVariablesJSONSchema=ve.getQueryFacts=ve.getOperationFacts=ve.getOperationASTFacts=ve.getFragmentDependenciesForAST=ve.getFragmentDependencies=ve.getASTNodeAtPosition=ve.FileChangeTypeKind=ve.CompletionItemKind=ve.opt=ve.t=ve.list=ve.p=ve.isIgnored=ve.LexRules=ve.RuleKinds=ve.CharacterStream=ve.ParseRules=ve.onlineParser=ve.validateQuery=ve.SuggestionCommand=ve.canUseDirective=ve.DIAGNOSTIC_SEVERITY=ve.SEVERITY=ve.getVariableCompletions=ve.getTypeInfo=ve.getTokenAtPosition=ve.getRange=ve.getOutline=ve.getHoverInformation=ve.getFragmentDefinitions=ve.getFieldDef=ve.getDiagnostics=ve.getDefinitionState=ve.getDefinitionQueryResultForField=ve.getDefinitionQueryResultForNamedType=ve.getDefinitionQueryResultForFragmentSpread=ve.getDefinitionQueryResultForDefinitionNode=ve.getAutocompleteSuggestions=void 0;var Gr=KU();Object.defineProperty(ve,"getAutocompleteSuggestions",{enumerable:!0,get:function(){return Gr.getAutocompleteSuggestions}});Object.defineProperty(ve,"getDefinitionQueryResultForDefinitionNode",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForDefinitionNode}});Object.defineProperty(ve,"getDefinitionQueryResultForFragmentSpread",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForFragmentSpread}});Object.defineProperty(ve,"getDefinitionQueryResultForNamedType",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForNamedType}});Object.defineProperty(ve,"getDefinitionQueryResultForField",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForField}});Object.defineProperty(ve,"getDefinitionState",{enumerable:!0,get:function(){return Gr.getDefinitionState}});Object.defineProperty(ve,"getDiagnostics",{enumerable:!0,get:function(){return Gr.getDiagnostics}});Object.defineProperty(ve,"getFieldDef",{enumerable:!0,get:function(){return Gr.getFieldDef}});Object.defineProperty(ve,"getFragmentDefinitions",{enumerable:!0,get:function(){return Gr.getFragmentDefinitions}});Object.defineProperty(ve,"getHoverInformation",{enumerable:!0,get:function(){return Gr.getHoverInformation}});Object.defineProperty(ve,"getOutline",{enumerable:!0,get:function(){return Gr.getOutline}});Object.defineProperty(ve,"getRange",{enumerable:!0,get:function(){return Gr.getRange}});Object.defineProperty(ve,"getTokenAtPosition",{enumerable:!0,get:function(){return Gr.getTokenAtPosition}});Object.defineProperty(ve,"getTypeInfo",{enumerable:!0,get:function(){return Gr.getT
` ,o===" \r "&&i+1<r.length&&r.charAt(i+1)=== `
` &&i++}n&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return ka.create(0,t);for(;n<i;){var o=Math.floor((n+i)/2);r[o]>t?i=o:n=o+1}var s=n-1;return ka.create(s,t-r[s])},e.prototype.offsetAt=function(t){var r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;var n=r[t.line],i=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,i),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),ne;(function(e){var t=Object.prototype.toString;function r(D){return typeof D!="undefined"}e.defined=r;function n(D){return typeof D=="undefined"}e.undefined=n;function i(D){return D===!0||D===!1}e.boolean=i;function o(D){return t.call(D)==="[object String]"}e.string=o;function s(D){return t.call(D)==="[object Number]"}e.number=s;function l(D,_,k){return t.call(D)==="[object Number]"&&_<=D&&D<=k}e.numberRange=l;function d(D){return t.call(D)==="[object Number]"&&-2147483648<=D&&D<=2147483647}e.integer=d;function h(D){return t.call(D)==="[object Number]"&&0<=D&&D<=2147483647}e.uinteger=h;function v(D){return t.call(D)==="[object Function]"}e.func=v;function y(D){return D!==null&&typeof D=="object"}e.objectLiteral=y;function b(D,_){return Array.isArray(D)&&D.every(_)}e.typedArray=b})(ne||(ne={}));var Pm;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Pm||(Pm={}));function hr(e){return{ofRule:e}}function gt(e,t){return{ofRule:e,isList:!0,separator:t}}function zk(e,t){let r=e.match;return e.match=n=>{let i=!1;return r&&(i=r(n)),i&&t.every(o=>o.match&&!o.match(n))},e}function Cc(e,t){return{style:t,match:r=>r.kind===e}}function nt(e,t){return{style:t||"punctuation",match:r=>r.kind==="Punctuation"&&r.value===e}}var Un=Ee(ht());var Wk={Document:[gt("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return Un.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Sn("query"),hr(er("def")),hr("VariableDefinitions"),gt("Directive"),"SelectionSet"],Mutation:[Sn("mutation"),hr(er("def")),hr("VariableDefinitions"),gt("Directive"),"SelectionSet"],Subscription:[Sn("subscription"),hr(er("def")),hr("VariableDefinitions"),gt("Directive"),"SelectionSet"],VariableDefinitions:[nt("("),gt("VariableDefinition"),nt(")")],VariableDefinition:["Variable",nt(":"),"Type",hr("DefaultValue")],Variable:[nt(" $ ","variable"),er("variable")],DefaultValue:[nt("="),"Value"],SelectionSet:[nt("{"),gt("Selection"),nt("}")],Selection(e,t){return e.value==="..."?t.match(/[ \s \u 00a0,]*(on \b |@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[ \s \u 00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[er("property"),nt(":"),er("qualifier"),hr("Arguments"),gt("Directive"),hr("SelectionSet")],Field:[er("property"),hr("Arguments"),gt("Directive"),hr("SelectionSet")],Arguments:[nt("("),gt("Argument"),nt(")")],Argument:[er("attribute"),nt(":"),"Value"],FragmentSpread:[nt("..."),er("def"),gt("Directive")],InlineFragment:[nt("..."),hr("TypeCondition"),gt("Directive"),"SelectionSet"],FragmentDefinition:[Sn("fragment"),hr(zk(er("def"),[Sn("on")])),"TypeCondition",gt("Directive"),"SelectionSet"],TypeCondition:[Sn("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValu
` ).filter(function(s){return s.indexOf("#")!==0}).join("")),o=this.props.favorite?" \u 2605":" \u 2606";return Ks.default.createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?Ks.default.createElement("input",{type:"text",defaultValue:this.props.label,ref:function(s){r.editField=s},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):Ks.default.createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},i),Ks.default.createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"}," \u 270E"),Ks.default.createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},o))},t.prototype.handleClick=function(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)},t.prototype.handleStarClick=function(r){r.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)},t.prototype.handleFieldBlur=function(r){r.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,r.target.value,this.props.favorite)},t.prototype.handleFieldKeyDown=function(r){r.keyCode===13&&(r.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,r.currentTarget.value,this.props.favorite))},t.prototype.handleEditClick=function(r){var n=this;r.stopPropagation(),this.setState({editable:!0},function(){n.editField&&n.editField.focus()})},t}(Ks.default.Component),UG=one;var une=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},sne=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(une(arguments[t]));return e},lne=function(){function e(t,r,n){n===void 0&&(n=null),this.key=t,this.storage=r,this.maxSize=n,this.items=this.fetchAll()}return Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.contains=function(t){return this.items.some(function(r){return r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName})},e.prototype.edit=function(t){var r=this.items.findIndex(function(n){return n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName});r!==-1&&(this.items.splice(r,1,t),this.save())},e.prototype.delete=function(t){var r=this.items.findIndex(function(n){return n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName});r!==-1&&(this.items.splice(r,1),this.save())},e.prototype.fetchRecent=function(){return this.items[this.items.length-1]},e.prototype.fetchAll=function(){var t=this.storage.get(this.key);return t?JSON.parse(t)[this.key]:[]},e.prototype.push=function(t){var r,n=sne(this.items,[t]);this.maxSize&&n.length>this.maxSize&&n.shift();for(var i=0;i<5;i++){var o=this.storage.set(this.key,JSON.stringify((r={},r[this.key]=n,r)));if(!o||!o.error)this.items=n;else if(o.isQuotaError&&this.maxSize)n.shift();else return}},e.prototype.save=function(){var t;this.storage.set(this.key,JSON.stringify((t={},t[this.key]=this.items,t)))},e}(),Vw=lne;var QG=Ee(ht()),Vy=function(){return Vy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Vy.apply(this,arguments)},cne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||
` +v)})}}}}),{insertions:n,result:yne(t,n)}}function mne(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,Nn.isLeafType)(t[n].type)&&r.push(n)}),r}function zG(e,t){var r=(0,Nn.getNamedType)(e);if(!(!e||(0,Nn.isLeafType)(e))){var n=t(r);if(!(!Array.isArray(n)||n.length===0||!("getFields"in r)))return{kind:Nn.Kind.SELECTION_SET,selections:n.map(function(i){var o=r.getFields()[i],s=o?o.type:null;return{kind:Nn.Kind.FIELD,name:{kind:Nn.Kind.NAME,value:i},selectionSet:zG(s,t)}})}}}function yne(e,t){if(t.length===0)return e;var r="",n=0;return t.forEach(function(i){var o=i.index,s=i.string;r+=e.slice(n,o)+s,n=o}),r+=e.slice(n),r}function bne(e,t){for(var r=t,n=t;r;){var i=e.charCodeAt(r-1);if(i===10||i===13||i===8232||i===8233)break;r--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(n=r)}return e.substring(r,n)}function Tne(e){if(e)return e}function uh(e){for(var t=0,r=e;r.offsetParent;)t+=r.offsetLeft,r=r.offsetParent;return t}function Qw(e){for(var t=0,r=e;r.offsetParent;)t+=r.offsetTop,r=r.offsetParent;return t}var aa=Ee(ht()),Xc=function(){return Xc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Xc.apply(this,arguments)},Bw=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_ne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},WG=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_ne(arguments[t]));return e};function Ene(e,t){var r,n,i=new Map,o=[];try{for(var s=Bw(e),l=s.next();!l.done;l=s.next()){var d=l.value;if(d.kind==="Field"){var h=t(d),v=i.get(h);if(d.directives&&d.directives.length){var y=Xc({},d);o.push(y)}else if(v&&v.selectionSet&&d.selectionSet)v.selectionSet.selections=WG(v.selectionSet.selections,d.selectionSet.selections);else if(!v){var y=Xc({},d);i.set(h,y),o.push(y)}}else o.push(d)}}catch(b){r={error:b}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o}function YG(e,t,r){var n,i,o,s=r?(0,aa.getNamedType)(r).name:null,l=[],d=[];try{for(var h=Bw(t),v=h.next();!v.done;v=h.next()){var y=v.value;if(y.kind==="FragmentSpread"){var b=y.name.value;if(!y.directives||y.directives.length===0){if(d.indexOf(b)>=0)continue;d.push(b)}var D=e[y.name.value];if(D){var _=D.typeCondition,k=D.directives,T=D.selectionSet;y={kind:aa.Kind.INLINE_FRAGMENT,typeCondition:_,directives:k,selectionSet:T}}}if(y.kind===aa.Kind.INLINE_FRAGMENT&&(!y.directives||((o=y.directives)===null||o===void 0?void 0:o.length)===0)){var S=y.typeCondition?y.typeCondition.name.value:null;if(!S||S===s){l.push.apply(l,WG(YG(e,y.selectionSet.selections,r)));continue}}l.push(y)}}catch(m){n={error:m}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}return l}function Gy(e,t){var r,n,i=t?new aa.TypeInfo(t):null,o=Object.create(null);try{for(var s=Bw(e.definitions),l=s.next();!l.done;l=s.next()){var d=l.value;d.kind===aa.Kind.FRAGMENT_DEFINITION&&(o[d.name.value]=d)}}catch(v){r={error:v}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}var h={SelectionSet:function(v){var y=i?i.getParentType():null,b=v.selections;return b=YG(o,b,y),b=Ene(b,function(D){return D.alias?D.alias.value:D.name.value}),Xc(Xc({},v),{selections:b})},FragmentDefinition:function(){return null}};return(0,aa.visit)(e,i?(0,aa.visitWithTypeInfo)(i,h):h)}var Sne="IntrospectionQuery",JG=Sne;var vQ=Ee(sQ());var Ky=Ee(ht());var zs=Ee(zt()),Qy=function(){return Qy=Object.assign||function(e){for(
` ));var mQ=function(e){return JSON.stringify(e,null,2)},qne=function(e){return Ke(Ke({},e),{message:e.message,stack:e.stack})},yQ=function(e){return e instanceof ii.GraphQLError?e.toString():e instanceof Error?qne(e):e},bQ=function(e){Rne(t,e);function t(r){var n,i,o,s,l,d,h,v,y,b,D,_=e.call(this,r)||this;if(_._editorQueryID=0,_.safeSetState=function(te,ce){_.componentIsMounted&&_.setState(te,ce)},_.persistTabsState=function(){var te,ce;_.props.tabs&&(_._storage.set("tabState",JSON.stringify(_.state.tabs,function(we,ot){return we==="response"||_.state.shouldPersistHeaders&&we==="headers"?void 0:ot})),typeof _.props.tabs=="object"&&((ce=(te=_.props.tabs).onTabChange)===null||ce===void 0||ce.call(te,_.state.tabs)))},_.makeHandleOnSelectTab=function(te){return function(){_.handleStopQuery(),_.setState(function(ce){return Hne(te,ce)},function(){_.persistTabsState(),_.state.query&&_.handleEditQuery(_.state.query)})}},_.makeHandleOnCloseTab=function(te){return function(){_.state.tabs.activeTabIndex===te&&_.handleStopQuery(),_.setState(function(ce){return zne(te,ce)},_.persistTabsState)}},_.handleOnAddTab=function(){_.setState(function(te){return Wne(te)},_.persistTabsState)},_.handleClickReference=function(te){_.setState({docExplorerOpen:!0},function(){_.docExplorerComponent&&_.docExplorerComponent.showDocForReference(te)}),_._storage.set("docExplorerOpen",JSON.stringify(_.state.docExplorerOpen))},_.handleRunQuery=function(te){return Hw(_,void 0,void 0,function(){var ce,we,ot,Me,Qe,ze,mt,oe,me,fe=this;return zw(this,function(se){switch(se.label){case 0:this._editorQueryID++,ce=this._editorQueryID,we=this.autoCompleteLeafs()||this.state.query||"",ot=this.state.variables,Me=this.state.headers,Qe=this.state.shouldPersistHeaders,ze=this.state.operationName,te&&te!==ze&&(ze=te,this.handleEditOperationName(ze)),se.label=1;case 1:return se.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:ze}),this._storage.set("operationName",ze),this._queryHistory?this._queryHistory.onUpdateHistory(we,ot,Me,ze):this._historyStore&&this._historyStore.updateHistory(we,ot,Me,ze),mt={data:{}},[4,this._fetchQuery(we,ot,Me,ze,Qe,function(Ue){var at,ct;if(ce===fe._editorQueryID){var st=Array.isArray(Ue)?Ue:!1;if(!st&&typeof Ue!="string"&&Ue!==null&&"hasNext"in Ue&&(st=[Ue]),st){var Dn={data:mt.data},Ei=pQ((mt==null?void 0:mt.errors)||[],st.map(function(vr){return vr.errors}).flat().filter(Boolean));Ei.length&&(Dn.errors=Ei);try{for(var dn=sh(st),Hn=dn.next();!Hn.done;Hn=dn.next()){var pn=Hn.value,Pi=pn.path,Qr=pn.data,Kt=pn.errors,hn=jne(pn,["path","data","errors"]);if(Pi){if(!Qr)throw new Error("Expected part to contain a data property, but got "+pn);(0,vQ.default)(Dn.data,Pi,Qr,{merge:!0})}else Qr&&(Dn.data=pn.data);mt=Ke(Ke({},Dn),hn)}}catch(vr){at={error:vr}}finally{try{Hn&&!Hn.done&&(ct=dn.return)&&ct.call(dn)}finally{if(at)throw at.error}}fe.setState({isWaitingForResponse:!1,response:t.formatResult(mt)})}else{var zn=t.formatResult(Ue);fe.setState(function(vr){return Ke(Ke({},vr),{tabs:Ke(Ke({},vr.tabs),{tabs:vr.tabs.tabs.map(function(Ro,xn){return xn!==vr.tabs.activeTabIndex?Ro:Ke(Ke({},Ro),{response:zn})})}),isWaitingForResponse:!1,response:zn})},fe.persistTabsState)}}})];case 2:return oe=se.sent(),this.setState({subscription:oe}),[3,4];case 3:return me=se.sent(),this.setState({isWaitingForResponse:!1,response:me.message}),[3,4];case 4:return[2]}})})},_.handleStopQuery=function(){var te=_.state.subscription;_.setState({isWaitingForResponse:!1,subscription:null}),te&&te.unsubscribe()},_.handlePrettifyQuery=function(){var te,ce,we,ot=_.getQueryEditor(),Me=(te=ot==null?void 0:ot.getValue())!==null&&te!==void 0?te:"",Qe=(0,ii.print)((0,ii.parse)(Me));Qe!==Me&&(ot==null||ot.setValue(Qe));var ze=_.getVariableEditor(),mt=(ce=ze==null?void 0:ze.getValue())!==null&&ce!==void 0?ce:"";try{var oe=JSON.stringify(JSON.parse(mt),null,2);oe!==mt&&(ze==null||ze.setValue(oe))}catch(Ue){}var me=_.getHeaderEditor(),fe=(we=me==null?void 0:me.getValue())!==null&&we!==void 0?we:"";try{var se=JSON.stringify(JSON.parse(fe),null,2);se
` +b.map(function(T){return(0,ii.print)(T)}).join( `
` ))),D=d({query:r,variables:h,operationName:o},{headers:v,shouldPersistHeaders:s,documentAST:this.state.documentAST}),[2,Promise.resolve(D).then(function(T){if(kQ(T)){var S=T.subscribe({next:l,error:function(m){_.safeSetState({isWaitingForResponse:!1,response:m?t.formatError(m):void 0,subscription:null})},complete:function(){_.safeSetState({isWaitingForResponse:!1,subscription:null})}});return S}else return OQ(T)?(function(){return Hw(_,void 0,void 0,function(){var m,w,x,L,O,R,M;return zw(this,function(q){switch(q.label){case 0:q.trys.push([0,13,,14]),q.label=1;case 1:q.trys.push([1,6,7,12]),m=Pne(T),q.label=2;case 2:return[4,m.next()];case 3:if(w=q.sent(),!!w.done)return[3,5];x=w.value,l(x),q.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return L=q.sent(),R={error:L},[3,12];case 7:return q.trys.push([7,,10,11]),w&&!w.done&&(M=m.return)?[4,M.call(m)]:[3,9];case 8:q.sent(),q.label=9;case 9:return[3,11];case 10:if(R)throw R.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return O=q.sent(),this.safeSetState({isWaitingForResponse:!1,response:O?t.formatError(O):void 0,subscription:null}),[3,14];case 14:return[2]}})})}(),{unsubscribe:function(){var m,w;return(w=(m=T[Symbol.asyncIterator]()).return)===null||w===void 0?void 0:w.call(m)}}):(l(T),null)}).catch(function(T){return _.safeSetState({isWaitingForResponse:!1,response:T?t.formatError(T):void 0}),null})]})})},t.prototype._runQueryAtCursor=function(){if(this.state.subscription){this.handleStopQuery();return}var r,n=this.state.operations;if(n){var i=this.getQueryEditor();if(i&&i.hasFocus())for(var o=i.getCursor(),s=i.indexFromPos(o),l=0;l<n.length;l++){var d=n[l];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 i=this.resultViewerElement;n;){if(n===i)return!0;n=n.parentNode}return!1},t.formatError=function(r){return Array.isArray(r)?mQ({errors:r.map(function(n){return yQ(n)})}):mQ({errors:yQ(r)})},t.Logo=TQ,t.Toolbar=_Q,t.Footer=EQ,t.QueryEditor=wy,t.VariableEditor=Ry,t.HeaderEditor=Dw,t.ResultViewer=Cw,t.Button=Lu,t.ToolbarButton=Lu,t.Group=rO,t.Menu=nO,t.MenuItem=iO,t}(ut.default.Component);function TQ(e){return ut.default.createElement("div",{className:"title"},e.children||ut.default.createElement("span",null,"Graph",ut.default.createElement("em",null,"i"),"QL"))}TQ.displayName="GraphiQLLogo";function _Q(e){return ut.default.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}_Q.displayName="GraphiQLToolbar";function EQ(e){return ut.default.createElement("div",{className:"footer"},e.children)}EQ.displayName="GraphiQLFooter";var Vne= ` # Welcome to GraphiQL
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 )
#
2023-08-22 14:06:59 -07:00
` ;function SQ(e){return typeof e=="object"&&typeof e.then=="function"}function Une(e){return new Promise(function(t,r){var n=e.subscribe({next:function(i){t(i),n.unsubscribe()},error:r,complete:function(){r(new Error("no value resolved"))}})})}function kQ(e){return typeof e=="object"&&"subscribe"in e&&typeof e.subscribe=="function"}function OQ(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}function Gne(e){return new Promise(function(t,r){var n,i=(n=("return"in e?e:e[Symbol.asyncIterator]()).return)===null||n===void 0?void 0:n.bind(e),o=("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e);o().then(function(s){t(s.value),i==null||i()}).catch(function(s){r(s)})})}function wQ(e){return Promise.resolve(e).then(function(t){return OQ(t)?Gne(t):kQ(t)?Une(t):t})}function Ww(e,t){var r;return((r=e==null?void 0:e.type)===null||r===void 0?void 0:r.displayName)&&e.type.displayName===t.displayName?!0:e.type===t}function Qne(e,t){return Ke(Ke({},t),{tabs:t.tabs.map(function(r,n){return n!==t.activeTabIndex?r:Ke(Ke({},r),{headers:e,hash:Uu({query:r.query,headers:e,variables:r.variables})})})})}function Bne(e,t){return Ke(Ke({},t),{tabs:t.tabs.map(function(r,n){return n!==t.activeTabIndex?r:Ke(Ke({},r),{variables:e,hash:Uu({query:r.query,headers:r.headers,variables:e})})})})}function Kne(e,t,r){return Ke(Ke({},t),{tabs:t.tabs.map(function(n,i){return i!==t.activeTabIndex?n:Ke(Ke({},n),{title:r!=null?r:dQ(e),query:e,hash:Uu({query:e,headers:n.headers,variables:n.variables})})})})}function Hne(e,t){var r=t.tabs.activeTabIndex,n=t.tabs.tabs.map(function(o,s){return s!==r?o:Ke(Ke({},o),{query:t.query,variables:t.variables,operationName:t.operationName,headers:t.headers,response:t.response,hash:Uu({query:t.query,variables:t.variables,headers:t.headers})})}),i=t.tabs.tabs[e];return Ke(Ke({},t),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:Ke(Ke({},t.tabs),{tabs:n,activeTabIndex:e})})}function zne(e,t){var r=t.tabs.activeTabIndex>0?t.tabs.activeTabIndex-1:0,n=Ke(Ke({},t.tabs),{activeTabIndex:r,tabs:t.tabs.tabs.filter(function(o,s){return e!==s})}),i=n.tabs[r];return Ke(Ke({},t),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:n})}function Wne(e){var t=e.tabs.activeTabIndex,r={id:By(),title:"<untitled>",headers:"",variables:"",query:"",operationName:"",response:"",hash:Uu({query:"",variables:"",headers:""})},n=e.tabs.tabs.map(function(i,o){return o!==t?i:Ke(Ke({},i),{headers:e.headers,variables:e.variables,query:e.query,operationName:e.operationName,response:e.response})});return Ke(Ke({},e),{headers:r.headers,variables:r.variables,query:r.query,operationName:r.operationName,response:r.response,tabs:Ke(Ke({},e.tabs),{activeTabIndex:e.tabs.tabs.length,tabs:pQ(n,[r])})})}var oa=Ee(zt()),Yne=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Yw=function(){return Yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Yw.apply(this,arguments)};function Jne(e){return!(!e||typeof e!="object"||!("props"in e))}var Xne=function(e){Yne(t,e);function t(r){var n=e.call(this,r)||this;return n._node=null,n._listener=null,n.handleOpen=function(i){Hy(i),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var r=this,n,i=this.state.visible,o=oa.default.Children.map(this.props.children,function(s,l){if(!Jne(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,l);return oa.default.createElemen
10.686 , 0 13 , 2.314 4.851 , 10.462 ` })))}function Hy(e){e.preventDefault()}var DQ=bQ;var HQ=Ee(KQ());window.React=Eie;window.ReactDOM=Sie;window.SubscriptionsTransportWs=HQ.default;window.GraphiQL=DQ;})();
2021-07-31 23:49:48 -07:00
/ *
object - assign
( c ) Sindre Sorhus
@ license MIT
* /
2023-08-22 14:06:59 -07:00
/ * !
* escape - html
* Copyright ( c ) 2012 - 2013 TJ Holowaychuk
* Copyright ( c ) 2015 Andreas Lubbe
* Copyright ( c ) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
* /
/ * !
* is - plain - object < https : //github.com/jonschlinkert/is-plain-object>
*
* Copyright ( c ) 2014 - 2017 , Jon Schlinkert .
* Released under the MIT License .
* /
/ * !
* is - primitive < https : //github.com/jonschlinkert/is-primitive>
*
* Copyright ( c ) 2014 - present , Jon Schlinkert .
* Released under the MIT License .
* /
/ * !
* isobject < https : //github.com/jonschlinkert/isobject>
*
* Copyright ( c ) 2014 - 2017 , Jon Schlinkert .
* Released under the MIT License .
* /
/ * !
* set - value < https : //github.com/jonschlinkert/set-value>
*
* Copyright ( c ) Jon Schlinkert ( https : //github.com/jonschlinkert).
* Released under the MIT License .
* /
2021-07-31 23:49:48 -07:00
/ * * @ 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 .
* /