!function(o,e){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define(e):(o=o||self).uuidv4=e()}(this,(function(){"use strict";varo="undefined"!=typeofcrypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeofmsCrypto&&"function"==typeofwindow.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),e=newUint8Array(16);functionr(){if(!o)thrownewError("uuid: This browser does not seem to support crypto.getRandomValues(). If you need to support this browser, please provide a custom random number generator through options.rng.");returno(e)}for(varn=[],t=0;t<256;++t)n[t]=(t+256).toString(16).substr(1);returnfunction(o,e,t){varu=e&&t||0;"string"==typeofo&&(e="binary"===o?newArray(16):null,o=null);vari=(o=o||{}).random||(o.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(vars=0;s<16;++s)e[u+s]=i[s];returne||function(o,e){varr=e||0,t=n;return[t[o[r++]],t[o[r++]],t[o[r++]],t[o[r++]],"-",t[o[r++]],t[o[r++]],"-",t[o[r++]],t[o[r++]],"-",t[o[r++]],t[o[r++]],"-",t[o[r++]],t[o[r++]],t[o[r++]],t[o[r++]],t[o[r++]],t[o[r++]]].join("")}(i)}}));