import{__exports as r}from"../../../_virtual/es.escape.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/function-uncurry-this.mjs";import{__require as n}from"../internals/to-string.mjs";var o;function i(){if(o)return r;o=1;var i=e(),a=t(),s=n(),u=a("".charAt),m=a("".charCodeAt),f=a(/./.exec),p=a(1.1.toString),_=a("".toUpperCase),c=/[\w*+\-./@]/,l=function(r,e){for(var t=p(r,16);t.length<e;)t="0"+t;return t};return i({global:!0},{escape:function(r){for(var e,t,n=s(r),o="",i=n.length,a=0;a<i;)e=u(n,a++),f(c,e)?o+=e:o+=(t=m(e,0))<256?"%"+l(t,2):"%u"+_(l(t,4));return o}}),r}export{i as __require};