react-grab 0.0.59 → 0.0.61
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/README.md +51 -4
- package/dist/{chunk-XODHRTU2.cjs → chunk-2EGDLG6B.cjs} +586 -732
- package/dist/{chunk-KM7JGKVG.js → chunk-BPIV2CRB.js} +586 -732
- package/dist/{core-DZ65ta1h.d.cts → core-Dpg0VXHq.d.cts} +12 -8
- package/dist/{core-DZ65ta1h.d.ts → core-Dpg0VXHq.d.ts} +12 -8
- package/dist/core.cjs +8 -8
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +31 -41
- package/dist/index.js +2 -2
- package/dist/styles.css +1 -1
- package/package.json +2 -2
|
@@ -85,8 +85,8 @@ function createMemo(fn, value, options) {
|
|
|
85
85
|
updateComputation(c3);
|
|
86
86
|
return readSignal.bind(c3);
|
|
87
87
|
}
|
|
88
|
-
function isPromise(
|
|
89
|
-
return
|
|
88
|
+
function isPromise(v3) {
|
|
89
|
+
return v3 && typeof v3 === "object" && "then" in v3;
|
|
90
90
|
}
|
|
91
91
|
function createResource(pSource, pFetcher, pOptions) {
|
|
92
92
|
let source;
|
|
@@ -105,21 +105,21 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
105
105
|
const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(void 0), [track, trigger] = createSignal(void 0, {
|
|
106
106
|
equals: false
|
|
107
107
|
}), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
|
|
108
|
-
function loadEnd(p3,
|
|
108
|
+
function loadEnd(p3, v3, error2, key) {
|
|
109
109
|
if (pr === p3) {
|
|
110
110
|
pr = null;
|
|
111
111
|
key !== void 0 && (resolved = true);
|
|
112
|
-
if ((p3 === initP ||
|
|
113
|
-
value:
|
|
112
|
+
if ((p3 === initP || v3 === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
|
|
113
|
+
value: v3
|
|
114
114
|
}));
|
|
115
115
|
initP = NO_INIT;
|
|
116
|
-
completeLoad(
|
|
116
|
+
completeLoad(v3, error2);
|
|
117
117
|
}
|
|
118
|
-
return
|
|
118
|
+
return v3;
|
|
119
119
|
}
|
|
120
|
-
function completeLoad(
|
|
120
|
+
function completeLoad(v3, err) {
|
|
121
121
|
runUpdates(() => {
|
|
122
|
-
if (err === void 0) setValue(() =>
|
|
122
|
+
if (err === void 0) setValue(() => v3);
|
|
123
123
|
setState(err !== void 0 ? "errored" : resolved ? "ready" : "unresolved");
|
|
124
124
|
setError(err);
|
|
125
125
|
for (const c3 of contexts.keys()) c3.decrement();
|
|
@@ -127,10 +127,10 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
127
127
|
}, false);
|
|
128
128
|
}
|
|
129
129
|
function read() {
|
|
130
|
-
const c3 = SuspenseContext,
|
|
130
|
+
const c3 = SuspenseContext, v3 = value(), err = error();
|
|
131
131
|
if (err !== void 0 && !pr) throw err;
|
|
132
132
|
if (Listener && !Listener.user && c3) ;
|
|
133
|
-
return
|
|
133
|
+
return v3;
|
|
134
134
|
}
|
|
135
135
|
function load(refetching = true) {
|
|
136
136
|
if (refetching !== false && scheduled) return;
|
|
@@ -170,7 +170,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
170
170
|
setState(resolved ? "refreshing" : "pending");
|
|
171
171
|
trigger();
|
|
172
172
|
}, false);
|
|
173
|
-
return p3.then((
|
|
173
|
+
return p3.then((v3) => loadEnd(p3, v3, void 0, lookup), (e2) => loadEnd(p3, void 0, castError(e2), lookup));
|
|
174
174
|
}
|
|
175
175
|
Object.defineProperties(read, {
|
|
176
176
|
state: {
|
|
@@ -710,16 +710,16 @@ function style(node, value, prev) {
|
|
|
710
710
|
typeof prev === "string" && (nodeStyle.cssText = prev = void 0);
|
|
711
711
|
prev || (prev = {});
|
|
712
712
|
value || (value = {});
|
|
713
|
-
let
|
|
713
|
+
let v3, s3;
|
|
714
714
|
for (s3 in prev) {
|
|
715
715
|
value[s3] == null && nodeStyle.removeProperty(s3);
|
|
716
716
|
delete prev[s3];
|
|
717
717
|
}
|
|
718
718
|
for (s3 in value) {
|
|
719
|
-
|
|
720
|
-
if (
|
|
721
|
-
nodeStyle.setProperty(s3,
|
|
722
|
-
prev[s3] =
|
|
719
|
+
v3 = value[s3];
|
|
720
|
+
if (v3 !== prev[s3]) {
|
|
721
|
+
nodeStyle.setProperty(s3, v3);
|
|
722
|
+
prev[s3] = v3;
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
725
|
return prev;
|
|
@@ -806,9 +806,9 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
806
806
|
current = cleanChildren(parent, current, marker);
|
|
807
807
|
} else if (t2 === "function") {
|
|
808
808
|
createRenderEffect(() => {
|
|
809
|
-
let
|
|
810
|
-
while (typeof
|
|
811
|
-
current = insertExpression(parent,
|
|
809
|
+
let v3 = value();
|
|
810
|
+
while (typeof v3 === "function") v3 = v3();
|
|
811
|
+
current = insertExpression(parent, v3, current, marker);
|
|
812
812
|
});
|
|
813
813
|
return () => current;
|
|
814
814
|
} else if (Array.isArray(value)) {
|
|
@@ -888,7 +888,7 @@ function cleanChildren(parent, current, marker, replacement) {
|
|
|
888
888
|
|
|
889
889
|
// dist/styles.css
|
|
890
890
|
var styles_default = `/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
891
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--radius-xs:.125rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-grab-pink:#b21c8e;--color-grab-purple:#d239c0;--color-label-tag-border:#730079;--color-label-gray-border:#b0b0b0}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-2147483645{z-index:2147483645}.z-2147483646{z-index:2147483646}.z-2147483647{z-index:2147483647}.z-\\[2147483645\\]{z-index:2147483645}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.-ml-\\[2px\\]{margin-left:-2px}.ml-1{margin-left:calc(var(--spacing)*1)}.box-border{box-sizing:border-box}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-0{height:calc(var(--spacing)*0)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-\\[9px\\]{height:9px}.h-\\[18px\\]{height:18px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.w-0{width:calc(var(--spacing)*0)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-\\[18px\\]{width:18px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-crosshair{cursor:crosshair}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-\\[3px\\]{gap:3px}.gap-\\[5px\\]{gap:5px}.gap-px{gap:1px}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.rounded-\\[1\\.5px\\]{border-radius:1.5px}.rounded-\\[1px\\]{border-radius:1px}.rounded-\\[3px\\]{border-radius:3px}.rounded-full{border-radius:3.40282e38px}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-br-\\[3px\\]{border-bottom-right-radius:3px}.rounded-bl-\\[3px\\]{border-bottom-left-radius:3px}.border{border-style:var(--tw-border-style);border-width:1px}.border-\\[0\\.5px\\]{border-style:var(--tw-border-style);border-width:.5px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#001D0E\\]{border-color:#001d0e}.border-\\[\\#00553269\\]{border-color:#00553269}.border-\\[\\#A3FFCA\\]{border-color:#a3ffca}.border-\\[\\#B3B3B3\\]{border-color:#b3b3b3}.border-grab-purple{border-color:var(--color-grab-purple)}.border-grab-purple\\/40{border-color:#d239c066}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/40{border-color:color-mix(in oklab,var(--color-grab-purple)40%,transparent)}}.border-grab-purple\\/50{border-color:#d239c080}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/50{border-color:color-mix(in oklab,var(--color-grab-purple)50%,transparent)}}.border-label-gray-border{border-color:var(--color-label-gray-border)}.border-label-tag-border{border-color:var(--color-label-tag-border)}.border-white{border-color:var(--color-white)}.border-t-\\[\\#B6B6B6\\]{border-top-color:#b6b6b6}.bg-\\[\\#A3FFCA\\]{background-color:#a3ffca}.bg-\\[\\#F2F2F2\\]{background-color:#f2f2f2}.bg-black{background-color:var(--color-black)}.bg-grab-pink{background-color:var(--color-grab-pink)}.bg-grab-purple\\/5{background-color:#d239c00d}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/5{background-color:color-mix(in oklab,var(--color-grab-purple)5%,transparent)}}.bg-grab-purple\\/8{background-color:#d239c014}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/8{background-color:color-mix(in oklab,var(--color-grab-purple)8%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-cover{background-size:cover}.bg-center{background-position:50%}.p-0{padding:calc(var(--spacing)*0)}.p-0\\.5{padding:calc(var(--spacing)*.5)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-\\[3px\\]{padding-inline:3px}.px-\\[5px\\]{padding-inline:5px}.py-0{padding-block:calc(var(--spacing)*0)}.py-1{padding-block:calc(var(--spacing)*1)}.py-\\[5px\\]{padding-block:5px}.py-px{padding-block:1px}.pt-1{padding-top:calc(var(--spacing)*1)}.pb-1\\.5{padding-bottom:calc(var(--spacing)*1.5)}.align-middle{vertical-align:middle}.font-\\[ui-monospace\\,\\'SFMono-Regular\\'\\,\\'SF_Mono\\'\\,\\'Menlo\\'\\,\\'Consolas\\'\\,\\'Liberation_Mono\\'\\,monospace\\]{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[12px\\]{font-size:12px}.leading-3\\.5{--tw-leading:calc(var(--spacing)*3.5);line-height:calc(var(--spacing)*3.5)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-\\[-0\\.04em\\]{--tw-tracking:-.04em;letter-spacing:-.04em}.tracking-\\[-0\\.08em\\]{--tw-tracking:-.08em;letter-spacing:-.08em}.text-\\[\\#0C0C0C\\]{color:#0c0c0c}.text-\\[\\#00381F\\]{color:#00381f}.text-\\[\\#47004A\\]{color:#47004a}.text-\\[\\#767676\\]{color:#767676}.text-\\[\\#A3FFCA\\]{color:#a3ffca}.text-black{color:var(--color-black)}.text-label-tag-border{color:var(--color-label-tag-border)}.text-white{color:var(--color-white)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.opacity-\\[0\\.99\\]{opacity:.99}.\\[box-shadow\\:\\#00000033_0px_2px_3px\\]{box-shadow:0 2px 3px #0003}.brightness-125{--tw-brightness:brightness(125%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[width\\,height\\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-30{--tw-duration:30ms;transition-duration:30ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[transform\\,width\\,height\\]{will-change:transform,width,height}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,)var(--tw-contain-layout,)var(--tw-contain-paint,)var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.\\[font-synthesis\\:none\\]{font-synthesis:none}@media (hover:hover){.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.react-grab-shimmer{position:relative;overflow:hidden}.react-grab-shimmer:after{content:"";border-radius:inherit;pointer-events:none;background:linear-gradient(90deg,#0000 0%,#fff6 50%,#0000 100%) 0 0/200% 100%;animation:1.5s ease-in-out infinite shimmer;position:absolute;inset:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@keyframes pulse{50%{opacity:.5}}`;
|
|
891
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--radius-xs:.125rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-grab-pink:#b21c8e;--color-grab-purple:#d239c0;--color-label-tag-border:#730079;--color-label-muted:#767676}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-2147483645{z-index:2147483645}.z-2147483646{z-index:2147483646}.z-2147483647{z-index:2147483647}.z-\\[2147483645\\]{z-index:2147483645}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing)*0)}.-ml-\\[2px\\]{margin-left:-2px}.ml-1{margin-left:calc(var(--spacing)*1)}.box-border{box-sizing:border-box}.flex{display:flex}.grid{display:grid}.hidden{display:none}.size-fit{width:fit-content;height:fit-content}.h-0{height:calc(var(--spacing)*0)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-\\[7px\\]{height:7px}.h-\\[9px\\]{height:9px}.h-\\[18px\\]{height:18px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.w-0{width:calc(var(--spacing)*0)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-2\\.5{width:calc(var(--spacing)*2.5)}.w-\\[7px\\]{width:7px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-crosshair{cursor:crosshair}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-\\[3px\\]{gap:3px}.gap-\\[5px\\]{gap:5px}.gap-px{gap:1px}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.rounded-\\[1\\.5px\\]{border-radius:1.5px}.rounded-\\[1px\\]{border-radius:1px}.rounded-full{border-radius:3.40282e38px}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-b-xs{border-bottom-right-radius:var(--radius-xs);border-bottom-left-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#B3B3B3\\]{border-color:#b3b3b3}.border-grab-purple{border-color:var(--color-grab-purple)}.border-grab-purple\\/40{border-color:#d239c066}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/40{border-color:color-mix(in oklab,var(--color-grab-purple)40%,transparent)}}.border-grab-purple\\/50{border-color:#d239c080}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/50{border-color:color-mix(in oklab,var(--color-grab-purple)50%,transparent)}}.border-label-tag-border{border-color:var(--color-label-tag-border)}.border-white{border-color:var(--color-white)}.border-t-\\[\\#D9D9D9\\]{border-top-color:#d9d9d9}.bg-\\[\\#F7F7F7\\]{background-color:#f7f7f7}.bg-black{background-color:var(--color-black)}.bg-grab-pink{background-color:var(--color-grab-pink)}.bg-grab-purple\\/5{background-color:#d239c00d}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/5{background-color:color-mix(in oklab,var(--color-grab-purple)5%,transparent)}}.bg-grab-purple\\/8{background-color:#d239c014}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/8{background-color:color-mix(in oklab,var(--color-grab-purple)8%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-cover{background-size:cover}.bg-center{background-position:50%}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:calc(var(--spacing)*0)}.py-1{padding-block:calc(var(--spacing)*1)}.py-\\[3px\\]{padding-block:3px}.py-\\[5px\\]{padding-block:5px}.py-px{padding-block:1px}.pt-1{padding-top:calc(var(--spacing)*1)}.align-middle{vertical-align:middle}.font-\\[ui-monospace\\,\\'SFMono-Regular\\'\\,\\'SF_Mono\\'\\,\\'Menlo\\'\\,\\'Consolas\\'\\,\\'Liberation_Mono\\'\\,monospace\\]{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[12px\\]{font-size:12px}.leading-3\\.5{--tw-leading:calc(var(--spacing)*3.5);line-height:calc(var(--spacing)*3.5)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-\\[-0\\.04em\\]{--tw-tracking:-.04em;letter-spacing:-.04em}.tracking-\\[-0\\.08em\\]{--tw-tracking:-.08em;letter-spacing:-.08em}.whitespace-normal{white-space:normal}.text-\\[\\#0C0C0C\\]{color:#0c0c0c}.text-\\[\\#47004A\\]{color:#47004a}.text-black{color:var(--color-black)}.text-label-muted{color:var(--color-label-muted)}.text-label-tag-border{color:var(--color-label-tag-border)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.opacity-\\[0\\.99\\]{opacity:.99}.brightness-125{--tw-brightness:brightness(125%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter-\\[drop-shadow\\(0px_0px_4px_\\#51515180\\)\\]{filter:drop-shadow(0 0 4px #51515180)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[width\\,height\\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-30{--tw-duration:30ms;transition-duration:30ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[transform\\,width\\,height\\]{will-change:transform,width,height}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,)var(--tw-contain-layout,)var(--tw-contain-paint,)var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.\\[font-synthesis\\:none\\]{font-synthesis:none}@media (hover:hover){.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:opacity-100:hover{opacity:1}}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.react-grab-shimmer{position:relative;overflow:hidden}.react-grab-shimmer:after{content:"";border-radius:inherit;pointer-events:none;background:linear-gradient(90deg,#0000 0%,#fff6 50%,#0000 100%) 0 0/200% 100%;animation:1.5s ease-in-out infinite shimmer;position:absolute;inset:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}`;
|
|
892
892
|
|
|
893
893
|
// src/utils/is-keyboard-event-triggered-by-input.ts
|
|
894
894
|
var FORM_TAGS_AND_ROLES = [
|
|
@@ -1025,6 +1025,7 @@ var COPIED_LABEL_DURATION_MS = 1500;
|
|
|
1025
1025
|
var SELECTION_CURSOR_SETTLE_DELAY_MS = 500;
|
|
1026
1026
|
var BLUR_DEACTIVATION_THRESHOLD_MS = 500;
|
|
1027
1027
|
var DRAG_THRESHOLD_PX = 2;
|
|
1028
|
+
var ELEMENT_DETECTION_THROTTLE_MS = 32;
|
|
1028
1029
|
var AUTO_SCROLL_EDGE_THRESHOLD_PX = 25;
|
|
1029
1030
|
var AUTO_SCROLL_SPEED_PX = 10;
|
|
1030
1031
|
var Z_INDEX_LABEL = 2147483647;
|
|
@@ -3623,14 +3624,14 @@ var useAnimatedPosition = (options) => {
|
|
|
3623
3624
|
const lerpFactor = options.lerpFactor ?? 0.3;
|
|
3624
3625
|
const convergenceThreshold = options.convergenceThreshold ?? 0.5;
|
|
3625
3626
|
const [x3, setX] = createSignal(options.x());
|
|
3626
|
-
const [
|
|
3627
|
+
const [y3, setY] = createSignal(options.y());
|
|
3627
3628
|
let targetX = options.x();
|
|
3628
3629
|
let targetY = options.y();
|
|
3629
3630
|
let animationFrameId = null;
|
|
3630
3631
|
let hasBeenRenderedOnce = false;
|
|
3631
3632
|
const animate = () => {
|
|
3632
3633
|
const currentX = lerp(x3(), targetX, lerpFactor);
|
|
3633
|
-
const currentY = lerp(
|
|
3634
|
+
const currentY = lerp(y3(), targetY, lerpFactor);
|
|
3634
3635
|
setX(currentX);
|
|
3635
3636
|
setY(currentY);
|
|
3636
3637
|
const hasConverged = Math.abs(currentX - targetX) < convergenceThreshold && Math.abs(currentY - targetY) < convergenceThreshold;
|
|
@@ -3661,7 +3662,7 @@ var useAnimatedPosition = (options) => {
|
|
|
3661
3662
|
animationFrameId = null;
|
|
3662
3663
|
}
|
|
3663
3664
|
});
|
|
3664
|
-
return { x: x3, y:
|
|
3665
|
+
return { x: x3, y: y3 };
|
|
3665
3666
|
};
|
|
3666
3667
|
|
|
3667
3668
|
// src/components/crosshair.tsx
|
|
@@ -3733,54 +3734,12 @@ var Crosshair = (props) => {
|
|
|
3733
3734
|
});
|
|
3734
3735
|
};
|
|
3735
3736
|
|
|
3736
|
-
// src/components/icon-cursor-simple.tsx
|
|
3737
|
-
var _tmpl$3 = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 12 12"fill=none><path fill-rule=evenodd clip-rule=evenodd d="M0.675576 0.0318497C0.491988 -0.0369956 0.285105 0.0078173 0.146461 0.146461C0.0078173 0.285105 -0.0369956 0.491988 0.0318497 0.675576L4.15685 11.6756C4.2337 11.8805 4.43492 12.0117 4.65345 11.9992C4.87197 11.9868 5.057 11.8336 5.11009 11.6213L6.41232 6.41232L11.6213 5.11009C11.8336 5.057 11.9868 4.87197 11.9992 4.65345C12.0117 4.43492 11.8805 4.2337 11.6756 4.15685L0.675576 0.0318497Z"fill=currentColor>`);
|
|
3738
|
-
var IconCursorSimple = (props) => {
|
|
3739
|
-
const size = () => props.size ?? 9;
|
|
3740
|
-
return (() => {
|
|
3741
|
-
var _el$ = _tmpl$3();
|
|
3742
|
-
createRenderEffect((_p$) => {
|
|
3743
|
-
var _v$ = size(), _v$2 = size(), _v$3 = props.class;
|
|
3744
|
-
_v$ !== _p$.e && setAttribute(_el$, "width", _p$.e = _v$);
|
|
3745
|
-
_v$2 !== _p$.t && setAttribute(_el$, "height", _p$.t = _v$2);
|
|
3746
|
-
_v$3 !== _p$.a && setAttribute(_el$, "class", _p$.a = _v$3);
|
|
3747
|
-
return _p$;
|
|
3748
|
-
}, {
|
|
3749
|
-
e: void 0,
|
|
3750
|
-
t: void 0,
|
|
3751
|
-
a: void 0
|
|
3752
|
-
});
|
|
3753
|
-
return _el$;
|
|
3754
|
-
})();
|
|
3755
|
-
};
|
|
3756
|
-
|
|
3757
3737
|
// src/components/icon-open.tsx
|
|
3758
|
-
var _tmpl$
|
|
3738
|
+
var _tmpl$3 = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6"></path><path d="M11 13l9-9"></path><path d="M15 4h5v5">`);
|
|
3759
3739
|
var IconOpen = (props) => {
|
|
3760
3740
|
const size = () => props.size ?? 12;
|
|
3761
3741
|
return (() => {
|
|
3762
|
-
var _el$ = _tmpl$
|
|
3763
|
-
createRenderEffect((_p$) => {
|
|
3764
|
-
var _v$ = size(), _v$2 = size(), _v$3 = props.class;
|
|
3765
|
-
_v$ !== _p$.e && setAttribute(_el$, "width", _p$.e = _v$);
|
|
3766
|
-
_v$2 !== _p$.t && setAttribute(_el$, "height", _p$.t = _v$2);
|
|
3767
|
-
_v$3 !== _p$.a && setAttribute(_el$, "class", _p$.a = _v$3);
|
|
3768
|
-
return _p$;
|
|
3769
|
-
}, {
|
|
3770
|
-
e: void 0,
|
|
3771
|
-
t: void 0,
|
|
3772
|
-
a: void 0
|
|
3773
|
-
});
|
|
3774
|
-
return _el$;
|
|
3775
|
-
})();
|
|
3776
|
-
};
|
|
3777
|
-
|
|
3778
|
-
// src/components/icon-stop.tsx
|
|
3779
|
-
var _tmpl$5 = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 9 9"fill=none><rect x=1 y=1 width=7 height=7 rx=1 fill=currentColor>`);
|
|
3780
|
-
var IconStop = (props) => {
|
|
3781
|
-
const size = () => props.size ?? 9;
|
|
3782
|
-
return (() => {
|
|
3783
|
-
var _el$ = _tmpl$5();
|
|
3742
|
+
var _el$ = _tmpl$3();
|
|
3784
3743
|
createRenderEffect((_p$) => {
|
|
3785
3744
|
var _v$ = size(), _v$2 = size(), _v$3 = props.class;
|
|
3786
3745
|
_v$ !== _p$.e && setAttribute(_el$, "width", _p$.e = _v$);
|
|
@@ -3797,27 +3756,22 @@ var IconStop = (props) => {
|
|
|
3797
3756
|
};
|
|
3798
3757
|
|
|
3799
3758
|
// src/components/selection-label.tsx
|
|
3800
|
-
var _tmpl$
|
|
3801
|
-
var _tmpl$22 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-[#B3B3B3] py-0"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">`);
|
|
3802
|
-
var _tmpl$32 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-
|
|
3803
|
-
var _tmpl$42 = /* @__PURE__ */ template(`<div class="
|
|
3804
|
-
var _tmpl$
|
|
3805
|
-
var _tmpl$
|
|
3806
|
-
var _tmpl$7 = /* @__PURE__ */ template(`<
|
|
3807
|
-
var _tmpl$8 = /* @__PURE__ */ template(`<button>`);
|
|
3808
|
-
var _tmpl$9 = /* @__PURE__ */ template(`<div>`);
|
|
3809
|
-
var _tmpl$0 = /* @__PURE__ */ template(`<div class="
|
|
3810
|
-
var _tmpl$1 = /* @__PURE__ */ template(`<div
|
|
3811
|
-
var _tmpl$10 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex
|
|
3812
|
-
var _tmpl$11 = /* @__PURE__ */ template(`<div class="
|
|
3813
|
-
var _tmpl$12 = /* @__PURE__ */ template(`<
|
|
3814
|
-
var _tmpl$13 = /* @__PURE__ */ template(`<div class="flex
|
|
3815
|
-
var _tmpl$14 = /* @__PURE__ */ template(`<div class="contain-layout
|
|
3816
|
-
var _tmpl$15 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit"><span class="text-[#767676] text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">Press</span><div class="contain-layout shrink-0 flex flex-col items-start rounded-xs bg-white [border-width:0.5px] border-solid border-white p-0.5 w-fit h-fit"style="box-shadow:#0000008C 0px 0px 2px"><div class="w-2.5 h-[9px] shrink-0 opacity-[0.99] bg-cover bg-center"style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)></div></div><span class="text-[#767676] text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">to Edit`);
|
|
3817
|
-
var _tmpl$16 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit px-1.5"></div><div class="grid w-full transition-[grid-template-rows] duration-30 ease-out"><div class="overflow-hidden min-h-0">`);
|
|
3818
|
-
var _tmpl$17 = /* @__PURE__ */ template(`<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0"placeholder="type to edit"rows=1 style=field-sizing:content;min-height:16px></textarea><button class="contain-layout shrink-0 flex flex-col items-start p-0.5 rounded-xs bg-white [border-width:0.5px] border-solid border-white w-fit h-fit cursor-pointer ml-1 transition-none hover:scale-105 hover:shadow-md"style="box-shadow:#0000008C 0px 0px 2px"><div style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)>`);
|
|
3819
|
-
var _tmpl$18 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-fit h-fit">`);
|
|
3820
|
-
var _tmpl$19 = /* @__PURE__ */ template(`<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-xs bg-white [box-shadow:#00000033_0px_2px_3px] antialiased w-fit h-fit p-0">`);
|
|
3759
|
+
var _tmpl$4 = /* @__PURE__ */ template(`<div style="background-image:linear-gradient(in oklab 180deg, oklab(88.7% 0.086 -0.058) 0%, oklab(83.2% 0.132 -0.089) 100%)"><span>`);
|
|
3760
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-[#B3B3B3] py-0 bg-[#F7F7F7]"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">`);
|
|
3761
|
+
var _tmpl$32 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-white py-0"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 tracking-[-0.08em] font-[ui-monospace,'SFMono-Regular','SF_Mono','Menlo','Consolas','Liberation_Mono',monospace] w-fit h-fit">>`);
|
|
3762
|
+
var _tmpl$42 = /* @__PURE__ */ template(`<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">`);
|
|
3763
|
+
var _tmpl$5 = /* @__PURE__ */ template(`<div role=button><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">`);
|
|
3764
|
+
var _tmpl$6 = /* @__PURE__ */ template(`<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-[5px] w-auto h-fit self-stretch [border-top-width:0.5px] border-t-solid border-t-[#D9D9D9] antialiased rounded-t-none rounded-b-xs"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">`);
|
|
3765
|
+
var _tmpl$7 = /* @__PURE__ */ template(`<div class="[font-synthesis:none] contain-layout shrink-0 flex items-center gap-1 rounded-xs bg-white antialiased w-fit h-fit py-1 px-1.5"><div class="contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]"><div class="text-black text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">`);
|
|
3766
|
+
var _tmpl$8 = /* @__PURE__ */ template(`<button class="contain-layout shrink-0 flex flex-col items-start rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] p-1 size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black">`);
|
|
3767
|
+
var _tmpl$9 = /* @__PURE__ */ template(`<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px>`);
|
|
3768
|
+
var _tmpl$0 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-auto h-fit"><div class="contain-layout flex items-center px-0 py-px w-auto h-fit rounded-[1.5px] gap-[3px]"><div class="text-black text-[12px] leading-4 tracking-[-0.04em] font-sans font-medium w-auto h-fit whitespace-normal react-grab-shimmer">`);
|
|
3769
|
+
var _tmpl$1 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">`);
|
|
3770
|
+
var _tmpl$10 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit"><span class="text-label-muted text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">Press</span><div class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit"><div class="w-2.5 h-[9px] shrink-0 opacity-[0.99] bg-cover bg-center"style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)></div></div><span class="text-label-muted text-[12px] leading-4 shrink-0 tracking-[-0.04em] font-sans font-medium w-fit h-fit">to edit`);
|
|
3771
|
+
var _tmpl$11 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit px-1.5"></div><div class="grid w-full transition-[grid-template-rows] duration-30 ease-out"><div class="overflow-hidden min-h-0">`);
|
|
3772
|
+
var _tmpl$12 = /* @__PURE__ */ template(`<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea class="text-black text-[12px] leading-4 tracking-[-0.04em] font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0"placeholder="type to edit"rows=1 style=field-sizing:content;min-height:16px></textarea><button class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div style=background-image:url(https://workers.paper.design/file-assets/01K8D51Q7E2ESJTN18XN2MT96X/01KBEJ7N5GQ0ZZ7K456R42AP4V.svg)>`);
|
|
3773
|
+
var _tmpl$13 = /* @__PURE__ */ template(`<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-fit h-fit">`);
|
|
3774
|
+
var _tmpl$14 = /* @__PURE__ */ template(`<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)]"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-xs bg-white antialiased w-fit h-fit p-0">`);
|
|
3821
3775
|
var ARROW_HEIGHT = 8;
|
|
3822
3776
|
var LABEL_GAP = 4;
|
|
3823
3777
|
var IDLE_TIMEOUT_MS = 400;
|
|
@@ -3832,7 +3786,7 @@ var TagBadge = (props) => {
|
|
|
3832
3786
|
props.onHoverChange?.(false);
|
|
3833
3787
|
};
|
|
3834
3788
|
return (() => {
|
|
3835
|
-
var _el$ = _tmpl$
|
|
3789
|
+
var _el$ = _tmpl$4(), _el$2 = _el$.firstChild;
|
|
3836
3790
|
addEventListener(_el$, "click", props.onClick);
|
|
3837
3791
|
_el$.addEventListener("mouseleave", handleMouseLeave);
|
|
3838
3792
|
_el$.addEventListener("mouseenter", handleMouseEnter);
|
|
@@ -3867,46 +3821,12 @@ var ParentBadge = (props) => (() => {
|
|
|
3867
3821
|
insert(_el$4, () => props.name);
|
|
3868
3822
|
return _el$3;
|
|
3869
3823
|
})();
|
|
3870
|
-
var
|
|
3871
|
-
var _el$5 = _tmpl$32(), _el$6 = _el$5.firstChild;
|
|
3872
|
-
insert(_el$6, () => props.name);
|
|
3873
|
-
return _el$5;
|
|
3874
|
-
})();
|
|
3875
|
-
var ChevronSeparator = () => _tmpl$42();
|
|
3876
|
-
var CopiedChevronSeparator = () => _tmpl$52();
|
|
3877
|
-
var CopiedTagBadge = (props) => (() => {
|
|
3878
|
-
var _el$9 = _tmpl$62(), _el$0 = _el$9.firstChild;
|
|
3879
|
-
insert(_el$0, () => props.tagName);
|
|
3880
|
-
return _el$9;
|
|
3881
|
-
})();
|
|
3882
|
-
var ActionPill = (props) => {
|
|
3883
|
-
const baseClass = cn("flex items-center h-[18px] rounded-[1.5px] gap-[3px] px-[5px] py-px border-[0.5px] border-solid border-label-gray-border", props.shrink && "shrink-0 w-fit", props.asButton && "cursor-pointer bg-transparent", props.dimmed && "opacity-50 hover:opacity-100 transition-opacity");
|
|
3884
|
-
const content = [memo(() => props.icon), (() => {
|
|
3885
|
-
var _el$1 = _tmpl$7();
|
|
3886
|
-
insert(_el$1, () => props.label);
|
|
3887
|
-
createRenderEffect(() => className(_el$1, cn("text-black text-[12px] leading-4 font-medium tracking-[-0.04em]", props.shrink && "shrink-0 w-fit h-fit")));
|
|
3888
|
-
return _el$1;
|
|
3889
|
-
})()];
|
|
3890
|
-
return props.asButton ? (() => {
|
|
3891
|
-
var _el$10 = _tmpl$8();
|
|
3892
|
-
addEventListener(_el$10, "click", props.onClick);
|
|
3893
|
-
className(_el$10, baseClass);
|
|
3894
|
-
insert(_el$10, content);
|
|
3895
|
-
return _el$10;
|
|
3896
|
-
})() : (() => {
|
|
3897
|
-
var _el$11 = _tmpl$9();
|
|
3898
|
-
addEventListener(_el$11, "click", props.onClick);
|
|
3899
|
-
className(_el$11, baseClass);
|
|
3900
|
-
insert(_el$11, content);
|
|
3901
|
-
createRenderEffect(() => setAttribute(_el$11, "role", props.onClick ? "button" : void 0));
|
|
3902
|
-
return _el$11;
|
|
3903
|
-
})();
|
|
3904
|
-
};
|
|
3824
|
+
var ChevronSeparator = () => _tmpl$32();
|
|
3905
3825
|
var Arrow = (props) => {
|
|
3906
3826
|
const arrowColor = () => props.color ?? "white";
|
|
3907
3827
|
return (() => {
|
|
3908
|
-
var _el$
|
|
3909
|
-
createRenderEffect((_$p) => style(_el$
|
|
3828
|
+
var _el$6 = _tmpl$42();
|
|
3829
|
+
createRenderEffect((_$p) => style(_el$6, {
|
|
3910
3830
|
left: `${props.leftPx}px`,
|
|
3911
3831
|
...props.position === "bottom" ? {
|
|
3912
3832
|
top: "0",
|
|
@@ -3921,19 +3841,20 @@ var Arrow = (props) => {
|
|
|
3921
3841
|
"border-top": `8px solid ${arrowColor()}`
|
|
3922
3842
|
}
|
|
3923
3843
|
}, _$p));
|
|
3924
|
-
return _el$
|
|
3844
|
+
return _el$6;
|
|
3925
3845
|
})();
|
|
3926
3846
|
};
|
|
3927
3847
|
var ClickToCopyPill = (props) => (() => {
|
|
3928
|
-
var _el$
|
|
3929
|
-
addEventListener(_el$
|
|
3930
|
-
|
|
3931
|
-
|
|
3848
|
+
var _el$7 = _tmpl$5(), _el$8 = _el$7.firstChild;
|
|
3849
|
+
addEventListener(_el$7, "click", props.onClick);
|
|
3850
|
+
insert(_el$8, () => props.hasParent ? "Copy" : "Click to copy");
|
|
3851
|
+
createRenderEffect(() => className(_el$7, cn("contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]", props.asButton && "cursor-pointer", props.dimmed && "opacity-50 hover:opacity-100 transition-opacity")));
|
|
3852
|
+
return _el$7;
|
|
3932
3853
|
})();
|
|
3933
3854
|
var BottomSection = (props) => (() => {
|
|
3934
|
-
var _el$
|
|
3935
|
-
insert(_el$
|
|
3936
|
-
return _el$
|
|
3855
|
+
var _el$9 = _tmpl$6();
|
|
3856
|
+
insert(_el$9, () => props.children);
|
|
3857
|
+
return _el$9;
|
|
3937
3858
|
})();
|
|
3938
3859
|
var SelectionLabel = (props) => {
|
|
3939
3860
|
let containerRef;
|
|
@@ -4029,9 +3950,10 @@ var SelectionLabel = (props) => {
|
|
|
4029
3950
|
const viewportWidth = window.innerWidth;
|
|
4030
3951
|
const viewportHeight = window.innerHeight;
|
|
4031
3952
|
const selectionCenterX = bounds.x + bounds.width / 2;
|
|
3953
|
+
const cursorX = props.mouseX ?? selectionCenterX;
|
|
4032
3954
|
const selectionBottom = bounds.y + bounds.height;
|
|
4033
3955
|
const selectionTop = bounds.y;
|
|
4034
|
-
let positionLeft =
|
|
3956
|
+
let positionLeft = cursorX - labelWidth / 2;
|
|
4035
3957
|
let positionTop = selectionBottom + ARROW_HEIGHT + LABEL_GAP;
|
|
4036
3958
|
if (positionLeft + labelWidth > viewportWidth - VIEWPORT_MARGIN_PX) {
|
|
4037
3959
|
positionLeft = viewportWidth - labelWidth - VIEWPORT_MARGIN_PX;
|
|
@@ -4050,7 +3972,7 @@ var SelectionLabel = (props) => {
|
|
|
4050
3972
|
if (positionTop < VIEWPORT_MARGIN_PX) {
|
|
4051
3973
|
positionTop = VIEWPORT_MARGIN_PX;
|
|
4052
3974
|
}
|
|
4053
|
-
const arrowLeft = Math.max(12, Math.min(
|
|
3975
|
+
const arrowLeft = Math.max(12, Math.min(cursorX - positionLeft, labelWidth - 12));
|
|
4054
3976
|
return {
|
|
4055
3977
|
left: positionLeft,
|
|
4056
3978
|
top: positionTop,
|
|
@@ -4090,128 +4012,84 @@ var SelectionLabel = (props) => {
|
|
|
4090
4012
|
return memo(() => props.visible !== false)() && props.selectionBounds;
|
|
4091
4013
|
},
|
|
4092
4014
|
get children() {
|
|
4093
|
-
var _el$
|
|
4094
|
-
_el$
|
|
4095
|
-
_el$
|
|
4015
|
+
var _el$0 = _tmpl$14(), _el$12 = _el$0.firstChild;
|
|
4016
|
+
_el$0.$$click = stopPropagation;
|
|
4017
|
+
_el$0.$$mousedown = stopPropagation;
|
|
4096
4018
|
var _ref$ = containerRef;
|
|
4097
|
-
typeof _ref$ === "function" ? use(_ref$, _el$
|
|
4098
|
-
insert(_el$
|
|
4019
|
+
typeof _ref$ === "function" ? use(_ref$, _el$0) : containerRef = _el$0;
|
|
4020
|
+
insert(_el$0, createComponent(Arrow, {
|
|
4099
4021
|
get position() {
|
|
4100
4022
|
return arrowPosition();
|
|
4101
4023
|
},
|
|
4102
4024
|
get leftPx() {
|
|
4103
4025
|
return computedPosition().arrowLeft;
|
|
4104
|
-
},
|
|
4105
|
-
get color() {
|
|
4106
|
-
return props.status === "copied" || props.status === "fading" ? "#A3FFCA" : void 0;
|
|
4107
4026
|
}
|
|
4108
|
-
}), _el$
|
|
4109
|
-
insert(_el$
|
|
4027
|
+
}), _el$12);
|
|
4028
|
+
insert(_el$0, createComponent(Show, {
|
|
4110
4029
|
get when() {
|
|
4111
4030
|
return props.status === "copied" || props.status === "fading";
|
|
4112
4031
|
},
|
|
4113
4032
|
get children() {
|
|
4114
|
-
var _el$
|
|
4115
|
-
insert(_el$
|
|
4116
|
-
|
|
4117
|
-
get when() {
|
|
4118
|
-
return props.componentName;
|
|
4119
|
-
},
|
|
4120
|
-
get children() {
|
|
4121
|
-
return [createComponent(CopiedParentBadge, {
|
|
4122
|
-
get name() {
|
|
4123
|
-
return props.componentName;
|
|
4124
|
-
}
|
|
4125
|
-
}), createComponent(CopiedChevronSeparator, {})];
|
|
4126
|
-
}
|
|
4127
|
-
}), null);
|
|
4128
|
-
insert(_el$19, createComponent(CopiedTagBadge, {
|
|
4129
|
-
get tagName() {
|
|
4130
|
-
return tagDisplay();
|
|
4131
|
-
}
|
|
4132
|
-
}), null);
|
|
4133
|
-
return _el$16;
|
|
4033
|
+
var _el$1 = _tmpl$7(), _el$10 = _el$1.firstChild, _el$11 = _el$10.firstChild;
|
|
4034
|
+
insert(_el$11, () => props.hasAgent ? "Completed" : "Copied");
|
|
4035
|
+
return _el$1;
|
|
4134
4036
|
}
|
|
4135
|
-
}), _el$
|
|
4136
|
-
insert(_el$
|
|
4037
|
+
}), _el$12);
|
|
4038
|
+
insert(_el$12, createComponent(Show, {
|
|
4137
4039
|
get when() {
|
|
4138
4040
|
return props.status === "copying";
|
|
4139
4041
|
},
|
|
4140
4042
|
get children() {
|
|
4141
|
-
var _el$
|
|
4142
|
-
insert(_el$
|
|
4143
|
-
|
|
4144
|
-
return tagDisplay();
|
|
4145
|
-
},
|
|
4146
|
-
get isClickable() {
|
|
4147
|
-
return isTagClickable();
|
|
4148
|
-
},
|
|
4149
|
-
onClick: handleTagClick,
|
|
4150
|
-
onHoverChange: handleTagHoverChange,
|
|
4151
|
-
showMono: true,
|
|
4152
|
-
shrink: true
|
|
4153
|
-
}), null);
|
|
4154
|
-
insert(_el$21, createComponent(ActionPill, {
|
|
4155
|
-
get icon() {
|
|
4156
|
-
return createComponent(IconCursorSimple, {
|
|
4157
|
-
size: 9,
|
|
4158
|
-
"class": "text-black shrink-0"
|
|
4159
|
-
});
|
|
4160
|
-
},
|
|
4161
|
-
get label() {
|
|
4162
|
-
return props.statusText ?? "Grabbing\u2026";
|
|
4163
|
-
}
|
|
4164
|
-
}), null);
|
|
4165
|
-
insert(_el$21, createComponent(Show, {
|
|
4166
|
-
get when() {
|
|
4167
|
-
return memo(() => !!props.hasAgent)() && props.onAbort;
|
|
4168
|
-
},
|
|
4043
|
+
var _el$13 = _tmpl$0(), _el$14 = _el$13.firstChild, _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild;
|
|
4044
|
+
insert(_el$16, () => props.statusText ?? "Grabbing\u2026");
|
|
4045
|
+
insert(_el$13, createComponent(BottomSection, {
|
|
4169
4046
|
get children() {
|
|
4170
|
-
var _el$
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
}));
|
|
4186
|
-
return _el$22;
|
|
4047
|
+
var _el$17 = _tmpl$9(), _el$18 = _el$17.firstChild;
|
|
4048
|
+
var _ref$2 = inputRef;
|
|
4049
|
+
typeof _ref$2 === "function" ? use(_ref$2, _el$18) : inputRef = _el$18;
|
|
4050
|
+
insert(_el$17, createComponent(Show, {
|
|
4051
|
+
get when() {
|
|
4052
|
+
return props.onAbort;
|
|
4053
|
+
},
|
|
4054
|
+
get children() {
|
|
4055
|
+
var _el$19 = _tmpl$8();
|
|
4056
|
+
addEventListener(_el$19, "click", props.onAbort);
|
|
4057
|
+
return _el$19;
|
|
4058
|
+
}
|
|
4059
|
+
}), null);
|
|
4060
|
+
createRenderEffect(() => _el$18.value = props.inputValue ?? "");
|
|
4061
|
+
return _el$17;
|
|
4187
4062
|
}
|
|
4188
4063
|
}), null);
|
|
4189
|
-
return _el$
|
|
4064
|
+
return _el$13;
|
|
4190
4065
|
}
|
|
4191
4066
|
}), null);
|
|
4192
|
-
insert(_el$
|
|
4067
|
+
insert(_el$12, createComponent(Show, {
|
|
4193
4068
|
get when() {
|
|
4194
4069
|
return memo(() => !!isNotProcessing())() && !props.isInputExpanded;
|
|
4195
4070
|
},
|
|
4196
4071
|
get children() {
|
|
4197
|
-
var _el$
|
|
4198
|
-
insert(_el$
|
|
4072
|
+
var _el$20 = _tmpl$11(), _el$21 = _el$20.firstChild, _el$23 = _el$21.nextSibling, _el$24 = _el$23.firstChild;
|
|
4073
|
+
insert(_el$21, createComponent(ClickToCopyPill, {
|
|
4199
4074
|
onClick: handleSubmit,
|
|
4200
|
-
shrink: true
|
|
4075
|
+
shrink: true,
|
|
4076
|
+
get hasParent() {
|
|
4077
|
+
return !!props.componentName;
|
|
4078
|
+
}
|
|
4201
4079
|
}), null);
|
|
4202
|
-
insert(_el$
|
|
4080
|
+
insert(_el$21, createComponent(Show, {
|
|
4203
4081
|
get when() {
|
|
4204
4082
|
return props.componentName;
|
|
4205
4083
|
},
|
|
4206
4084
|
get children() {
|
|
4207
|
-
var _el$
|
|
4208
|
-
insert(_el$
|
|
4085
|
+
var _el$22 = _tmpl$1();
|
|
4086
|
+
insert(_el$22, createComponent(ParentBadge, {
|
|
4209
4087
|
get name() {
|
|
4210
4088
|
return props.componentName;
|
|
4211
4089
|
}
|
|
4212
4090
|
}), null);
|
|
4213
|
-
insert(_el$
|
|
4214
|
-
insert(_el$
|
|
4091
|
+
insert(_el$22, createComponent(ChevronSeparator, {}), null);
|
|
4092
|
+
insert(_el$22, createComponent(TagBadge, {
|
|
4215
4093
|
get tagName() {
|
|
4216
4094
|
return tagDisplay();
|
|
4217
4095
|
},
|
|
@@ -4223,10 +4101,10 @@ var SelectionLabel = (props) => {
|
|
|
4223
4101
|
showMono: true,
|
|
4224
4102
|
shrink: true
|
|
4225
4103
|
}), null);
|
|
4226
|
-
return _el$
|
|
4104
|
+
return _el$22;
|
|
4227
4105
|
}
|
|
4228
4106
|
}), null);
|
|
4229
|
-
insert(_el$
|
|
4107
|
+
insert(_el$21, createComponent(Show, {
|
|
4230
4108
|
get when() {
|
|
4231
4109
|
return !props.componentName;
|
|
4232
4110
|
},
|
|
@@ -4245,40 +4123,43 @@ var SelectionLabel = (props) => {
|
|
|
4245
4123
|
});
|
|
4246
4124
|
}
|
|
4247
4125
|
}), null);
|
|
4248
|
-
insert(_el$
|
|
4126
|
+
insert(_el$24, createComponent(BottomSection, {
|
|
4249
4127
|
get children() {
|
|
4250
|
-
var _el$
|
|
4251
|
-
return _el$
|
|
4128
|
+
var _el$25 = _tmpl$10(), _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling; _el$27.firstChild;
|
|
4129
|
+
return _el$25;
|
|
4252
4130
|
}
|
|
4253
4131
|
}));
|
|
4254
|
-
createRenderEffect((_$p) => setStyleProperty(_el$
|
|
4255
|
-
return _el$
|
|
4132
|
+
createRenderEffect((_$p) => setStyleProperty(_el$23, "grid-template-rows", isIdle() ? "1fr" : "0fr"));
|
|
4133
|
+
return _el$20;
|
|
4256
4134
|
}
|
|
4257
4135
|
}), null);
|
|
4258
|
-
insert(_el$
|
|
4136
|
+
insert(_el$12, createComponent(Show, {
|
|
4259
4137
|
get when() {
|
|
4260
4138
|
return memo(() => !!isNotProcessing())() && props.isInputExpanded;
|
|
4261
4139
|
},
|
|
4262
4140
|
get children() {
|
|
4263
|
-
var _el$
|
|
4264
|
-
insert(_el$
|
|
4141
|
+
var _el$29 = _tmpl$13(), _el$30 = _el$29.firstChild;
|
|
4142
|
+
insert(_el$30, createComponent(ClickToCopyPill, {
|
|
4265
4143
|
onClick: handleSubmit,
|
|
4266
4144
|
dimmed: true,
|
|
4267
|
-
shrink: true
|
|
4145
|
+
shrink: true,
|
|
4146
|
+
get hasParent() {
|
|
4147
|
+
return !!props.componentName;
|
|
4148
|
+
}
|
|
4268
4149
|
}), null);
|
|
4269
|
-
insert(_el$
|
|
4150
|
+
insert(_el$30, createComponent(Show, {
|
|
4270
4151
|
get when() {
|
|
4271
4152
|
return props.componentName;
|
|
4272
4153
|
},
|
|
4273
4154
|
get children() {
|
|
4274
|
-
var _el$
|
|
4275
|
-
insert(_el$
|
|
4155
|
+
var _el$31 = _tmpl$1();
|
|
4156
|
+
insert(_el$31, createComponent(ParentBadge, {
|
|
4276
4157
|
get name() {
|
|
4277
4158
|
return props.componentName;
|
|
4278
4159
|
}
|
|
4279
4160
|
}), null);
|
|
4280
|
-
insert(_el$
|
|
4281
|
-
insert(_el$
|
|
4161
|
+
insert(_el$31, createComponent(ChevronSeparator, {}), null);
|
|
4162
|
+
insert(_el$31, createComponent(TagBadge, {
|
|
4282
4163
|
get tagName() {
|
|
4283
4164
|
return tagDisplay();
|
|
4284
4165
|
},
|
|
@@ -4291,10 +4172,10 @@ var SelectionLabel = (props) => {
|
|
|
4291
4172
|
shrink: true,
|
|
4292
4173
|
forceShowIcon: true
|
|
4293
4174
|
}), null);
|
|
4294
|
-
return _el$
|
|
4175
|
+
return _el$31;
|
|
4295
4176
|
}
|
|
4296
4177
|
}), null);
|
|
4297
|
-
insert(_el$
|
|
4178
|
+
insert(_el$30, createComponent(Show, {
|
|
4298
4179
|
get when() {
|
|
4299
4180
|
return !props.componentName;
|
|
4300
4181
|
},
|
|
@@ -4314,29 +4195,29 @@ var SelectionLabel = (props) => {
|
|
|
4314
4195
|
});
|
|
4315
4196
|
}
|
|
4316
4197
|
}), null);
|
|
4317
|
-
insert(_el$
|
|
4198
|
+
insert(_el$29, createComponent(BottomSection, {
|
|
4318
4199
|
get children() {
|
|
4319
|
-
var _el$
|
|
4320
|
-
_el$
|
|
4321
|
-
_el$
|
|
4322
|
-
var _ref$
|
|
4323
|
-
typeof _ref$
|
|
4324
|
-
_el$
|
|
4325
|
-
createRenderEffect(() => className(_el$
|
|
4326
|
-
createRenderEffect(() => _el$
|
|
4327
|
-
return _el$
|
|
4200
|
+
var _el$32 = _tmpl$12(), _el$33 = _el$32.firstChild, _el$34 = _el$33.nextSibling, _el$35 = _el$34.firstChild;
|
|
4201
|
+
_el$33.$$keydown = handleKeyDown;
|
|
4202
|
+
_el$33.$$input = handleInput;
|
|
4203
|
+
var _ref$3 = inputRef;
|
|
4204
|
+
typeof _ref$3 === "function" ? use(_ref$3, _el$33) : inputRef = _el$33;
|
|
4205
|
+
_el$34.$$click = handleSubmit;
|
|
4206
|
+
createRenderEffect(() => className(_el$35, cn("w-2.5 h-[9px] shrink-0 bg-cover bg-center transition-opacity duration-100", props.inputValue ? "opacity-[0.99]" : "opacity-50")));
|
|
4207
|
+
createRenderEffect(() => _el$33.value = props.inputValue ?? "");
|
|
4208
|
+
return _el$32;
|
|
4328
4209
|
}
|
|
4329
4210
|
}), null);
|
|
4330
|
-
return _el$
|
|
4211
|
+
return _el$29;
|
|
4331
4212
|
}
|
|
4332
4213
|
}), null);
|
|
4333
4214
|
createRenderEffect((_p$) => {
|
|
4334
4215
|
var _v$3 = `${computedPosition().top}px`, _v$4 = `${computedPosition().left}px`, _v$5 = props.visible ? "auto" : "none", _v$6 = props.status === "fading" ? 0 : 1, _v$7 = props.status === "copied" || props.status === "fading" ? "none" : void 0;
|
|
4335
|
-
_v$3 !== _p$.e && setStyleProperty(_el$
|
|
4336
|
-
_v$4 !== _p$.t && setStyleProperty(_el$
|
|
4337
|
-
_v$5 !== _p$.a && setStyleProperty(_el$
|
|
4338
|
-
_v$6 !== _p$.o && setStyleProperty(_el$
|
|
4339
|
-
_v$7 !== _p$.i && setStyleProperty(_el$
|
|
4216
|
+
_v$3 !== _p$.e && setStyleProperty(_el$0, "top", _p$.e = _v$3);
|
|
4217
|
+
_v$4 !== _p$.t && setStyleProperty(_el$0, "left", _p$.t = _v$4);
|
|
4218
|
+
_v$5 !== _p$.a && setStyleProperty(_el$0, "pointer-events", _p$.a = _v$5);
|
|
4219
|
+
_v$6 !== _p$.o && setStyleProperty(_el$0, "opacity", _p$.o = _v$6);
|
|
4220
|
+
_v$7 !== _p$.i && setStyleProperty(_el$12, "display", _p$.i = _v$7);
|
|
4340
4221
|
return _p$;
|
|
4341
4222
|
}, {
|
|
4342
4223
|
e: void 0,
|
|
@@ -4345,14 +4226,14 @@ var SelectionLabel = (props) => {
|
|
|
4345
4226
|
o: void 0,
|
|
4346
4227
|
i: void 0
|
|
4347
4228
|
});
|
|
4348
|
-
return _el$
|
|
4229
|
+
return _el$0;
|
|
4349
4230
|
}
|
|
4350
4231
|
});
|
|
4351
4232
|
};
|
|
4352
4233
|
delegateEvents(["click", "mousedown", "input", "keydown"]);
|
|
4353
4234
|
|
|
4354
4235
|
// src/components/selection-cursor.tsx
|
|
4355
|
-
var _tmpl$
|
|
4236
|
+
var _tmpl$15 = /* @__PURE__ */ template(`<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>`);
|
|
4356
4237
|
var SelectionCursor = (props) => {
|
|
4357
4238
|
const [isHovered, setIsHovered] = createSignal(false);
|
|
4358
4239
|
const [debouncedVisible, setDebouncedVisible] = createSignal(false);
|
|
@@ -4389,7 +4270,7 @@ var SelectionCursor = (props) => {
|
|
|
4389
4270
|
});
|
|
4390
4271
|
}
|
|
4391
4272
|
}), (() => {
|
|
4392
|
-
var _el$ = _tmpl$
|
|
4273
|
+
var _el$ = _tmpl$15(), _el$2 = _el$.firstChild;
|
|
4393
4274
|
_el$.addEventListener("mouseleave", () => setIsHovered(false));
|
|
4394
4275
|
_el$.addEventListener("mouseenter", () => setIsHovered(true));
|
|
4395
4276
|
_el$2.$$click = handleClick;
|
|
@@ -4417,6 +4298,9 @@ var SelectionCursor = (props) => {
|
|
|
4417
4298
|
get selectionBounds() {
|
|
4418
4299
|
return props.elementBounds;
|
|
4419
4300
|
},
|
|
4301
|
+
get mouseX() {
|
|
4302
|
+
return props.x;
|
|
4303
|
+
},
|
|
4420
4304
|
visible: true,
|
|
4421
4305
|
get onSubmit() {
|
|
4422
4306
|
return props.onClick;
|
|
@@ -4430,10 +4314,6 @@ var SelectionCursor = (props) => {
|
|
|
4430
4314
|
delegateEvents(["click"]);
|
|
4431
4315
|
|
|
4432
4316
|
// src/components/renderer.tsx
|
|
4433
|
-
var truncateStatus = (status, maxLength = 30) => {
|
|
4434
|
-
if (status.length <= maxLength) return status;
|
|
4435
|
-
return `${status.slice(0, maxLength)}\u2026`;
|
|
4436
|
-
};
|
|
4437
4317
|
var ReactGrabRenderer = (props) => {
|
|
4438
4318
|
return [createComponent(Show, {
|
|
4439
4319
|
get when() {
|
|
@@ -4523,13 +4403,19 @@ var ReactGrabRenderer = (props) => {
|
|
|
4523
4403
|
get selectionBounds() {
|
|
4524
4404
|
return session.selectionBounds;
|
|
4525
4405
|
},
|
|
4406
|
+
get mouseX() {
|
|
4407
|
+
return session.position.x;
|
|
4408
|
+
},
|
|
4526
4409
|
visible: true,
|
|
4527
4410
|
hasAgent: true,
|
|
4528
4411
|
get status() {
|
|
4529
4412
|
return session.isStreaming ? "copying" : "copied";
|
|
4530
4413
|
},
|
|
4531
4414
|
get statusText() {
|
|
4532
|
-
return
|
|
4415
|
+
return session.lastStatus || "Please wait\u2026";
|
|
4416
|
+
},
|
|
4417
|
+
get inputValue() {
|
|
4418
|
+
return session.context.prompt;
|
|
4533
4419
|
},
|
|
4534
4420
|
onAbort: () => props.onAbortSession?.(session.id)
|
|
4535
4421
|
})]
|
|
@@ -4548,6 +4434,9 @@ var ReactGrabRenderer = (props) => {
|
|
|
4548
4434
|
get selectionBounds() {
|
|
4549
4435
|
return props.selectionBounds;
|
|
4550
4436
|
},
|
|
4437
|
+
get mouseX() {
|
|
4438
|
+
return props.mouseX;
|
|
4439
|
+
},
|
|
4551
4440
|
get visible() {
|
|
4552
4441
|
return props.selectionLabelVisible;
|
|
4553
4442
|
},
|
|
@@ -4603,6 +4492,9 @@ var ReactGrabRenderer = (props) => {
|
|
|
4603
4492
|
get selectionBounds() {
|
|
4604
4493
|
return instance.bounds;
|
|
4605
4494
|
},
|
|
4495
|
+
get mouseX() {
|
|
4496
|
+
return instance.mouseX;
|
|
4497
|
+
},
|
|
4606
4498
|
visible: true,
|
|
4607
4499
|
get status() {
|
|
4608
4500
|
return instance.status;
|
|
@@ -4643,8 +4535,8 @@ var ReactGrabRenderer = (props) => {
|
|
|
4643
4535
|
})];
|
|
4644
4536
|
};
|
|
4645
4537
|
|
|
4646
|
-
// ../../node_modules/.pnpm/bippy@0.5.
|
|
4647
|
-
var e = `0.5.
|
|
4538
|
+
// ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/rdt-hook-7WClMTWh.js
|
|
4539
|
+
var e = `0.5.25`;
|
|
4648
4540
|
var t = `bippy-${e}`;
|
|
4649
4541
|
var n = Object.defineProperty;
|
|
4650
4542
|
var r2 = Object.prototype.hasOwnProperty;
|
|
@@ -4731,10 +4623,7 @@ var _ = () => {
|
|
|
4731
4623
|
}
|
|
4732
4624
|
};
|
|
4733
4625
|
|
|
4734
|
-
// ../../node_modules/.pnpm/bippy@0.5.
|
|
4735
|
-
_();
|
|
4736
|
-
|
|
4737
|
-
// ../../node_modules/.pnpm/bippy@0.5.21_@types+react@19.2.2_react@19.2.0/node_modules/bippy/dist/core-_xno6DOO.js
|
|
4626
|
+
// ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/core-CoV0JPOT.js
|
|
4738
4627
|
var a2 = 0;
|
|
4739
4628
|
var o2 = 1;
|
|
4740
4629
|
var c2 = 5;
|
|
@@ -4747,17 +4636,6 @@ var y = 26;
|
|
|
4747
4636
|
var b = 27;
|
|
4748
4637
|
var ne = 28;
|
|
4749
4638
|
var re = 30;
|
|
4750
|
-
var k = (e2) => {
|
|
4751
|
-
switch (e2.tag) {
|
|
4752
|
-
case c2:
|
|
4753
|
-
case y:
|
|
4754
|
-
case b:
|
|
4755
|
-
return true;
|
|
4756
|
-
default:
|
|
4757
|
-
return typeof e2.type == `string`;
|
|
4758
|
-
}
|
|
4759
|
-
};
|
|
4760
|
-
var me = (e2) => !e2 || typeof e2 != `object` ? false : `pendingProps` in e2 && !(`containerInfo` in e2);
|
|
4761
4639
|
function N(e2, t2, n2 = false) {
|
|
4762
4640
|
if (!e2) return null;
|
|
4763
4641
|
let r3 = t2(e2);
|
|
@@ -4819,18 +4697,6 @@ var Ee = () => {
|
|
|
4819
4697
|
let e2 = h();
|
|
4820
4698
|
return !!e2._instrumentationIsActive || o() || l();
|
|
4821
4699
|
};
|
|
4822
|
-
var De = (e2) => {
|
|
4823
|
-
let t2 = e2.alternate;
|
|
4824
|
-
if (!t2) return e2;
|
|
4825
|
-
if (t2.actualStartTime && e2.actualStartTime) return t2.actualStartTime > e2.actualStartTime ? t2 : e2;
|
|
4826
|
-
for (let t3 of $) {
|
|
4827
|
-
let n2 = N(t3.current, (t4) => {
|
|
4828
|
-
if (t4 === e2) return true;
|
|
4829
|
-
});
|
|
4830
|
-
if (n2) return n2;
|
|
4831
|
-
}
|
|
4832
|
-
return e2;
|
|
4833
|
-
};
|
|
4834
4700
|
var Pe = (e2) => {
|
|
4835
4701
|
let n2 = h();
|
|
4836
4702
|
for (let t2 of n2.renderers.values()) try {
|
|
@@ -4844,243 +4710,79 @@ var Pe = (e2) => {
|
|
|
4844
4710
|
}
|
|
4845
4711
|
return null;
|
|
4846
4712
|
};
|
|
4847
|
-
var $ = /* @__PURE__ */ new Set();
|
|
4848
4713
|
|
|
4849
|
-
// ../../node_modules/.pnpm/bippy@0.5.
|
|
4850
|
-
var
|
|
4851
|
-
var
|
|
4852
|
-
var
|
|
4853
|
-
var
|
|
4854
|
-
var
|
|
4855
|
-
var
|
|
4856
|
-
var
|
|
4857
|
-
var
|
|
4858
|
-
if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 =
|
|
4714
|
+
// ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/source.js
|
|
4715
|
+
var g2 = Object.create;
|
|
4716
|
+
var _2 = Object.defineProperty;
|
|
4717
|
+
var v = Object.getOwnPropertyDescriptor;
|
|
4718
|
+
var y2 = Object.getOwnPropertyNames;
|
|
4719
|
+
var b2 = Object.getPrototypeOf;
|
|
4720
|
+
var x = Object.prototype.hasOwnProperty;
|
|
4721
|
+
var S = (e2, t2) => () => (t2 || e2((t2 = { exports: {} }).exports, t2), t2.exports);
|
|
4722
|
+
var ee2 = (e2, t2, n2, r3) => {
|
|
4723
|
+
if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 = y2(t2), a3 = 0, o3 = i2.length, s3; a3 < o3; a3++) s3 = i2[a3], !x.call(e2, s3) && s3 !== n2 && _2(e2, s3, { get: ((e3) => t2[e3]).bind(null, s3), enumerable: !(r3 = v(t2, s3)) || r3.enumerable });
|
|
4859
4724
|
return e2;
|
|
4860
4725
|
};
|
|
4861
|
-
var
|
|
4862
|
-
var
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
var
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
e2 && typeof e2 == `object` && (`H` in e2 ? e2.H = t2 : e2.current = t2);
|
|
4874
|
-
}
|
|
4875
|
-
};
|
|
4876
|
-
var w2 = (e2) => `
|
|
4877
|
-
in ${e2}`;
|
|
4878
|
-
var T2 = (e2, t2) => {
|
|
4879
|
-
let n2 = w2(e2);
|
|
4880
|
-
return t2 && (n2 += ` (at ${t2})`), n2;
|
|
4881
|
-
};
|
|
4882
|
-
var E = false;
|
|
4726
|
+
var C = (e2, t2, n2) => (n2 = e2 == null ? {} : g2(b2(e2)), ee2(_2(n2, `default`, { value: e2, enumerable: true }) , e2));
|
|
4727
|
+
var w = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
|
|
4728
|
+
var te2 = [`rsc://`, `file:///`, `webpack://`, `webpack-internal://`, `node:`, `turbopack://`, `metro://`, `/app-pages-browser/`];
|
|
4729
|
+
var T = `about://React/`;
|
|
4730
|
+
var ne2 = [`<anonymous>`, `eval`, ``];
|
|
4731
|
+
var re2 = /\.(jsx|tsx|ts|js)$/;
|
|
4732
|
+
var ie2 = /(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i;
|
|
4733
|
+
var ae2 = /^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/;
|
|
4734
|
+
var E = `(at Server)`;
|
|
4735
|
+
var oe2 = /(^|@)\S+:\d+/;
|
|
4736
|
+
var se2 = /^\s*at .*(\S+:\d+|\(native\))/m;
|
|
4737
|
+
var ce2 = /^(eval@)?(\[native code\])?$/;
|
|
4883
4738
|
var D = (e2, t2) => {
|
|
4884
|
-
|
|
4885
|
-
let n2 = Error.prepareStackTrace;
|
|
4886
|
-
Error.prepareStackTrace = void 0, E = true;
|
|
4887
|
-
let r3 = oe2();
|
|
4888
|
-
C2(null);
|
|
4889
|
-
let i2 = console.error, a3 = console.warn;
|
|
4890
|
-
console.error = () => {
|
|
4891
|
-
}, console.warn = () => {
|
|
4892
|
-
};
|
|
4893
|
-
try {
|
|
4894
|
-
let n3 = { DetermineComponentFrameRoot() {
|
|
4895
|
-
let n4;
|
|
4896
|
-
try {
|
|
4897
|
-
if (t2) {
|
|
4898
|
-
let t3 = function() {
|
|
4899
|
-
throw Error();
|
|
4900
|
-
};
|
|
4901
|
-
if (Object.defineProperty(t3.prototype, `props`, { set: function() {
|
|
4902
|
-
throw Error();
|
|
4903
|
-
} }), typeof Reflect == `object` && Reflect.construct) {
|
|
4904
|
-
try {
|
|
4905
|
-
Reflect.construct(t3, []);
|
|
4906
|
-
} catch (e3) {
|
|
4907
|
-
n4 = e3;
|
|
4908
|
-
}
|
|
4909
|
-
Reflect.construct(e2, [], t3);
|
|
4910
|
-
} else {
|
|
4911
|
-
try {
|
|
4912
|
-
t3.call();
|
|
4913
|
-
} catch (e3) {
|
|
4914
|
-
n4 = e3;
|
|
4915
|
-
}
|
|
4916
|
-
e2.call(t3.prototype);
|
|
4917
|
-
}
|
|
4918
|
-
} else {
|
|
4919
|
-
try {
|
|
4920
|
-
throw Error();
|
|
4921
|
-
} catch (e3) {
|
|
4922
|
-
n4 = e3;
|
|
4923
|
-
}
|
|
4924
|
-
let t3 = e2();
|
|
4925
|
-
t3 && typeof t3.catch == `function` && t3.catch(() => {
|
|
4926
|
-
});
|
|
4927
|
-
}
|
|
4928
|
-
} catch (e3) {
|
|
4929
|
-
if (e3 instanceof Error && n4 instanceof Error && typeof e3.stack == `string`) return [e3.stack, n4.stack];
|
|
4930
|
-
}
|
|
4931
|
-
return [null, null];
|
|
4932
|
-
} };
|
|
4933
|
-
n3.DetermineComponentFrameRoot.displayName = `DetermineComponentFrameRoot`;
|
|
4934
|
-
let r4 = Object.getOwnPropertyDescriptor(n3.DetermineComponentFrameRoot, `name`);
|
|
4935
|
-
r4?.configurable && Object.defineProperty(n3.DetermineComponentFrameRoot, `name`, { value: `DetermineComponentFrameRoot` });
|
|
4936
|
-
let [i3, a4] = n3.DetermineComponentFrameRoot();
|
|
4937
|
-
if (i3 && a4) {
|
|
4938
|
-
let t3 = i3.split(`
|
|
4939
|
-
`), n4 = a4.split(`
|
|
4940
|
-
`), r5 = 0, o4 = 0;
|
|
4941
|
-
for (; r5 < t3.length && !t3[r5].includes(`DetermineComponentFrameRoot`); ) r5++;
|
|
4942
|
-
for (; o4 < n4.length && !n4[o4].includes(`DetermineComponentFrameRoot`); ) o4++;
|
|
4943
|
-
if (r5 === t3.length || o4 === n4.length) for (r5 = t3.length - 1, o4 = n4.length - 1; r5 >= 1 && o4 >= 0 && t3[r5] !== n4[o4]; ) o4--;
|
|
4944
|
-
for (; r5 >= 1 && o4 >= 0; r5--, o4--) if (t3[r5] !== n4[o4]) {
|
|
4945
|
-
if (r5 !== 1 || o4 !== 1) do
|
|
4946
|
-
if (r5--, o4--, o4 < 0 || t3[r5] !== n4[o4]) {
|
|
4947
|
-
let n5 = `
|
|
4948
|
-
${t3[r5].replace(` at new `, ` at `)}`, i4 = Te(e2);
|
|
4949
|
-
return i4 && n5.includes(`<anonymous>`) && (n5 = n5.replace(`<anonymous>`, i4)), n5;
|
|
4950
|
-
}
|
|
4951
|
-
while (r5 >= 1 && o4 >= 0);
|
|
4952
|
-
break;
|
|
4953
|
-
}
|
|
4954
|
-
}
|
|
4955
|
-
} finally {
|
|
4956
|
-
E = false, Error.prepareStackTrace = n2, C2(r3), console.error = i2, console.warn = a3;
|
|
4957
|
-
}
|
|
4958
|
-
let o3 = e2 ? Te(e2) : ``, s3 = o3 ? w2(o3) : ``;
|
|
4959
|
-
return s3;
|
|
4960
|
-
};
|
|
4961
|
-
var se2 = (e2, t2) => {
|
|
4962
|
-
let m3 = e2.tag, h3 = ``;
|
|
4963
|
-
switch (m3) {
|
|
4964
|
-
case ne:
|
|
4965
|
-
h3 = w2(`Activity`);
|
|
4966
|
-
break;
|
|
4967
|
-
case o2:
|
|
4968
|
-
h3 = D(e2.type, true);
|
|
4969
|
-
break;
|
|
4970
|
-
case f2:
|
|
4971
|
-
h3 = D(e2.type.render, false);
|
|
4972
|
-
break;
|
|
4973
|
-
case a2:
|
|
4974
|
-
case h2:
|
|
4975
|
-
h3 = D(e2.type, false);
|
|
4976
|
-
break;
|
|
4977
|
-
case c2:
|
|
4978
|
-
case y:
|
|
4979
|
-
case b:
|
|
4980
|
-
h3 = w2(e2.type);
|
|
4981
|
-
break;
|
|
4982
|
-
case ee:
|
|
4983
|
-
h3 = w2(`Lazy`);
|
|
4984
|
-
break;
|
|
4985
|
-
case p2:
|
|
4986
|
-
h3 = e2.child !== t2 && t2 !== null ? w2(`Suspense Fallback`) : w2(`Suspense`);
|
|
4987
|
-
break;
|
|
4988
|
-
case te:
|
|
4989
|
-
h3 = w2(`SuspenseList`);
|
|
4990
|
-
break;
|
|
4991
|
-
case re:
|
|
4992
|
-
h3 = w2(`ViewTransition`);
|
|
4993
|
-
break;
|
|
4994
|
-
default:
|
|
4995
|
-
return ``;
|
|
4996
|
-
}
|
|
4997
|
-
return h3;
|
|
4998
|
-
};
|
|
4999
|
-
var ce2 = (e2) => {
|
|
5000
|
-
try {
|
|
5001
|
-
let t2 = ``, n2 = e2, r3 = null;
|
|
5002
|
-
do {
|
|
5003
|
-
t2 += se2(n2, r3);
|
|
5004
|
-
let e3 = n2._debugInfo;
|
|
5005
|
-
if (e3 && Array.isArray(e3)) for (let n3 = e3.length - 1; n3 >= 0; n3--) {
|
|
5006
|
-
let r4 = e3[n3];
|
|
5007
|
-
typeof r4.name == `string` && (t2 += T2(r4.name, r4.env));
|
|
5008
|
-
}
|
|
5009
|
-
r3 = n2, n2 = n2.return;
|
|
5010
|
-
} while (n2);
|
|
5011
|
-
return t2;
|
|
5012
|
-
} catch (e3) {
|
|
5013
|
-
return e3 instanceof Error ? `
|
|
5014
|
-
Error generating stack: ${e3.message}
|
|
5015
|
-
${e3.stack}` : ``;
|
|
5016
|
-
}
|
|
5017
|
-
};
|
|
5018
|
-
var le2 = (e2) => {
|
|
5019
|
-
let t2 = Error.prepareStackTrace;
|
|
5020
|
-
Error.prepareStackTrace = void 0;
|
|
5021
|
-
let n2 = e2;
|
|
5022
|
-
if (!n2) return ``;
|
|
5023
|
-
Error.prepareStackTrace = t2, n2.startsWith(`Error: react-stack-top-frame
|
|
5024
|
-
`) && (n2 = n2.slice(29));
|
|
5025
|
-
let r3 = n2.indexOf(`
|
|
5026
|
-
`);
|
|
5027
|
-
if (r3 !== -1 && (n2 = n2.slice(r3 + 1)), r3 = Math.max(n2.indexOf(`react_stack_bottom_frame`), n2.indexOf(`react-stack-bottom-frame`)), r3 !== -1 && (r3 = n2.lastIndexOf(`
|
|
5028
|
-
`, r3)), r3 !== -1) n2 = n2.slice(0, r3);
|
|
5029
|
-
else return ``;
|
|
5030
|
-
return n2;
|
|
5031
|
-
};
|
|
5032
|
-
var O2 = /(^|@)\S+:\d+/;
|
|
5033
|
-
var k2 = /^\s*at .*(\S+:\d+|\(native\))/m;
|
|
5034
|
-
var ue2 = /^(eval@)?(\[native code\])?$/;
|
|
5035
|
-
var j2 = (e2, t2) => {
|
|
5036
|
-
if (t2?.includeInElement !== false) {
|
|
4739
|
+
{
|
|
5037
4740
|
let n2 = e2.split(`
|
|
5038
4741
|
`), r3 = [];
|
|
5039
4742
|
for (let e3 of n2) if (/^\s*at\s+/.test(e3)) {
|
|
5040
|
-
let t3 =
|
|
4743
|
+
let t3 = A(e3, void 0)[0];
|
|
5041
4744
|
t3 && r3.push(t3);
|
|
5042
4745
|
} else if (/^\s*in\s+/.test(e3)) {
|
|
5043
4746
|
let t3 = e3.replace(/^\s*in\s+/, ``).replace(/\s*\(at .*\)$/, ``);
|
|
5044
|
-
r3.push({
|
|
5045
|
-
} else if (e3.match(
|
|
5046
|
-
let t3 =
|
|
4747
|
+
r3.push({ functionName: t3, source: e3 });
|
|
4748
|
+
} else if (e3.match(oe2)) {
|
|
4749
|
+
let t3 = j(e3, void 0)[0];
|
|
5047
4750
|
t3 && r3.push(t3);
|
|
5048
4751
|
}
|
|
5049
|
-
return
|
|
4752
|
+
return k(r3, t2);
|
|
5050
4753
|
}
|
|
5051
|
-
return e2.match(k2) ? P2(e2, t2) : F2(e2, t2);
|
|
5052
4754
|
};
|
|
5053
|
-
var
|
|
4755
|
+
var O2 = (e2) => {
|
|
5054
4756
|
if (!e2.includes(`:`)) return [e2, void 0, void 0];
|
|
5055
4757
|
let t2 = /(.+?)(?::(\d+))?(?::(\d+))?$/, n2 = t2.exec(e2.replace(/[()]/g, ``));
|
|
5056
4758
|
return [n2[1], n2[2] || void 0, n2[3] || void 0];
|
|
5057
4759
|
};
|
|
5058
|
-
var
|
|
5059
|
-
var
|
|
5060
|
-
let n2 =
|
|
5061
|
-
`).filter((e3) => !!e3.match(
|
|
4760
|
+
var k = (e2, t2) => t2 && t2.slice != null ? Array.isArray(t2.slice) ? e2.slice(t2.slice[0], t2.slice[1]) : e2.slice(0, t2.slice) : e2;
|
|
4761
|
+
var A = (e2, t2) => {
|
|
4762
|
+
let n2 = k(e2.split(`
|
|
4763
|
+
`).filter((e3) => !!e3.match(se2)), t2);
|
|
5062
4764
|
return n2.map((e3) => {
|
|
5063
4765
|
let t3 = e3;
|
|
5064
4766
|
t3.includes(`(eval `) && (t3 = t3.replace(/eval code/g, `eval`).replace(/(\(eval at [^()]*)|(,.*$)/g, ``));
|
|
5065
4767
|
let n3 = t3.replace(/^\s+/, ``).replace(/\(eval code/g, `(`).replace(/^.*?\s+/, ``), r3 = n3.match(/ (\(.+\)$)/);
|
|
5066
4768
|
n3 = r3 ? n3.replace(r3[0], ``) : n3;
|
|
5067
|
-
let i2 =
|
|
5068
|
-
return {
|
|
4769
|
+
let i2 = O2(r3 ? r3[1] : n3), a3 = r3 && n3 || void 0, o3 = [`eval`, `<anonymous>`].includes(i2[0]) ? void 0 : i2[0];
|
|
4770
|
+
return { functionName: a3, fileName: o3, lineNumber: i2[1] ? +i2[1] : void 0, columnNumber: i2[2] ? +i2[2] : void 0, source: t3 };
|
|
5069
4771
|
});
|
|
5070
4772
|
};
|
|
5071
|
-
var
|
|
5072
|
-
let n2 =
|
|
5073
|
-
`).filter((e3) => !e3.match(
|
|
4773
|
+
var j = (e2, t2) => {
|
|
4774
|
+
let n2 = k(e2.split(`
|
|
4775
|
+
`).filter((e3) => !e3.match(ce2)), t2);
|
|
5074
4776
|
return n2.map((e3) => {
|
|
5075
4777
|
let t3 = e3;
|
|
5076
|
-
if (t3.includes(` > eval`) && (t3 = t3.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, `:$1`)), !t3.includes(`@`) && !t3.includes(`:`)) return {
|
|
4778
|
+
if (t3.includes(` > eval`) && (t3 = t3.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, `:$1`)), !t3.includes(`@`) && !t3.includes(`:`)) return { functionName: t3 };
|
|
5077
4779
|
{
|
|
5078
|
-
let e4 = /(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/, n3 = t3.match(e4), r3 = n3 && n3[1] ? n3[1] : void 0, i2 =
|
|
5079
|
-
return {
|
|
4780
|
+
let e4 = /(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/, n3 = t3.match(e4), r3 = n3 && n3[1] ? n3[1] : void 0, i2 = O2(t3.replace(e4, ``));
|
|
4781
|
+
return { functionName: r3, fileName: i2[0], lineNumber: i2[1] ? +i2[1] : void 0, columnNumber: i2[2] ? +i2[2] : void 0, source: t3 };
|
|
5080
4782
|
}
|
|
5081
4783
|
});
|
|
5082
4784
|
};
|
|
5083
|
-
var
|
|
4785
|
+
var pe = S((exports, t2) => {
|
|
5084
4786
|
(function(n2, r3) {
|
|
5085
4787
|
typeof exports == `object` && t2 !== void 0 ? r3(exports) : typeof define == `function` && define.amd ? define([`exports`], r3) : (n2 = typeof globalThis < `u` ? globalThis : n2 || self, r3(n2.sourcemapCodec = {}));
|
|
5086
4788
|
})(void 0, function(e2) {
|
|
@@ -5171,10 +4873,10 @@ var me2 = re2((exports, t2) => {
|
|
|
5171
4873
|
}
|
|
5172
4874
|
function h3(e3) {
|
|
5173
4875
|
let t4 = new d3();
|
|
5174
|
-
for (let n3 = 0; n3 < e3.length; ) n3 =
|
|
4876
|
+
for (let n3 = 0; n3 < e3.length; ) n3 = g4(e3, n3, t4, [0]);
|
|
5175
4877
|
return t4.flush();
|
|
5176
4878
|
}
|
|
5177
|
-
function
|
|
4879
|
+
function g4(e3, n3, r4, i3) {
|
|
5178
4880
|
let a4 = e3[n3], { 0: o4, 1: c4, 2: l4, 3: u4, 4: d4, vars: f4 } = a4;
|
|
5179
4881
|
n3 > 0 && r4.write(t3), i3[0] = s3(r4, o4, i3[0]), s3(r4, c4, 0), s3(r4, d4, 0);
|
|
5180
4882
|
let p4 = a4.length === 6 ? 1 : 0;
|
|
@@ -5183,12 +4885,12 @@ var me2 = re2((exports, t2) => {
|
|
|
5183
4885
|
for (n3++; n3 < e3.length; ) {
|
|
5184
4886
|
let t4 = e3[n3], { 0: a5, 1: o5 } = t4;
|
|
5185
4887
|
if (a5 > l4 || a5 === l4 && o5 >= u4) break;
|
|
5186
|
-
n3 =
|
|
4888
|
+
n3 = g4(e3, n3, r4, i3);
|
|
5187
4889
|
}
|
|
5188
4890
|
return r4.write(t3), i3[0] = s3(r4, l4, i3[0]), s3(r4, u4, 0), n3;
|
|
5189
4891
|
}
|
|
5190
|
-
function
|
|
5191
|
-
let { length: t4 } = e3, n3 = new f3(e3), r4 = [], i3 = [], a4 = 0, s4 = 0, l4 = 0, u4 = 0, d4 = 0, m4 = 0, h4 = 0,
|
|
4892
|
+
function _4(e3) {
|
|
4893
|
+
let { length: t4 } = e3, n3 = new f3(e3), r4 = [], i3 = [], a4 = 0, s4 = 0, l4 = 0, u4 = 0, d4 = 0, m4 = 0, h4 = 0, g5 = 0;
|
|
5192
4894
|
do {
|
|
5193
4895
|
let e4 = n3.indexOf(`;`), t5 = 0;
|
|
5194
4896
|
for (; n3.pos < e4; n3.pos++) {
|
|
@@ -5197,12 +4899,12 @@ var me2 = re2((exports, t2) => {
|
|
|
5197
4899
|
e5[2] = a4, e5[3] = t5;
|
|
5198
4900
|
continue;
|
|
5199
4901
|
}
|
|
5200
|
-
let f4 = o3(n3, 0),
|
|
5201
|
-
if (
|
|
4902
|
+
let f4 = o3(n3, 0), _5 = f4 & 1, v4 = f4 & 2, y4 = f4 & 4, b4 = null, x4 = p3, S4;
|
|
4903
|
+
if (_5) {
|
|
5202
4904
|
let e5 = o3(n3, s4);
|
|
5203
4905
|
l4 = o3(n3, s4 === e5 ? l4 : 0), s4 = e5, S4 = [a4, t5, 0, 0, e5, l4];
|
|
5204
4906
|
} else S4 = [a4, t5, 0, 0];
|
|
5205
|
-
if (S4.isScope = !!
|
|
4907
|
+
if (S4.isScope = !!y4, v4) {
|
|
5206
4908
|
let e5 = u4, t6 = d4;
|
|
5207
4909
|
u4 = o3(n3, u4);
|
|
5208
4910
|
let r5 = e5 === u4;
|
|
@@ -5211,15 +4913,15 @@ var me2 = re2((exports, t2) => {
|
|
|
5211
4913
|
if (S4.callsite = b4, c3(n3, e4)) {
|
|
5212
4914
|
x4 = [];
|
|
5213
4915
|
do {
|
|
5214
|
-
h4 = a4,
|
|
4916
|
+
h4 = a4, g5 = t5;
|
|
5215
4917
|
let e5 = o3(n3, 0), r5;
|
|
5216
4918
|
if (e5 < -1) {
|
|
5217
4919
|
r5 = [[o3(n3, 0)]];
|
|
5218
4920
|
for (let t6 = -1; t6 > e5; t6--) {
|
|
5219
4921
|
let e6 = h4;
|
|
5220
|
-
h4 = o3(n3, h4),
|
|
4922
|
+
h4 = o3(n3, h4), g5 = o3(n3, h4 === e6 ? g5 : 0);
|
|
5221
4923
|
let t7 = o3(n3, 0);
|
|
5222
|
-
r5.push([t7, h4,
|
|
4924
|
+
r5.push([t7, h4, g5]);
|
|
5223
4925
|
}
|
|
5224
4926
|
} else r5 = [[e5]];
|
|
5225
4927
|
x4.push(r5);
|
|
@@ -5231,13 +4933,13 @@ var me2 = re2((exports, t2) => {
|
|
|
5231
4933
|
} while (n3.pos < t4);
|
|
5232
4934
|
return r4;
|
|
5233
4935
|
}
|
|
5234
|
-
function
|
|
4936
|
+
function v3(e3) {
|
|
5235
4937
|
if (e3.length === 0) return ``;
|
|
5236
4938
|
let t4 = new d3();
|
|
5237
|
-
for (let n3 = 0; n3 < e3.length; ) n3 =
|
|
4939
|
+
for (let n3 = 0; n3 < e3.length; ) n3 = y3(e3, n3, t4, [0, 0, 0, 0, 0, 0, 0]);
|
|
5238
4940
|
return t4.flush();
|
|
5239
4941
|
}
|
|
5240
|
-
function
|
|
4942
|
+
function y3(e3, n3, r4, i3) {
|
|
5241
4943
|
let a4 = e3[n3], { 0: o4, 1: c4, 2: l4, 3: u4, isScope: d4, callsite: f4, bindings: p4 } = a4;
|
|
5242
4944
|
i3[0] < o4 ? (b3(r4, i3[0], o4), i3[0] = o4, i3[1] = 0) : n3 > 0 && r4.write(t3), i3[1] = s3(r4, a4[1], i3[1]);
|
|
5243
4945
|
let m4 = (a4.length === 6 ? 1 : 0) | (f4 ? 2 : 0) | (d4 ? 4 : 0);
|
|
@@ -5262,7 +4964,7 @@ var me2 = re2((exports, t2) => {
|
|
|
5262
4964
|
for (n3++; n3 < e3.length; ) {
|
|
5263
4965
|
let t4 = e3[n3], { 0: a5, 1: o5 } = t4;
|
|
5264
4966
|
if (a5 > l4 || a5 === l4 && o5 >= u4) break;
|
|
5265
|
-
n3 =
|
|
4967
|
+
n3 = y3(e3, n3, r4, i3);
|
|
5266
4968
|
}
|
|
5267
4969
|
return i3[0] < l4 ? (b3(r4, i3[0], l4), i3[0] = l4, i3[1] = 0) : r4.write(t3), i3[1] = s3(r4, u4, i3[1]), n3;
|
|
5268
4970
|
}
|
|
@@ -5289,7 +4991,7 @@ var me2 = re2((exports, t2) => {
|
|
|
5289
4991
|
function ee3(e3, t4) {
|
|
5290
4992
|
return e3[0] - t4[0];
|
|
5291
4993
|
}
|
|
5292
|
-
function
|
|
4994
|
+
function C3(e3) {
|
|
5293
4995
|
let r4 = new d3(), i3 = 0, a4 = 0, o4 = 0, c4 = 0;
|
|
5294
4996
|
for (let l4 = 0; l4 < e3.length; l4++) {
|
|
5295
4997
|
let u4 = e3[l4];
|
|
@@ -5302,18 +5004,18 @@ var me2 = re2((exports, t2) => {
|
|
|
5302
5004
|
}
|
|
5303
5005
|
return r4.flush();
|
|
5304
5006
|
}
|
|
5305
|
-
e2.decode = x3, e2.decodeGeneratedRanges =
|
|
5007
|
+
e2.decode = x3, e2.decodeGeneratedRanges = _4, e2.decodeOriginalScopes = m3, e2.encode = C3, e2.encodeGeneratedRanges = v3, e2.encodeOriginalScopes = h3, Object.defineProperty(e2, `__esModule`, { value: true });
|
|
5306
5008
|
});
|
|
5307
5009
|
});
|
|
5308
|
-
var
|
|
5309
|
-
var
|
|
5310
|
-
var
|
|
5311
|
-
var
|
|
5312
|
-
var
|
|
5313
|
-
var
|
|
5314
|
-
var
|
|
5315
|
-
var
|
|
5316
|
-
var
|
|
5010
|
+
var F2 = C(pe());
|
|
5011
|
+
var I2 = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
|
|
5012
|
+
var me = /^data:application\/json[^,]+base64,/;
|
|
5013
|
+
var he = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/;
|
|
5014
|
+
var L = typeof WeakRef < `u`;
|
|
5015
|
+
var R = /* @__PURE__ */ new Map();
|
|
5016
|
+
var z = /* @__PURE__ */ new Map();
|
|
5017
|
+
var ge = (e2) => L && e2 instanceof WeakRef;
|
|
5018
|
+
var B = (e2, t2, n2, r3) => {
|
|
5317
5019
|
if (n2 < 0 || n2 >= e2.length) return null;
|
|
5318
5020
|
let i2 = e2[n2];
|
|
5319
5021
|
if (!i2 || i2.length === 0) return null;
|
|
@@ -5326,49 +5028,49 @@ var W2 = (e2, t2, n2, r3) => {
|
|
|
5326
5028
|
let l3 = t2[o3];
|
|
5327
5029
|
return l3 ? { columnNumber: c3, fileName: l3, lineNumber: s3 + 1 } : null;
|
|
5328
5030
|
};
|
|
5329
|
-
var
|
|
5031
|
+
var V = (e2, t2, n2) => {
|
|
5330
5032
|
if (e2.sections) {
|
|
5331
5033
|
let r3 = null;
|
|
5332
5034
|
for (let i3 of e2.sections) if (t2 > i3.offset.line || t2 === i3.offset.line && n2 >= i3.offset.column) r3 = i3;
|
|
5333
5035
|
else break;
|
|
5334
5036
|
if (!r3) return null;
|
|
5335
5037
|
let i2 = t2 - r3.offset.line, a3 = t2 === r3.offset.line ? n2 - r3.offset.column : n2;
|
|
5336
|
-
return
|
|
5038
|
+
return B(r3.map.mappings, r3.map.sources, i2, a3);
|
|
5337
5039
|
}
|
|
5338
|
-
return
|
|
5040
|
+
return B(e2.mappings, e2.sources, t2 - 1, n2);
|
|
5339
5041
|
};
|
|
5340
|
-
var
|
|
5042
|
+
var _e = (e2, t2) => {
|
|
5341
5043
|
let n2 = t2.split(`
|
|
5342
5044
|
`), r3;
|
|
5343
5045
|
for (let e3 = n2.length - 1; e3 >= 0 && !r3; e3--) {
|
|
5344
|
-
let t3 = n2[e3].match(
|
|
5046
|
+
let t3 = n2[e3].match(he);
|
|
5345
5047
|
t3 && (r3 = t3[1] || t3[2]);
|
|
5346
5048
|
}
|
|
5347
5049
|
if (!r3) return null;
|
|
5348
|
-
let i2 =
|
|
5349
|
-
if (!(
|
|
5050
|
+
let i2 = I2.test(r3);
|
|
5051
|
+
if (!(me.test(r3) || i2 || r3.startsWith(`/`))) {
|
|
5350
5052
|
let t3 = e2.split(`/`);
|
|
5351
5053
|
t3[t3.length - 1] = r3, r3 = t3.join(`/`);
|
|
5352
5054
|
}
|
|
5353
5055
|
return r3;
|
|
5354
5056
|
};
|
|
5355
|
-
var
|
|
5356
|
-
var
|
|
5357
|
-
let t2 = e2.sections.map(({ map: e3, offset: t3 }) => ({ map: { ...e3, mappings: (0,
|
|
5057
|
+
var ve = (e2) => ({ file: e2.file, mappings: (0, F2.decode)(e2.mappings), names: e2.names, sourceRoot: e2.sourceRoot, sources: e2.sources, sourcesContent: e2.sourcesContent, version: 3 });
|
|
5058
|
+
var ye = (e2) => {
|
|
5059
|
+
let t2 = e2.sections.map(({ map: e3, offset: t3 }) => ({ map: { ...e3, mappings: (0, F2.decode)(e3.mappings) }, offset: t3 })), n2 = /* @__PURE__ */ new Set();
|
|
5358
5060
|
for (let e3 of t2) for (let t3 of e3.map.sources) n2.add(t3);
|
|
5359
5061
|
return { file: e2.file, mappings: [], names: [], sections: t2, sourceRoot: void 0, sources: Array.from(n2), sourcesContent: void 0, version: 3 };
|
|
5360
5062
|
};
|
|
5361
|
-
var
|
|
5063
|
+
var H = (e2) => {
|
|
5362
5064
|
if (!e2) return false;
|
|
5363
5065
|
let t2 = e2.trim();
|
|
5364
5066
|
if (!t2) return false;
|
|
5365
|
-
let n2 = t2.match(
|
|
5067
|
+
let n2 = t2.match(I2);
|
|
5366
5068
|
if (!n2) return true;
|
|
5367
5069
|
let r3 = n2[0].toLowerCase();
|
|
5368
5070
|
return r3 === `http:` || r3 === `https:`;
|
|
5369
5071
|
};
|
|
5370
|
-
var
|
|
5371
|
-
if (!
|
|
5072
|
+
var U = async (e2, t2 = fetch) => {
|
|
5073
|
+
if (!H(e2)) return null;
|
|
5372
5074
|
let n2;
|
|
5373
5075
|
try {
|
|
5374
5076
|
let r4 = await t2(e2);
|
|
@@ -5377,105 +5079,284 @@ var q = async (e2, t2 = fetch) => {
|
|
|
5377
5079
|
return null;
|
|
5378
5080
|
}
|
|
5379
5081
|
if (!n2) return null;
|
|
5380
|
-
let r3 =
|
|
5381
|
-
if (!r3 || !
|
|
5082
|
+
let r3 = _e(e2, n2);
|
|
5083
|
+
if (!r3 || !H(r3)) return null;
|
|
5382
5084
|
try {
|
|
5383
5085
|
let e3 = await t2(r3), n3 = await e3.json();
|
|
5384
|
-
return `sections` in n3 ?
|
|
5086
|
+
return `sections` in n3 ? ye(n3) : ve(n3);
|
|
5385
5087
|
} catch {
|
|
5386
5088
|
return null;
|
|
5387
5089
|
}
|
|
5388
5090
|
};
|
|
5389
|
-
var
|
|
5390
|
-
if (t2 &&
|
|
5391
|
-
let t3 =
|
|
5091
|
+
var W = async (e2, t2 = true, n2) => {
|
|
5092
|
+
if (t2 && R.has(e2)) {
|
|
5093
|
+
let t3 = R.get(e2);
|
|
5392
5094
|
if (t3 == null) return null;
|
|
5393
|
-
if (
|
|
5095
|
+
if (ge(t3)) {
|
|
5394
5096
|
let n3 = t3.deref();
|
|
5395
5097
|
if (n3) return n3;
|
|
5396
|
-
|
|
5098
|
+
R.delete(e2);
|
|
5397
5099
|
} else return t3;
|
|
5398
5100
|
}
|
|
5399
|
-
if (t2 &&
|
|
5400
|
-
let r3 =
|
|
5401
|
-
t2 &&
|
|
5101
|
+
if (t2 && z.has(e2)) return z.get(e2);
|
|
5102
|
+
let r3 = U(e2, n2);
|
|
5103
|
+
t2 && z.set(e2, r3);
|
|
5402
5104
|
let i2 = await r3;
|
|
5403
|
-
return t2 &&
|
|
5404
|
-
};
|
|
5405
|
-
var xe2 = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
|
|
5406
|
-
var Se2 = [`rsc://`, `file:///`, `webpack://`, `webpack-internal://`, `node:`, `turbopack://`, `metro://`, `/app-pages-browser/`];
|
|
5407
|
-
var Ce2 = `about://React/`;
|
|
5408
|
-
var we2 = [`<anonymous>`, `eval`, ``];
|
|
5409
|
-
var Te2 = /\.(jsx|tsx|ts|js)$/;
|
|
5410
|
-
var Ee2 = /(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i;
|
|
5411
|
-
var De2 = /^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/;
|
|
5412
|
-
var Y = (e2) => e2?.fileName != null;
|
|
5413
|
-
var Oe = (e2) => e2._debugStack instanceof Error && typeof e2._debugStack?.stack == `string`;
|
|
5414
|
-
var ke2 = (e2) => {
|
|
5415
|
-
let t2 = e2._debugSource;
|
|
5416
|
-
return t2 ? typeof t2 == `object` && !!t2 && `fileName` in t2 && typeof t2.fileName == `string` && `lineNumber` in t2 && typeof t2.lineNumber == `number` : false;
|
|
5105
|
+
return t2 && z.delete(e2), t2 && (i2 === null ? R.set(e2, null) : R.set(e2, L ? new WeakRef(i2) : i2)), i2;
|
|
5417
5106
|
};
|
|
5418
|
-
var
|
|
5419
|
-
if (
|
|
5420
|
-
|
|
5421
|
-
|
|
5107
|
+
var G = async (e2, t2 = true, n2) => await Promise.all(e2.map(async (e3) => {
|
|
5108
|
+
if (!e3.fileName) return e3;
|
|
5109
|
+
let r3 = await W(e3.fileName, t2, n2);
|
|
5110
|
+
if (!r3 || typeof e3.lineNumber != `number` || typeof e3.columnNumber != `number`) return e3;
|
|
5111
|
+
let i2 = V(r3, e3.lineNumber, e3.columnNumber);
|
|
5112
|
+
return i2 ? { ...e3, source: i2.fileName && e3.source ? e3.source.replace(e3.fileName, i2.fileName) : e3.source, fileName: i2.fileName, lineNumber: i2.lineNumber, columnNumber: i2.columnNumber, isSymbolicated: true } : e3;
|
|
5113
|
+
}));
|
|
5114
|
+
var K = (e2) => e2._debugStack instanceof Error && typeof e2._debugStack?.stack == `string`;
|
|
5115
|
+
var be = () => {
|
|
5116
|
+
let n2 = h();
|
|
5117
|
+
for (let t2 of [...Array.from(d), ...Array.from(n2.renderers.values())]) {
|
|
5118
|
+
let e2 = t2.currentDispatcherRef;
|
|
5119
|
+
if (e2 && typeof e2 == `object`) return `H` in e2 ? e2.H : e2.current;
|
|
5422
5120
|
}
|
|
5423
|
-
let r3 = X2(e2), i2 = await Z(r3, 2 ** 53 - 1, t2, n2);
|
|
5424
|
-
if (!i2 || i2.length === 0) return null;
|
|
5425
|
-
for (let e3 of i2) if (Y(e3)) return e3;
|
|
5426
5121
|
return null;
|
|
5427
5122
|
};
|
|
5428
|
-
var
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
}
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5123
|
+
var q = (t2) => {
|
|
5124
|
+
for (let n2 of d) {
|
|
5125
|
+
let e2 = n2.currentDispatcherRef;
|
|
5126
|
+
e2 && typeof e2 == `object` && (`H` in e2 ? e2.H = t2 : e2.current = t2);
|
|
5127
|
+
}
|
|
5128
|
+
};
|
|
5129
|
+
var J = (e2) => `
|
|
5130
|
+
in ${e2}`;
|
|
5131
|
+
var Y = (e2, t2) => {
|
|
5132
|
+
let n2 = J(e2);
|
|
5133
|
+
return t2 && (n2 += ` (at ${t2})`), n2;
|
|
5134
|
+
};
|
|
5135
|
+
var X = false;
|
|
5136
|
+
var Z = (e2, t2) => {
|
|
5137
|
+
if (!e2 || X) return ``;
|
|
5138
|
+
let n2 = Error.prepareStackTrace;
|
|
5139
|
+
Error.prepareStackTrace = void 0, X = true;
|
|
5140
|
+
let r3 = be();
|
|
5141
|
+
q(null);
|
|
5142
|
+
let i2 = console.error, a3 = console.warn;
|
|
5143
|
+
console.error = () => {
|
|
5144
|
+
}, console.warn = () => {
|
|
5145
|
+
};
|
|
5146
|
+
try {
|
|
5147
|
+
let n3 = { DetermineComponentFrameRoot() {
|
|
5148
|
+
let n4;
|
|
5149
|
+
try {
|
|
5150
|
+
if (t2) {
|
|
5151
|
+
let t3 = function() {
|
|
5152
|
+
throw Error();
|
|
5153
|
+
};
|
|
5154
|
+
if (Object.defineProperty(t3.prototype, `props`, { set: function() {
|
|
5155
|
+
throw Error();
|
|
5156
|
+
} }), typeof Reflect == `object` && Reflect.construct) {
|
|
5157
|
+
try {
|
|
5158
|
+
Reflect.construct(t3, []);
|
|
5159
|
+
} catch (e3) {
|
|
5160
|
+
n4 = e3;
|
|
5161
|
+
}
|
|
5162
|
+
Reflect.construct(e2, [], t3);
|
|
5163
|
+
} else {
|
|
5164
|
+
try {
|
|
5165
|
+
t3.call();
|
|
5166
|
+
} catch (e3) {
|
|
5167
|
+
n4 = e3;
|
|
5168
|
+
}
|
|
5169
|
+
e2.call(t3.prototype);
|
|
5170
|
+
}
|
|
5171
|
+
} else {
|
|
5172
|
+
try {
|
|
5173
|
+
throw Error();
|
|
5174
|
+
} catch (e3) {
|
|
5175
|
+
n4 = e3;
|
|
5176
|
+
}
|
|
5177
|
+
let t3 = e2();
|
|
5178
|
+
t3 && typeof t3.catch == `function` && t3.catch(() => {
|
|
5179
|
+
});
|
|
5180
|
+
}
|
|
5181
|
+
} catch (e3) {
|
|
5182
|
+
if (e3 instanceof Error && n4 instanceof Error && typeof e3.stack == `string`) return [e3.stack, n4.stack];
|
|
5183
|
+
}
|
|
5184
|
+
return [null, null];
|
|
5185
|
+
} };
|
|
5186
|
+
n3.DetermineComponentFrameRoot.displayName = `DetermineComponentFrameRoot`;
|
|
5187
|
+
let r4 = Object.getOwnPropertyDescriptor(n3.DetermineComponentFrameRoot, `name`);
|
|
5188
|
+
r4?.configurable && Object.defineProperty(n3.DetermineComponentFrameRoot, `name`, { value: `DetermineComponentFrameRoot` });
|
|
5189
|
+
let [i3, a4] = n3.DetermineComponentFrameRoot();
|
|
5190
|
+
if (i3 && a4) {
|
|
5191
|
+
let t3 = i3.split(`
|
|
5192
|
+
`), n4 = a4.split(`
|
|
5193
|
+
`), r5 = 0, o4 = 0;
|
|
5194
|
+
for (; r5 < t3.length && !t3[r5].includes(`DetermineComponentFrameRoot`); ) r5++;
|
|
5195
|
+
for (; o4 < n4.length && !n4[o4].includes(`DetermineComponentFrameRoot`); ) o4++;
|
|
5196
|
+
if (r5 === t3.length || o4 === n4.length) for (r5 = t3.length - 1, o4 = n4.length - 1; r5 >= 1 && o4 >= 0 && t3[r5] !== n4[o4]; ) o4--;
|
|
5197
|
+
for (; r5 >= 1 && o4 >= 0; r5--, o4--) if (t3[r5] !== n4[o4]) {
|
|
5198
|
+
if (r5 !== 1 || o4 !== 1) do
|
|
5199
|
+
if (r5--, o4--, o4 < 0 || t3[r5] !== n4[o4]) {
|
|
5200
|
+
let n5 = `
|
|
5201
|
+
${t3[r5].replace(` at new `, ` at `)}`, i4 = Te(e2);
|
|
5202
|
+
return i4 && n5.includes(`<anonymous>`) && (n5 = n5.replace(`<anonymous>`, i4)), n5;
|
|
5203
|
+
}
|
|
5204
|
+
while (r5 >= 1 && o4 >= 0);
|
|
5205
|
+
break;
|
|
5442
5206
|
}
|
|
5443
5207
|
}
|
|
5444
|
-
|
|
5208
|
+
} finally {
|
|
5209
|
+
X = false, Error.prepareStackTrace = n2, q(r3), console.error = i2, console.warn = a3;
|
|
5210
|
+
}
|
|
5211
|
+
let o3 = e2 ? Te(e2) : ``, s3 = o3 ? J(o3) : ``;
|
|
5212
|
+
return s3;
|
|
5213
|
+
};
|
|
5214
|
+
var xe = (e2, t2) => {
|
|
5215
|
+
let m3 = e2.tag, h3 = ``;
|
|
5216
|
+
switch (m3) {
|
|
5217
|
+
case ne:
|
|
5218
|
+
h3 = J(`Activity`);
|
|
5219
|
+
break;
|
|
5220
|
+
case o2:
|
|
5221
|
+
h3 = Z(e2.type, true);
|
|
5222
|
+
break;
|
|
5223
|
+
case f2:
|
|
5224
|
+
h3 = Z(e2.type.render, false);
|
|
5225
|
+
break;
|
|
5226
|
+
case a2:
|
|
5227
|
+
case h2:
|
|
5228
|
+
h3 = Z(e2.type, false);
|
|
5229
|
+
break;
|
|
5230
|
+
case c2:
|
|
5231
|
+
case y:
|
|
5232
|
+
case b:
|
|
5233
|
+
h3 = J(e2.type);
|
|
5234
|
+
break;
|
|
5235
|
+
case ee:
|
|
5236
|
+
h3 = J(`Lazy`);
|
|
5237
|
+
break;
|
|
5238
|
+
case p2:
|
|
5239
|
+
h3 = e2.child !== t2 && t2 !== null ? J(`Suspense Fallback`) : J(`Suspense`);
|
|
5240
|
+
break;
|
|
5241
|
+
case te:
|
|
5242
|
+
h3 = J(`SuspenseList`);
|
|
5243
|
+
break;
|
|
5244
|
+
case re:
|
|
5245
|
+
h3 = J(`ViewTransition`);
|
|
5246
|
+
break;
|
|
5247
|
+
default:
|
|
5248
|
+
return ``;
|
|
5249
|
+
}
|
|
5250
|
+
return h3;
|
|
5251
|
+
};
|
|
5252
|
+
var Se = (e2) => {
|
|
5253
|
+
try {
|
|
5254
|
+
let t2 = ``, n2 = e2, r3 = null;
|
|
5255
|
+
do {
|
|
5256
|
+
t2 += xe(n2, r3);
|
|
5257
|
+
let e3 = n2._debugInfo;
|
|
5258
|
+
if (e3 && Array.isArray(e3)) for (let n3 = e3.length - 1; n3 >= 0; n3--) {
|
|
5259
|
+
let r4 = e3[n3];
|
|
5260
|
+
typeof r4.name == `string` && (t2 += Y(r4.name, r4.env));
|
|
5261
|
+
}
|
|
5262
|
+
r3 = n2, n2 = n2.return;
|
|
5263
|
+
} while (n2);
|
|
5264
|
+
return t2;
|
|
5265
|
+
} catch (e3) {
|
|
5266
|
+
return e3 instanceof Error ? `
|
|
5267
|
+
Error generating stack: ${e3.message}
|
|
5268
|
+
${e3.stack}` : ``;
|
|
5269
|
+
}
|
|
5270
|
+
};
|
|
5271
|
+
var Ce = (e2) => {
|
|
5272
|
+
let t2 = Error.prepareStackTrace;
|
|
5273
|
+
Error.prepareStackTrace = void 0;
|
|
5274
|
+
let n2 = e2;
|
|
5275
|
+
if (!n2) return ``;
|
|
5276
|
+
Error.prepareStackTrace = t2, n2.startsWith(`Error: react-stack-top-frame
|
|
5277
|
+
`) && (n2 = n2.slice(29));
|
|
5278
|
+
let r3 = n2.indexOf(`
|
|
5279
|
+
`);
|
|
5280
|
+
if (r3 !== -1 && (n2 = n2.slice(r3 + 1)), r3 = Math.max(n2.indexOf(`react_stack_bottom_frame`), n2.indexOf(`react-stack-bottom-frame`)), r3 !== -1 && (r3 = n2.lastIndexOf(`
|
|
5281
|
+
`, r3)), r3 !== -1) n2 = n2.slice(0, r3);
|
|
5282
|
+
else return ``;
|
|
5283
|
+
return n2;
|
|
5284
|
+
};
|
|
5285
|
+
var we = (e2) => !!(e2.fileName?.startsWith(`rsc://`) && e2.functionName);
|
|
5286
|
+
var Te2 = (e2, t2) => e2.fileName === t2.fileName && e2.lineNumber === t2.lineNumber && e2.columnNumber === t2.columnNumber;
|
|
5287
|
+
var Ee2 = (e2) => {
|
|
5288
|
+
let t2 = /* @__PURE__ */ new Map();
|
|
5289
|
+
for (let n2 of e2) for (let e3 of n2.stackFrames) {
|
|
5290
|
+
if (!we(e3)) continue;
|
|
5291
|
+
let n3 = e3.functionName, r3 = t2.get(n3) ?? [], i2 = r3.some((t3) => Te2(t3, e3));
|
|
5292
|
+
i2 || (r3.push(e3), t2.set(n3, r3));
|
|
5445
5293
|
}
|
|
5446
|
-
return
|
|
5294
|
+
return t2;
|
|
5295
|
+
};
|
|
5296
|
+
var De = (e2, t2, n2) => {
|
|
5297
|
+
if (!e2.functionName) return { ...e2, isServer: true };
|
|
5298
|
+
let r3 = t2.get(e2.functionName);
|
|
5299
|
+
if (!r3 || r3.length === 0) return { ...e2, isServer: true };
|
|
5300
|
+
let i2 = n2.get(e2.functionName) ?? 0, a3 = r3[i2 % r3.length];
|
|
5301
|
+
return n2.set(e2.functionName, i2 + 1), { ...e2, isServer: true, fileName: a3.fileName, lineNumber: a3.lineNumber, columnNumber: a3.columnNumber, source: e2.source?.replace(E, `(${a3.fileName}:${a3.lineNumber}:${a3.columnNumber})`) };
|
|
5447
5302
|
};
|
|
5448
|
-
var
|
|
5449
|
-
|
|
5303
|
+
var Oe = (e2) => {
|
|
5304
|
+
let t2 = [];
|
|
5305
|
+
return N(e2, (e3) => {
|
|
5306
|
+
if (!K(e3)) return;
|
|
5307
|
+
let n2 = typeof e3.type == `string` ? e3.type : Te(e3.type) || `<anonymous>`;
|
|
5308
|
+
t2.push({ componentName: n2, stackFrames: D(Ce(e3._debugStack?.stack)) });
|
|
5309
|
+
}, true), t2;
|
|
5310
|
+
};
|
|
5311
|
+
var Q = async (e2, t2 = true, n2) => {
|
|
5312
|
+
let r3 = Oe(e2), i2 = D(Se(e2)), a3 = Ee2(r3), o3 = /* @__PURE__ */ new Map(), s3 = i2.map((e3) => {
|
|
5313
|
+
let t3 = e3.source?.includes(E) ?? false;
|
|
5314
|
+
return t3 ? De(e3, a3, o3) : e3;
|
|
5315
|
+
}), c3 = s3.filter((e3, t3, n3) => {
|
|
5316
|
+
if (t3 === 0) return true;
|
|
5317
|
+
let r4 = n3[t3 - 1];
|
|
5318
|
+
return e3.functionName !== r4.functionName;
|
|
5319
|
+
});
|
|
5320
|
+
return G(c3, t2, n2);
|
|
5321
|
+
};
|
|
5322
|
+
var $ = (e2) => {
|
|
5323
|
+
if (!e2 || ne2.includes(e2)) return ``;
|
|
5450
5324
|
let t2 = e2;
|
|
5451
|
-
if (t2.startsWith(
|
|
5452
|
-
let e3 = t2.slice(
|
|
5453
|
-
t2 = n3 !== -1 && (
|
|
5325
|
+
if (t2.startsWith(T)) {
|
|
5326
|
+
let e3 = t2.slice(T.length), n3 = e3.indexOf(`/`), r4 = e3.indexOf(`:`);
|
|
5327
|
+
t2 = n3 !== -1 && (r4 === -1 || n3 < r4) ? e3.slice(n3 + 1) : e3;
|
|
5454
5328
|
}
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5329
|
+
let n2 = true;
|
|
5330
|
+
for (; n2; ) {
|
|
5331
|
+
n2 = false;
|
|
5332
|
+
for (let e3 of te2) if (t2.startsWith(e3)) {
|
|
5333
|
+
t2 = t2.slice(e3.length), e3 === `file:///` && (t2 = `/${t2.replace(/^\/+/, ``)}`), n2 = true;
|
|
5334
|
+
break;
|
|
5335
|
+
}
|
|
5458
5336
|
}
|
|
5459
|
-
if (
|
|
5460
|
-
let e3 = t2.match(
|
|
5337
|
+
if (w.test(t2)) {
|
|
5338
|
+
let e3 = t2.match(w);
|
|
5461
5339
|
e3 && (t2 = t2.slice(e3[0].length));
|
|
5462
5340
|
}
|
|
5463
|
-
let
|
|
5464
|
-
if (
|
|
5465
|
-
let e3 = t2.slice(
|
|
5466
|
-
|
|
5341
|
+
let r3 = t2.indexOf(`?`);
|
|
5342
|
+
if (r3 !== -1) {
|
|
5343
|
+
let e3 = t2.slice(r3);
|
|
5344
|
+
ae2.test(e3) && (t2 = t2.slice(0, r3));
|
|
5467
5345
|
}
|
|
5468
5346
|
return t2;
|
|
5469
5347
|
};
|
|
5470
|
-
var
|
|
5471
|
-
let t2 =
|
|
5472
|
-
return !(!t2 || !
|
|
5348
|
+
var je = (e2) => {
|
|
5349
|
+
let t2 = $(e2);
|
|
5350
|
+
return !(!t2 || !re2.test(t2) || ie2.test(t2));
|
|
5473
5351
|
};
|
|
5474
5352
|
|
|
5475
5353
|
// src/utils/is-capitalized.ts
|
|
5476
5354
|
var isCapitalized = (value) => value.length > 0 && /^[A-Z]/.test(value);
|
|
5477
5355
|
|
|
5478
|
-
//
|
|
5356
|
+
// ../../node_modules/.pnpm/bippy@0.5.25_@types+react@19.2.2_react@19.2.1/node_modules/bippy/dist/install-hook-only-CTBENLgG.js
|
|
5357
|
+
_();
|
|
5358
|
+
|
|
5359
|
+
// src/context.ts
|
|
5479
5360
|
var NEXT_INTERNAL_COMPONENT_NAMES = /* @__PURE__ */ new Set([
|
|
5480
5361
|
"InnerLayoutRouter",
|
|
5481
5362
|
"RedirectErrorBoundary",
|
|
@@ -5499,11 +5380,14 @@ var NEXT_INTERNAL_COMPONENT_NAMES = /* @__PURE__ */ new Set([
|
|
|
5499
5380
|
"AppRouter",
|
|
5500
5381
|
"ServerRoot",
|
|
5501
5382
|
"SegmentStateProvider",
|
|
5502
|
-
"RootErrorBoundary"
|
|
5383
|
+
"RootErrorBoundary",
|
|
5384
|
+
"LoadableComponent"
|
|
5503
5385
|
]);
|
|
5504
5386
|
var checkIsNextProject = () => {
|
|
5505
5387
|
if (typeof document === "undefined") return false;
|
|
5506
|
-
return Boolean(
|
|
5388
|
+
return Boolean(
|
|
5389
|
+
document.getElementById("__NEXT_DATA__") || document.querySelector("nextjs-portal")
|
|
5390
|
+
);
|
|
5507
5391
|
};
|
|
5508
5392
|
var checkIsInternalComponentName = (name) => {
|
|
5509
5393
|
if (name.startsWith("_")) return true;
|
|
@@ -5519,105 +5403,60 @@ var checkIsSourceComponentName = (name) => {
|
|
|
5519
5403
|
};
|
|
5520
5404
|
var getStack = async (element) => {
|
|
5521
5405
|
if (!Ee()) return [];
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
const ownerStack = X2(maybeFiber);
|
|
5526
|
-
const sources = await Z(ownerStack);
|
|
5527
|
-
if (sources && sources.length > 0) {
|
|
5528
|
-
const stack = [];
|
|
5529
|
-
for (const source of sources) {
|
|
5530
|
-
if (source.functionName && !checkIsInternalComponentName(source.functionName)) {
|
|
5531
|
-
stack.push({
|
|
5532
|
-
name: source.functionName,
|
|
5533
|
-
source: source.fileName ? {
|
|
5534
|
-
fileName: source.fileName,
|
|
5535
|
-
lineNumber: source.lineNumber,
|
|
5536
|
-
columnNumber: source.columnNumber
|
|
5537
|
-
} : null
|
|
5538
|
-
});
|
|
5539
|
-
}
|
|
5540
|
-
}
|
|
5541
|
-
if (stack.length > 0) {
|
|
5542
|
-
return stack;
|
|
5543
|
-
}
|
|
5544
|
-
}
|
|
5545
|
-
const fiber = De(maybeFiber);
|
|
5546
|
-
const unresolvedStack = [];
|
|
5547
|
-
N(
|
|
5548
|
-
fiber,
|
|
5549
|
-
(currentFiber) => {
|
|
5550
|
-
const displayName = k(currentFiber) ? typeof currentFiber.type === "string" ? currentFiber.type : null : Te(currentFiber);
|
|
5551
|
-
if (displayName && !checkIsInternalComponentName(displayName)) {
|
|
5552
|
-
unresolvedStack.push({
|
|
5553
|
-
name: displayName,
|
|
5554
|
-
sourcePromise: Ae2(currentFiber)
|
|
5555
|
-
});
|
|
5556
|
-
}
|
|
5557
|
-
},
|
|
5558
|
-
true
|
|
5559
|
-
);
|
|
5560
|
-
const resolvedStack = await Promise.all(
|
|
5561
|
-
unresolvedStack.map(async (frame) => ({
|
|
5562
|
-
name: frame.name,
|
|
5563
|
-
source: await frame.sourcePromise
|
|
5564
|
-
}))
|
|
5565
|
-
);
|
|
5566
|
-
return resolvedStack.filter((frame) => frame.source !== null);
|
|
5567
|
-
} catch {
|
|
5568
|
-
return [];
|
|
5569
|
-
}
|
|
5406
|
+
const fiber = Pe(element);
|
|
5407
|
+
if (!fiber) return null;
|
|
5408
|
+
return await Q(fiber);
|
|
5570
5409
|
};
|
|
5571
5410
|
var getNearestComponentName = async (element) => {
|
|
5411
|
+
if (Ee()) return null;
|
|
5572
5412
|
const stack = await getStack(element);
|
|
5413
|
+
if (!stack) return null;
|
|
5573
5414
|
for (const frame of stack) {
|
|
5574
|
-
if (checkIsSourceComponentName(frame.
|
|
5575
|
-
return frame.
|
|
5415
|
+
if (frame.functionName && checkIsSourceComponentName(frame.functionName)) {
|
|
5416
|
+
return frame.functionName;
|
|
5576
5417
|
}
|
|
5577
5418
|
}
|
|
5578
5419
|
return null;
|
|
5579
5420
|
};
|
|
5580
|
-
var
|
|
5421
|
+
var getElementContext = async (element, options = {}) => {
|
|
5422
|
+
const { maxLines = 3 } = options;
|
|
5581
5423
|
const html = getHTMLPreview(element);
|
|
5582
5424
|
const stack = await getStack(element);
|
|
5583
5425
|
const isNextProject = checkIsNextProject();
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
${clientComponentName ? ` in ${clientComponentName}` : ""} at ${fileName}`;
|
|
5611
|
-
if (isNextProject && lineNumber && columnNumber) {
|
|
5612
|
-
result += `:${lineNumber}:${columnNumber}`;
|
|
5426
|
+
const stackContext = [];
|
|
5427
|
+
if (stack) {
|
|
5428
|
+
for (const frame of stack) {
|
|
5429
|
+
if (stackContext.length >= maxLines) break;
|
|
5430
|
+
if (frame.isServer && (!frame.functionName || checkIsSourceComponentName(frame.functionName))) {
|
|
5431
|
+
stackContext.push(
|
|
5432
|
+
`
|
|
5433
|
+
in ${frame.functionName || "<anonymous>"} (at Server)`
|
|
5434
|
+
);
|
|
5435
|
+
continue;
|
|
5436
|
+
}
|
|
5437
|
+
if (frame.fileName && je(frame.fileName)) {
|
|
5438
|
+
let line = "\n in ";
|
|
5439
|
+
const hasComponentName = frame.functionName && checkIsSourceComponentName(frame.functionName);
|
|
5440
|
+
if (hasComponentName) {
|
|
5441
|
+
line += `${frame.functionName} (at `;
|
|
5442
|
+
}
|
|
5443
|
+
line += $(frame.fileName);
|
|
5444
|
+
if (isNextProject && frame.lineNumber && frame.columnNumber) {
|
|
5445
|
+
line += `:${frame.lineNumber}:${frame.columnNumber}`;
|
|
5446
|
+
}
|
|
5447
|
+
if (hasComponentName) {
|
|
5448
|
+
line += `)`;
|
|
5449
|
+
}
|
|
5450
|
+
stackContext.push(line);
|
|
5451
|
+
}
|
|
5613
5452
|
}
|
|
5614
5453
|
}
|
|
5615
|
-
return
|
|
5454
|
+
return `${html}${stackContext.join("")}`;
|
|
5616
5455
|
};
|
|
5617
5456
|
var getFileName = (stack) => {
|
|
5618
5457
|
for (const frame of stack) {
|
|
5619
|
-
if (frame.
|
|
5620
|
-
return
|
|
5458
|
+
if (frame.fileName && je(frame.fileName)) {
|
|
5459
|
+
return $(frame.fileName);
|
|
5621
5460
|
}
|
|
5622
5461
|
}
|
|
5623
5462
|
return null;
|
|
@@ -6165,9 +6004,9 @@ var updateSession = (session, updates, storage) => {
|
|
|
6165
6004
|
};
|
|
6166
6005
|
|
|
6167
6006
|
// src/utils/generate-snippet.ts
|
|
6168
|
-
var generateSnippet = async (elements) => {
|
|
6007
|
+
var generateSnippet = async (elements, options = {}) => {
|
|
6169
6008
|
const elementSnippetResults = await Promise.allSettled(
|
|
6170
|
-
elements.map((element) =>
|
|
6009
|
+
elements.map((element) => getElementContext(element, options))
|
|
6171
6010
|
);
|
|
6172
6011
|
const elementSnippets = elementSnippetResults.map((result) => result.status === "fulfilled" ? result.value : "").filter((snippet) => snippet.trim());
|
|
6173
6012
|
if (elementSnippets.length === 0) {
|
|
@@ -6311,7 +6150,7 @@ var createAgentManager = (initialAgentOptions) => {
|
|
|
6311
6150
|
const content = await generateSnippet(elements);
|
|
6312
6151
|
const context = { content, prompt, options: agentOptions?.getOptions?.() };
|
|
6313
6152
|
const tagName = (element.tagName || "").toLowerCase() || void 0;
|
|
6314
|
-
const componentName = getNearestComponentName(element) || void 0;
|
|
6153
|
+
const componentName = await getNearestComponentName(element) || void 0;
|
|
6315
6154
|
const session = createSession(context, position, selectionBounds, tagName, componentName);
|
|
6316
6155
|
session.lastStatus = "Please wait\u2026";
|
|
6317
6156
|
sessionElements.set(session.id, element);
|
|
@@ -6379,9 +6218,20 @@ var createAgentManager = (initialAgentOptions) => {
|
|
|
6379
6218
|
};
|
|
6380
6219
|
|
|
6381
6220
|
// src/core.tsx
|
|
6382
|
-
var _tmpl$
|
|
6221
|
+
var _tmpl$16 = /* @__PURE__ */ template(`<span class="tabular-nums align-middle">`);
|
|
6383
6222
|
var _tmpl$23 = /* @__PURE__ */ template(`<span class="font-mono tabular-nums align-middle"><<!>>`);
|
|
6384
6223
|
var _tmpl$33 = /* @__PURE__ */ template(`<span class="tabular-nums ml-1 align-middle"> in `);
|
|
6224
|
+
var onIdle = (callback) => {
|
|
6225
|
+
if ("scheduler" in globalThis) {
|
|
6226
|
+
return globalThis.scheduler.postTask(callback, {
|
|
6227
|
+
priority: "background"
|
|
6228
|
+
});
|
|
6229
|
+
}
|
|
6230
|
+
if ("requestIdleCallback" in window) {
|
|
6231
|
+
return requestIdleCallback(callback);
|
|
6232
|
+
}
|
|
6233
|
+
return setTimeout(callback, 0);
|
|
6234
|
+
};
|
|
6385
6235
|
var hasInited = false;
|
|
6386
6236
|
var getScriptOptions = () => {
|
|
6387
6237
|
if (typeof window === "undefined") return null;
|
|
@@ -6427,6 +6277,7 @@ var init = (rawOptions) => {
|
|
|
6427
6277
|
enabled: true,
|
|
6428
6278
|
keyHoldDuration: 200,
|
|
6429
6279
|
allowActivationInsideInput: true,
|
|
6280
|
+
maxContextLines: 3,
|
|
6430
6281
|
...scriptOptions,
|
|
6431
6282
|
...rawOptions
|
|
6432
6283
|
};
|
|
@@ -6461,7 +6312,7 @@ var init = (rawOptions) => {
|
|
|
6461
6312
|
hasInited = true;
|
|
6462
6313
|
const logIntro = () => {
|
|
6463
6314
|
try {
|
|
6464
|
-
const version = "0.0.
|
|
6315
|
+
const version = "0.0.61";
|
|
6465
6316
|
const logoDataUri = `data:image/svg+xml;base64,${btoa(LOGO_SVG)}`;
|
|
6466
6317
|
console.log(`%cReact Grab${version ? ` v${version}` : ""}%c
|
|
6467
6318
|
https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${logoDataUri}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`, "");
|
|
@@ -6486,6 +6337,8 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
|
|
|
6486
6337
|
const [isHoldingKeys, setIsHoldingKeys] = createSignal(false);
|
|
6487
6338
|
const [mouseX, setMouseX] = createSignal(OFFSCREEN_POSITION);
|
|
6488
6339
|
const [mouseY, setMouseY] = createSignal(OFFSCREEN_POSITION);
|
|
6340
|
+
const [detectedElement, setDetectedElement] = createSignal(null);
|
|
6341
|
+
let lastElementDetectionTime = 0;
|
|
6489
6342
|
const [isDragging, setIsDragging] = createSignal(false);
|
|
6490
6343
|
const [dragStartX, setDragStartX] = createSignal(OFFSCREEN_POSITION);
|
|
6491
6344
|
const [dragStartY, setDragStartY] = createSignal(OFFSCREEN_POSITION);
|
|
@@ -6625,7 +6478,7 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
|
|
|
6625
6478
|
}
|
|
6626
6479
|
}));
|
|
6627
6480
|
};
|
|
6628
|
-
const createLabelInstance = (bounds, tagName, componentName, status, element) => {
|
|
6481
|
+
const createLabelInstance = (bounds, tagName, componentName, status, element, mouseX2) => {
|
|
6629
6482
|
const instanceId = `label-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
6630
6483
|
setLabelInstances((prev) => [...prev, {
|
|
6631
6484
|
id: instanceId,
|
|
@@ -6634,7 +6487,8 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
|
|
|
6634
6487
|
componentName,
|
|
6635
6488
|
status,
|
|
6636
6489
|
createdAt: Date.now(),
|
|
6637
|
-
element
|
|
6490
|
+
element,
|
|
6491
|
+
mouseX: mouseX2
|
|
6638
6492
|
}]);
|
|
6639
6493
|
return instanceId;
|
|
6640
6494
|
};
|
|
@@ -6652,7 +6506,7 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
|
|
|
6652
6506
|
setCopyStartY(positionY);
|
|
6653
6507
|
setIsCopying(true);
|
|
6654
6508
|
startProgressAnimation();
|
|
6655
|
-
const instanceId = bounds && tagName ? createLabelInstance(bounds, tagName, componentName, "copying", element) : null;
|
|
6509
|
+
const instanceId = bounds && tagName ? createLabelInstance(bounds, tagName, componentName, "copying", element, positionX) : null;
|
|
6656
6510
|
await operation().finally(() => {
|
|
6657
6511
|
setIsCopying(false);
|
|
6658
6512
|
stopProgressAnimation();
|
|
@@ -6683,7 +6537,9 @@ https://react-grab.com`, `background: #330039; color: #ffffff; border: 1px solid
|
|
|
6683
6537
|
let copiedContent = "";
|
|
6684
6538
|
await options.onBeforeCopy?.(elements);
|
|
6685
6539
|
try {
|
|
6686
|
-
const elementSnippetResults = await Promise.allSettled(elements.map((element) =>
|
|
6540
|
+
const elementSnippetResults = await Promise.allSettled(elements.map((element) => getElementContext(element, {
|
|
6541
|
+
maxLines: options.maxContextLines
|
|
6542
|
+
})));
|
|
6687
6543
|
const elementSnippets = [];
|
|
6688
6544
|
for (const result of elementSnippetResults) {
|
|
6689
6545
|
if (result.status === "fulfilled" && result.value.trim()) {
|
|
@@ -6757,7 +6613,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6757
6613
|
};
|
|
6758
6614
|
const targetElement = createMemo(() => {
|
|
6759
6615
|
if (!isRendererActive() || isDragging()) return null;
|
|
6760
|
-
return
|
|
6616
|
+
return detectedElement();
|
|
6761
6617
|
});
|
|
6762
6618
|
createEffect(() => {
|
|
6763
6619
|
const element = targetElement();
|
|
@@ -6819,7 +6675,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6819
6675
|
const copying = isCopying();
|
|
6820
6676
|
if (!element) {
|
|
6821
6677
|
return (() => {
|
|
6822
|
-
var _el$ = _tmpl$
|
|
6678
|
+
var _el$ = _tmpl$16();
|
|
6823
6679
|
insert(_el$, copying ? "Please wait\u2026" : "1 element");
|
|
6824
6680
|
return _el$;
|
|
6825
6681
|
})();
|
|
@@ -6845,7 +6701,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6845
6701
|
})();
|
|
6846
6702
|
}
|
|
6847
6703
|
return (() => {
|
|
6848
|
-
var _el$10 = _tmpl$
|
|
6704
|
+
var _el$10 = _tmpl$16();
|
|
6849
6705
|
insert(_el$10, copying ? "Please wait\u2026" : "1 element");
|
|
6850
6706
|
return _el$10;
|
|
6851
6707
|
})();
|
|
@@ -6875,10 +6731,11 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6875
6731
|
return;
|
|
6876
6732
|
}
|
|
6877
6733
|
getStack(element).then((stack) => {
|
|
6734
|
+
if (!stack) return;
|
|
6878
6735
|
for (const frame of stack) {
|
|
6879
|
-
if (frame.
|
|
6880
|
-
setSelectionFilePath(
|
|
6881
|
-
setSelectionLineNumber(frame.
|
|
6736
|
+
if (frame.fileName && je(frame.fileName)) {
|
|
6737
|
+
setSelectionFilePath($(frame.fileName));
|
|
6738
|
+
setSelectionLineNumber(frame.lineNumber);
|
|
6882
6739
|
return;
|
|
6883
6740
|
}
|
|
6884
6741
|
}
|
|
@@ -6910,10 +6767,10 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6910
6767
|
} : null
|
|
6911
6768
|
});
|
|
6912
6769
|
}));
|
|
6913
|
-
createEffect(on(() => [isInputMode(), mouseX(), mouseY(), targetElement()], ([inputMode, x3,
|
|
6770
|
+
createEffect(on(() => [isInputMode(), mouseX(), mouseY(), targetElement()], ([inputMode, x3, y3, target]) => {
|
|
6914
6771
|
options.onInputModeChange?.(inputMode, {
|
|
6915
6772
|
x: x3,
|
|
6916
|
-
y:
|
|
6773
|
+
y: y3,
|
|
6917
6774
|
targetElement: target
|
|
6918
6775
|
});
|
|
6919
6776
|
}));
|
|
@@ -6923,10 +6780,10 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6923
6780
|
createEffect(on(() => [dragVisible(), dragBounds()], ([visible, bounds]) => {
|
|
6924
6781
|
options.onDragBox?.(Boolean(visible), bounds ?? null);
|
|
6925
6782
|
}));
|
|
6926
|
-
createEffect(on(() => [crosshairVisible(), mouseX(), mouseY()], ([visible, x3,
|
|
6783
|
+
createEffect(on(() => [crosshairVisible(), mouseX(), mouseY()], ([visible, x3, y3]) => {
|
|
6927
6784
|
options.onCrosshair?.(Boolean(visible), {
|
|
6928
6785
|
x: x3,
|
|
6929
|
-
y:
|
|
6786
|
+
y: y3
|
|
6930
6787
|
});
|
|
6931
6788
|
}));
|
|
6932
6789
|
createEffect(on(() => [labelVisible(), labelVariant(), labelContent(), cursorPosition()], ([visible, variant, content, position]) => {
|
|
@@ -6959,7 +6816,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
6959
6816
|
} else if (activated && dragging) {
|
|
6960
6817
|
setCursorOverride("crosshair");
|
|
6961
6818
|
} else if (activated && target) {
|
|
6962
|
-
setCursorOverride("
|
|
6819
|
+
setCursorOverride("default");
|
|
6963
6820
|
} else if (activated) {
|
|
6964
6821
|
setCursorOverride("crosshair");
|
|
6965
6822
|
} else {
|
|
@@ -7054,9 +6911,8 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7054
6911
|
options.agent?.onAbort?.(session, element);
|
|
7055
6912
|
if (element && document.contains(element)) {
|
|
7056
6913
|
const rect = element.getBoundingClientRect();
|
|
7057
|
-
const centerX = rect.left + rect.width / 2;
|
|
7058
6914
|
const centerY = rect.top + rect.height / 2;
|
|
7059
|
-
setMouseX(
|
|
6915
|
+
setMouseX(session.position.x);
|
|
7060
6916
|
setMouseY(centerY);
|
|
7061
6917
|
setFrozenElement(element);
|
|
7062
6918
|
setInputText(session.context.prompt);
|
|
@@ -7082,6 +6938,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7082
6938
|
return;
|
|
7083
6939
|
}
|
|
7084
6940
|
const bounds = createElementBounds(element);
|
|
6941
|
+
const labelPositionX = mouseX();
|
|
7085
6942
|
const currentX = bounds.x + bounds.width / 2;
|
|
7086
6943
|
const currentY = bounds.y + bounds.height / 2;
|
|
7087
6944
|
setMouseX(currentX);
|
|
@@ -7092,7 +6949,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7092
6949
|
element,
|
|
7093
6950
|
prompt,
|
|
7094
6951
|
position: {
|
|
7095
|
-
x:
|
|
6952
|
+
x: labelPositionX,
|
|
7096
6953
|
y: currentY
|
|
7097
6954
|
},
|
|
7098
6955
|
selectionBounds: bounds
|
|
@@ -7156,6 +7013,14 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7156
7013
|
if (isInputMode() || isToggleFrozen()) return;
|
|
7157
7014
|
setMouseX(clientX);
|
|
7158
7015
|
setMouseY(clientY);
|
|
7016
|
+
const now = performance.now();
|
|
7017
|
+
if (now - lastElementDetectionTime >= ELEMENT_DETECTION_THROTTLE_MS) {
|
|
7018
|
+
lastElementDetectionTime = now;
|
|
7019
|
+
onIdle(() => {
|
|
7020
|
+
const candidate = getElementAtPosition(clientX, clientY);
|
|
7021
|
+
setDetectedElement(candidate);
|
|
7022
|
+
});
|
|
7023
|
+
}
|
|
7159
7024
|
if (isDragging()) {
|
|
7160
7025
|
const direction = getAutoScrollDirection(clientX, clientY);
|
|
7161
7026
|
const isNearEdge = direction.top || direction.bottom || direction.left || direction.right;
|
|
@@ -7759,9 +7624,8 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7759
7624
|
newAgentOptions?.onAbort?.(session, element);
|
|
7760
7625
|
if (element && document.contains(element)) {
|
|
7761
7626
|
const rect = element.getBoundingClientRect();
|
|
7762
|
-
const centerX = rect.left + rect.width / 2;
|
|
7763
7627
|
const centerY = rect.top + rect.height / 2;
|
|
7764
|
-
setMouseX(
|
|
7628
|
+
setMouseX(session.position.x);
|
|
7765
7629
|
setMouseY(centerY);
|
|
7766
7630
|
setFrozenElement(element);
|
|
7767
7631
|
setInputText(session.context.prompt);
|
|
@@ -7783,7 +7647,7 @@ ${plainTextContentOnly}` : plainTextContentOnly;
|
|
|
7783
7647
|
};
|
|
7784
7648
|
/*! Bundled license information:
|
|
7785
7649
|
|
|
7786
|
-
bippy/dist/rdt-hook-
|
|
7650
|
+
bippy/dist/rdt-hook-7WClMTWh.js:
|
|
7787
7651
|
(**
|
|
7788
7652
|
* @license bippy
|
|
7789
7653
|
*
|
|
@@ -7793,7 +7657,7 @@ bippy/dist/rdt-hook-BE3UuUaz.js:
|
|
|
7793
7657
|
* LICENSE file in the root directory of this source tree.
|
|
7794
7658
|
*)
|
|
7795
7659
|
|
|
7796
|
-
bippy/dist/
|
|
7660
|
+
bippy/dist/core-CoV0JPOT.js:
|
|
7797
7661
|
(**
|
|
7798
7662
|
* @license bippy
|
|
7799
7663
|
*
|
|
@@ -7803,7 +7667,7 @@ bippy/dist/install-hook-only-_lLceJhv.js:
|
|
|
7803
7667
|
* LICENSE file in the root directory of this source tree.
|
|
7804
7668
|
*)
|
|
7805
7669
|
|
|
7806
|
-
bippy/dist/
|
|
7670
|
+
bippy/dist/source.js:
|
|
7807
7671
|
(**
|
|
7808
7672
|
* @license bippy
|
|
7809
7673
|
*
|
|
@@ -7813,7 +7677,7 @@ bippy/dist/core-_xno6DOO.js:
|
|
|
7813
7677
|
* LICENSE file in the root directory of this source tree.
|
|
7814
7678
|
*)
|
|
7815
7679
|
|
|
7816
|
-
bippy/dist/
|
|
7680
|
+
bippy/dist/install-hook-only-CTBENLgG.js:
|
|
7817
7681
|
(**
|
|
7818
7682
|
* @license bippy
|
|
7819
7683
|
*
|
|
@@ -7832,16 +7696,6 @@ bippy/dist/index.js:
|
|
|
7832
7696
|
* This source code is licensed under the MIT license found in the
|
|
7833
7697
|
* LICENSE file in the root directory of this source tree.
|
|
7834
7698
|
*)
|
|
7835
|
-
|
|
7836
|
-
bippy/dist/source.js:
|
|
7837
|
-
(**
|
|
7838
|
-
* @license bippy
|
|
7839
|
-
*
|
|
7840
|
-
* Copyright (c) Aiden Bai
|
|
7841
|
-
*
|
|
7842
|
-
* This source code is licensed under the MIT license found in the
|
|
7843
|
-
* LICENSE file in the root directory of this source tree.
|
|
7844
|
-
*)
|
|
7845
7699
|
*/
|
|
7846
7700
|
|
|
7847
|
-
export { DEFAULT_THEME, Ee,
|
|
7701
|
+
export { DEFAULT_THEME, Ee, generateSnippet, getElementContext, getFileName, getStack, init };
|