import { x } from "./chunk-YXWMMD76.js"; // node_modules/@arcgis/core/core/Queue.js var e = class { constructor(t = (t2) => t2.values().next().value) { this._peeker = t, this._items = /* @__PURE__ */ new Set(); } get length() { return this._items.size; } clear() { this._items.clear(); } last() { if (0 === this._items.size) return; let t; for (t of this._items) ; return t; } peek() { if (0 !== this._items.size) return this._peeker(this._items); } push(t) { this.contains(t) || this._items.add(t); } contains(t) { return this._items.has(t); } pop() { if (0 === this.length) return; const e2 = this.peek(); return this._items.delete(x(e2)), e2; } popLast() { if (0 === this.length) return; const e2 = this.last(); return this._items.delete(x(e2)), e2; } remove(t) { this._items.delete(t); } filter(t) { return this._items.forEach((e2) => { t(e2) || this._items.delete(e2); }), this; } }; export { e }; //# sourceMappingURL=chunk-6334AFGG.js.map