@cubejs-backend/server-core 0.34.62 → 0.35.0

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.
Files changed (39) hide show
  1. package/dist/src/core/optionsValidate.d.ts.map +1 -1
  2. package/dist/src/core/optionsValidate.js +0 -1
  3. package/dist/src/core/optionsValidate.js.map +1 -1
  4. package/package.json +13 -13
  5. package/playground/assets/{CachePane-0d8d5274.js → CachePane-38601448.js} +1 -1
  6. package/playground/assets/{GraphiQLSandbox-36f4f215.js → GraphiQLSandbox-7cd5c7a2.js} +2 -2
  7. package/playground/assets/{SchemaReference-77afe528.js → SchemaReference-1042d5f6.js} +1 -1
  8. package/playground/assets/{SqlQueryTab-de49a036.js → SqlQueryTab-b38898ba.js} +1 -1
  9. package/playground/assets/{brace-fold-752d3439.js → brace-fold-535c79c7.js} +1 -1
  10. package/playground/assets/{closebrackets-79ff5e13.js → closebrackets-9ed1e96e.js} +1 -1
  11. package/playground/assets/{codemirror-b2fa3cbd.js → codemirror-18ee3ced.js} +1 -1
  12. package/playground/assets/{comment-84589240.js → comment-ce9c25c1.js} +1 -1
  13. package/playground/assets/{dialog-a6f97aa0.js → dialog-9ccd0c12.js} +1 -1
  14. package/playground/assets/{dialog-841f9076.js → dialog-9fa2df80.js} +1 -1
  15. package/playground/assets/{foldgutter-c88739e4.js → foldgutter-06d2e4fa.js} +1 -1
  16. package/playground/assets/{hint-adb6473a.js → hint-02164e1b.js} +1 -1
  17. package/playground/assets/{hint-f9704a89.js → hint-332d4bff.js} +1 -1
  18. package/playground/assets/{index-19f9d0f7.js → index-ac8fb358.js} +1 -1
  19. package/playground/assets/{index-1fc0bd2b.js → index-d2bed431.js} +6 -6
  20. package/playground/assets/{index-8dd87c18.js → index-f97644d0.js} +1 -1
  21. package/playground/assets/{info-addon-3482d342.js → info-addon-2e036aed.js} +1 -1
  22. package/playground/assets/{info-96e5ebae.js → info-fd867a84.js} +1 -1
  23. package/playground/assets/{javascript-730d0a78.js → javascript-eac38182.js} +1 -1
  24. package/playground/assets/{jump-ec87b962.js → jump-c8813e6e.js} +1 -1
  25. package/playground/assets/{jump-to-line-f99363a6.js → jump-to-line-f7e3c716.js} +1 -1
  26. package/playground/assets/{lint-f478f13a.js → lint-03a1d5ea.js} +1 -1
  27. package/playground/assets/{lint-203568ac.js → lint-669b73d4.js} +1 -1
  28. package/playground/assets/{lint-7fadb11d.js → lint-e4934feb.js} +1 -1
  29. package/playground/assets/{matchbrackets-01002421.js → matchbrackets-1d734f73.js} +1 -1
  30. package/playground/assets/{matchbrackets-5e3a604b.js → matchbrackets-537330cd.js} +1 -1
  31. package/playground/assets/{mode-dd099698.js → mode-a7e72549.js} +1 -1
  32. package/playground/assets/{mode-fda4844b.js → mode-ecea1abe.js} +1 -1
  33. package/playground/assets/{mode-eb27c6c0.js → mode-f1de3d33.js} +1 -1
  34. package/playground/assets/{search-37c02bd7.js → search-474b16bf.js} +1 -1
  35. package/playground/assets/{searchcursor-74742bec.js → searchcursor-5199514e.js} +1 -1
  36. package/playground/assets/{searchcursor-a07e162a.js → searchcursor-f4b4cfdf.js} +1 -1
  37. package/playground/assets/{show-hint-55aa77fb.js → show-hint-73a3412b.js} +1 -1
  38. package/playground/assets/{sublime-507f12bf.js → sublime-f2fd16fd.js} +1 -1
  39. package/playground/index.html +1 -1
