"use strict";(function(){var r=0;var n=0;"use strict";function e(){}function u(r){return r.length==0}function i(r,n){var e=0;for(var u=0;u<r.length;++u){for(;e<n.length;++e){if(r[u]==n[e]){break}}if(e==n.length){return false}}return true}function t(r,n){var e=new Array;for(var u in r.subcmds){var i=r.subcmds[u].cmd.trim();if(i.substring(0,n.length)==n){e.push(i)}}return e.sort()}function f(r,n,e){var f=new Array;if(e.cmdprefix_sub.length==0){if(n!=undefined){return f}f.push({fileSubCmds:null,devSubCmds:null});return f}for(var a in e.cmdprefix_sub){var s=e.cmdprefix_sub[a];var v=t(r,s);if(u(v)){continue}if(n==undefined){f.push({fileSubCmds:v,devSubCmds:null});continue}var c=t(n,s);if(i(v,c)){continue}f.push({fileSubCmds:v,devSubCmds:c})}return f}function a(r,n){for(var e=0;e<r.length;++e){var u=r[e];if(n.substring(0,u.cmdprefix.length)==u.cmdprefix){return u}}return null}function s(r){var n=new Array;for(var e in r){var u=r[e].cmd.trim();n[u]=r[e]}return n}function v(r,n,e){var u=new Array;var i=s(r),t=s(n);for(var v in r){var c=r[v];var o=c.cmd.trim();var l=a(e,o);if(l==null){continue}var d=t[o];var m=f(c,d,l);if(m.length==0){continue}u[o]=m}return u}e.prototype.checkConfig=function(r,n,e){if(!r||!n)return false;var u=require("./jsUtil");var i=u.parseConfig(r);var t=u.parseConfig(n);return v(i,t,e)};exports.ConfigCheck=e})();