@react-grab/visual-edit 0.0.86 → 0.0.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.cts CHANGED
@@ -12,7 +12,7 @@ declare const createVisualEditAgentProvider: (options?: VisualEditAgentProviderO
12
12
  provider: AgentProvider<RequestContext>;
13
13
  getOptions: () => RequestContext;
14
14
  onStart: (session: AgentSession, element: Element | undefined) => void;
15
- onComplete: (session: AgentSession, element: Element | undefined) => AgentCompleteResult | void;
15
+ onComplete: (session: AgentSession, element: Element | undefined) => Promise<AgentCompleteResult | void>;
16
16
  onUndo: () => void;
17
17
  };
18
18
  declare global {
package/dist/client.d.ts CHANGED
@@ -12,7 +12,7 @@ declare const createVisualEditAgentProvider: (options?: VisualEditAgentProviderO
12
12
  provider: AgentProvider<RequestContext>;
13
13
  getOptions: () => RequestContext;
14
14
  onStart: (session: AgentSession, element: Element | undefined) => void;
15
- onComplete: (session: AgentSession, element: Element | undefined) => AgentCompleteResult | void;
15
+ onComplete: (session: AgentSession, element: Element | undefined) => Promise<AgentCompleteResult | void>;
16
16
  onUndo: () => void;
17
17
  };
18
18
  declare global {
@@ -1,6 +1,26 @@
1
- var ReactGrabVisualEdit=(function(exports){'use strict';var ot=(e,t)=>e===t,$e={equals:ot},it=De,ne=1,fe=2;var pe=null,te=null,Me=null,H=null,V=null,Q=null,me=0;function at(e,t){t=t?Object.assign({},$e,t):$e;let r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=a=>(typeof a=="function"&&(a=a(r.value)),Ie(r,a));return [st.bind(r),n]}function lt(e){if(H===null)return e();let t=H;H=null;try{return Me?Me.untrack(e):e()}finally{H=t;}}at(false);function st(){let e=te;if(this.sources&&this.state)if(this.state===ne)ze(this);else {let t=V;V=null,be(()=>ge(this)),V=t;}if(H){let t=this.observers?this.observers.length:0;H.sources?(H.sources.push(this),H.sourceSlots.push(t)):(H.sources=[this],H.sourceSlots=[t]),this.observers?(this.observers.push(H),this.observerSlots.push(H.sources.length-1)):(this.observers=[H],this.observerSlots=[H.sources.length-1]);}return e&&te.sources.has(this)?this.tValue:this.value}function Ie(e,t,r){let n=e.value;return (!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&be(()=>{for(let a=0;a<e.observers.length;a+=1){let i=e.observers[a],u=te&&te.running;u&&te.disposed.has(i)||((u?!i.tState:!i.state)&&(i.pure?V.push(i):Q.push(i),i.observers&&je(i)),u?i.tState=ne:i.state=ne);}if(V.length>1e6)throw V=[],new Error})),t}function ze(e){if(!e.fn)return;he(e);let t=me;ut(e,e.value,t);}function ut(e,t,r){let n,a=pe,i=H;H=pe=e;try{n=e.fn(t);}catch(u){return e.pure&&(e.state=ne,e.owned&&e.owned.forEach(he),e.owned=null),e.updatedAt=r+1,He(u)}finally{H=i,pe=a;}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?Ie(e,n):e.value=n,e.updatedAt=r);}function Fe(e){if(e.state===0)return;if(e.state===fe)return ge(e);if(e.suspense&&lt(e.suspense.inFallback))return e.suspense.effects.push(e);let r=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<me);)e.state&&r.push(e);for(let n=r.length-1;n>=0;n--)if(e=r[n],e.state===ne)ze(e);else if(e.state===fe){let a=V;V=null,be(()=>ge(e,r[0])),V=a;}}function be(e,t){if(V)return e();let r=false;(V=[]),Q?r=true:Q=[],me++;try{let n=e();return ct(r),n}catch(n){r||(Q=null),V=null,He(n);}}function ct(e){if(V&&(De(V),V=null),e)return;let t=Q;Q=null,t.length&&be(()=>it(t));}function De(e){for(let t=0;t<e.length;t++)Fe(e[t]);}function ge(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let n=e.sources[r];if(n.sources){let a=n.state;a===ne?n!==t&&(!n.updatedAt||n.updatedAt<me)&&Fe(n):a===fe&&ge(n,t);}}}function je(e){for(let t=0;t<e.observers.length;t+=1){let r=e.observers[t];!r.state&&(r.state=fe,r.pure?V.push(r):Q.push(r),r.observers&&je(r));}}function he(e){let t;if(e.sources)for(;e.sources.length;){let r=e.sources.pop(),n=e.sourceSlots.pop(),a=r.observers;if(a&&a.length){let i=a.pop(),u=r.observerSlots.pop();n<a.length&&(i.sourceSlots[u]=n,a[n]=i,r.observerSlots[n]=u);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)he(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)he(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}e.state=0;}function dt(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function He(e,t=pe){throw dt(e)}var Te="_$DX_DELEGATE";function C(e,t,r,n){let a,i=()=>{let f=document.createElement("template");return f.innerHTML=e,f.content.firstChild},u=()=>(a||(a=i())).cloneNode(true);return u.cloneNode=u,u}function Ue(e,t=window.document){let r=t[Te]||(t[Te]=new Set);for(let n=0,a=e.length;n<a;n++){let i=e[n];r.has(i)||(r.add(i),t.addEventListener(i,pt));}}function pt(e){let t=e.target,r=`$$${e.type}`,n=e.target,a=e.currentTarget,i=h=>Object.defineProperty(e,"target",{configurable:true,value:h}),u=()=>{let h=t[r];if(h&&!t.disabled){let m=t[`${r}Data`];if(m!==void 0?h.call(t,m,e):h.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),true},f=()=>{for(;u()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let h=e.composedPath();i(h[0]);for(let m=0;m<h.length-2&&(t=h[m],!!u());m++){if(t._$host){t=t._$host,f();break}if(t.parentNode===a)break}}else f();i(n);}var ft="0.0.86";var Ee="-",gt=e=>{let t=mt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return {getClassGroupId:a=>{let i=a.split(Ee);return i[0]===""&&i.length!==1&&i.shift(),Ve(i,t)||ht(a)},getConflictingClassGroupIds:(a,i)=>{let u=r[a]||[];return i&&n[a]?[...u,...n[a]]:u}}},Ve=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),a=n?Ve(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(Ee);return t.validators.find(({validator:u})=>u(i))?.classGroupId},Pe=/^\[(.+)\]$/,ht=e=>{if(Pe.test(e)){let t=Pe.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return "arbitrary.."+r}},mt=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return wt(Object.entries(e.classGroups),r).forEach(([a,i])=>{xe(i,n,a,t);}),n},xe=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:Be(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(bt(a)){xe(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,u])=>{xe(u,Be(t,i),r,n);});});},Be=(e,t)=>{let r=e;return t.split(Ee).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n);}),r},bt=e=>e.isThemeGetter,wt=(e,t)=>t?e.map(([r,n])=>{let a=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([u,f])=>[t+u,f])):i);return [r,a]}):e,vt=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map,a=(i,u)=>{r.set(i,u),t++,t>e&&(t=0,n=r,r=new Map);};return {get(i){let u=r.get(i);if(u!==void 0)return u;if((u=n.get(i))!==void 0)return a(i,u),u},set(i,u){r.has(i)?r.set(i,u):a(i,u);}}},Ke="!",yt=e=>{let{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],i=t.length,u=f=>{let h=[],m=0,L=0,D;for(let w=0;w<f.length;w++){let A=f[w];if(m===0){if(A===a&&(n||f.slice(w,w+i)===t)){h.push(f.slice(L,w)),L=w+i;continue}if(A==="/"){D=w;continue}}A==="["?m++:A==="]"&&m--;}let l=h.length===0?f:f.substring(L),b=l.startsWith(Ke),g=b?l.substring(1):l,d=D&&D>L?D-L:void 0;return {modifiers:h,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:d}};return r?f=>r({className:f,parseClassName:u}):u},xt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n);}),t.push(...r.sort()),t},Ct=e=>({cache:vt(e.cacheSize),parseClassName:yt(e),...gt(e)}),kt=/\s+/,St=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,i=[],u=e.trim().split(kt),f="";for(let h=u.length-1;h>=0;h-=1){let m=u[h],{modifiers:L,hasImportantModifier:D,baseClassName:l,maybePostfixModifierPosition:b}=r(m),g=!!b,d=n(g?l.substring(0,b):l);if(!d){if(!g){f=m+(f.length>0?" "+f:f);continue}if(d=n(l),!d){f=m+(f.length>0?" "+f:f);continue}g=false;}let w=xt(L).join(":"),A=D?w+Ke:w,y=A+d;if(i.includes(y))continue;i.push(y);let _=a(d,g);for(let x=0;x<_.length;++x){let R=_[x];i.push(A+R);}f=m+(f.length>0?" "+f:f);}return f};function Et(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=qe(t))&&(n&&(n+=" "),n+=r);return n}var qe=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=qe(e[n]))&&(r&&(r+=" "),r+=t);return r};function At(e,...t){let r,n,a,i=u;function u(h){let m=t.reduce((L,D)=>D(L),e());return r=Ct(m),n=r.cache.get,a=r.cache.set,i=f,f(h)}function f(h){let m=n(h);if(m)return m;let L=St(h,r);return a(h,L),L}return function(){return i(Et.apply(null,arguments))}}var B=e=>{let t=r=>r[e]||[];return t.isThemeGetter=true,t},We=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nt=/^\d+\/\d+$/,Lt=new Set(["px","full","screen"]),$t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Tt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>re(e)||Lt.has(e)||Nt.test(e),Y=e=>oe(e,"length",jt),re=e=>!!e&&!Number.isNaN(Number(e)),ye=e=>oe(e,"number",re),se=e=>!!e&&Number.isInteger(Number(e)),Rt=e=>e.endsWith("%")&&re(e.slice(0,-1)),k=e=>We.test(e),Z=e=>$t.test(e),Ot=new Set(["length","size","percentage"]),_t=e=>oe(e,Ot,Xe),It=e=>oe(e,"position",Xe),zt=new Set(["image","url"]),Ft=e=>oe(e,zt,Ut),Dt=e=>oe(e,"",Ht),ue=()=>true,oe=(e,t,r)=>{let n=We.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):false},jt=e=>Mt.test(e)&&!Tt.test(e),Xe=()=>false,Ht=e=>Pt.test(e),Ut=e=>Bt.test(e),Vt=()=>{let e=B("colors"),t=B("spacing"),r=B("blur"),n=B("brightness"),a=B("borderColor"),i=B("borderRadius"),u=B("borderSpacing"),f=B("borderWidth"),h=B("contrast"),m=B("grayscale"),L=B("hueRotate"),D=B("invert"),l=B("gap"),b=B("gradientColorStops"),g=B("gradientColorStopPositions"),d=B("inset"),w=B("margin"),A=B("opacity"),y=B("padding"),_=B("saturate"),x=B("scale"),R=B("sepia"),U=B("skew"),K=B("space"),I=B("translate"),j=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],p=()=>["auto",k,t],s=()=>[k,t],o=()=>["",G,Y],c=()=>["auto",re,k],v=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],S=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",k],P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[re,k];return {cacheSize:500,separator:":",theme:{colors:[ue],spacing:[G,Y],blur:["none","",Z,k],brightness:E(),borderColor:[e],borderRadius:["none","","full",Z,k],borderSpacing:s(),borderWidth:o(),contrast:E(),grayscale:M(),hueRotate:E(),invert:M(),gap:s(),gradientColorStops:[e],gradientColorStopPositions:[Rt,Y],inset:p(),margin:p(),opacity:E(),padding:s(),saturate:E(),scale:E(),sepia:M(),skew:E(),space:s(),translate:s()},classGroups:{aspect:[{aspect:["auto","square","video",k]}],container:["container"],columns:[{columns:[Z]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...v(),k]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[d]}],"inset-x":[{"inset-x":[d]}],"inset-y":[{"inset-y":[d]}],start:[{start:[d]}],end:[{end:[d]}],top:[{top:[d]}],right:[{right:[d]}],bottom:[{bottom:[d]}],left:[{left:[d]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",se,k]}],basis:[{basis:p()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",k]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",se,k]}],"grid-cols":[{"grid-cols":[ue]}],"col-start-end":[{col:["auto",{span:["full",se,k]},k]}],"col-start":[{"col-start":c()}],"col-end":[{"col-end":c()}],"grid-rows":[{"grid-rows":[ue]}],"row-start-end":[{row:["auto",{span:[se,k]},k]}],"row-start":[{"row-start":c()}],"row-end":[{"row-end":c()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",k]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",k]}],gap:[{gap:[l]}],"gap-x":[{"gap-x":[l]}],"gap-y":[{"gap-y":[l]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",k,t]}],"min-w":[{"min-w":[k,t,"min","max","fit"]}],"max-w":[{"max-w":[k,t,"none","full","min","max","fit","prose",{screen:[Z]},Z]}],h:[{h:[k,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[k,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Z,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ye]}],"font-family":[{font:[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",k]}],"line-clamp":[{"line-clamp":["none",re,ye]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,k]}],"list-image":[{"list-image":["none",k]}],"list-style-type":[{list:["none","disc","decimal",k]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...S(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,Y]}],"underline-offset":[{"underline-offset":["auto",G,k]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:s()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...v(),It]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_t]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ft]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...S(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:S()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...S()]}],"outline-offset":[{"outline-offset":[G,k]}],"outline-w":[{outline:[G,Y]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:o()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[G,Y]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Z,Dt]}],"shadow-color":[{shadow:[ue]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",Z,k]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[L]}],invert:[{invert:[D]}],saturate:[{saturate:[_]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L]}],"backdrop-invert":[{"backdrop-invert":[D]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",k]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",k]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",k]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[se,k]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",k]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":s()}],"scroll-mx":[{"scroll-mx":s()}],"scroll-my":[{"scroll-my":s()}],"scroll-ms":[{"scroll-ms":s()}],"scroll-me":[{"scroll-me":s()}],"scroll-mt":[{"scroll-mt":s()}],"scroll-mr":[{"scroll-mr":s()}],"scroll-mb":[{"scroll-mb":s()}],"scroll-ml":[{"scroll-ml":s()}],"scroll-p":[{"scroll-p":s()}],"scroll-px":[{"scroll-px":s()}],"scroll-py":[{"scroll-py":s()}],"scroll-ps":[{"scroll-ps":s()}],"scroll-pe":[{"scroll-pe":s()}],"scroll-pt":[{"scroll-pt":s()}],"scroll-pr":[{"scroll-pr":s()}],"scroll-pb":[{"scroll-pb":s()}],"scroll-pl":[{"scroll-pl":s()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,Y,ye]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};At(Vt);C("<div style=overflow:visible>");C('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">');C('<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">');C('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1=12 x2=12 y1=19 y2=22>');C('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 22 19"fill=none><path d="M6.76263 18.6626C7.48251 18.6626 7.95474 18.1682 7.95474 17.4895C7.95474 17.1207 7.80474 16.8576 7.58683 16.6361L5.3018 14.4137L2.84621 12.3589L2.44374 13.0037L5.92137 13.1622H17.9232C20.4842 13.1622 21.593 12.021 21.593 9.47237V3.66983C21.593 1.10875 20.4842 0 17.9232 0H12.5414C11.8179 0 11.3018 0.545895 11.3018 1.21695C11.3018 1.888 11.8179 2.43389 12.5414 2.43389H17.8424C18.7937 2.43389 19.1897 2.83653 19.1897 3.78784V9.35747C19.1897 10.3257 18.7937 10.7314 17.8424 10.7314H5.92137L2.44374 10.8832L2.84621 11.5281L5.3018 9.47993L7.58683 7.2606C7.80474 7.03914 7.95474 6.7693 7.95474 6.40049C7.95474 5.72854 7.48251 5.22747 6.76263 5.22747C6.46129 5.22747 6.12975 5.36905 5.89231 5.6096L0.376815 11.0425C0.134921 11.2777 0 11.6141 0 11.9452C0 12.2728 0.134921 12.6158 0.376815 12.848L5.89231 18.2871C6.12975 18.5276 6.46129 18.6626 6.76263 18.6626Z"fill=currentColor>');C('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4.01 7.58 4.01 12C4.01 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14H17.65C16.83 16.33 14.61 18 12 18C8.69 18 6 15.31 6 12C6 8.69 8.69 6 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H20V4L17.65 6.35Z"fill=currentColor>');C('<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>');C('<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 font-medium w-fit h-fit">');C('<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 font-medium w-fit h-fit">&gt;');C('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">');C('<div role=button><div class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">');C('<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 -mt-px"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">');C('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">No</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Yes');C('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Discard?');C('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Retry</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Ok');C('<div class="contain-layout shrink-0 flex flex-col justify-center items-end 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-full h-fit"><span class="text-[#B91C1C] text-[12px] leading-4 font-sans font-medium">');C('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Undo');C('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Reply');C('<button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">');C('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">');C('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col justify-center items-end rounded-xs bg-white antialiased w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit tabular-nums">');C('<button data-react-grab-ignore-events 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 data-react-grab-ignore-events class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black pointer-events-none">');C('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50 wrap-break-word overflow-y-auto"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none>');C('<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]"><span class="text-[12px] leading-4 font-sans font-medium w-auto h-fit whitespace-normal text-[#71717a] animate-pulse tabular-nums">');C('<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">');C('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Double click to edit');C('<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">');C('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Press');C('<div class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-[2px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit"><span class="text-[9px] leading-none font-medium text-black">Esc');C('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">to dismiss');C('<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit">');C('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div></div><div class="grid transition-[grid-template-rows] duration-30 ease-out self-stretch"><div>');C('<div class="shrink-0 flex items-center gap-0.5 w-full mb-0.5 overflow-hidden"><span class="text-[#a1a1aa] text-[9px] leading-3 shrink-0">>previously:</span><span class="text-[#a1a1aa] text-[9px] leading-3 italic truncate whitespace-nowrap">');C("<button>");C('<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 transition-all hover:scale-105">');C('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"rows=1 style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none></textarea><div class="flex items-center gap-0.5 ml-1 w-[17px] h-[17px] justify-end">');C('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div>');C('<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)] select-none"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">');Ue(["click","pointerdown","mousedown","pointerup","input","keydown"]);C('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>');Ue(["click"]);var Kt="0.5.25",Ge=`bippy-${Kt}`,Re=Object.defineProperty,qt=Object.prototype.hasOwnProperty,ce=()=>{},Ye=e=>{try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")});}catch{}},Wt=(e=Ae())=>"getFiberRoots"in e,Ze=false,Oe,_e=(e=Ae())=>Ze?true:(typeof e.inject=="function"&&(Oe=e.inject.toString()),!!Oe?.includes("(injected)")),Ce=new Set,ke=new Set,Xt=e=>{let t=new Map,r=0,n={_instrumentationIsActive:false,_instrumentationSource:Ge,checkDCE:Ye,hasUnsupportedRendererAttached:false,inject(a){let i=++r;return t.set(i,a),ke.add(a),n._instrumentationIsActive||(n._instrumentationIsActive=true,Ce.forEach(u=>u())),i},on:ce,onCommitFiberRoot:ce,onCommitFiberUnmount:ce,onPostCommitFiberRoot:ce,renderers:t,supportsFiber:true,supportsFlight:true};try{Re(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return n},set(u){if(u&&typeof u=="object"){let f=n.renderers;n=u,f.size>0&&(f.forEach((h,m)=>{ke.add(h),u.renderers.set(m,h);}),Se(e));}}});let a=window.hasOwnProperty,i=!1;Re(window,"hasOwnProperty",{configurable:!0,value:function(...u){try{if(!i&&u[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,i=!0,-0}catch{}return a.apply(this,u)},writable:!0});}catch{Se(e);}return n},Se=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=Ye,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=Ge,t._instrumentationIsActive=!1;let r=Wt(t);if(r||(t.on=ce),t.renderers.size){t._instrumentationIsActive=!0,Ce.forEach(i=>i());return}let n=t.inject,a=_e(t);a&&!r&&(Ze=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=i=>{let u=n(i);return ke.add(i),a&&t.renderers.set(u,i),t._instrumentationIsActive=!0,Ce.forEach(f=>f()),u};}(t.renderers.size||t._instrumentationIsActive||_e())&&e?.();}catch{}},Gt=()=>qt.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),Ae=e=>Gt()?(Se(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):Xt(e),Yt=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),Zt=()=>{try{Yt()&&Ae();}catch{}};var Jt=Object.create,Je=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,er=Object.getOwnPropertyNames,tr=Object.getPrototypeOf,rr=Object.prototype.hasOwnProperty,nr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),or=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=er(t),i=0,u=a.length,f;i<u;i++)f=a[i],!rr.call(e,f)&&f!==r&&Je(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(n=Qt(t,f))||n.enumerable});return e},ir=(e,t,r)=>(r=e==null?{}:Jt(tr(e)),or(Je(r,"default",{value:e,enumerable:true}),e));var ar=nr((e,t)=>{(function(r,n){typeof e=="object"&&t!==void 0?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.sourcemapCodec={}));})(void 0,function(r){let n=44,a=59,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=new Uint8Array(64),f=new Uint8Array(128);for(let p=0;p<i.length;p++){let s=i.charCodeAt(p);u[p]=s,f[s]=p;}function h(p,s){let o=0,c=0,v=0;do{let $=p.next();v=f[$],o|=(v&31)<<c,c+=5;}while(v&32);let S=o&1;return o>>>=1,S&&(o=-2147483648|-o),s+o}function m(p,s,o){let c=s-o;c=c<0?-c<<1|1:c<<1;do{let v=c&31;c>>>=5,c>0&&(v|=32),p.write(u[v]);}while(c>0);return s}function L(p,s){return p.pos>=s?false:p.peek()!==n}let D=1024*16,l=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(p){return Buffer.from(p.buffer,p.byteOffset,p.byteLength).toString()}}:{decode(p){let s="";for(let o=0;o<p.length;o++)s+=String.fromCharCode(p[o]);return s}};class b{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(D);}write(s){let{buffer:o}=this;o[this.pos++]=s,this.pos===D&&(this.out+=l.decode(o),this.pos=0);}flush(){let{buffer:s,out:o,pos:c}=this;return c>0?o+l.decode(s.subarray(0,c)):o}}class g{constructor(s){this.pos=0,this.buffer=s;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(s){let{buffer:o,pos:c}=this,v=o.indexOf(s,c);return v===-1?o.length:v}}let d=[];function w(p){let{length:s}=p,o=new g(p),c=[],v=[],S=0;for(;o.pos<s;o.pos++){S=h(o,S);let $=h(o,0);if(!L(o,s)){let z=v.pop();z[2]=S,z[3]=$;continue}let N=h(o,0),M=h(o,0),P=M&1,E=P?[S,$,0,0,N,h(o,0)]:[S,$,0,0,N],O=d;if(L(o,s)){O=[];do{let z=h(o,0);O.push(z);}while(L(o,s))}E.vars=O,c.push(E),v.push(E);}return c}function A(p){let s=new b;for(let o=0;o<p.length;)o=y(p,o,s,[0]);return s.flush()}function y(p,s,o,c){let v=p[s],{0:S,1:$,2:N,3:M,4:P,vars:E}=v;s>0&&o.write(n),c[0]=m(o,S,c[0]),m(o,$,0),m(o,P,0);let O=v.length===6?1:0;m(o,O,0),v.length===6&&m(o,v[5],0);for(let z of E)m(o,z,0);for(s++;s<p.length;){let z=p[s],{0:T,1:F}=z;if(T>N||T===N&&F>=M)break;s=y(p,s,o,c);}return o.write(n),c[0]=m(o,N,c[0]),m(o,M,0),s}function _(p){let{length:s}=p,o=new g(p),c=[],v=[],S=0,$=0,N=0,M=0,P=0,E=0,O=0,z=0;do{let T=o.indexOf(";"),F=0;for(;o.pos<T;o.pos++){if(F=h(o,F),!L(o,T)){let q=v.pop();q[2]=S,q[3]=F;continue}let X=h(o,0),de=X&1,ie=X&2,ae=X&4,Le=null,ve=d,J;if(de){let q=h(o,$);N=h(o,$===q?N:0),$=q,J=[S,F,0,0,q,N];}else J=[S,F,0,0];if(J.isScope=!!ae,ie){let q=M,ee=P;M=h(o,M);let le=q===M;P=h(o,le?P:0),E=h(o,le&&ee===P?E:0),Le=[M,P,E];}if(J.callsite=Le,L(o,T)){ve=[];do{O=S,z=F;let q=h(o,0),ee;if(q<-1){ee=[[h(o,0)]];for(let le=-1;le>q;le--){let rt=O;O=h(o,O),z=h(o,O===rt?z:0);let nt=h(o,0);ee.push([nt,O,z]);}}else ee=[[q]];ve.push(ee);}while(L(o,T))}J.bindings=ve,c.push(J),v.push(J);}S++,o.pos=T+1;}while(o.pos<s);return c}function x(p){if(p.length===0)return "";let s=new b;for(let o=0;o<p.length;)o=R(p,o,s,[0,0,0,0,0,0,0]);return s.flush()}function R(p,s,o,c){let v=p[s],{0:S,1:$,2:N,3:M,isScope:P,callsite:E,bindings:O}=v;c[0]<S?(U(o,c[0],S),c[0]=S,c[1]=0):s>0&&o.write(n),c[1]=m(o,v[1],c[1]);let z=(v.length===6?1:0)|(E?2:0)|(P?4:0);if(m(o,z,0),v.length===6){let{4:T,5:F}=v;T!==c[2]&&(c[3]=0),c[2]=m(o,T,c[2]),c[3]=m(o,F,c[3]);}if(E){let{0:T,1:F,2:X}=v.callsite;T===c[4]?F!==c[5]&&(c[6]=0):(c[5]=0,c[6]=0),c[4]=m(o,T,c[4]),c[5]=m(o,F,c[5]),c[6]=m(o,X,c[6]);}if(O)for(let T of O){T.length>1&&m(o,-T.length,0);let F=T[0][0];m(o,F,0);let X=S,de=$;for(let ie=1;ie<T.length;ie++){let ae=T[ie];X=m(o,ae[1],X),de=m(o,ae[2],de),m(o,ae[0],0);}}for(s++;s<p.length;){let T=p[s],{0:F,1:X}=T;if(F>N||F===N&&X>=M)break;s=R(p,s,o,c);}return c[0]<N?(U(o,c[0],N),c[0]=N,c[1]=0):o.write(n),c[1]=m(o,M,c[1]),s}function U(p,s,o){do p.write(a);while(++s<o)}function K(p){let{length:s}=p,o=new g(p),c=[],v=0,S=0,$=0,N=0,M=0;do{let P=o.indexOf(";"),E=[],O=true,z=0;for(v=0;o.pos<P;){let T;v=h(o,v),v<z&&(O=false),z=v,L(o,P)?(S=h(o,S),$=h(o,$),N=h(o,N),L(o,P)?(M=h(o,M),T=[v,S,$,N,M]):T=[v,S,$,N]):T=[v],E.push(T),o.pos++;}O||I(E),c.push(E),o.pos=P+1;}while(o.pos<=s);return c}function I(p){p.sort(j);}function j(p,s){return p[0]-s[0]}function W(p){let s=new b,o=0,c=0,v=0,S=0;for(let $=0;$<p.length;$++){let N=p[$];if($>0&&s.write(a),N.length===0)continue;let M=0;for(let P=0;P<N.length;P++){let E=N[P];P>0&&s.write(n),M=m(s,E[0],M),E.length!==1&&(o=m(s,E[1],o),c=m(s,E[2],c),v=m(s,E[3],v),E.length!==4&&(S=m(s,E[4],S)));}}return s.flush()}r.decode=K,r.decodeGeneratedRanges=_,r.decodeOriginalScopes=w,r.encode=W,r.encodeGeneratedRanges=x,r.encodeOriginalScopes=A,Object.defineProperty(r,"__esModule",{value:true});});});ir(ar());Zt();var lr="application/x-react-grab",Ne=(e,t)=>{let r=JSON.stringify({version:ft,content:e,timestamp:Date.now(),...t?.prompt}),n=i=>{i.preventDefault(),i.clipboardData?.setData("text/plain",e),i.clipboardData?.setData(lr,r);};document.addEventListener("copy",n);let a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.left="-9999px",a.ariaHidden="true",document.body.appendChild(a),a.select();try{let i=document.execCommand("copy");return i&&t?.onSuccess?.(),i}finally{document.removeEventListener("copy",n),a.remove();}};C('<span class="tabular-nums align-middle">');C('<span class="font-mono tabular-nums align-middle">&lt;<!>>');C('<span class="tabular-nums ml-1 align-middle"> in ');var sr=`Use this as reference to make the change, do not actually write this code:
1
+ var ReactGrabVisualEdit=(function(exports){'use strict';var Tt=(e,t)=>e===t,ze={equals:Tt},Pt=et,oe=1,we=2;var be=null,re=null,Fe=null,H=null,V=null,ee=null,xe=0;function Bt(e,t){t=t?Object.assign({},ze,t):ze;let r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=i=>(typeof i=="function"&&(i=i(r.value)),Ze(r,i));return [Ot.bind(r),n]}function Rt(e){if(H===null)return e();let t=H;H=null;try{return Fe?Fe.untrack(e):e()}finally{H=t;}}Bt(false);function Ot(){let e=re;if(this.sources&&this.state)if(this.state===oe)Je(this);else {let t=V;V=null,Ce(()=>ve(this)),V=t;}if(H){let t=this.observers?this.observers.length:0;H.sources?(H.sources.push(this),H.sourceSlots.push(t)):(H.sources=[this],H.sourceSlots=[t]),this.observers?(this.observers.push(H),this.observerSlots.push(H.sources.length-1)):(this.observers=[H],this.observerSlots=[H.sources.length-1]);}return e&&re.sources.has(this)?this.tValue:this.value}function Ze(e,t,r){let n=e.value;return (!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&Ce(()=>{for(let i=0;i<e.observers.length;i+=1){let o=e.observers[i],a=re&&re.running;a&&re.disposed.has(o)||((a?!o.tState:!o.state)&&(o.pure?V.push(o):ee.push(o),o.observers&&tt(o)),a?o.tState=oe:o.state=oe);}if(V.length>1e6)throw V=[],new Error})),t}function Je(e){if(!e.fn)return;ye(e);let t=xe;_t(e,e.value,t);}function _t(e,t,r){let n,i=be,o=H;H=be=e;try{n=e.fn(t);}catch(a){return e.pure&&(e.state=oe,e.owned&&e.owned.forEach(ye),e.owned=null),e.updatedAt=r+1,rt(a)}finally{H=o,be=i;}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?Ze(e,n):e.value=n,e.updatedAt=r);}function Qe(e){if(e.state===0)return;if(e.state===we)return ve(e);if(e.suspense&&Rt(e.suspense.inFallback))return e.suspense.effects.push(e);let r=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<xe);)e.state&&r.push(e);for(let n=r.length-1;n>=0;n--)if(e=r[n],e.state===oe)Je(e);else if(e.state===we){let i=V;V=null,Ce(()=>ve(e,r[0])),V=i;}}function Ce(e,t){if(V)return e();let r=false;(V=[]),ee?r=true:ee=[],xe++;try{let n=e();return It(r),n}catch(n){r||(ee=null),V=null,rt(n);}}function It(e){if(V&&(et(V),V=null),e)return;let t=ee;ee=null,t.length&&Ce(()=>Pt(t));}function et(e){for(let t=0;t<e.length;t++)Qe(e[t]);}function ve(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let n=e.sources[r];if(n.sources){let i=n.state;i===oe?n!==t&&(!n.updatedAt||n.updatedAt<xe)&&Qe(n):i===we&&ve(n,t);}}}function tt(e){for(let t=0;t<e.observers.length;t+=1){let r=e.observers[t];!r.state&&(r.state=we,r.pure?V.push(r):ee.push(r),r.observers&&tt(r));}}function ye(e){let t;if(e.sources)for(;e.sources.length;){let r=e.sources.pop(),n=e.sourceSlots.pop(),i=r.observers;if(i&&i.length){let o=i.pop(),a=r.observerSlots.pop();n<i.length&&(o.sourceSlots[a]=n,i[n]=o,r.observerSlots[n]=a);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ye(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ye(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}e.state=0;}function zt(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function rt(e,t=be){throw zt(e)}var De="_$DX_DELEGATE";function S(e,t,r,n){let i,o=()=>{let u=document.createElement("template");return u.innerHTML=e,u.content.firstChild},a=()=>(i||(i=o())).cloneNode(true);return a.cloneNode=a,a}function nt(e,t=window.document){let r=t[De]||(t[De]=new Set);for(let n=0,i=e.length;n<i;n++){let o=e[n];r.has(o)||(r.add(o),t.addEventListener(o,Ft));}}function Ft(e){let t=e.target,r=`$$${e.type}`,n=e.target,i=e.currentTarget,o=p=>Object.defineProperty(e,"target",{configurable:true,value:p}),a=()=>{let p=t[r];if(p&&!t.disabled){let f=t[`${r}Data`];if(f!==void 0?p.call(t,f,e):p.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),true},u=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let p=e.composedPath();o(p[0]);for(let f=0;f<p.length-2&&(t=p[f],!!a());f++){if(t._$host){t=t._$host,u();break}if(t.parentNode===i)break}}else u();o(n);}var Dt="0.0.87";var Be="-",jt=e=>{let t=Ut(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return {getClassGroupId:i=>{let o=i.split(Be);return o[0]===""&&o.length!==1&&o.shift(),ot(o,t)||Ht(i)},getConflictingClassGroupIds:(i,o)=>{let a=r[i]||[];return o&&n[i]?[...a,...n[i]]:a}}},ot=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),i=n?ot(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;let o=e.join(Be);return t.validators.find(({validator:a})=>a(o))?.classGroupId},je=/^\[(.+)\]$/,Ht=e=>{if(je.test(e)){let t=je.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return "arbitrary.."+r}},Ut=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Kt(Object.entries(e.classGroups),r).forEach(([i,o])=>{Le(o,n,i,t);}),n},Le=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){let o=i===""?t:He(t,i);o.classGroupId=r;return}if(typeof i=="function"){if(Vt(i)){Le(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([o,a])=>{Le(a,He(t,o),r,n);});});},He=(e,t)=>{let r=e;return t.split(Be).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n);}),r},Vt=e=>e.isThemeGetter,Kt=(e,t)=>t?e.map(([r,n])=>{let i=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,u])=>[t+a,u])):o);return [r,i]}):e,qt=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map,i=(o,a)=>{r.set(o,a),t++,t>e&&(t=0,n=r,r=new Map);};return {get(o){let a=r.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return i(o,a),a},set(o,a){r.has(o)?r.set(o,a):i(o,a);}}},it="!",Wt=e=>{let{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],o=t.length,a=u=>{let p=[],f=0,w=0,k;for(let v=0;v<u.length;v++){let L=u[v];if(f===0){if(L===i&&(n||u.slice(v,v+o)===t)){p.push(u.slice(w,v)),w=v+o;continue}if(L==="/"){k=v;continue}}L==="["?f++:L==="]"&&f--;}let l=p.length===0?u:u.substring(w),c=l.startsWith(it),h=c?l.substring(1):l,g=k&&k>w?k-w:void 0;return {modifiers:p,hasImportantModifier:c,baseClassName:h,maybePostfixModifierPosition:g}};return r?u=>r({className:u,parseClassName:a}):a},Xt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n);}),t.push(...r.sort()),t},Gt=e=>({cache:qt(e.cacheSize),parseClassName:Wt(e),...jt(e)}),Yt=/\s+/,Zt=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(Yt),u="";for(let p=a.length-1;p>=0;p-=1){let f=a[p],{modifiers:w,hasImportantModifier:k,baseClassName:l,maybePostfixModifierPosition:c}=r(f),h=!!c,g=n(h?l.substring(0,c):l);if(!g){if(!h){u=f+(u.length>0?" "+u:u);continue}if(g=n(l),!g){u=f+(u.length>0?" "+u:u);continue}h=false;}let v=Xt(w).join(":"),L=k?v+it:v,x=L+g;if(o.includes(x))continue;o.push(x);let O=i(g,h);for(let C=0;C<O.length;++C){let _=O[C];o.push(L+_);}u=f+(u.length>0?" "+u:u);}return u};function Jt(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=at(t))&&(n&&(n+=" "),n+=r);return n}var at=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=at(e[n]))&&(r&&(r+=" "),r+=t);return r};function Qt(e,...t){let r,n,i,o=a;function a(p){let f=t.reduce((w,k)=>k(w),e());return r=Gt(f),n=r.cache.get,i=r.cache.set,o=u,u(p)}function u(p){let f=n(p);if(f)return f;let w=Zt(p,r);return i(p,w),w}return function(){return o(Jt.apply(null,arguments))}}var R=e=>{let t=r=>r[e]||[];return t.isThemeGetter=true,t},lt=/^\[(?:([a-z-]+):)?(.+)\]$/i,er=/^\d+\/\d+$/,tr=new Set(["px","full","screen"]),rr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,or=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ir=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ar=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>ne(e)||tr.has(e)||er.test(e),Z=e=>ie(e,"length",gr),ne=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>ie(e,"number",ne),ce=e=>!!e&&Number.isInteger(Number(e)),lr=e=>e.endsWith("%")&&ne(e.slice(0,-1)),E=e=>lt.test(e),J=e=>rr.test(e),sr=new Set(["length","size","percentage"]),ur=e=>ie(e,sr,st),cr=e=>ie(e,"position",st),dr=new Set(["image","url"]),pr=e=>ie(e,dr,mr),fr=e=>ie(e,"",hr),de=()=>true,ie=(e,t,r)=>{let n=lt.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):false},gr=e=>nr.test(e)&&!or.test(e),st=()=>false,hr=e=>ir.test(e),mr=e=>ar.test(e),br=()=>{let e=R("colors"),t=R("spacing"),r=R("blur"),n=R("brightness"),i=R("borderColor"),o=R("borderRadius"),a=R("borderSpacing"),u=R("borderWidth"),p=R("contrast"),f=R("grayscale"),w=R("hueRotate"),k=R("invert"),l=R("gap"),c=R("gradientColorStops"),h=R("gradientColorStopPositions"),g=R("inset"),v=R("margin"),L=R("opacity"),x=R("padding"),O=R("saturate"),C=R("scale"),_=R("sepia"),U=R("skew"),K=R("space"),z=R("translate"),j=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto",E,t],d=()=>[E,t],s=()=>["",G,Z],m=()=>["auto",ne,E],y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],A=()=>["solid","dashed","dotted","double","none"],M=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",E],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[ne,E];return {cacheSize:500,separator:":",theme:{colors:[de],spacing:[G,Z],blur:["none","",J,E],brightness:N(),borderColor:[e],borderRadius:["none","","full",J,E],borderSpacing:d(),borderWidth:s(),contrast:N(),grayscale:T(),hueRotate:N(),invert:T(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[lr,Z],inset:b(),margin:b(),opacity:N(),padding:d(),saturate:N(),scale:N(),sepia:T(),skew:N(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",E]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...y(),E]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ce,E]}],basis:[{basis:b()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",E]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",ce,E]}],"grid-cols":[{"grid-cols":[de]}],"col-start-end":[{col:["auto",{span:["full",ce,E]},E]}],"col-start":[{"col-start":m()}],"col-end":[{"col-end":m()}],"grid-rows":[{"grid-rows":[de]}],"row-start-end":[{row:["auto",{span:[ce,E]},E]}],"row-start":[{"row-start":m()}],"row-end":[{"row-end":m()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",E]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",E]}],gap:[{gap:[l]}],"gap-x":[{"gap-x":[l]}],"gap-y":[{"gap-y":[l]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",E,t]}],"min-w":[{"min-w":[E,t,"min","max","fit"]}],"max-w":[{"max-w":[E,t,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[E,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[E,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[E,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[E,t,"auto","min","max","fit"]}],"font-size":[{text:["base",J,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ee]}],"font-family":[{font:[de]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",E]}],"line-clamp":[{"line-clamp":["none",ne,Ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,E]}],"list-image":[{"list-image":["none",E]}],"list-style-type":[{list:["none","disc","decimal",E]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,Z]}],"underline-offset":[{"underline-offset":["auto",G,E]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",E]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...y(),cr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ur]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[c]}],"gradient-via":[{via:[c]}],"gradient-to":[{to:[c]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...A(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:A()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...A()]}],"outline-offset":[{"outline-offset":[G,E]}],"outline-w":[{outline:[G,Z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:s()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[G,Z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,fr]}],"shadow-color":[{shadow:[de]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...M(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":M()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",J,E]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[k]}],saturate:[{saturate:[O]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",E]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",E]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",E]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[ce,E]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",E]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",E]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",E]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,Z,Ee]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};Qt(br);S("<div style=overflow:visible>");S('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">');S('<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">');S('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1=12 x2=12 y1=19 y2=22>');S('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 22 19"fill=none><path d="M6.76263 18.6626C7.48251 18.6626 7.95474 18.1682 7.95474 17.4895C7.95474 17.1207 7.80474 16.8576 7.58683 16.6361L5.3018 14.4137L2.84621 12.3589L2.44374 13.0037L5.92137 13.1622H17.9232C20.4842 13.1622 21.593 12.021 21.593 9.47237V3.66983C21.593 1.10875 20.4842 0 17.9232 0H12.5414C11.8179 0 11.3018 0.545895 11.3018 1.21695C11.3018 1.888 11.8179 2.43389 12.5414 2.43389H17.8424C18.7937 2.43389 19.1897 2.83653 19.1897 3.78784V9.35747C19.1897 10.3257 18.7937 10.7314 17.8424 10.7314H5.92137L2.44374 10.8832L2.84621 11.5281L5.3018 9.47993L7.58683 7.2606C7.80474 7.03914 7.95474 6.7693 7.95474 6.40049C7.95474 5.72854 7.48251 5.22747 6.76263 5.22747C6.46129 5.22747 6.12975 5.36905 5.89231 5.6096L0.376815 11.0425C0.134921 11.2777 0 11.6141 0 11.9452C0 12.2728 0.134921 12.6158 0.376815 12.848L5.89231 18.2871C6.12975 18.5276 6.46129 18.6626 6.76263 18.6626Z"fill=currentColor>');S('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4.01 7.58 4.01 12C4.01 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14H17.65C16.83 16.33 14.61 18 12 18C8.69 18 6 15.31 6 12C6 8.69 8.69 6 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H20V4L17.65 6.35Z"fill=currentColor>');S('<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>');S('<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 font-medium w-fit h-fit">');S('<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 font-medium w-fit h-fit">&gt;');S('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">');S('<div role=button><div class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">');S('<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 -mt-px"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">');S('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">No</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Yes');S('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Discard?');S('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Retry</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Ok');S('<div class="contain-layout shrink-0 flex flex-col justify-center items-end 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-full h-fit"><span class="text-[#B91C1C] text-[12px] leading-4 font-sans font-medium">');S('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Undo');S('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Reply');S('<button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">');S('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">');S('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col justify-center items-end rounded-xs bg-white antialiased w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit tabular-nums">');S('<button data-react-grab-ignore-events 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 data-react-grab-ignore-events class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black pointer-events-none">');S('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50 wrap-break-word overflow-y-auto"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none>');S('<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]"><span class="text-[12px] leading-4 font-sans font-medium w-auto h-fit whitespace-normal text-[#71717a] animate-pulse tabular-nums">');S('<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">');S('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Double click to edit');S('<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">');S('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Press');S('<div class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-[2px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit"><span class="text-[9px] leading-none font-medium text-black">Esc');S('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">to dismiss');S('<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit">');S('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div></div><div class="grid transition-[grid-template-rows] duration-30 ease-out self-stretch"><div>');S('<div class="shrink-0 flex items-center gap-0.5 w-full mb-0.5 overflow-hidden"><span class="text-[#a1a1aa] text-[9px] leading-3 shrink-0">>previously:</span><span class="text-[#a1a1aa] text-[9px] leading-3 italic truncate whitespace-nowrap">');S("<button>");S('<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 transition-all hover:scale-105">');S('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"rows=1 style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none></textarea><div class="flex items-center gap-0.5 ml-1 w-[17px] h-[17px] justify-end">');S('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div>');S('<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)] select-none"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">');nt(["click","pointerdown","mousedown","pointerup","input","keydown"]);S('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>');nt(["click"]);var wr="0.5.25",ut=`bippy-${wr}`,Ue=Object.defineProperty,vr=Object.prototype.hasOwnProperty,fe=()=>{},ct=e=>{try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")});}catch{}},dt=(e=ae())=>"getFiberRoots"in e,pt=false,Ve,$e=(e=ae())=>pt?true:(typeof e.inject=="function"&&(Ve=e.inject.toString()),!!Ve?.includes("(injected)")),Me=new Set,ge=new Set,yr=e=>{let t=new Map,r=0,n={_instrumentationIsActive:false,_instrumentationSource:ut,checkDCE:ct,hasUnsupportedRendererAttached:false,inject(i){let o=++r;return t.set(o,i),ge.add(i),n._instrumentationIsActive||(n._instrumentationIsActive=true,Me.forEach(a=>a())),o},on:fe,onCommitFiberRoot:fe,onCommitFiberUnmount:fe,onPostCommitFiberRoot:fe,renderers:t,supportsFiber:true,supportsFlight:true};try{Ue(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return n},set(a){if(a&&typeof a=="object"){let u=n.renderers;n=a,u.size>0&&(u.forEach((p,f)=>{ge.add(p),a.renderers.set(f,p);}),Te(e));}}});let i=window.hasOwnProperty,o=!1;Ue(window,"hasOwnProperty",{configurable:!0,value:function(...a){try{if(!o&&a[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,o=!0,-0}catch{}return i.apply(this,a)},writable:!0});}catch{Te(e);}return n},Te=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=ct,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=ut,t._instrumentationIsActive=!1;let r=dt(t);if(r||(t.on=fe),t.renderers.size){t._instrumentationIsActive=!0,Me.forEach(o=>o());return}let n=t.inject,i=$e(t);i&&!r&&(pt=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=o=>{let a=n(o);return ge.add(o),i&&t.renderers.set(a,o),t._instrumentationIsActive=!0,Me.forEach(u=>u()),a};}(t.renderers.size||t._instrumentationIsActive||$e())&&e?.();}catch{}},xr=()=>vr.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),ae=e=>xr()?(Te(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):yr(e),Cr=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),kr=()=>{try{Cr()&&ae();}catch{}},Sr=0,Er=1,Ar=5,Nr=11,Lr=13,$r=15,Mr=16,Tr=19,Pr=26,Br=27,Rr=28,Or=30;function _r(e,t,r=false){if(!e)return null;let n=t(e);if(n instanceof Promise)return (async()=>{if(await n===true)return e;let o=r?e.return:e.child;for(;o;){let a=await gt(o,t,r);if(a)return a;o=r?null:o.sibling;}return null})();if(n===true)return e;let i=r?e.return:e.child;for(;i;){let o=ft(i,t,r);if(o)return o;i=r?null:i.sibling;}return null}var ft=(e,t,r=false)=>{if(!e)return null;if(t(e)===true)return e;let n=r?e.return:e.child;for(;n;){let i=ft(n,t,r);if(i)return i;n=r?null:n.sibling;}return null},gt=async(e,t,r=false)=>{if(!e)return null;if(await t(e)===true)return e;let n=r?e.return:e.child;for(;n;){let i=await gt(n,t,r);if(i)return i;n=r?null:n.sibling;}return null},ht=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?ht(t.type||t.render):null},Pe=e=>{let t=e;if(typeof t=="string")return t;if(typeof t!="function"&&!(typeof t=="object"&&t))return null;let r=t.displayName||t.name||null;if(r)return r;let n=ht(t);return n&&(n.displayName||n.name)||null},mt=()=>!!ae()._instrumentationIsActive||dt()||$e(),Ir=e=>{let t=ae();for(let r of t.renderers.values())try{let n=r.findFiberByHostInstance?.(e);if(n)return n}catch{}if(typeof e=="object"&&e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let r in e)if(r.startsWith("__reactContainer$")||r.startsWith("__reactInternalInstance$")||r.startsWith("__reactFiber"))return e[r]||null}return null},zr=Object.create,bt=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,Dr=Object.getOwnPropertyNames,jr=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty,Ur=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Dr(t),o=0,a=i.length,u;o<a;o++)u=i[o],!Hr.call(e,u)&&u!==r&&bt(e,u,{get:(p=>t[p]).bind(null,u),enumerable:!(n=Fr(t,u))||n.enumerable});return e},Kr=(e,t,r)=>(r=e==null?{}:zr(jr(e)),Vr(bt(r,"default",{value:e,enumerable:true}),e)),Ke=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,qr=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/"],qe="about://React/",Wr=["<anonymous>","eval",""],Xr=/\.(jsx|tsx|ts|js)$/,Gr=/(\.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,Yr=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,wt="(at Server)",Zr=/(^|@)\S+:\d+/,Jr=/^\s*at .*(\S+:\d+|\(native\))/m,Qr=/^(eval@)?(\[native code\])?$/,vt=(e,t)=>{{let r=e.split(`
2
+ `),n=[];for(let i of r)if(/^\s*at\s+/.test(i)){let o=en(i,void 0)[0];o&&n.push(o);}else if(/^\s*in\s+/.test(i)){let o=i.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");n.push({functionName:o,source:i});}else if(i.match(Zr)){let o=tn(i,void 0)[0];o&&n.push(o);}return Re(n,t)}},yt=e=>{if(!e.includes(":"))return [e,void 0,void 0];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=t.exec(e.replace(/[()]/g,""));return [r[1],r[2]||void 0,r[3]||void 0]},Re=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e,en=(e,t)=>Re(e.split(`
3
+ `).filter(r=>!!r.match(Jr)),t).map(r=>{let n=r;n.includes("(eval ")&&(n=n.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let i=n.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),o=i.match(/ (\(.+\)$)/);i=o?i.replace(o[0],""):i;let a=yt(o?o[1]:i),u=o&&i||void 0,p=["eval","<anonymous>"].includes(a[0])?void 0:a[0];return {functionName:u,fileName:p,lineNumber:a[1]?+a[1]:void 0,columnNumber:a[2]?+a[2]:void 0,source:n}}),tn=(e,t)=>Re(e.split(`
4
+ `).filter(r=>!r.match(Qr)),t).map(r=>{let n=r;if(n.includes(" > eval")&&(n=n.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!n.includes("@")&&!n.includes(":"))return {functionName:n};{let i=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,o=n.match(i),a=o&&o[1]?o[1]:void 0,u=yt(n.replace(i,""));return {functionName:a,fileName:u[0],lineNumber:u[1]?+u[1]:void 0,columnNumber:u[2]?+u[2]:void 0,source:n}}}),rn=Ur((e,t)=>{(function(r,n){typeof e=="object"&&t!==void 0?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.sourcemapCodec={}));})(void 0,function(r){let n=44,i=59,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),u=new Uint8Array(128);for(let b=0;b<o.length;b++){let d=o.charCodeAt(b);a[b]=d,u[d]=b;}function p(b,d){let s=0,m=0,y=0;do{let M=b.next();y=u[M],s|=(y&31)<<m,m+=5;}while(y&32);let A=s&1;return s>>>=1,A&&(s=-2147483648|-s),d+s}function f(b,d,s){let m=d-s;m=m<0?-m<<1|1:m<<1;do{let y=m&31;m>>>=5,m>0&&(y|=32),b.write(a[y]);}while(m>0);return d}function w(b,d){return b.pos>=d?false:b.peek()!==n}let k=1024*16,l=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(b){return Buffer.from(b.buffer,b.byteOffset,b.byteLength).toString()}}:{decode(b){let d="";for(let s=0;s<b.length;s++)d+=String.fromCharCode(b[s]);return d}};class c{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(k);}write(d){let{buffer:s}=this;s[this.pos++]=d,this.pos===k&&(this.out+=l.decode(s),this.pos=0);}flush(){let{buffer:d,out:s,pos:m}=this;return m>0?s+l.decode(d.subarray(0,m)):s}}class h{constructor(d){this.pos=0,this.buffer=d;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(d){let{buffer:s,pos:m}=this,y=s.indexOf(d,m);return y===-1?s.length:y}}let g=[];function v(b){let{length:d}=b,s=new h(b),m=[],y=[],A=0;for(;s.pos<d;s.pos++){A=p(s,A);let M=p(s,0);if(!w(s,d)){let F=y.pop();F[2]=A,F[3]=M;continue}let $=p(s,0),T=p(s,0),B=T&1,N=B?[A,M,0,0,$,p(s,0)]:[A,M,0,0,$],I=g;if(w(s,d)){I=[];do{let F=p(s,0);I.push(F);}while(w(s,d))}N.vars=I,m.push(N),y.push(N);}return m}function L(b){let d=new c;for(let s=0;s<b.length;)s=x(b,s,d,[0]);return d.flush()}function x(b,d,s,m){let y=b[d],{0:A,1:M,2:$,3:T,4:B,vars:N}=y;d>0&&s.write(n),m[0]=f(s,A,m[0]),f(s,M,0),f(s,B,0);let I=y.length===6?1:0;f(s,I,0),y.length===6&&f(s,y[5],0);for(let F of N)f(s,F,0);for(d++;d<b.length;){let F=b[d],{0:P,1:D}=F;if(P>$||P===$&&D>=T)break;d=x(b,d,s,m);}return s.write(n),m[0]=f(s,$,m[0]),f(s,T,0),d}function O(b){let{length:d}=b,s=new h(b),m=[],y=[],A=0,M=0,$=0,T=0,B=0,N=0,I=0,F=0;do{let P=s.indexOf(";"),D=0;for(;s.pos<P;s.pos++){if(D=p(s,D),!w(s,P)){let q=y.pop();q[2]=A,q[3]=D;continue}let X=p(s,0),he=X&1,le=X&2,se=X&4,Ie=null,Se=g,Q;if(he){let q=p(s,M);$=p(s,M===q?$:0),M=q,Q=[A,D,0,0,q,$];}else Q=[A,D,0,0];if(Q.isScope=!!se,le){let q=T,te=B;T=p(s,T);let ue=q===T;B=p(s,ue?B:0),N=p(s,ue&&te===B?N:0),Ie=[T,B,N];}if(Q.callsite=Ie,w(s,P)){Se=[];do{I=A,F=D;let q=p(s,0),te;if(q<-1){te=[[p(s,0)]];for(let ue=-1;ue>q;ue--){let $t=I;I=p(s,I),F=p(s,I===$t?F:0);let Mt=p(s,0);te.push([Mt,I,F]);}}else te=[[q]];Se.push(te);}while(w(s,P))}Q.bindings=Se,m.push(Q),y.push(Q);}A++,s.pos=P+1;}while(s.pos<d);return m}function C(b){if(b.length===0)return "";let d=new c;for(let s=0;s<b.length;)s=_(b,s,d,[0,0,0,0,0,0,0]);return d.flush()}function _(b,d,s,m){let y=b[d],{0:A,1:M,2:$,3:T,isScope:B,callsite:N,bindings:I}=y;m[0]<A?(U(s,m[0],A),m[0]=A,m[1]=0):d>0&&s.write(n),m[1]=f(s,y[1],m[1]);let F=(y.length===6?1:0)|(N?2:0)|(B?4:0);if(f(s,F,0),y.length===6){let{4:P,5:D}=y;P!==m[2]&&(m[3]=0),m[2]=f(s,P,m[2]),m[3]=f(s,D,m[3]);}if(N){let{0:P,1:D,2:X}=y.callsite;P===m[4]?D!==m[5]&&(m[6]=0):(m[5]=0,m[6]=0),m[4]=f(s,P,m[4]),m[5]=f(s,D,m[5]),m[6]=f(s,X,m[6]);}if(I)for(let P of I){P.length>1&&f(s,-P.length,0);let D=P[0][0];f(s,D,0);let X=A,he=M;for(let le=1;le<P.length;le++){let se=P[le];X=f(s,se[1],X),he=f(s,se[2],he),f(s,se[0],0);}}for(d++;d<b.length;){let P=b[d],{0:D,1:X}=P;if(D>$||D===$&&X>=T)break;d=_(b,d,s,m);}return m[0]<$?(U(s,m[0],$),m[0]=$,m[1]=0):s.write(n),m[1]=f(s,T,m[1]),d}function U(b,d,s){do b.write(i);while(++d<s)}function K(b){let{length:d}=b,s=new h(b),m=[],y=0,A=0,M=0,$=0,T=0;do{let B=s.indexOf(";"),N=[],I=true,F=0;for(y=0;s.pos<B;){let P;y=p(s,y),y<F&&(I=false),F=y,w(s,B)?(A=p(s,A),M=p(s,M),$=p(s,$),w(s,B)?(T=p(s,T),P=[y,A,M,$,T]):P=[y,A,M,$]):P=[y],N.push(P),s.pos++;}I||z(N),m.push(N),s.pos=B+1;}while(s.pos<=d);return m}function z(b){b.sort(j);}function j(b,d){return b[0]-d[0]}function W(b){let d=new c,s=0,m=0,y=0,A=0;for(let M=0;M<b.length;M++){let $=b[M];if(M>0&&d.write(i),$.length===0)continue;let T=0;for(let B=0;B<$.length;B++){let N=$[B];B>0&&d.write(n),T=f(d,N[0],T),N.length!==1&&(s=f(d,N[1],s),m=f(d,N[2],m),y=f(d,N[3],y),N.length!==4&&(A=f(d,N[4],A)));}}return d.flush()}r.decode=K,r.decodeGeneratedRanges=O,r.decodeOriginalScopes=v,r.encode=W,r.encodeGeneratedRanges=C,r.encodeOriginalScopes=L,Object.defineProperty(r,"__esModule",{value:true});});}),xt=Kr(rn()),Ct=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,nn=/^data:application\/json[^,]+base64,/,on=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,kt=typeof WeakRef<"u",pe=new Map,me=new Map,an=e=>kt&&e instanceof WeakRef,We=(e,t,r,n)=>{if(r<0||r>=e.length)return null;let i=e[r];if(!i||i.length===0)return null;let o=null;for(let w of i)if(w[0]<=n)o=w;else break;if(!o||o.length<4)return null;let[,a,u,p]=o;if(a===void 0||u===void 0||p===void 0)return null;let f=t[a];return f?{columnNumber:p,fileName:f,lineNumber:u+1}:null},ln=(e,t,r)=>{if(e.sections){let n=null;for(let a of e.sections)if(t>a.offset.line||t===a.offset.line&&r>=a.offset.column)n=a;else break;if(!n)return null;let i=t-n.offset.line,o=t===n.offset.line?r-n.offset.column:r;return We(n.map.mappings,n.map.sources,i,o)}return We(e.mappings,e.sources,t-1,r)},sn=(e,t)=>{let r=t.split(`
5
+ `),n;for(let o=r.length-1;o>=0&&!n;o--){let a=r[o].match(on);a&&(n=a[1]||a[2]);}if(!n)return null;let i=Ct.test(n);if(!(nn.test(n)||i||n.startsWith("/"))){let o=e.split("/");o[o.length-1]=n,n=o.join("/");}return n},un=e=>({file:e.file,mappings:(0, xt.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),cn=e=>{let t=e.sections.map(({map:n,offset:i})=>({map:{...n,mappings:(0, xt.decode)(n.mappings)},offset:i})),r=new Set;for(let n of t)for(let i of n.map.sources)r.add(i);return {file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(r),sourcesContent:void 0,version:3}},Xe=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let r=t.match(Ct);if(!r)return true;let n=r[0].toLowerCase();return n==="http:"||n==="https:"},dn=async(e,t=fetch)=>{if(!Xe(e))return null;let r;try{r=await(await t(e)).text();}catch{return null}if(!r)return null;let n=sn(e,r);if(!n||!Xe(n))return null;try{let i=await t(n),o=await i.json();return "sections"in o?cn(o):un(o)}catch{return null}},pn=async(e,t=true,r)=>{if(t&&pe.has(e)){let o=pe.get(e);if(o==null)return null;if(an(o)){let a=o.deref();if(a)return a;pe.delete(e);}else return o}if(t&&me.has(e))return me.get(e);let n=dn(e,r);t&&me.set(e,n);let i=await n;return t&&me.delete(e),t&&(i===null?pe.set(e,null):pe.set(e,kt?new WeakRef(i):i)),i},fn=async(e,t=true,r)=>await Promise.all(e.map(async n=>{if(!n.fileName)return n;let i=await pn(n.fileName,t,r);if(!i||typeof n.lineNumber!="number"||typeof n.columnNumber!="number")return n;let o=ln(i,n.lineNumber,n.columnNumber);return o?{...n,source:o.fileName&&n.source?n.source.replace(n.fileName,o.fileName):n.source,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,isSymbolicated:true}:n})),gn=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string",hn=()=>{let e=ae();for(let t of [...Array.from(ge),...Array.from(e.renderers.values())]){let r=t.currentDispatcherRef;if(r&&typeof r=="object")return "H"in r?r.H:r.current}return null},Ge=e=>{for(let t of ge){let r=t.currentDispatcherRef;r&&typeof r=="object"&&("H"in r?r.H=e:r.current=e);}},Y=e=>`
6
+ in ${e}`,mn=(e,t)=>{let r=Y(e);return t&&(r+=` (at ${t})`),r},Ae=false,Ne=(e,t)=>{if(!e||Ae)return "";let r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,Ae=true;let n=hn();Ge(null);let i=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let u={DetermineComponentFrameRoot(){let w;try{if(t){let k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[]);}catch(l){w=l;}Reflect.construct(e,[],k);}else {try{k.call();}catch(l){w=l;}e.call(k.prototype);}}else {try{throw Error()}catch(l){w=l;}let k=e();k&&typeof k.catch=="function"&&k.catch(()=>{});}}catch(k){if(k instanceof Error&&w instanceof Error&&typeof k.stack=="string")return [k.stack,w.stack]}return [null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[p,f]=u.DetermineComponentFrameRoot();if(p&&f){let w=p.split(`
7
+ `),k=f.split(`
8
+ `),l=0,c=0;for(;l<w.length&&!w[l].includes("DetermineComponentFrameRoot");)l++;for(;c<k.length&&!k[c].includes("DetermineComponentFrameRoot");)c++;if(l===w.length||c===k.length)for(l=w.length-1,c=k.length-1;l>=1&&c>=0&&w[l]!==k[c];)c--;for(;l>=1&&c>=0;l--,c--)if(w[l]!==k[c]){if(l!==1||c!==1)do if(l--,c--,c<0||w[l]!==k[c]){let h=`
9
+ ${w[l].replace(" at new "," at ")}`,g=Pe(e);return g&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",g)),h}while(l>=1&&c>=0);break}}}finally{Ae=false,Error.prepareStackTrace=r,Ge(n),console.error=i,console.warn=o;}let a=e?Pe(e):"";return a?Y(a):""},bn=(e,t)=>{let r=e.tag,n="";switch(r){case Rr:n=Y("Activity");break;case Er:n=Ne(e.type,true);break;case Nr:n=Ne(e.type.render,false);break;case Sr:case $r:n=Ne(e.type,false);break;case Ar:case Pr:case Br:n=Y(e.type);break;case Mr:n=Y("Lazy");break;case Lr:n=e.child!==t&&t!==null?Y("Suspense Fallback"):Y("Suspense");break;case Tr:n=Y("SuspenseList");break;case Or:n=Y("ViewTransition");break;default:return ""}return n},wn=e=>{try{let t="",r=e,n=null;do{t+=bn(r,n);let i=r._debugInfo;if(i&&Array.isArray(i))for(let o=i.length-1;o>=0;o--){let a=i[o];typeof a.name=="string"&&(t+=mn(a.name,a.env));}n=r,r=r.return;}while(r);return t}catch(t){return t instanceof Error?`
10
+ Error generating stack: ${t.message}
11
+ ${t.stack}`:""}},vn=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let r=e;if(!r)return "";Error.prepareStackTrace=t,r.startsWith(`Error: react-stack-top-frame
12
+ `)&&(r=r.slice(29));let n=r.indexOf(`
13
+ `);if(n!==-1&&(r=r.slice(n+1)),n=Math.max(r.indexOf("react_stack_bottom_frame"),r.indexOf("react-stack-bottom-frame")),n!==-1&&(n=r.lastIndexOf(`
14
+ `,n)),n!==-1)r=r.slice(0,n);else return "";return r},yn=e=>!!(e.fileName?.startsWith("rsc://")&&e.functionName),xn=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,Cn=e=>{let t=new Map;for(let r of e)for(let n of r.stackFrames){if(!yn(n))continue;let i=n.functionName,o=t.get(i)??[];o.some(a=>xn(a,n))||(o.push(n),t.set(i,o));}return t},kn=(e,t,r)=>{if(!e.functionName)return {...e,isServer:true};let n=t.get(e.functionName);if(!n||n.length===0)return {...e,isServer:true};let i=r.get(e.functionName)??0,o=n[i%n.length];return r.set(e.functionName,i+1),{...e,isServer:true,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,source:e.source?.replace(wt,`(${o.fileName}:${o.lineNumber}:${o.columnNumber})`)}},Sn=e=>{let t=[];return _r(e,r=>{if(!gn(r))return;let n=typeof r.type=="string"?r.type:Pe(r.type)||"<anonymous>";t.push({componentName:n,stackFrames:vt(vn(r._debugStack?.stack))});},true),t},En=async(e,t=true,r)=>{let n=Sn(e),i=vt(wn(e)),o=Cn(n),a=new Map,u=i.map(f=>f.source?.includes(wt)??false?kn(f,o,a):f),p=u.filter((f,w,k)=>{if(w===0)return true;let l=k[w-1];return f.functionName!==l.functionName});return fn(p,t,r)},St=e=>{if(!e||Wr.includes(e))return "";let t=e;if(t.startsWith(qe)){let i=t.slice(qe.length),o=i.indexOf("/"),a=i.indexOf(":");t=o!==-1&&(a===-1||o<a)?i.slice(o+1):i;}let r=true;for(;r;){r=false;for(let i of qr)if(t.startsWith(i)){t=t.slice(i.length),i==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`),r=true;break}}if(Ke.test(t)){let i=t.match(Ke);i&&(t=t.slice(i[0].length));}let n=t.indexOf("?");if(n!==-1){let i=t.slice(n);Yr.test(i)&&(t=t.slice(0,n));}return t},An=e=>{let t=St(e);return !(!t||!Xr.test(t)||Gr.test(t))},Nn=e=>e.length>0&&/^[A-Z]/.test(e);kr();var Ln=new Set(["InnerLayoutRouter","RedirectErrorBoundary","RedirectBoundary","HTTPAccessFallbackErrorBoundary","HTTPAccessFallbackBoundary","LoadingBoundary","ErrorBoundary","InnerScrollAndFocusHandler","ScrollAndFocusHandler","RenderFromTemplateContext","OuterLayoutRouter","body","html","DevRootHTTPAccessFallbackBoundary","AppDevOverlayErrorBoundary","AppDevOverlay","HotReload","Router","ErrorBoundaryHandler","AppRouter","ServerRoot","SegmentStateProvider","RootErrorBoundary","LoadableComponent","MotionDOMComponent"]),$n=()=>typeof document>"u"?false:!!(document.getElementById("__NEXT_DATA__")||document.querySelector("nextjs-portal")),Mn=e=>!!(e.startsWith("_")||Ln.has(e)),Ye=e=>!(Mn(e)||!Nn(e)||e.startsWith("Primitive.")||e.includes("Provider")&&e.includes("Context")),Et=async e=>{if(!mt())return [];let t=Ir(e);return t?await En(t):null};var Oe=async(e,t={})=>{let{maxLines:r=3}=t,n=Tn(e),i=await Et(e),o=$n(),a=[];if(i)for(let u of i){if(a.length>=r)break;if(u.isServer&&(!u.functionName||Ye(u.functionName))){a.push(`
15
+ in ${u.functionName||"<anonymous>"} (at Server)`);continue}if(u.fileName&&An(u.fileName)){let p=`
16
+ in `,f=u.functionName&&Ye(u.functionName);f&&(p+=`${u.functionName} (at `),p+=St(u.fileName),o&&u.lineNumber&&u.columnNumber&&(p+=`:${u.lineNumber}:${u.columnNumber}`),f&&(p+=")"),a.push(p);}}return `${n}${a.join("")}`},Tn=e=>{let t=e.tagName.toLowerCase();if(!(e instanceof HTMLElement))return `<${t} />`;let r=e.innerText?.trim()??e.textContent?.trim()??"",n="",i=Array.from(e.attributes);for(let c of i){let h=c.name,g=c.value;g.length>20&&(g=`${g.slice(0,20)}...`),n+=` ${h}="${g}"`;}let o=[],a=[],u=false,p=Array.from(e.childNodes);for(let c of p)c.nodeType!==Node.COMMENT_NODE&&(c.nodeType===Node.TEXT_NODE?c.textContent&&c.textContent.trim().length>0&&(u=true):c instanceof Element&&(u?a.push(c):o.push(c)));let f=c=>c.length===0?"":c.length<=2?c.map(h=>`<${h.tagName.toLowerCase()} ...>`).join(`
17
+ `):`(${c.length} elements)`,w="",k=f(o);if(k&&(w+=`
18
+ ${k}`),r.length>0){let c=r.length>100?`${r.slice(0,100)}...`:r;w+=`
19
+ ${c}`;}let l=f(a);return l&&(w+=`
20
+ ${l}`),w.length>0?`<${t}${n}>${w}
21
+ </${t}>`:`<${t}${n} />`},Pn="application/x-react-grab",_e=(e,t)=>{let r=JSON.stringify({version:Dt,content:e,timestamp:Date.now(),...t?.prompt}),n=o=>{o.preventDefault(),o.clipboardData?.setData("text/plain",e),o.clipboardData?.setData(Pn,r);};document.addEventListener("copy",n);let i=document.createElement("textarea");i.value=e,i.style.position="fixed",i.style.left="-9999px",i.ariaHidden="true",document.body.appendChild(i),i.select();try{let o=document.execCommand("copy");return o&&t?.onSuccess?.(),o}finally{document.removeEventListener("copy",n),i.remove();}};S('<span class="tabular-nums align-middle">');S('<span class="font-mono tabular-nums align-middle">&lt;<!>>');S('<span class="tabular-nums ml-1 align-middle"> in ');var Bn=`Use this as reference to make the change, do not actually write this code:
2
22
 
3
- `,ur=e=>{let t=e.trim();if(t.startsWith("{")&&t.endsWith("}"))try{let r=JSON.parse(t);if(typeof r=="object"&&"code"in r)return r}catch{}return t},cr=(e,t,r)=>r?`Here is the HTML to modify:
23
+ `,Rn=e=>{let t=e.trim();if(t.startsWith("{")&&t.endsWith("}"))try{let r=JSON.parse(t);if(typeof r=="object"&&"code"in r)return r}catch{}return t},On=(e,t,r)=>r?`Here is the HTML to modify:
4
24
 
5
25
  ${t}
6
26
 
@@ -12,19 +32,23 @@ You can either:
12
32
 
13
33
  When iterating, the code will be executed and you'll see the updated HTML to refine further.`:`Follow-up modification request: ${e}
14
34
 
15
- Remember: Output ONLY the JavaScript code for this modification. The $el variable still references the same element.`,dr=(e,t)=>{let r=`Here is the updated HTML after executing your code:
35
+ Remember: Output ONLY the JavaScript code for this modification. The $el variable still references the same element.`,_n=(e,t)=>{let r=`Here is the updated HTML after executing your code:
16
36
 
17
37
  ${e}`;return t&&(r+=`
18
38
 
19
39
  Execution result: ${t}`),r+=`
20
40
 
21
- Continue modifying or output final JavaScript code (without JSON wrapper) when done.`,r},Qe=e=>{let t=[],r=l=>t.push(l),n=l=>{for(let b of l)typeof b!="string"&&b.parentNode?.removeChild(b);},a=l=>((...b)=>{l(...b),r(()=>n(b));}),i=new Proxy(e.style,{set(l,b,g){if(typeof b=="string"){let d=l.getPropertyValue(b)||l[b]||"";r(()=>{l[b]=d;});}return Reflect.set(l,b,g)}}),u=new Proxy(e.classList,{get(l,b){if(b==="add")return (...d)=>{let w=d.filter(A=>!l.contains(A));return r(()=>l.remove(...w)),l.add(...d)};if(b==="remove")return (...d)=>{let w=d.filter(A=>l.contains(A));return r(()=>l.add(...w)),l.remove(...d)};if(b==="toggle")return (d,w)=>{let A=l.contains(d),y=l.toggle(d,w);return r(()=>A?l.add(d):l.remove(d)),y};if(b==="replace")return (d,w)=>{let A=l.contains(d),y=l.replace(d,w);return A&&r(()=>{l.remove(w),l.add(d);}),y};let g=Reflect.get(l,b);return typeof g=="function"?g.bind(l):g}}),f=new Proxy(e.dataset,{set(l,b,g){if(typeof b=="string"){let d=l[b],w=b in l;r(()=>w?l[b]=d:delete l[b]);}return Reflect.set(l,b,g)},deleteProperty(l,b){if(typeof b=="string"&&b in l){let g=l[b];r(()=>{l[b]=g;});}return Reflect.deleteProperty(l,b)}}),h=(l,b)=>{switch(b){case "setAttribute":return (g,d)=>{let w=l.hasAttribute(g),A=l.getAttribute(g);return r(()=>w?l.setAttribute(g,A):l.removeAttribute(g)),l.setAttribute(g,d)};case "removeAttribute":return g=>{if(l.hasAttribute(g)){let d=l.getAttribute(g);r(()=>l.setAttribute(g,d));}return l.removeAttribute(g)};case "appendChild":return g=>{let d=l.appendChild(g);return r(()=>g.parentNode?.removeChild(g)),d};case "removeChild":return g=>{let d=g.nextSibling,w=l.removeChild(g);return r(()=>l.insertBefore(g,d)),w};case "insertBefore":return (g,d)=>{let w=l.insertBefore(g,d);return r(()=>g.parentNode?.removeChild(g)),w};case "replaceChild":return (g,d)=>{let w=d.nextSibling,A=l.replaceChild(g,d);return r(()=>{l.replaceChild(d,g),w&&d.nextSibling!==w&&l.insertBefore(d,w);}),A};case "remove":return ()=>{let g=l.parentNode,d=l.nextSibling;l.remove(),r(()=>g?.insertBefore(l,d));};case "append":return a(l.append.bind(l));case "prepend":return a(l.prepend.bind(l));case "after":return a(l.after.bind(l));case "before":return a(l.before.bind(l));case "replaceWith":return (...g)=>{let d=l.parentNode,w=l.nextSibling;l.replaceWith(...g),r(()=>{let A=g.find(y=>typeof y!="string");d&&(d.insertBefore(l,A??w),n(g));});};case "insertAdjacentHTML":return (g,d)=>{let w=Array.from(l.childNodes),A=l.parentNode?Array.from(l.parentNode.childNodes):[];l.insertAdjacentHTML(g,d);let y=Array.from(l.childNodes).filter(x=>!w.includes(x)),_=l.parentNode?Array.from(l.parentNode.childNodes).filter(x=>!A.includes(x)):[];r(()=>[...y,..._].forEach(x=>x.parentNode?.removeChild(x)));};case "insertAdjacentElement":return (g,d)=>{let w=l.insertAdjacentElement(g,d);return w&&r(()=>w.parentNode?.removeChild(w)),w};default:return null}},m=new Set(["setAttribute","removeAttribute","appendChild","removeChild","insertBefore","replaceChild","remove","append","prepend","after","before","replaceWith","insertAdjacentHTML","insertAdjacentElement"]);return {proxy:new Proxy(e,{get(l,b){if(b==="style")return i;if(b==="classList")return u;if(b==="dataset")return f;if(typeof b=="string"&&m.has(b))return h(l,b);let g=Reflect.get(l,b);return typeof g=="function"?g.bind(l):g},set(l,b,g){if(typeof b=="string"){let d=l[b];r(()=>{l[b]=d;});}return Reflect.set(l,b,g)}}),undo:()=>{for(let l=t.length-1;l>=0;l--)t[l]();}}},tt="https://www.react-grab.com/api/visual-edit",pr=5,fr=[/\beval\s*\(/,/\bFunction\s*\(/,/\bdocument\.cookie\b/,/\bfetch\s*\(/,/\bXMLHttpRequest\b/],gr=e=>e.replace(/[\u2018\u2019\u2032\u2035]/g,"'").replace(/[\u201C\u201D\u2033\u2036]/g,'"').replace(/[\u2014\u2013\u2212]/g,"-").replace(/\u2026/g,"...").replace(/[\u00A0\u2000-\u200A\u202F\u205F]/g," ").replace(/[\u200B-\u200D\uFEFF]/g,""),et=e=>{let t=gr(e);try{new Function("$el",t);}catch(r){return {isValid:false,error:`Invalid JavaScript syntax${r instanceof Error?`: ${r.message}`:""}`,sanitizedCode:t}}for(let r of fr)if(r.test(t))return {isValid:false,error:`Potentially unsafe code detected: ${r.source}`,sanitizedCode:t};return {isValid:true,sanitizedCode:t}},hr=e=>{let t=e.cloneNode(false),r=document.createElement("div");r.appendChild(t);let n=r.innerHTML,a=n.match(/<\/[^>]+>$/);return a?n.slice(0,-a[0].length):n},mr=e=>`</${e.tagName.toLowerCase()}>`,we=e=>{let t=[],r=e.parentElement;for(let u=0;u<pr&&r&&!(r===document.body||r===document.documentElement);u++)t.push(r),r=r.parentElement;if(t.length===0)return e.outerHTML;t.reverse();let n="",a="";for(let u of t)n+=`${a}${hr(u)}
22
- `,a+=" ";n+=`${a}<!-- START $el -->
23
- `;let i=e.outerHTML.split(`
24
- `);for(let u of i)n+=`${a}${u}
25
- `;n+=`${a}<!-- END $el -->
26
- `;for(let u=t.length-1;u>=0;u--)a=" ".repeat(u),n+=`${a}${mr(t[u])}
27
- `;return n.trim()},br=(e={})=>{let t=e.apiEndpoint??tt,r=e.maxIterations??3,n=new Map,a=new Map,i=new Map,u=new Map,f=new Map,h=null,m=null,L=()=>({requestId:`req-${Date.now()}-${Math.random().toString(36).slice(2)}`}),D=(y,_)=>{let x=y.context.options?.requestId;if(!x||!_)return;let R=we(_);n.set(x,R),a.set(x,_);},l=async function*(y,_){let x=null,R=null,U=Date.now(),K=fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:y}),signal:_}).then(I=>{x=I;}).catch(I=>{R=I;});for(;!x&&!R;){let I=(Date.now()-U)/1e3;yield I>=.1?`Generating\u2026 ${I.toFixed(1)}s`:"Generating\u2026",await Promise.race([K,new Promise(j=>setTimeout(j,100))]);}if(R)throw R;if(!x.ok){let I=await x.text().catch(()=>"Unknown error");throw new Error(`API error: ${x.status} - ${I}`)}return yield await x.text(),""},b=(y,_)=>{let{isValid:x,error:R,sanitizedCode:U}=et(_);if(!x)return {success:false,result:R??"Invalid code",updatedHtml:we(y),undo:()=>{}};let{proxy:K,undo:I}=Qe(y);try{let j=new Function("$el",U).bind(null)(K);return {success:!0,result:j!==void 0?String(j):null,updatedHtml:we(y),undo:I}}catch(j){return I(),{success:false,result:j instanceof Error?j.message:"Execution failed",updatedHtml:we(y),undo:()=>{}}}},g={send:async function*(y,_){let x=y.options?.requestId??"",R=y.sessionId,U=n.get(x),K=a.get(x);if(!U||!K)throw new Error("Could not capture element HTML");let I=R?f.get(R)??[]:[],j=I.length===0,W=cr(y.prompt,U,j),p=[...I,{role:"user",content:W}];m=Date.now();let s=0,o=null,c=[];for(;s<=r;){let v="";for await(let O of l(p,_))typeof O=="string"&&!O.startsWith("{")&&(yield O),v=O;let S=ur(v);if(typeof S=="string"){o=S,p.push({role:"assistant",content:v});break}if(!S.iterate){o=S.code,p.push({role:"assistant",content:v});break}p.push({role:"assistant",content:v}),yield "Applying\u2026";let{success:$,result:N,updatedHtml:M,undo:P}=b(K,S.code);c.push(P);let E=dr(M,$?N:`Error: ${N}`);p.push({role:"user",content:E}),s++;}for(let v=c.length-1;v>=0;v--)c[v]();if(o===null)throw new Error("Max iterations reached without final code");i.set(x,o),f.set(R??x,p),yield "Applying changes\u2026";},supportsFollowUp:true,dismissButtonText:"Copy",getCompletionMessage:()=>m===null?void 0:`Completed in ${((Date.now()-m)/1e3).toFixed(1)}s`},d=y=>{n.delete(y),a.delete(y),i.delete(y);};return {provider:g,getOptions:L,onStart:D,onComplete:(y,_)=>{let x=y.context.options?.requestId;if(!x)return;let R=i.get(x);if(!R)return;let U=R.trim();if(!_)return d(x),{error:"Could not find element to apply changes"};if(U==="")return d(x),{error:"No changes generated"};let{isValid:K,error:I,sanitizedCode:j}=et(U);if(!K)return d(x),{error:I??"No changes generated"};let{proxy:W,undo:p}=Qe(_);u.set(x,p),h=x;try{new Function("$el",j).bind(null)(W);}catch(o){return p(),u.delete(x),h=null,d(x),{error:o instanceof Error?o.message:"Code execution failed"}}let s=`${sr}${U}`;Ne(s),d(x);},onUndo:()=>{if(!h)return;let y=u.get(h);y&&(y(),u.delete(h),h=null);}}},wr=async()=>{let e=new AbortController,t=setTimeout(()=>e.abort(),1e3);try{let r=await fetch(tt,{method:"GET",signal:e.signal});return clearTimeout(t),r.ok?(await r.json().catch(()=>null))?.healthy===!0:!1}catch{return clearTimeout(t),false}},vr=async()=>{if(typeof window>"u"||!await wr())return;let{provider:t,getOptions:r,onStart:n,onComplete:a,onUndo:i}=br(),u=m=>{m.setAgent({provider:t,getOptions:r,onStart:n,onComplete:a,onUndo:i});},f=window.__REACT_GRAB__;if(f){u(f);return}window.addEventListener("react-grab:init",m=>{u(m.detail);},{once:true});let h=window.__REACT_GRAB__;h&&u(h);};vr();/**
41
+ Continue modifying or output final JavaScript code (without JSON wrapper) when done.`,r},At=e=>{let t=[],r=l=>t.push(l),n=l=>{for(let c of l)typeof c!="string"&&c.parentNode?.removeChild(c);},i=l=>((...c)=>{l(...c),r(()=>n(c));}),o=new Proxy(e.style,{set(l,c,h){if(typeof c=="string"){let g=l.getPropertyValue(c)||l[c]||"";r(()=>{l[c]=g;});}return Reflect.set(l,c,h)}}),a=new Proxy(e.classList,{get(l,c){if(c==="add")return (...g)=>{let v=g.filter(L=>!l.contains(L));return r(()=>l.remove(...v)),l.add(...g)};if(c==="remove")return (...g)=>{let v=g.filter(L=>l.contains(L));return r(()=>l.add(...v)),l.remove(...g)};if(c==="toggle")return (g,v)=>{let L=l.contains(g),x=l.toggle(g,v);return r(()=>L?l.add(g):l.remove(g)),x};if(c==="replace")return (g,v)=>{let L=l.contains(g),x=l.replace(g,v);return L&&r(()=>{l.remove(v),l.add(g);}),x};let h=Reflect.get(l,c);return typeof h=="function"?h.bind(l):h}}),u=new Proxy(e.dataset,{set(l,c,h){if(typeof c=="string"){let g=l[c],v=c in l;r(()=>v?l[c]=g:delete l[c]);}return Reflect.set(l,c,h)},deleteProperty(l,c){if(typeof c=="string"&&c in l){let h=l[c];r(()=>{l[c]=h;});}return Reflect.deleteProperty(l,c)}}),p=(l,c)=>{switch(c){case "setAttribute":return (h,g)=>{let v=l.hasAttribute(h),L=l.getAttribute(h);return r(()=>v?l.setAttribute(h,L):l.removeAttribute(h)),l.setAttribute(h,g)};case "removeAttribute":return h=>{if(l.hasAttribute(h)){let g=l.getAttribute(h);r(()=>l.setAttribute(h,g));}return l.removeAttribute(h)};case "appendChild":return h=>{let g=l.appendChild(h);return r(()=>h.parentNode?.removeChild(h)),g};case "removeChild":return h=>{let g=h.nextSibling,v=l.removeChild(h);return r(()=>l.insertBefore(h,g)),v};case "insertBefore":return (h,g)=>{let v=l.insertBefore(h,g);return r(()=>h.parentNode?.removeChild(h)),v};case "replaceChild":return (h,g)=>{let v=g.nextSibling,L=l.replaceChild(h,g);return r(()=>{l.replaceChild(g,h),v&&g.nextSibling!==v&&l.insertBefore(g,v);}),L};case "remove":return ()=>{let h=l.parentNode,g=l.nextSibling;l.remove(),r(()=>h?.insertBefore(l,g));};case "append":return i(l.append.bind(l));case "prepend":return i(l.prepend.bind(l));case "after":return i(l.after.bind(l));case "before":return i(l.before.bind(l));case "replaceWith":return (...h)=>{let g=l.parentNode,v=l.nextSibling;l.replaceWith(...h),r(()=>{let L=h.find(x=>typeof x!="string");g&&(g.insertBefore(l,L??v),n(h));});};case "insertAdjacentHTML":return (h,g)=>{let v=Array.from(l.childNodes),L=l.parentNode?Array.from(l.parentNode.childNodes):[];l.insertAdjacentHTML(h,g);let x=Array.from(l.childNodes).filter(C=>!v.includes(C)),O=l.parentNode?Array.from(l.parentNode.childNodes).filter(C=>!L.includes(C)):[];r(()=>[...x,...O].forEach(C=>C.parentNode?.removeChild(C)));};case "insertAdjacentElement":return (h,g)=>{let v=l.insertAdjacentElement(h,g);return v&&r(()=>v.parentNode?.removeChild(v)),v};default:return null}},f=new Set(["setAttribute","removeAttribute","appendChild","removeChild","insertBefore","replaceChild","remove","append","prepend","after","before","replaceWith","insertAdjacentHTML","insertAdjacentElement"]);return {proxy:new Proxy(e,{get(l,c){if(c==="style")return o;if(c==="classList")return a;if(c==="dataset")return u;if(typeof c=="string"&&f.has(c))return p(l,c);let h=Reflect.get(l,c);return typeof h=="function"?h.bind(l):h},set(l,c,h){if(typeof c=="string"){let g=l[c];r(()=>{l[c]=g;});}return Reflect.set(l,c,h)}}),undo:()=>{for(let l=t.length-1;l>=0;l--)t[l]();}}},Lt="https://www.react-grab.com/api/visual-edit",In=5,zn=[/\beval\s*\(/,/\bFunction\s*\(/,/\bdocument\.cookie\b/,/\bfetch\s*\(/,/\bXMLHttpRequest\b/],Fn=e=>e.replace(/[\u2018\u2019\u2032\u2035]/g,"'").replace(/[\u201C\u201D\u2033\u2036]/g,'"').replace(/[\u2014\u2013\u2212]/g,"-").replace(/\u2026/g,"...").replace(/[\u00A0\u2000-\u200A\u202F\u205F]/g," ").replace(/[\u200B-\u200D\uFEFF]/g,""),Nt=e=>{let t=Fn(e);try{new Function("$el",t);}catch(r){return {isValid:false,error:`Invalid JavaScript syntax${r instanceof Error?`: ${r.message}`:""}`,sanitizedCode:t}}for(let r of zn)if(r.test(t))return {isValid:false,error:`Potentially unsafe code detected: ${r.source}`,sanitizedCode:t};return {isValid:true,sanitizedCode:t}},Dn=e=>{let t=e.cloneNode(false),r=document.createElement("div");r.appendChild(t);let n=r.innerHTML,i=n.match(/<\/[^>]+>$/);return i?n.slice(0,-i[0].length):n},jn=e=>`</${e.tagName.toLowerCase()}>`,ke=e=>{let t=[],r=e.parentElement;for(let a=0;a<In&&r&&!(r===document.body||r===document.documentElement);a++)t.push(r),r=r.parentElement;if(t.length===0)return e.outerHTML;t.reverse();let n="",i="";for(let a of t)n+=`${i}${Dn(a)}
42
+ `,i+=" ";n+=`${i}<!-- START $el -->
43
+ `;let o=e.outerHTML.split(`
44
+ `);for(let a of o)n+=`${i}${a}
45
+ `;n+=`${i}<!-- END $el -->
46
+ `;for(let a=t.length-1;a>=0;a--)i=" ".repeat(a),n+=`${i}${jn(t[a])}
47
+ `;return n.trim()},Hn=(e={})=>{let t=e.apiEndpoint??Lt,r=e.maxIterations??3,n=new Map,i=new Map,o=new Map,a=new Map,u=new Map,p=null,f=null,w=()=>({requestId:`req-${Date.now()}-${Math.random().toString(36).slice(2)}`}),k=(x,O)=>{let C=x.context.options?.requestId;if(!C||!O)return;let _=ke(O);n.set(C,_),i.set(C,O);},l=async function*(x,O){let C=null,_=null,U=Date.now(),K=fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:x}),signal:O}).then(z=>{C=z;}).catch(z=>{_=z;});for(;!C&&!_;){let z=(Date.now()-U)/1e3;yield z>=.1?`Generating\u2026 ${z.toFixed(1)}s`:"Generating\u2026",await Promise.race([K,new Promise(j=>setTimeout(j,100))]);}if(_)throw _;if(!C.ok){let z=await C.text().catch(()=>"Unknown error");throw new Error(`API error: ${C.status} - ${z}`)}return yield await C.text(),""},c=(x,O)=>{let{isValid:C,error:_,sanitizedCode:U}=Nt(O);if(!C)return {success:false,result:_??"Invalid code",updatedHtml:ke(x),undo:()=>{}};let{proxy:K,undo:z}=At(x);try{let j=new Function("$el",U).bind(null)(K);return {success:!0,result:j!==void 0?String(j):null,updatedHtml:ke(x),undo:z}}catch(j){return z(),{success:false,result:j instanceof Error?j.message:"Execution failed",updatedHtml:ke(x),undo:()=>{}}}},h={send:async function*(x,O){let C=x.options?.requestId??"",_=x.sessionId,U=n.get(C),K=i.get(C);if(!U||!K)throw new Error("Could not capture element HTML");let z=_?u.get(_)??[]:[],j=z.length===0,W=On(x.prompt,U,j),b=[...z,{role:"user",content:W}];f=Date.now();let d=0,s=null,m=[];for(;d<=r;){let y="";for await(let I of l(b,O))typeof I=="string"&&!I.startsWith("{")&&(yield I),y=I;let A=Rn(y);if(typeof A=="string"){s=A,b.push({role:"assistant",content:y});break}if(!A.iterate){s=A.code,b.push({role:"assistant",content:y});break}b.push({role:"assistant",content:y}),yield "Applying\u2026";let{success:M,result:$,updatedHtml:T,undo:B}=c(K,A.code);m.push(B);let N=_n(T,M?$:`Error: ${$}`);b.push({role:"user",content:N}),d++;}for(let y=m.length-1;y>=0;y--)m[y]();if(s===null)throw new Error("Max iterations reached without final code");o.set(C,s),u.set(_??C,b),yield "Applying changes\u2026";},supportsFollowUp:true,dismissButtonText:"Copy",getCompletionMessage:()=>f===null?void 0:`Completed in ${((Date.now()-f)/1e3).toFixed(1)}s`},g=x=>{n.delete(x),i.delete(x),o.delete(x);};return {provider:h,getOptions:w,onStart:k,onComplete:async(x,O)=>{let C=x.context.options?.requestId;if(!C)return;let _=o.get(C);if(!_)return;let U=_.trim();if(!O)return g(C),{error:"Could not find element to apply changes"};if(U==="")return g(C),{error:"No changes generated"};let{isValid:K,error:z,sanitizedCode:j}=Nt(U);if(!K)return g(C),{error:z??"No changes generated"};let{proxy:W,undo:b}=At(O);a.set(C,b),p=C;try{new Function("$el",j).bind(null)(W);}catch(m){return b(),a.delete(C),p=null,g(C),{error:m instanceof Error?m.message:"Code execution failed"}}let d=await Oe(O),s=`${Bn}${U}
48
+
49
+ ---
50
+
51
+ ${d}`;_e(s),g(C);},onUndo:()=>{if(!p)return;let x=a.get(p);x&&(x(),a.delete(p),p=null);}}},Un=async()=>{let e=new AbortController,t=setTimeout(()=>e.abort(),1e3);try{let r=await fetch(Lt,{method:"GET",signal:e.signal});return clearTimeout(t),r.ok?(await r.json().catch(()=>null))?.healthy===!0:!1}catch{return clearTimeout(t),false}},Vn=async()=>{if(typeof window>"u"||!await Un())return;let{provider:t,getOptions:r,onStart:n,onComplete:i,onUndo:o}=Hn(),a=f=>{f.setAgent({provider:t,getOptions:r,onStart:n,onComplete:i,onUndo:o});},u=window.__REACT_GRAB__;if(u){a(u);return}window.addEventListener("react-grab:init",f=>{a(f.detail);},{once:true});let p=window.__REACT_GRAB__;p&&a(p);};Vn();/**
28
52
  * @license MIT
29
53
  *
30
54
  * Copyright (c) 2025 Aiden Bai
@@ -83,4 +107,4 @@ bippy/dist/index.js:
83
107
  * This source code is licensed under the MIT license found in the
84
108
  * LICENSE file in the root directory of this source tree.
85
109
  *)
86
- */exports.attachAgent=vr;exports.createVisualEditAgentProvider=br;return exports;})({});
110
+ */exports.attachAgent=Vn;exports.createVisualEditAgentProvider=Hn;return exports;})({});