@@ -1 +1 @@
1
- import{g as ot}from"./index-1fc0bd2b.js";import{a as rt}from"./codemirror-b2fa3cbd.js";function ct(x,I){for(var r=0;r<I.length;r++){const y=I[r];if(typeof y!="string"&&!Array.isArray(y)){for(const m in y)if(m!=="default"&&!(m in x)){const w=Object.getOwnPropertyDescriptor(y,m);w&&Object.defineProperty(x,m,w.get?w:{enumerable:!0,get:()=>y[m]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var lt={exports:{}};(function(x,I){(function(r){r(rt)})(function(r){var y="CodeMirror-hint",m="CodeMirror-hint-active";r.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var s in i)n[s]=i[s];return t.showHint(n)},r.defineExtension("showHint",function(t){t=Q(this,this.getCursor("start"),t);var e=this.listSelections();if(!(e.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<e.length;i++)if(e[i].head.line!=e[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var n=this.state.completionActive=new w(this,t);n.options.hint&&(r.signal(this,"startCompletion",this),n.update(!0))}}),r.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function w(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}var G=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},J=window.cancelAnimationFrame||clearTimeout;w.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&r.signal(this.data,"close"),this.widget&&this.widget.close(),r.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,e){var i=t.list[e],n=this;this.cm.operation(function(){i.hint?i.hint(n.cm,t,i):n.cm.replaceRange(R(i),i.from||t.from,i.to||t.to,"complete"),r.signal(t,"pick",i),n.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(J(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=G(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(t){if(this.tick!=null){var e=this,i=++this.tick;K(this.options.hint,this.cm,this.options,function(n){e.tick==i&&e.finishUpdate(n,t)})}},finishUpdate:function(t,e){this.data&&r.signal(this.data,"update");var i=this.widget&&this.widget.picked||e&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&t.list.length==1?this.pick(t,0):(this.widget=new B(this,t),r.signal(t,"shown")))}};function Q(t,e,i){var n=t.options.hintOptions,s={};for(var c in U)s[c]=U[c];if(n)for(var c in n)n[c]!==void 0&&(s[c]=n[c]);if(i)for(var c in i)i[c]!==void 0&&(s[c]=i[c]);return s.hint.resolve&&(s.hint=s.hint.resolve(t,e)),s}function R(t){return typeof t=="string"?t:t.text}function Z(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(-e.menuSize()+1,!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},n=/Mac/.test(navigator.platform);n&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var s=t.options.customKeys,c=s?{}:i;function o(u,l){var h;typeof l!="string"?h=function(H){return l(H,e)}:i.hasOwnProperty(l)?h=i[l]:h=l,c[u]=h}if(s)for(var f in s)s.hasOwnProperty(f)&&o(f,s[f]);var a=t.options.extraKeys;if(a)for(var f in a)a.hasOwnProperty(f)&&o(f,a[f]);return c}function _(t,e){for(;e&&e!=t;){if(e.nodeName.toUpperCase()==="LI"&&e.parentNode==t)return e;e=e.parentNode}}function B(t,e){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=e,this.picked=!1;var i=this,n=t.cm,s=n.getInputField().ownerDocument,c=s.defaultView||s.parentWindow,o=this.hints=s.createElement("ul");o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.id=this.id;var f=t.cm.options.theme;o.className="CodeMirror-hints "+f,this.selectedHint=e.selectedHint||0;for(var a=e.list,u=0;u<a.length;++u){var l=o.appendChild(s.createElement("li")),h=a[u],H=y+(u!=this.selectedHint?"":" "+m);h.className!=null&&(H=h.className+" "+H),l.className=H,u==this.selectedHint&&l.setAttribute("aria-selected","true"),l.id=this.id+"-"+u,l.setAttribute("role","option"),h.render?h.render(l,e,h):l.appendChild(s.createTextNode(h.displayText||R(h))),l.hintId=u}var b=t.options.container||s.body,v=n.cursorCoords(t.options.alignWithWord?e.from:null),S=v.left,T=v.bottom,D=!0,k=0,O=0;if(b!==s.body){var it=["absolute","relative","fixed"].indexOf(c.getComputedStyle(b).position)!==-1,C=it?b:b.offsetParent,j=C.getBoundingClientRect(),M=s.body.getBoundingClientRect();k=j.left-M.left-C.scrollLeft,O=j.top-M.top-C.scrollTop}o.style.left=S-k+"px",o.style.top=T-O+"px";var F=c.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),W=c.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);b.appendChild(o),n.getInputField().setAttribute("aria-autocomplete","list"),n.getInputField().setAttribute("aria-owns",this.id),n.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var g=t.options.moveOnOverlap?o.getBoundingClientRect():new DOMRect,z=t.options.paddingForScrollbar?o.scrollHeight>o.clientHeight+1:!1,A;setTimeout(function(){A=n.getScrollInfo()});var nt=g.bottom-W;if(nt>0){var L=g.bottom-g.top,st=v.top-(v.bottom-g.top);if(st-L>0)o.style.top=(T=v.top-L-O)+"px",D=!1;else if(L>W){o.style.height=W-5+"px",o.style.top=(T=v.bottom-g.top-O)+"px";var V=n.getCursor();e.from.ch!=V.ch&&(v=n.cursorCoords(V),o.style.left=(S=v.left-k)+"px",g=o.getBoundingClientRect())}}var E=g.right-F;if(z&&(E+=n.display.nativeBarWidth),E>0&&(g.right-g.left>F&&(o.style.width=F-5+"px",E-=g.right-g.left-F),o.style.left=(S=v.left-E-k)+"px"),z)for(var N=o.firstChild;N;N=N.nextSibling)N.style.paddingRight=n.display.nativeBarWidth+"px";if(n.addKeyMap(this.keyMap=Z(t,{moveFocus:function(p,d){i.changeActive(i.selectedHint+p,d)},setFocus:function(p){i.changeActive(p)},menuSize:function(){return i.screenAmount()},length:a.length,close:function(){t.close()},pick:function(){i.pick()},data:e})),t.options.closeOnUnfocus){var q;n.on("blur",this.onBlur=function(){q=setTimeout(function(){t.close()},100)}),n.on("focus",this.onFocus=function(){clearTimeout(q)})}n.on("scroll",this.onScroll=function(){var p=n.getScrollInfo(),d=n.getWrapperElement().getBoundingClientRect();A||(A=n.getScrollInfo());var $=T+A.top-p.top,P=$-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if(D||(P+=o.offsetHeight),P<=d.top||P>=d.bottom)return t.close();o.style.top=$+"px",o.style.left=S+A.left-p.left+"px"}),r.on(o,"dblclick",function(p){var d=_(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),i.pick())}),r.on(o,"click",function(p){var d=_(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),t.options.completeOnSingleClick&&i.pick())}),r.on(o,"mousedown",function(){setTimeout(function(){n.focus()},20)});var Y=this.getSelectedHintRange();return(Y.from!==0||Y.to!==0)&&this.scrollToActive(),r.signal(e,"select",a[this.selectedHint],o.childNodes[this.selectedHint]),!0}B.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,e){if(t>=this.data.list.length?t=e?this.data.list.length-1:0:t<0&&(t=e?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+m,""),i.removeAttribute("aria-selected")),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+m,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}};function tt(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}function K(t,e,i,n){if(t.async)t(e,n,i);else{var s=t(e,i);s&&s.then?s.then(n):n(s)}}function et(t,e){var i=t.getHelpers(e,"hint"),n;if(i.length){var s=function(c,o,f){var a=tt(c,i);function u(l){if(l==a.length)return o(null);K(a[l],c,f,function(h){h&&h.list.length>0?o(h):u(l+1)})}u(0)};return s.async=!0,s.supportsSelection=!0,s}else return(n=t.getHelper(t.getCursor(),"hintWords"))?function(c){return r.hint.fromList(c,{words:n})}:r.hint.anyword?function(c,o){return r.hint.anyword(c,o)}:function(){}}r.registerHelper("hint","auto",{resolve:et}),r.registerHelper("hint","fromList",function(t,e){var i=t.getCursor(),n=t.getTokenAt(i),s,c=r.Pos(i.line,n.start),o=i;n.start<i.ch&&/\w/.test(n.string.charAt(i.ch-n.start-1))?s=n.string.substr(0,i.ch-n.start):(s="",c=i);for(var f=[],a=0;a<e.words.length;a++){var u=e.words[a];u.slice(0,s.length)==s&&f.push(u)}if(f.length)return{list:f,from:c,to:o}}),r.commands.autocomplete=r.showHint;var U={hint:r.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption("hintOptions",null)})})();var X=lt.exports;const at=ot(X),ut=ct({__proto__:null,default:at},[X]);export{ut as s};
1
+ import{g as ot}from"./index-d2bed431.js";import{a as rt}from"./codemirror-18ee3ced.js";function ct(x,I){for(var r=0;r<I.length;r++){const y=I[r];if(typeof y!="string"&&!Array.isArray(y)){for(const m in y)if(m!=="default"&&!(m in x)){const w=Object.getOwnPropertyDescriptor(y,m);w&&Object.defineProperty(x,m,w.get?w:{enumerable:!0,get:()=>y[m]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var lt={exports:{}};(function(x,I){(function(r){r(rt)})(function(r){var y="CodeMirror-hint",m="CodeMirror-hint-active";r.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var s in i)n[s]=i[s];return t.showHint(n)},r.defineExtension("showHint",function(t){t=Q(this,this.getCursor("start"),t);var e=this.listSelections();if(!(e.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<e.length;i++)if(e[i].head.line!=e[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var n=this.state.completionActive=new w(this,t);n.options.hint&&(r.signal(this,"startCompletion",this),n.update(!0))}}),r.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function w(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}var G=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},J=window.cancelAnimationFrame||clearTimeout;w.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&r.signal(this.data,"close"),this.widget&&this.widget.close(),r.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,e){var i=t.list[e],n=this;this.cm.operation(function(){i.hint?i.hint(n.cm,t,i):n.cm.replaceRange(R(i),i.from||t.from,i.to||t.to,"complete"),r.signal(t,"pick",i),n.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(J(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=G(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(t){if(this.tick!=null){var e=this,i=++this.tick;K(this.options.hint,this.cm,this.options,function(n){e.tick==i&&e.finishUpdate(n,t)})}},finishUpdate:function(t,e){this.data&&r.signal(this.data,"update");var i=this.widget&&this.widget.picked||e&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(i&&t.list.length==1?this.pick(t,0):(this.widget=new B(this,t),r.signal(t,"shown")))}};function Q(t,e,i){var n=t.options.hintOptions,s={};for(var c in U)s[c]=U[c];if(n)for(var c in n)n[c]!==void 0&&(s[c]=n[c]);if(i)for(var c in i)i[c]!==void 0&&(s[c]=i[c]);return s.hint.resolve&&(s.hint=s.hint.resolve(t,e)),s}function R(t){return typeof t=="string"?t:t.text}function Z(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(-e.menuSize()+1,!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},n=/Mac/.test(navigator.platform);n&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var s=t.options.customKeys,c=s?{}:i;function o(u,l){var h;typeof l!="string"?h=function(H){return l(H,e)}:i.hasOwnProperty(l)?h=i[l]:h=l,c[u]=h}if(s)for(var f in s)s.hasOwnProperty(f)&&o(f,s[f]);var a=t.options.extraKeys;if(a)for(var f in a)a.hasOwnProperty(f)&&o(f,a[f]);return c}function _(t,e){for(;e&&e!=t;){if(e.nodeName.toUpperCase()==="LI"&&e.parentNode==t)return e;e=e.parentNode}}function B(t,e){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=e,this.picked=!1;var i=this,n=t.cm,s=n.getInputField().ownerDocument,c=s.defaultView||s.parentWindow,o=this.hints=s.createElement("ul");o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.id=this.id;var f=t.cm.options.theme;o.className="CodeMirror-hints "+f,this.selectedHint=e.selectedHint||0;for(var a=e.list,u=0;u<a.length;++u){var l=o.appendChild(s.createElement("li")),h=a[u],H=y+(u!=this.selectedHint?"":" "+m);h.className!=null&&(H=h.className+" "+H),l.className=H,u==this.selectedHint&&l.setAttribute("aria-selected","true"),l.id=this.id+"-"+u,l.setAttribute("role","option"),h.render?h.render(l,e,h):l.appendChild(s.createTextNode(h.displayText||R(h))),l.hintId=u}var b=t.options.container||s.body,v=n.cursorCoords(t.options.alignWithWord?e.from:null),S=v.left,T=v.bottom,D=!0,k=0,O=0;if(b!==s.body){var it=["absolute","relative","fixed"].indexOf(c.getComputedStyle(b).position)!==-1,C=it?b:b.offsetParent,j=C.getBoundingClientRect(),M=s.body.getBoundingClientRect();k=j.left-M.left-C.scrollLeft,O=j.top-M.top-C.scrollTop}o.style.left=S-k+"px",o.style.top=T-O+"px";var F=c.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),W=c.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);b.appendChild(o),n.getInputField().setAttribute("aria-autocomplete","list"),n.getInputField().setAttribute("aria-owns",this.id),n.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var g=t.options.moveOnOverlap?o.getBoundingClientRect():new DOMRect,z=t.options.paddingForScrollbar?o.scrollHeight>o.clientHeight+1:!1,A;setTimeout(function(){A=n.getScrollInfo()});var nt=g.bottom-W;if(nt>0){var L=g.bottom-g.top,st=v.top-(v.bottom-g.top);if(st-L>0)o.style.top=(T=v.top-L-O)+"px",D=!1;else if(L>W){o.style.height=W-5+"px",o.style.top=(T=v.bottom-g.top-O)+"px";var V=n.getCursor();e.from.ch!=V.ch&&(v=n.cursorCoords(V),o.style.left=(S=v.left-k)+"px",g=o.getBoundingClientRect())}}var E=g.right-F;if(z&&(E+=n.display.nativeBarWidth),E>0&&(g.right-g.left>F&&(o.style.width=F-5+"px",E-=g.right-g.left-F),o.style.left=(S=v.left-E-k)+"px"),z)for(var N=o.firstChild;N;N=N.nextSibling)N.style.paddingRight=n.display.nativeBarWidth+"px";if(n.addKeyMap(this.keyMap=Z(t,{moveFocus:function(p,d){i.changeActive(i.selectedHint+p,d)},setFocus:function(p){i.changeActive(p)},menuSize:function(){return i.screenAmount()},length:a.length,close:function(){t.close()},pick:function(){i.pick()},data:e})),t.options.closeOnUnfocus){var q;n.on("blur",this.onBlur=function(){q=setTimeout(function(){t.close()},100)}),n.on("focus",this.onFocus=function(){clearTimeout(q)})}n.on("scroll",this.onScroll=function(){var p=n.getScrollInfo(),d=n.getWrapperElement().getBoundingClientRect();A||(A=n.getScrollInfo());var $=T+A.top-p.top,P=$-(c.pageYOffset||(s.documentElement||s.body).scrollTop);if(D||(P+=o.offsetHeight),P<=d.top||P>=d.bottom)return t.close();o.style.top=$+"px",o.style.left=S+A.left-p.left+"px"}),r.on(o,"dblclick",function(p){var d=_(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),i.pick())}),r.on(o,"click",function(p){var d=_(o,p.target||p.srcElement);d&&d.hintId!=null&&(i.changeActive(d.hintId),t.options.completeOnSingleClick&&i.pick())}),r.on(o,"mousedown",function(){setTimeout(function(){n.focus()},20)});var Y=this.getSelectedHintRange();return(Y.from!==0||Y.to!==0)&&this.scrollToActive(),r.signal(e,"select",a[this.selectedHint],o.childNodes[this.selectedHint]),!0}B.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,e){if(t>=this.data.list.length?t=e?this.data.list.length-1:0:t<0&&(t=e?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+m,""),i.removeAttribute("aria-selected")),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+m,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}};function tt(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}function K(t,e,i,n){if(t.async)t(e,n,i);else{var s=t(e,i);s&&s.then?s.then(n):n(s)}}function et(t,e){var i=t.getHelpers(e,"hint"),n;if(i.length){var s=function(c,o,f){var a=tt(c,i);function u(l){if(l==a.length)return o(null);K(a[l],c,f,function(h){h&&h.list.length>0?o(h):u(l+1)})}u(0)};return s.async=!0,s.supportsSelection=!0,s}else return(n=t.getHelper(t.getCursor(),"hintWords"))?function(c){return r.hint.fromList(c,{words:n})}:r.hint.anyword?function(c,o){return r.hint.anyword(c,o)}:function(){}}r.registerHelper("hint","auto",{resolve:et}),r.registerHelper("hint","fromList",function(t,e){var i=t.getCursor(),n=t.getTokenAt(i),s,c=r.Pos(i.line,n.start),o=i;n.start<i.ch&&/\w/.test(n.string.charAt(i.ch-n.start-1))?s=n.string.substr(0,i.ch-n.start):(s="",c=i);for(var f=[],a=0;a<e.words.length;a++){var u=e.words[a];u.slice(0,s.length)==s&&f.push(u)}if(f.length)return{list:f,from:c,to:o}}),r.commands.autocomplete=r.showHint;var U={hint:r.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption("hintOptions",null)})})();var X=lt.exports;const at=ot(X),ut=ct({__proto__:null,default:at},[X]);export{ut as s};
@@ -1,4 +1,4 @@
1
- import{g as V}from"./index-1fc0bd2b.js";import{a as _}from"./codemirror-b2fa3cbd.js";import{r as q}from"./searchcursor-a07e162a.js";import{r as Y}from"./matchbrackets-5e3a604b.js";function z(w,A){for(var h=0;h<A.length;h++){const a=A[h];if(typeof a!="string"&&!Array.isArray(a)){for(const f in a)if(f!=="default"&&!(f in w)){const b=Object.getOwnPropertyDescriptor(a,f);b&&Object.defineProperty(w,f,b.get?b:{enumerable:!0,get:()=>a[f]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var J={exports:{}};(function(w,A){(function(h){h(_,q(),Y())})(function(h){var a=h.commands,f=h.Pos;function b(e,t,n){if(n<0&&t.ch==0)return e.clipPos(f(t.line-1));var r=e.getLine(t.line);if(n>0&&t.ch>=r.length)return e.clipPos(f(t.line+1,0));for(var l="start",i,o=t.ch,s=o,u=n<0?0:r.length,d=0;s!=u;s+=n,d++){var p=r.charAt(n<0?s-1:s),c=p!="_"&&h.isWordChar(p)?"w":"o";if(c=="w"&&p.toUpperCase()==p&&(c="W"),l=="start")c!="o"?(l="in",i=c):o=s+n;else if(l=="in"&&i!=c){if(i=="w"&&c=="W"&&n<0&&s--,i=="W"&&c=="w"&&n>0)if(s==o+1){i="w";continue}else s--;break}}return f(t.line,s)}function K(e,t){e.extendSelectionsBy(function(n){return e.display.shift||e.doc.extend||n.empty()?b(e.doc,n.head,t):t<0?n.from():n.to()})}a.goSubwordLeft=function(e){K(e,-1)},a.goSubwordRight=function(e){K(e,1)},a.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},a.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},a.splitSelectionByLine=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)for(var l=t[r].from(),i=t[r].to(),o=l.line;o<=i.line;++o)i.line>l.line&&o==i.line&&i.ch==0||n.push({anchor:o==l.line?l:f(o,0),head:o==i.line?i:f(o)});e.setSelections(n,0)},a.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},a.selectLine=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var l=t[r];n.push({anchor:f(l.from().line,0),head:f(l.to().line+1,0)})}e.setSelections(n)};function F(e,t){if(e.isReadOnly())return h.Pass;e.operation(function(){for(var n=e.listSelections().length,r=[],l=-1,i=0;i<n;i++){var o=e.listSelections()[i].head;if(!(o.line<=l)){var s=f(o.line+(t?0:1),0);e.replaceRange(`
1
+ import{g as V}from"./index-d2bed431.js";import{a as _}from"./codemirror-18ee3ced.js";import{r as q}from"./searchcursor-f4b4cfdf.js";import{r as Y}from"./matchbrackets-537330cd.js";function z(w,A){for(var h=0;h<A.length;h++){const a=A[h];if(typeof a!="string"&&!Array.isArray(a)){for(const f in a)if(f!=="default"&&!(f in w)){const b=Object.getOwnPropertyDescriptor(a,f);b&&Object.defineProperty(w,f,b.get?b:{enumerable:!0,get:()=>a[f]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var J={exports:{}};(function(w,A){(function(h){h(_,q(),Y())})(function(h){var a=h.commands,f=h.Pos;function b(e,t,n){if(n<0&&t.ch==0)return e.clipPos(f(t.line-1));var r=e.getLine(t.line);if(n>0&&t.ch>=r.length)return e.clipPos(f(t.line+1,0));for(var l="start",i,o=t.ch,s=o,u=n<0?0:r.length,d=0;s!=u;s+=n,d++){var p=r.charAt(n<0?s-1:s),c=p!="_"&&h.isWordChar(p)?"w":"o";if(c=="w"&&p.toUpperCase()==p&&(c="W"),l=="start")c!="o"?(l="in",i=c):o=s+n;else if(l=="in"&&i!=c){if(i=="w"&&c=="W"&&n<0&&s--,i=="W"&&c=="w"&&n>0)if(s==o+1){i="w";continue}else s--;break}}return f(t.line,s)}function K(e,t){e.extendSelectionsBy(function(n){return e.display.shift||e.doc.extend||n.empty()?b(e.doc,n.head,t):t<0?n.from():n.to()})}a.goSubwordLeft=function(e){K(e,-1)},a.goSubwordRight=function(e){K(e,1)},a.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},a.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},a.splitSelectionByLine=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)for(var l=t[r].from(),i=t[r].to(),o=l.line;o<=i.line;++o)i.line>l.line&&o==i.line&&i.ch==0||n.push({anchor:o==l.line?l:f(o,0),head:o==i.line?i:f(o)});e.setSelections(n,0)},a.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},a.selectLine=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var l=t[r];n.push({anchor:f(l.from().line,0),head:f(l.to().line+1,0)})}e.setSelections(n)};function F(e,t){if(e.isReadOnly())return h.Pass;e.operation(function(){for(var n=e.listSelections().length,r=[],l=-1,i=0;i<n;i++){var o=e.listSelections()[i].head;if(!(o.line<=l)){var s=f(o.line+(t?0:1),0);e.replaceRange(`
2
2
  `,s,null,"+insertLine"),e.indentLine(s.line,null,!0),r.push({head:s,anchor:s}),l=o.line+1}}e.setSelections(r)}),e.execCommand("indentAuto")}a.insertLineAfter=function(e){return F(e,!1)},a.insertLineBefore=function(e){return F(e,!0)};function R(e,t){for(var n=t.ch,r=n,l=e.getLine(t.line);n&&h.isWordChar(l.charAt(n-1));)--n;for(;r<l.length&&h.isWordChar(l.charAt(r));)++r;return{from:f(t.line,n),to:f(t.line,r),word:l.slice(n,r)}}a.selectNextOccurrence=function(e){var t=e.getCursor("from"),n=e.getCursor("to"),r=e.state.sublimeFindFullWord==e.doc.sel;if(h.cmpPos(t,n)==0){var l=R(e,t);if(!l.word)return;e.setSelection(l.from,l.to),r=!0}else{var i=e.getRange(t,n),o=r?new RegExp("\\b"+i+"\\b"):i,s=e.getSearchCursor(o,n),u=s.findNext();if(u||(s=e.getSearchCursor(o,f(e.firstLine(),0)),u=s.findNext()),!u||E(e.listSelections(),s.from(),s.to()))return;e.addSelection(s.from(),s.to())}r&&(e.state.sublimeFindFullWord=e.doc.sel)},a.skipAndSelectNextOccurrence=function(e){var t=e.getCursor("anchor"),n=e.getCursor("head");a.selectNextOccurrence(e),h.cmpPos(t,n)!=0&&e.doc.setSelections(e.doc.listSelections().filter(function(r){return r.anchor!=t||r.head!=n}))};function T(e,t){for(var n=e.listSelections(),r=[],l=0;l<n.length;l++){var i=n[l],o=e.findPosV(i.anchor,t,"line",i.anchor.goalColumn),s=e.findPosV(i.head,t,"line",i.head.goalColumn);o.goalColumn=i.anchor.goalColumn!=null?i.anchor.goalColumn:e.cursorCoords(i.anchor,"div").left,s.goalColumn=i.head.goalColumn!=null?i.head.goalColumn:e.cursorCoords(i.head,"div").left;var u={anchor:o,head:s};r.push(i),r.push(u)}e.setSelections(r)}a.addCursorToPrevLine=function(e){T(e,-1)},a.addCursorToNextLine=function(e){T(e,1)};function E(e,t,n){for(var r=0;r<e.length;r++)if(h.cmpPos(e[r].from(),t)==0&&h.cmpPos(e[r].to(),n)==0)return!0;return!1}var y="(){}[]";function P(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var l=t[r],i=l.head,o=e.scanForBracket(i,-1);if(!o)return!1;for(;;){var s=e.scanForBracket(i,1);if(!s)return!1;if(s.ch==y.charAt(y.indexOf(o.ch)+1)){var u=f(o.pos.line,o.pos.ch+1);if(h.cmpPos(u,l.from())==0&&h.cmpPos(s.pos,l.to())==0){if(o=e.scanForBracket(o.pos,-1),!o)return!1}else{n.push({anchor:u,head:s.pos});break}}i=f(s.pos.line,s.pos.ch+1)}}return e.setSelections(n),!0}a.selectScope=function(e){P(e)||e.execCommand("selectAll")},a.selectBetweenBrackets=function(e){if(!P(e))return h.Pass};function U(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}a.goToBracket=function(e){e.extendSelectionsBy(function(t){var n=e.scanForBracket(t.head,1,U(e.getTokenTypeAt(t.head)));if(n&&h.cmpPos(n.pos,t.head)!=0)return n.pos;var r=e.scanForBracket(t.head,-1,U(e.getTokenTypeAt(f(t.head.line,t.head.ch+1))));return r&&f(r.pos.line,r.pos.ch+1)||t.head})},a.swapLineUp=function(e){if(e.isReadOnly())return h.Pass;for(var t=e.listSelections(),n=[],r=e.firstLine()-1,l=[],i=0;i<t.length;i++){var o=t[i],s=o.from().line-1,u=o.to().line;l.push({anchor:f(o.anchor.line-1,o.anchor.ch),head:f(o.head.line-1,o.head.ch)}),o.to().ch==0&&!o.empty()&&--u,s>r?n.push(s,u):n.length&&(n[n.length-1]=u),r=u}e.operation(function(){for(var d=0;d<n.length;d+=2){var p=n[d],c=n[d+1],L=e.getLine(p);e.replaceRange("",f(p,0),f(p+1,0),"+swapLine"),c>e.lastLine()?e.replaceRange(`
3
3
  `+L,f(e.lastLine()),null,"+swapLine"):e.replaceRange(L+`
4
4
  `,f(c,0),null,"+swapLine")}e.setSelections(l),e.scrollIntoView()})},a.swapLineDown=function(e){if(e.isReadOnly())return h.Pass;for(var t=e.listSelections(),n=[],r=e.lastLine()+1,l=t.length-1;l>=0;l--){var i=t[l],o=i.to().line+1,s=i.from().line;i.to().ch==0&&!i.empty()&&o--,o<r?n.push(o,s):n.length&&(n[n.length-1]=s),r=s}e.operation(function(){for(var u=n.length-2;u>=0;u-=2){var d=n[u],p=n[u+1],c=e.getLine(d);d==e.lastLine()?e.replaceRange("",f(d-1),f(d),"+swapLine"):e.replaceRange("",f(d,0),f(d+1,0),"+swapLine"),e.replaceRange(c+`
@@ -23,7 +23,7 @@
23
23
  }
24
24
  </style>
25
25
  <title>Cube Playground</title>
26
- <script type="module" crossorigin src="/assets/index-1fc0bd2b.js"></script>
26
+ <script type="module" crossorigin src="/assets/index-d2bed431.js"></script>
27
27
  <link rel="stylesheet" href="/assets/index-af3b87a2.css">
28
28
  </head>
29
29
  <body>