Liferay.Loader.define("liferay!template-web$codemirror@5.65.2/addon/mode/overlay",["module","exports","require","../../lib/codemirror"],(function(e,r,o){var a,n=void 0;window;a=function(e){"use strict";e.overlayMode=function(r,o,a){return{startState:function(){return{base:e.startState(r),overlay:e.startState(o),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(a){return{base:e.copyState(r,a.base),overlay:e.copyState(o,a.overlay),basePos:a.basePos,baseCur:null,overlayPos:a.overlayPos,overlayCur:null}},token:function(e,n){return(e!=n.streamSeen||Math.min(n.basePos,n.overlayPos)<e.start)&&(n.streamSeen=e,n.basePos=n.overlayPos=e.start),e.start==n.basePos&&(n.baseCur=r.token(e,n.base),n.basePos=e.pos),e.start==n.overlayPos&&(e.pos=e.start,n.overlayCur=o.token(e,n.overlay),n.overlayPos=e.pos),e.pos=Math.min(n.basePos,n.overlayPos),null==n.overlayCur?n.baseCur:null!=n.baseCur&&n.overlay.combineTokens||a&&null==n.overlay.combineTokens?n.baseCur+" "+n.overlayCur:n.overlayCur},indent:r.indent&&function(e,o,a){return r.indent(e.base,o,a)},electricChars:r.electricChars,innerMode:function(e){return{state:e.base,mode:r}},blankLine:function(e){var n,t;return r.blankLine&&(n=r.blankLine(e.base)),o.blankLine&&(t=o.blankLine(e.overlay)),null==t?n:a&&null!=n?n+" "+t:t}}}},"object"==typeof r&&"object"==typeof e?a(o("../../lib/codemirror")):"function"==typeof n&&n.amd?n(["../../lib/codemirror"],a):a(CodeMirror)}));
//# sourceMappingURL=overlay.js.map