@react-grab/visual-edit 0.0.90 → 0.0.92

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.
@@ -1,110 +0,0 @@
1
- var ReactGrabVisualEdit=(function(exports){'use strict';var Pt=(e,t)=>e===t,ze={equals:Pt},$t=tt,oe=1,we=2;var be=null,re=null,Fe=null,H=null,W=null,ee=null,xe=0;function Rt(e,t){t=t?Object.assign({},ze,t):ze;let r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=o=>(typeof o=="function"&&(o=o(r.value)),Je(r,o));return [Ot.bind(r),n]}function Dt(e){if(H===null)return e();let t=H;H=null;try{return Fe?Fe.untrack(e):e()}finally{H=t;}}Rt(false);function Ot(){let e=re;if(this.sources&&this.state)if(this.state===oe)Qe(this);else {let t=W;W=null,Ce(()=>ye(this)),W=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 Je(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 o=0;o<e.observers.length;o+=1){let i=e.observers[o],a=re&&re.running;a&&re.disposed.has(i)||((a?!i.tState:!i.state)&&(i.pure?W.push(i):ee.push(i),i.observers&&rt(i)),a?i.tState=oe:i.state=oe);}if(W.length>1e6)throw W=[],new Error})),t}function Qe(e){if(!e.fn)return;ve(e);let t=xe;It(e,e.value,t);}function It(e,t,r){let n,o=be,i=H;H=be=e;try{n=e.fn(t);}catch(a){return e.pure&&(e.state=oe,e.owned&&e.owned.forEach(ve),e.owned=null),e.updatedAt=r+1,nt(a)}finally{H=i,be=o;}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?Je(e,n):e.value=n,e.updatedAt=r);}function et(e){if(e.state===0)return;if(e.state===we)return ye(e);if(e.suspense&&Dt(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)Qe(e);else if(e.state===we){let o=W;W=null,Ce(()=>ye(e,r[0])),W=o;}}function Ce(e,t){if(W)return e();let r=false;(W=[]),ee?r=true:ee=[],xe++;try{let n=e();return Bt(r),n}catch(n){r||(ee=null),W=null,nt(n);}}function Bt(e){if(W&&(tt(W),W=null),e)return;let t=ee;ee=null,t.length&&Ce(()=>$t(t));}function tt(e){for(let t=0;t<e.length;t++)et(e[t]);}function ye(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let n=e.sources[r];if(n.sources){let o=n.state;o===oe?n!==t&&(!n.updatedAt||n.updatedAt<xe)&&et(n):o===we&&ye(n,t);}}}function rt(e){for(let t=0;t<e.observers.length;t+=1){let r=e.observers[t];!r.state&&(r.state=we,r.pure?W.push(r):ee.push(r),r.observers&&rt(r));}}function ve(e){let t;if(e.sources)for(;e.sources.length;){let r=e.sources.pop(),n=e.sourceSlots.pop(),o=r.observers;if(o&&o.length){let i=o.pop(),a=r.observerSlots.pop();n<o.length&&(i.sourceSlots[a]=n,o[n]=i,r.observerSlots[n]=a);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ve(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ve(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 _t(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function nt(e,t=be){throw _t(e)}var je="_$DX_DELEGATE";function S(e,t,r,n){let o,i=()=>{let u=document.createElement("template");return u.innerHTML=e,u.content.firstChild},a=()=>(o||(o=i())).cloneNode(true);return a.cloneNode=a,a}function ot(e,t=window.document){let r=t[je]||(t[je]=new Set);for(let n=0,o=e.length;n<o;n++){let i=e[n];r.has(i)||(r.add(i),t.addEventListener(i,zt));}}function zt(e){let t=e.target,r=`$$${e.type}`,n=e.target,o=e.currentTarget,i=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)&&i(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();i(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===o)break}}else u();i(n);}var Ft="0.0.90";var Re="-",jt=e=>{let t=Ut(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return {getClassGroupId:o=>{let i=o.split(Re);return i[0]===""&&i.length!==1&&i.shift(),it(i,t)||Ht(o)},getConflictingClassGroupIds:(o,i)=>{let a=r[o]||[];return i&&n[o]?[...a,...n[o]]:a}}},it=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),o=n?it(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;let i=e.join(Re);return t.validators.find(({validator:a})=>a(i))?.classGroupId},He=/^\[(.+)\]$/,Ht=e=>{if(He.test(e)){let t=He.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 Wt(Object.entries(e.classGroups),r).forEach(([o,i])=>{Le(i,n,o,t);}),n},Le=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){let i=o===""?t:Ue(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(Vt(o)){Le(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,a])=>{Le(a,Ue(t,i),r,n);});});},Ue=(e,t)=>{let r=e;return t.split(Re).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n);}),r},Vt=e=>e.isThemeGetter,Wt=(e,t)=>t?e.map(([r,n])=>{let o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,u])=>[t+a,u])):i);return [r,o]}):e,Kt=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map,o=(i,a)=>{r.set(i,a),t++,t>e&&(t=0,n=r,r=new Map);};return {get(i){let a=r.get(i);if(a!==void 0)return a;if((a=n.get(i))!==void 0)return o(i,a),a},set(i,a){r.has(i)?r.set(i,a):o(i,a);}}},at="!",Gt=e=>{let{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],i=t.length,a=u=>{let p=[],f=0,w=0,C;for(let y=0;y<u.length;y++){let L=u[y];if(f===0){if(L===o&&(n||u.slice(y,y+i)===t)){p.push(u.slice(w,y)),w=y+i;continue}if(L==="/"){C=y;continue}}L==="["?f++:L==="]"&&f--;}let l=p.length===0?u:u.substring(w),d=l.startsWith(at),h=d?l.substring(1):l,g=C&&C>w?C-w:void 0;return {modifiers:p,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:g}};return r?u=>r({className:u,parseClassName:a}):a},qt=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},Xt=e=>({cache:Kt(e.cacheSize),parseClassName:Gt(e),...jt(e)}),Zt=/\s+/,Yt=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Zt),u="";for(let p=a.length-1;p>=0;p-=1){let f=a[p],{modifiers:w,hasImportantModifier:C,baseClassName:l,maybePostfixModifierPosition:d}=r(f),h=!!d,g=n(h?l.substring(0,d):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 y=qt(w).join(":"),L=C?y+at:y,x=L+g;if(i.includes(x))continue;i.push(x);let O=o(g,h);for(let k=0;k<O.length;++k){let I=O[k];i.push(L+I);}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=lt(t))&&(n&&(n+=" "),n+=r);return n}var lt=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=lt(e[n]))&&(r&&(r+=" "),r+=t);return r};function Qt(e,...t){let r,n,o,i=a;function a(p){let f=t.reduce((w,C)=>C(w),e());return r=Xt(f),n=r.cache.get,o=r.cache.set,i=u,u(p)}function u(p){let f=n(p);if(f)return f;let w=Yt(p,r);return o(p,w),w}return function(){return i(Jt.apply(null,arguments))}}var D=e=>{let t=r=>r[e]||[];return t.isThemeGetter=true,t},st=/^\[(?:([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)\(.+\)$/,X=e=>ne(e)||tr.has(e)||er.test(e),Y=e=>ie(e,"length",gr),ne=e=>!!e&&!Number.isNaN(Number(e)),Ae=e=>ie(e,"number",ne),ce=e=>!!e&&Number.isInteger(Number(e)),lr=e=>e.endsWith("%")&&ne(e.slice(0,-1)),A=e=>st.test(e),J=e=>rr.test(e),sr=new Set(["length","size","percentage"]),ur=e=>ie(e,sr,ut),cr=e=>ie(e,"position",ut),dr=new Set(["image","url"]),pr=e=>ie(e,dr,mr),fr=e=>ie(e,"",hr),de=()=>true,ie=(e,t,r)=>{let n=st.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),ut=()=>false,hr=e=>ir.test(e),mr=e=>ar.test(e),br=()=>{let e=D("colors"),t=D("spacing"),r=D("blur"),n=D("brightness"),o=D("borderColor"),i=D("borderRadius"),a=D("borderSpacing"),u=D("borderWidth"),p=D("contrast"),f=D("grayscale"),w=D("hueRotate"),C=D("invert"),l=D("gap"),d=D("gradientColorStops"),h=D("gradientColorStopPositions"),g=D("inset"),y=D("margin"),L=D("opacity"),x=D("padding"),O=D("saturate"),k=D("scale"),I=D("sepia"),U=D("skew"),K=D("space"),_=D("translate"),z=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto",A,t],c=()=>[A,t],s=()=>["",X,Y],m=()=>["auto",ne,A],v=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["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"],T=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",A],R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[ne,A];return {cacheSize:500,separator:":",theme:{colors:[de],spacing:[X,Y],blur:["none","",J,A],brightness:N(),borderColor:[e],borderRadius:["none","","full",J,A],borderSpacing:c(),borderWidth:s(),contrast:N(),grayscale:P(),hueRotate:N(),invert:P(),gap:c(),gradientColorStops:[e],gradientColorStopPositions:[lr,Y],inset:b(),margin:b(),opacity:N(),padding:c(),saturate:N(),scale:N(),sepia:P(),skew:N(),space:c(),translate:c()},classGroups:{aspect:[{aspect:["auto","square","video",A]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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(),A]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],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,A]}],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",A]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",ce,A]}],"grid-cols":[{"grid-cols":[de]}],"col-start-end":[{col:["auto",{span:["full",ce,A]},A]}],"col-start":[{"col-start":m()}],"col-end":[{"col-end":m()}],"grid-rows":[{"grid-rows":[de]}],"row-start-end":[{row:["auto",{span:[ce,A]},A]}],"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",A]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",A]}],gap:[{gap:[l]}],"gap-x":[{"gap-x":[l]}],"gap-y":[{"gap-y":[l]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"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:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"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",A,t]}],"min-w":[{"min-w":[A,t,"min","max","fit"]}],"max-w":[{"max-w":[A,t,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[A,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[A,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[A,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[A,t,"auto","min","max","fit"]}],"font-size":[{text:["base",J,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ae]}],"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",A]}],"line-clamp":[{"line-clamp":["none",ne,Ae]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",X,A]}],"list-image":[{"list-image":["none",A]}],"list-style-type":[{list:["none","disc","decimal",A]}],"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:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",X,Y]}],"underline-offset":[{"underline-offset":["auto",X,A]}],"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:c()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A]}],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",A]}],"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:[...v(),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:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],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:[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:[...E(),"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:E()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[X,A]}],"outline-w":[{outline:[X,Y]}],"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":[X,Y]}],"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,A]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[C]}],saturate:[{saturate:[O]}],sepia:[{sepia:[I]}],"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":[C]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"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",A]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",A]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",A]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[ce,A]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"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",A]}],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",A]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":c()}],"scroll-mx":[{"scroll-mx":c()}],"scroll-my":[{"scroll-my":c()}],"scroll-ms":[{"scroll-ms":c()}],"scroll-me":[{"scroll-me":c()}],"scroll-mt":[{"scroll-mt":c()}],"scroll-mr":[{"scroll-mr":c()}],"scroll-mb":[{"scroll-mb":c()}],"scroll-ml":[{"scroll-ml":c()}],"scroll-p":[{"scroll-p":c()}],"scroll-px":[{"scroll-px":c()}],"scroll-py":[{"scroll-py":c()}],"scroll-ps":[{"scroll-ps":c()}],"scroll-pe":[{"scroll-pe":c()}],"scroll-pt":[{"scroll-pt":c()}],"scroll-pr":[{"scroll-pr":c()}],"scroll-pb":[{"scroll-pb":c()}],"scroll-pl":[{"scroll-pl":c()}],"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",A]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[X,Y,Ae]}],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">');ot(["click","pointerdown","mousedown","pointerup","input","keydown"]);S('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>');ot(["click"]);var wr="0.5.26",ct=`bippy-${wr}`,Ve=Object.defineProperty,yr=Object.prototype.hasOwnProperty,fe=()=>{},dt=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{}},pt=(e=ae())=>"getFiberRoots"in e,ft=false,We,Te=(e=ae())=>ft?true:(typeof e.inject=="function"&&(We=e.inject.toString()),!!We?.includes("(injected)")),Me=new Set,ge=new Set,vr=e=>{let t=new Map,r=0,n={_instrumentationIsActive:false,_instrumentationSource:ct,checkDCE:dt,hasUnsupportedRendererAttached:false,inject(o){let i=++r;return t.set(i,o),ge.add(o),n._instrumentationIsActive||(n._instrumentationIsActive=true,Me.forEach(a=>a())),i},on:fe,onCommitFiberRoot:fe,onCommitFiberUnmount:fe,onPostCommitFiberRoot:fe,renderers:t,supportsFiber:true,supportsFlight:true};try{Ve(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);}),Pe(e));}}});let o=window.hasOwnProperty,i=!1;Ve(window,"hasOwnProperty",{configurable:!0,value:function(...a){try{if(!i&&a[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,i=!0,-0}catch{}return o.apply(this,a)},writable:!0});}catch{Pe(e);}return n},Pe=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=dt,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=ct,t._instrumentationIsActive=!1;let r=pt(t);if(r||(t.on=fe),t.renderers.size){t._instrumentationIsActive=!0,Me.forEach(i=>i());return}let n=t.inject,o=Te(t);o&&!r&&(ft=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=i=>{let a=n(i);return ge.add(i),o&&t.renderers.set(a,i),t._instrumentationIsActive=!0,Me.forEach(u=>u()),a};}(t.renderers.size||t._instrumentationIsActive||Te())&&e?.();}catch{}},xr=()=>yr.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),ae=e=>xr()?(Pe(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):vr(e),Cr=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),kr=()=>{try{Cr()&&ae();}catch{}},Sr=0,Ar=1,Er=5,Nr=11,Lr=13,Tr=15,Mr=16,Pr=19,$r=26,Rr=27,Dr=28,Or=30;function Ir(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 i=r?e.return:e.child;for(;i;){let a=await ht(i,t,r);if(a)return a;i=r?null:i.sibling;}return null})();if(n===true)return e;let o=r?e.return:e.child;for(;o;){let i=gt(o,t,r);if(i)return i;o=r?null:o.sibling;}return null}var gt=(e,t,r=false)=>{if(!e)return null;if(t(e)===true)return e;let n=r?e.return:e.child;for(;n;){let o=gt(n,t,r);if(o)return o;n=r?null:n.sibling;}return null},ht=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 o=await ht(n,t,r);if(o)return o;n=r?null:n.sibling;}return null},mt=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?mt(t.type||t.render):null},$e=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=mt(t);return n&&(n.displayName||n.name)||null},bt=()=>!!ae()._instrumentationIsActive||pt()||Te(),Br=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},_r=Object.create,wt=Object.defineProperty,zr=Object.getOwnPropertyDescriptor,Fr=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 o=Fr(t),i=0,a=o.length,u;i<a;i++)u=o[i],!Hr.call(e,u)&&u!==r&&wt(e,u,{get:(p=>t[p]).bind(null,u),enumerable:!(n=zr(t,u))||n.enumerable});return e},Wr=(e,t,r)=>(r=e==null?{}:_r(jr(e)),Vr(wt(r,"default",{value:e,enumerable:true}),e)),Ke=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Kr=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/"],Ge="about://React/",Gr=["<anonymous>","eval",""],qr=/\.(jsx|tsx|ts|js)$/,Xr=/(\.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,Zr=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,yt="(at Server)",Yr=/(^|@)\S+:\d+/,Jr=/^\s*at .*(\S+:\d+|\(native\))/m,Qr=/^(eval@)?(\[native code\])?$/,vt=(e,t)=>{{let r=e.split(`
2
- `),n=[];for(let o of r)if(/^\s*at\s+/.test(o)){let i=en(o,void 0)[0];i&&n.push(i);}else if(/^\s*in\s+/.test(o)){let i=o.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");n.push({functionName:i,source:o});}else if(o.match(Yr)){let i=tn(o,void 0)[0];i&&n.push(i);}return De(n,t)}},xt=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]},De=(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)=>De(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 o=n.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),i=o.match(/ (\(.+\)$)/);o=i?o.replace(i[0],""):o;let a=xt(i?i[1]:o),u=i&&o||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)=>De(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 o=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,i=n.match(o),a=i&&i[1]?i[1]:void 0,u=xt(n.replace(o,""));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,o=59,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),u=new Uint8Array(128);for(let b=0;b<i.length;b++){let c=i.charCodeAt(b);a[b]=c,u[c]=b;}function p(b,c){let s=0,m=0,v=0;do{let M=b.next();v=u[M],s|=(v&31)<<m,m+=5;}while(v&32);let E=s&1;return s>>>=1,E&&(s=-2147483648|-s),c+s}function f(b,c,s){let m=c-s;m=m<0?-m<<1|1:m<<1;do{let v=m&31;m>>>=5,m>0&&(v|=32),b.write(a[v]);}while(m>0);return c}function w(b,c){return b.pos>=c?false:b.peek()!==n}let C=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 c="";for(let s=0;s<b.length;s++)c+=String.fromCharCode(b[s]);return c}};class d{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(C);}write(c){let{buffer:s}=this;s[this.pos++]=c,this.pos===C&&(this.out+=l.decode(s),this.pos=0);}flush(){let{buffer:c,out:s,pos:m}=this;return m>0?s+l.decode(c.subarray(0,m)):s}}class h{constructor(c){this.pos=0,this.buffer=c;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(c){let{buffer:s,pos:m}=this,v=s.indexOf(c,m);return v===-1?s.length:v}}let g=[];function y(b){let{length:c}=b,s=new h(b),m=[],v=[],E=0;for(;s.pos<c;s.pos++){E=p(s,E);let M=p(s,0);if(!w(s,c)){let F=v.pop();F[2]=E,F[3]=M;continue}let T=p(s,0),P=p(s,0),R=P&1,N=R?[E,M,0,0,T,p(s,0)]:[E,M,0,0,T],B=g;if(w(s,c)){B=[];do{let F=p(s,0);B.push(F);}while(w(s,c))}N.vars=B,m.push(N),v.push(N);}return m}function L(b){let c=new d;for(let s=0;s<b.length;)s=x(b,s,c,[0]);return c.flush()}function x(b,c,s,m){let v=b[c],{0:E,1:M,2:T,3:P,4:R,vars:N}=v;c>0&&s.write(n),m[0]=f(s,E,m[0]),f(s,M,0),f(s,R,0);let B=v.length===6?1:0;f(s,B,0),v.length===6&&f(s,v[5],0);for(let F of N)f(s,F,0);for(c++;c<b.length;){let F=b[c],{0:$,1:j}=F;if($>T||$===T&&j>=P)break;c=x(b,c,s,m);}return s.write(n),m[0]=f(s,T,m[0]),f(s,P,0),c}function O(b){let{length:c}=b,s=new h(b),m=[],v=[],E=0,M=0,T=0,P=0,R=0,N=0,B=0,F=0;do{let $=s.indexOf(";"),j=0;for(;s.pos<$;s.pos++){if(j=p(s,j),!w(s,$)){let G=v.pop();G[2]=E,G[3]=j;continue}let q=p(s,0),he=q&1,le=q&2,se=q&4,_e=null,Se=g,Q;if(he){let G=p(s,M);T=p(s,M===G?T:0),M=G,Q=[E,j,0,0,G,T];}else Q=[E,j,0,0];if(Q.isScope=!!se,le){let G=P,te=R;P=p(s,P);let ue=G===P;R=p(s,ue?R:0),N=p(s,ue&&te===R?N:0),_e=[P,R,N];}if(Q.callsite=_e,w(s,$)){Se=[];do{B=E,F=j;let G=p(s,0),te;if(G<-1){te=[[p(s,0)]];for(let ue=-1;ue>G;ue--){let Tt=B;B=p(s,B),F=p(s,B===Tt?F:0);let Mt=p(s,0);te.push([Mt,B,F]);}}else te=[[G]];Se.push(te);}while(w(s,$))}Q.bindings=Se,m.push(Q),v.push(Q);}E++,s.pos=$+1;}while(s.pos<c);return m}function k(b){if(b.length===0)return "";let c=new d;for(let s=0;s<b.length;)s=I(b,s,c,[0,0,0,0,0,0,0]);return c.flush()}function I(b,c,s,m){let v=b[c],{0:E,1:M,2:T,3:P,isScope:R,callsite:N,bindings:B}=v;m[0]<E?(U(s,m[0],E),m[0]=E,m[1]=0):c>0&&s.write(n),m[1]=f(s,v[1],m[1]);let F=(v.length===6?1:0)|(N?2:0)|(R?4:0);if(f(s,F,0),v.length===6){let{4:$,5:j}=v;$!==m[2]&&(m[3]=0),m[2]=f(s,$,m[2]),m[3]=f(s,j,m[3]);}if(N){let{0:$,1:j,2:q}=v.callsite;$===m[4]?j!==m[5]&&(m[6]=0):(m[5]=0,m[6]=0),m[4]=f(s,$,m[4]),m[5]=f(s,j,m[5]),m[6]=f(s,q,m[6]);}if(B)for(let $ of B){$.length>1&&f(s,-$.length,0);let j=$[0][0];f(s,j,0);let q=E,he=M;for(let le=1;le<$.length;le++){let se=$[le];q=f(s,se[1],q),he=f(s,se[2],he),f(s,se[0],0);}}for(c++;c<b.length;){let $=b[c],{0:j,1:q}=$;if(j>T||j===T&&q>=P)break;c=I(b,c,s,m);}return m[0]<T?(U(s,m[0],T),m[0]=T,m[1]=0):s.write(n),m[1]=f(s,P,m[1]),c}function U(b,c,s){do b.write(o);while(++c<s)}function K(b){let{length:c}=b,s=new h(b),m=[],v=0,E=0,M=0,T=0,P=0;do{let R=s.indexOf(";"),N=[],B=true,F=0;for(v=0;s.pos<R;){let $;v=p(s,v),v<F&&(B=false),F=v,w(s,R)?(E=p(s,E),M=p(s,M),T=p(s,T),w(s,R)?(P=p(s,P),$=[v,E,M,T,P]):$=[v,E,M,T]):$=[v],N.push($),s.pos++;}B||_(N),m.push(N),s.pos=R+1;}while(s.pos<=c);return m}function _(b){b.sort(z);}function z(b,c){return b[0]-c[0]}function V(b){let c=new d,s=0,m=0,v=0,E=0;for(let M=0;M<b.length;M++){let T=b[M];if(M>0&&c.write(o),T.length===0)continue;let P=0;for(let R=0;R<T.length;R++){let N=T[R];R>0&&c.write(n),P=f(c,N[0],P),N.length!==1&&(s=f(c,N[1],s),m=f(c,N[2],m),v=f(c,N[3],v),N.length!==4&&(E=f(c,N[4],E)));}}return c.flush()}r.decode=K,r.decodeGeneratedRanges=O,r.decodeOriginalScopes=y,r.encode=V,r.encodeGeneratedRanges=k,r.encodeOriginalScopes=L,Object.defineProperty(r,"__esModule",{value:true});});}),Ct=Wr(rn()),kt=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,nn=/^data:application\/json[^,]+base64,/,on=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,St=typeof WeakRef<"u",pe=new Map,me=new Map,an=e=>St&&e instanceof WeakRef,qe=(e,t,r,n)=>{if(r<0||r>=e.length)return null;let o=e[r];if(!o||o.length===0)return null;let i=null;for(let w of o)if(w[0]<=n)i=w;else break;if(!i||i.length<4)return null;let[,a,u,p]=i;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 o=t-n.offset.line,i=t===n.offset.line?r-n.offset.column:r;return qe(n.map.mappings,n.map.sources,o,i)}return qe(e.mappings,e.sources,t-1,r)},sn=(e,t)=>{let r=t.split(`
5
- `),n;for(let i=r.length-1;i>=0&&!n;i--){let a=r[i].match(on);a&&(n=a[1]||a[2]);}if(!n)return null;let o=kt.test(n);if(!(nn.test(n)||o||n.startsWith("/"))){let i=e.split("/");i[i.length-1]=n,n=i.join("/");}return n},un=e=>({file:e.file,mappings:(0, Ct.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:o})=>({map:{...n,mappings:(0, Ct.decode)(n.mappings)},offset:o})),r=new Set;for(let n of t)for(let o of n.map.sources)r.add(o);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(kt);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 o=await t(n),i=await o.json();return "sections"in i?cn(i):un(i)}catch{return null}},pn=async(e,t=true,r)=>{if(t&&pe.has(e)){let i=pe.get(e);if(i==null)return null;if(an(i)){let a=i.deref();if(a)return a;pe.delete(e);}else return i}if(t&&me.has(e))return me.get(e);let n=dn(e,r);t&&me.set(e,n);let o=await n;return t&&me.delete(e),t&&(o===null?pe.set(e,null):pe.set(e,St?new WeakRef(o):o)),o},fn=async(e,t=true,r)=>await Promise.all(e.map(async n=>{if(!n.fileName)return n;let o=await pn(n.fileName,t,r);if(!o||typeof n.lineNumber!="number"||typeof n.columnNumber!="number")return n;let i=ln(o,n.lineNumber,n.columnNumber);return i?{...n,source:i.fileName&&n.source?n.source.replace(n.fileName,i.fileName):n.source,fileName:i.fileName,lineNumber:i.lineNumber,columnNumber:i.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},Ze=e=>{for(let t of ge){let r=t.currentDispatcherRef;r&&typeof r=="object"&&("H"in r?r.H=e:r.current=e);}},Z=e=>`
6
- in ${e}`,mn=(e,t)=>{let r=Z(e);return t&&(r+=` (at ${t})`),r},Ee=false,Ne=(e,t)=>{if(!e||Ee)return "";let r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,Ee=true;let n=hn();Ze(null);let o=console.error,i=console.warn;console.error=()=>{},console.warn=()=>{};try{let u={DetermineComponentFrameRoot(){let w;try{if(t){let C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[]);}catch(l){w=l;}Reflect.construct(e,[],C);}else {try{C.call();}catch(l){w=l;}e.call(C.prototype);}}else {try{throw Error()}catch(l){w=l;}let C=e();C&&typeof C.catch=="function"&&C.catch(()=>{});}}catch(C){if(C instanceof Error&&w instanceof Error&&typeof C.stack=="string")return [C.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
- `),C=f.split(`
8
- `),l=0,d=0;for(;l<w.length&&!w[l].includes("DetermineComponentFrameRoot");)l++;for(;d<C.length&&!C[d].includes("DetermineComponentFrameRoot");)d++;if(l===w.length||d===C.length)for(l=w.length-1,d=C.length-1;l>=1&&d>=0&&w[l]!==C[d];)d--;for(;l>=1&&d>=0;l--,d--)if(w[l]!==C[d]){if(l!==1||d!==1)do if(l--,d--,d<0||w[l]!==C[d]){let h=`
9
- ${w[l].replace(" at new "," at ")}`,g=$e(e);return g&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",g)),h}while(l>=1&&d>=0);break}}}finally{Ee=false,Error.prepareStackTrace=r,Ze(n),console.error=o,console.warn=i;}let a=e?$e(e):"";return a?Z(a):""},bn=(e,t)=>{let r=e.tag,n="";switch(r){case Dr:n=Z("Activity");break;case Ar:n=Ne(e.type,true);break;case Nr:n=Ne(e.type.render,false);break;case Sr:case Tr:n=Ne(e.type,false);break;case Er:case $r:case Rr:n=Z(e.type);break;case Mr:n=Z("Lazy");break;case Lr:n=e.child!==t&&t!==null?Z("Suspense Fallback"):Z("Suspense");break;case Pr:n=Z("SuspenseList");break;case Or:n=Z("ViewTransition");break;default:return ""}return n},wn=e=>{try{let t="",r=e,n=null;do{t+=bn(r,n);let o=r._debugInfo;if(o&&Array.isArray(o))for(let i=o.length-1;i>=0;i--){let a=o[i];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}`:""}},yn=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},vn=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(!vn(n))continue;let o=n.functionName,i=t.get(o)??[];i.some(a=>xn(a,n))||(i.push(n),t.set(o,i));}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 o=r.get(e.functionName)??0,i=n[o%n.length];return r.set(e.functionName,o+1),{...e,isServer:true,fileName:i.fileName,lineNumber:i.lineNumber,columnNumber:i.columnNumber,source:e.source?.replace(yt,`(${i.fileName}:${i.lineNumber}:${i.columnNumber})`)}},Sn=e=>{let t=[];return Ir(e,r=>{if(!gn(r))return;let n=typeof r.type=="string"?r.type:$e(r.type)||"<anonymous>";t.push({componentName:n,stackFrames:vt(yn(r._debugStack?.stack))});},true),t},An=async(e,t=true,r)=>{let n=Sn(e),o=vt(wn(e)),i=Cn(n),a=new Map,u=o.map(f=>f.source?.includes(yt)??false?kn(f,i,a):f),p=u.filter((f,w,C)=>{if(w===0)return true;let l=C[w-1];return f.functionName!==l.functionName});return fn(p,t,r)},At=e=>{if(!e||Gr.some(o=>o===e))return "";let t=e;if(t.startsWith("http://")||t.startsWith("https://"))try{t=new URL(t).pathname;}catch{}if(t.startsWith(Ge)){let o=t.slice(Ge.length),i=o.indexOf("/"),a=o.indexOf(":");t=i!==-1&&(a===-1||i<a)?o.slice(i+1):o;}let r=true;for(;r;){r=false;for(let o of Kr)if(t.startsWith(o)){t=t.slice(o.length),o==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`),r=true;break}}if(Ke.test(t)){let o=t.match(Ke);o&&(t=t.slice(o[0].length));}if(t.startsWith("//")){let o=t.indexOf("/",2);t=o===-1?"":t.slice(o);}let n=t.indexOf("?");if(n!==-1){let o=t.slice(n);Zr.test(o)&&(t=t.slice(0,n));}return t},En=e=>{let t=At(e);return !(!t||!qr.test(t)||Xr.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"]),Tn=()=>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(!bt())return [];let t=Br(e);return t?await An(t):null};var Oe=async(e,t={})=>{let{maxLines:r=3}=t,n=Pn(e),o=await Et(e),i=Tn(),a=[];if(o)for(let u of o){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&&En(u.fileName)){let p=`
16
- in `,f=u.functionName&&Ye(u.functionName);f&&(p+=`${u.functionName} (at `),p+=At(u.fileName),i&&u.lineNumber&&u.columnNumber&&(p+=`:${u.lineNumber}:${u.columnNumber}`),f&&(p+=")"),a.push(p);}}return `${n}${a.join("")}`},Pn=e=>{let t=e.tagName.toLowerCase();if(!(e instanceof HTMLElement))return `<${t} />`;let r=e.innerText?.trim()??e.textContent?.trim()??"",n="",o=Array.from(e.attributes);for(let d of o){let h=d.name,g=d.value;g.length>20&&(g=`${g.slice(0,20)}...`),n+=` ${h}="${g}"`;}let i=[],a=[],u=false,p=Array.from(e.childNodes);for(let d of p)d.nodeType!==Node.COMMENT_NODE&&(d.nodeType===Node.TEXT_NODE?d.textContent&&d.textContent.trim().length>0&&(u=true):d instanceof Element&&(u?a.push(d):i.push(d)));let f=d=>d.length===0?"":d.length<=2?d.map(h=>`<${h.tagName.toLowerCase()} ...>`).join(`
17
- `):`(${d.length} elements)`,w="",C=f(i);if(C&&(w+=`
18
- ${C}`),r.length>0){let d=r.length>100?`${r.slice(0,100)}...`:r;w+=`
19
- ${d}`;}let l=f(a);return l&&(w+=`
20
- ${l}`),w.length>0?`<${t}${n}>${w}
21
- </${t}>`:`<${t}${n} />`};var $n="application/x-react-grab",Ie=(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($n,r);};document.addEventListener("copy",n);let o=document.createElement("textarea");o.value=e,o.style.position="fixed",o.style.left="-9999px",o.ariaHidden="true",document.body.appendChild(o),o.select();try{let i=document.execCommand("copy");return i&&t?.onSuccess?.(),i}finally{document.removeEventListener("copy",n),o.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 Rn=`Use this as reference to make the change, do not actually write this code:
22
-
23
- `,Dn=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:
24
-
25
- ${t}
26
-
27
- Modification request: ${e}
28
-
29
- You can either:
30
- 1. Output ONLY the JavaScript code if you're confident in the change
31
- 2. Output JSON to iterate: { "iterate": true, "code": "...", "reason": "why you need to see the result" }
32
-
33
- When iterating, the code will be executed and you'll see the updated HTML to refine further.`:`Follow-up modification request: ${e}
34
-
35
- Remember: Output ONLY the JavaScript code for this modification. The $el variable still references the same element.`,In=(e,t)=>{let r=`Here is the updated HTML after executing your code:
36
-
37
- ${e}`;return t&&(r+=`
38
-
39
- Execution result: ${t}`),r+=`
40
-
41
- Continue modifying or output final JavaScript code (without JSON wrapper) when done.`,r},Nt=e=>{let t=[],r=l=>t.push(l),n=l=>{for(let d of l)typeof d!="string"&&d.parentNode?.removeChild(d);},o=l=>((...d)=>{l(...d),r(()=>n(d));}),i=new Proxy(e.style,{set(l,d,h){if(typeof d=="string"){let g=l.getPropertyValue(d)||l[d]||"";r(()=>{l[d]=g;});}return Reflect.set(l,d,h)}}),a=new Proxy(e.classList,{get(l,d){if(d==="add")return (...g)=>{let y=g.filter(L=>!l.contains(L));return r(()=>l.remove(...y)),l.add(...g)};if(d==="remove")return (...g)=>{let y=g.filter(L=>l.contains(L));return r(()=>l.add(...y)),l.remove(...g)};if(d==="toggle")return (g,y)=>{let L=l.contains(g),x=l.toggle(g,y);return r(()=>L?l.add(g):l.remove(g)),x};if(d==="replace")return (g,y)=>{let L=l.contains(g),x=l.replace(g,y);return L&&r(()=>{l.remove(y),l.add(g);}),x};let h=Reflect.get(l,d);return typeof h=="function"?h.bind(l):h}}),u=new Proxy(e.dataset,{set(l,d,h){if(typeof d=="string"){let g=l[d],y=d in l;r(()=>y?l[d]=g:delete l[d]);}return Reflect.set(l,d,h)},deleteProperty(l,d){if(typeof d=="string"&&d in l){let h=l[d];r(()=>{l[d]=h;});}return Reflect.deleteProperty(l,d)}}),p=(l,d)=>{switch(d){case "setAttribute":return (h,g)=>{let y=l.hasAttribute(h),L=l.getAttribute(h);return r(()=>y?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,y=l.removeChild(h);return r(()=>l.insertBefore(h,g)),y};case "insertBefore":return (h,g)=>{let y=l.insertBefore(h,g);return r(()=>h.parentNode?.removeChild(h)),y};case "replaceChild":return (h,g)=>{let y=g.nextSibling,L=l.replaceChild(h,g);return r(()=>{l.replaceChild(g,h),y&&g.nextSibling!==y&&l.insertBefore(g,y);}),L};case "remove":return ()=>{let h=l.parentNode,g=l.nextSibling;l.remove(),r(()=>h?.insertBefore(l,g));};case "append":return o(l.append.bind(l));case "prepend":return o(l.prepend.bind(l));case "after":return o(l.after.bind(l));case "before":return o(l.before.bind(l));case "replaceWith":return (...h)=>{let g=l.parentNode,y=l.nextSibling;l.replaceWith(...h),r(()=>{let L=h.find(x=>typeof x!="string");g&&(g.insertBefore(l,L??y),n(h));});};case "insertAdjacentHTML":return (h,g)=>{let y=Array.from(l.childNodes),L=l.parentNode?Array.from(l.parentNode.childNodes):[];l.insertAdjacentHTML(h,g);let x=Array.from(l.childNodes).filter(k=>!y.includes(k)),O=l.parentNode?Array.from(l.parentNode.childNodes).filter(k=>!L.includes(k)):[];r(()=>[...x,...O].forEach(k=>k.parentNode?.removeChild(k)));};case "insertAdjacentElement":return (h,g)=>{let y=l.insertAdjacentElement(h,g);return y&&r(()=>y.parentNode?.removeChild(y)),y};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,d){if(d==="style")return i;if(d==="classList")return a;if(d==="dataset")return u;if(typeof d=="string"&&f.has(d))return p(l,d);let h=Reflect.get(l,d);return typeof h=="function"?h.bind(l):h},set(l,d,h){if(typeof d=="string"){let g=l[d];r(()=>{l[d]=g;});}return Reflect.set(l,d,h)}}),undo:()=>{for(let l=t.length-1;l>=0;l--)t[l]();}}},Bn="https://www.react-grab.com/api/visual-edit",_n="https://www.react-grab.com/api/check-visual-edit",zn=5,Fn=[/\beval\s*\(/,/\bFunction\s*\(/,/\bdocument\.cookie\b/,/\bfetch\s*\(/,/\bXMLHttpRequest\b/],jn=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,""),Lt=e=>{let t=jn(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 Fn)if(r.test(t))return {isValid:false,error:`Potentially unsafe code detected: ${r.source}`,sanitizedCode:t};return {isValid:true,sanitizedCode:t}},Hn=e=>{let t=e.cloneNode(false),r=document.createElement("div");r.appendChild(t);let n=r.innerHTML,o=n.match(/<\/[^>]+>$/);return o?n.slice(0,-o[0].length):n},Un=e=>`</${e.tagName.toLowerCase()}>`,ke=e=>{let t=[],r=e.parentElement;for(let a=0;a<zn&&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="",o="";for(let a of t)n+=`${o}${Hn(a)}
42
- `,o+=" ";n+=`${o}<!-- START $el -->
43
- `;let i=e.outerHTML.split(`
44
- `);for(let a of i)n+=`${o}${a}
45
- `;n+=`${o}<!-- END $el -->
46
- `;for(let a=t.length-1;a>=0;a--)o=" ".repeat(a),n+=`${o}${Un(t[a])}
47
- `;return n.trim()},Vn=(e={})=>{let t=e.apiEndpoint??Bn,r=e.maxIterations??3,n=new Map,o=new Map,i=new Map,a=new Map,u=new Map,p=null,f=null,w=()=>({requestId:`req-${Date.now()}-${Math.random().toString(36).slice(2)}`}),C=(x,O)=>{let k=x.context.options?.requestId;if(!k||!O)return;let I=ke(O);n.set(k,I),o.set(k,O);},l=async function*(x,O){let k=null,I=null,U=Date.now(),K=fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:x}),signal:O}).then(_=>{k=_;}).catch(_=>{I=_;});for(;!k&&!I;){let _=(Date.now()-U)/1e3;yield _>=.1?`Generating\u2026 ${_.toFixed(1)}s`:"Generating\u2026",await Promise.race([K,new Promise(z=>setTimeout(z,100))]);}if(I)throw I;if(!k.ok){let _=await k.text().catch(()=>"Unknown error"),z=_;try{let V=JSON.parse(_);V.error&&(z=typeof V.error=="string"?V.error:JSON.stringify(V.error));}catch{}throw new Error(z)}return yield await k.text(),""},d=(x,O)=>{let{isValid:k,error:I,sanitizedCode:U}=Lt(O);if(!k)return {success:false,result:I??"Invalid code",updatedHtml:ke(x),undo:()=>{}};let{proxy:K,undo:_}=Nt(x);try{let z=new Function("$el",U).bind(null)(K);return {success:!0,result:z!==void 0?String(z):null,updatedHtml:ke(x),undo:_}}catch(z){return _(),{success:false,result:z instanceof Error?z.message:"Execution failed",updatedHtml:ke(x),undo:()=>{}}}},h={send:async function*(x,O){let k=x.options?.requestId??"",I=x.sessionId,U=n.get(k),K=o.get(k);if(!U||!K)throw new Error("Could not capture element HTML");let _=I?u.get(I)??[]:[],z=_.length===0,V=On(x.prompt,U,z),b=[..._,{role:"user",content:V}];f=Date.now();let c=0,s=null,m=[];for(;c<=r;){let v="";for await(let B of l(b,O))typeof B=="string"&&!B.startsWith("{")&&(yield B),v=B;let E=Dn(v);if(typeof E=="string"){s=E,b.push({role:"assistant",content:v});break}if(!E.iterate){s=E.code,b.push({role:"assistant",content:v});break}b.push({role:"assistant",content:v}),yield "Applying\u2026";let{success:M,result:T,updatedHtml:P,undo:R}=d(K,E.code);m.push(R);let N=In(P,M?T:`Error: ${T}`);b.push({role:"user",content:N}),c++;}for(let v=m.length-1;v>=0;v--)m[v]();if(s===null)throw new Error("Max iterations reached without final code");i.set(k,s),u.set(I??k,b),yield "Applying changes\u2026";},undo:async()=>{if(!p)return;let x=a.get(p);if(x)try{x();}finally{a.delete(p),p=null;}},supportsFollowUp:true,dismissButtonText:"Copy",getCompletionMessage:()=>f===null?void 0:`Completed in ${((Date.now()-f)/1e3).toFixed(1)}s`},g=x=>{n.delete(x),o.delete(x),i.delete(x);};return {provider:h,getOptions:w,onStart:C,onComplete:async(x,O)=>{let k=x.context.options?.requestId;if(!k)return;let I=i.get(k);if(!I)return;let U=I.trim();if(!O)return g(k),{error:"Failed to edit: element not found"};if(U==="")return g(k),{error:"Failed to edit: no changes generated"};let{isValid:K,error:_,sanitizedCode:z}=Lt(U);if(!K)return g(k),{error:`Failed to edit: ${_??"invalid code"}`};let{proxy:V,undo:b}=Nt(O);a.set(k,b),p=k;try{new Function("$el",z).bind(null)(V);}catch(c){return b(),a.delete(k),p=null,g(k),{error:`Failed to edit: ${c instanceof Error?c.message:"unknown error"}`}}try{let c=await Oe(O),s=`${Rn}${U}
48
-
49
- ---
50
-
51
- ${c}`;Ie(s);}catch{}g(k);},onUndo:()=>{}}},Be=e=>typeof e=="object"&&e!==null&&"setAgent"in e,Wn=async()=>{let e=new AbortController,t=setTimeout(()=>e.abort(),1e3);try{let r=await fetch(_n,{method:"GET",signal:e.signal});return clearTimeout(t),r.ok?(await r.json().catch(()=>null))?.healthy===!0:!1}catch{return clearTimeout(t),false}},Kn=async()=>{if(typeof window>"u"||!await Wn())return;let{provider:t,getOptions:r,onStart:n,onComplete:o,onUndo:i}=Vn(),a=f=>{f.setAgent({provider:t,getOptions:r,onStart:n,onComplete:o,onUndo:i});},u=window.__REACT_GRAB__;if(Be(u)){a(u);return}window.addEventListener("react-grab:init",f=>{f instanceof CustomEvent&&Be(f.detail)&&a(f.detail);},{once:true});let p=window.__REACT_GRAB__;Be(p)&&a(p);};Kn();/**
52
- * @license MIT
53
- *
54
- * Copyright (c) 2025 Aiden Bai
55
- *
56
- * This source code is licensed under the MIT license found in the
57
- * LICENSE file in the root directory of this source tree.
58
- */
59
- /*! Bundled license information:
60
-
61
- bippy/dist/rdt-hook-CqLYUkwN.js:
62
- (**
63
- * @license bippy
64
- *
65
- * Copyright (c) Aiden Bai
66
- *
67
- * This source code is licensed under the MIT license found in the
68
- * LICENSE file in the root directory of this source tree.
69
- *)
70
-
71
- bippy/dist/core-BmxLxXeu.js:
72
- (**
73
- * @license bippy
74
- *
75
- * Copyright (c) Aiden Bai
76
- *
77
- * This source code is licensed under the MIT license found in the
78
- * LICENSE file in the root directory of this source tree.
79
- *)
80
-
81
- bippy/dist/source.js:
82
- (**
83
- * @license bippy
84
- *
85
- * Copyright (c) Aiden Bai
86
- *
87
- * This source code is licensed under the MIT license found in the
88
- * LICENSE file in the root directory of this source tree.
89
- *)
90
-
91
- bippy/dist/install-hook-only-B8zA_JcI.js:
92
- (**
93
- * @license bippy
94
- *
95
- * Copyright (c) Aiden Bai
96
- *
97
- * This source code is licensed under the MIT license found in the
98
- * LICENSE file in the root directory of this source tree.
99
- *)
100
-
101
- bippy/dist/index.js:
102
- (**
103
- * @license bippy
104
- *
105
- * Copyright (c) Aiden Bai
106
- *
107
- * This source code is licensed under the MIT license found in the
108
- * LICENSE file in the root directory of this source tree.
109
- *)
110
- */exports.attachAgent=Kn;exports.createVisualEditAgentProvider=Vn;return exports;})({});