var e,o;e=this,o=function(e){"use strict";const o=globalThis,t=Math,n=t.floor,r=(e,o)=>e.map(o),a="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".split("");var i;i=r(a,((e,o)=>[e,o])),new Map(i);const l=o.crypto?e=>o.crypto.getRandomValues(e):e=>r(e,(()=>n(256*t.random())));e.defaultSorter=(e,o)=>(null!=e?e:0)<(null!=o?o:0)?-1:1,e.getUniqueId=(e=16)=>{return o=(e,o)=>e+a[63&o],l(new Uint8Array(e)).reduce(o,"");var o}},"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).TinyBaseCommon={});
