"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.queryDependsMap = exports.queryDepends = void 0;
var utils_1 = require("./utils");
var queryRelations = function (code) {
    var depends = [];
    code.replace(/\@import\s*("[^"]+"|'[^']+'|\([^\(\)]+\))/g, function (_m, g1) {
        depends.push((0, utils_1.cleanUpSurroundPath)(g1));
        return _m;
    });
    return depends;
};
exports.queryDepends = (0, utils_1.createQueryDepends)(queryRelations);
exports.queryDependsMap = (0, utils_1.createQueryDependsMap)(queryRelations);
