var s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function f(t){if(t.__esModule)return t;var o=t.default;if(typeof o=="function"){var r=function n(){return this instanceof n?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};r.prototype=o.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var e=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,e.get?e:{enumerable:!0,get:function(){return t[n]}})}),r}var l=function(t,o,r){for(var n=0,e={},a=0;a<r.length;a++)if(t==r.substr(a,t.length))"start"in e||(e.start=a),n++;else if(o==r.substr(a,o.length)&&"start"in e&&(n--,!n))return e.end=a,e.pre=r.substr(0,e.start),e.body=e.end-e.start>1?r.substring(e.start+t.length,e.end):"",e.post=r.slice(e.end+o.length),e};export{f as a,l as b,s as c,u as g};
