{“ast”:null,“code”:“'use strict';nnObject.defineProperty(exports, "__esModule", {n value: truen});nnexports = function (hierarchy, state, validateSelector) {n var elm = hierarchy;n var tag = elm.el.nodeName;nn if (handlers) {n state = handlers(state, elm);nn if (validateSelector(state)) {n // the unique attribute worked!n state.verified = true;n } else {n // turns out our so called unique attribute isn't as unique as we thought,n // we'll remove it to keep the selector's noise level downn state.stack.pop();n }n }nn return state;n};nnvar handlers = {n A: function A(state, elm) {n var attribute = elm.el.getAttribute('href');nn if (attribute) {n state.stack.push('A[href="' + attribute + '"]');n state.specificity += 10;n }nn return state;n },n IMG: function IMG(state, elm) {n var attribute = elm.el.getAttribute('src');nn if (attribute) {n state.stack.push('IMG[src="' + attribute + '"]');n state.specificity += 10;n }nn return state;n }n /**n * Inspect the elements' special attributes which are likely to be unique to the elementn * @param {array} hierarchy. The hierarchy of elementsn * @param {object} state. The current calculated CSS selectorn */nn};”,“map”:null,“metadata”:{},“sourceType”:“module”}