react-grab 0.0.16 → 0.0.18
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.global.js +23 -19
- package/package.json +13 -3
package/dist/index.global.js
CHANGED
|
@@ -6,32 +6,36 @@ 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
|
|
10
|
-
`).filter(r=>!!r.match(
|
|
11
|
-
`).filter(r=>!r.match(qt)),e).map(r=>{if(r.includes(" > eval")&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!r.includes("@")&&!r.includes(":"))return {function:r};{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][^@]*)?)?[^@]*)@/,s=r.match(c),o=s&&s[1]?s[1]:void 0,a=Qe(r.replace(c,""));return {function:o,file:a[0],line:a[1]?+a[1]:void 0,col:a[2]?+a[2]:void 0,raw:r}}})}var Qt=G({"../../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(n){if(0<=n&&n<e.length)return e[n];throw new TypeError("Must be between 0 and 63: "+n)},t.decode=function(n){var r=65,c=90,s=97,o=122,a=48,u=57,l=43,y=47,g=26,p=52;return r<=n&&n<=c?n-r:s<=n&&n<=o?n-s+g:a<=n&&n<=u?n-a+p:n==l?62:n==y?63:-1};}}),Ze=G({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js"(t){var e=Qt(),n=5,r=1<<n,c=r-1,s=r;function o(u){return u<0?(-u<<1)+1:(u<<1)+0}function a(u){var l=(u&1)===1,y=u>>1;return l?-y:y}t.encode=function(l){var y="",g,p=o(l);do g=p&c,p>>>=n,p>0&&(g|=s),y+=e.encode(g);while(p>0);return y},t.decode=function(l,y,g){var p=l.length,i=0,f=0,m,d;do{if(y>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(d=e.decode(l.charCodeAt(y++)),d===-1)throw new Error("Invalid base64 digit: "+l.charAt(y-1));m=!!(d&s),d&=c,i=i+(d<<f),f+=n;}while(m);g.value=a(i),g.rest=y;};}}),Q=G({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(t){function e(v,_,w){if(_ in v)return v[_];if(arguments.length===3)return w;throw new Error('"'+_+'" is a required argument.')}t.getArg=e;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function c(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}t.urlParse=c;function s(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}t.urlGenerate=s;var o=32;function a(v){var _=[];return function(w){for(var C=0;C<_.length;C++)if(_[C].input===w){var P=_[0];return _[0]=_[C],_[C]=P,_[0].result}var A=v(w);return _.unshift({input:w,result:A}),_.length>o&&_.pop(),A}}var u=a(function(_){var w=_,C=c(_);if(C){if(!C.path)return _;w=C.path;}for(var P=t.isAbsolute(w),A=[],k=0,O=0;;)if(k=O,O=w.indexOf("/",k),O===-1){A.push(w.slice(k));break}else for(A.push(w.slice(k,O));O<w.length&&w[O]==="/";)O++;for(var V,D=0,O=A.length-1;O>=0;O--)V=A[O],V==="."?A.splice(O,1):V===".."?D++:D>0&&(V===""?(A.splice(O+1,D),D=0):(A.splice(O,2),D--));return w=A.join("/"),w===""&&(w=P?"/":"."),C?(C.path=w,s(C)):w});t.normalize=u;function l(v,_){v===""&&(v="."),_===""&&(_=".");var w=c(_),C=c(v);if(C&&(v=C.path||"/"),w&&!w.scheme)return C&&(w.scheme=C.scheme),s(w);if(w||_.match(r))return _;if(C&&!C.host&&!C.path)return C.host=_,s(C);var P=_.charAt(0)==="/"?_:u(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=P,s(C)):P}t.join=l,t.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function y(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var w=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++w;}return Array(w+1).join("../")+_.substr(v.length+1)}t.relative=y;var g=function(){var v=Object.create(null);return !("__proto__"in v)}();function p(v){return v}function i(v){return m(v)?"$"+v:v}t.toSetString=g?p:i;function f(v){return m(v)?v.slice(1):v}t.fromSetString=g?p:f;function m(v){if(!v)return false;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return false;for(var w=_-10;w>=0;w--)if(v.charCodeAt(w)!==36)return false;return true}function d(v,_,w){var C=E(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||w)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:E(v.name,_.name)}t.compareByOriginalPositions=d;function h(v,_,w){var C;return C=v.originalLine-_.originalLine,C!==0||(C=v.originalColumn-_.originalColumn,C!==0||w)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:E(v.name,_.name)}t.compareByOriginalPositionsNoSource=h;function S(v,_,w){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||w)||(C=E(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:E(v.name,_.name)}t.compareByGeneratedPositionsDeflated=S;function b(v,_,w){var C=v.generatedColumn-_.generatedColumn;return C!==0||w||(C=E(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:E(v.name,_.name)}t.compareByGeneratedPositionsDeflatedNoLine=b;function E(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function T(v,_){var w=v.generatedLine-_.generatedLine;return w!==0||(w=v.generatedColumn-_.generatedColumn,w!==0)||(w=E(v.source,_.source),w!==0)||(w=v.originalLine-_.originalLine,w!==0)||(w=v.originalColumn-_.originalColumn,w!==0)?w:E(v.name,_.name)}t.compareByGeneratedPositionsInflated=T;function L(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=L;function R(v,_,w){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),w){var C=c(w);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var P=C.path.lastIndexOf("/");P>=0&&(C.path=C.path.substring(0,P+1));}_=l(s(C),_);}return u(_)}t.computeSourceURL=R;}}),et=G({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(t){var e=Q(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function c(){this._array=[],this._set=r?new Map:Object.create(null);}c.fromArray=function(o,a){for(var u=new c,l=0,y=o.length;l<y;l++)u.add(o[l],a);return u},c.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},c.prototype.add=function(o,a){var u=r?o:e.toSetString(o),l=r?this.has(o):n.call(this._set,u),y=this._array.length;(!l||a)&&this._array.push(o),l||(r?this._set.set(o,y):this._set[u]=y);},c.prototype.has=function(o){if(r)return this._set.has(o);var a=e.toSetString(o);return n.call(this._set,a)},c.prototype.indexOf=function(o){if(r){var a=this._set.get(o);if(a>=0)return a}else {var u=e.toSetString(o);if(n.call(this._set,u))return this._set[u]}throw new Error('"'+o+'" is not in the set.')},c.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},c.prototype.toArray=function(){return this._array.slice()},t.ArraySet=c;}}),Jt=G({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(t){var e=Q();function n(c,s){var o=c.generatedLine,a=s.generatedLine,u=c.generatedColumn,l=s.generatedColumn;return a>o||a==o&&l>=u||e.compareByGeneratedPositionsInflated(c,s)<=0}function r(){this._array=[],this._sorted=true,this._last={generatedLine:-1,generatedColumn:0};}r.prototype.unsortedForEach=function(s,o){this._array.forEach(s,o);},r.prototype.add=function(s){n(this._last,s)?(this._last=s,this._array.push(s)):(this._sorted=false,this._array.push(s));},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=true),this._array},t.MappingList=r;}}),tt=G({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js"(t){var e=Ze(),n=Q(),r=et().ArraySet,c=Jt().MappingList;function s(o){o||(o={}),this._file=n.getArg(o,"file",null),this._sourceRoot=n.getArg(o,"sourceRoot",null),this._skipValidation=n.getArg(o,"skipValidation",false),this._ignoreInvalidMapping=n.getArg(o,"ignoreInvalidMapping",false),this._sources=new r,this._names=new r,this._mappings=new c,this._sourcesContents=null;}s.prototype._version=3,s.fromSourceMap=function(a,u){var l=a.sourceRoot,y=new s(Object.assign(u||{},{file:a.file,sourceRoot:l}));return a.eachMapping(function(g){var p={generated:{line:g.generatedLine,column:g.generatedColumn}};g.source!=null&&(p.source=g.source,l!=null&&(p.source=n.relative(l,p.source)),p.original={line:g.originalLine,column:g.originalColumn},g.name!=null&&(p.name=g.name)),y.addMapping(p);}),a.sources.forEach(function(g){var p=g;l!==null&&(p=n.relative(l,g)),y._sources.has(p)||y._sources.add(p);var i=a.sourceContentFor(g);i!=null&&y.setSourceContent(g,i);}),y},s.prototype.addMapping=function(a){var u=n.getArg(a,"generated"),l=n.getArg(a,"original",null),y=n.getArg(a,"source",null),g=n.getArg(a,"name",null);!this._skipValidation&&this._validateMapping(u,l,y,g)===false||(y!=null&&(y=String(y),this._sources.has(y)||this._sources.add(y)),g!=null&&(g=String(g),this._names.has(g)||this._names.add(g)),this._mappings.add({generatedLine:u.line,generatedColumn:u.column,originalLine:l!=null&&l.line,originalColumn:l!=null&&l.column,source:y,name:g}));},s.prototype.setSourceContent=function(a,u){var l=a;this._sourceRoot!=null&&(l=n.relative(this._sourceRoot,l)),u!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(l)]=u):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(l)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));},s.prototype.applySourceMap=function(a,u,l){var y=u;if(u==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);y=a.file;}var g=this._sourceRoot;g!=null&&(y=n.relative(g,y));var p=new r,i=new r;this._mappings.unsortedForEach(function(f){if(f.source===y&&f.originalLine!=null){var m=a.originalPositionFor({line:f.originalLine,column:f.originalColumn});m.source!=null&&(f.source=m.source,l!=null&&(f.source=n.join(l,f.source)),g!=null&&(f.source=n.relative(g,f.source)),f.originalLine=m.line,f.originalColumn=m.column,m.name!=null&&(f.name=m.name));}var d=f.source;d!=null&&!p.has(d)&&p.add(d);var h=f.name;h!=null&&!i.has(h)&&i.add(h);},this),this._sources=p,this._names=i,a.sources.forEach(function(f){var m=a.sourceContentFor(f);m!=null&&(l!=null&&(f=n.join(l,f)),g!=null&&(f=n.relative(g,f)),this.setSourceContent(f,m));},this);},s.prototype._validateMapping=function(a,u,l,y){if(u&&typeof u.line!="number"&&typeof u.column!="number"){var g="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(g),false;throw new Error(g)}if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!u&&!l&&!y)){if(a&&"line"in a&&"column"in a&&u&&"line"in u&&"column"in u&&a.line>0&&a.column>=0&&u.line>0&&u.column>=0&&l)return;var g="Invalid mapping: "+JSON.stringify({generated:a,source:l,original:u,name:y});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(g),false;throw new Error(g)}},s.prototype._serializeMappings=function(){for(var a=0,u=1,l=0,y=0,g=0,p=0,i="",f,m,d,h,S=this._mappings.toArray(),b=0,E=S.length;b<E;b++){if(m=S[b],f="",m.generatedLine!==u)for(a=0;m.generatedLine!==u;)f+=";",u++;else if(b>0){if(!n.compareByGeneratedPositionsInflated(m,S[b-1]))continue;f+=",";}f+=e.encode(m.generatedColumn-a),a=m.generatedColumn,m.source!=null&&(h=this._sources.indexOf(m.source),f+=e.encode(h-p),p=h,f+=e.encode(m.originalLine-1-y),y=m.originalLine-1,f+=e.encode(m.originalColumn-l),l=m.originalColumn,m.name!=null&&(d=this._names.indexOf(m.name),f+=e.encode(d-g),g=d)),i+=f;}return i},s.prototype._generateSourcesContent=function(a,u){return a.map(function(l){if(!this._sourcesContents)return null;u!=null&&(l=n.relative(u,l));var y=n.toSetString(l);return Object.prototype.hasOwnProperty.call(this._sourcesContents,y)?this._sourcesContents[y]:null},this)},s.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s;}}),Zt=G({"../../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(n,r,c,s,o,a){var u=Math.floor((r-n)/2)+n,l=o(c,s[u],true);return l===0?u:l>0?r-u>1?e(u,r,c,s,o,a):a==t.LEAST_UPPER_BOUND?r<s.length?r:-1:u:u-n>1?e(n,u,c,s,o,a):a==t.LEAST_UPPER_BOUND?u:n<0?-1:n}t.search=function(r,c,s,o){if(c.length===0)return -1;var a=e(-1,c.length,r,c,s,o||t.GREATEST_LOWER_BOUND);if(a<0)return -1;for(;a-1>=0&&s(c[a],c[a-1],true)===0;)--a;return a};}}),en=G({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(t){function e(c){function s(u,l,y){var g=u[l];u[l]=u[y],u[y]=g;}function o(u,l){return Math.round(u+Math.random()*(l-u))}function a(u,l,y,g){if(y<g){var p=o(y,g),i=y-1;s(u,p,g);for(var f=u[g],m=y;m<g;m++)l(u[m],f,false)<=0&&(i+=1,s(u,i,m));s(u,i+1,m);var d=i+1;a(u,l,y,d-1),a(u,l,d+1,g);}}return a}function n(c){let s=e.toString();return new Function(`return ${s}`)()(c)}let r=new WeakMap;t.quickSort=function(c,s,o=0){let a=r.get(s);a===void 0&&(a=n(s),r.set(s,a)),a(c,s,o,c.length-1);};}}),tn=G({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js"(t){var e=Q(),n=Zt(),r=et().ArraySet,c=Ze(),s=en().quickSort;function o(p,i){var f=p;return typeof p=="string"&&(f=e.parseSourceMapInput(p)),f.sections!=null?new g(f,i):new a(f,i)}o.fromSourceMap=function(p,i){return a.fromSourceMap(p,i)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(i,f){var m=i.charAt(f);return m===";"||m===","},o.prototype._parseMappings=function(i,f){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(i,f,m){var d=f||null,h=m||o.GENERATED_ORDER,S;switch(h){case o.GENERATED_ORDER:S=this._generatedMappings;break;case o.ORIGINAL_ORDER:S=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var b=this.sourceRoot,E=i.bind(d),T=this._names,L=this._sources,R=this._sourceMapURL,v=0,_=S.length;v<_;v++){var w=S[v],C=w.source===null?null:L.at(w.source);C!==null&&(C=e.computeSourceURL(b,C,R)),E({source:C,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:T.at(w.name)});}},o.prototype.allGeneratedPositionsFor=function(i){var f=e.getArg(i,"line"),m={source:e.getArg(i,"source"),originalLine:f,originalColumn:e.getArg(i,"column",0)};if(m.source=this._findSourceIndex(m.source),m.source<0)return [];var d=[],h=this._findMapping(m,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(h>=0){var S=this._originalMappings[h];if(i.column===void 0)for(var b=S.originalLine;S&&S.originalLine===b;)d.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++h];else for(var E=S.originalColumn;S&&S.originalLine===f&&S.originalColumn==E;)d.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++h];}return d},t.SourceMapConsumer=o;function a(p,i){var f=p;typeof p=="string"&&(f=e.parseSourceMapInput(p));var m=e.getArg(f,"version"),d=e.getArg(f,"sources"),h=e.getArg(f,"names",[]),S=e.getArg(f,"sourceRoot",null),b=e.getArg(f,"sourcesContent",null),E=e.getArg(f,"mappings"),T=e.getArg(f,"file",null);if(m!=this._version)throw new Error("Unsupported version: "+m);S&&(S=e.normalize(S)),d=d.map(String).map(e.normalize).map(function(L){return S&&e.isAbsolute(S)&&e.isAbsolute(L)?e.relative(S,L):L}),this._names=r.fromArray(h.map(String),true),this._sources=r.fromArray(d,true),this._absoluteSources=this._sources.toArray().map(function(L){return e.computeSourceURL(S,L,i)}),this.sourceRoot=S,this.sourcesContent=b,this._mappings=E,this._sourceMapURL=i,this.file=T;}a.prototype=Object.create(o.prototype),a.prototype.consumer=o,a.prototype._findSourceIndex=function(p){var i=p;if(this.sourceRoot!=null&&(i=e.relative(this.sourceRoot,i)),this._sources.has(i))return this._sources.indexOf(i);var f;for(f=0;f<this._absoluteSources.length;++f)if(this._absoluteSources[f]==p)return f;return -1},a.fromSourceMap=function(i,f){var m=Object.create(a.prototype),d=m._names=r.fromArray(i._names.toArray(),true),h=m._sources=r.fromArray(i._sources.toArray(),true);m.sourceRoot=i._sourceRoot,m.sourcesContent=i._generateSourcesContent(m._sources.toArray(),m.sourceRoot),m.file=i._file,m._sourceMapURL=f,m._absoluteSources=m._sources.toArray().map(function(_){return e.computeSourceURL(m.sourceRoot,_,f)});for(var S=i._mappings.toArray().slice(),b=m.__generatedMappings=[],E=m.__originalMappings=[],T=0,L=S.length;T<L;T++){var R=S[T],v=new u;v.generatedLine=R.generatedLine,v.generatedColumn=R.generatedColumn,R.source&&(v.source=h.indexOf(R.source),v.originalLine=R.originalLine,v.originalColumn=R.originalColumn,R.name&&(v.name=d.indexOf(R.name)),E.push(v)),b.push(v);}return s(m.__originalMappings,e.compareByOriginalPositions),m},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null;}let l=e.compareByGeneratedPositionsDeflatedNoLine;function y(p,i){let f=p.length,m=p.length-i;if(!(m<=1))if(m==2){let d=p[i],h=p[i+1];l(d,h)>0&&(p[i]=h,p[i+1]=d);}else if(m<20)for(let d=i;d<f;d++)for(let h=d;h>i;h--){let S=p[h-1],b=p[h];if(l(S,b)<=0)break;p[h-1]=b,p[h]=S;}else s(p,l,i);}a.prototype._parseMappings=function(i,f){var m=1,d=0,h=0,S=0,b=0,E=0,T=i.length,L=0,v={},_=[],w=[],C,A,k,O;let V=0;for(;L<T;)if(i.charAt(L)===";")m++,L++,d=0,y(w,V),V=w.length;else if(i.charAt(L)===",")L++;else {for(C=new u,C.generatedLine=m,k=L;k<T&&!this._charIsMappingSeparator(i,k);k++);for(i.slice(L,k),A=[];L<k;)c.decode(i,L,v),O=v.value,L=v.rest,A.push(O);if(A.length===2)throw new Error("Found a source, but no line and column");if(A.length===3)throw new Error("Found a source and line, but no column");if(C.generatedColumn=d+A[0],d=C.generatedColumn,A.length>1&&(C.source=b+A[1],b+=A[1],C.originalLine=h+A[2],h=C.originalLine,C.originalLine+=1,C.originalColumn=S+A[3],S=C.originalColumn,A.length>4&&(C.name=E+A[4],E+=A[4])),w.push(C),typeof C.originalLine=="number"){let M=C.source;for(;_.length<=M;)_.push(null);_[M]===null&&(_[M]=[]),_[M].push(C);}}y(w,V),this.__generatedMappings=w;for(var D=0;D<_.length;D++)_[D]!=null&&s(_[D],e.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(..._);},a.prototype._findMapping=function(i,f,m,d,h,S){if(i[m]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+i[m]);if(i[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+i[d]);return n.search(i,f,h,S)},a.prototype.computeColumnSpans=function(){for(var i=0;i<this._generatedMappings.length;++i){var f=this._generatedMappings[i];if(i+1<this._generatedMappings.length){var m=this._generatedMappings[i+1];if(f.generatedLine===m.generatedLine){f.lastGeneratedColumn=m.generatedColumn-1;continue}}f.lastGeneratedColumn=1/0;}},a.prototype.originalPositionFor=function(i){var f={generatedLine:e.getArg(i,"line"),generatedColumn:e.getArg(i,"column")},m=this._findMapping(f,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(i,"bias",o.GREATEST_LOWER_BOUND));if(m>=0){var d=this._generatedMappings[m];if(d.generatedLine===f.generatedLine){var h=e.getArg(d,"source",null);h!==null&&(h=this._sources.at(h),h=e.computeSourceURL(this.sourceRoot,h,this._sourceMapURL));var S=e.getArg(d,"name",null);return S!==null&&(S=this._names.at(S)),{source:h,line:e.getArg(d,"originalLine",null),column:e.getArg(d,"originalColumn",null),name:S}}}return {source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(i){return i==null}):false},a.prototype.sourceContentFor=function(i,f){if(!this.sourcesContent)return null;var m=this._findSourceIndex(i);if(m>=0)return this.sourcesContent[m];var d=i;this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d));var h;if(this.sourceRoot!=null&&(h=e.urlParse(this.sourceRoot))){var S=d.replace(/^file:\/\//,"");if(h.scheme=="file"&&this._sources.has(S))return this.sourcesContent[this._sources.indexOf(S)];if((!h.path||h.path=="/")&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(f)return null;throw new Error('"'+d+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(i){var f=e.getArg(i,"source");if(f=this._findSourceIndex(f),f<0)return {line:null,column:null,lastColumn:null};var m={source:f,originalLine:e.getArg(i,"line"),originalColumn:e.getArg(i,"column")},d=this._findMapping(m,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(i,"bias",o.GREATEST_LOWER_BOUND));if(d>=0){var h=this._originalMappings[d];if(h.source===m.source)return {line:e.getArg(h,"generatedLine",null),column:e.getArg(h,"generatedColumn",null),lastColumn:e.getArg(h,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=a;function g(p,i){var f=p;typeof p=="string"&&(f=e.parseSourceMapInput(p));var m=e.getArg(f,"version"),d=e.getArg(f,"sections");if(m!=this._version)throw new Error("Unsupported version: "+m);this._sources=new r,this._names=new r;var h={line:-1,column:0};this._sections=d.map(function(S){if(S.url)throw new Error("Support for url field in sections not implemented.");var b=e.getArg(S,"offset"),E=e.getArg(b,"line"),T=e.getArg(b,"column");if(E<h.line||E===h.line&&T<h.column)throw new Error("Section offsets must be ordered and non-overlapping.");return h=b,{generatedOffset:{generatedLine:E+1,generatedColumn:T+1},consumer:new o(e.getArg(S,"map"),i)}});}g.prototype=Object.create(o.prototype),g.prototype.constructor=o,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var p=[],i=0;i<this._sections.length;i++)for(var f=0;f<this._sections[i].consumer.sources.length;f++)p.push(this._sections[i].consumer.sources[f]);return p}}),g.prototype.originalPositionFor=function(i){var f={generatedLine:e.getArg(i,"line"),generatedColumn:e.getArg(i,"column")},m=n.search(f,this._sections,function(h,S){var b=h.generatedLine-S.generatedOffset.generatedLine;return b||h.generatedColumn-S.generatedOffset.generatedColumn}),d=this._sections[m];return d?d.consumer.originalPositionFor({line:f.generatedLine-(d.generatedOffset.generatedLine-1),column:f.generatedColumn-(d.generatedOffset.generatedLine===f.generatedLine?d.generatedOffset.generatedColumn-1:0),bias:i.bias}):{source:null,line:null,column:null,name:null}},g.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(i){return i.consumer.hasContentsOfAllSources()})},g.prototype.sourceContentFor=function(i,f){for(var m=0;m<this._sections.length;m++){var d=this._sections[m],h=d.consumer.sourceContentFor(i,true);if(h||h==="")return h}if(f)return null;throw new Error('"'+i+'" is not in the SourceMap.')},g.prototype.generatedPositionFor=function(i){for(var f=0;f<this._sections.length;f++){var m=this._sections[f];if(m.consumer._findSourceIndex(e.getArg(i,"source"))!==-1){var d=m.consumer.generatedPositionFor(i);if(d){var h={line:d.line+(m.generatedOffset.generatedLine-1),column:d.column+(m.generatedOffset.generatedLine===d.line?m.generatedOffset.generatedColumn-1:0)};return h}}}return {line:null,column:null}},g.prototype._parseMappings=function(i,f){this.__generatedMappings=[],this.__originalMappings=[];for(var m=0;m<this._sections.length;m++)for(var d=this._sections[m],h=d.consumer._generatedMappings,S=0;S<h.length;S++){var b=h[S],E=d.consumer._sources.at(b.source);E!==null&&(E=e.computeSourceURL(d.consumer.sourceRoot,E,this._sourceMapURL)),this._sources.add(E),E=this._sources.indexOf(E);var T=null;b.name&&(T=d.consumer._names.at(b.name),this._names.add(T),T=this._names.indexOf(T));var L={source:E,generatedLine:b.generatedLine+(d.generatedOffset.generatedLine-1),generatedColumn:b.generatedColumn+(d.generatedOffset.generatedLine===b.generatedLine?d.generatedOffset.generatedColumn-1:0),originalLine:b.originalLine,originalColumn:b.originalColumn,name:T};this.__generatedMappings.push(L),typeof L.originalLine=="number"&&this.__originalMappings.push(L);}s(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),s(this.__originalMappings,e.compareByOriginalPositions);},t.IndexedSourceMapConsumer=g;}}),nn=G({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"(t){var e=tt().SourceMapGenerator,n=Q(),r=/(\r?\n)/,c=10,s="$$$isSourceNode$$$";function o(a,u,l,y,g){this.children=[],this.sourceContents={},this.line=a??null,this.column=u??null,this.source=l??null,this.name=g??null,this[s]=true,y!=null&&this.add(y);}o.fromStringWithSourceMap=function(u,l,y){var g=new o,p=u.split(r),i=0,f=function(){var b=T(),E=T()||"";return b+E;function T(){return i<p.length?p[i++]:void 0}},m=1,d=0,h=null;return l.eachMapping(function(b){if(h!==null)if(m<b.generatedLine)S(h,f()),m++,d=0;else {var E=p[i]||"",T=E.substr(0,b.generatedColumn-d);p[i]=E.substr(b.generatedColumn-d),d=b.generatedColumn,S(h,T),h=b;return}for(;m<b.generatedLine;)g.add(f()),m++;if(d<b.generatedColumn){var E=p[i]||"";g.add(E.substr(0,b.generatedColumn)),p[i]=E.substr(b.generatedColumn),d=b.generatedColumn;}h=b;},this),i<p.length&&(h&&S(h,f()),g.add(p.splice(i).join(""))),l.sources.forEach(function(b){var E=l.sourceContentFor(b);E!=null&&(y!=null&&(b=n.join(y,b)),g.setSourceContent(b,E));}),g;function S(b,E){if(b===null||b.source===void 0)g.add(E);else {var T=y?n.join(y,b.source):b.source;g.add(new o(b.originalLine,b.originalColumn,T,E,b.name));}}},o.prototype.add=function(u){if(Array.isArray(u))u.forEach(function(l){this.add(l);},this);else if(u[s]||typeof u=="string")u&&this.children.push(u);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);return this},o.prototype.prepend=function(u){if(Array.isArray(u))for(var l=u.length-1;l>=0;l--)this.prepend(u[l]);else if(u[s]||typeof u=="string")this.children.unshift(u);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);return this},o.prototype.walk=function(u){for(var l,y=0,g=this.children.length;y<g;y++)l=this.children[y],l[s]?l.walk(u):l!==""&&u(l,{source:this.source,line:this.line,column:this.column,name:this.name});},o.prototype.join=function(u){var l,y,g=this.children.length;if(g>0){for(l=[],y=0;y<g-1;y++)l.push(this.children[y]),l.push(u);l.push(this.children[y]),this.children=l;}return this},o.prototype.replaceRight=function(u,l){var y=this.children[this.children.length-1];return y[s]?y.replaceRight(u,l):typeof y=="string"?this.children[this.children.length-1]=y.replace(u,l):this.children.push("".replace(u,l)),this},o.prototype.setSourceContent=function(u,l){this.sourceContents[n.toSetString(u)]=l;},o.prototype.walkSourceContents=function(u){for(var l=0,y=this.children.length;l<y;l++)this.children[l][s]&&this.children[l].walkSourceContents(u);for(var g=Object.keys(this.sourceContents),l=0,y=g.length;l<y;l++)u(n.fromSetString(g[l]),this.sourceContents[g[l]]);},o.prototype.toString=function(){var u="";return this.walk(function(l){u+=l;}),u},o.prototype.toStringWithSourceMap=function(u){var l={code:"",line:1,column:0},y=new e(u),g=false,p=null,i=null,f=null,m=null;return this.walk(function(d,h){l.code+=d,h.source!==null&&h.line!==null&&h.column!==null?((p!==h.source||i!==h.line||f!==h.column||m!==h.name)&&y.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:l.line,column:l.column},name:h.name}),p=h.source,i=h.line,f=h.column,m=h.name,g=true):g&&(y.addMapping({generated:{line:l.line,column:l.column}}),p=null,g=false);for(var S=0,b=d.length;S<b;S++)d.charCodeAt(S)===c?(l.line++,l.column=0,S+1===b?(p=null,g=false):g&&y.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:l.line,column:l.column},name:h.name})):l.column++;}),this.walkSourceContents(function(d,h){y.setSourceContent(d,h);}),{code:l.code,map:y}},t.SourceNode=o;}}),rn=G({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.js"(t){t.SourceMapGenerator=tt().SourceMapGenerator,t.SourceMapConsumer=tn().SourceMapConsumer,t.SourceNode=nn().SourceNode;}}),on=Wt(rn()),Re=false,W=t=>`
|
|
12
|
-
in ${t}`,
|
|
13
|
-
`),r;for(let
|
|
14
|
-
`),
|
|
15
|
-
`),f=0,m=0;for(;f<p.length&&!p[f].includes("DetermineComponentFrameRoot");)f++;for(;m<
|
|
16
|
-
${p[f].replace(" at new "," at ")}`,h=
|
|
17
|
-
|
|
9
|
+
var ye={name:"cursor",open:t=>{if(!t)return;let e=new URL("cursor://anysphere.cursor-deeplink/prompt");e.searchParams.set("text",t),window.open(e.toString(),"_blank");}};var Ft=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],kt=t=>!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-"),Pt=t=>Array.isArray(t),Dt=(t,e=false)=>{let{composed:n,target:r}=t,l,i;if(r instanceof HTMLElement&&kt(r)&&n){let s=t.composedPath()[0];s instanceof HTMLElement&&(l=s.tagName,i=s.role);}else r instanceof HTMLElement&&(l=r.tagName,i=r.role);return Pt(e)?!!(l&&e&&e.some(o=>typeof l=="string"&&o.toLowerCase()===l.toLowerCase()||o===i)):!!(l&&e&&e)},Ht=t=>Dt(t,Ft),ze=()=>{let t=l=>{Ht(l)||l.code!==void 0&&I.setState(i=>{let o=new Map(i.keyPressTimestamps);return i.pressedKeys.has(l.key)||o.set(l.key,Date.now()),{...i,keyPressTimestamps:o,pressedKeys:new Set([l.key,...i.pressedKeys])}});},e=l=>{l.code!==void 0&&I.setState(i=>{let o=new Map(i.keyPressTimestamps);return o.delete(l.key),{...i,keyPressTimestamps:o,pressedKeys:new Set([...i.pressedKeys].filter(s=>s!==l.key))}});},n=()=>{I.setState(l=>({...l,keyPressTimestamps:new Map,pressedKeys:new Set}));},r=()=>{I.setState(l=>({...l,keyPressTimestamps:new Map,pressedKeys:new Set}));};return document.addEventListener("keydown",t),document.addEventListener("keyup",e),window.addEventListener("blur",n),window.addEventListener("contextmenu",r),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e),window.removeEventListener("blur",n),window.removeEventListener("contextmenu",r);}},ve=t=>{let{pressedKeys:e}=I.getState();return t.length===1?e.has(t.toLowerCase())||e.has(t.toUpperCase()):e.has(t)},Be=(t,e,n)=>{let r=null,l=null,i=Date.now(),o=()=>{r!==null&&(clearTimeout(r),r=null),l!==null&&(l(),l=null);},s=(y,g)=>y.length===1?g.has(y.toLowerCase())||g.has(y.toUpperCase()):g.has(y),c=y=>Array.isArray(t)?t.every(g=>s(g,y)):s(t,y),u=()=>{let y=I.getState(),{pressedKeys:g}=y;if(!c(g)){r!==null&&(clearTimeout(r),r=null);return}let p=Date.now()-i,a=e-p;if(a<=0){n(),o();return}r!==null&&clearTimeout(r),r=setTimeout(()=>{n(),o();},a);};return l=I.subscribe(()=>{u();},y=>y.pressedKeys),u(),o};var Ke="0.3.32",se=`bippy-${Ke}`,We=Object.defineProperty,jt=Object.prototype.hasOwnProperty,Q=()=>{},Xe=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{}},Ye=(t=B())=>"getFiberRoots"in t,Qe=false,qe,_e=(t=B())=>Qe?true:(typeof t.inject=="function"&&(qe=t.inject.toString()),!!qe?.includes("(injected)")),oe=new Set,q=new Set,Ze=t=>{let e=new Map,n=0,r={checkDCE:Xe,supportsFiber:true,supportsFlight:true,hasUnsupportedRendererAttached:false,renderers:e,onCommitFiberRoot:Q,onCommitFiberUnmount:Q,onPostCommitFiberRoot:Q,on:Q,inject(l){let i=++n;return e.set(i,l),q.add(l),r._instrumentationIsActive||(r._instrumentationIsActive=true,oe.forEach(o=>o())),i},_instrumentationSource:se,_instrumentationIsActive:false};try{We(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{get(){return r},set(o){if(o&&typeof o=="object"){let s=r.renderers;r=o,s.size>0&&(s.forEach((c,u)=>{q.add(c),o.renderers.set(u,c);}),ie(t));}},configurable:!0,enumerable:!0});let l=window.hasOwnProperty,i=!1;We(window,"hasOwnProperty",{value:function(){try{if(!i&&arguments[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,i=!0,-0}catch{}return l.apply(this,arguments)},configurable:!0,writable:!0});}catch{ie(t);}return r},ie=t=>{t&&oe.add(t);try{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!e)return;if(!e._instrumentationSource){if(e.checkDCE=Xe,e.supportsFiber=!0,e.supportsFlight=!0,e.hasUnsupportedRendererAttached=!1,e._instrumentationSource=se,e._instrumentationIsActive=!1,e.on=Q,e.renderers.size){e._instrumentationIsActive=!0,oe.forEach(r=>r());return}let n=e.inject;_e(e)&&!Ye()&&(Qe=!0,e.inject({scheduleRefresh(){}})&&(e._instrumentationIsActive=!0)),e.inject=r=>{let l=n(r);return q.add(r),e._instrumentationIsActive=!0,oe.forEach(i=>i()),l};}(e.renderers.size||e._instrumentationIsActive||_e())&&t?.();}catch{}},Je=()=>jt.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),B=t=>Je()?(ie(t),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Ze(t),et=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),tt=()=>{try{et()&&B();}catch{}},ae=0,Z=1;var le=5;var ce=11,Se=13,nt=14,ue=15,Ce=16;var be=19;var de=26,fe=27,we=28,Ee=30;var Te=t=>{switch(t.tag){case le:case de:case fe:return true;default:return typeof t.type=="string"}},Le=t=>{switch(t.tag){case ae:case Z:case ue:case nt:case ce:return true;default:return false}};function Re(t,e,n=false){return t&&e(t)instanceof Promise?Ae(t,e,n):Me(t,e,n)}var Me=(t,e,n=false)=>{if(!t)return null;if(e(t)===true)return t;let r=n?t.return:t.child;for(;r;){let l=Me(r,e,n);if(l)return l;r=n?null:r.sibling;}return null},Ae=async(t,e,n=false)=>{if(!t)return null;if(await e(t)===true)return t;let r=n?t.return:t.child;for(;r;){let l=await Ae(r,e,n);if(l)return l;r=n?null:r.sibling;}return null};var K=t=>{let e=t;return typeof e=="function"?e:typeof e=="object"&&e?K(e.type||e.render):null},pe=t=>{let e=t;if(typeof e=="string")return e;if(typeof e!="function"&&!(typeof e=="object"&&e))return null;let n=e.displayName||e.name||null;if(n)return n;let r=K(e);return r&&(r.displayName||r.name)||null};var Oe=t=>B(()=>{let e=B();t.onActive?.(),e._instrumentationSource=t.name??se;let n=e.onCommitFiberRoot;t.onCommitFiberRoot&&(e.onCommitFiberRoot=(i,o,s)=>{n&&n(i,o,s),t.onCommitFiberRoot?.(i,o,s);});let r=e.onCommitFiberUnmount;t.onCommitFiberUnmount&&(e.onCommitFiberUnmount=(i,o)=>{r&&r(i,o),t.onCommitFiberUnmount?.(i,o);});let l=e.onPostCommitFiberRoot;t.onPostCommitFiberRoot&&(e.onPostCommitFiberRoot=(i,o)=>{l&&l(i,o),t.onPostCommitFiberRoot?.(i,o);});}),xe=t=>{let e=B();for(let n of e.renderers.values())try{let r=n.findFiberByHostInstance?.(t);if(r)return r}catch{}if(typeof t=="object"&&t!=null){if("_reactRootContainer"in t)return t._reactRootContainer?._internalRoot?.current?.child;for(let n in t)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return t[n]||null}return null},Ie=new Set;tt();var Kt=Object.create,rt=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,ot=Object.getOwnPropertyNames,Yt=Object.getPrototypeOf,Qt=Object.prototype.hasOwnProperty,U=(t,e)=>function(){return e||(0, t[ot(t)[0]])((e={exports:{}}).exports,e),e.exports},Zt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(var l=ot(e),i=0,o=l.length,s;i<o;i++)s=l[i],!Qt.call(t,s)&&s!==n&&rt(t,s,{get:(c=>e[c]).bind(null,s),enumerable:!(r=Xt(e,s))||r.enumerable});return t},Jt=(t,e,n)=>(n=t!=null?Kt(Yt(t)):{},Zt(rt(n,"default",{value:t,enumerable:true}),t)),it=/^\s*at .*(\S+:\d+|\(native\))/m,en=/^(eval@)?(\[native code\])?$/;function tn(t,e){return t.match(it)?nn(t,e):rn(t,e)}function st(t){if(!t.includes(":"))return [t,void 0,void 0];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]}function at(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 nn(t,e){return at(t.split(`
|
|
10
|
+
`).filter(r=>!!r.match(it)),e).map(r=>{r.includes("(eval ")&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let l=r.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),i=l.match(/ (\(.+\)$)/);l=i?l.replace(i[0],""):l;let o=st(i?i[1]:l),s=i&&l||void 0,c=["eval","<anonymous>"].includes(o[0])?void 0:o[0];return {function:s,file:c,line:o[1]?+o[1]:void 0,col:o[2]?+o[2]:void 0,raw:r}})}function rn(t,e){return at(t.split(`
|
|
11
|
+
`).filter(r=>!r.match(en)),e).map(r=>{if(r.includes(" > eval")&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!r.includes("@")&&!r.includes(":"))return {function:r};{let l=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,i=r.match(l),o=i&&i[1]?i[1]:void 0,s=st(r.replace(l,""));return {function:o,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:r}}})}var on=U({"../../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(n){if(0<=n&&n<e.length)return e[n];throw new TypeError("Must be between 0 and 63: "+n)},t.decode=function(n){var r=65,l=90,i=97,o=122,s=48,c=57,u=43,y=47,g=26,p=52;return r<=n&&n<=l?n-r:i<=n&&n<=o?n-i+g:s<=n&&n<=c?n-s+p:n==u?62:n==y?63:-1};}}),lt=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js"(t){var e=on(),n=5,r=1<<n,l=r-1,i=r;function o(c){return c<0?(-c<<1)+1:(c<<1)+0}function s(c){var u=(c&1)===1,y=c>>1;return u?-y:y}t.encode=function(u){var y="",g,p=o(u);do g=p&l,p>>>=n,p>0&&(g|=i),y+=e.encode(g);while(p>0);return y},t.decode=function(u,y,g){var p=u.length,a=0,f=0,m,d;do{if(y>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(d=e.decode(u.charCodeAt(y++)),d===-1)throw new Error("Invalid base64 digit: "+u.charAt(y-1));m=!!(d&i),d&=l,a=a+(d<<f),f+=n;}while(m);g.value=s(a),g.rest=y;};}}),ee=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(t){function e(v,_,w){if(_ in v)return v[_];if(arguments.length===3)return w;throw new Error('"'+_+'" is a required argument.')}t.getArg=e;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function l(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}t.urlParse=l;function i(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}t.urlGenerate=i;var o=32;function s(v){var _=[];return function(w){for(var C=0;C<_.length;C++)if(_[C].input===w){var P=_[0];return _[0]=_[C],_[C]=P,_[0].result}var A=v(w);return _.unshift({input:w,result:A}),_.length>o&&_.pop(),A}}var c=s(function(_){var w=_,C=l(_);if(C){if(!C.path)return _;w=C.path;}for(var P=t.isAbsolute(w),A=[],k=0,O=0;;)if(k=O,O=w.indexOf("/",k),O===-1){A.push(w.slice(k));break}else for(A.push(w.slice(k,O));O<w.length&&w[O]==="/";)O++;for(var z,D=0,O=A.length-1;O>=0;O--)z=A[O],z==="."?A.splice(O,1):z===".."?D++:D>0&&(z===""?(A.splice(O+1,D),D=0):(A.splice(O,2),D--));return w=A.join("/"),w===""&&(w=P?"/":"."),C?(C.path=w,i(C)):w});t.normalize=c;function u(v,_){v===""&&(v="."),_===""&&(_=".");var w=l(_),C=l(v);if(C&&(v=C.path||"/"),w&&!w.scheme)return C&&(w.scheme=C.scheme),i(w);if(w||_.match(r))return _;if(C&&!C.host&&!C.path)return C.host=_,i(C);var P=_.charAt(0)==="/"?_:c(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=P,i(C)):P}t.join=u,t.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function y(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var w=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++w;}return Array(w+1).join("../")+_.substr(v.length+1)}t.relative=y;var g=function(){var v=Object.create(null);return !("__proto__"in v)}();function p(v){return v}function a(v){return m(v)?"$"+v:v}t.toSetString=g?p:a;function f(v){return m(v)?v.slice(1):v}t.fromSetString=g?p:f;function m(v){if(!v)return false;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return false;for(var w=_-10;w>=0;w--)if(v.charCodeAt(w)!==36)return false;return true}function d(v,_,w){var C=E(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||w)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:E(v.name,_.name)}t.compareByOriginalPositions=d;function h(v,_,w){var C;return C=v.originalLine-_.originalLine,C!==0||(C=v.originalColumn-_.originalColumn,C!==0||w)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:E(v.name,_.name)}t.compareByOriginalPositionsNoSource=h;function S(v,_,w){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||w)||(C=E(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:E(v.name,_.name)}t.compareByGeneratedPositionsDeflated=S;function b(v,_,w){var C=v.generatedColumn-_.generatedColumn;return C!==0||w||(C=E(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:E(v.name,_.name)}t.compareByGeneratedPositionsDeflatedNoLine=b;function E(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function T(v,_){var w=v.generatedLine-_.generatedLine;return w!==0||(w=v.generatedColumn-_.generatedColumn,w!==0)||(w=E(v.source,_.source),w!==0)||(w=v.originalLine-_.originalLine,w!==0)||(w=v.originalColumn-_.originalColumn,w!==0)?w:E(v.name,_.name)}t.compareByGeneratedPositionsInflated=T;function L(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=L;function R(v,_,w){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),w){var C=l(w);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var P=C.path.lastIndexOf("/");P>=0&&(C.path=C.path.substring(0,P+1));}_=u(i(C),_);}return c(_)}t.computeSourceURL=R;}}),ct=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(t){var e=ee(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function l(){this._array=[],this._set=r?new Map:Object.create(null);}l.fromArray=function(o,s){for(var c=new l,u=0,y=o.length;u<y;u++)c.add(o[u],s);return c},l.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},l.prototype.add=function(o,s){var c=r?o:e.toSetString(o),u=r?this.has(o):n.call(this._set,c),y=this._array.length;(!u||s)&&this._array.push(o),u||(r?this._set.set(o,y):this._set[c]=y);},l.prototype.has=function(o){if(r)return this._set.has(o);var s=e.toSetString(o);return n.call(this._set,s)},l.prototype.indexOf=function(o){if(r){var s=this._set.get(o);if(s>=0)return s}else {var c=e.toSetString(o);if(n.call(this._set,c))return this._set[c]}throw new Error('"'+o+'" is not in the set.')},l.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},l.prototype.toArray=function(){return this._array.slice()},t.ArraySet=l;}}),sn=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(t){var e=ee();function n(l,i){var o=l.generatedLine,s=i.generatedLine,c=l.generatedColumn,u=i.generatedColumn;return s>o||s==o&&u>=c||e.compareByGeneratedPositionsInflated(l,i)<=0}function r(){this._array=[],this._sorted=true,this._last={generatedLine:-1,generatedColumn:0};}r.prototype.unsortedForEach=function(i,o){this._array.forEach(i,o);},r.prototype.add=function(i){n(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=false,this._array.push(i));},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=true),this._array},t.MappingList=r;}}),ut=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js"(t){var e=lt(),n=ee(),r=ct().ArraySet,l=sn().MappingList;function i(o){o||(o={}),this._file=n.getArg(o,"file",null),this._sourceRoot=n.getArg(o,"sourceRoot",null),this._skipValidation=n.getArg(o,"skipValidation",false),this._ignoreInvalidMapping=n.getArg(o,"ignoreInvalidMapping",false),this._sources=new r,this._names=new r,this._mappings=new l,this._sourcesContents=null;}i.prototype._version=3,i.fromSourceMap=function(s,c){var u=s.sourceRoot,y=new i(Object.assign(c||{},{file:s.file,sourceRoot:u}));return s.eachMapping(function(g){var p={generated:{line:g.generatedLine,column:g.generatedColumn}};g.source!=null&&(p.source=g.source,u!=null&&(p.source=n.relative(u,p.source)),p.original={line:g.originalLine,column:g.originalColumn},g.name!=null&&(p.name=g.name)),y.addMapping(p);}),s.sources.forEach(function(g){var p=g;u!==null&&(p=n.relative(u,g)),y._sources.has(p)||y._sources.add(p);var a=s.sourceContentFor(g);a!=null&&y.setSourceContent(g,a);}),y},i.prototype.addMapping=function(s){var c=n.getArg(s,"generated"),u=n.getArg(s,"original",null),y=n.getArg(s,"source",null),g=n.getArg(s,"name",null);!this._skipValidation&&this._validateMapping(c,u,y,g)===false||(y!=null&&(y=String(y),this._sources.has(y)||this._sources.add(y)),g!=null&&(g=String(g),this._names.has(g)||this._names.add(g)),this._mappings.add({generatedLine:c.line,generatedColumn:c.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:y,name:g}));},i.prototype.setSourceContent=function(s,c){var u=s;this._sourceRoot!=null&&(u=n.relative(this._sourceRoot,u)),c!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(u)]=c):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));},i.prototype.applySourceMap=function(s,c,u){var y=c;if(c==null){if(s.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);y=s.file;}var g=this._sourceRoot;g!=null&&(y=n.relative(g,y));var p=new r,a=new r;this._mappings.unsortedForEach(function(f){if(f.source===y&&f.originalLine!=null){var m=s.originalPositionFor({line:f.originalLine,column:f.originalColumn});m.source!=null&&(f.source=m.source,u!=null&&(f.source=n.join(u,f.source)),g!=null&&(f.source=n.relative(g,f.source)),f.originalLine=m.line,f.originalColumn=m.column,m.name!=null&&(f.name=m.name));}var d=f.source;d!=null&&!p.has(d)&&p.add(d);var h=f.name;h!=null&&!a.has(h)&&a.add(h);},this),this._sources=p,this._names=a,s.sources.forEach(function(f){var m=s.sourceContentFor(f);m!=null&&(u!=null&&(f=n.join(u,f)),g!=null&&(f=n.relative(g,f)),this.setSourceContent(f,m));},this);},i.prototype._validateMapping=function(s,c,u,y){if(c&&typeof c.line!="number"&&typeof c.column!="number"){var g="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(g),false;throw new Error(g)}if(!(s&&"line"in s&&"column"in s&&s.line>0&&s.column>=0&&!c&&!u&&!y)){if(s&&"line"in s&&"column"in s&&c&&"line"in c&&"column"in c&&s.line>0&&s.column>=0&&c.line>0&&c.column>=0&&u)return;var g="Invalid mapping: "+JSON.stringify({generated:s,source:u,original:c,name:y});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(g),false;throw new Error(g)}},i.prototype._serializeMappings=function(){for(var s=0,c=1,u=0,y=0,g=0,p=0,a="",f,m,d,h,S=this._mappings.toArray(),b=0,E=S.length;b<E;b++){if(m=S[b],f="",m.generatedLine!==c)for(s=0;m.generatedLine!==c;)f+=";",c++;else if(b>0){if(!n.compareByGeneratedPositionsInflated(m,S[b-1]))continue;f+=",";}f+=e.encode(m.generatedColumn-s),s=m.generatedColumn,m.source!=null&&(h=this._sources.indexOf(m.source),f+=e.encode(h-p),p=h,f+=e.encode(m.originalLine-1-y),y=m.originalLine-1,f+=e.encode(m.originalColumn-u),u=m.originalColumn,m.name!=null&&(d=this._names.indexOf(m.name),f+=e.encode(d-g),g=d)),a+=f;}return a},i.prototype._generateSourcesContent=function(s,c){return s.map(function(u){if(!this._sourcesContents)return null;c!=null&&(u=n.relative(c,u));var y=n.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,y)?this._sourcesContents[y]:null},this)},i.prototype.toJSON=function(){var s={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(s.file=this._file),this._sourceRoot!=null&&(s.sourceRoot=this._sourceRoot),this._sourcesContents&&(s.sourcesContent=this._generateSourcesContent(s.sources,s.sourceRoot)),s},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=i;}}),an=U({"../../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(n,r,l,i,o,s){var c=Math.floor((r-n)/2)+n,u=o(l,i[c],true);return u===0?c:u>0?r-c>1?e(c,r,l,i,o,s):s==t.LEAST_UPPER_BOUND?r<i.length?r:-1:c:c-n>1?e(n,c,l,i,o,s):s==t.LEAST_UPPER_BOUND?c:n<0?-1:n}t.search=function(r,l,i,o){if(l.length===0)return -1;var s=e(-1,l.length,r,l,i,o||t.GREATEST_LOWER_BOUND);if(s<0)return -1;for(;s-1>=0&&i(l[s],l[s-1],true)===0;)--s;return s};}}),ln=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(t){function e(l){function i(c,u,y){var g=c[u];c[u]=c[y],c[y]=g;}function o(c,u){return Math.round(c+Math.random()*(u-c))}function s(c,u,y,g){if(y<g){var p=o(y,g),a=y-1;i(c,p,g);for(var f=c[g],m=y;m<g;m++)u(c[m],f,false)<=0&&(a+=1,i(c,a,m));i(c,a+1,m);var d=a+1;s(c,u,y,d-1),s(c,u,d+1,g);}}return s}function n(l){let i=e.toString();return new Function(`return ${i}`)()(l)}let r=new WeakMap;t.quickSort=function(l,i,o=0){let s=r.get(i);s===void 0&&(s=n(i),r.set(i,s)),s(l,i,o,l.length-1);};}}),cn=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js"(t){var e=ee(),n=an(),r=ct().ArraySet,l=lt(),i=ln().quickSort;function o(p,a){var f=p;return typeof p=="string"&&(f=e.parseSourceMapInput(p)),f.sections!=null?new g(f,a):new s(f,a)}o.fromSourceMap=function(p,a){return s.fromSourceMap(p,a)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(a,f){var m=a.charAt(f);return m===";"||m===","},o.prototype._parseMappings=function(a,f){throw new Error("Subclasses must implement _parseMappings")},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(a,f,m){var d=f||null,h=m||o.GENERATED_ORDER,S;switch(h){case o.GENERATED_ORDER:S=this._generatedMappings;break;case o.ORIGINAL_ORDER:S=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var b=this.sourceRoot,E=a.bind(d),T=this._names,L=this._sources,R=this._sourceMapURL,v=0,_=S.length;v<_;v++){var w=S[v],C=w.source===null?null:L.at(w.source);C!==null&&(C=e.computeSourceURL(b,C,R)),E({source:C,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:T.at(w.name)});}},o.prototype.allGeneratedPositionsFor=function(a){var f=e.getArg(a,"line"),m={source:e.getArg(a,"source"),originalLine:f,originalColumn:e.getArg(a,"column",0)};if(m.source=this._findSourceIndex(m.source),m.source<0)return [];var d=[],h=this._findMapping(m,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(h>=0){var S=this._originalMappings[h];if(a.column===void 0)for(var b=S.originalLine;S&&S.originalLine===b;)d.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++h];else for(var E=S.originalColumn;S&&S.originalLine===f&&S.originalColumn==E;)d.push({line:e.getArg(S,"generatedLine",null),column:e.getArg(S,"generatedColumn",null),lastColumn:e.getArg(S,"lastGeneratedColumn",null)}),S=this._originalMappings[++h];}return d},t.SourceMapConsumer=o;function s(p,a){var f=p;typeof p=="string"&&(f=e.parseSourceMapInput(p));var m=e.getArg(f,"version"),d=e.getArg(f,"sources"),h=e.getArg(f,"names",[]),S=e.getArg(f,"sourceRoot",null),b=e.getArg(f,"sourcesContent",null),E=e.getArg(f,"mappings"),T=e.getArg(f,"file",null);if(m!=this._version)throw new Error("Unsupported version: "+m);S&&(S=e.normalize(S)),d=d.map(String).map(e.normalize).map(function(L){return S&&e.isAbsolute(S)&&e.isAbsolute(L)?e.relative(S,L):L}),this._names=r.fromArray(h.map(String),true),this._sources=r.fromArray(d,true),this._absoluteSources=this._sources.toArray().map(function(L){return e.computeSourceURL(S,L,a)}),this.sourceRoot=S,this.sourcesContent=b,this._mappings=E,this._sourceMapURL=a,this.file=T;}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(p){var a=p;if(this.sourceRoot!=null&&(a=e.relative(this.sourceRoot,a)),this._sources.has(a))return this._sources.indexOf(a);var f;for(f=0;f<this._absoluteSources.length;++f)if(this._absoluteSources[f]==p)return f;return -1},s.fromSourceMap=function(a,f){var m=Object.create(s.prototype),d=m._names=r.fromArray(a._names.toArray(),true),h=m._sources=r.fromArray(a._sources.toArray(),true);m.sourceRoot=a._sourceRoot,m.sourcesContent=a._generateSourcesContent(m._sources.toArray(),m.sourceRoot),m.file=a._file,m._sourceMapURL=f,m._absoluteSources=m._sources.toArray().map(function(_){return e.computeSourceURL(m.sourceRoot,_,f)});for(var S=a._mappings.toArray().slice(),b=m.__generatedMappings=[],E=m.__originalMappings=[],T=0,L=S.length;T<L;T++){var R=S[T],v=new c;v.generatedLine=R.generatedLine,v.generatedColumn=R.generatedColumn,R.source&&(v.source=h.indexOf(R.source),v.originalLine=R.originalLine,v.originalColumn=R.originalColumn,R.name&&(v.name=d.indexOf(R.name)),E.push(v)),b.push(v);}return i(m.__originalMappings,e.compareByOriginalPositions),m},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null;}let u=e.compareByGeneratedPositionsDeflatedNoLine;function y(p,a){let f=p.length,m=p.length-a;if(!(m<=1))if(m==2){let d=p[a],h=p[a+1];u(d,h)>0&&(p[a]=h,p[a+1]=d);}else if(m<20)for(let d=a;d<f;d++)for(let h=d;h>a;h--){let S=p[h-1],b=p[h];if(u(S,b)<=0)break;p[h-1]=b,p[h]=S;}else i(p,u,a);}s.prototype._parseMappings=function(a,f){var m=1,d=0,h=0,S=0,b=0,E=0,T=a.length,L=0,v={},_=[],w=[],C,A,k,O;let z=0;for(;L<T;)if(a.charAt(L)===";")m++,L++,d=0,y(w,z),z=w.length;else if(a.charAt(L)===",")L++;else {for(C=new c,C.generatedLine=m,k=L;k<T&&!this._charIsMappingSeparator(a,k);k++);for(a.slice(L,k),A=[];L<k;)l.decode(a,L,v),O=v.value,L=v.rest,A.push(O);if(A.length===2)throw new Error("Found a source, but no line and column");if(A.length===3)throw new Error("Found a source and line, but no column");if(C.generatedColumn=d+A[0],d=C.generatedColumn,A.length>1&&(C.source=b+A[1],b+=A[1],C.originalLine=h+A[2],h=C.originalLine,C.originalLine+=1,C.originalColumn=S+A[3],S=C.originalColumn,A.length>4&&(C.name=E+A[4],E+=A[4])),w.push(C),typeof C.originalLine=="number"){let M=C.source;for(;_.length<=M;)_.push(null);_[M]===null&&(_[M]=[]),_[M].push(C);}}y(w,z),this.__generatedMappings=w;for(var D=0;D<_.length;D++)_[D]!=null&&i(_[D],e.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(..._);},s.prototype._findMapping=function(a,f,m,d,h,S){if(a[m]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[m]);if(a[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return n.search(a,f,h,S)},s.prototype.computeColumnSpans=function(){for(var a=0;a<this._generatedMappings.length;++a){var f=this._generatedMappings[a];if(a+1<this._generatedMappings.length){var m=this._generatedMappings[a+1];if(f.generatedLine===m.generatedLine){f.lastGeneratedColumn=m.generatedColumn-1;continue}}f.lastGeneratedColumn=1/0;}},s.prototype.originalPositionFor=function(a){var f={generatedLine:e.getArg(a,"line"),generatedColumn:e.getArg(a,"column")},m=this._findMapping(f,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(a,"bias",o.GREATEST_LOWER_BOUND));if(m>=0){var d=this._generatedMappings[m];if(d.generatedLine===f.generatedLine){var h=e.getArg(d,"source",null);h!==null&&(h=this._sources.at(h),h=e.computeSourceURL(this.sourceRoot,h,this._sourceMapURL));var S=e.getArg(d,"name",null);return S!==null&&(S=this._names.at(S)),{source:h,line:e.getArg(d,"originalLine",null),column:e.getArg(d,"originalColumn",null),name:S}}}return {source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return a==null}):false},s.prototype.sourceContentFor=function(a,f){if(!this.sourcesContent)return null;var m=this._findSourceIndex(a);if(m>=0)return this.sourcesContent[m];var d=a;this.sourceRoot!=null&&(d=e.relative(this.sourceRoot,d));var h;if(this.sourceRoot!=null&&(h=e.urlParse(this.sourceRoot))){var S=d.replace(/^file:\/\//,"");if(h.scheme=="file"&&this._sources.has(S))return this.sourcesContent[this._sources.indexOf(S)];if((!h.path||h.path=="/")&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(f)return null;throw new Error('"'+d+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(a){var f=e.getArg(a,"source");if(f=this._findSourceIndex(f),f<0)return {line:null,column:null,lastColumn:null};var m={source:f,originalLine:e.getArg(a,"line"),originalColumn:e.getArg(a,"column")},d=this._findMapping(m,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(a,"bias",o.GREATEST_LOWER_BOUND));if(d>=0){var h=this._originalMappings[d];if(h.source===m.source)return {line:e.getArg(h,"generatedLine",null),column:e.getArg(h,"generatedColumn",null),lastColumn:e.getArg(h,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=s;function g(p,a){var f=p;typeof p=="string"&&(f=e.parseSourceMapInput(p));var m=e.getArg(f,"version"),d=e.getArg(f,"sections");if(m!=this._version)throw new Error("Unsupported version: "+m);this._sources=new r,this._names=new r;var h={line:-1,column:0};this._sections=d.map(function(S){if(S.url)throw new Error("Support for url field in sections not implemented.");var b=e.getArg(S,"offset"),E=e.getArg(b,"line"),T=e.getArg(b,"column");if(E<h.line||E===h.line&&T<h.column)throw new Error("Section offsets must be ordered and non-overlapping.");return h=b,{generatedOffset:{generatedLine:E+1,generatedColumn:T+1},consumer:new o(e.getArg(S,"map"),a)}});}g.prototype=Object.create(o.prototype),g.prototype.constructor=o,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var p=[],a=0;a<this._sections.length;a++)for(var f=0;f<this._sections[a].consumer.sources.length;f++)p.push(this._sections[a].consumer.sources[f]);return p}}),g.prototype.originalPositionFor=function(a){var f={generatedLine:e.getArg(a,"line"),generatedColumn:e.getArg(a,"column")},m=n.search(f,this._sections,function(h,S){var b=h.generatedLine-S.generatedOffset.generatedLine;return b||h.generatedColumn-S.generatedOffset.generatedColumn}),d=this._sections[m];return d?d.consumer.originalPositionFor({line:f.generatedLine-(d.generatedOffset.generatedLine-1),column:f.generatedColumn-(d.generatedOffset.generatedLine===f.generatedLine?d.generatedOffset.generatedColumn-1:0),bias:a.bias}):{source:null,line:null,column:null,name:null}},g.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(a){return a.consumer.hasContentsOfAllSources()})},g.prototype.sourceContentFor=function(a,f){for(var m=0;m<this._sections.length;m++){var d=this._sections[m],h=d.consumer.sourceContentFor(a,true);if(h||h==="")return h}if(f)return null;throw new Error('"'+a+'" is not in the SourceMap.')},g.prototype.generatedPositionFor=function(a){for(var f=0;f<this._sections.length;f++){var m=this._sections[f];if(m.consumer._findSourceIndex(e.getArg(a,"source"))!==-1){var d=m.consumer.generatedPositionFor(a);if(d){var h={line:d.line+(m.generatedOffset.generatedLine-1),column:d.column+(m.generatedOffset.generatedLine===d.line?m.generatedOffset.generatedColumn-1:0)};return h}}}return {line:null,column:null}},g.prototype._parseMappings=function(a,f){this.__generatedMappings=[],this.__originalMappings=[];for(var m=0;m<this._sections.length;m++)for(var d=this._sections[m],h=d.consumer._generatedMappings,S=0;S<h.length;S++){var b=h[S],E=d.consumer._sources.at(b.source);E!==null&&(E=e.computeSourceURL(d.consumer.sourceRoot,E,this._sourceMapURL)),this._sources.add(E),E=this._sources.indexOf(E);var T=null;b.name&&(T=d.consumer._names.at(b.name),this._names.add(T),T=this._names.indexOf(T));var L={source:E,generatedLine:b.generatedLine+(d.generatedOffset.generatedLine-1),generatedColumn:b.generatedColumn+(d.generatedOffset.generatedLine===b.generatedLine?d.generatedOffset.generatedColumn-1:0),originalLine:b.originalLine,originalColumn:b.originalColumn,name:T};this.__generatedMappings.push(L),typeof L.originalLine=="number"&&this.__originalMappings.push(L);}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions);},t.IndexedSourceMapConsumer=g;}}),un=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"(t){var e=ut().SourceMapGenerator,n=ee(),r=/(\r?\n)/,l=10,i="$$$isSourceNode$$$";function o(s,c,u,y,g){this.children=[],this.sourceContents={},this.line=s??null,this.column=c??null,this.source=u??null,this.name=g??null,this[i]=true,y!=null&&this.add(y);}o.fromStringWithSourceMap=function(c,u,y){var g=new o,p=c.split(r),a=0,f=function(){var b=T(),E=T()||"";return b+E;function T(){return a<p.length?p[a++]:void 0}},m=1,d=0,h=null;return u.eachMapping(function(b){if(h!==null)if(m<b.generatedLine)S(h,f()),m++,d=0;else {var E=p[a]||"",T=E.substr(0,b.generatedColumn-d);p[a]=E.substr(b.generatedColumn-d),d=b.generatedColumn,S(h,T),h=b;return}for(;m<b.generatedLine;)g.add(f()),m++;if(d<b.generatedColumn){var E=p[a]||"";g.add(E.substr(0,b.generatedColumn)),p[a]=E.substr(b.generatedColumn),d=b.generatedColumn;}h=b;},this),a<p.length&&(h&&S(h,f()),g.add(p.splice(a).join(""))),u.sources.forEach(function(b){var E=u.sourceContentFor(b);E!=null&&(y!=null&&(b=n.join(y,b)),g.setSourceContent(b,E));}),g;function S(b,E){if(b===null||b.source===void 0)g.add(E);else {var T=y?n.join(y,b.source):b.source;g.add(new o(b.originalLine,b.originalColumn,T,E,b.name));}}},o.prototype.add=function(c){if(Array.isArray(c))c.forEach(function(u){this.add(u);},this);else if(c[i]||typeof c=="string")c&&this.children.push(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this},o.prototype.prepend=function(c){if(Array.isArray(c))for(var u=c.length-1;u>=0;u--)this.prepend(c[u]);else if(c[i]||typeof c=="string")this.children.unshift(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this},o.prototype.walk=function(c){for(var u,y=0,g=this.children.length;y<g;y++)u=this.children[y],u[i]?u.walk(c):u!==""&&c(u,{source:this.source,line:this.line,column:this.column,name:this.name});},o.prototype.join=function(c){var u,y,g=this.children.length;if(g>0){for(u=[],y=0;y<g-1;y++)u.push(this.children[y]),u.push(c);u.push(this.children[y]),this.children=u;}return this},o.prototype.replaceRight=function(c,u){var y=this.children[this.children.length-1];return y[i]?y.replaceRight(c,u):typeof y=="string"?this.children[this.children.length-1]=y.replace(c,u):this.children.push("".replace(c,u)),this},o.prototype.setSourceContent=function(c,u){this.sourceContents[n.toSetString(c)]=u;},o.prototype.walkSourceContents=function(c){for(var u=0,y=this.children.length;u<y;u++)this.children[u][i]&&this.children[u].walkSourceContents(c);for(var g=Object.keys(this.sourceContents),u=0,y=g.length;u<y;u++)c(n.fromSetString(g[u]),this.sourceContents[g[u]]);},o.prototype.toString=function(){var c="";return this.walk(function(u){c+=u;}),c},o.prototype.toStringWithSourceMap=function(c){var u={code:"",line:1,column:0},y=new e(c),g=false,p=null,a=null,f=null,m=null;return this.walk(function(d,h){u.code+=d,h.source!==null&&h.line!==null&&h.column!==null?((p!==h.source||a!==h.line||f!==h.column||m!==h.name)&&y.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:u.line,column:u.column},name:h.name}),p=h.source,a=h.line,f=h.column,m=h.name,g=true):g&&(y.addMapping({generated:{line:u.line,column:u.column}}),p=null,g=false);for(var S=0,b=d.length;S<b;S++)d.charCodeAt(S)===l?(u.line++,u.column=0,S+1===b?(p=null,g=false):g&&y.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:u.line,column:u.column},name:h.name})):u.column++;}),this.walkSourceContents(function(d,h){y.setSourceContent(d,h);}),{code:u.code,map:y}},t.SourceNode=o;}}),dn=U({"../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.js"(t){t.SourceMapGenerator=ut().SourceMapGenerator,t.SourceMapConsumer=cn().SourceMapConsumer,t.SourceNode=un().SourceNode;}}),fn=Jt(dn()),me=false,W=t=>`
|
|
12
|
+
in ${t}`,pn=/^data:application\/json[^,]+base64,/,mn=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,dt=async(t,e)=>{let n=e.split(`
|
|
13
|
+
`),r;for(let s=n.length-1;s>=0&&!r;s--){let c=n[s].match(mn);c&&(r=c[1]||c[2]);}if(!r)return null;let l=/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r);if(!(pn.test(r)||l||r.startsWith("/"))){let s=t.split("/");s[s.length-1]=r,r=s.join("/");}let o=await(await fetch(r)).json();return new fn.SourceMapConsumer(o)},Fe=async(t,e)=>{let n=tn(t);if(!n.length)return [];let r=n.slice(0,e);return (await Promise.all(r.map(async({file:i,line:o,col:s=0})=>{if(!i||!o)return null;try{let c=await fetch(i);if(c.ok){let u=await c.text(),y=await dt(i,u);if(y){let g=y.originalPositionFor({line:o,column:s});return {fileName:((g&&typeof g.source=="string"?g.source:void 0)||void 0||i).replace(/^file:\/\//,""),lineNumber:g?.line??o,columnNumber:g?.column??s}}}return {fileName:i.replace(/^file:\/\//,""),lineNumber:o,columnNumber:s}}catch{return {fileName:i.replace(/^file:\/\//,""),lineNumber:o,columnNumber:s}}}))).filter(i=>i!==null)},J=(t,e)=>{if(!t||me)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,me=true;let r=ke();Ne(null);let l=console.error,i=console.warn;console.error=()=>{},console.warn=()=>{};try{let c={DetermineComponentFrameRoot(){let p;try{if(e){let a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[]);}catch(f){p=f;}Reflect.construct(t,[],a);}else {try{a.call();}catch(f){p=f;}t.call(a.prototype);}}else {try{throw Error()}catch(f){p=f;}let a=t();a&&typeof a.catch=="function"&&a.catch(()=>{});}}catch(a){if(a&&p&&typeof a.stack=="string")return [a.stack,p.stack]}return [null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[y,g]=c.DetermineComponentFrameRoot();if(y&&g){let p=y.split(`
|
|
14
|
+
`),a=g.split(`
|
|
15
|
+
`),f=0,m=0;for(;f<p.length&&!p[f].includes("DetermineComponentFrameRoot");)f++;for(;m<a.length&&!a[m].includes("DetermineComponentFrameRoot");)m++;if(f===p.length||m===a.length)for(f=p.length-1,m=a.length-1;f>=1&&m>=0&&p[f]!==a[m];)m--;for(;f>=1&&m>=0;f--,m--)if(p[f]!==a[m]){if(f!==1||m!==1)do if(f--,m--,m<0||p[f]!==a[m]){let d=`
|
|
16
|
+
${p[f].replace(" at new "," at ")}`,h=pe(t);return h&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",h)),d}while(f>=1&&m>=0);break}}}finally{me=false,Error.prepareStackTrace=n,Ne(r),console.error=l,console.warn=i;}let o=t?pe(t):"";return o?W(o):""},ke=()=>{let t=B();for(let e of [...Array.from(q),...Array.from(t.renderers.values())]){let n=e.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},Ne=t=>{for(let e of q){let n=e.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=t:n.current=t);}},ft=t=>{let e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=t.stack;if(!n)return "";Error.prepareStackTrace=e,n.startsWith(`Error: react-stack-top-frame
|
|
17
|
+
`)&&(n=n.slice(29));let r=n.indexOf(`
|
|
18
|
+
`);if(r!==-1&&(n=n.slice(r+1)),r=Math.max(n.indexOf("react_stack_bottom_frame"),n.indexOf("react-stack-bottom-frame")),r!==-1&&(r=n.lastIndexOf(`
|
|
19
|
+
`,r)),r!==-1)n=n.slice(0,r);else return "";return n},pt=t=>{let e=t._debugStack;if(e instanceof Error&&typeof e?.stack=="string"){let i=ft(e);if(i)return i}if(!ke())return null;let r=Te(t)?K(Re(t,i=>{if(Le(i))return true},true)?.type):K(t.type);return !r||me?null:J(r,t.tag===Z)},Pe=async t=>{let e=t._debugSource;if(e){let{fileName:n,lineNumber:r}=e;return {fileName:n,lineNumber:r,columnNumber:"columnNumber"in e&&typeof e.columnNumber=="number"?e.columnNumber:0}}try{let n=pt(t);if(n)return (await Fe(n,1))[0]||null}catch{}return null},mt=(t,e)=>{switch(t.tag){case de:case fe:case le:return W(t.type);case Ce:return W("Lazy");case Se:return t.child!==e&&e!==null?W("Suspense Fallback"):W("Suspense");case be:return W("SuspenseList");case ae:case ue:return J(t.type,false);case ce:return J(t.type.render,false);case Z:return J(t.type,true);case we:return W("Activity");case Ee:return W("ViewTransition");default:return ""}},ht=(t,e,n)=>{let r=`
|
|
20
|
+
in ${t}`;return e&&(r+=` (at ${e})`),r},De=t=>{try{let e="",n=t,r=null;do{e+=mt(n,r);let l=n._debugInfo;if(l&&Array.isArray(l))for(let i=l.length-1;i>=0;i--){let o=l[i];typeof o.name=="string"&&(e+=ht(o.name,o.env,o.debugLocation));}r=n,n=n.return;}while(n);return e}catch(e){return e instanceof Error?`
|
|
18
21
|
Error generating stack: ${e.message}
|
|
19
|
-
${e.stack}`:""}},
|
|
20
|
-
|
|
21
|
-
`)};var ae=(t,e,n)=>t+(e-t)*n;var un=({borderRadius:t,height:e,transform:n,width:r,x:c,y:s})=>{let o=document.createElement("div");return o.style.position="fixed",o.style.top=`${s}px`,o.style.left=`${c}px`,o.style.width=`${r}px`,o.style.height=`${e}px`,o.style.borderRadius=t,o.style.transform=n,o.style.pointerEvents="none",o.style.border="1px solid rgb(210, 57, 192)",o.style.backgroundColor="rgba(210, 57, 192, 0.2)",o.style.zIndex="2147483646",o.style.boxSizing="border-box",o.style.display="none",o},dn=(t,{borderRadius:e,height:n,transform:r,width:c,x:s,y:o})=>{let a=parseFloat(t.style.top)||0,u=parseFloat(t.style.left)||0,l=parseFloat(t.style.width)||0,y=parseFloat(t.style.height)||0,g=`${ae(a,o,.95)}px`,p=`${ae(u,s,.95)}px`,i=`${ae(l,c,.95)}px`,f=`${ae(y,n,.95)}px`;t.style.top!==g&&(t.style.top=g),t.style.left!==p&&(t.style.left=p),t.style.width!==i&&(t.style.width=i),t.style.height!==f&&(t.style.height=f),t.style.borderRadius!==e&&(t.style.borderRadius=e),t.style.transform!==r&&(t.style.transform=r);},ft=t=>{let e=un({borderRadius:"0px",height:0,transform:"none",width:0,x:-1e3,y:-1e3});t.appendChild(e);let n=false;return {hide:()=>{n=false,e.style.display="none";},isVisible:()=>n,show:()=>{n=true,e.style.display="block";},update:r=>{dn(e,r);}}},pt=(t,e)=>{let n=document.createElement("div");n.style.position="fixed",n.style.top=`${e.y}px`,n.style.left=`${e.x}px`,n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,n.style.borderRadius=e.borderRadius,n.style.transform=e.transform,n.style.pointerEvents="none",n.style.border="1px solid rgb(210, 57, 192)",n.style.backgroundColor="rgba(210, 57, 192, 0.2)",n.style.zIndex="2147483646",n.style.boxSizing="border-box",n.style.transition="opacity 0.3s ease-out",n.style.opacity="1",t.appendChild(n),requestAnimationFrame(()=>{n.style.opacity="0";}),setTimeout(()=>{n.remove();},300);},fn=()=>{let t=document.createElement("span");return t.style.display="inline-block",t.style.width="8px",t.style.height="8px",t.style.border="1.5px solid rgb(210, 57, 192)",t.style.borderTopColor="transparent",t.style.borderRadius="50%",t.style.marginRight="4px",t.style.verticalAlign="middle",t.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:600,easing:"linear",iterations:1/0}),t},J=null,mt=()=>{let t=document.createElement("div");return t.style.position="fixed",t.style.top="calc(8px + env(safe-area-inset-top))",t.style.padding="2px 6px",t.style.backgroundColor="#fde7f7",t.style.color="#b21c8e",t.style.border="1px solid #f7c5ec",t.style.borderRadius="4px",t.style.fontSize="11px",t.style.fontWeight="500",t.style.fontFamily="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",t.style.zIndex="2147483647",t.style.pointerEvents="none",t.style.opacity="0",t.style.transition="opacity 0.2s ease-in-out",t.style.display="flex",t.style.alignItems="center",t.style.maxWidth="calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)))",t.style.overflow="hidden",t.style.textOverflow="ellipsis",t.style.whiteSpace="nowrap",t},ht=(t,e,n,r)=>{let c=J,s=false;if(c||(c=mt(),t.appendChild(c),J=c,s=true,xe=false),!xe){let b=c.querySelector("span");if(b){let E=document.createElement("span");E.textContent=r?`<${r}>`:"<element>",E.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",E.style.fontVariantNumeric="tabular-nums",b.replaceChildren(E);}else {let E=document.createElement("span"),T=document.createElement("span");T.textContent=r?`<${r}>`:"<element>",T.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",T.style.fontVariantNumeric="tabular-nums",E.appendChild(T),c.appendChild(E);}}let o=c.getBoundingClientRect(),a=window.innerWidth,u=window.innerHeight,l=Math.round(e),y=Math.round(n)-o.height-6,g=4,p=8,i=8,f=a-o.width-8,m=u-o.height-8,d=l<p,h=y<i,S=d||h;l=Math.max(p,Math.min(l,f)),y=Math.max(i,Math.min(y,m)),S&&(l+=g,y+=g),c.style.left=`${l}px`,c.style.top=`${y}px`,c.style.right="auto",s?requestAnimationFrame(()=>{c.style.opacity="1";}):c.style.opacity!=="1"&&(c.style.opacity="1");},xe=false,le=new Set,gt=(t,e,n)=>{let r=mt();r.style.zIndex="2147483648",t.appendChild(r),le.add(r);let c=()=>{if(e===void 0||n===void 0)return;let a=r.getBoundingClientRect(),u=window.innerWidth,l=window.innerHeight,y=Math.round(e),g=Math.round(n)-a.height-6,p=4,i=8,f=8,m=u-a.width-8,d=l-a.height-8,h=y<i,S=g<f,b=h||S;y=Math.max(i,Math.min(y,m)),g=Math.max(f,Math.min(g,d)),b&&(y+=p,g+=p),r.style.left=`${y}px`,r.style.top=`${g}px`,r.style.right="auto";},s=fn(),o=document.createElement("span");return o.textContent="Grabbing\u2026",r.appendChild(s),r.appendChild(o),c(),requestAnimationFrame(()=>{r.style.opacity="1";}),a=>{r.textContent="";let u=document.createElement("span");u.textContent="\u2713",u.style.display="inline-block",u.style.marginRight="4px",u.style.fontWeight="600";let l=document.createElement("span"),y=document.createElement("span");y.textContent=a?`<${a}>`:"<element>",y.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",y.style.fontVariantNumeric="tabular-nums",l.appendChild(document.createTextNode("Grabbed ")),l.appendChild(y),r.appendChild(u),r.appendChild(l),requestAnimationFrame(()=>{c();}),setTimeout(()=>{r.style.opacity="0",setTimeout(()=>{r.remove(),le.delete(r);},200);},1500);}},K=()=>{J&&(J.remove(),J=null),xe=false;},Ie=()=>{for(let t of le)t.remove();le.clear();},U=null,pn=()=>{let t=document.createElement("div");t.style.position="fixed",t.style.zIndex="2147483647",t.style.pointerEvents="none",t.style.opacity="0",t.style.transition="opacity 0.1s ease-in-out";let e=document.createElement("div");e.style.width="32px",e.style.height="2px",e.style.backgroundColor="rgba(178, 28, 142, 0.2)",e.style.borderRadius="1px",e.style.overflow="hidden",e.style.position="relative";let n=document.createElement("div");return n.style.width="0%",n.style.height="100%",n.style.backgroundColor="#b21c8e",n.style.borderRadius="1px",n.style.transition="width 0.05s linear",n.setAttribute("data-progress-fill","true"),e.appendChild(n),t.appendChild(e),t},Fe=(t,e,n,r)=>{U||(U=pn(),t.appendChild(U),requestAnimationFrame(()=>{U&&(U.style.opacity="1");}));let c=U,s=c.getBoundingClientRect(),o=window.innerWidth,a=window.innerHeight,u=14,l=8,y=n-s.width/2,g=r+u;g+s.height+l>a&&(g=r-s.height-u),g=Math.max(l,Math.min(g,a-s.height-l)),y=Math.max(l,Math.min(y,o-s.width-l)),c.style.top=`${g}px`,c.style.left=`${y}px`;let p=c.querySelector("[data-progress-fill]");if(p){let i=Math.min(100,Math.max(0,e*100));p.style.width=`${i}%`;}},yt=()=>{U&&(U.style.opacity="0",setTimeout(()=>{U&&(U.remove(),U=null);},100));};var mn=typeof window<"u"&&window.navigator.clipboard&&window.isSecureContext,Ne=async t=>{if(mn)try{return await navigator.clipboard.writeText(t),!0}catch{}let e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="fixed",e.style.top="-9999px",e.style.opacity="0",e.style.pointerEvents="none";let n=document.body||document.documentElement;n.appendChild(e),e.select(),e.setSelectionRange(0,e.value.length);let r=false;try{r=document.execCommand("copy");}catch{r=false;}finally{n.removeChild(e);}return r};var vt=(t,e=window.getComputedStyle(t))=>e.display!=="none"&&e.visibility!=="hidden"&&e.opacity!=="0";var X="data-react-grab",_t=()=>{let t=document.querySelector(`[${X}]`);if(t){let s=t.shadowRoot?.querySelector(`[${X}]`);if(s instanceof HTMLDivElement&&t.shadowRoot)return s}let e=document.createElement("div");e.setAttribute(X,"true"),e.style.zIndex="2147483646",e.style.position="fixed",e.style.top="0",e.style.left="0";let n=e.attachShadow({mode:"open"}),r=document.createElement("div");return r.setAttribute(X,"true"),n.appendChild(r),(document.body??document.documentElement).appendChild(e),r};var St=t=>{let e=new Map,n=0,r,c=g=>{let p=r,i=typeof g=="function"?g(p):g,f={...p,...i};r=f;for(let m of e.values())if(m.type==="selected"){let d=m.selector(f),h=m.prevSelectedValue;Object.is(h,d)||(m.prevSelectedValue=d,m.listener(d,h));}else m.listener(f,p);return r},s=()=>r,o=t(c,s);r=o;let a=(g,p)=>{let i=String(n++),m={listener:(d,h)=>g(d,h),prevSelectedValue:p(r),selector:p,type:"selected"};return e.set(i,m),()=>{e.delete(i);}},u=g=>{let p=String(n++),i={listener:g,type:"full"};return e.set(p,i),()=>{e.delete(p);}};function l(g,p){return p?a(g,p):u(g)}return {getInitialState(){return o},getState:s,setState:c,subscribe:l}};var I=St(()=>({keyPressTimestamps:new Map,mouseX:-1e3,mouseY:-1e3,overlayMode:"hidden",pressedKeys:new Set})),hn=(t={})=>{if(t.enabled===false)return;let e={adapter:void 0,enabled:true,hotkey:["Meta","C"],keyHoldDuration:500,...t},n=_t(),r=ft(n),c=null,s=null,o=false,a=null,u=null,l=()=>{if(Array.isArray(e.hotkey)){for(let M of e.hotkey)if(!ue(M))return false;return true}return ue(e.hotkey)},y=()=>{if(u===null)return;let M=Date.now()-u,N=Math.min(1,M/e.keyHoldDuration),{mouseX:j,mouseY:F}=I.getState();Fe(n,N,j,F),N<1&&(a=requestAnimationFrame(y));},g=()=>{if(a!==null)return;u=Date.now();let{mouseX:M,mouseY:N}=I.getState();Fe(n,0,M,N),a=requestAnimationFrame(y);},p=()=>{a!==null&&(cancelAnimationFrame(a),a=null),u=null,yt();},i=null,f=M=>{let{overlayMode:N}=I.getState();if(M.has("Escape")||M.has("Esc")){I.setState(F=>{let x=new Set(F.pressedKeys);x.delete("Escape"),x.delete("Esc");let $=new Map(F.keyPressTimestamps);$.delete("Escape"),$.delete("Esc");let B=Array.isArray(e.hotkey)?e.hotkey:[e.hotkey];for(let H of B)H.length===1?(x.delete(H.toLowerCase()),x.delete(H.toUpperCase()),$.delete(H.toLowerCase()),$.delete(H.toUpperCase())):(x.delete(H),$.delete(H));return {...F,keyPressTimestamps:$,overlayMode:"hidden",pressedKeys:x}}),i&&(i(),i=null),p();return}if(!l()){i&&(i(),i=null),N!=="hidden"&&I.setState(F=>({...F,overlayMode:"hidden"})),p();return}N==="hidden"&&!i&&(g(),i=De(e.hotkey,e.keyHoldDuration,()=>{I.setState(F=>({...F,overlayMode:"visible"})),p(),i=null;}));},m=I.subscribe(f,M=>M.pressedKeys),d=false,h=-1e3,S=-1e3,b=M=>{h=M.clientX,S=M.clientY,!d&&(d=true,requestAnimationFrame(()=>{d=false,I.setState(N=>({...N,mouseX:h,mouseY:S}));}));},E=M=>{if(M.button!==0)return;let{overlayMode:N}=I.getState();N!=="hidden"&&(M.preventDefault(),M.stopPropagation(),M.stopImmediatePropagation(),I.setState(j=>({...j,overlayMode:"copying"})));},T=()=>{document.hidden&&(Ie(),K());},L=false,R=()=>{L||(L=true,requestAnimationFrame(()=>{L=false,O();}));},v=false,_=()=>{v||(v=true,requestAnimationFrame(()=>{v=false,O();}));};window.addEventListener("mousemove",b),window.addEventListener("mousedown",E),window.addEventListener("scroll",R,true),window.addEventListener("resize",_),document.addEventListener("visibilitychange",T);let w=Pe(),C=(M,N)=>{let j=document.elementsFromPoint(M,N);for(let F of j){if(F.closest(`[${X}]`))continue;let x=window.getComputedStyle(F);if(vt(F,x))return F}return null},P=async M=>{let N=(M.tagName||"").toLowerCase(),j=M.getBoundingClientRect(),F=gt(n,j.left,j.top);try{let x=dt(M);await Ne(`
|
|
22
|
+
${e.stack}`:""}},gt=t=>t.length?t[0]===t[0].toUpperCase():false,He=async t=>{let e=/\n\s+(?:in|at)\s+([^\s(]+)(?:\s+\((?:at\s+)?([^)]+)\))?/g,n=[],r;for(r=e.exec(t);r!==null;){let l=r[1],i=r[2];if(!gt(l)){r=e.exec(t),n.push({name:l,source:void 0});continue}let o;if(i&&i!=="Server")try{let s=` at ${l} (${i})`,c=await Fe(s,1);c.length>0&&(o=c[0]);}catch{}n.push({name:l,source:o||void 0}),r=e.exec(t);}return n};var hn=Ie;Oe({onCommitFiberRoot(t,e){hn.add(e);}});var yt=t=>{if(!t)return t;let e=t.split("/");for(let n=0;n<e.length/2;n++)for(let r=1;r<=e.length-n;r++){let l=e.slice(n,n+r),i=n+r,o=e.slice(i,i+r);if(l.length>2&&l.length===o.length&&l.every((s,c)=>s===o[c]))return e.slice(i).join("/")}return t},vt=async t=>{let e=xe(t);if(!e)return null;let n=De(e),l=(await He(n)).map(i=>({componentName:i.name,fileName:yt(i.source?.fileName)}));if(l.length>0&&e){let i=await Pe(e);if(i){let o=e.type,s=o?.displayName??o?.name??l[0].componentName;l[0].displayName=s;let c=yt(i.fileName);l[0].source=`${c}:${i.lineNumber}:${i.columnNumber}`;}}return l},_t=t=>t.filter(e=>e.fileName&&!e.fileName.includes("node_modules")&&e.componentName.length>1&&!e.fileName.startsWith("_")),St=t=>t.map((e,n)=>{let r=e.fileName,i=`${e.displayName||e.componentName}${r?` (${r})`:""}`;return n===0&&e.source&&(i+=`
|
|
23
|
+
${e.source}`),i}).join(`
|
|
24
|
+
`),Ct=t=>{let e=new Set(["article","aside","footer","form","header","main","nav","section"]),n=d=>{let h=d.tagName.toLowerCase();if(e.has(h)||d.id)return true;if(d.className&&typeof d.className=="string"){let S=d.className.trim();if(S&&S.length>0)return true}return Array.from(d.attributes).some(S=>S.name.startsWith("data-"))},r=(d,h=10)=>{let S=[],b=d.parentElement,E=0;for(;b&&E<h&&b.tagName!=="BODY"&&!(n(b)&&(S.push(b),S.length>=3));)b=b.parentElement,E++;return S.reverse()},l=d=>{let h=[],S=d,b=0,E=5;for(;S&&b<E&&S.tagName!=="BODY";){let T=S.tagName.toLowerCase();if(S.id){T+=`#${S.id}`,h.unshift(T);break}else if(S.className&&typeof S.className=="string"&&S.className.trim()){let L=S.className.trim().split(/\s+/).slice(0,2);T+=`.${L.join(".")}`;}if(!S.id&&(!S.className||!S.className.trim())&&S.parentElement){let L=Array.from(S.parentElement.children),R=L.indexOf(S);R>=0&&L.length>1&&(T+=`:nth-child(${R+1})`);}h.unshift(T),S=S.parentElement,b++;}return h.join(" > ")},i=(d,h=false)=>{let S=d.tagName.toLowerCase(),b=[];if(d.id&&b.push(`id="${d.id}"`),d.className&&typeof d.className=="string"){let R=d.className.trim().split(/\s+/);if(R.length>0&&R[0]){let _=(h?R.slice(0,3):R).join(" ");_.length>30&&(_=_.substring(0,30)+"..."),b.push(`class="${_}"`);}}let E=Array.from(d.attributes).filter(R=>R.name.startsWith("data-")),T=h?E.slice(0,1):E;for(let R of T){let v=R.value;v.length>20&&(v=v.substring(0,20)+"..."),b.push(`${R.name}="${v}"`);}let L=d.getAttribute("aria-label");if(L&&!h){let R=L;R.length>20&&(R=R.substring(0,20)+"..."),b.push(`aria-label="${R}"`);}return b.length>0?`<${S} ${b.join(" ")}>`:`<${S}>`},o=d=>`</${d.tagName.toLowerCase()}>`,s=d=>{let h=d.textContent||"";h=h.trim().replace(/\s+/g," ");let S=60;return h.length>S&&(h=h.substring(0,S)+"..."),h},c=d=>{if(d.id)return `#${d.id}`;if(d.className&&typeof d.className=="string"){let h=d.className.trim().split(/\s+/);if(h.length>0&&h[0])return `.${h[0]}`}return null},u=[];u.push(`Path: ${l(t)}`),u.push("");let y=r(t);for(let d=0;d<y.length;d++){let h=" ".repeat(d);u.push(h+i(y[d],true));}let g=t.parentElement,p=-1;if(g){let d=Array.from(g.children);if(p=d.indexOf(t),p>0){let h=d[p-1];if(c(h)&&p<=2){let b=" ".repeat(y.length);u.push(`${b} ${i(h,true)}`),u.push(`${b} </${h.tagName.toLowerCase()}>`);}else if(p>0){let b=" ".repeat(y.length);u.push(`${b} ... (${p} element${p===1?"":"s"})`);}}}let a=" ".repeat(y.length);u.push(a+" <!-- SELECTED -->");let f=s(t),m=t.children.length;if(f&&m===0&&f.length<40?u.push(`${a} ${i(t)}${f}${o(t)}`):(u.push(a+" "+i(t)),f&&u.push(`${a} ${f}`),m>0&&u.push(`${a} ... (${m} element${m===1?"":"s"})`),u.push(a+" "+o(t))),g&&p>=0){let d=Array.from(g.children),h=d.length-p-1;if(h>0){let S=d[p+1];c(S)&&h<=2?(u.push(`${a} ${i(S,true)}`),u.push(`${a} </${S.tagName.toLowerCase()}>`)):u.push(`${a} ... (${h} element${h===1?"":"s"})`);}}for(let d=y.length-1;d>=0;d--){let h=" ".repeat(d);u.push(h+o(y[d]));}return u.join(`
|
|
25
|
+
`)};var he=(t,e,n)=>t+(e-t)*n;var gn=({borderRadius:t,height:e,transform:n,width:r,x:l,y:i})=>{let o=document.createElement("div");return o.style.position="fixed",o.style.top=`${i}px`,o.style.left=`${l}px`,o.style.width=`${r}px`,o.style.height=`${e}px`,o.style.borderRadius=t,o.style.transform=n,o.style.pointerEvents="none",o.style.border="1px solid rgb(210, 57, 192)",o.style.backgroundColor="rgba(210, 57, 192, 0.2)",o.style.zIndex="2147483646",o.style.boxSizing="border-box",o.style.display="none",o},yn=(t,{borderRadius:e,height:n,transform:r,width:l,x:i,y:o})=>{let s=parseFloat(t.style.top)||0,c=parseFloat(t.style.left)||0,u=parseFloat(t.style.width)||0,y=parseFloat(t.style.height)||0,g=`${he(s,o,.95)}px`,p=`${he(c,i,.95)}px`,a=`${he(u,l,.95)}px`,f=`${he(y,n,.95)}px`;t.style.top!==g&&(t.style.top=g),t.style.left!==p&&(t.style.left=p),t.style.width!==a&&(t.style.width=a),t.style.height!==f&&(t.style.height=f),t.style.borderRadius!==e&&(t.style.borderRadius=e),t.style.transform!==r&&(t.style.transform=r);},bt=t=>{let e=gn({borderRadius:"0px",height:0,transform:"none",width:0,x:-1e3,y:-1e3});t.appendChild(e);let n=false;return {hide:()=>{n=false,e.style.display="none";},isVisible:()=>n,show:()=>{n=true,e.style.display="block";},update:r=>{yn(e,r);}}},wt=(t,e)=>{let n=document.createElement("div");n.style.position="fixed",n.style.top=`${e.y}px`,n.style.left=`${e.x}px`,n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,n.style.borderRadius=e.borderRadius,n.style.transform=e.transform,n.style.pointerEvents="none",n.style.border="1px solid rgb(210, 57, 192)",n.style.backgroundColor="rgba(210, 57, 192, 0.2)",n.style.zIndex="2147483646",n.style.boxSizing="border-box",n.style.transition="opacity 0.3s ease-out",n.style.opacity="1",t.appendChild(n),requestAnimationFrame(()=>{n.style.opacity="0";}),setTimeout(()=>{n.remove();},300);},vn=()=>{let t=document.createElement("span");return t.style.display="inline-block",t.style.width="8px",t.style.height="8px",t.style.border="1.5px solid rgb(210, 57, 192)",t.style.borderTopColor="transparent",t.style.borderRadius="50%",t.style.marginRight="4px",t.style.verticalAlign="middle",t.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:600,easing:"linear",iterations:1/0}),t},te=null,Et=()=>{let t=document.createElement("div");return t.style.position="fixed",t.style.top="calc(8px + env(safe-area-inset-top))",t.style.padding="2px 6px",t.style.backgroundColor="#fde7f7",t.style.color="#b21c8e",t.style.border="1px solid #f7c5ec",t.style.borderRadius="4px",t.style.fontSize="11px",t.style.fontWeight="500",t.style.fontFamily="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",t.style.zIndex="2147483647",t.style.pointerEvents="none",t.style.opacity="0",t.style.transition="opacity 0.2s ease-in-out",t.style.display="flex",t.style.alignItems="center",t.style.maxWidth="calc(100vw - (16px + env(safe-area-inset-left) + env(safe-area-inset-right)))",t.style.overflow="hidden",t.style.textOverflow="ellipsis",t.style.whiteSpace="nowrap",t},Tt=(t,e,n,r)=>{let l=te,i=false;if(l||(l=Et(),t.appendChild(l),te=l,i=true,je=false),!je){let b=l.querySelector("span");if(b){let E=document.createElement("span");E.textContent=r?`<${r}>`:"<element>",E.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",E.style.fontVariantNumeric="tabular-nums",b.replaceChildren(E);}else {let E=document.createElement("span"),T=document.createElement("span");T.textContent=r?`<${r}>`:"<element>",T.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",T.style.fontVariantNumeric="tabular-nums",E.appendChild(T),l.appendChild(E);}}let o=l.getBoundingClientRect(),s=window.innerWidth,c=window.innerHeight,u=Math.round(e),y=Math.round(n)-o.height-6,g=4,p=8,a=8,f=s-o.width-8,m=c-o.height-8,d=u<p,h=y<a,S=d||h;u=Math.max(p,Math.min(u,f)),y=Math.max(a,Math.min(y,m)),S&&(u+=g,y+=g),l.style.left=`${u}px`,l.style.top=`${y}px`,l.style.right="auto",i?requestAnimationFrame(()=>{l.style.opacity="1";}):l.style.opacity!=="1"&&(l.style.opacity="1");},je=false,ge=new Set,Lt=(t,e,n)=>{let r=Et();r.style.zIndex="2147483648",t.appendChild(r),ge.add(r);let l=()=>{if(e===void 0||n===void 0)return;let s=r.getBoundingClientRect(),c=window.innerWidth,u=window.innerHeight,y=Math.round(e),g=Math.round(n)-s.height-6,p=4,a=8,f=8,m=c-s.width-8,d=u-s.height-8,h=y<a,S=g<f,b=h||S;y=Math.max(a,Math.min(y,m)),g=Math.max(f,Math.min(g,d)),b&&(y+=p,g+=p),r.style.left=`${y}px`,r.style.top=`${g}px`,r.style.right="auto";},i=vn(),o=document.createElement("span");return o.textContent="Grabbing\u2026",r.appendChild(i),r.appendChild(o),l(),requestAnimationFrame(()=>{r.style.opacity="1";}),s=>{r.textContent="";let c=document.createElement("span");c.textContent="\u2713",c.style.display="inline-block",c.style.marginRight="4px",c.style.fontWeight="600";let u=document.createElement("span"),y=document.createElement("span");y.textContent=s?`<${s}>`:"<element>",y.style.fontFamily="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",y.style.fontVariantNumeric="tabular-nums",u.appendChild(document.createTextNode("Grabbed ")),u.appendChild(y),r.appendChild(c),r.appendChild(u),requestAnimationFrame(()=>{l();}),setTimeout(()=>{r.style.opacity="0",setTimeout(()=>{r.remove(),ge.delete(r);},200);},1500);}},X=()=>{te&&(te.remove(),te=null),je=false;},$e=()=>{for(let t of ge)t.remove();ge.clear();},V=null,_n=()=>{let t=document.createElement("div");t.style.position="fixed",t.style.zIndex="2147483647",t.style.pointerEvents="none",t.style.opacity="0",t.style.transition="opacity 0.1s ease-in-out";let e=document.createElement("div");e.style.width="32px",e.style.height="2px",e.style.backgroundColor="rgba(178, 28, 142, 0.2)",e.style.borderRadius="1px",e.style.overflow="hidden",e.style.position="relative";let n=document.createElement("div");return n.style.width="0%",n.style.height="100%",n.style.backgroundColor="#b21c8e",n.style.borderRadius="1px",n.style.transition="width 0.05s linear",n.setAttribute("data-progress-fill","true"),e.appendChild(n),t.appendChild(e),t},Ge=(t,e,n,r)=>{V||(V=_n(),t.appendChild(V),requestAnimationFrame(()=>{V&&(V.style.opacity="1");}));let l=V,i=l.getBoundingClientRect(),o=window.innerWidth,s=window.innerHeight,c=14,u=8,y=n-i.width/2,g=r+c;g+i.height+u>s&&(g=r-i.height-c),g=Math.max(u,Math.min(g,s-i.height-u)),y=Math.max(u,Math.min(y,o-i.width-u)),l.style.top=`${g}px`,l.style.left=`${y}px`;let p=l.querySelector("[data-progress-fill]");if(p){let a=Math.min(100,Math.max(0,e*100));p.style.width=`${a}%`;}},Rt=()=>{V&&(V.style.opacity="0",setTimeout(()=>{V&&(V.remove(),V=null);},100));};var Sn=typeof window<"u"&&window.navigator.clipboard&&window.isSecureContext,Ue=async t=>{if(Sn)try{return await navigator.clipboard.writeText(t),!0}catch{}let e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="fixed",e.style.top="-9999px",e.style.opacity="0",e.style.pointerEvents="none";let n=document.body||document.documentElement;n.appendChild(e),e.select(),e.setSelectionRange(0,e.value.length);let r=false;try{r=document.execCommand("copy");}catch{r=false;}finally{n.removeChild(e);}return r};var Mt=(t,e=window.getComputedStyle(t))=>e.display!=="none"&&e.visibility!=="hidden"&&e.opacity!=="0";var Y="data-react-grab",At=()=>{let t=document.querySelector(`[${Y}]`);if(t){let i=t.shadowRoot?.querySelector(`[${Y}]`);if(i instanceof HTMLDivElement&&t.shadowRoot)return i}let e=document.createElement("div");e.setAttribute(Y,"true"),e.style.zIndex="2147483646",e.style.position="fixed",e.style.top="0",e.style.left="0";let n=e.attachShadow({mode:"open"}),r=document.createElement("div");return r.setAttribute(Y,"true"),n.appendChild(r),(document.body??document.documentElement).appendChild(e),r};var Ot=t=>{let e=new Map,n=0,r,l=g=>{let p=r,a=typeof g=="function"?g(p):g,f={...p,...a};r=f;for(let m of e.values())if(m.type==="selected"){let d=m.selector(f),h=m.prevSelectedValue;Object.is(h,d)||(m.prevSelectedValue=d,m.listener(d,h));}else m.listener(f,p);return r},i=()=>r,o=t(l,i);r=o;let s=(g,p)=>{let a=String(n++),m={listener:(d,h)=>g(d,h),prevSelectedValue:p(r),selector:p,type:"selected"};return e.set(a,m),()=>{e.delete(a);}},c=g=>{let p=String(n++),a={listener:g,type:"full"};return e.set(p,a),()=>{e.delete(p);}};function u(g,p){return p?s(g,p):c(g)}return {getInitialState(){return o},getState:i,setState:l,subscribe:u}};var I=Ot(()=>({keyPressTimestamps:new Map,mouseX:-1e3,mouseY:-1e3,overlayMode:"hidden",pressedKeys:new Set})),Cn=(t={})=>{if(t.enabled===false)return;let e={adapter:void 0,enabled:true,hotkey:["Meta","C"],keyHoldDuration:500,...t},n=At(),r=bt(n),l=null,i=null,o=false,s=null,c=null,u=()=>{if(Array.isArray(e.hotkey)){for(let M of e.hotkey)if(!ve(M))return false;return true}return ve(e.hotkey)},y=()=>{if(c===null)return;let M=Date.now()-c,F=Math.min(1,M/e.keyHoldDuration),{mouseX:j,mouseY:N}=I.getState();Ge(n,F,j,N),F<1&&(s=requestAnimationFrame(y));},g=()=>{if(s!==null)return;c=Date.now();let{mouseX:M,mouseY:F}=I.getState();Ge(n,0,M,F),s=requestAnimationFrame(y);},p=()=>{s!==null&&(cancelAnimationFrame(s),s=null),c=null,Rt();},a=null,f=M=>{let{overlayMode:F}=I.getState();if(M.has("Escape")||M.has("Esc")){I.setState(N=>{let x=new Set(N.pressedKeys);x.delete("Escape"),x.delete("Esc");let $=new Map(N.keyPressTimestamps);$.delete("Escape"),$.delete("Esc");let G=Array.isArray(e.hotkey)?e.hotkey:[e.hotkey];for(let H of G)H.length===1?(x.delete(H.toLowerCase()),x.delete(H.toUpperCase()),$.delete(H.toLowerCase()),$.delete(H.toUpperCase())):(x.delete(H),$.delete(H));return {...N,keyPressTimestamps:$,overlayMode:"hidden",pressedKeys:x}}),a&&(a(),a=null),p();return}if(!u()){a&&(a(),a=null),F!=="hidden"&&I.setState(N=>({...N,overlayMode:"hidden"})),p();return}F==="hidden"&&!a&&(g(),a=Be(e.hotkey,e.keyHoldDuration,()=>{I.setState(N=>({...N,overlayMode:"visible"})),p(),a=null;}));},m=I.subscribe(f,M=>M.pressedKeys),d=false,h=-1e3,S=-1e3,b=M=>{h=M.clientX,S=M.clientY,!d&&(d=true,requestAnimationFrame(()=>{d=false,I.setState(F=>({...F,mouseX:h,mouseY:S}));}));},E=M=>{if(M.button!==0)return;let{overlayMode:F}=I.getState();F!=="hidden"&&(M.preventDefault(),M.stopPropagation(),M.stopImmediatePropagation(),I.setState(j=>({...j,overlayMode:"copying"})));},T=()=>{document.hidden&&($e(),X());},L=false,R=()=>{L||(L=true,requestAnimationFrame(()=>{L=false,O();}));},v=false,_=()=>{v||(v=true,requestAnimationFrame(()=>{v=false,O();}));};window.addEventListener("mousemove",b),window.addEventListener("mousedown",E),window.addEventListener("scroll",R,true),window.addEventListener("resize",_),document.addEventListener("visibilitychange",T);let w=ze(),C=(M,F)=>{let j=document.elementsFromPoint(M,F);for(let N of j){if(N.closest(`[${Y}]`))continue;let x=window.getComputedStyle(N);if(Mt(N,x))return N}return null},P=async M=>{let F=(M.tagName||"").toLowerCase(),j=M.getBoundingClientRect(),N=Lt(n,j.left,j.top);try{let x=Ct(M);await Ue(`
|
|
22
26
|
|
|
23
27
|
<referenced_element>
|
|
24
28
|
${x}
|
|
25
|
-
</referenced_element>`)
|
|
29
|
+
</referenced_element>`);let $=await vt(M);if($){let G=_t($);if(G.length>0){let H=St(G),ne=`${x}
|
|
26
30
|
|
|
27
31
|
Component owner stack:
|
|
28
|
-
${H}`;await
|
|
32
|
+
${H}`;await Ue(`
|
|
29
33
|
|
|
30
34
|
<referenced_element>
|
|
31
|
-
${
|
|
32
|
-
</referenced_element>`).catch(()=>{}),e.adapter&&e.adapter.open(
|
|
35
|
+
${ne}
|
|
36
|
+
</referenced_element>`).catch(()=>{}),e.adapter&&e.adapter.open(ne);}else e.adapter&&e.adapter.open(x);}else e.adapter&&e.adapter.open(x);N(F);}catch{N(F);}},A=M=>{let{mouseX:F,mouseY:j,overlayMode:N}=M;if(N==="hidden"){r.isVisible()&&r.hide(),o||X(),l=null,i=null;return}if(N==="copying"&&l){if(!o){o=true,i=l;let Ve=window.getComputedStyle(l),re=l.getBoundingClientRect();wt(n,{borderRadius:Ve.borderRadius||"0px",height:re.height,transform:Ve.transform||"none",width:re.width,x:re.left,y:re.top}),P(l).finally(()=>{o=false;});let It=u();I.setState(Nt=>({...Nt,overlayMode:It?"visible":"hidden"}));}return}let x=C(F,j);if(!x){r.isVisible()&&r.hide(),o||X(),l=null;return}if(i&&x!==i&&(i=null),x===i){r.isVisible()&&r.hide(),o||X(),l=x;return}let $=(x.tagName||"").toLowerCase();l=x;let G=x.getBoundingClientRect(),H=window.getComputedStyle(x),ne=H.borderRadius||"0px",xt=H.transform||"none";r.update({borderRadius:ne,height:G.height,transform:xt,width:G.width,x:G.left,y:G.top}),r.isVisible()||r.show(),Tt(n,G.left,G.top,$);},k=false,O=()=>{k||(k=true,requestAnimationFrame(()=>{k=false,A(I.getState());}));},z=I.subscribe(()=>{O();}),D=()=>{O(),requestAnimationFrame(D);};return D(),()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mousedown",E),window.removeEventListener("scroll",R,true),window.removeEventListener("resize",_),document.removeEventListener("visibilitychange",T),w(),z(),m(),a&&a(),p(),$e(),X();}};if(typeof window<"u"&&typeof document<"u"){let t=document.currentScript,e={};if(t?.dataset){let{adapter:n,enabled:r,hotkey:l,keyHoldDuration:i}=t.dataset;if(n!==void 0&&n==="cursor"&&(e.adapter=ye),r!==void 0&&(e.enabled=r==="true"),l!==void 0){let o=l.split(",").map(s=>s.trim());e.hotkey=o.length===1?o[0]:o;}if(i!==void 0){let o=Number(i);Number.isNaN(o)||(e.keyHoldDuration=o);}}Cn(e);}/*! Bundled license information:
|
|
33
37
|
|
|
34
|
-
bippy/dist/src-
|
|
38
|
+
bippy/dist/src-De8xuJ2u.js:
|
|
35
39
|
(**
|
|
36
40
|
* @license bippy
|
|
37
41
|
*
|
|
@@ -51,7 +55,7 @@ bippy/dist/index.js:
|
|
|
51
55
|
* LICENSE file in the root directory of this source tree.
|
|
52
56
|
*)
|
|
53
57
|
|
|
54
|
-
bippy/dist/source-
|
|
58
|
+
bippy/dist/source-CBCTB51B.js:
|
|
55
59
|
(**
|
|
56
60
|
* @license bippy
|
|
57
61
|
*
|
|
@@ -70,4 +74,4 @@ bippy/dist/source.js:
|
|
|
70
74
|
* This source code is licensed under the MIT license found in the
|
|
71
75
|
* LICENSE file in the root directory of this source tree.
|
|
72
76
|
*)
|
|
73
|
-
*/exports.cursorAdapter=
|
|
77
|
+
*/exports.cursorAdapter=ye;exports.init=Cn;exports.libStore=I;return exports;})({});
|
package/package.json
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-grab",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"grab",
|
|
8
|
+
"cursor",
|
|
9
|
+
"claude",
|
|
10
|
+
"code",
|
|
11
|
+
"context",
|
|
12
|
+
"changes",
|
|
13
|
+
"modifications",
|
|
14
|
+
"modification"
|
|
15
|
+
],
|
|
6
16
|
"homepage": "https://github.com/aidenybai/react-grab#readme",
|
|
7
17
|
"bugs": {
|
|
8
18
|
"url": "https://github.com/aidenybai/react-grab/issues"
|
|
@@ -67,7 +77,7 @@
|
|
|
67
77
|
"access": "public"
|
|
68
78
|
},
|
|
69
79
|
"dependencies": {
|
|
70
|
-
"bippy": "^0.3.
|
|
80
|
+
"bippy": "^0.3.32"
|
|
71
81
|
},
|
|
72
82
|
"scripts": {
|
|
73
83
|
"build": "NODE_ENV=production tsup",
|