/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{makeHandle as e}from"../../../../core/handleUtils.js";import{getOrCreateMapValue as t}from"../../../../core/MapUtils.js";function o(){const o=new WeakMap,r=(e,t)=>{const r=o.get(e);r&&(r.delete(t),0===r.size&&o.delete(e))};return{register:(n,s)=>(t(o,n,()=>new Set).add(s),e(()=>r(n,s))),forEveryOther(e,t,r){const n=o.get(e);if(n)for(const o of n)o!==t&&r(o)}}}export{o as createAnalysisViewRegister};
