react-grab 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -87,6 +87,16 @@ var getHTMLSnippet = (element) => {
87
87
  const children = Array.from(el.children);
88
88
  return children.length;
89
89
  };
90
+ const getTextContent = (el) => {
91
+ let text = el.textContent || "";
92
+ text = text.trim();
93
+ text = text.replace(/\s+/g, " ");
94
+ const maxLength = 100;
95
+ if (text.length > maxLength) {
96
+ text = text.substring(0, maxLength) + "...";
97
+ }
98
+ return text;
99
+ };
90
100
  const lines = [];
91
101
  const parent = element.parentElement;
92
102
  if (parent) {
@@ -102,7 +112,11 @@ var getHTMLSnippet = (element) => {
102
112
  const indent = parent ? " " : "";
103
113
  lines.push(indent + "<!-- SELECTED -->");
104
114
  lines.push(indent + getElementTag(element));
115
+ const textContent = getTextContent(element);
105
116
  const childrenCount = getChildrenCount(element);
117
+ if (textContent) {
118
+ lines.push(`${indent} ${textContent}`);
119
+ }
106
120
  if (childrenCount > 0) {
107
121
  lines.push(
108
122
  `${indent} ... (${childrenCount} element${childrenCount === 1 ? "" : "s"})`
@@ -128,6 +142,7 @@ var init = () => {
128
142
  let metaKeyTimer = null;
129
143
  let overlay = null;
130
144
  let isActive = false;
145
+ let isLocked = false;
131
146
  let currentElement = null;
132
147
  let animationFrame = null;
133
148
  let pendingCopyText = null;
@@ -139,6 +154,7 @@ var init = () => {
139
154
  try {
140
155
  await navigator.clipboard.writeText(text);
141
156
  pendingCopyText = null;
157
+ hideOverlay();
142
158
  } catch {
143
159
  const textarea = document.createElement("textarea");
144
160
  textarea.value = text;
@@ -151,8 +167,10 @@ var init = () => {
151
167
  try {
152
168
  document.execCommand("copy");
153
169
  pendingCopyText = null;
170
+ hideOverlay();
154
171
  } catch (execErr) {
155
172
  console.error("Failed to copy to clipboard:", execErr);
173
+ hideOverlay();
156
174
  }
157
175
  document.body.removeChild(textarea);
158
176
  }
@@ -204,6 +222,7 @@ var init = () => {
204
222
  animationFrame = requestAnimationFrame(updateOverlayPosition);
205
223
  };
206
224
  const handleMouseMove = (e) => {
225
+ if (isLocked) return;
207
226
  const element = document.elementFromPoint(e.clientX, e.clientY);
208
227
  if (!element || element === overlay) return;
209
228
  currentElement = element;
@@ -220,11 +239,14 @@ var init = () => {
220
239
  e.preventDefault();
221
240
  e.stopPropagation();
222
241
  e.stopImmediatePropagation();
242
+ isLocked = true;
223
243
  const elementToInspect = currentElement;
224
- hideOverlay();
225
244
  if (elementToInspect) {
226
245
  void getStack(elementToInspect).then((stack) => {
227
- if (!stack) return;
246
+ if (!stack) {
247
+ hideOverlay();
248
+ return;
249
+ }
228
250
  const serializedStack = serializeStack(filterStack(stack));
229
251
  const htmlSnippet = getHTMLSnippet(elementToInspect);
230
252
  const payload = `## Referenced element
@@ -258,6 +280,7 @@ Page: ${window.location.href}`;
258
280
  };
259
281
  const hideOverlay = () => {
260
282
  isActive = false;
283
+ isLocked = false;
261
284
  if (overlay) {
262
285
  overlay.style.display = "none";
263
286
  }
@@ -283,7 +306,7 @@ Page: ${window.location.href}`;
283
306
  clearTimeout(metaKeyTimer);
284
307
  metaKeyTimer = null;
285
308
  }
286
- if (isActive) {
309
+ if (isActive && !isLocked) {
287
310
  hideOverlay();
288
311
  }
289
312
  }
@@ -6,27 +6,27 @@ var ReactGrab=(function(exports){'use strict';/**
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- var me="0.3.28",q=`bippy-${me}`,fe=Object.defineProperty,He=Object.prototype.hasOwnProperty,x=()=>{},pe=t=>{try{Function.prototype.toString.call(t).indexOf("^_^")>-1&&setTimeout(()=>{throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")});}catch{}},he=(t=D())=>"getFiberRoots"in t,ge=false,de,W=(t=D())=>ge?true:(typeof t.inject=="function"&&(de=t.inject.toString()),!!de?.includes("(injected)")),$=new Set,j=new Set,ve=t=>{let e=new Map,o=0,c={checkDCE:pe,supportsFiber:true,supportsFlight:true,hasUnsupportedRendererAttached:false,renderers:e,onCommitFiberRoot:x,onCommitFiberUnmount:x,onPostCommitFiberRoot:x,on:x,inject(g){let u=++o;return e.set(u,g),j.add(g),c._instrumentationIsActive||(c._instrumentationIsActive=true,$.forEach(s=>s())),u},_instrumentationSource:q,_instrumentationIsActive:false};try{fe(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{get(){return c},set(s){if(s&&typeof s=="object"){let i=c.renderers;c=s,i.size>0&&(i.forEach((n,l)=>{j.add(n),s.renderers.set(l,n);}),z(t));}},configurable:!0,enumerable:!0});let g=window.hasOwnProperty,u=!1;fe(window,"hasOwnProperty",{value:function(){try{if(!u&&arguments[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,u=!0,-0}catch{}return g.apply(this,arguments)},configurable:!0,writable:!0});}catch{z(t);}return c},z=t=>{try{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!e)return;if(!e._instrumentationSource){if(e.checkDCE=pe,e.supportsFiber=!0,e.supportsFlight=!0,e.hasUnsupportedRendererAttached=!1,e._instrumentationSource=q,e._instrumentationIsActive=!1,e.on=x,e.renderers.size){e._instrumentationIsActive=!0,$.forEach(c=>c());return}let o=e.inject;W(e)&&!he()&&(ge=!0,e.inject({scheduleRefresh(){}})&&(e._instrumentationIsActive=!0)),e.inject=c=>{let g=o(c);return j.add(c),e._instrumentationIsActive=!0,$.forEach(u=>u()),g};}(e.renderers.size||e._instrumentationIsActive||W())&&t?.();}catch{}},_e=()=>He.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),D=t=>_e()?(z(t),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):ve(t),ye=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Ce=()=>{try{ye()&&D();}catch{}},Y=0,K=1;var Q=5;var X=11,J=13;var Z=15,ee=16;var te=19;var ne=26,re=27,oe=28,ie=30;var U=t=>{let e=t;return typeof e=="function"?e:typeof e=="object"&&e?U(e.type||e.render):null},B=t=>{let e=t;if(typeof e=="string")return e;if(typeof e!="function"&&!(typeof e=="object"&&e))return null;let o=e.displayName||e.name||null;if(o)return o;let c=U(e);return c&&(c.displayName||c.name)||null};var se=t=>{let e=D();for(let o of e.renderers.values())try{let c=o.findFiberByHostInstance?.(t);if(c)return c}catch{}if(typeof t=="object"&&t!=null){if("_reactRootContainer"in t)return t._reactRootContainer?._internalRoot?.current?.child;for(let o in t)if(o.startsWith("__reactContainer$")||o.startsWith("__reactInternalInstance$")||o.startsWith("__reactFiber"))return t[o]||null}return null};Ce();var Xe=Object.create,Se=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,be=Object.getOwnPropertyNames,Ze=Object.getPrototypeOf,et=Object.prototype.hasOwnProperty,I=(t,e)=>function(){return e||(0, t[be(t)[0]])((e={exports:{}}).exports,e),e.exports},tt=(t,e,o,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(var g=be(e),u=0,s=g.length,i;u<s;u++)i=g[u],!et.call(t,i)&&i!==o&&Se(t,i,{get:(n=>e[n]).bind(null,i),enumerable:!(c=Je(e,i))||c.enumerable});return t},nt=(t,e,o)=>(o=t!=null?Xe(Ze(t)):{},tt(Se(o,"default",{value:t,enumerable:true}),t)),Ee=/^\s*at .*(\S+:\d+|\(native\))/m,rt=/^(eval@)?(\[native code\])?$/;function ot(t,e){return t.match(Ee)?it(t,e):st(t,e)}function we(t){if(!t.includes(":"))return [t,undefined,undefined];let o=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return [o[1],o[2]||undefined,o[3]||undefined]}function Te(t,e){return e&&e.slice!=null?Array.isArray(e.slice)?t.slice(e.slice[0],e.slice[1]):t.slice(0,e.slice):t}function it(t,e){return Te(t.split(`
10
- `).filter(c=>!!c.match(Ee)),e).map(c=>{c.includes("(eval ")&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let g=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),u=g.match(/ (\(.+\)$)/);g=u?g.replace(u[0],""):g;let s=we(u?u[1]:g),i=u&&g||undefined,n=["eval","<anonymous>"].includes(s[0])?undefined:s[0];return {function:i,file:n,line:s[1]?+s[1]:undefined,col:s[2]?+s[2]:undefined,raw:c}})}function st(t,e){return Te(t.split(`
11
- `).filter(c=>!c.match(rt)),e).map(c=>{if(c.includes(" > eval")&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!c.includes("@")&&!c.includes(":"))return {function:c};{let g=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,u=c.match(g),s=u&&u[1]?u[1]:undefined,i=we(c.replace(g,""));return {function:s,file:i[0],line:i[1]?+i[1]:undefined,col:i[2]?+i[2]:undefined,raw:c}}})}var at=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.js"(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(o){if(0<=o&&o<e.length)return e[o];throw new TypeError("Must be between 0 and 63: "+o)},t.decode=function(o){var c=65,g=90,u=97,s=122,i=48,n=57,l=43,_=47,v=26,p=52;return c<=o&&o<=g?o-c:u<=o&&o<=s?o-u+v:i<=o&&o<=n?o-i+p:o==l?62:o==_?63:-1};}}),Le=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js"(t){var e=at(),o=5,c=1<<o,g=c-1,u=c;function s(n){return n<0?(-n<<1)+1:(n<<1)+0}function i(n){var l=(n&1)===1,_=n>>1;return l?-_:_}t.encode=function(l){var _="",v,p=s(l);do v=p&g,p>>>=o,p>0&&(v|=u),_+=e.encode(v);while(p>0);return _},t.decode=function(l,_,v){var p=l.length,r=0,a=0,f,y;do{if(_>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(y=e.decode(l.charCodeAt(_++)),y===-1)throw new Error("Invalid base64 digit: "+l.charAt(_-1));f=!!(y&u),y&=g,r=r+(y<<a),a+=o;}while(f);v.value=i(r),v.rest=_;};}}),H=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(t){function e(d,m,b){if(m in d)return d[m];if(arguments.length===3)return b;throw new Error('"'+m+'" is a required argument.')}t.getArg=e;var o=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,c=/^data:.+\,.+$/;function g(d){var m=d.match(o);return m?{scheme:m[1],auth:m[2],host:m[3],port:m[4],path:m[5]}:null}t.urlParse=g;function u(d){var m="";return d.scheme&&(m+=d.scheme+":"),m+="//",d.auth&&(m+=d.auth+"@"),d.host&&(m+=d.host),d.port&&(m+=":"+d.port),d.path&&(m+=d.path),m}t.urlGenerate=u;var s=32;function i(d){var m=[];return function(b){for(var h=0;h<m.length;h++)if(m[h].input===b){var w=m[0];return m[0]=m[h],m[h]=w,m[0].result}var L=d(b);return m.unshift({input:b,result:L}),m.length>s&&m.pop(),L}}var n=i(function(m){var b=m,h=g(m);if(h){if(!h.path)return m;b=h.path;}for(var w=t.isAbsolute(b),L=[],M=0,F=0;;)if(M=F,F=b.indexOf("/",M),F===-1){L.push(b.slice(M));break}else for(L.push(b.slice(M,F));F<b.length&&b[F]==="/";)F++;for(var k,N=0,F=L.length-1;F>=0;F--)k=L[F],k==="."?L.splice(F,1):k===".."?N++:N>0&&(k===""?(L.splice(F+1,N),N=0):(L.splice(F,2),N--));return b=L.join("/"),b===""&&(b=w?"/":"."),h?(h.path=b,u(h)):b});t.normalize=n;function l(d,m){d===""&&(d="."),m===""&&(m=".");var b=g(m),h=g(d);if(h&&(d=h.path||"/"),b&&!b.scheme)return h&&(b.scheme=h.scheme),u(b);if(b||m.match(c))return m;if(h&&!h.host&&!h.path)return h.host=m,u(h);var w=m.charAt(0)==="/"?m:n(d.replace(/\/+$/,"")+"/"+m);return h?(h.path=w,u(h)):w}t.join=l,t.isAbsolute=function(d){return d.charAt(0)==="/"||o.test(d)};function _(d,m){d===""&&(d="."),d=d.replace(/\/$/,"");for(var b=0;m.indexOf(d+"/")!==0;){var h=d.lastIndexOf("/");if(h<0||(d=d.slice(0,h),d.match(/^([^\/]+:\/)?\/*$/)))return m;++b;}return Array(b+1).join("../")+m.substr(d.length+1)}t.relative=_;var v=function(){var d=Object.create(null);return !("__proto__"in d)}();function p(d){return d}function r(d){return f(d)?"$"+d:d}t.toSetString=v?p:r;function a(d){return f(d)?d.slice(1):d}t.fromSetString=v?p:a;function f(d){if(!d)return false;var m=d.length;if(m<9||d.charCodeAt(m-1)!==95||d.charCodeAt(m-2)!==95||d.charCodeAt(m-3)!==111||d.charCodeAt(m-4)!==116||d.charCodeAt(m-5)!==111||d.charCodeAt(m-6)!==114||d.charCodeAt(m-7)!==112||d.charCodeAt(m-8)!==95||d.charCodeAt(m-9)!==95)return false;for(var b=m-10;b>=0;b--)if(d.charCodeAt(b)!==36)return false;return true}function y(d,m,b){var h=T(d.source,m.source);return h!==0||(h=d.originalLine-m.originalLine,h!==0)||(h=d.originalColumn-m.originalColumn,h!==0||b)||(h=d.generatedColumn-m.generatedColumn,h!==0)||(h=d.generatedLine-m.generatedLine,h!==0)?h:T(d.name,m.name)}t.compareByOriginalPositions=y;function C(d,m,b){var h;return h=d.originalLine-m.originalLine,h!==0||(h=d.originalColumn-m.originalColumn,h!==0||b)||(h=d.generatedColumn-m.generatedColumn,h!==0)||(h=d.generatedLine-m.generatedLine,h!==0)?h:T(d.name,m.name)}t.compareByOriginalPositionsNoSource=C;function S(d,m,b){var h=d.generatedLine-m.generatedLine;return h!==0||(h=d.generatedColumn-m.generatedColumn,h!==0||b)||(h=T(d.source,m.source),h!==0)||(h=d.originalLine-m.originalLine,h!==0)||(h=d.originalColumn-m.originalColumn,h!==0)?h:T(d.name,m.name)}t.compareByGeneratedPositionsDeflated=S;function E(d,m,b){var h=d.generatedColumn-m.generatedColumn;return h!==0||b||(h=T(d.source,m.source),h!==0)||(h=d.originalLine-m.originalLine,h!==0)||(h=d.originalColumn-m.originalColumn,h!==0)?h:T(d.name,m.name)}t.compareByGeneratedPositionsDeflatedNoLine=E;function T(d,m){return d===m?0:d===null?1:m===null?-1:d>m?1:-1}function O(d,m){var b=d.generatedLine-m.generatedLine;return b!==0||(b=d.generatedColumn-m.generatedColumn,b!==0)||(b=T(d.source,m.source),b!==0)||(b=d.originalLine-m.originalLine,b!==0)||(b=d.originalColumn-m.originalColumn,b!==0)?b:T(d.name,m.name)}t.compareByGeneratedPositionsInflated=O;function R(d){return JSON.parse(d.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=R;function A(d,m,b){if(m=m||"",d&&(d[d.length-1]!=="/"&&m[0]!=="/"&&(d+="/"),m=d+m),b){var h=g(b);if(!h)throw new Error("sourceMapURL could not be parsed");if(h.path){var w=h.path.lastIndexOf("/");w>=0&&(h.path=h.path.substring(0,w+1));}m=l(u(h),m);}return n(m)}t.computeSourceURL=A;}}),Oe=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(t){var e=H(),o=Object.prototype.hasOwnProperty,c=typeof Map<"u";function g(){this._array=[],this._set=c?new Map:Object.create(null);}g.fromArray=function(s,i){for(var n=new g,l=0,_=s.length;l<_;l++)n.add(s[l],i);return n},g.prototype.size=function(){return c?this._set.size:Object.getOwnPropertyNames(this._set).length},g.prototype.add=function(s,i){var n=c?s:e.toSetString(s),l=c?this.has(s):o.call(this._set,n),_=this._array.length;(!l||i)&&this._array.push(s),l||(c?this._set.set(s,_):this._set[n]=_);},g.prototype.has=function(s){if(c)return this._set.has(s);var i=e.toSetString(s);return o.call(this._set,i)},g.prototype.indexOf=function(s){if(c){var i=this._set.get(s);if(i>=0)return i}else {var n=e.toSetString(s);if(o.call(this._set,n))return this._set[n]}throw new Error('"'+s+'" is not in the set.')},g.prototype.at=function(s){if(s>=0&&s<this._array.length)return this._array[s];throw new Error("No element indexed by "+s)},g.prototype.toArray=function(){return this._array.slice()},t.ArraySet=g;}}),lt=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(t){var e=H();function o(g,u){var s=g.generatedLine,i=u.generatedLine,n=g.generatedColumn,l=u.generatedColumn;return i>s||i==s&&l>=n||e.compareByGeneratedPositionsInflated(g,u)<=0}function c(){this._array=[],this._sorted=true,this._last={generatedLine:-1,generatedColumn:0};}c.prototype.unsortedForEach=function(u,s){this._array.forEach(u,s);},c.prototype.add=function(u){o(this._last,u)?(this._last=u,this._array.push(u)):(this._sorted=false,this._array.push(u));},c.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=true),this._array},t.MappingList=c;}}),Re=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js"(t){var e=Le(),o=H(),c=Oe().ArraySet,g=lt().MappingList;function u(s){s||(s={}),this._file=o.getArg(s,"file",null),this._sourceRoot=o.getArg(s,"sourceRoot",null),this._skipValidation=o.getArg(s,"skipValidation",false),this._ignoreInvalidMapping=o.getArg(s,"ignoreInvalidMapping",false),this._sources=new c,this._names=new c,this._mappings=new g,this._sourcesContents=null;}u.prototype._version=3,u.fromSourceMap=function(i,n){var l=i.sourceRoot,_=new u(Object.assign(n||{},{file:i.file,sourceRoot:l}));return i.eachMapping(function(v){var p={generated:{line:v.generatedLine,column:v.generatedColumn}};v.source!=null&&(p.source=v.source,l!=null&&(p.source=o.relative(l,p.source)),p.original={line:v.originalLine,column:v.originalColumn},v.name!=null&&(p.name=v.name)),_.addMapping(p);}),i.sources.forEach(function(v){var p=v;l!==null&&(p=o.relative(l,v)),_._sources.has(p)||_._sources.add(p);var r=i.sourceContentFor(v);r!=null&&_.setSourceContent(v,r);}),_},u.prototype.addMapping=function(i){var n=o.getArg(i,"generated"),l=o.getArg(i,"original",null),_=o.getArg(i,"source",null),v=o.getArg(i,"name",null);!this._skipValidation&&this._validateMapping(n,l,_,v)===false||(_!=null&&(_=String(_),this._sources.has(_)||this._sources.add(_)),v!=null&&(v=String(v),this._names.has(v)||this._names.add(v)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:l!=null&&l.line,originalColumn:l!=null&&l.column,source:_,name:v}));},u.prototype.setSourceContent=function(i,n){var l=i;this._sourceRoot!=null&&(l=o.relative(this._sourceRoot,l)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(l)]=n):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(l)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));},u.prototype.applySourceMap=function(i,n,l){var _=n;if(n==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);_=i.file;}var v=this._sourceRoot;v!=null&&(_=o.relative(v,_));var p=new c,r=new c;this._mappings.unsortedForEach(function(a){if(a.source===_&&a.originalLine!=null){var f=i.originalPositionFor({line:a.originalLine,column:a.originalColumn});f.source!=null&&(a.source=f.source,l!=null&&(a.source=o.join(l,a.source)),v!=null&&(a.source=o.relative(v,a.source)),a.originalLine=f.line,a.originalColumn=f.column,f.name!=null&&(a.name=f.name));}var y=a.source;y!=null&&!p.has(y)&&p.add(y);var C=a.name;C!=null&&!r.has(C)&&r.add(C);},this),this._sources=p,this._names=r,i.sources.forEach(function(a){var f=i.sourceContentFor(a);f!=null&&(l!=null&&(a=o.join(l,a)),v!=null&&(a=o.relative(v,a)),this.setSourceContent(a,f));},this);},u.prototype._validateMapping=function(i,n,l,_){if(n&&typeof n.line!="number"&&typeof n.column!="number"){var v="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(v),false;throw new Error(v)}if(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!n&&!l&&!_)){if(i&&"line"in i&&"column"in i&&n&&"line"in n&&"column"in n&&i.line>0&&i.column>=0&&n.line>0&&n.column>=0&&l)return;var v="Invalid mapping: "+JSON.stringify({generated:i,source:l,original:n,name:_});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(v),false;throw new Error(v)}},u.prototype._serializeMappings=function(){for(var i=0,n=1,l=0,_=0,v=0,p=0,r="",a,f,y,C,S=this._mappings.toArray(),E=0,T=S.length;E<T;E++){if(f=S[E],a="",f.generatedLine!==n)for(i=0;f.generatedLine!==n;)a+=";",n++;else if(E>0){if(!o.compareByGeneratedPositionsInflated(f,S[E-1]))continue;a+=",";}a+=e.encode(f.generatedColumn-i),i=f.generatedColumn,f.source!=null&&(C=this._sources.indexOf(f.source),a+=e.encode(C-p),p=C,a+=e.encode(f.originalLine-1-_),_=f.originalLine-1,a+=e.encode(f.originalColumn-l),l=f.originalColumn,f.name!=null&&(y=this._names.indexOf(f.name),a+=e.encode(y-v),v=y)),r+=a;}return r},u.prototype._generateSourcesContent=function(i,n){return i.map(function(l){if(!this._sourcesContents)return null;n!=null&&(l=o.relative(n,l));var _=o.toSetString(l);return Object.prototype.hasOwnProperty.call(this._sourcesContents,_)?this._sourcesContents[_]:null},this)},u.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},u.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=u;}}),ut=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.js"(t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2;function e(o,c,g,u,s,i){var n=Math.floor((c-o)/2)+o,l=s(g,u[n],true);return l===0?n:l>0?c-n>1?e(n,c,g,u,s,i):i==t.LEAST_UPPER_BOUND?c<u.length?c:-1:n:n-o>1?e(o,n,g,u,s,i):i==t.LEAST_UPPER_BOUND?n:o<0?-1:o}t.search=function(c,g,u,s){if(g.length===0)return -1;var i=e(-1,g.length,c,g,u,s||t.GREATEST_LOWER_BOUND);if(i<0)return -1;for(;i-1>=0&&u(g[i],g[i-1],true)===0;)--i;return i};}}),ct=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(t){function e(g){function u(n,l,_){var v=n[l];n[l]=n[_],n[_]=v;}function s(n,l){return Math.round(n+Math.random()*(l-n))}function i(n,l,_,v){if(_<v){var p=s(_,v),r=_-1;u(n,p,v);for(var a=n[v],f=_;f<v;f++)l(n[f],a,false)<=0&&(r+=1,u(n,r,f));u(n,r+1,f);var y=r+1;i(n,l,_,y-1),i(n,l,y+1,v);}}return i}function o(g){let u=e.toString();return new Function(`return ${u}`)()(g)}let c=new WeakMap;t.quickSort=function(g,u,s=0){let i=c.get(u);i===undefined&&(i=o(u),c.set(u,i)),i(g,u,s,g.length-1);};}}),ft=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js"(t){var e=H(),o=ut(),c=Oe().ArraySet,g=Le(),u=ct().quickSort;function s(p,r){var a=p;return typeof p=="string"&&(a=e.parseSourceMapInput(p)),a.sections!=null?new v(a,r):new i(a,r)}s.fromSourceMap=function(p,r){return i.fromSourceMap(p,r)},s.prototype._version=3,s.prototype.__generatedMappings=null,Object.defineProperty(s.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),s.prototype.__originalMappings=null,Object.defineProperty(s.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),s.prototype._charIsMappingSeparator=function(r,a){var f=r.charAt(a);return f===";"||f===","},s.prototype._parseMappings=function(r,a){throw new Error("Subclasses must implement _parseMappings")},s.GENERATED_ORDER=1,s.ORIGINAL_ORDER=2,s.GREATEST_LOWER_BOUND=1,s.LEAST_UPPER_BOUND=2,s.prototype.eachMapping=function(r,a,f){var y=a||null,C=f||s.GENERATED_ORDER,S;switch(C){case s.GENERATED_ORDER:S=this._generatedMappings;break;case s.ORIGINAL_ORDER:S=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var E=this.sourceRoot,T=r.bind(y),O=this._names,R=this._sources,A=this._sourceMapURL,d=0,m=S.length;d<m;d++){var b=S[d],h=b.source===null?null:R.at(b.source);h!==null&&(h=e.computeSourceURL(E,h,A)),T({source:h,generatedLine:b.generatedLine,generatedColumn:b.generatedColumn,originalLine:b.originalLine,originalColumn:b.originalColumn,name:b.name===null?null:O.at(b.name)});}},s.prototype.allGeneratedPositionsFor=function(r){var a=e.getArg(r,"line"),f={source:e.getArg(r,"source"),originalLine:a,originalColumn:e.getArg(r,"column",0)};if(f.source=this._findSourceIndex(f.source),f.source<0)return [];var y=[],C=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(C>=0){var S=this._originalMappings[C];if(r.column===undefined)for(var E=S.originalLine;S&&S.originalLine===E;)y.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++C];else for(var T=S.originalColumn;S&&S.originalLine===a&&S.originalColumn==T;)y.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++C];}return y},t.SourceMapConsumer=s;function i(p,r){var a=p;typeof p=="string"&&(a=e.parseSourceMapInput(p));var f=e.getArg(a,"version"),y=e.getArg(a,"sources"),C=e.getArg(a,"names",[]),S=e.getArg(a,"sourceRoot",null),E=e.getArg(a,"sourcesContent",null),T=e.getArg(a,"mappings"),O=e.getArg(a,"file",null);if(f!=this._version)throw new Error("Unsupported version: "+f);S&&(S=e.normalize(S)),y=y.map(String).map(e.normalize).map(function(R){return S&&e.isAbsolute(S)&&e.isAbsolute(R)?e.relative(S,R):R}),this._names=c.fromArray(C.map(String),true),this._sources=c.fromArray(y,true),this._absoluteSources=this._sources.toArray().map(function(R){return e.computeSourceURL(S,R,r)}),this.sourceRoot=S,this.sourcesContent=E,this._mappings=T,this._sourceMapURL=r,this.file=O;}i.prototype=Object.create(s.prototype),i.prototype.consumer=s,i.prototype._findSourceIndex=function(p){var r=p;if(this.sourceRoot!=null&&(r=e.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);var a;for(a=0;a<this._absoluteSources.length;++a)if(this._absoluteSources[a]==p)return a;return -1},i.fromSourceMap=function(r,a){var f=Object.create(i.prototype),y=f._names=c.fromArray(r._names.toArray(),true),C=f._sources=c.fromArray(r._sources.toArray(),true);f.sourceRoot=r._sourceRoot,f.sourcesContent=r._generateSourcesContent(f._sources.toArray(),f.sourceRoot),f.file=r._file,f._sourceMapURL=a,f._absoluteSources=f._sources.toArray().map(function(m){return e.computeSourceURL(f.sourceRoot,m,a)});for(var S=r._mappings.toArray().slice(),E=f.__generatedMappings=[],T=f.__originalMappings=[],O=0,R=S.length;O<R;O++){var A=S[O],d=new n;d.generatedLine=A.generatedLine,d.generatedColumn=A.generatedColumn,A.source&&(d.source=C.indexOf(A.source),d.originalLine=A.originalLine,d.originalColumn=A.originalColumn,A.name&&(d.name=y.indexOf(A.name)),T.push(d)),E.push(d);}return u(f.__originalMappings,e.compareByOriginalPositions),f},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function n(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null;}let l=e.compareByGeneratedPositionsDeflatedNoLine;function _(p,r){let a=p.length,f=p.length-r;if(!(f<=1))if(f==2){let y=p[r],C=p[r+1];l(y,C)>0&&(p[r]=C,p[r+1]=y);}else if(f<20)for(let y=r;y<a;y++)for(let C=y;C>r;C--){let S=p[C-1],E=p[C];if(l(S,E)<=0)break;p[C-1]=E,p[C]=S;}else u(p,l,r);}i.prototype._parseMappings=function(r,a){var f=1,y=0,C=0,S=0,E=0,T=0,O=r.length,R=0,d={},m=[],b=[],h,L,M,F;let k=0;for(;R<O;)if(r.charAt(R)===";")f++,R++,y=0,_(b,k),k=b.length;else if(r.charAt(R)===",")R++;else {for(h=new n,h.generatedLine=f,M=R;M<O&&!this._charIsMappingSeparator(r,M);M++);for(r.slice(R,M),L=[];R<M;)g.decode(r,R,d),F=d.value,R=d.rest,L.push(F);if(L.length===2)throw new Error("Found a source, but no line and column");if(L.length===3)throw new Error("Found a source and line, but no column");if(h.generatedColumn=y+L[0],y=h.generatedColumn,L.length>1&&(h.source=E+L[1],E+=L[1],h.originalLine=C+L[2],C=h.originalLine,h.originalLine+=1,h.originalColumn=S+L[3],S=h.originalColumn,L.length>4&&(h.name=T+L[4],T+=L[4])),b.push(h),typeof h.originalLine=="number"){let G=h.source;for(;m.length<=G;)m.push(null);m[G]===null&&(m[G]=[]),m[G].push(h);}}_(b,k),this.__generatedMappings=b;for(var N=0;N<m.length;N++)m[N]!=null&&u(m[N],e.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...m);},i.prototype._findMapping=function(r,a,f,y,C,S){if(r[f]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+r[f]);if(r[y]<0)throw new TypeError("Column must be greater than or equal to 0, got "+r[y]);return o.search(r,a,C,S)},i.prototype.computeColumnSpans=function(){for(var r=0;r<this._generatedMappings.length;++r){var a=this._generatedMappings[r];if(r+1<this._generatedMappings.length){var f=this._generatedMappings[r+1];if(a.generatedLine===f.generatedLine){a.lastGeneratedColumn=f.generatedColumn-1;continue}}a.lastGeneratedColumn=1/0;}},i.prototype.originalPositionFor=function(r){var a={generatedLine:e.getArg(r,"line"),generatedColumn:e.getArg(r,"column")},f=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(r,"bias",s.GREATEST_LOWER_BOUND));if(f>=0){var y=this._generatedMappings[f];if(y.generatedLine===a.generatedLine){var C=e.getArg(y,"source",null);C!==null&&(C=this._sources.at(C),C=e.computeSourceURL(this.sourceRoot,C,this._sourceMapURL));var S=e.getArg(y,"name",null);return S!==null&&(S=this._names.at(S)),{source:C,line:e.getArg(y,"originalLine",null),column:e.getArg(y,"originalColumn",null),name:S}}}return {source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(r){return r==null}):false},i.prototype.sourceContentFor=function(r,a){if(!this.sourcesContent)return null;var f=this._findSourceIndex(r);if(f>=0)return this.sourcesContent[f];var y=r;this.sourceRoot!=null&&(y=e.relative(this.sourceRoot,y));var C;if(this.sourceRoot!=null&&(C=e.urlParse(this.sourceRoot))){var S=y.replace(/^file:\/\//,"");if(C.scheme=="file"&&this._sources.has(S))return this.sourcesContent[this._sources.indexOf(S)];if((!C.path||C.path=="/")&&this._sources.has("/"+y))return this.sourcesContent[this._sources.indexOf("/"+y)]}if(a)return null;throw new Error('"'+y+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(r){var a=e.getArg(r,"source");if(a=this._findSourceIndex(a),a<0)return {line:null,column:null,lastColumn:null};var f={source:a,originalLine:e.getArg(r,"line"),originalColumn:e.getArg(r,"column")},y=this._findMapping(f,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(r,"bias",s.GREATEST_LOWER_BOUND));if(y>=0){var C=this._originalMappings[y];if(C.source===f.source)return {line:e.getArg(C,"generatedLine",null),column:e.getArg(C,"generatedColumn",null),lastColumn:e.getArg(C,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=i;function v(p,r){var a=p;typeof p=="string"&&(a=e.parseSourceMapInput(p));var f=e.getArg(a,"version"),y=e.getArg(a,"sections");if(f!=this._version)throw new Error("Unsupported version: "+f);this._sources=new c,this._names=new c;var C={line:-1,column:0};this._sections=y.map(function(S){if(S.url)throw new Error("Support for url field in sections not implemented.");var E=e.getArg(S,"offset"),T=e.getArg(E,"line"),O=e.getArg(E,"column");if(T<C.line||T===C.line&&O<C.column)throw new Error("Section offsets must be ordered and non-overlapping.");return C=E,{generatedOffset:{generatedLine:T+1,generatedColumn:O+1},consumer:new s(e.getArg(S,"map"),r)}});}v.prototype=Object.create(s.prototype),v.prototype.constructor=s,v.prototype._version=3,Object.defineProperty(v.prototype,"sources",{get:function(){for(var p=[],r=0;r<this._sections.length;r++)for(var a=0;a<this._sections[r].consumer.sources.length;a++)p.push(this._sections[r].consumer.sources[a]);return p}}),v.prototype.originalPositionFor=function(r){var a={generatedLine:e.getArg(r,"line"),generatedColumn:e.getArg(r,"column")},f=o.search(a,this._sections,function(C,S){var E=C.generatedLine-S.generatedOffset.generatedLine;return E||C.generatedColumn-S.generatedOffset.generatedColumn}),y=this._sections[f];return y?y.consumer.originalPositionFor({line:a.generatedLine-(y.generatedOffset.generatedLine-1),column:a.generatedColumn-(y.generatedOffset.generatedLine===a.generatedLine?y.generatedOffset.generatedColumn-1:0),bias:r.bias}):{source:null,line:null,column:null,name:null}},v.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(r){return r.consumer.hasContentsOfAllSources()})},v.prototype.sourceContentFor=function(r,a){for(var f=0;f<this._sections.length;f++){var y=this._sections[f],C=y.consumer.sourceContentFor(r,true);if(C||C==="")return C}if(a)return null;throw new Error('"'+r+'" is not in the SourceMap.')},v.prototype.generatedPositionFor=function(r){for(var a=0;a<this._sections.length;a++){var f=this._sections[a];if(f.consumer._findSourceIndex(e.getArg(r,"source"))!==-1){var y=f.consumer.generatedPositionFor(r);if(y){var C={line:y.line+(f.generatedOffset.generatedLine-1),column:y.column+(f.generatedOffset.generatedLine===y.line?f.generatedOffset.generatedColumn-1:0)};return C}}}return {line:null,column:null}},v.prototype._parseMappings=function(r,a){this.__generatedMappings=[],this.__originalMappings=[];for(var f=0;f<this._sections.length;f++)for(var y=this._sections[f],C=y.consumer._generatedMappings,S=0;S<C.length;S++){var E=C[S],T=y.consumer._sources.at(E.source);T!==null&&(T=e.computeSourceURL(y.consumer.sourceRoot,T,this._sourceMapURL)),this._sources.add(T),T=this._sources.indexOf(T);var O=null;E.name&&(O=y.consumer._names.at(E.name),this._names.add(O),O=this._names.indexOf(O));var R={source:T,generatedLine:E.generatedLine+(y.generatedOffset.generatedLine-1),generatedColumn:E.generatedColumn+(y.generatedOffset.generatedLine===E.generatedLine?y.generatedOffset.generatedColumn-1:0),originalLine:E.originalLine,originalColumn:E.originalColumn,name:O};this.__generatedMappings.push(R),typeof R.originalLine=="number"&&this.__originalMappings.push(R);}u(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),u(this.__originalMappings,e.compareByOriginalPositions);},t.IndexedSourceMapConsumer=v;}}),dt=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"(t){var e=Re().SourceMapGenerator,o=H(),c=/(\r?\n)/,g=10,u="$$$isSourceNode$$$";function s(i,n,l,_,v){this.children=[],this.sourceContents={},this.line=i??null,this.column=n??null,this.source=l??null,this.name=v??null,this[u]=true,_!=null&&this.add(_);}s.fromStringWithSourceMap=function(n,l,_){var v=new s,p=n.split(c),r=0,a=function(){var E=O(),T=O()||"";return E+T;function O(){return r<p.length?p[r++]:undefined}},f=1,y=0,C=null;return l.eachMapping(function(E){if(C!==null)if(f<E.generatedLine)S(C,a()),f++,y=0;else {var T=p[r]||"",O=T.substr(0,E.generatedColumn-y);p[r]=T.substr(E.generatedColumn-y),y=E.generatedColumn,S(C,O),C=E;return}for(;f<E.generatedLine;)v.add(a()),f++;if(y<E.generatedColumn){var T=p[r]||"";v.add(T.substr(0,E.generatedColumn)),p[r]=T.substr(E.generatedColumn),y=E.generatedColumn;}C=E;},this),r<p.length&&(C&&S(C,a()),v.add(p.splice(r).join(""))),l.sources.forEach(function(E){var T=l.sourceContentFor(E);T!=null&&(_!=null&&(E=o.join(_,E)),v.setSourceContent(E,T));}),v;function S(E,T){if(E===null||E.source===undefined)v.add(T);else {var O=_?o.join(_,E.source):E.source;v.add(new s(E.originalLine,E.originalColumn,O,T,E.name));}}},s.prototype.add=function(n){if(Array.isArray(n))n.forEach(function(l){this.add(l);},this);else if(n[u]||typeof n=="string")n&&this.children.push(n);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+n);return this},s.prototype.prepend=function(n){if(Array.isArray(n))for(var l=n.length-1;l>=0;l--)this.prepend(n[l]);else if(n[u]||typeof n=="string")this.children.unshift(n);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+n);return this},s.prototype.walk=function(n){for(var l,_=0,v=this.children.length;_<v;_++)l=this.children[_],l[u]?l.walk(n):l!==""&&n(l,{source:this.source,line:this.line,column:this.column,name:this.name});},s.prototype.join=function(n){var l,_,v=this.children.length;if(v>0){for(l=[],_=0;_<v-1;_++)l.push(this.children[_]),l.push(n);l.push(this.children[_]),this.children=l;}return this},s.prototype.replaceRight=function(n,l){var _=this.children[this.children.length-1];return _[u]?_.replaceRight(n,l):typeof _=="string"?this.children[this.children.length-1]=_.replace(n,l):this.children.push("".replace(n,l)),this},s.prototype.setSourceContent=function(n,l){this.sourceContents[o.toSetString(n)]=l;},s.prototype.walkSourceContents=function(n){for(var l=0,_=this.children.length;l<_;l++)this.children[l][u]&&this.children[l].walkSourceContents(n);for(var v=Object.keys(this.sourceContents),l=0,_=v.length;l<_;l++)n(o.fromSetString(v[l]),this.sourceContents[v[l]]);},s.prototype.toString=function(){var n="";return this.walk(function(l){n+=l;}),n},s.prototype.toStringWithSourceMap=function(n){var l={code:"",line:1,column:0},_=new e(n),v=false,p=null,r=null,a=null,f=null;return this.walk(function(y,C){l.code+=y,C.source!==null&&C.line!==null&&C.column!==null?((p!==C.source||r!==C.line||a!==C.column||f!==C.name)&&_.addMapping({source:C.source,original:{line:C.line,column:C.column},generated:{line:l.line,column:l.column},name:C.name}),p=C.source,r=C.line,a=C.column,f=C.name,v=true):v&&(_.addMapping({generated:{line:l.line,column:l.column}}),p=null,v=false);for(var S=0,E=y.length;S<E;S++)y.charCodeAt(S)===g?(l.line++,l.column=0,S+1===E?(p=null,v=false):v&&_.addMapping({source:C.source,original:{line:C.line,column:C.column},generated:{line:l.line,column:l.column},name:C.name})):l.column++;}),this.walkSourceContents(function(y,C){_.setSourceContent(y,C);}),{code:l.code,map:_}},t.SourceNode=s;}}),mt=I({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.js"(t){t.SourceMapGenerator=Re().SourceMapGenerator,t.SourceMapConsumer=ft().SourceMapConsumer,t.SourceNode=dt().SourceNode;}}),pt=nt(mt()),ae=false,P=t=>`
12
- in ${t}`,ht=/^data:application\/json[^,]+base64,/,gt=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Me=async(t,e)=>{let o=e.split(`
13
- `),c;for(let s=o.length-1;s>=0&&!c;s--){let i=o[s].match(gt);i&&(c=i[1]);}if(!c)return null;if(!(ht.test(c)||c.startsWith("/"))){let s=t.split("/");s[s.length-1]=c,c=s.join("/");}let u=await(await fetch(c)).json();return new pt.SourceMapConsumer(u)},Fe=async(t,e)=>{let o=ot(t);if(!o.length)return [];let c=o.slice(0,e);return (await Promise.all(c.map(async({file:u,line:s,col:i=0})=>{if(!u||!s)return null;try{let n=await fetch(u);if(n.ok){let l=await n.text(),_=await Me(u,l);if(_){let v=_.originalPositionFor({line:s,column:i});return {fileName:(_.file||v.source).replace(/^file:\/\//,""),lineNumber:v.line,columnNumber:v.column}}}return {fileName:u.replace(/^file:\/\//,""),lineNumber:s,columnNumber:i}}catch{return {fileName:u.replace(/^file:\/\//,""),lineNumber:s,columnNumber:i}}}))).filter(u=>u!==null)},V=(t,e)=>{if(!t||ae)return "";let o=Error.prepareStackTrace;Error.prepareStackTrace=undefined,ae=true;let c=Ae();le(null);let g=console.error,u=console.warn;console.error=()=>{},console.warn=()=>{};try{let n={DetermineComponentFrameRoot(){let p;try{if(e){let r=function(){throw Error()};if(Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[]);}catch(a){p=a;}Reflect.construct(t,[],r);}else {try{r.call();}catch(a){p=a;}t.call(r.prototype);}}else {try{throw Error()}catch(a){p=a;}let r=t();r&&typeof r.catch=="function"&&r.catch(()=>{});}}catch(r){if(r&&p&&typeof r.stack=="string")return [r.stack,p.stack]}return [null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[_,v]=n.DetermineComponentFrameRoot();if(_&&v){let p=_.split(`
14
- `),r=v.split(`
15
- `),a=0,f=0;for(;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;f<r.length&&!r[f].includes("DetermineComponentFrameRoot");)f++;if(a===p.length||f===r.length)for(a=p.length-1,f=r.length-1;a>=1&&f>=0&&p[a]!==r[f];)f--;for(;a>=1&&f>=0;a--,f--)if(p[a]!==r[f]){if(a!==1||f!==1)do if(a--,f--,f<0||p[a]!==r[f]){let y=`
16
- ${p[a].replace(" at new "," at ")}`,C=B(t);return C&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",C)),y}while(a>=1&&f>=0);break}}}finally{ae=false,Error.prepareStackTrace=o,le(c),console.error=g,console.warn=u;}let s=t?B(t):"";return s?P(s):""},Ae=()=>{let t=D();for(let e of [...Array.from(j),...Array.from(t.renderers.values())]){let o=e.currentDispatcherRef;if(o&&typeof o=="object")return "H"in o?o.H:o.current}return null},le=t=>{for(let e of j){let o=e.currentDispatcherRef;o&&typeof o=="object"&&("H"in o?o.H=t:o.current=t);}};var Ne=(t,e)=>{switch(t.tag){case ne:case re:case Q:return P(t.type);case ee:return P("Lazy");case J:return t.child!==e&&e!==null?P("Suspense Fallback"):P("Suspense");case te:return P("SuspenseList");case Y:case Z:return V(t.type,false);case X:return V(t.type.render,false);case K:return V(t.type,true);case oe:return P("Activity");case ie:return P("ViewTransition");default:return ""}},Ie=(t,e,o)=>{let c=`
17
- in ${t}`;return e&&(c+=` (at ${e})`),c},ue=t=>{try{let e="",o=t,c=null;do{e+=Ne(o,c);let g=o._debugInfo;if(g&&Array.isArray(g))for(let u=g.length-1;u>=0;u--){let s=g[u];typeof s.name=="string"&&(e+=Ie(s.name,s.env,s.debugLocation));}c=o,o=o.return;}while(o);return e}catch(e){return e instanceof Error?`
9
+ var me="0.3.29",q=`bippy-${me}`,fe=Object.defineProperty,He=Object.prototype.hasOwnProperty,H=()=>{},pe=t=>{try{Function.prototype.toString.call(t).indexOf("^_^")>-1&&setTimeout(()=>{throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")});}catch{}},he=(t=D())=>"getFiberRoots"in t,ge=false,de,W=(t=D())=>ge?true:(typeof t.inject=="function"&&(de=t.inject.toString()),!!de?.includes("(injected)")),$=new Set,P=new Set,ve=t=>{let e=new Map,i=0,f={checkDCE:pe,supportsFiber:true,supportsFlight:true,hasUnsupportedRendererAttached:false,renderers:e,onCommitFiberRoot:H,onCommitFiberUnmount:H,onPostCommitFiberRoot:H,on:H,inject(C){let a=++i;return e.set(a,C),P.add(C),f._instrumentationIsActive||(f._instrumentationIsActive=true,$.forEach(r=>r())),a},_instrumentationSource:q,_instrumentationIsActive:false};try{fe(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{get(){return f},set(r){if(r&&typeof r=="object"){let o=f.renderers;f=r,o.size>0&&(o.forEach((s,c)=>{P.add(s),r.renderers.set(c,s);}),z(t));}},configurable:!0,enumerable:!0});let C=window.hasOwnProperty,a=!1;fe(window,"hasOwnProperty",{value:function(){try{if(!a&&arguments[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,a=!0,-0}catch{}return C.apply(this,arguments)},configurable:!0,writable:!0});}catch{z(t);}return f},z=t=>{try{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!e)return;if(!e._instrumentationSource){if(e.checkDCE=pe,e.supportsFiber=!0,e.supportsFlight=!0,e.hasUnsupportedRendererAttached=!1,e._instrumentationSource=q,e._instrumentationIsActive=!1,e.on=H,e.renderers.size){e._instrumentationIsActive=!0,$.forEach(f=>f());return}let i=e.inject;W(e)&&!he()&&(ge=!0,e.inject({scheduleRefresh(){}})&&(e._instrumentationIsActive=!0)),e.inject=f=>{let C=i(f);return P.add(f),e._instrumentationIsActive=!0,$.forEach(a=>a()),C};}(e.renderers.size||e._instrumentationIsActive||W())&&t?.();}catch{}},_e=()=>He.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),D=t=>_e()?(z(t),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):ve(t),ye=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Ce=()=>{try{ye()&&D();}catch{}},Y=0,K=1;var Q=5;var X=11,J=13;var Z=15,ee=16;var te=19;var ne=26,re=27,oe=28,ie=30;var U=t=>{let e=t;return typeof e=="function"?e:typeof e=="object"&&e?U(e.type||e.render):null},B=t=>{let e=t;if(typeof e=="string")return e;if(typeof e!="function"&&!(typeof e=="object"&&e))return null;let i=e.displayName||e.name||null;if(i)return i;let f=U(e);return f&&(f.displayName||f.name)||null};var se=t=>{let e=D();for(let i of e.renderers.values())try{let f=i.findFiberByHostInstance?.(t);if(f)return f}catch{}if(typeof t=="object"&&t!=null){if("_reactRootContainer"in t)return t._reactRootContainer?._internalRoot?.current?.child;for(let i in t)if(i.startsWith("__reactContainer$")||i.startsWith("__reactInternalInstance$")||i.startsWith("__reactFiber"))return t[i]||null}return null};Ce();var Xe=Object.create,Se=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,be=Object.getOwnPropertyNames,Ze=Object.getPrototypeOf,et=Object.prototype.hasOwnProperty,k=(t,e)=>function(){return e||(0, t[be(t)[0]])((e={exports:{}}).exports,e),e.exports},tt=(t,e,i,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(var C=be(e),a=0,r=C.length,o;a<r;a++)o=C[a],!et.call(t,o)&&o!==i&&Se(t,o,{get:(s=>e[s]).bind(null,o),enumerable:!(f=Je(e,o))||f.enumerable});return t},nt=(t,e,i)=>(i=t!=null?Xe(Ze(t)):{},tt(Se(i,"default",{value:t,enumerable:true}),t)),Ee=/^\s*at .*(\S+:\d+|\(native\))/m,rt=/^(eval@)?(\[native code\])?$/;function ot(t,e){return t.match(Ee)?it(t,e):st(t,e)}function we(t){if(!t.includes(":"))return [t,undefined,undefined];let i=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return [i[1],i[2]||undefined,i[3]||undefined]}function Te(t,e){return e&&e.slice!=null?Array.isArray(e.slice)?t.slice(e.slice[0],e.slice[1]):t.slice(0,e.slice):t}function it(t,e){return Te(t.split(`
10
+ `).filter(f=>!!f.match(Ee)),e).map(f=>{f.includes("(eval ")&&(f=f.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let C=f.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),a=C.match(/ (\(.+\)$)/);C=a?C.replace(a[0],""):C;let r=we(a?a[1]:C),o=a&&C||undefined,s=["eval","<anonymous>"].includes(r[0])?undefined:r[0];return {function:o,file:s,line:r[1]?+r[1]:undefined,col:r[2]?+r[2]:undefined,raw:f}})}function st(t,e){return Te(t.split(`
11
+ `).filter(f=>!f.match(rt)),e).map(f=>{if(f.includes(" > eval")&&(f=f.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!f.includes("@")&&!f.includes(":"))return {function:f};{let C=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,a=f.match(C),r=a&&a[1]?a[1]:undefined,o=we(f.replace(C,""));return {function:r,file:o[0],line:o[1]?+o[1]:undefined,col:o[2]?+o[2]:undefined,raw:f}}})}var at=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.js"(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(i){if(0<=i&&i<e.length)return e[i];throw new TypeError("Must be between 0 and 63: "+i)},t.decode=function(i){var f=65,C=90,a=97,r=122,o=48,s=57,c=43,g=47,p=26,d=52;return f<=i&&i<=C?i-f:a<=i&&i<=r?i-a+p:o<=i&&i<=s?i-o+d:i==c?62:i==g?63:-1};}}),Le=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js"(t){var e=at(),i=5,f=1<<i,C=f-1,a=f;function r(s){return s<0?(-s<<1)+1:(s<<1)+0}function o(s){var c=(s&1)===1,g=s>>1;return c?-g:g}t.encode=function(c){var g="",p,d=r(c);do p=d&C,d>>>=i,d>0&&(p|=a),g+=e.encode(p);while(d>0);return g},t.decode=function(c,g,p){var d=c.length,n=0,l=0,u,_;do{if(g>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(_=e.decode(c.charCodeAt(g++)),_===-1)throw new Error("Invalid base64 digit: "+c.charAt(g-1));u=!!(_&a),_&=C,n=n+(_<<l),l+=i;}while(u);p.value=o(n),p.rest=g;};}}),G=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(t){function e(m,h,S){if(h in m)return m[h];if(arguments.length===3)return S;throw new Error('"'+h+'" is a required argument.')}t.getArg=e;var i=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,f=/^data:.+\,.+$/;function C(m){var h=m.match(i);return h?{scheme:h[1],auth:h[2],host:h[3],port:h[4],path:h[5]}:null}t.urlParse=C;function a(m){var h="";return m.scheme&&(h+=m.scheme+":"),h+="//",m.auth&&(h+=m.auth+"@"),m.host&&(h+=m.host),m.port&&(h+=":"+m.port),m.path&&(h+=m.path),h}t.urlGenerate=a;var r=32;function o(m){var h=[];return function(S){for(var v=0;v<h.length;v++)if(h[v].input===S){var A=h[0];return h[0]=h[v],h[v]=A,h[0].result}var w=m(S);return h.unshift({input:S,result:w}),h.length>r&&h.pop(),w}}var s=o(function(h){var S=h,v=C(h);if(v){if(!v.path)return h;S=v.path;}for(var A=t.isAbsolute(S),w=[],L=0,M=0;;)if(L=M,M=S.indexOf("/",L),M===-1){w.push(S.slice(L));break}else for(w.push(S.slice(L,M));M<S.length&&S[M]==="/";)M++;for(var N,I=0,M=w.length-1;M>=0;M--)N=w[M],N==="."?w.splice(M,1):N===".."?I++:I>0&&(N===""?(w.splice(M+1,I),I=0):(w.splice(M,2),I--));return S=w.join("/"),S===""&&(S=A?"/":"."),v?(v.path=S,a(v)):S});t.normalize=s;function c(m,h){m===""&&(m="."),h===""&&(h=".");var S=C(h),v=C(m);if(v&&(m=v.path||"/"),S&&!S.scheme)return v&&(S.scheme=v.scheme),a(S);if(S||h.match(f))return h;if(v&&!v.host&&!v.path)return v.host=h,a(v);var A=h.charAt(0)==="/"?h:s(m.replace(/\/+$/,"")+"/"+h);return v?(v.path=A,a(v)):A}t.join=c,t.isAbsolute=function(m){return m.charAt(0)==="/"||i.test(m)};function g(m,h){m===""&&(m="."),m=m.replace(/\/$/,"");for(var S=0;h.indexOf(m+"/")!==0;){var v=m.lastIndexOf("/");if(v<0||(m=m.slice(0,v),m.match(/^([^\/]+:\/)?\/*$/)))return h;++S;}return Array(S+1).join("../")+h.substr(m.length+1)}t.relative=g;var p=function(){var m=Object.create(null);return !("__proto__"in m)}();function d(m){return m}function n(m){return u(m)?"$"+m:m}t.toSetString=p?d:n;function l(m){return u(m)?m.slice(1):m}t.fromSetString=p?d:l;function u(m){if(!m)return false;var h=m.length;if(h<9||m.charCodeAt(h-1)!==95||m.charCodeAt(h-2)!==95||m.charCodeAt(h-3)!==111||m.charCodeAt(h-4)!==116||m.charCodeAt(h-5)!==111||m.charCodeAt(h-6)!==114||m.charCodeAt(h-7)!==112||m.charCodeAt(h-8)!==95||m.charCodeAt(h-9)!==95)return false;for(var S=h-10;S>=0;S--)if(m.charCodeAt(S)!==36)return false;return true}function _(m,h,S){var v=T(m.source,h.source);return v!==0||(v=m.originalLine-h.originalLine,v!==0)||(v=m.originalColumn-h.originalColumn,v!==0||S)||(v=m.generatedColumn-h.generatedColumn,v!==0)||(v=m.generatedLine-h.generatedLine,v!==0)?v:T(m.name,h.name)}t.compareByOriginalPositions=_;function y(m,h,S){var v;return v=m.originalLine-h.originalLine,v!==0||(v=m.originalColumn-h.originalColumn,v!==0||S)||(v=m.generatedColumn-h.generatedColumn,v!==0)||(v=m.generatedLine-h.generatedLine,v!==0)?v:T(m.name,h.name)}t.compareByOriginalPositionsNoSource=y;function b(m,h,S){var v=m.generatedLine-h.generatedLine;return v!==0||(v=m.generatedColumn-h.generatedColumn,v!==0||S)||(v=T(m.source,h.source),v!==0)||(v=m.originalLine-h.originalLine,v!==0)||(v=m.originalColumn-h.originalColumn,v!==0)?v:T(m.name,h.name)}t.compareByGeneratedPositionsDeflated=b;function E(m,h,S){var v=m.generatedColumn-h.generatedColumn;return v!==0||S||(v=T(m.source,h.source),v!==0)||(v=m.originalLine-h.originalLine,v!==0)||(v=m.originalColumn-h.originalColumn,v!==0)?v:T(m.name,h.name)}t.compareByGeneratedPositionsDeflatedNoLine=E;function T(m,h){return m===h?0:m===null?1:h===null?-1:m>h?1:-1}function O(m,h){var S=m.generatedLine-h.generatedLine;return S!==0||(S=m.generatedColumn-h.generatedColumn,S!==0)||(S=T(m.source,h.source),S!==0)||(S=m.originalLine-h.originalLine,S!==0)||(S=m.originalColumn-h.originalColumn,S!==0)?S:T(m.name,h.name)}t.compareByGeneratedPositionsInflated=O;function R(m){return JSON.parse(m.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=R;function F(m,h,S){if(h=h||"",m&&(m[m.length-1]!=="/"&&h[0]!=="/"&&(m+="/"),h=m+h),S){var v=C(S);if(!v)throw new Error("sourceMapURL could not be parsed");if(v.path){var A=v.path.lastIndexOf("/");A>=0&&(v.path=v.path.substring(0,A+1));}h=c(a(v),h);}return s(h)}t.computeSourceURL=F;}}),Oe=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(t){var e=G(),i=Object.prototype.hasOwnProperty,f=typeof Map<"u";function C(){this._array=[],this._set=f?new Map:Object.create(null);}C.fromArray=function(r,o){for(var s=new C,c=0,g=r.length;c<g;c++)s.add(r[c],o);return s},C.prototype.size=function(){return f?this._set.size:Object.getOwnPropertyNames(this._set).length},C.prototype.add=function(r,o){var s=f?r:e.toSetString(r),c=f?this.has(r):i.call(this._set,s),g=this._array.length;(!c||o)&&this._array.push(r),c||(f?this._set.set(r,g):this._set[s]=g);},C.prototype.has=function(r){if(f)return this._set.has(r);var o=e.toSetString(r);return i.call(this._set,o)},C.prototype.indexOf=function(r){if(f){var o=this._set.get(r);if(o>=0)return o}else {var s=e.toSetString(r);if(i.call(this._set,s))return this._set[s]}throw new Error('"'+r+'" is not in the set.')},C.prototype.at=function(r){if(r>=0&&r<this._array.length)return this._array[r];throw new Error("No element indexed by "+r)},C.prototype.toArray=function(){return this._array.slice()},t.ArraySet=C;}}),lt=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(t){var e=G();function i(C,a){var r=C.generatedLine,o=a.generatedLine,s=C.generatedColumn,c=a.generatedColumn;return o>r||o==r&&c>=s||e.compareByGeneratedPositionsInflated(C,a)<=0}function f(){this._array=[],this._sorted=true,this._last={generatedLine:-1,generatedColumn:0};}f.prototype.unsortedForEach=function(a,r){this._array.forEach(a,r);},f.prototype.add=function(a){i(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=false,this._array.push(a));},f.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=true),this._array},t.MappingList=f;}}),Re=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js"(t){var e=Le(),i=G(),f=Oe().ArraySet,C=lt().MappingList;function a(r){r||(r={}),this._file=i.getArg(r,"file",null),this._sourceRoot=i.getArg(r,"sourceRoot",null),this._skipValidation=i.getArg(r,"skipValidation",false),this._ignoreInvalidMapping=i.getArg(r,"ignoreInvalidMapping",false),this._sources=new f,this._names=new f,this._mappings=new C,this._sourcesContents=null;}a.prototype._version=3,a.fromSourceMap=function(o,s){var c=o.sourceRoot,g=new a(Object.assign(s||{},{file:o.file,sourceRoot:c}));return o.eachMapping(function(p){var d={generated:{line:p.generatedLine,column:p.generatedColumn}};p.source!=null&&(d.source=p.source,c!=null&&(d.source=i.relative(c,d.source)),d.original={line:p.originalLine,column:p.originalColumn},p.name!=null&&(d.name=p.name)),g.addMapping(d);}),o.sources.forEach(function(p){var d=p;c!==null&&(d=i.relative(c,p)),g._sources.has(d)||g._sources.add(d);var n=o.sourceContentFor(p);n!=null&&g.setSourceContent(p,n);}),g},a.prototype.addMapping=function(o){var s=i.getArg(o,"generated"),c=i.getArg(o,"original",null),g=i.getArg(o,"source",null),p=i.getArg(o,"name",null);!this._skipValidation&&this._validateMapping(s,c,g,p)===false||(g!=null&&(g=String(g),this._sources.has(g)||this._sources.add(g)),p!=null&&(p=String(p),this._names.has(p)||this._names.add(p)),this._mappings.add({generatedLine:s.line,generatedColumn:s.column,originalLine:c!=null&&c.line,originalColumn:c!=null&&c.column,source:g,name:p}));},a.prototype.setSourceContent=function(o,s){var c=o;this._sourceRoot!=null&&(c=i.relative(this._sourceRoot,c)),s!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(c)]=s):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(c)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));},a.prototype.applySourceMap=function(o,s,c){var g=s;if(s==null){if(o.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);g=o.file;}var p=this._sourceRoot;p!=null&&(g=i.relative(p,g));var d=new f,n=new f;this._mappings.unsortedForEach(function(l){if(l.source===g&&l.originalLine!=null){var u=o.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,c!=null&&(l.source=i.join(c,l.source)),p!=null&&(l.source=i.relative(p,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name));}var _=l.source;_!=null&&!d.has(_)&&d.add(_);var y=l.name;y!=null&&!n.has(y)&&n.add(y);},this),this._sources=d,this._names=n,o.sources.forEach(function(l){var u=o.sourceContentFor(l);u!=null&&(c!=null&&(l=i.join(c,l)),p!=null&&(l=i.relative(p,l)),this.setSourceContent(l,u));},this);},a.prototype._validateMapping=function(o,s,c,g){if(s&&typeof s.line!="number"&&typeof s.column!="number"){var p="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(p),false;throw new Error(p)}if(!(o&&"line"in o&&"column"in o&&o.line>0&&o.column>=0&&!s&&!c&&!g)){if(o&&"line"in o&&"column"in o&&s&&"line"in s&&"column"in s&&o.line>0&&o.column>=0&&s.line>0&&s.column>=0&&c)return;var p="Invalid mapping: "+JSON.stringify({generated:o,source:c,original:s,name:g});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(p),false;throw new Error(p)}},a.prototype._serializeMappings=function(){for(var o=0,s=1,c=0,g=0,p=0,d=0,n="",l,u,_,y,b=this._mappings.toArray(),E=0,T=b.length;E<T;E++){if(u=b[E],l="",u.generatedLine!==s)for(o=0;u.generatedLine!==s;)l+=";",s++;else if(E>0){if(!i.compareByGeneratedPositionsInflated(u,b[E-1]))continue;l+=",";}l+=e.encode(u.generatedColumn-o),o=u.generatedColumn,u.source!=null&&(y=this._sources.indexOf(u.source),l+=e.encode(y-d),d=y,l+=e.encode(u.originalLine-1-g),g=u.originalLine-1,l+=e.encode(u.originalColumn-c),c=u.originalColumn,u.name!=null&&(_=this._names.indexOf(u.name),l+=e.encode(_-p),p=_)),n+=l;}return n},a.prototype._generateSourcesContent=function(o,s){return o.map(function(c){if(!this._sourcesContents)return null;s!=null&&(c=i.relative(s,c));var g=i.toSetString(c);return Object.prototype.hasOwnProperty.call(this._sourcesContents,g)?this._sourcesContents[g]:null},this)},a.prototype.toJSON=function(){var o={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(o.file=this._file),this._sourceRoot!=null&&(o.sourceRoot=this._sourceRoot),this._sourcesContents&&(o.sourcesContent=this._generateSourcesContent(o.sources,o.sourceRoot)),o},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=a;}}),ut=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.js"(t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2;function e(i,f,C,a,r,o){var s=Math.floor((f-i)/2)+i,c=r(C,a[s],true);return c===0?s:c>0?f-s>1?e(s,f,C,a,r,o):o==t.LEAST_UPPER_BOUND?f<a.length?f:-1:s:s-i>1?e(i,s,C,a,r,o):o==t.LEAST_UPPER_BOUND?s:i<0?-1:i}t.search=function(f,C,a,r){if(C.length===0)return -1;var o=e(-1,C.length,f,C,a,r||t.GREATEST_LOWER_BOUND);if(o<0)return -1;for(;o-1>=0&&a(C[o],C[o-1],true)===0;)--o;return o};}}),ct=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(t){function e(C){function a(s,c,g){var p=s[c];s[c]=s[g],s[g]=p;}function r(s,c){return Math.round(s+Math.random()*(c-s))}function o(s,c,g,p){if(g<p){var d=r(g,p),n=g-1;a(s,d,p);for(var l=s[p],u=g;u<p;u++)c(s[u],l,false)<=0&&(n+=1,a(s,n,u));a(s,n+1,u);var _=n+1;o(s,c,g,_-1),o(s,c,_+1,p);}}return o}function i(C){let a=e.toString();return new Function(`return ${a}`)()(C)}let f=new WeakMap;t.quickSort=function(C,a,r=0){let o=f.get(a);o===undefined&&(o=i(a),f.set(a,o)),o(C,a,r,C.length-1);};}}),ft=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js"(t){var e=G(),i=ut(),f=Oe().ArraySet,C=Le(),a=ct().quickSort;function r(d,n){var l=d;return typeof d=="string"&&(l=e.parseSourceMapInput(d)),l.sections!=null?new p(l,n):new o(l,n)}r.fromSourceMap=function(d,n){return o.fromSourceMap(d,n)},r.prototype._version=3,r.prototype.__generatedMappings=null,Object.defineProperty(r.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),r.prototype.__originalMappings=null,Object.defineProperty(r.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),r.prototype._charIsMappingSeparator=function(n,l){var u=n.charAt(l);return u===";"||u===","},r.prototype._parseMappings=function(n,l){throw new Error("Subclasses must implement _parseMappings")},r.GENERATED_ORDER=1,r.ORIGINAL_ORDER=2,r.GREATEST_LOWER_BOUND=1,r.LEAST_UPPER_BOUND=2,r.prototype.eachMapping=function(n,l,u){var _=l||null,y=u||r.GENERATED_ORDER,b;switch(y){case r.GENERATED_ORDER:b=this._generatedMappings;break;case r.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var E=this.sourceRoot,T=n.bind(_),O=this._names,R=this._sources,F=this._sourceMapURL,m=0,h=b.length;m<h;m++){var S=b[m],v=S.source===null?null:R.at(S.source);v!==null&&(v=e.computeSourceURL(E,v,F)),T({source:v,generatedLine:S.generatedLine,generatedColumn:S.generatedColumn,originalLine:S.originalLine,originalColumn:S.originalColumn,name:S.name===null?null:O.at(S.name)});}},r.prototype.allGeneratedPositionsFor=function(n){var l=e.getArg(n,"line"),u={source:e.getArg(n,"source"),originalLine:l,originalColumn:e.getArg(n,"column",0)};if(u.source=this._findSourceIndex(u.source),u.source<0)return [];var _=[],y=this._findMapping(u,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(y>=0){var b=this._originalMappings[y];if(n.column===undefined)for(var E=b.originalLine;b&&b.originalLine===E;)_.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++y];else for(var T=b.originalColumn;b&&b.originalLine===l&&b.originalColumn==T;)_.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++y];}return _},t.SourceMapConsumer=r;function o(d,n){var l=d;typeof d=="string"&&(l=e.parseSourceMapInput(d));var u=e.getArg(l,"version"),_=e.getArg(l,"sources"),y=e.getArg(l,"names",[]),b=e.getArg(l,"sourceRoot",null),E=e.getArg(l,"sourcesContent",null),T=e.getArg(l,"mappings"),O=e.getArg(l,"file",null);if(u!=this._version)throw new Error("Unsupported version: "+u);b&&(b=e.normalize(b)),_=_.map(String).map(e.normalize).map(function(R){return b&&e.isAbsolute(b)&&e.isAbsolute(R)?e.relative(b,R):R}),this._names=f.fromArray(y.map(String),true),this._sources=f.fromArray(_,true),this._absoluteSources=this._sources.toArray().map(function(R){return e.computeSourceURL(b,R,n)}),this.sourceRoot=b,this.sourcesContent=E,this._mappings=T,this._sourceMapURL=n,this.file=O;}o.prototype=Object.create(r.prototype),o.prototype.consumer=r,o.prototype._findSourceIndex=function(d){var n=d;if(this.sourceRoot!=null&&(n=e.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var l;for(l=0;l<this._absoluteSources.length;++l)if(this._absoluteSources[l]==d)return l;return -1},o.fromSourceMap=function(n,l){var u=Object.create(o.prototype),_=u._names=f.fromArray(n._names.toArray(),true),y=u._sources=f.fromArray(n._sources.toArray(),true);u.sourceRoot=n._sourceRoot,u.sourcesContent=n._generateSourcesContent(u._sources.toArray(),u.sourceRoot),u.file=n._file,u._sourceMapURL=l,u._absoluteSources=u._sources.toArray().map(function(h){return e.computeSourceURL(u.sourceRoot,h,l)});for(var b=n._mappings.toArray().slice(),E=u.__generatedMappings=[],T=u.__originalMappings=[],O=0,R=b.length;O<R;O++){var F=b[O],m=new s;m.generatedLine=F.generatedLine,m.generatedColumn=F.generatedColumn,F.source&&(m.source=y.indexOf(F.source),m.originalLine=F.originalLine,m.originalColumn=F.originalColumn,F.name&&(m.name=_.indexOf(F.name)),T.push(m)),E.push(m);}return a(u.__originalMappings,e.compareByOriginalPositions),u},o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null;}let c=e.compareByGeneratedPositionsDeflatedNoLine;function g(d,n){let l=d.length,u=d.length-n;if(!(u<=1))if(u==2){let _=d[n],y=d[n+1];c(_,y)>0&&(d[n]=y,d[n+1]=_);}else if(u<20)for(let _=n;_<l;_++)for(let y=_;y>n;y--){let b=d[y-1],E=d[y];if(c(b,E)<=0)break;d[y-1]=E,d[y]=b;}else a(d,c,n);}o.prototype._parseMappings=function(n,l){var u=1,_=0,y=0,b=0,E=0,T=0,O=n.length,R=0,m={},h=[],S=[],v,w,L,M;let N=0;for(;R<O;)if(n.charAt(R)===";")u++,R++,_=0,g(S,N),N=S.length;else if(n.charAt(R)===",")R++;else {for(v=new s,v.generatedLine=u,L=R;L<O&&!this._charIsMappingSeparator(n,L);L++);for(n.slice(R,L),w=[];R<L;)C.decode(n,R,m),M=m.value,R=m.rest,w.push(M);if(w.length===2)throw new Error("Found a source, but no line and column");if(w.length===3)throw new Error("Found a source and line, but no column");if(v.generatedColumn=_+w[0],_=v.generatedColumn,w.length>1&&(v.source=E+w[1],E+=w[1],v.originalLine=y+w[2],y=v.originalLine,v.originalLine+=1,v.originalColumn=b+w[3],b=v.originalColumn,w.length>4&&(v.name=T+w[4],T+=w[4])),S.push(v),typeof v.originalLine=="number"){let x=v.source;for(;h.length<=x;)h.push(null);h[x]===null&&(h[x]=[]),h[x].push(v);}}g(S,N),this.__generatedMappings=S;for(var I=0;I<h.length;I++)h[I]!=null&&a(h[I],e.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...h);},o.prototype._findMapping=function(n,l,u,_,y,b){if(n[u]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+n[u]);if(n[_]<0)throw new TypeError("Column must be greater than or equal to 0, got "+n[_]);return i.search(n,l,y,b)},o.prototype.computeColumnSpans=function(){for(var n=0;n<this._generatedMappings.length;++n){var l=this._generatedMappings[n];if(n+1<this._generatedMappings.length){var u=this._generatedMappings[n+1];if(l.generatedLine===u.generatedLine){l.lastGeneratedColumn=u.generatedColumn-1;continue}}l.lastGeneratedColumn=1/0;}},o.prototype.originalPositionFor=function(n){var l={generatedLine:e.getArg(n,"line"),generatedColumn:e.getArg(n,"column")},u=this._findMapping(l,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(n,"bias",r.GREATEST_LOWER_BOUND));if(u>=0){var _=this._generatedMappings[u];if(_.generatedLine===l.generatedLine){var y=e.getArg(_,"source",null);y!==null&&(y=this._sources.at(y),y=e.computeSourceURL(this.sourceRoot,y,this._sourceMapURL));var b=e.getArg(_,"name",null);return b!==null&&(b=this._names.at(b)),{source:y,line:e.getArg(_,"originalLine",null),column:e.getArg(_,"originalColumn",null),name:b}}}return {source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(n){return n==null}):false},o.prototype.sourceContentFor=function(n,l){if(!this.sourcesContent)return null;var u=this._findSourceIndex(n);if(u>=0)return this.sourcesContent[u];var _=n;this.sourceRoot!=null&&(_=e.relative(this.sourceRoot,_));var y;if(this.sourceRoot!=null&&(y=e.urlParse(this.sourceRoot))){var b=_.replace(/^file:\/\//,"");if(y.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!y.path||y.path=="/")&&this._sources.has("/"+_))return this.sourcesContent[this._sources.indexOf("/"+_)]}if(l)return null;throw new Error('"'+_+'" is not in the SourceMap.')},o.prototype.generatedPositionFor=function(n){var l=e.getArg(n,"source");if(l=this._findSourceIndex(l),l<0)return {line:null,column:null,lastColumn:null};var u={source:l,originalLine:e.getArg(n,"line"),originalColumn:e.getArg(n,"column")},_=this._findMapping(u,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(n,"bias",r.GREATEST_LOWER_BOUND));if(_>=0){var y=this._originalMappings[_];if(y.source===u.source)return {line:e.getArg(y,"generatedLine",null),column:e.getArg(y,"generatedColumn",null),lastColumn:e.getArg(y,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=o;function p(d,n){var l=d;typeof d=="string"&&(l=e.parseSourceMapInput(d));var u=e.getArg(l,"version"),_=e.getArg(l,"sections");if(u!=this._version)throw new Error("Unsupported version: "+u);this._sources=new f,this._names=new f;var y={line:-1,column:0};this._sections=_.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var E=e.getArg(b,"offset"),T=e.getArg(E,"line"),O=e.getArg(E,"column");if(T<y.line||T===y.line&&O<y.column)throw new Error("Section offsets must be ordered and non-overlapping.");return y=E,{generatedOffset:{generatedLine:T+1,generatedColumn:O+1},consumer:new r(e.getArg(b,"map"),n)}});}p.prototype=Object.create(r.prototype),p.prototype.constructor=r,p.prototype._version=3,Object.defineProperty(p.prototype,"sources",{get:function(){for(var d=[],n=0;n<this._sections.length;n++)for(var l=0;l<this._sections[n].consumer.sources.length;l++)d.push(this._sections[n].consumer.sources[l]);return d}}),p.prototype.originalPositionFor=function(n){var l={generatedLine:e.getArg(n,"line"),generatedColumn:e.getArg(n,"column")},u=i.search(l,this._sections,function(y,b){var E=y.generatedLine-b.generatedOffset.generatedLine;return E||y.generatedColumn-b.generatedOffset.generatedColumn}),_=this._sections[u];return _?_.consumer.originalPositionFor({line:l.generatedLine-(_.generatedOffset.generatedLine-1),column:l.generatedColumn-(_.generatedOffset.generatedLine===l.generatedLine?_.generatedOffset.generatedColumn-1:0),bias:n.bias}):{source:null,line:null,column:null,name:null}},p.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(n){return n.consumer.hasContentsOfAllSources()})},p.prototype.sourceContentFor=function(n,l){for(var u=0;u<this._sections.length;u++){var _=this._sections[u],y=_.consumer.sourceContentFor(n,true);if(y||y==="")return y}if(l)return null;throw new Error('"'+n+'" is not in the SourceMap.')},p.prototype.generatedPositionFor=function(n){for(var l=0;l<this._sections.length;l++){var u=this._sections[l];if(u.consumer._findSourceIndex(e.getArg(n,"source"))!==-1){var _=u.consumer.generatedPositionFor(n);if(_){var y={line:_.line+(u.generatedOffset.generatedLine-1),column:_.column+(u.generatedOffset.generatedLine===_.line?u.generatedOffset.generatedColumn-1:0)};return y}}}return {line:null,column:null}},p.prototype._parseMappings=function(n,l){this.__generatedMappings=[],this.__originalMappings=[];for(var u=0;u<this._sections.length;u++)for(var _=this._sections[u],y=_.consumer._generatedMappings,b=0;b<y.length;b++){var E=y[b],T=_.consumer._sources.at(E.source);T!==null&&(T=e.computeSourceURL(_.consumer.sourceRoot,T,this._sourceMapURL)),this._sources.add(T),T=this._sources.indexOf(T);var O=null;E.name&&(O=_.consumer._names.at(E.name),this._names.add(O),O=this._names.indexOf(O));var R={source:T,generatedLine:E.generatedLine+(_.generatedOffset.generatedLine-1),generatedColumn:E.generatedColumn+(_.generatedOffset.generatedLine===E.generatedLine?_.generatedOffset.generatedColumn-1:0),originalLine:E.originalLine,originalColumn:E.originalColumn,name:O};this.__generatedMappings.push(R),typeof R.originalLine=="number"&&this.__originalMappings.push(R);}a(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),a(this.__originalMappings,e.compareByOriginalPositions);},t.IndexedSourceMapConsumer=p;}}),dt=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"(t){var e=Re().SourceMapGenerator,i=G(),f=/(\r?\n)/,C=10,a="$$$isSourceNode$$$";function r(o,s,c,g,p){this.children=[],this.sourceContents={},this.line=o??null,this.column=s??null,this.source=c??null,this.name=p??null,this[a]=true,g!=null&&this.add(g);}r.fromStringWithSourceMap=function(s,c,g){var p=new r,d=s.split(f),n=0,l=function(){var E=O(),T=O()||"";return E+T;function O(){return n<d.length?d[n++]:undefined}},u=1,_=0,y=null;return c.eachMapping(function(E){if(y!==null)if(u<E.generatedLine)b(y,l()),u++,_=0;else {var T=d[n]||"",O=T.substr(0,E.generatedColumn-_);d[n]=T.substr(E.generatedColumn-_),_=E.generatedColumn,b(y,O),y=E;return}for(;u<E.generatedLine;)p.add(l()),u++;if(_<E.generatedColumn){var T=d[n]||"";p.add(T.substr(0,E.generatedColumn)),d[n]=T.substr(E.generatedColumn),_=E.generatedColumn;}y=E;},this),n<d.length&&(y&&b(y,l()),p.add(d.splice(n).join(""))),c.sources.forEach(function(E){var T=c.sourceContentFor(E);T!=null&&(g!=null&&(E=i.join(g,E)),p.setSourceContent(E,T));}),p;function b(E,T){if(E===null||E.source===undefined)p.add(T);else {var O=g?i.join(g,E.source):E.source;p.add(new r(E.originalLine,E.originalColumn,O,T,E.name));}}},r.prototype.add=function(s){if(Array.isArray(s))s.forEach(function(c){this.add(c);},this);else if(s[a]||typeof s=="string")s&&this.children.push(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},r.prototype.prepend=function(s){if(Array.isArray(s))for(var c=s.length-1;c>=0;c--)this.prepend(s[c]);else if(s[a]||typeof s=="string")this.children.unshift(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},r.prototype.walk=function(s){for(var c,g=0,p=this.children.length;g<p;g++)c=this.children[g],c[a]?c.walk(s):c!==""&&s(c,{source:this.source,line:this.line,column:this.column,name:this.name});},r.prototype.join=function(s){var c,g,p=this.children.length;if(p>0){for(c=[],g=0;g<p-1;g++)c.push(this.children[g]),c.push(s);c.push(this.children[g]),this.children=c;}return this},r.prototype.replaceRight=function(s,c){var g=this.children[this.children.length-1];return g[a]?g.replaceRight(s,c):typeof g=="string"?this.children[this.children.length-1]=g.replace(s,c):this.children.push("".replace(s,c)),this},r.prototype.setSourceContent=function(s,c){this.sourceContents[i.toSetString(s)]=c;},r.prototype.walkSourceContents=function(s){for(var c=0,g=this.children.length;c<g;c++)this.children[c][a]&&this.children[c].walkSourceContents(s);for(var p=Object.keys(this.sourceContents),c=0,g=p.length;c<g;c++)s(i.fromSetString(p[c]),this.sourceContents[p[c]]);},r.prototype.toString=function(){var s="";return this.walk(function(c){s+=c;}),s},r.prototype.toStringWithSourceMap=function(s){var c={code:"",line:1,column:0},g=new e(s),p=false,d=null,n=null,l=null,u=null;return this.walk(function(_,y){c.code+=_,y.source!==null&&y.line!==null&&y.column!==null?((d!==y.source||n!==y.line||l!==y.column||u!==y.name)&&g.addMapping({source:y.source,original:{line:y.line,column:y.column},generated:{line:c.line,column:c.column},name:y.name}),d=y.source,n=y.line,l=y.column,u=y.name,p=true):p&&(g.addMapping({generated:{line:c.line,column:c.column}}),d=null,p=false);for(var b=0,E=_.length;b<E;b++)_.charCodeAt(b)===C?(c.line++,c.column=0,b+1===E?(d=null,p=false):p&&g.addMapping({source:y.source,original:{line:y.line,column:y.column},generated:{line:c.line,column:c.column},name:y.name})):c.column++;}),this.walkSourceContents(function(_,y){g.setSourceContent(_,y);}),{code:c.code,map:g}},t.SourceNode=r;}}),mt=k({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.js"(t){t.SourceMapGenerator=Re().SourceMapGenerator,t.SourceMapConsumer=ft().SourceMapConsumer,t.SourceNode=dt().SourceNode;}}),pt=nt(mt()),ae=false,j=t=>`
12
+ in ${t}`,ht=/^data:application\/json[^,]+base64,/,gt=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Me=async(t,e)=>{let i=e.split(`
13
+ `),f;for(let r=i.length-1;r>=0&&!f;r--){let o=i[r].match(gt);o&&(f=o[1]);}if(!f)return null;if(!(ht.test(f)||f.startsWith("/"))){let r=t.split("/");r[r.length-1]=f,f=r.join("/");}let a=await(await fetch(f)).json();return new pt.SourceMapConsumer(a)},Fe=async(t,e)=>{let i=ot(t);if(!i.length)return [];let f=i.slice(0,e);return (await Promise.all(f.map(async({file:a,line:r,col:o=0})=>{if(!a||!r)return null;try{let s=await fetch(a);if(s.ok){let c=await s.text(),g=await Me(a,c);if(g){let p=g.originalPositionFor({line:r,column:o}),d=g.file||p.source;if(d&&!d.startsWith("/")&&!d.startsWith("file://")&&!d.startsWith("http")){let n=a.split("/");n[n.length-1]=d,d=n.join("/");}return {fileName:d.replace(/^file:\/\//,""),lineNumber:p.line,columnNumber:p.column}}}return {fileName:a.replace(/^file:\/\//,""),lineNumber:r,columnNumber:o}}catch{return {fileName:a.replace(/^file:\/\//,""),lineNumber:r,columnNumber:o}}}))).filter(a=>a!==null)},V=(t,e)=>{if(!t||ae)return "";let i=Error.prepareStackTrace;Error.prepareStackTrace=undefined,ae=true;let f=Ae();le(null);let C=console.error,a=console.warn;console.error=()=>{},console.warn=()=>{};try{let s={DetermineComponentFrameRoot(){let d;try{if(e){let n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[]);}catch(l){d=l;}Reflect.construct(t,[],n);}else {try{n.call();}catch(l){d=l;}t.call(n.prototype);}}else {try{throw Error()}catch(l){d=l;}let n=t();n&&typeof n.catch=="function"&&n.catch(()=>{});}}catch(n){if(n&&d&&typeof n.stack=="string")return [n.stack,d.stack]}return [null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[g,p]=s.DetermineComponentFrameRoot();if(g&&p){let d=g.split(`
14
+ `),n=p.split(`
15
+ `),l=0,u=0;for(;l<d.length&&!d[l].includes("DetermineComponentFrameRoot");)l++;for(;u<n.length&&!n[u].includes("DetermineComponentFrameRoot");)u++;if(l===d.length||u===n.length)for(l=d.length-1,u=n.length-1;l>=1&&u>=0&&d[l]!==n[u];)u--;for(;l>=1&&u>=0;l--,u--)if(d[l]!==n[u]){if(l!==1||u!==1)do if(l--,u--,u<0||d[l]!==n[u]){let _=`
16
+ ${d[l].replace(" at new "," at ")}`,y=B(t);return y&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",y)),_}while(l>=1&&u>=0);break}}}finally{ae=false,Error.prepareStackTrace=i,le(f),console.error=C,console.warn=a;}let r=t?B(t):"";return r?j(r):""},Ae=()=>{let t=D();for(let e of [...Array.from(P),...Array.from(t.renderers.values())]){let i=e.currentDispatcherRef;if(i&&typeof i=="object")return "H"in i?i.H:i.current}return null},le=t=>{for(let e of P){let i=e.currentDispatcherRef;i&&typeof i=="object"&&("H"in i?i.H=t:i.current=t);}};var Ne=(t,e)=>{switch(t.tag){case ne:case re:case Q:return j(t.type);case ee:return j("Lazy");case J:return t.child!==e&&e!==null?j("Suspense Fallback"):j("Suspense");case te:return j("SuspenseList");case Y:case Z:return V(t.type,false);case X:return V(t.type.render,false);case K:return V(t.type,true);case oe:return j("Activity");case ie:return j("ViewTransition");default:return ""}},Ie=(t,e,i)=>{let f=`
17
+ in ${t}`;return e&&(f+=` (at ${e})`),f},ue=t=>{try{let e="",i=t,f=null;do{e+=Ne(i,f);let C=i._debugInfo;if(C&&Array.isArray(C))for(let a=C.length-1;a>=0;a--){let r=C[a];typeof r.name=="string"&&(e+=Ie(r.name,r.env,r.debugLocation));}f=i,i=i.return;}while(i);return e}catch(e){return e instanceof Error?`
18
18
  Error generating stack: ${e.message}
19
- ${e.stack}`:""}},ke=t=>t.length?t[0]===t[0].toUpperCase():false,ce=async t=>{let e=/\n\s+(?:in|at)\s+([^\s(]+)(?:\s+\((?:at\s+)?([^)]+)\))?/g,o=[],c;for(c=e.exec(t);c!==null;){let g=c[1],u=c[2];if(!ke(g)){c=e.exec(t),o.push({name:g,source:undefined});continue}let s;if(u&&u!=="Server")try{let i=` at ${g} (${u})`,n=await Fe(i,1);n.length>0&&(s=n[0]);}catch{}o.push({name:g,source:s||undefined}),c=e.exec(t);}return o};var Pe=async t=>{let e=se(t);if(!e)return null;let o=ue(e);return (await ce(o)).map(u=>({componentName:u.name,fileName:u.source?.fileName}))},je=t=>t.filter(e=>e.fileName&&!e.fileName.includes("node_modules")&&e.componentName.length>1&&!e.fileName.startsWith("_")),vt=t=>{if(t.length===0)return "";if(t.length===1){let c=t[0].lastIndexOf("/");return c>0?t[0].substring(0,c+1):""}let e=t[0];for(let c=1;c<t.length;c++){let g=t[c],u=0;for(;u<e.length&&u<g.length&&e[u]===g[u];)u++;e=e.substring(0,u);}let o=e.lastIndexOf("/");return o>0?e.substring(0,o+1):""},De=t=>{let e=t.map(c=>c.fileName).filter(c=>!!c),o=vt(e);return t.map(c=>{let g=c.fileName;return g&&o&&(g=g.startsWith(o)?g.substring(o.length):g),`${c.componentName}${g?` (${g})`:""}`}).join(`
20
- `)},xe=t=>{let e=n=>{let l=n.tagName.toLowerCase(),_=["id","class","name","type","role","aria-label"],v=50,p=Array.from(n.attributes).filter(r=>_.includes(r.name)||r.name.startsWith("data-")).map(r=>{let a=r.value;return a.length>v&&(a=a.substring(0,v)+"..."),`${r.name}="${a}"`}).join(" ");return p?`<${l} ${p}>`:`<${l}>`},o=n=>`</${n.tagName.toLowerCase()}>`,c=n=>Array.from(n.children).length,g=[],u=t.parentElement;if(u){g.push(e(u));let l=Array.from(u.children).indexOf(t);l>0&&g.push(` ... (${l} element${l===1?"":"s"})`);}let s=u?" ":"";g.push(s+"<!-- SELECTED -->"),g.push(s+e(t));let i=c(t);if(i>0&&g.push(`${s} ... (${i} element${i===1?"":"s"})`),g.push(s+o(t)),u){let n=Array.from(u.children),l=n.indexOf(t),_=n.length-l-1;_>0&&g.push(` ... (${_} element${_===1?"":"s"})`),g.push(o(u));}return g.join(`
21
- `)};var _t=()=>{let t=null,e=null,o=false,c=null,g=null,u=null,s=async w=>{if(!document.hasFocus()){u=w;return}try{await navigator.clipboard.writeText(w),u=null;}catch{let L=document.createElement("textarea");L.value=w,L.style.position="fixed",L.style.left="-999999px",L.style.top="-999999px",document.body.appendChild(L),L.focus(),L.select();try{document.execCommand("copy"),u=null;}catch(M){console.error("Failed to copy to clipboard:",M);}document.body.removeChild(L);}},i=()=>{u&&s(u);},n=0,l=0,_=0,v=0,p=0,r=0,a=0,f=0,y="",C=()=>{let w=document.activeElement;return w instanceof HTMLInputElement||w instanceof HTMLTextAreaElement||w?.tagName==="INPUT"||w?.tagName==="TEXTAREA"},S=()=>{let w=document.createElement("div");return w.style.position="fixed",w.style.border="2px solid #3b82f6",w.style.backgroundColor="rgba(59, 130, 246, 0.1)",w.style.pointerEvents="none",w.style.zIndex="999999",w.style.transition="none",document.body.appendChild(w),w},E=(w,L,M)=>w+(L-w)*M,T=()=>{if(!e||!o)return;let w=.5;n=E(n,p,w),l=E(l,r,w),_=E(_,a,w),v=E(v,f,w),e.style.left=`${n}px`,e.style.top=`${l}px`,e.style.width=`${_}px`,e.style.height=`${v}px`,e.style.borderRadius=y,g=requestAnimationFrame(T);},O=w=>{let L=document.elementFromPoint(w.clientX,w.clientY);if(!L||L===e)return;c=L;let M=L.getBoundingClientRect(),F=window.getComputedStyle(L);p=M.left,r=M.top,a=M.width,f=M.height,y=F.borderRadius;},R=w=>{if(!o)return;w.preventDefault(),w.stopPropagation(),w.stopImmediatePropagation();let L=c;m(),L&&Pe(L).then(M=>{if(!M)return;let F=De(je(M)),N=`## Referenced element
19
+ ${e.stack}`:""}},ke=t=>t.length?t[0]===t[0].toUpperCase():false,ce=async t=>{let e=/\n\s+(?:in|at)\s+([^\s(]+)(?:\s+\((?:at\s+)?([^)]+)\))?/g,i=[],f;for(f=e.exec(t);f!==null;){let C=f[1],a=f[2];if(!ke(C)){f=e.exec(t),i.push({name:C,source:undefined});continue}let r;if(a&&a!=="Server")try{let o=` at ${C} (${a})`,s=await Fe(o,1);s.length>0&&(r=s[0]);}catch{}i.push({name:C,source:r||undefined}),f=e.exec(t);}return i};var je=async t=>{let e=se(t);if(!e)return null;let i=ue(e);return (await ce(i)).map(a=>({componentName:a.name,fileName:a.source?.fileName}))},Pe=t=>t.filter(e=>e.fileName&&!e.fileName.includes("node_modules")&&e.componentName.length>1&&!e.fileName.startsWith("_")),vt=t=>{if(t.length===0)return "";if(t.length===1){let f=t[0].lastIndexOf("/");return f>0?t[0].substring(0,f+1):""}let e=t[0];for(let f=1;f<t.length;f++){let C=t[f],a=0;for(;a<e.length&&a<C.length&&e[a]===C[a];)a++;e=e.substring(0,a);}let i=e.lastIndexOf("/");return i>0?e.substring(0,i+1):""},De=t=>{let e=t.map(f=>f.fileName).filter(f=>!!f),i=vt(e);return t.map(f=>{let C=f.fileName;return C&&i&&(C=C.startsWith(i)?C.substring(i.length):C),`${f.componentName}${C?` (${C})`:""}`}).join(`
20
+ `)},xe=t=>{let e=g=>{let p=g.tagName.toLowerCase(),d=["id","class","name","type","role","aria-label"],n=50,l=Array.from(g.attributes).filter(u=>d.includes(u.name)||u.name.startsWith("data-")).map(u=>{let _=u.value;return _.length>n&&(_=_.substring(0,n)+"..."),`${u.name}="${_}"`}).join(" ");return l?`<${p} ${l}>`:`<${p}>`},i=g=>`</${g.tagName.toLowerCase()}>`,f=g=>Array.from(g.children).length,C=g=>{let p=g.textContent||"";p=p.trim(),p=p.replace(/\s+/g," ");let d=100;return p.length>d&&(p=p.substring(0,d)+"..."),p},a=[],r=t.parentElement;if(r){a.push(e(r));let p=Array.from(r.children).indexOf(t);p>0&&a.push(` ... (${p} element${p===1?"":"s"})`);}let o=r?" ":"";a.push(o+"<!-- SELECTED -->"),a.push(o+e(t));let s=C(t),c=f(t);if(s&&a.push(`${o} ${s}`),c>0&&a.push(`${o} ... (${c} element${c===1?"":"s"})`),a.push(o+i(t)),r){let g=Array.from(r.children),p=g.indexOf(t),d=g.length-p-1;d>0&&a.push(` ... (${d} element${d===1?"":"s"})`),a.push(i(r));}return a.join(`
21
+ `)};var _t=()=>{let t=null,e=null,i=false,f=false,C=null,a=null,r=null,o=async w=>{if(!document.hasFocus()){r=w;return}try{await navigator.clipboard.writeText(w),r=null,S();}catch{let L=document.createElement("textarea");L.value=w,L.style.position="fixed",L.style.left="-999999px",L.style.top="-999999px",document.body.appendChild(L),L.focus(),L.select();try{document.execCommand("copy"),r=null,S();}catch(M){console.error("Failed to copy to clipboard:",M),S();}document.body.removeChild(L);}},s=()=>{r&&o(r);},c=0,g=0,p=0,d=0,n=0,l=0,u=0,_=0,y="",b=()=>{let w=document.activeElement;return w instanceof HTMLInputElement||w instanceof HTMLTextAreaElement||w?.tagName==="INPUT"||w?.tagName==="TEXTAREA"},E=()=>{let w=document.createElement("div");return w.style.position="fixed",w.style.border="2px solid #3b82f6",w.style.backgroundColor="rgba(59, 130, 246, 0.1)",w.style.pointerEvents="none",w.style.zIndex="999999",w.style.transition="none",document.body.appendChild(w),w},T=(w,L,M)=>w+(L-w)*M,O=()=>{if(!e||!i)return;let w=.5;c=T(c,n,w),g=T(g,l,w),p=T(p,u,w),d=T(d,_,w),e.style.left=`${c}px`,e.style.top=`${g}px`,e.style.width=`${p}px`,e.style.height=`${d}px`,e.style.borderRadius=y,a=requestAnimationFrame(O);},R=w=>{if(f)return;let L=document.elementFromPoint(w.clientX,w.clientY);if(!L||L===e)return;C=L;let M=L.getBoundingClientRect(),N=window.getComputedStyle(L);n=M.left,l=M.top,u=M.width,_=M.height,y=N.borderRadius;},F=w=>{if(!i)return;w.preventDefault(),w.stopPropagation(),w.stopImmediatePropagation(),f=true;let L=C;L&&je(L).then(M=>{if(!M){S();return}let N=De(Pe(M)),x=`## Referenced element
22
22
  ${xe(L)}
23
23
 
24
24
  Import traces:
25
- ${F}
25
+ ${N}
26
26
 
27
- Page: ${window.location.href}`;s(N);});},A=w=>{o&&(w.preventDefault(),w.stopPropagation(),w.stopImmediatePropagation());},d=()=>{e||(e=S()),o=true,e.style.display="block",n=p,l=r,_=a,v=f,T();},m=()=>{o=false,e&&(e.style.display="none"),g&&(cancelAnimationFrame(g),g=null),c=null;},b=w=>{w.metaKey&&!t&&!o&&(t=setTimeout(()=>{C()||d(),t=null;},750));},h=w=>{w.metaKey||(t&&(clearTimeout(t),t=null),o&&m());};return document.addEventListener("keydown",b),document.addEventListener("keyup",h),document.addEventListener("mousemove",O),document.addEventListener("mousedown",A,true),document.addEventListener("click",R,true),window.addEventListener("focus",i),()=>{t&&clearTimeout(t),g&&cancelAnimationFrame(g),e&&e.parentNode&&e.parentNode.removeChild(e),document.removeEventListener("keydown",b),document.removeEventListener("keyup",h),document.removeEventListener("mousemove",O),document.removeEventListener("mousedown",A,true),document.removeEventListener("click",R,true),window.removeEventListener("focus",i);}};_t();/*! Bundled license information:
27
+ Page: ${window.location.href}`;o(x);});},m=w=>{i&&(w.preventDefault(),w.stopPropagation(),w.stopImmediatePropagation());},h=()=>{e||(e=E()),i=true,e.style.display="block",c=n,g=l,p=u,d=_,O();},S=()=>{i=false,f=false,e&&(e.style.display="none"),a&&(cancelAnimationFrame(a),a=null),C=null;},v=w=>{w.metaKey&&!t&&!i&&(t=setTimeout(()=>{b()||h(),t=null;},750));},A=w=>{w.metaKey||(t&&(clearTimeout(t),t=null),i&&!f&&S());};return document.addEventListener("keydown",v),document.addEventListener("keyup",A),document.addEventListener("mousemove",R),document.addEventListener("mousedown",m,true),document.addEventListener("click",F,true),window.addEventListener("focus",s),()=>{t&&clearTimeout(t),a&&cancelAnimationFrame(a),e&&e.parentNode&&e.parentNode.removeChild(e),document.removeEventListener("keydown",v),document.removeEventListener("keyup",A),document.removeEventListener("mousemove",R),document.removeEventListener("mousedown",m,true),document.removeEventListener("click",F,true),window.removeEventListener("focus",s);}};_t();/*! Bundled license information:
28
28
 
29
- bippy/dist/src-CqIv1vpl.js:
29
+ bippy/dist/src-Bn4Fcl24.js:
30
30
  (**
31
31
  * @license bippy
32
32
  *
@@ -46,7 +46,7 @@ bippy/dist/index.js:
46
46
  * LICENSE file in the root directory of this source tree.
47
47
  *)
48
48
 
49
- bippy/dist/source-BfkxIx1q.js:
49
+ bippy/dist/source-7rH6oRiA.js:
50
50
  (**
51
51
  * @license bippy
52
52
  *
package/dist/index.js CHANGED
@@ -85,6 +85,16 @@ var getHTMLSnippet = (element) => {
85
85
  const children = Array.from(el.children);
86
86
  return children.length;
87
87
  };
88
+ const getTextContent = (el) => {
89
+ let text = el.textContent || "";
90
+ text = text.trim();
91
+ text = text.replace(/\s+/g, " ");
92
+ const maxLength = 100;
93
+ if (text.length > maxLength) {
94
+ text = text.substring(0, maxLength) + "...";
95
+ }
96
+ return text;
97
+ };
88
98
  const lines = [];
89
99
  const parent = element.parentElement;
90
100
  if (parent) {
@@ -100,7 +110,11 @@ var getHTMLSnippet = (element) => {
100
110
  const indent = parent ? " " : "";
101
111
  lines.push(indent + "<!-- SELECTED -->");
102
112
  lines.push(indent + getElementTag(element));
113
+ const textContent = getTextContent(element);
103
114
  const childrenCount = getChildrenCount(element);
115
+ if (textContent) {
116
+ lines.push(`${indent} ${textContent}`);
117
+ }
104
118
  if (childrenCount > 0) {
105
119
  lines.push(
106
120
  `${indent} ... (${childrenCount} element${childrenCount === 1 ? "" : "s"})`
@@ -126,6 +140,7 @@ var init = () => {
126
140
  let metaKeyTimer = null;
127
141
  let overlay = null;
128
142
  let isActive = false;
143
+ let isLocked = false;
129
144
  let currentElement = null;
130
145
  let animationFrame = null;
131
146
  let pendingCopyText = null;
@@ -137,6 +152,7 @@ var init = () => {
137
152
  try {
138
153
  await navigator.clipboard.writeText(text);
139
154
  pendingCopyText = null;
155
+ hideOverlay();
140
156
  } catch {
141
157
  const textarea = document.createElement("textarea");
142
158
  textarea.value = text;
@@ -149,8 +165,10 @@ var init = () => {
149
165
  try {
150
166
  document.execCommand("copy");
151
167
  pendingCopyText = null;
168
+ hideOverlay();
152
169
  } catch (execErr) {
153
170
  console.error("Failed to copy to clipboard:", execErr);
171
+ hideOverlay();
154
172
  }
155
173
  document.body.removeChild(textarea);
156
174
  }
@@ -202,6 +220,7 @@ var init = () => {
202
220
  animationFrame = requestAnimationFrame(updateOverlayPosition);
203
221
  };
204
222
  const handleMouseMove = (e) => {
223
+ if (isLocked) return;
205
224
  const element = document.elementFromPoint(e.clientX, e.clientY);
206
225
  if (!element || element === overlay) return;
207
226
  currentElement = element;
@@ -218,11 +237,14 @@ var init = () => {
218
237
  e.preventDefault();
219
238
  e.stopPropagation();
220
239
  e.stopImmediatePropagation();
240
+ isLocked = true;
221
241
  const elementToInspect = currentElement;
222
- hideOverlay();
223
242
  if (elementToInspect) {
224
243
  void getStack(elementToInspect).then((stack) => {
225
- if (!stack) return;
244
+ if (!stack) {
245
+ hideOverlay();
246
+ return;
247
+ }
226
248
  const serializedStack = serializeStack(filterStack(stack));
227
249
  const htmlSnippet = getHTMLSnippet(elementToInspect);
228
250
  const payload = `## Referenced element
@@ -256,6 +278,7 @@ Page: ${window.location.href}`;
256
278
  };
257
279
  const hideOverlay = () => {
258
280
  isActive = false;
281
+ isLocked = false;
259
282
  if (overlay) {
260
283
  overlay.style.display = "none";
261
284
  }
@@ -281,7 +304,7 @@ Page: ${window.location.href}`;
281
304
  clearTimeout(metaKeyTimer);
282
305
  metaKeyTimer = null;
283
306
  }
284
- if (isActive) {
307
+ if (isActive && !isLocked) {
285
308
  hideOverlay();
286
309
  }
287
310
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-grab",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/aidenybai/react-grab#readme",
@@ -70,6 +70,6 @@
70
70
  "access": "public"
71
71
  },
72
72
  "dependencies": {
73
- "bippy": "^0.3.28"
73
+ "bippy": "^0.3.29"
74
74
  }
75
75
  }