import{__exports as r}from"../../../_virtual/es.uint8-array.to-hex.mjs";import{__require as t}from"../internals/export.mjs";import{__require as e}from"../internals/global-this.mjs";import{__require as i}from"../internals/function-uncurry-this.mjs";import{__require as n}from"../internals/an-uint8-array.mjs";import{__require as f}from"../internals/array-buffer-not-detached.mjs";var o;function a(){if(o)return r;o=1;var a=t(),s=e(),u=i(),m=n(),_=f(),p=u(1.1.toString),h=s.Uint8Array,l=!h||!h.prototype.toHex||!function(){try{return"ffffffffffffffff"===new h([255,255,255,255,255,255,255,255]).toHex()}catch(r){return!1}}();return h&&a({target:"Uint8Array",proto:!0,forced:l},{toHex:function(){m(this),_(this.buffer);for(var r="",t=0,e=this.length;t<e;t++){var i=p(this[t],16);r+=1===i.length?"0"+i:i}return r}}),r}export{a as __require};