"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=requireQueryFilter;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));function requireQueryFilter(data){
let tmp=[];
return new Promise(resolve=>{
data.forEach(function(){var _ref=(0,_asyncToGenerator2.default)(function*(element){
if(typeof element.require!=="undefined"){
const validRequire=yield window.requireQuery(element.require);
if(!window.requireQuery){
window.requireQuery=()=>{
return true;
};
}
validRequire?tmp.push(element):null;
}else{
tmp.push(element);
}
});return function(_x){return _ref.apply(this,arguments)}}());
resolve(tmp);
});
}