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