@cubejs-backend/server-core 0.34.8 → 0.34.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/core/optionsValidate.js +2 -2
- package/dist/src/core/optionsValidate.js.map +1 -1
- package/package.json +8 -8
- package/playground/assets/{CachePane.d91fb139.js → CachePane.24cf6183.js} +1 -1
- package/playground/assets/{GraphiQLSandbox.3fccf81f.js → GraphiQLSandbox.3311169d.js} +2 -2
- package/playground/assets/{SchemaReference.ea3ffa70.js → SchemaReference.0dd9e344.js} +1 -1
- package/playground/assets/{SqlQueryTab.4757aa51.js → SqlQueryTab.1d1abe65.js} +1 -1
- package/playground/assets/{brace-fold.b615d8ea.js → brace-fold.32edef4d.js} +1 -1
- package/playground/assets/{closebrackets.d17d4aaf.js → closebrackets.2e01debc.js} +1 -1
- package/playground/assets/{codemirror.a058e4b6.js → codemirror.7d358602.js} +1 -1
- package/playground/assets/{comment.6010d85d.js → comment.d4a267be.js} +1 -1
- package/playground/assets/{dialog.6fd314d7.js → dialog.3128b744.js} +1 -1
- package/playground/assets/{dialog.e7c1b768.js → dialog.674d26d8.js} +1 -1
- package/playground/assets/{foldgutter.7e46e887.js → foldgutter.2b9902be.js} +1 -1
- package/playground/assets/{hint.71ec8d0b.js → hint.031d39f3.js} +1 -1
- package/playground/assets/{hint.0c66dd01.js → hint.69ae6c2f.js} +1 -1
- package/playground/assets/{index.f5eb0ddf.js → index.8ea1588f.js} +26 -26
- package/playground/assets/{index.ee2df676.js → index.916b186e.js} +1 -1
- package/playground/assets/{index.d18a0d0c.js → index.b3abf48b.js} +1 -1
- package/playground/assets/{info-addon.311eaa8a.js → info-addon.bcf9bde5.js} +1 -1
- package/playground/assets/{info.4460b4dc.js → info.38b4b35b.js} +1 -1
- package/playground/assets/{javascript.8a656ca9.js → javascript.7c394fb8.js} +1 -1
- package/playground/assets/{jump-to-line.3726c108.js → jump-to-line.2d5723a9.js} +1 -1
- package/playground/assets/{jump.1ebbb565.js → jump.6af6c6a9.js} +1 -1
- package/playground/assets/{lint.03685451.js → lint.b0beb953.js} +1 -1
- package/playground/assets/{lint.d2ff3e2f.js → lint.b2a557df.js} +1 -1
- package/playground/assets/{lint.ce8afba8.js → lint.fe14f917.js} +1 -1
- package/playground/assets/{matchbrackets.4bf27526.js → matchbrackets.16c7b1ac.js} +1 -1
- package/playground/assets/{matchbrackets.e7318445.js → matchbrackets.b3b502f6.js} +1 -1
- package/playground/assets/{mode.fb823ed3.js → mode.38971e63.js} +1 -1
- package/playground/assets/{mode.f8436b76.js → mode.61b991c3.js} +1 -1
- package/playground/assets/{mode.233ebcf3.js → mode.7689b257.js} +1 -1
- package/playground/assets/{search.d5558e48.js → search.3536bb15.js} +1 -1
- package/playground/assets/{searchcursor.fb9bfee7.js → searchcursor.1ee7ba8d.js} +1 -1
- package/playground/assets/{searchcursor.d0248def.js → searchcursor.2a614bec.js} +1 -1
- package/playground/assets/{show-hint.24153202.js → show-hint.d4acad25.js} +1 -1
- package/playground/assets/{sublime.8dfe9c56.js → sublime.08995c01.js} +1 -1
- package/playground/index.html +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as ou}from"./index.f5eb0ddf.js";function au(Ut,ci){for(var X=0;X<ci.length;X++){const Te=ci[X];if(typeof Te!="string"&&!Array.isArray(Te)){for(const oe in Te)if(oe!=="default"&&!(oe in Ut)){const yt=Object.getOwnPropertyDescriptor(Te,oe);yt&&Object.defineProperty(Ut,oe,yt.get?yt:{enumerable:!0,get:()=>Te[oe]})}}}return Object.freeze(Object.defineProperty(Ut,Symbol.toStringTag,{value:"Module"}))}var Dn={exports:{}};(function(Ut,ci){(function(X,Te){Ut.exports=Te()})(ou,function(){var X=navigator.userAgent,Te=navigator.platform,oe=/gecko\/\d/i.test(X),yt=/MSIE \d/.test(X),Nn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),kr=/Edge\/(\d+)/.exec(X),A=yt||Nn||kr,E=A&&(yt?document.documentMode||6:+(kr||Nn)[1]),ie=!kr&&/WebKit\//.test(X),Uo=ie&&/Qt\/\d+\.\d+/.test(X),Tr=!kr&&/Chrome\//.test(X),we=/Opera\//.test(X),Mr=/Apple Computer/.test(navigator.vendor),Ko=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),_o=/PhantomJS/.test(X),Kt=Mr&&(/Mobile\/\w+/.test(X)||navigator.maxTouchPoints>2),Dr=/Android/.test(X),_t=Kt||Dr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),me=Kt||/Mac/.test(Te),Xo=/\bCrOS\b/.test(X),Yo=/win/i.test(Te),$e=we&&X.match(/Version\/(\d*\.\d*)/);$e&&($e=Number($e[1])),$e&&$e>=15&&(we=!1,ie=!0);var An=me&&(Uo||we&&($e==null||$e<12.11)),di=oe||A&&E>=9;function mt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var et=function(e,t){var i=e.className,r=mt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ge(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function ve(e,t){return Ge(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l<t.length;++l)n.appendChild(t[l]);return n}function bt(e,t,i,r){var n=k(e,t,i,r);return n.setAttribute("role","presentation"),n}var tt;document.createRange?tt=function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n}:tt=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(n){return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function Ue(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function be(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function rt(e,t){var i=e.className;mt(t).test(i)||(e.className+=(i?" ":"")+t)}function pi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!mt(i[r]).test(t)&&(t+=" "+i[r]);return t}var Xt=function(e){e.select()};Kt?Xt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:A&&(Xt=function(e){try{e.select()}catch(t){}});function vi(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function it(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function xe(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var l=r||0,o=n||0;;){var a=e.indexOf(" ",l);if(a<0||a>=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=vi(this.onTimeout,this)};Ke.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ke.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var On=50,Nr={toString:function(){return"CodeMirror.Pass"}},Me={scroll:!1},gi={origin:"*mouse"},Yt={origin:"+move"};function yi(e,t,i){for(var r=0,n=0;;){var l=e.indexOf(" ",r);l==-1&&(l=e.length);var o=l-r;if(l==e.length||n+o>=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Ar=[""];function mi(e){for(;Ar.length<=e;)Ar.push(W(Ar)+" ");return Ar[e]}function W(e){return e[e.length-1]}function Or(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function qo(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}function Wn(){}function Hn(e,t){var i;return Object.create?i=Object.create(e):(Wn.prototype=e,i=new Wn),t&&it(t,i),i}var Zo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function bi(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Zo.test(e))}function Wr(e,t){return t?t.source.indexOf("\\w")>-1&&bi(e)?!0:t.test(e):bi(e)}function Fn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Qo=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xi(e){return e.charCodeAt(0)>=768&&Qo.test(e)}function Pn(e,t,i){for(;(i<0?t>0:t<e.length)&&xi(e.charAt(t));)t+=i;return t}function qt(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function Jo(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;l<e.length;++l){var o=e[l];(o.from<i&&o.to>t||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var Zt=null;function Qt(e,t,i){var r;Zt=null;for(var n=0;n<e.length;++n){var l=e[n];if(l.from<t&&l.to>t)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:Zt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:Zt=n)}return r!=null?r:Zt}var jo=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p<d;++p)c.push(i(u.charCodeAt(p)));for(var v=0,y=h;v<d;++v){var m=c[v];m=="m"?c[v]=y:y=m}for(var x=0,b=h;x<d;++x){var C=c[x];C=="1"&&b=="r"?c[x]="n":l.test(C)&&(b=C,C=="r"&&(c[x]="R"))}for(var L=1,S=c[0];L<d-1;++L){var N=c[L];N=="+"&&S=="1"&&c[L+1]=="1"?c[L]="1":N==","&&S==c[L+1]&&(S=="1"||S=="n")&&(c[L]=S),S=N}for(var P=0;P<d;++P){var j=c[P];if(j==",")c[P]="N";else if(j=="%"){var B=void 0;for(B=P+1;B<d&&c[B]=="%";++B);for(var pe=P&&c[P-1]=="!"||B<d&&c[B]=="1"?"1":"N",fe=P;fe<B;++fe)c[fe]=pe;P=B-1}}for(var K=0,he=h;K<d;++K){var $=c[K];he=="L"&&$=="1"?c[K]="L":l.test($)&&(he=$)}for(var Y=0;Y<d;++Y)if(n.test(c[Y])){var _=void 0;for(_=Y+1;_<d&&n.test(c[_]);++_);for(var R=(Y?c[Y-1]:h)=="L",ce=(_<d?c[_]:h)=="L",zt=R==ce?R?"L":"R":h,Ve=Y;Ve<_;++Ve)c[Ve]=zt;Y=_-1}for(var re=[],He,V=0;V<d;)if(o.test(c[V])){var Tn=V;for(++V;V<d&&o.test(c[V]);++V);re.push(new s(0,Tn,V))}else{var ze=V,vt=re.length,gt=f=="rtl"?1:0;for(++V;V<d&&c[V]!="L";++V);for(var le=ze;le<V;)if(a.test(c[le])){ze<le&&(re.splice(vt,0,new s(1,ze,le)),vt+=gt);var Gt=le;for(++le;le<V&&a.test(c[le]);++le);re.splice(vt,0,new s(2,Gt,le)),vt+=gt,ze=le}else++le;ze<V&&re.splice(vt,0,new s(1,ze,V))}return f=="ltr"&&(re[0].level==1&&(He=u.match(/^\s+/))&&(re[0].from=He[0].length,re.unshift(new s(0,0,He[0].length))),W(re).level==1&&(He=u.match(/\s+$/))&&(W(re).to-=He[0].length,re.push(new s(0,d-He[0].length,d)))),f=="rtl"?re.reverse():re}}();function Fe(e,t){var i=e.order;return i==null&&(i=e.order=jo(e.text,t)),i}var En=[],T=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||En).concat(i)}};function Ci(e,t){return e._handlers&&e._handlers[t]||En}function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var l=ee(n,i);l>-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=Ci(e,t);if(!!i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),G(e,i||t.type,e,t),wi(t)||t.codemirrorIgnore}function In(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}function Ce(e,t){return Ci(e,t).length>0}function xt(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Bn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function wi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Jt(e){ae(e),Bn(e)}function Si(e){return e.target||e.srcElement}function Rn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),me&&e.ctrlKey&&t==1&&(t=3),t}var Vo=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Li;function $o(e){if(Li==null){var t=k("span","\u200B");ve(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Li=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=Li?k("span","\u200B"):k("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ki;function ea(e){if(ki!=null)return ki;var t=ve(e,document.createTextNode("A\u062EA")),i=tt(t,0,1).getBoundingClientRect(),r=tt(t,1,2).getBoundingClientRect();return Ge(e),!i||i.left==i.right?!1:ki=r.right-i.right<3}var Ti=`
|
|
1
|
+
import{o as ou}from"./index.8ea1588f.js";function au(Ut,ci){for(var X=0;X<ci.length;X++){const Te=ci[X];if(typeof Te!="string"&&!Array.isArray(Te)){for(const oe in Te)if(oe!=="default"&&!(oe in Ut)){const yt=Object.getOwnPropertyDescriptor(Te,oe);yt&&Object.defineProperty(Ut,oe,yt.get?yt:{enumerable:!0,get:()=>Te[oe]})}}}return Object.freeze(Object.defineProperty(Ut,Symbol.toStringTag,{value:"Module"}))}var Dn={exports:{}};(function(Ut,ci){(function(X,Te){Ut.exports=Te()})(ou,function(){var X=navigator.userAgent,Te=navigator.platform,oe=/gecko\/\d/i.test(X),yt=/MSIE \d/.test(X),Nn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),kr=/Edge\/(\d+)/.exec(X),A=yt||Nn||kr,E=A&&(yt?document.documentMode||6:+(kr||Nn)[1]),ie=!kr&&/WebKit\//.test(X),Uo=ie&&/Qt\/\d+\.\d+/.test(X),Tr=!kr&&/Chrome\//.test(X),we=/Opera\//.test(X),Mr=/Apple Computer/.test(navigator.vendor),Ko=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),_o=/PhantomJS/.test(X),Kt=Mr&&(/Mobile\/\w+/.test(X)||navigator.maxTouchPoints>2),Dr=/Android/.test(X),_t=Kt||Dr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),me=Kt||/Mac/.test(Te),Xo=/\bCrOS\b/.test(X),Yo=/win/i.test(Te),$e=we&&X.match(/Version\/(\d*\.\d*)/);$e&&($e=Number($e[1])),$e&&$e>=15&&(we=!1,ie=!0);var An=me&&(Uo||we&&($e==null||$e<12.11)),di=oe||A&&E>=9;function mt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var et=function(e,t){var i=e.className,r=mt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ge(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function ve(e,t){return Ge(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l<t.length;++l)n.appendChild(t[l]);return n}function bt(e,t,i,r){var n=k(e,t,i,r);return n.setAttribute("role","presentation"),n}var tt;document.createRange?tt=function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n}:tt=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(n){return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function Ue(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function be(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function rt(e,t){var i=e.className;mt(t).test(i)||(e.className+=(i?" ":"")+t)}function pi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!mt(i[r]).test(t)&&(t+=" "+i[r]);return t}var Xt=function(e){e.select()};Kt?Xt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:A&&(Xt=function(e){try{e.select()}catch(t){}});function vi(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function it(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function xe(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var l=r||0,o=n||0;;){var a=e.indexOf(" ",l);if(a<0||a>=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=vi(this.onTimeout,this)};Ke.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ke.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var On=50,Nr={toString:function(){return"CodeMirror.Pass"}},Me={scroll:!1},gi={origin:"*mouse"},Yt={origin:"+move"};function yi(e,t,i){for(var r=0,n=0;;){var l=e.indexOf(" ",r);l==-1&&(l=e.length);var o=l-r;if(l==e.length||n+o>=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Ar=[""];function mi(e){for(;Ar.length<=e;)Ar.push(W(Ar)+" ");return Ar[e]}function W(e){return e[e.length-1]}function Or(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function qo(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}function Wn(){}function Hn(e,t){var i;return Object.create?i=Object.create(e):(Wn.prototype=e,i=new Wn),t&&it(t,i),i}var Zo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function bi(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Zo.test(e))}function Wr(e,t){return t?t.source.indexOf("\\w")>-1&&bi(e)?!0:t.test(e):bi(e)}function Fn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Qo=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xi(e){return e.charCodeAt(0)>=768&&Qo.test(e)}function Pn(e,t,i){for(;(i<0?t>0:t<e.length)&&xi(e.charAt(t));)t+=i;return t}function qt(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function Jo(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;l<e.length;++l){var o=e[l];(o.from<i&&o.to>t||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var Zt=null;function Qt(e,t,i){var r;Zt=null;for(var n=0;n<e.length;++n){var l=e[n];if(l.from<t&&l.to>t)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:Zt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:Zt=n)}return r!=null?r:Zt}var jo=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p<d;++p)c.push(i(u.charCodeAt(p)));for(var v=0,y=h;v<d;++v){var m=c[v];m=="m"?c[v]=y:y=m}for(var x=0,b=h;x<d;++x){var C=c[x];C=="1"&&b=="r"?c[x]="n":l.test(C)&&(b=C,C=="r"&&(c[x]="R"))}for(var L=1,S=c[0];L<d-1;++L){var N=c[L];N=="+"&&S=="1"&&c[L+1]=="1"?c[L]="1":N==","&&S==c[L+1]&&(S=="1"||S=="n")&&(c[L]=S),S=N}for(var P=0;P<d;++P){var j=c[P];if(j==",")c[P]="N";else if(j=="%"){var B=void 0;for(B=P+1;B<d&&c[B]=="%";++B);for(var pe=P&&c[P-1]=="!"||B<d&&c[B]=="1"?"1":"N",fe=P;fe<B;++fe)c[fe]=pe;P=B-1}}for(var K=0,he=h;K<d;++K){var $=c[K];he=="L"&&$=="1"?c[K]="L":l.test($)&&(he=$)}for(var Y=0;Y<d;++Y)if(n.test(c[Y])){var _=void 0;for(_=Y+1;_<d&&n.test(c[_]);++_);for(var R=(Y?c[Y-1]:h)=="L",ce=(_<d?c[_]:h)=="L",zt=R==ce?R?"L":"R":h,Ve=Y;Ve<_;++Ve)c[Ve]=zt;Y=_-1}for(var re=[],He,V=0;V<d;)if(o.test(c[V])){var Tn=V;for(++V;V<d&&o.test(c[V]);++V);re.push(new s(0,Tn,V))}else{var ze=V,vt=re.length,gt=f=="rtl"?1:0;for(++V;V<d&&c[V]!="L";++V);for(var le=ze;le<V;)if(a.test(c[le])){ze<le&&(re.splice(vt,0,new s(1,ze,le)),vt+=gt);var Gt=le;for(++le;le<V&&a.test(c[le]);++le);re.splice(vt,0,new s(2,Gt,le)),vt+=gt,ze=le}else++le;ze<V&&re.splice(vt,0,new s(1,ze,V))}return f=="ltr"&&(re[0].level==1&&(He=u.match(/^\s+/))&&(re[0].from=He[0].length,re.unshift(new s(0,0,He[0].length))),W(re).level==1&&(He=u.match(/\s+$/))&&(W(re).to-=He[0].length,re.push(new s(0,d-He[0].length,d)))),f=="rtl"?re.reverse():re}}();function Fe(e,t){var i=e.order;return i==null&&(i=e.order=jo(e.text,t)),i}var En=[],T=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||En).concat(i)}};function Ci(e,t){return e._handlers&&e._handlers[t]||En}function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var l=ee(n,i);l>-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=Ci(e,t);if(!!i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),G(e,i||t.type,e,t),wi(t)||t.codemirrorIgnore}function In(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}function Ce(e,t){return Ci(e,t).length>0}function xt(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Bn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function wi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Jt(e){ae(e),Bn(e)}function Si(e){return e.target||e.srcElement}function Rn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),me&&e.ctrlKey&&t==1&&(t=3),t}var Vo=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Li;function $o(e){if(Li==null){var t=k("span","\u200B");ve(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Li=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=Li?k("span","\u200B"):k("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ki;function ea(e){if(ki!=null)return ki;var t=ve(e,document.createTextNode("A\u062EA")),i=tt(t,0,1).getBoundingClientRect(),r=tt(t,1,2).getBoundingClientRect();return Ge(e),!i||i.left==i.right?!1:ki=r.right-i.right<3}var Ti=`
|
|
2
2
|
|
|
3
3
|
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(`
|
|
4
4
|
`,t);n==-1&&(n=e.length);var l=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),o=l.indexOf("\r");o!=-1?(i.push(l.slice(0,o)),t+=o+1):(i.push(l),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},ta=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},ra=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Mi=null;function ia(e){if(Mi!=null)return Mi;var t=ve(e,k("span","x")),i=t.getBoundingClientRect(),r=tt(t,0,1).getBoundingClientRect();return Mi=Math.abs(i.left-r.left)>1}var Di={},Ct={};function na(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Di[e]=t}function la(e,t){Ct[e]=t}function Hr(e){if(typeof e=="string"&&Ct.hasOwnProperty(e))e=Ct[e];else if(e&&typeof e.name=="string"&&Ct.hasOwnProperty(e.name)){var t=Ct[e.name];typeof t=="string"&&(t={name:t}),e=Hn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Hr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Hr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Ni(e,t){t=Hr(t);var i=Di[t.name];if(!i)return Ni(e,"text/plain");var r=i(e,t);if(wt.hasOwnProperty(t.name)){var n=wt[t.name];for(var l in n)!n.hasOwnProperty(l)||(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=n[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var wt={};function oa(e,t){var i=wt.hasOwnProperty(e)?wt[e]:wt[e]={};it(t,i)}function nt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function Ai(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function zn(e,t,i){return e.startState?e.startState(t,i):!0}var U=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};U.prototype.eol=function(){return this.pos>=this.string.length},U.prototype.sol=function(){return this.pos==this.lineStart},U.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},U.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},U.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},U.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},U.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},U.prototype.skipToEnd=function(){this.pos=this.string.length},U.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},U.prototype.backUp=function(e){this.pos-=e},U.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?xe(this.string,this.lineStart,this.tabSize):0)},U.prototype.indentation=function(){return xe(this.string,null,this.tabSize)-(this.lineStart?xe(this.string,this.lineStart,this.tabSize):0)},U.prototype.match=function(e,t,i){if(typeof e=="string"){var r=function(o){return i?o.toLowerCase():o},n=this.string.substr(this.pos,e.length);if(r(n)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var l=this.string.slice(this.pos).match(e);return l&&l.index>0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},U.prototype.current=function(){return this.string.slice(this.start,this.pos)},U.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},U.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},U.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function w(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],l=n.chunkSize();if(t<l){i=n;break}t-=l}return i.lines[t]}function lt(e,t,i){var r=[],n=t.line;return e.iter(t.line,i.line+1,function(l){var o=l.text;n==i.line&&(o=o.slice(0,i.ch)),n==t.line&&(o=o.slice(t.ch)),r.push(o),++n}),r}function Oi(e,t,i){var r=[];return e.iter(t,i,function(n){r.push(n.text)}),r}function De(e,t){var i=t-e.height;if(i)for(var r=e;r;r=r.parent)r.height+=i}function H(e){if(e.parent==null)return null;for(var t=e.parent,i=ee(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var n=0;r.children[n]!=t;++n)i+=r.children[n].chunkSize();return i+t.first}function ot(e,t){var i=e.first;e:do{for(var r=0;r<e.children.length;++r){var n=e.children[r],l=n.height;if(t<l){e=n;continue e}t-=l,i+=n.chunkSize()}return i}while(!e.lines);for(var o=0;o<e.lines.length;++o){var a=e.lines[o],s=a.height;if(t<s)break;t-=s}return i+o}function jt(e,t){return t>=e.first&&t<e.first+e.size}function Wi(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function g(e,t,i){if(i===void 0&&(i=null),!(this instanceof g))return new g(e,t,i);this.line=e,this.ch=t,this.sticky=i}function M(e,t){return e.line-t.line||e.ch-t.ch}function Hi(e,t){return e.sticky==t.sticky&&M(e,t)==0}function Fi(e){return g(e.line,e.ch)}function Fr(e,t){return M(e,t)<0?t:e}function Pr(e,t){return M(e,t)<0?e:t}function Gn(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function D(e,t){if(t.line<e.first)return g(e.first,0);var i=e.first+e.size-1;return t.line>i?g(i,w(e,i).text.length):aa(t,w(e,t.line).text.length)}function aa(e,t){var i=e.ch;return i==null||i>t?g(e.line,t):i<0?g(e.line,0):e}function Un(e,t){for(var i=[],r=0;r<t.length;r++)i[r]=D(e,t[r]);return i}var Er=function(e,t){this.state=e,this.lookAhead=t},Ne=function(e,t,i,r){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};Ne.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ne.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ne.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ne.fromSaved=function(e,t,i){return t instanceof Er?new Ne(e,nt(e.mode,t.state),i,t.lookAhead):new Ne(e,nt(e.mode,t),i)},Ne.prototype.save=function(e){var t=e!==!1?nt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Er(t,this.maxLookAhead):t};function Kn(e,t,i,r){var n=[e.state.modeGen],l={};Qn(e,t.text,e.doc.mode,i,function(u,f){return n.push(u,f)},l,r);for(var o=i.state,a=function(u){i.baseTokens=n;var f=e.state.overlays[u],h=1,d=0;i.state=!0,Qn(e,t.text,f.mode,i,function(c,p){for(var v=h;d<c;){var y=n[h];y>c&&n.splice(h,1,c,n[h+1],y),h+=2,d=Math.min(c,y)}if(!!p)if(f.opaque)n.splice(v,h-v,c,"overlay "+p),h=v+2;else for(;v<h;v+=2){var m=n[v+1];n[v+1]=(m?m+" ":"")+"overlay "+p}},l),i.state=o,i.baseTokens=null,i.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)a(s);return{styles:n,classes:l.bgClass||l.textClass?l:null}}function _n(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Vt(e,H(t)),n=t.text.length>e.options.maxHighlightLength&&nt(e.doc.mode,r.state),l=Kn(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Vt(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new Ne(r,!0,t);var l=sa(e,t,i),o=l>r.first&&w(r,l-1).stateAfter,a=o?Ne.fromSaved(r,o,l):new Ne(r,zn(r.mode),l);return r.iter(l,t,function(s){Pi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=n.viewFrom&&u<n.viewTo?a.save():null,a.nextLine()}),i&&(r.modeFrontier=a.line),a}function Pi(e,t,i,r){var n=e.doc.mode,l=new U(t,e.options.tabSize,i);for(l.start=l.pos=r||0,t==""&&Xn(n,i.state);!l.eol();)Ei(n,l,i.state),l.start=l.pos}function Xn(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var i=Ai(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function Ei(e,t,i,r){for(var n=0;n<10;n++){r&&(r[0]=Ai(e,i).mode);var l=e.token(t,i);if(t.pos>t.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var Yn=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function qn(e,t,i,r){var n=e.doc,l=n.mode,o;t=D(n,t);var a=w(n,t.line),s=Vt(e,t.line,i),u=new U(a.text,e.options.tabSize,s),f;for(r&&(f=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,o=Ei(l,u,s.state),r&&f.push(new Yn(u,o,nt(n.mode,s.state)));return r?f:new Yn(u,o,s.state)}function Zn(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";t[r]==null?t[r]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+i[2])}return e}function Qn(e,t,i,r,n,l,o){var a=i.flattenSpans;a==null&&(a=e.options.flattenSpans);var s=0,u=null,f=new U(t,e.options.tabSize,r),h,d=e.options.addModeClass&&[null];for(t==""&&Zn(Xn(i,r.state),l);!f.eol();){if(f.pos>e.options.maxHighlightLength?(a=!1,o&&Pi(e,t,r,f.pos),f.pos=t.length,h=null):h=Zn(Ei(i,f,r.state,d),l),d){var c=d[0].name;c&&(h="m-"+(h?c+" "+h:c))}if(!a||u!=h){for(;s<f.start;)s=Math.min(f.start,s+5e3),n(s,u);u=h}f.start=f.pos}for(;s<f.pos;){var p=Math.min(f.pos,s+5e3);n(p,u),s=p}}function sa(e,t,i){for(var r,n,l=e.doc,o=i?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>o;--a){if(a<=l.first)return l.first;var s=w(l,a-1),u=s.stateAfter;if(u&&(!i||a+(u instanceof Er?u.lookAhead:0)<=l.modeFrontier))return a;var f=xe(s.text,null,e.options.tabSize);(n==null||r>f)&&(n=a-1,r=f)}return n}function ua(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,r=t-1;r>i;r--){var n=w(e,r).stateAfter;if(n&&(!(n instanceof Er)||r+n.lookAhead<t)){i=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var Jn=!1,Pe=!1;function fa(){Jn=!0}function ha(){Pe=!0}function Ir(e,t,i){this.marker=e,this.from=t,this.to=i}function $t(e,t){if(e)for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t)return r}}function ca(e,t){for(var i,r=0;r<e.length;++r)e[r]!=t&&(i||(i=[])).push(e[r]);return i}function da(e,t,i){var r=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));r&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function pa(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var l=e[n],o=l.marker,a=l.from==null||(o.inclusiveLeft?l.from<=t:l.from<t);if(a||l.from==t&&o.type=="bookmark"&&(!i||!l.marker.insertLeft)){var s=l.to==null||(o.inclusiveRight?l.to>=t:l.to>t);(r||(r=[])).push(new Ir(o,l.from,s?null:l.to))}}return r}function va(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var l=e[n],o=l.marker,a=l.to==null||(o.inclusiveRight?l.to>=t:l.to>t);if(a||l.from==t&&o.type=="bookmark"&&(!i||l.marker.insertLeft)){var s=l.from==null||(o.inclusiveLeft?l.from<=t:l.from<t);(r||(r=[])).push(new Ir(o,s?null:l.from-t,l.to==null?null:l.to-t))}}return r}function Ii(e,t){if(t.full)return null;var i=jt(e,t.from.line)&&w(e,t.from.line).markedSpans,r=jt(e,t.to.line)&&w(e,t.to.line).markedSpans;if(!i&&!r)return null;var n=t.from.ch,l=t.to.ch,o=M(t.from,t.to)==0,a=pa(i,n,o),s=va(r,l,o),u=t.text.length==1,f=W(t.text).length+(u?n:0);if(a)for(var h=0;h<a.length;++h){var d=a[h];if(d.to==null){var c=$t(s,d.marker);c?u&&(d.to=c.to==null?null:c.to+f):d.to=n}}if(s)for(var p=0;p<s.length;++p){var v=s[p];if(v.to!=null&&(v.to+=f),v.from==null){var y=$t(a,v.marker);y||(v.from=f,u&&(a||(a=[])).push(v))}else v.from+=f,u&&(a||(a=[])).push(v)}a&&(a=jn(a)),s&&s!=a&&(s=jn(s));var m=[a];if(!u){var x=t.text.length-2,b;if(x>0&&a)for(var C=0;C<a.length;++C)a[C].to==null&&(b||(b=[])).push(new Ir(a[C].marker,null,null));for(var L=0;L<x;++L)m.push(b);m.push(s)}return m}function jn(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function ga(e,t,i){var r=null;if(e.iter(t.line,i.line+1,function(c){if(c.markedSpans)for(var p=0;p<c.markedSpans.length;++p){var v=c.markedSpans[p].marker;v.readOnly&&(!r||ee(r,v)==-1)&&(r||(r=[])).push(v)}}),!r)return null;for(var n=[{from:t,to:i}],l=0;l<r.length;++l)for(var o=r[l],a=o.find(0),s=0;s<n.length;++s){var u=n[s];if(!(M(u.to,a.from)<0||M(u.from,a.to)>0)){var f=[s,1],h=M(u.from,a.from),d=M(u.to,a.to);(h<0||!o.inclusiveLeft&&!h)&&f.push({from:u.from,to:a.from}),(d>0||!o.inclusiveRight&&!d)&&f.push({from:a.to,to:u.to}),n.splice.apply(n,f),s+=f.length-3}}return n}function Vn(e){var t=e.markedSpans;if(!!t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function $n(e,t){if(!!t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function Br(e){return e.inclusiveLeft?-1:0}function Rr(e){return e.inclusiveRight?1:0}function Bi(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var r=e.find(),n=t.find(),l=M(r.from,n.from)||Br(e)-Br(t);if(l)return-l;var o=M(r.to,n.to)||Rr(e)-Rr(t);return o||t.id-e.id}function el(e,t){var i=Pe&&e.markedSpans,r;if(i)for(var n=void 0,l=0;l<i.length;++l)n=i[l],n.marker.collapsed&&(t?n.from:n.to)==null&&(!r||Bi(r,n.marker)<0)&&(r=n.marker);return r}function tl(e){return el(e,!0)}function zr(e){return el(e,!1)}function ya(e,t){var i=Pe&&e.markedSpans,r;if(i)for(var n=0;n<i.length;++n){var l=i[n];l.marker.collapsed&&(l.from==null||l.from<t)&&(l.to==null||l.to>t)&&(!r||Bi(r,l.marker)<0)&&(r=l.marker)}return r}function rl(e,t,i,r,n){var l=w(e,t),o=Pe&&l.markedSpans;if(o)for(var a=0;a<o.length;++a){var s=o[a];if(!!s.marker.collapsed){var u=s.marker.find(0),f=M(u.from,i)||Br(s.marker)-Br(n),h=M(u.to,r)||Rr(s.marker)-Rr(n);if(!(f>=0&&h<=0||f<=0&&h>=0)&&(f<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.to,i)>=0:M(u.to,i)>0)||f>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.from,r)<=0:M(u.from,r)<0)))return!0}}}function Ae(e){for(var t;t=tl(e);)e=t.find(-1,!0).line;return e}function ma(e){for(var t;t=zr(e);)e=t.find(1,!0).line;return e}function ba(e){for(var t,i;t=zr(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Ri(e,t){var i=w(e,t),r=Ae(i);return i==r?t:H(r)}function il(e,t){if(t>e.lastLine())return t;var i=w(e,t),r;if(!_e(e,i))return t;for(;r=zr(i);)i=r.find(1,!0).line;return H(i)+1}function _e(e,t){var i=Pe&&t.markedSpans;if(i){for(var r=void 0,n=0;n<i.length;++n)if(r=i[n],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&zi(e,t,r))return!0}}}function zi(e,t,i){if(i.to==null){var r=i.marker.find(1,!0);return zi(e,r.line,$t(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var n=void 0,l=0;l<t.markedSpans.length;++l)if(n=t.markedSpans[l],n.marker.collapsed&&!n.marker.widgetNode&&n.from==i.to&&(n.to==null||n.to!=i.from)&&(n.marker.inclusiveLeft||i.marker.inclusiveRight)&&zi(e,t,n))return!0}function Ee(e){e=Ae(e);for(var t=0,i=e.parent,r=0;r<i.lines.length;++r){var n=i.lines[r];if(n==e)break;t+=n.height}for(var l=i.parent;l;i=l,l=i.parent)for(var o=0;o<l.children.length;++o){var a=l.children[o];if(a==i)break;t+=a.height}return t}function Gr(e){if(e.height==0)return 0;for(var t=e.text.length,i,r=e;i=tl(r);){var n=i.find(0,!0);r=n.from.line,t+=n.from.ch-n.to.ch}for(r=e;i=zr(r);){var l=i.find(0,!0);t-=r.text.length-l.from.ch,r=l.to.line,t+=r.text.length-l.to.ch}return t}function Gi(e){var t=e.display,i=e.doc;t.maxLine=w(i,i.first),t.maxLineLength=Gr(t.maxLine),t.maxLineChanged=!0,i.iter(function(r){var n=Gr(r);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var St=function(e,t,i){this.text=e,$n(this,t),this.height=i?i(this):1};St.prototype.lineNo=function(){return H(this)},xt(St);function xa(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Vn(e),$n(e,i);var n=r?r(e):1;n!=e.height&&De(e,n)}function Ca(e){e.parent=null,Vn(e)}var wa={},Sa={};function nl(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Sa:wa;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function ll(e,t){var i=bt("span",null,null,ie?"padding-right: .1px":null),r={pre:bt("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var l=n?t.rest[n-1]:t.line,o=void 0;r.pos=0,r.addToken=ka,ea(e.display.measure)&&(o=Fe(l,e.doc.direction))&&(r.addToken=Ma(r.addToken,o)),r.map=[];var a=t!=e.display.externalMeasured&&H(l);Da(l,r,_n(e,l,a)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=pi(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=pi(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild($o(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ie){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return G(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=pi(r.pre.className,r.textClass||"")),r}function La(e){var t=k("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ka(e,t,i,r,n,l,o){if(!!t){var a=e.splitSpaces?Ta(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,f;if(!s.test(t))e.col+=t.length,f=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,f),A&&E<9&&(u=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var d=s.exec(t),c=d?d.index-h:t.length-h;if(c){var p=document.createTextNode(a.slice(h,h+c));A&&E<9?f.appendChild(k("span",[p])):f.appendChild(p),e.map.push(e.pos,e.pos+c,p),e.col+=c,e.pos+=c}if(!d)break;h+=c+1;var v=void 0;if(d[0]==" "){var y=e.cm.options.tabSize,m=y-e.col%y;v=f.appendChild(k("span",mi(m),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text"," "),e.col+=m}else d[0]=="\r"||d[0]==`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./codemirror.
|
|
1
|
+
import{a as w}from"./codemirror.7d358602.js";function F(E,j){for(var u=0;u<j.length;u++){const b=j[u];if(typeof b!="string"&&!Array.isArray(b)){for(const s in b)if(s!=="default"&&!(s in E)){const i=Object.getOwnPropertyDescriptor(b,s);i&&Object.defineProperty(E,s,i.get?i:{enumerable:!0,get:()=>b[s]})}}}return Object.freeze(Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}))}var B={exports:{}};(function(E,j){(function(u){u(w.exports)})(function(u){var b={},s=/[^\s\u00a0]/,i=u.Pos,D=u.cmpPos;function N(t){var l=t.search(s);return l==-1?0:l}u.commands.toggleComment=function(t){t.toggleComment()},u.defineExtension("toggleComment",function(t){t||(t=b);for(var l=this,n=1/0,e=this.listSelections(),f=null,m=e.length-1;m>=0;m--){var a=e[m].from(),r=e[m].to();a.line>=n||(r.line>=n&&(r=i(n,0)),n=a.line,f==null?l.uncomment(a,r,t)?f="un":(l.lineComment(a,r,t),f="line"):f=="un"?l.uncomment(a,r,t):l.lineComment(a,r,t))}});function q(t,l,n){return/\bstring\b/.test(t.getTokenTypeAt(i(l.line,0)))&&!/^[\'\"\`]/.test(n)}function M(t,l){var n=t.getMode();return n.useInnerComments===!1||!n.innerMode?n:t.getModeAt(l)}u.defineExtension("lineComment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=e.getLine(t.line);if(!(m==null||q(e,t,m))){var a=n.lineComment||f.lineComment;if(!a){(n.blockCommentStart||f.blockCommentStart)&&(n.fullLines=!0,e.blockComment(t,l,n));return}var r=Math.min(l.ch!=0||l.line==t.line?l.line+1:l.line,e.lastLine()+1),L=n.padding==null?" ":n.padding,g=n.commentBlankLines||t.line==l.line;e.operation(function(){if(n.indent){for(var d=null,c=t.line;c<r;++c){var v=e.getLine(c),h=v.slice(0,N(v));(d==null||d.length>h.length)&&(d=h)}for(var c=t.line;c<r;++c){var v=e.getLine(c),o=d.length;!g&&!s.test(v)||(v.slice(0,o)!=d&&(o=N(v)),e.replaceRange(d+a+L,i(c,0),i(c,o)))}}else for(var c=t.line;c<r;++c)(g||s.test(e.getLine(c)))&&e.replaceRange(a+L,i(c,0))})}}),u.defineExtension("blockComment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=n.blockCommentStart||f.blockCommentStart,a=n.blockCommentEnd||f.blockCommentEnd;if(!m||!a){(n.lineComment||f.lineComment)&&n.fullLines!=!1&&e.lineComment(t,l,n);return}if(!/\bcomment\b/.test(e.getTokenTypeAt(i(t.line,0)))){var r=Math.min(l.line,e.lastLine());r!=t.line&&l.ch==0&&s.test(e.getLine(r))&&--r;var L=n.padding==null?" ":n.padding;t.line>r||e.operation(function(){if(n.fullLines!=!1){var g=s.test(e.getLine(r));e.replaceRange(L+a,i(r)),e.replaceRange(m+L,i(t.line,0));var d=n.blockCommentLead||f.blockCommentLead;if(d!=null)for(var c=t.line+1;c<=r;++c)(c!=r||g)&&e.replaceRange(d+L,i(c,0))}else{var v=D(e.getCursor("to"),l)==0,h=!e.somethingSelected();e.replaceRange(a,l),v&&e.setSelection(h?l:e.getCursor("from"),l),e.replaceRange(m,t)}})}}),u.defineExtension("uncomment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=Math.min(l.ch!=0||l.line==t.line?l.line:l.line-1,e.lastLine()),a=Math.min(t.line,m),r=n.lineComment||f.lineComment,L=[],g=n.padding==null?" ":n.padding,d;e:{if(!r)break e;for(var c=a;c<=m;++c){var v=e.getLine(c),h=v.indexOf(r);if(h>-1&&!/comment/.test(e.getTokenTypeAt(i(c,h+1)))&&(h=-1),h==-1&&s.test(v)||h>-1&&s.test(v.slice(0,h)))break e;L.push(v)}if(e.operation(function(){for(var k=a;k<=m;++k){var x=L[k-a],p=x.indexOf(r),C=p+r.length;p<0||(x.slice(C,C+g.length)==g&&(C+=g.length),d=!0,e.replaceRange("",i(k,p),i(k,C)))}}),d)return!0}var o=n.blockCommentStart||f.blockCommentStart,S=n.blockCommentEnd||f.blockCommentEnd;if(!o||!S)return!1;var P=n.blockCommentLead||f.blockCommentLead,T=e.getLine(a),A=T.indexOf(o);if(A==-1)return!1;var I=m==a?T:e.getLine(m),O=I.indexOf(S,m==a?A+o.length:0),W=i(a,A+1),$=i(m,O+1);if(O==-1||!/comment/.test(e.getTokenTypeAt(W))||!/comment/.test(e.getTokenTypeAt($))||e.getRange(W,$,`
|
|
2
2
|
`).indexOf(S)>-1)return!1;var y=T.lastIndexOf(o,t.ch),R=y==-1?-1:T.slice(0,t.ch).indexOf(S,y+o.length);if(y!=-1&&R!=-1&&R+S.length!=t.ch)return!1;R=I.indexOf(S,l.ch);var z=I.slice(l.ch).lastIndexOf(o,R-l.ch);return y=R==-1||z==-1?-1:l.ch+z,R!=-1&&y!=-1&&y!=l.ch?!1:(e.operation(function(){e.replaceRange("",i(m,O-(g&&I.slice(O-g.length,O)==g?g.length:0)),i(m,O+S.length));var k=A+o.length;if(g&&T.slice(k,k+g.length)==g&&(k+=g.length),e.replaceRange("",i(a,A),i(a,k)),P)for(var x=a+1;x<=m;++x){var p=e.getLine(x),C=p.indexOf(P);if(!(C==-1||s.test(p.slice(0,C)))){var _=C+P.length;g&&p.slice(_,_+g.length)==g&&(_+=g.length),e.replaceRange("",i(x,C),i(x,_))}}}),!0)})})})();const G=B.exports,J=F({__proto__:null,default:G},[B.exports]);export{J as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h}from"./codemirror.
|
|
1
|
+
import{a as h}from"./codemirror.7d358602.js";var m={exports:{}},p;function E(){return p||(p=1,function(y,b){(function(n){n(h.exports)})(function(n){function r(f,o,e){var u=f.getWrapperElement(),l;return l=u.appendChild(document.createElement("div")),e?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof o=="string"?l.innerHTML=o:l.appendChild(o),n.addClass(u,"dialog-opened"),l}function d(f,o){f.state.currentNotificationClose&&f.state.currentNotificationClose(),f.state.currentNotificationClose=o}n.defineExtension("openDialog",function(f,o,e){e||(e={}),d(this,null);var u=r(this,f,e.bottom),l=!1,c=this;function i(t){if(typeof t=="string")a.value=t;else{if(l)return;l=!0,n.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),c.focus(),e.onClose&&e.onClose(u)}}var a=u.getElementsByTagName("input")[0],s;return a?(a.focus(),e.value&&(a.value=e.value,e.selectValueOnOpen!==!1&&a.select()),e.onInput&&n.on(a,"input",function(t){e.onInput(t,a.value,i)}),e.onKeyUp&&n.on(a,"keyup",function(t){e.onKeyUp(t,a.value,i)}),n.on(a,"keydown",function(t){e&&e.onKeyDown&&e.onKeyDown(t,a.value,i)||((t.keyCode==27||e.closeOnEnter!==!1&&t.keyCode==13)&&(a.blur(),n.e_stop(t),i()),t.keyCode==13&&o(a.value,t))}),e.closeOnBlur!==!1&&n.on(u,"focusout",function(t){t.relatedTarget!==null&&i()})):(s=u.getElementsByTagName("button")[0])&&(n.on(s,"click",function(){i(),c.focus()}),e.closeOnBlur!==!1&&n.on(s,"blur",i),s.focus()),i}),n.defineExtension("openConfirm",function(f,o,e){d(this,null);var u=r(this,f,e&&e.bottom),l=u.getElementsByTagName("button"),c=!1,i=this,a=1;function s(){c||(c=!0,n.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),i.focus())}l[0].focus();for(var t=0;t<l.length;++t){var v=l[t];(function(g){n.on(v,"click",function(N){n.e_preventDefault(N),s(),g&&g(i)})})(o[t]),n.on(v,"blur",function(){--a,setTimeout(function(){a<=0&&s()},200)}),n.on(v,"focus",function(){++a})}}),n.defineExtension("openNotification",function(f,o){d(this,i);var e=r(this,f,o&&o.bottom),u=!1,l,c=o&&typeof o.duration!="undefined"?o.duration:5e3;function i(){u||(u=!0,clearTimeout(l),n.rmClass(e.parentNode,"dialog-opened"),e.parentNode.removeChild(e))}return n.on(e,"click",function(a){n.e_preventDefault(a),i()}),c&&(l=setTimeout(i,c)),i})})}()),m.exports}export{E as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as f}from"./dialog.
|
|
1
|
+
import{r as f}from"./dialog.3128b744.js";function l(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=f();const c=l({__proto__:null,default:n},[n]);export{c as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as U}from"./codemirror.
|
|
1
|
+
import{a as U}from"./codemirror.7d358602.js";function A(w,x){for(var i=0;i<x.length;i++){const d=x[i];if(typeof d!="string"&&!Array.isArray(d)){for(const c in d)if(c!=="default"&&!(c in w)){const F=Object.getOwnPropertyDescriptor(d,c);F&&Object.defineProperty(w,c,F.get?F:{enumerable:!0,get:()=>d[c]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var N={exports:{}},b={exports:{}},E;function z(){return E||(E=1,function(w,x){(function(i){i(U.exports)})(function(i){function d(t,r,f,a){if(f&&f.call){var s=f;f=null}else var s=p(t,f,"rangeFinder");typeof r=="number"&&(r=i.Pos(r,0));var O=p(t,f,"minFoldSize");function k(l){var o=s(t,r);if(!o||o.to.line-o.from.line<O)return null;if(a==="fold")return o;for(var g=t.findMarksAt(o.from),v=0;v<g.length;++v)if(g[v].__isFold){if(!l)return null;o.cleared=!0,g[v].clear()}return o}var u=k(!0);if(p(t,f,"scanUp"))for(;!u&&r.line>t.firstLine();)r=i.Pos(r.line-1,0),u=k(!1);if(!(!u||u.cleared||a==="unfold")){var e=c(t,f,u);i.on(e,"mousedown",function(l){n.clear(),i.e_preventDefault(l)});var n=t.markText(u.from,u.to,{replacedWith:e,clearOnEnter:p(t,f,"clearOnEnter"),__isFold:!0});n.on("clear",function(l,o){i.signal(t,"unfold",t,l,o)}),i.signal(t,"fold",t,u.from,u.to)}}function c(t,r,f){var a=p(t,r,"widget");if(typeof a=="function"&&(a=a(f.from,f.to)),typeof a=="string"){var s=document.createTextNode(a);a=document.createElement("span"),a.appendChild(s),a.className="CodeMirror-foldmarker"}else a&&(a=a.cloneNode(!0));return a}i.newFoldFunction=function(t,r){return function(f,a){d(f,a,{rangeFinder:t,widget:r})}},i.defineExtension("foldCode",function(t,r,f){d(this,t,r,f)}),i.defineExtension("isFolded",function(t){for(var r=this.findMarksAt(t),f=0;f<r.length;++f)if(r[f].__isFold)return!0}),i.commands.toggleFold=function(t){t.foldCode(t.getCursor())},i.commands.fold=function(t){t.foldCode(t.getCursor(),null,"fold")},i.commands.unfold=function(t){t.foldCode(t.getCursor(),{scanUp:!1},"unfold")},i.commands.foldAll=function(t){t.operation(function(){for(var r=t.firstLine(),f=t.lastLine();r<=f;r++)t.foldCode(i.Pos(r,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(t){t.operation(function(){for(var r=t.firstLine(),f=t.lastLine();r<=f;r++)t.foldCode(i.Pos(r,0),{scanUp:!1},"unfold")})},i.registerHelper("fold","combine",function(){var t=Array.prototype.slice.call(arguments,0);return function(r,f){for(var a=0;a<t.length;++a){var s=t[a](r,f);if(s)return s}}}),i.registerHelper("fold","auto",function(t,r){for(var f=t.getHelpers(r,"fold"),a=0;a<f.length;a++){var s=f[a](t,r);if(s)return s}});var F={rangeFinder:i.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};i.defineOption("foldOptions",null);function p(t,r,f){if(r&&r[f]!==void 0)return r[f];var a=t.options.foldOptions;return a&&a[f]!==void 0?a[f]:F[f]}i.defineExtension("foldOption",function(t,r){return p(this,t,r)})})}()),b.exports}(function(w,x){(function(i){i(U.exports,z())})(function(i){i.defineOption("foldGutter",!1,function(e,n,l){l&&l!=i.Init&&(e.clearGutter(e.state.foldGutter.options.gutter),e.state.foldGutter=null,e.off("gutterClick",s),e.off("changes",O),e.off("viewportChange",k),e.off("fold",u),e.off("unfold",u),e.off("swapDoc",O)),n&&(e.state.foldGutter=new c(F(n)),a(e),e.on("gutterClick",s),e.on("changes",O),e.on("viewportChange",k),e.on("fold",u),e.on("unfold",u),e.on("swapDoc",O))});var d=i.Pos;function c(e){this.options=e,this.from=this.to=0}function F(e){return e===!0&&(e={}),e.gutter==null&&(e.gutter="CodeMirror-foldgutter"),e.indicatorOpen==null&&(e.indicatorOpen="CodeMirror-foldgutter-open"),e.indicatorFolded==null&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function p(e,n){for(var l=e.findMarks(d(n,0),d(n+1,0)),o=0;o<l.length;++o)if(l[o].__isFold){var g=l[o].find(-1);if(g&&g.line===n)return l[o]}}function t(e){if(typeof e=="string"){var n=document.createElement("div");return n.className=e+" CodeMirror-guttermarker-subtle",n}else return e.cloneNode(!0)}function r(e,n,l){var o=e.state.foldGutter.options,g=n-1,v=e.foldOption(o,"minFoldSize"),G=e.foldOption(o,"rangeFinder"),m=typeof o.indicatorFolded=="string"&&f(o.indicatorFolded),S=typeof o.indicatorOpen=="string"&&f(o.indicatorOpen);e.eachLine(n,l,function(T){++g;var y=null,h=T.gutterMarkers;if(h&&(h=h[o.gutter]),p(e,g)){if(m&&h&&m.test(h.className))return;y=t(o.indicatorFolded)}else{var P=d(g,0),_=G&&G(e,P);if(_&&_.to.line-_.from.line>=v){if(S&&h&&S.test(h.className))return;y=t(o.indicatorOpen)}}!y&&!h||e.setGutterMarker(T,o.gutter,y)})}function f(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function a(e){var n=e.getViewport(),l=e.state.foldGutter;!l||(e.operation(function(){r(e,n.from,n.to)}),l.from=n.from,l.to=n.to)}function s(e,n,l){var o=e.state.foldGutter;if(!!o){var g=o.options;if(l==g.gutter){var v=p(e,n);v?v.clear():e.foldCode(d(n,0),g)}}}function O(e){var n=e.state.foldGutter;if(!!n){var l=n.options;n.from=n.to=0,clearTimeout(n.changeUpdate),n.changeUpdate=setTimeout(function(){a(e)},l.foldOnChangeTimeSpan||600)}}function k(e){var n=e.state.foldGutter;if(!!n){var l=n.options;clearTimeout(n.changeUpdate),n.changeUpdate=setTimeout(function(){var o=e.getViewport();n.from==n.to||o.from-n.to>20||n.from-o.to>20?a(e):e.operation(function(){o.from<n.from&&(r(e,o.from,n.from),n.from=o.from),o.to>n.to&&(r(e,n.to,o.to),n.to=o.to)})},l.updateViewportTimeSpan||400)}}function u(e,n){var l=e.state.foldGutter;if(!!l){var o=n.line;o>=l.from&&o<l.to&&r(e,o,o+1)}}})})();const L=N.exports,j=A({__proto__:null,default:L},[N.exports]);export{j as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as h}from"./index.
|
|
1
|
+
import{o as h}from"./index.8ea1588f.js";import{a as O}from"./codemirror.7d358602.js";import{r as j}from"./index.b3abf48b.js";import{f as _}from"./forEachState.b0c39469.js";function V(n,i){for(var e=0;e<i.length;e++){const r=i[e];if(typeof r!="string"&&!Array.isArray(r)){for(const t in r)if(t!=="default"&&!(t in n)){const a=Object.getOwnPropertyDescriptor(r,t);a&&Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var y={},v={};Object.defineProperty(v,"__esModule",{value:!0});function D(n,i,e){var r=N(e,g(i.string));if(!!r){var t=i.type!==null&&/"|\w/.test(i.string[0])?i.start:i.end;return{list:r,from:{line:n.line,ch:t},to:{line:n.line,ch:i.end}}}}v.default=D;function N(n,i){if(!i)return d(n,function(a){return!a.isDeprecated});var e=n.map(function(a){return{proximity:P(g(a.text),i),entry:a}}),r=d(d(e,function(a){return a.proximity<=2}),function(a){return!a.entry.isDeprecated}),t=r.sort(function(a,l){return(a.entry.isDeprecated?1:0)-(l.entry.isDeprecated?1:0)||a.proximity-l.proximity||a.entry.text.length-l.entry.text.length});return t.map(function(a){return a.entry})}function d(n,i){var e=n.filter(i);return e.length===0?n:e}function g(n){return n.toLowerCase().replace(/\W/g,"")}function P(n,i){var e=T(i,n);return n.length>i.length&&(e-=n.length-i.length-1,e+=n.indexOf(i)===0?0:.5),e}function T(n,i){var e,r,t=[],a=n.length,l=i.length;for(e=0;e<=a;e++)t[e]=[e];for(r=1;r<=l;r++)t[0][r]=r;for(e=1;e<=a;e++)for(r=1;r<=l;r++){var u=n[e-1]===i[r-1]?0:1;t[e][r]=Math.min(t[e-1][r]+1,t[e][r-1]+1,t[e-1][r-1]+u),e>1&&r>1&&n[e-1]===i[r-2]&&n[e-2]===i[r-1]&&(t[e][r]=Math.min(t[e][r],t[e-2][r-2]+u))}return t[a][l]}var m=h&&h.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(y,"__esModule",{value:!0});var c=m(O.exports),o=j,G=m(_),p=m(v);c.default.registerHelper("hint","graphql-variables",function(n,i){var e=n.getCursor(),r=n.getTokenAt(e),t=M(e,r,i);return t&&t.list&&t.list.length>0&&(t.from=c.default.Pos(t.from.line,t.from.ch),t.to=c.default.Pos(t.to.line,t.to.ch),c.default.signal(n,"hasCompletion",n,t,r)),t});function M(n,i,e){var r=i.state.kind==="Invalid"?i.state.prevState:i.state,t=r.kind,a=r.step;if(t==="Document"&&a===0)return p.default(n,i,[{text:"{"}]);var l=e.variableToType;if(!!l){var u=S(l,i.state);if(t==="Document"||t==="Variable"&&a===0){var b=Object.keys(l);return p.default(n,i,b.map(function(f){return{text:'"'+f+'": ',type:l[f]}}))}if((t==="ObjectValue"||t==="ObjectField"&&a===0)&&u.fields){var x=Object.keys(u.fields).map(function(f){return u.fields[f]});return p.default(n,i,x.map(function(f){return{text:'"'+f.name+'": ',type:f.type,description:f.description}}))}if(t==="StringValue"||t==="NumberValue"||t==="BooleanValue"||t==="NullValue"||t==="ListValue"&&a===1||t==="ObjectField"&&a===2||t==="Variable"&&a===2){var s=u.type?o.getNamedType(u.type):void 0;if(s instanceof o.GraphQLInputObjectType)return p.default(n,i,[{text:"{"}]);if(s instanceof o.GraphQLEnumType){var L=s.getValues();return p.default(n,i,L.map(function(f){return{text:'"'+f.name+'"',type:s,description:f.description}}))}else if(s===o.GraphQLBoolean)return p.default(n,i,[{text:"true",type:o.GraphQLBoolean,description:"Not false."},{text:"false",type:o.GraphQLBoolean,description:"Not true."}])}}}function S(n,i){var e={type:null,fields:null};return G.default(i,function(r){if(r.kind==="Variable")e.type=n[r.name];else if(r.kind==="ListValue"){var t=e.type?o.getNullableType(e.type):void 0;e.type=t instanceof o.GraphQLList?t.ofType:null}else if(r.kind==="ObjectValue"){var a=e.type?o.getNamedType(e.type):void 0;e.fields=a instanceof o.GraphQLInputObjectType?a.getFields():null}else if(r.kind==="ObjectField"){var l=r.name&&e.fields?e.fields[r.name]:null;e.type=l&&l.type}}),e}const $=V({__proto__:null,default:y},[y]);export{$ as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as c}from"./index.
|
|
1
|
+
import{o as c}from"./index.8ea1588f.js";import{a as m}from"./codemirror.7d358602.js";import"./show-hint.d4acad25.js";import{r as d}from"./index.916b186e.js";function _(e,l){for(var n=0;n<l.length;n++){const o=l[n];if(typeof o!="string"&&!Array.isArray(o)){for(const t in o)if(t!=="default"&&!(t in e)){const a=Object.getOwnPropertyDescriptor(o,t);a&&Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>o[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var u={},h=c&&c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(u,"__esModule",{value:!0});var s=h(m.exports),f=d;s.default.registerHelper("hint","graphql",function(e,l){var n=l.schema;if(!!n){var o=e.getCursor(),t=e.getTokenAt(o),a=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end,p=new f.Position(o.line,a),g=f.getAutocompleteSuggestions(n,e.getValue(),p,t,l.externalFragments),r={list:g.map(function(i){return{text:i.label,type:i.type,description:i.documentation,isDeprecated:i.isDeprecated,deprecationReason:i.deprecationReason}}),from:{line:o.line,ch:a},to:{line:o.line,ch:t.end}};return r&&r.list&&r.list.length>0&&(r.from=s.default.Pos(r.from.line,r.from.ch),r.to=s.default.Pos(r.to.line,r.to.ch),s.default.signal(e,"hasCompletion",e,r,t)),r}});const j=_({__proto__:null,default:u},[u]);export{j as h};
|