/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@unidriver/core@1.3.0/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var ErrorTypes,__createBinding=this&&this.__createBinding||(Object.create?function(r,e,t,o){void 0===o&&(o=t),Object.defineProperty(r,o,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,o){void 0===o&&(o=t),r[o]=e[t]}),__exportStar=this&&this.__exportStar||function(r,e){for(var t in r)"default"===t||e.hasOwnProperty(t)||__createBinding(e,r,t)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.isMultipleElementsWithLocatorError=exports.isNoElementWithLocatorError=exports.contextToWaitError=exports.contextToSelectorString=exports.rootDriver=exports.MultipleElementsWithLocatorError=exports.NoElementWithLocatorError=exports.ErrorTypes=void 0,__exportStar(require("./utils"),exports),__exportStar(require("./key-types"),exports),function(r){r.NO_ELEMENTS_WITH_SELECTOR="no-elements-with-selector",r.MULTIPLE_ELEMENTS_WITH_SELECTOR="multiple-elements-with-selector"}(ErrorTypes=exports.ErrorTypes||(exports.ErrorTypes={}));class NoElementWithLocatorError extends Error{constructor(r){super(`Cannot find element with locator: ${r}`),this.type=ErrorTypes.NO_ELEMENTS_WITH_SELECTOR}}exports.NoElementWithLocatorError=NoElementWithLocatorError;class MultipleElementsWithLocatorError extends Error{constructor(r,e){super(`Found ${r} elements with locator [${e}]. Only 1 is expected. This is either a bug or not-specific-enough locator`),this.type=ErrorTypes.MULTIPLE_ELEMENTS_WITH_SELECTOR}}exports.MultipleElementsWithLocatorError=MultipleElementsWithLocatorError,exports.rootDriver={selector:""},exports.contextToSelectorString=r=>{const e="number"==typeof r.idx&&r.idx>=0?` at index #${r.idx}`:"";return`${r.parent?`${exports.contextToSelectorString(r.parent)} => `:""}${r.selector}${e}`},exports.contextToWaitError=r=>`Timeout waiting for element: ${exports.contextToSelectorString(r)}`,exports.isNoElementWithLocatorError=r=>(r.type||"")===ErrorTypes.NO_ELEMENTS_WITH_SELECTOR,exports.isMultipleElementsWithLocatorError=r=>(r.type||"")===ErrorTypes.MULTIPLE_ELEMENTS_WITH_SELECTOR;
//# sourceMappingURL=/sm/df812aa48886f6427482e77cf6d17699b2f99bff5dbca3df5e7b983d17e2bde6.map