import{n as d}from"./init-PHOs_KoL.js";var l=class extends Map{constructor(t,n=h){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(let[e,r]of t)this.set(e,r)}get(t){return super.get(a(this,t))}has(t){return super.has(a(this,t))}set(t,n){return super.set(f(this,t),n)}delete(t){return super.delete(c(this,t))}},g=class extends Set{constructor(t,n=h){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(let e of t)this.add(e)}has(t){return super.has(a(this,t))}add(t){return super.add(f(this,t))}delete(t){return super.delete(c(this,t))}};function a({_intern:t,_key:n},e){let r=n(e);return t.has(r)?t.get(r):e}function f({_intern:t,_key:n},e){let r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function c({_intern:t,_key:n},e){let r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function h(t){return typeof t=="object"&&t?t.valueOf():t}const o=Symbol("implicit");function p(){var t=new l,n=[],e=[],r=o;function s(u){let i=t.get(u);if(i===void 0){if(r!==o)return r;t.set(u,i=n.push(u)-1)}return e[i%e.length]}return s.domain=function(u){if(!arguments.length)return n.slice();n=[],t=new l;for(let i of u)t.has(i)||t.set(i,n.push(i)-1);return s},s.range=function(u){return arguments.length?(e=Array.from(u),s):e.slice()},s.unknown=function(u){return arguments.length?(r=u,s):r},s.copy=function(){return p(n,e).unknown(r)},d.apply(s,arguments),s}export{p as n,g as r,o as t};
