Liferay.Loader.define("liferay!layout-content-page-editor-web$codemirror@5.65.2/addon/mode/loadmode",["module","exports","require","../../lib/codemirror"],(function(e,r,o){var n;window,n=function(e,r){e.modeURL||(e.modeURL="../mode/%N/%N.js");var n={};function ensureDeps(r,o,n){var t=e.modes[r],i=t&&t.dependencies;if(!i)return o();for(var d=[],a=0;a<i.length;++a)e.modes.hasOwnProperty(i[a])||d.push(i[a]);if(!d.length)return o();var s=function splitCallback(e,r){var o=r;return function(){0==--o&&e()}}(o,d.length);for(a=0;a<d.length;++a)e.requireMode(d[a],s,n)}e.requireMode=function(t,i,d){if("string"!=typeof t&&(t=t.name),e.modes.hasOwnProperty(t))return ensureDeps(t,i,d);if(n.hasOwnProperty(t))return n[t].push(i);var a=d&&d.path?d.path(t):e.modeURL.replace(/%N/g,t);if(d&&d.loadMode)d.loadMode(a,(function(){ensureDeps(t,i,d)}));else if("plain"==r){var s=document.createElement("script");s.src=a;var u=document.getElementsByTagName("script")[0],c=n[t]=[i];e.on(s,"load",(function(){ensureDeps(t,(function(){for(var e=0;e<c.length;++e)c[e]()}),d)})),u.parentNode.insertBefore(s,u)}else"cjs"==r?(o(a),i()):"amd"==r&&requirejs([a],i)},e.autoLoadMode=function(r,o,n){e.modes.hasOwnProperty(o)||e.requireMode(o,(function(){r.setOption("mode",r.getOption("mode"))}),n)}},"object"==typeof r&&"object"==typeof e?n(o("../../lib/codemirror"),"cjs"):n(CodeMirror,"plain")}));
//# sourceMappingURL=loadmode.js.map