import { guidFor as guidFor$1 } from './ember.js';

// it can happen that different ember apps/iframes have the same id for different objects
// since the implementation is just a counter, so we add a prefix per iframe & app
let perIframePrefix = Math.random().toString() + '-';
let prefix = '';
let guidFor = (obj, pref) => guidFor$1(obj, perIframePrefix + (pref || prefix) + '-');
function setGuidPrefix(pref) {
  prefix = pref;
}

export { guidFor as g, setGuidPrefix as s };
