@builderx/bridge
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});console.log("Before initBridge function definition");function ee(){if(typeof window<"u"){let $=function(r){if(typeof window<"u")try{window.parent.postMessage(r,"*")}catch(f){console.error("Error sending message to parent:",f)}},G=function(){const r=x();if(r){const f=P(r,!1);$({type:"onUpdateTree",data:f,artboardId:window.artboardId})}},N=function(r=10,f=500){let c=0;const i=setInterval(()=>{x()&&window.artboardId?(clearInterval(i),G()):c>=r&&(clearInterval(i),console.error("Failed to find React root fiber node after multiple attempts")),c++},f)},O=function(r){var c,i;let f=null;try{for(;r;){if(r.stateNode instanceof HTMLElement||r.stateNode instanceof SVGElement){f=r.stateNode;break}if(((c=r.child)==null?void 0:c.memoizedProps["data-bx-path"])===r.memoizedProps["data-bx-path"]||((i=r.return)==null?void 0:i.memoizedProps["data-bx-path"])===r.memoizedProps["data-bx-path"])break;r.child?r=r.child:r=r.return}}catch(s){console.error("Error in getDomNodeFromFiber:",s)}return f},Z=function(r){const{id:f,fnName:c,fnArgs:i}=r.payload;let s;switch(c){case"add":s=i.a+i.b;break;case"getLayerById":s=I(i);break;case"getLayerComputedStyle":s=it(i);break;case"getLayerAtXY":s=D(i);break;case"setLayerResizing":s=k(i);break;case"findContainerForDimensions":s=J(i);break;case"getPositionedAncestorOffset":s=ut(i);break;case"getPathOfChildFromParent":s=st(i);break;default:console.warn(`Unknown RPC function: ${c}`);return}$({type:"rpcResolved",calledMethod:c,id:f,result:s})},k=function({isResizing:r}){window.layerResizing=r},D=function(r){let{x:f,y:c,inLayers:i,zoomLevel:s}=r;const d=document.elementFromPoint(f,c);let e,o=U(d),p=null;if(i&&Array.isArray(i))for(;o;){const l=o.memoizedProps;if(l&&"data-bx-path"in l&&(e=l["data-bx-path"],e&&i.includes(e))){p=O(o);break}o=o.return}else p=d,e=o==null?void 0:o.memoizedProps["data-bx-path"];if(p){const l=p.getBoundingClientRect(),h={x:l.left,y:l.top,width:l.width,height:l.height,path:e};return h.container=et(o,p),h}return null},q=function(r){const f=at(r);let c;return f&&(c=O(f)),c||(c=document.querySelector(`[data-bx-path="${r}"]`)),c},I=function(r){try{const{layerId:f}=r,c=q(f);if(c){const i=c.getBoundingClientRect(),s=window.getComputedStyle(c),d=s.transform,e=s.rotate;let o=0;if(e&&e!=="none")o=parseFloat(e);else if(d&&d!=="none"){const h=d.split("(")[1].split(")")[0].split(",");o=Math.round(Math.atan2(Number(h[1]),Number(h[0]))*(180/Math.PI))}const p={x:i.left,y:i.top,width:i.width,height:i.height,path:f,rotation:o};let l=U(c);return p.container=et(l,c),p}return null}catch(f){return console.error("Error in getLayerById:",f),null}},J=function({x:r,y:f,width:c,height:i,artboardId:s}){const d=document.querySelector(`[data-bx-path^="${s}"]`);if(!d)return console.error(`Artboard with ID ${s} not found`),null;const e=d.querySelectorAll("[data-bx-path]");let o=null,p=1/0;if(e.forEach(l=>{const h=l.getBoundingClientRect(),m=l.getAttribute("data-bx-path");if(h.left<=r&&h.top<=f&&h.left+h.width>=r+c&&h.top+h.height>=f+i){const w=h.width*h.height;w<p&&(p=w,o={path:m,x:h.left,y:h.top,width:h.width,height:h.height,container:{x:0,y:0}})}}),!o){const l=d.getBoundingClientRect();o={path:d.getAttribute("data-bx-path"),x:l.left,y:l.top,width:l.width,height:l.height,container:{x:0,y:0}}}return o},ut=function({elementPath:r,artboardId:f,position:c}){const i=document.querySelector(`[data-bx-path^="${f}"]`);if(!i)return console.error(`Artboard with ID ${f} not found`),null;const s=i==null?void 0:i.querySelectorAll(`[data-bx-path="${r}"]`);if(!s)return{x:0,y:0};let d=null,e=1/0;if(s.forEach(p=>{const l=p.getBoundingClientRect(),h=l.left+l.width/2,m=l.top+l.height/2,w=Math.sqrt(Math.pow(h-c.x,2)+Math.pow(m-c.y,2));w<e&&(e=w,d=p)}),!d)return{x:0,y:0};const o=d.getBoundingClientRect();return{x:o.left,y:o.top}},st=function({path:r,artboardId:f,index:c}){const i=document==null?void 0:document.querySelector(`[data-bx-path="${r}"]`);if(!i)return null;const s=i.children;if(s.length===0)return null;const d=typeof c=="number"?c:s.length-1;return d<0||d>=s.length?null:s[d].getAttribute("data-bx-path")},it=function(r){const{layerId:f}=r,c=q(f);if(c){const i=window.getComputedStyle(c);return JSON.parse(JSON.stringify(i))}else return null},U=function(r){if(!r)return null;const f=Object.keys(r).find(c=>c.startsWith("__reactFiber$")||c.startsWith("__reactContainer$")||c.startsWith("__reactInternalInstance$"));return f?r[f]:null},x=function(){const r=document.querySelector("body"),f=r==null?void 0:r.querySelector("[data-bx-path]");return f?U(f):null},z=function(r){return typeof r=="object"&&r!==null&&"type"in r&&"props"in r&&"key"in r},j=function(r){return!r||!r._debugInfo?null:{name:r._debugInfo.name,env:r._debugInfo.env}},K=function(r,f,c){if(!r||!f)return null;function i(s){if(!s)return null;if(s!=null&&s.memoizedProps&&(s==null?void 0:s.memoizedProps["data-bx-path"])===f)return s;if(s.child){const d=i(s.child);if(d)return d}if(s.sibling){const d=i(s.sibling);if(d)return d}return null}return i(r)},Y=function(r){var c,i;return(r==null?void 0:r.displayName)||((c=r==null?void 0:r.type)==null?void 0:c.displayName)||((i=r==null?void 0:r.type)==null?void 0:i.name)||(typeof(r==null?void 0:r.type)=="string"?r==null?void 0:r.type:"AnonymousComponent")},C=function(r,f=!1){function c(i){var o,p,l;const s=K(i==null?void 0:i._owner,(o=i==null?void 0:i.props)==null?void 0:o["data-bx-path"]);if(!s&&!z(i))return null;let d=tt(s,f);const e={displayName:Y(i),path:((p=i.props)==null?void 0:p["data-bx-path"])||null,fiber:f?s:null,componentTree:d,debugInfo:j(i),children:[]};if((l=i.props)!=null&&l.children)if(Array.isArray(i.props.children))e.children=i.props.children.map(h=>c(h)).filter(Boolean);else{const h=c(i.props.children);h&&(e.children=[h])}return Q(s)&&(e!=null&&e.children)&&(d!=null&&d.children)&&(e.children=e.children.filter(h=>!d.children.some(m=>m.path===h.path))),e}if(Array.isArray(r))return r.map(c).filter(Boolean);if(z(r)){const i=c(r);return i?[i]:[]}return[]},Q=function(r){var d;const f=(d=r==null?void 0:r.memoizedProps)==null?void 0:d.children;if(!f&&!(r!=null&&r.child))return!1;if(!f)return!0;let c=r.child;const i=[];for(;c;)i.push(c),c=c.sibling;const s=(e,o)=>{var p,l;return typeof e=="string"?(o==null?void 0:o.memoizedProps)===e:((p=e==null?void 0:e.props)==null?void 0:p["data-bx-path"])===((l=o==null?void 0:o.memoizedProps)==null?void 0:l["data-bx-path"])};return Array.isArray(f)?f.length!==i.length?!0:!f.every((e,o)=>s(e,i[o])):i.length!==1||!s(f,i[0])},X=function(r,f=!1){var d,e;let c=[],i=null,s=r.child;for(;s;){const o=X(s,f),p=o.children;(d=s.memoizedProps)!=null&&d.children&&(Array.isArray(s.memoizedProps.children)?s.memoizedProps.children:[s.memoizedProps.children]).forEach(m=>{var w;p.some(L=>{var A;return L.path===((A=m==null?void 0:m.props)==null?void 0:A["data-bx-path"])})||p.push({displayName:Y(m),debugInfo:j(m==null?void 0:m._owner),path:((w=m==null?void 0:m.props)==null?void 0:w["data-bx-path"])||null,props:{...m==null?void 0:m.props},_owner:m==null?void 0:m._owner})});const l={displayName:Y(s),debugInfo:j(s),path:((e=s.memoizedProps)==null?void 0:e["data-bx-path"])||null,props:{...s.memoizedProps,children:p},componentTree:o.componentTree,_owner:s};c.push(l),s=s.sibling}return{children:c,componentTree:i}},tt=function(r,f=!1){var s;if(!r)return null;const c={displayName:"Component-"+Y(r),debugInfo:j(r),path:((s=r.memoizedProps)==null?void 0:s["data-bx-path"])||null,fiber:f?r:null,children:[],componentTree:null,props:{}},i=X(r,f);return c.children=C(i.children,f),c},P=function(r,f=!1){var d;if(!r)return null;if(!(r.memoizedProps&&r.memoizedProps["data-bx-path"]&&((d=r.memoizedProps["data-bx-path"])==null?void 0:d.includes("node_modules"))===!1)){const e=r.child?P(r.child,f):null;return e||(r.sibling?P(r.sibling,f):null)}const i={displayName:Y(r),debugInfo:j(r),path:r.memoizedProps["data-bx-path"],fiber:f?r:null,componentTree:tt(r,f),children:[],props:{}};for(const[e,o]of Object.entries(r.memoizedProps))e!=="children"&&e!=="data-bx-path"&&typeof o!="function"&&(i.props[e]=o);const s=r.memoizedProps.children;return s&&(i.children=C(s,f)),i},at=function(r){const f=x(),c=P(f,!0);function i(s){if((s==null?void 0:s.path)===r&&(s!=null&&s.fiber))return s.fiber;if(s!=null&&s.children){if(Array.isArray(s.children))for(let d of s.children){const e=i(d);if(e)return e}else if(typeof s.children=="object")return i(s.children)}if(s!=null&&s.componentTree){const d=i(s.componentTree);if(d)return d}return null}return i(c)},et=function(r,f){var h;if(f.parentElement){const m=f.parentElement.getBoundingClientRect();return console.log(m,"element >>>>"),{x:m.left,y:m.top,width:m.width,height:m.height}}let c=null;if(r&&(c=r.return),!c)return null;const i=O(c);if(console.log(i,"fiberNode >>>>",r,c),!i)return null;const s=i.getBoundingClientRect(),d=window.getComputedStyle(i),e=d.flexDirection,o={top:parseFloat(d.paddingTop),right:parseFloat(d.paddingRight),bottom:parseFloat(d.paddingBottom),left:parseFloat(d.paddingLeft)},p={x:s.left,y:s.top,width:s.width,height:s.height,flexDirection:e,padding:o,contentBox:{x:s.left+o.left,y:s.top+o.top,width:s.width-(o.left+o.right),height:s.height-(o.top+o.bottom)},children:[]};let l=c.child;for(;l;){const m=O(l);if(m){const w=m.getBoundingClientRect();p.children.push({path:((h=l.memoizedProps)==null?void 0:h["data-bx-path"])||"",width:w.width,height:w.height,x:w.left-s.left,y:w.top-s.top})}l=l.sibling}return p};window.isInitialized=!0,window.addEventListener("load",()=>{window.parent.postMessage({type:"preview-ready",message:""},"*")});const nt=()=>{$({type:"onAppLoaded"}),N()},V=r=>{var c;if(r.data&&r.data.type==="navigate/back"&&(window.history.back(),N()),r.data&&r.data.type==="navigate/forward"&&(window.history.forward(),N()),r.data&&r.data.type==="rpc"&&Z(r.data),((c=r==null?void 0:r.data)==null?void 0:c.type)=="setDOMStyleUntilHMR"){var f=document.querySelectorAll('[data-bx-path="'+r.data.payload.path+'"]');Array.from(f).forEach(i=>{E(i,r.data.payload.style)})}r.data&&r.data.type==="setArtboardId"&&(window.artboardId=r.data.payload.artboardId)};if(typeof window<"u"){let r=function(){N(),$({type:"navigation",url:window.location.href})},f=function(){const d=document.querySelector("html"),e={childList:!0,subtree:!0};d?s.observe(d,e):setTimeout(f)};window.addEventListener("message",V),window.addEventListener("load",nt),window.addEventListener("popstate",r);const c=history.pushState,i=history.replaceState;history.pushState=function(d,e,o){c.call(this,d,e,o),r()},history.replaceState=function(d,e,o){i.call(this,d,e,o),r()},$({type:"builderxToolsLoaded",value:!0}),N();const s=new MutationObserver(()=>{window.layerResizing||setTimeout(()=>{setTimeout(()=>{N()},2e3)},500)});document.readyState==="loading"?document.addEventListener("DOMContentLoaded",f):f()}console.log("BuilderX Tools initialized v2")}else typeof window<"u"&&window.isInitialized&&console.log("BuilderX Tools already initialized, skipping re-initialization");function B(){return typeof window<"u"?(window.domUpdateActions=window.domUpdateActions||[],window.domUpdateActions):[]}function E($,G){const N={},O={DOM:$,originalStyles:{},newStyles:{}};for(const[k,D]of Object.entries(G))N[k]=$.style.getPropertyValue(k),$.style.setProperty(k,`${D}`),O.originalStyles[k]=N[k],O.newStyles[k]=D;B().push(O)}console.log("Bridge initialized")}var jt={exports:{}},_={};/** | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});console.log("Before initBridge function definition");function ee(){if(typeof window<"u"){let $=function(r){if(typeof window<"u")try{window.parent.postMessage(r,"*")}catch(l){console.error("Error sending message to parent:",l)}},G=function(){const r=x();if(r){const l=P(r,!1);$({type:"onUpdateTree",data:l,artboardId:window.artboardId})}},N=function(r=10,l=500){let f=0;const i=setInterval(()=>{x()&&window.artboardId?(clearInterval(i),G()):f>=r&&(clearInterval(i),console.error("Failed to find React root fiber node after multiple attempts")),f++},l)},O=function(r){var f,i;let l=null;try{for(;r;){if(r.stateNode instanceof HTMLElement||r.stateNode instanceof SVGElement){l=r.stateNode;break}if(((f=r.child)==null?void 0:f.memoizedProps["data-bx-path"])===r.memoizedProps["data-bx-path"]||((i=r.return)==null?void 0:i.memoizedProps["data-bx-path"])===r.memoizedProps["data-bx-path"])break;r.child?r=r.child:r=r.return}}catch(s){console.error("Error in getDomNodeFromFiber:",s)}return l},Z=function(r){const{id:l,fnName:f,fnArgs:i}=r.payload;let s;switch(f){case"add":s=i.a+i.b;break;case"getLayerById":s=I(i);break;case"getLayerComputedStyle":s=it(i);break;case"getLayerAtXY":s=D(i);break;case"setLayerResizing":s=k(i);break;case"findContainerForDimensions":s=J(i);break;case"getPositionedAncestorOffset":s=ut(i);break;case"getPathOfChildFromParent":s=st(i);break;default:console.warn(`Unknown RPC function: ${f}`);return}$({type:"rpcResolved",calledMethod:f,id:l,result:s})},k=function({isResizing:r}){window.layerResizing=r},D=function(r){let{x:l,y:f,inLayers:i,zoomLevel:s}=r;const d=document.elementFromPoint(l,f);let e,o=U(d),p=null;if(i&&Array.isArray(i))for(;o;){const c=o.memoizedProps;if(c&&"data-bx-path"in c&&(e=c["data-bx-path"],e&&i.includes(e))){p=O(o);break}o=o.return}else p=d,e=o==null?void 0:o.memoizedProps["data-bx-path"];if(p){const c=p.getBoundingClientRect(),h={x:c.left,y:c.top,width:c.width,height:c.height,path:e};return h.container=et(o,p),h}return null},q=function(r){const l=at(r);let f;return l&&(f=O(l)),f||(f=document.querySelector(`[data-bx-path="${r}"]`)),f},I=function(r){try{const{layerId:l}=r,f=q(l);if(f){const i=f.getBoundingClientRect(),s=window.getComputedStyle(f),d=s.transform,e=s.rotate;let o=0;if(e&&e!=="none")o=parseFloat(e);else if(d&&d!=="none"){const h=d.split("(")[1].split(")")[0].split(",");o=Math.round(Math.atan2(Number(h[1]),Number(h[0]))*(180/Math.PI))}const p={x:i.left,y:i.top,width:i.width,height:i.height,path:l,rotation:o};let c=U(f);return p.container=et(c,f),p}return null}catch(l){return console.error("Error in getLayerById:",l),null}},J=function({x:r,y:l,width:f,height:i,artboardId:s}){const d=document.querySelector(`[data-bx-path^="${s}"]`);if(!d)return console.error(`Artboard with ID ${s} not found`),null;const e=d.querySelectorAll("[data-bx-path]");let o=null,p=1/0;if(e.forEach(c=>{const h=c.getBoundingClientRect(),m=c.getAttribute("data-bx-path");if(h.left<=r&&h.top<=l&&h.left+h.width>=r+f&&h.top+h.height>=l+i){const w=h.width*h.height;w<p&&(p=w,o={path:m,x:h.left,y:h.top,width:h.width,height:h.height,container:{x:0,y:0}})}}),!o){const c=d.getBoundingClientRect();o={path:d.getAttribute("data-bx-path"),x:c.left,y:c.top,width:c.width,height:c.height,container:{x:0,y:0}}}return o},ut=function({elementPath:r,artboardId:l,position:f}){const i=document.querySelector(`[data-bx-path^="${l}"]`);if(!i)return console.error(`Artboard with ID ${l} not found`),null;const s=i==null?void 0:i.querySelectorAll(`[data-bx-path="${r}"]`);if(!s)return{x:0,y:0};let d=null,e=1/0;if(s.forEach(p=>{const c=p.getBoundingClientRect(),h=c.left+c.width/2,m=c.top+c.height/2,w=Math.sqrt(Math.pow(h-f.x,2)+Math.pow(m-f.y,2));w<e&&(e=w,d=p)}),!d)return{x:0,y:0};const o=d.getBoundingClientRect();return{x:o.left,y:o.top}},st=function({path:r,artboardId:l,index:f}){const i=document==null?void 0:document.querySelector(`[data-bx-path="${r}"]`);if(!i)return null;const s=i.children;if(s.length===0)return null;const d=typeof f=="number"?f:s.length-1;return d<0||d>=s.length?null:s[d].getAttribute("data-bx-path")},it=function(r){const{layerId:l}=r,f=q(l);if(f){const i=window.getComputedStyle(f);return JSON.parse(JSON.stringify(i))}else return null},U=function(r){if(!r)return null;const l=Object.keys(r).find(f=>f.startsWith("__reactFiber$")||f.startsWith("__reactContainer$")||f.startsWith("__reactInternalInstance$"));return l?r[l]:null},x=function(){const r=document.querySelector("body"),l=r==null?void 0:r.querySelector("[data-bx-path]");return l?U(l):null},z=function(r){return typeof r=="object"&&r!==null&&"type"in r&&"props"in r&&"key"in r},j=function(r){return!r||!r._debugInfo?null:{name:r._debugInfo.name,env:r._debugInfo.env}},K=function(r,l,f){if(!r||!l)return null;function i(s){if(!s)return null;if(s!=null&&s.memoizedProps&&(s==null?void 0:s.memoizedProps["data-bx-path"])===l)return s;if(s.child){const d=i(s.child);if(d)return d}if(s.sibling){const d=i(s.sibling);if(d)return d}return null}return i(r)},Y=function(r){var f,i;return(r==null?void 0:r.displayName)||((f=r==null?void 0:r.type)==null?void 0:f.displayName)||((i=r==null?void 0:r.type)==null?void 0:i.name)||(typeof(r==null?void 0:r.type)=="string"?r==null?void 0:r.type:"AnonymousComponent")},C=function(r,l=!1){function f(i){var o,p,c;const s=K(i==null?void 0:i._owner,(o=i==null?void 0:i.props)==null?void 0:o["data-bx-path"]);if(!s&&!z(i))return null;let d=tt(s,l);const e={displayName:Y(i),path:((p=i.props)==null?void 0:p["data-bx-path"])||null,fiber:l?s:null,componentTree:d,debugInfo:j(i),children:[]};if((c=i.props)!=null&&c.children)if(Array.isArray(i.props.children))e.children=i.props.children.map(h=>f(h)).filter(Boolean);else{const h=f(i.props.children);h&&(e.children=[h])}return Q(s)&&(e!=null&&e.children)&&(d!=null&&d.children)&&(e.children=e.children.filter(h=>!d.children.some(m=>m.path===h.path))),e}if(Array.isArray(r))return r.map(f).filter(Boolean);if(z(r)){const i=f(r);return i?[i]:[]}return[]},Q=function(r){var d;const l=(d=r==null?void 0:r.memoizedProps)==null?void 0:d.children;if(!l&&!(r!=null&&r.child))return!1;if(!l)return!0;let f=r.child;const i=[];for(;f;)i.push(f),f=f.sibling;const s=(e,o)=>{var p,c;return typeof e=="string"?(o==null?void 0:o.memoizedProps)===e:((p=e==null?void 0:e.props)==null?void 0:p["data-bx-path"])===((c=o==null?void 0:o.memoizedProps)==null?void 0:c["data-bx-path"])};return Array.isArray(l)?l.length!==i.length?!0:!l.every((e,o)=>s(e,i[o])):i.length!==1||!s(l,i[0])},X=function(r,l=!1){var d,e;let f=[],i=null,s=r.child;for(;s;){const o=X(s,l),p=o.children;(d=s.memoizedProps)!=null&&d.children&&(Array.isArray(s.memoizedProps.children)?s.memoizedProps.children:[s.memoizedProps.children]).forEach(m=>{var w;p.some(L=>{var A;return L.path===((A=m==null?void 0:m.props)==null?void 0:A["data-bx-path"])})||p.push({displayName:Y(m),debugInfo:j(m==null?void 0:m._owner),path:((w=m==null?void 0:m.props)==null?void 0:w["data-bx-path"])||null,props:{...m==null?void 0:m.props},_owner:m==null?void 0:m._owner})});const c={displayName:Y(s),debugInfo:j(s),path:((e=s.memoizedProps)==null?void 0:e["data-bx-path"])||null,props:{...s.memoizedProps,children:p},componentTree:o.componentTree,_owner:s};f.push(c),s=s.sibling}return{children:f,componentTree:i}},tt=function(r,l=!1){var s;if(!r)return null;const f={displayName:"Component-"+Y(r),debugInfo:j(r),path:((s=r.memoizedProps)==null?void 0:s["data-bx-path"])||null,fiber:l?r:null,children:[],componentTree:null,props:{}},i=X(r,l);return f.children=C(i.children,l),f},P=function(r,l=!1){var d;if(!r)return null;if(!(r.memoizedProps&&r.memoizedProps["data-bx-path"]&&((d=r.memoizedProps["data-bx-path"])==null?void 0:d.includes("node_modules"))===!1)){const e=r.child?P(r.child,l):null;return e||(r.sibling?P(r.sibling,l):null)}const i={displayName:Y(r),debugInfo:j(r),path:r.memoizedProps["data-bx-path"],fiber:l?r:null,componentTree:tt(r,l),children:[],props:{}};for(const[e,o]of Object.entries(r.memoizedProps))e!=="children"&&e!=="data-bx-path"&&typeof o!="function"&&(i.props[e]=o);const s=r.memoizedProps.children;return s&&(i.children=C(s,l)),i},at=function(r){const l=x(),f=P(l,!0);function i(s){if((s==null?void 0:s.path)===r&&(s!=null&&s.fiber))return s.fiber;if(s!=null&&s.children){if(Array.isArray(s.children))for(let d of s.children){const e=i(d);if(e)return e}else if(typeof s.children=="object")return i(s.children)}if(s!=null&&s.componentTree){const d=i(s.componentTree);if(d)return d}return null}return i(f)},et=function(r,l){var h;if(l.parentElement){const m=l.parentElement.getBoundingClientRect();return{x:m.left,y:m.top,width:m.width,height:m.height}}let f=null;if(r&&(f=r.return),!f)return null;const i=O(f);if(!i)return null;const s=i.getBoundingClientRect(),d=window.getComputedStyle(i),e=d.flexDirection,o={top:parseFloat(d.paddingTop),right:parseFloat(d.paddingRight),bottom:parseFloat(d.paddingBottom),left:parseFloat(d.paddingLeft)},p={x:s.left,y:s.top,width:s.width,height:s.height,flexDirection:e,padding:o,contentBox:{x:s.left+o.left,y:s.top+o.top,width:s.width-(o.left+o.right),height:s.height-(o.top+o.bottom)},children:[]};let c=f.child;for(;c;){const m=O(c);if(m){const w=m.getBoundingClientRect();p.children.push({path:((h=c.memoizedProps)==null?void 0:h["data-bx-path"])||"",width:w.width,height:w.height,x:w.left-s.left,y:w.top-s.top})}c=c.sibling}return p};window.isInitialized=!0,window.addEventListener("load",()=>{window.parent.postMessage({type:"preview-ready",message:""},"*")});const nt=()=>{$({type:"onAppLoaded"}),N()},V=r=>{var f;if(r.data&&r.data.type==="navigate/back"&&(window.history.back(),N()),r.data&&r.data.type==="navigate/forward"&&(window.history.forward(),N()),r.data&&r.data.type==="rpc"&&Z(r.data),((f=r==null?void 0:r.data)==null?void 0:f.type)=="setDOMStyleUntilHMR"){var l=document.querySelectorAll('[data-bx-path="'+r.data.payload.path+'"]');Array.from(l).forEach(i=>{E(i,r.data.payload.style)})}r.data&&r.data.type==="setArtboardId"&&(window.artboardId=r.data.payload.artboardId)};if(typeof window<"u"){let r=function(){N(),$({type:"navigation",url:window.location.href})},l=function(){const d=document.querySelector("html"),e={childList:!0,subtree:!0};d?s.observe(d,e):setTimeout(l)};window.addEventListener("message",V),window.addEventListener("load",nt),window.addEventListener("popstate",r);const f=history.pushState,i=history.replaceState;history.pushState=function(d,e,o){f.call(this,d,e,o),r()},history.replaceState=function(d,e,o){i.call(this,d,e,o),r()},$({type:"builderxToolsLoaded",value:!0}),N();const s=new MutationObserver(()=>{window.layerResizing||setTimeout(()=>{setTimeout(()=>{N()},2e3)},500)});document.readyState==="loading"?document.addEventListener("DOMContentLoaded",l):l()}console.log("BuilderX Tools initialized v2")}else typeof window<"u"&&window.isInitialized&&console.log("BuilderX Tools already initialized, skipping re-initialization");function B(){return typeof window<"u"?(window.domUpdateActions=window.domUpdateActions||[],window.domUpdateActions):[]}function E($,G){const N={},O={DOM:$,originalStyles:{},newStyles:{}};for(const[k,D]of Object.entries(G))N[k]=$.style.getPropertyValue(k),$.style.setProperty(k,`${D}`),O.originalStyles[k]=N[k],O.newStyles[k]=D;B().push(O)}console.log("Bridge initialized")}var jt={exports:{}},_={};/** | ||
* @license React | ||
@@ -9,3 +9,3 @@ * react.production.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var Jt;function se(){if(Jt)return _;Jt=1;var B=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),q=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),J=Symbol.iterator;function ut(e){return e===null||typeof e!="object"?null:(e=J&&e[J]||e["@@iterator"],typeof e=="function"?e:null)}var st={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},it=Object.assign,U={};function x(e,o,p){this.props=e,this.context=o,this.refs=U,this.updater=p||st}x.prototype.isReactComponent={},x.prototype.setState=function(e,o){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,o,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function z(){}z.prototype=x.prototype;function j(e,o,p){this.props=e,this.context=o,this.refs=U,this.updater=p||st}var K=j.prototype=new z;K.constructor=j,it(K,x.prototype),K.isPureReactComponent=!0;var Y=Array.isArray,C={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function X(e,o,p,l,h,m){return p=m.ref,{$$typeof:B,type:e,key:o,ref:p!==void 0?p:null,props:m}}function tt(e,o){return X(e.type,o,void 0,void 0,void 0,e.props)}function P(e){return typeof e=="object"&&e!==null&&e.$$typeof===B}function at(e){var o={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(p){return o[p]})}var et=/\/+/g;function nt(e,o){return typeof e=="object"&&e!==null&&e.key!=null?at(""+e.key):o.toString(36)}function V(){}function r(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(V,V):(e.status="pending",e.then(function(o){e.status==="pending"&&(e.status="fulfilled",e.value=o)},function(o){e.status==="pending"&&(e.status="rejected",e.reason=o)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function f(e,o,p,l,h){var m=typeof e;(m==="undefined"||m==="boolean")&&(e=null);var w=!1;if(e===null)w=!0;else switch(m){case"bigint":case"string":case"number":w=!0;break;case"object":switch(e.$$typeof){case B:case E:w=!0;break;case I:return w=e._init,f(w(e._payload),o,p,l,h)}}if(w)return h=h(e),w=l===""?"."+nt(e,0):l,Y(h)?(p="",w!=null&&(p=w.replace(et,"$&/")+"/"),f(h,o,p,"",function(ct){return ct})):h!=null&&(P(h)&&(h=tt(h,p+(h.key==null||e&&e.key===h.key?"":(""+h.key).replace(et,"$&/")+"/")+w)),o.push(h)),1;w=0;var L=l===""?".":l+":";if(Y(e))for(var A=0;A<e.length;A++)l=e[A],m=L+nt(l,A),w+=f(l,o,p,m,h);else if(A=ut(e),typeof A=="function")for(e=A.call(e),A=0;!(l=e.next()).done;)l=l.value,m=L+nt(l,A++),w+=f(l,o,p,m,h);else if(m==="object"){if(typeof e.then=="function")return f(r(e),o,p,l,h);throw o=String(e),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return w}function c(e,o,p){if(e==null)return e;var l=[],h=0;return f(e,l,"","",function(m){return o.call(p,m,h++)}),l}function i(e){if(e._status===-1){var o=e._result;o=o(),o.then(function(p){(e._status===0||e._status===-1)&&(e._status=1,e._result=p)},function(p){(e._status===0||e._status===-1)&&(e._status=2,e._result=p)}),e._status===-1&&(e._status=0,e._result=o)}if(e._status===1)return e._result.default;throw e._result}var s=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function d(){}return _.Children={map:c,forEach:function(e,o,p){c(e,function(){o.apply(this,arguments)},p)},count:function(e){var o=0;return c(e,function(){o++}),o},toArray:function(e){return c(e,function(o){return o})||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},_.Component=x,_.Fragment=$,_.Profiler=N,_.PureComponent=j,_.StrictMode=G,_.Suspense=D,_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,_.act=function(){throw Error("act(...) is not supported in production builds of React.")},_.cache=function(e){return function(){return e.apply(null,arguments)}},_.cloneElement=function(e,o,p){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var l=it({},e.props),h=e.key,m=void 0;if(o!=null)for(w in o.ref!==void 0&&(m=void 0),o.key!==void 0&&(h=""+o.key),o)!Q.call(o,w)||w==="key"||w==="__self"||w==="__source"||w==="ref"&&o.ref===void 0||(l[w]=o[w]);var w=arguments.length-2;if(w===1)l.children=p;else if(1<w){for(var L=Array(w),A=0;A<w;A++)L[A]=arguments[A+2];l.children=L}return X(e.type,h,void 0,void 0,m,l)},_.createContext=function(e){return e={$$typeof:Z,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:O,_context:e},e},_.createElement=function(e,o,p){var l,h={},m=null;if(o!=null)for(l in o.key!==void 0&&(m=""+o.key),o)Q.call(o,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(h[l]=o[l]);var w=arguments.length-2;if(w===1)h.children=p;else if(1<w){for(var L=Array(w),A=0;A<w;A++)L[A]=arguments[A+2];h.children=L}if(e&&e.defaultProps)for(l in w=e.defaultProps,w)h[l]===void 0&&(h[l]=w[l]);return X(e,m,void 0,void 0,null,h)},_.createRef=function(){return{current:null}},_.forwardRef=function(e){return{$$typeof:k,render:e}},_.isValidElement=P,_.lazy=function(e){return{$$typeof:I,_payload:{_status:-1,_result:e},_init:i}},_.memo=function(e,o){return{$$typeof:q,type:e,compare:o===void 0?null:o}},_.startTransition=function(e){var o=C.T,p={};C.T=p;try{var l=e(),h=C.S;h!==null&&h(p,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(d,s)}catch(m){s(m)}finally{C.T=o}},_.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},_.use=function(e){return C.H.use(e)},_.useActionState=function(e,o,p){return C.H.useActionState(e,o,p)},_.useCallback=function(e,o){return C.H.useCallback(e,o)},_.useContext=function(e){return C.H.useContext(e)},_.useDebugValue=function(){},_.useDeferredValue=function(e,o){return C.H.useDeferredValue(e,o)},_.useEffect=function(e,o){return C.H.useEffect(e,o)},_.useId=function(){return C.H.useId()},_.useImperativeHandle=function(e,o,p){return C.H.useImperativeHandle(e,o,p)},_.useInsertionEffect=function(e,o){return C.H.useInsertionEffect(e,o)},_.useLayoutEffect=function(e,o){return C.H.useLayoutEffect(e,o)},_.useMemo=function(e,o){return C.H.useMemo(e,o)},_.useOptimistic=function(e,o){return C.H.useOptimistic(e,o)},_.useReducer=function(e,o,p){return C.H.useReducer(e,o,p)},_.useRef=function(e){return C.H.useRef(e)},_.useState=function(e){return C.H.useState(e)},_.useSyncExternalStore=function(e,o,p){return C.H.useSyncExternalStore(e,o,p)},_.useTransition=function(){return C.H.useTransition()},_.version="19.0.0",_}var pt={exports:{}};/** | ||
*/var Jt;function se(){if(Jt)return _;Jt=1;var B=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),q=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),J=Symbol.iterator;function ut(e){return e===null||typeof e!="object"?null:(e=J&&e[J]||e["@@iterator"],typeof e=="function"?e:null)}var st={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},it=Object.assign,U={};function x(e,o,p){this.props=e,this.context=o,this.refs=U,this.updater=p||st}x.prototype.isReactComponent={},x.prototype.setState=function(e,o){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,o,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function z(){}z.prototype=x.prototype;function j(e,o,p){this.props=e,this.context=o,this.refs=U,this.updater=p||st}var K=j.prototype=new z;K.constructor=j,it(K,x.prototype),K.isPureReactComponent=!0;var Y=Array.isArray,C={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function X(e,o,p,c,h,m){return p=m.ref,{$$typeof:B,type:e,key:o,ref:p!==void 0?p:null,props:m}}function tt(e,o){return X(e.type,o,void 0,void 0,void 0,e.props)}function P(e){return typeof e=="object"&&e!==null&&e.$$typeof===B}function at(e){var o={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(p){return o[p]})}var et=/\/+/g;function nt(e,o){return typeof e=="object"&&e!==null&&e.key!=null?at(""+e.key):o.toString(36)}function V(){}function r(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(V,V):(e.status="pending",e.then(function(o){e.status==="pending"&&(e.status="fulfilled",e.value=o)},function(o){e.status==="pending"&&(e.status="rejected",e.reason=o)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function l(e,o,p,c,h){var m=typeof e;(m==="undefined"||m==="boolean")&&(e=null);var w=!1;if(e===null)w=!0;else switch(m){case"bigint":case"string":case"number":w=!0;break;case"object":switch(e.$$typeof){case B:case E:w=!0;break;case I:return w=e._init,l(w(e._payload),o,p,c,h)}}if(w)return h=h(e),w=c===""?"."+nt(e,0):c,Y(h)?(p="",w!=null&&(p=w.replace(et,"$&/")+"/"),l(h,o,p,"",function(ct){return ct})):h!=null&&(P(h)&&(h=tt(h,p+(h.key==null||e&&e.key===h.key?"":(""+h.key).replace(et,"$&/")+"/")+w)),o.push(h)),1;w=0;var L=c===""?".":c+":";if(Y(e))for(var A=0;A<e.length;A++)c=e[A],m=L+nt(c,A),w+=l(c,o,p,m,h);else if(A=ut(e),typeof A=="function")for(e=A.call(e),A=0;!(c=e.next()).done;)c=c.value,m=L+nt(c,A++),w+=l(c,o,p,m,h);else if(m==="object"){if(typeof e.then=="function")return l(r(e),o,p,c,h);throw o=String(e),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return w}function f(e,o,p){if(e==null)return e;var c=[],h=0;return l(e,c,"","",function(m){return o.call(p,m,h++)}),c}function i(e){if(e._status===-1){var o=e._result;o=o(),o.then(function(p){(e._status===0||e._status===-1)&&(e._status=1,e._result=p)},function(p){(e._status===0||e._status===-1)&&(e._status=2,e._result=p)}),e._status===-1&&(e._status=0,e._result=o)}if(e._status===1)return e._result.default;throw e._result}var s=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function d(){}return _.Children={map:f,forEach:function(e,o,p){f(e,function(){o.apply(this,arguments)},p)},count:function(e){var o=0;return f(e,function(){o++}),o},toArray:function(e){return f(e,function(o){return o})||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},_.Component=x,_.Fragment=$,_.Profiler=N,_.PureComponent=j,_.StrictMode=G,_.Suspense=D,_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,_.act=function(){throw Error("act(...) is not supported in production builds of React.")},_.cache=function(e){return function(){return e.apply(null,arguments)}},_.cloneElement=function(e,o,p){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var c=it({},e.props),h=e.key,m=void 0;if(o!=null)for(w in o.ref!==void 0&&(m=void 0),o.key!==void 0&&(h=""+o.key),o)!Q.call(o,w)||w==="key"||w==="__self"||w==="__source"||w==="ref"&&o.ref===void 0||(c[w]=o[w]);var w=arguments.length-2;if(w===1)c.children=p;else if(1<w){for(var L=Array(w),A=0;A<w;A++)L[A]=arguments[A+2];c.children=L}return X(e.type,h,void 0,void 0,m,c)},_.createContext=function(e){return e={$$typeof:Z,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:O,_context:e},e},_.createElement=function(e,o,p){var c,h={},m=null;if(o!=null)for(c in o.key!==void 0&&(m=""+o.key),o)Q.call(o,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(h[c]=o[c]);var w=arguments.length-2;if(w===1)h.children=p;else if(1<w){for(var L=Array(w),A=0;A<w;A++)L[A]=arguments[A+2];h.children=L}if(e&&e.defaultProps)for(c in w=e.defaultProps,w)h[c]===void 0&&(h[c]=w[c]);return X(e,m,void 0,void 0,null,h)},_.createRef=function(){return{current:null}},_.forwardRef=function(e){return{$$typeof:k,render:e}},_.isValidElement=P,_.lazy=function(e){return{$$typeof:I,_payload:{_status:-1,_result:e},_init:i}},_.memo=function(e,o){return{$$typeof:q,type:e,compare:o===void 0?null:o}},_.startTransition=function(e){var o=C.T,p={};C.T=p;try{var c=e(),h=C.S;h!==null&&h(p,c),typeof c=="object"&&c!==null&&typeof c.then=="function"&&c.then(d,s)}catch(m){s(m)}finally{C.T=o}},_.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},_.use=function(e){return C.H.use(e)},_.useActionState=function(e,o,p){return C.H.useActionState(e,o,p)},_.useCallback=function(e,o){return C.H.useCallback(e,o)},_.useContext=function(e){return C.H.useContext(e)},_.useDebugValue=function(){},_.useDeferredValue=function(e,o){return C.H.useDeferredValue(e,o)},_.useEffect=function(e,o){return C.H.useEffect(e,o)},_.useId=function(){return C.H.useId()},_.useImperativeHandle=function(e,o,p){return C.H.useImperativeHandle(e,o,p)},_.useInsertionEffect=function(e,o){return C.H.useInsertionEffect(e,o)},_.useLayoutEffect=function(e,o){return C.H.useLayoutEffect(e,o)},_.useMemo=function(e,o){return C.H.useMemo(e,o)},_.useOptimistic=function(e,o){return C.H.useOptimistic(e,o)},_.useReducer=function(e,o,p){return C.H.useReducer(e,o,p)},_.useRef=function(e){return C.H.useRef(e)},_.useState=function(e){return C.H.useState(e)},_.useSyncExternalStore=function(e,o,p){return C.H.useSyncExternalStore(e,o,p)},_.useTransition=function(){return C.H.useTransition()},_.version="19.0.0",_}var pt={exports:{}};/** | ||
* @license React | ||
@@ -18,3 +18,3 @@ * react.development.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/pt.exports;var te;function ie(){return te||(te=1,function(B,E){process.env.NODE_ENV!=="production"&&function(){function $(t,n){Object.defineProperty(O.prototype,t,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1])}})}function G(t){return t===null||typeof t!="object"?null:(t=Mt&&t[Mt]||t["@@iterator"],typeof t=="function"?t:null)}function N(t,n){t=(t=t.constructor)&&(t.displayName||t.name)||"ReactClass";var u=t+"."+n;$t[u]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",n,t),$t[u]=!0)}function O(t,n,u){this.props=t,this.context=n,this.refs=St,this.updater=u||xt}function Z(){}function k(t,n,u){this.props=t,this.context=n,this.refs=St,this.updater=u||xt}function D(t){return""+t}function q(t){try{D(t);var n=!1}catch{n=!0}if(n){n=console;var u=n.error,a=typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object";return u.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),D(t)}}function I(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===re?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case A:return"Fragment";case L:return"Portal";case Tt:return"Profiler";case ct:return"StrictMode";case gt:return"Suspense";case At:return"SuspenseList"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case Ct:return(t.displayName||"Context")+".Provider";case ht:return(t._context.displayName||"Context")+".Consumer";case yt:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case lt:return n=t.displayName||null,n!==null?n:I(t.type)||"Memo";case ft:n=t._payload,t=t._init;try{return I(t(n))}catch{}}return null}function J(t){return typeof t=="string"||typeof t=="function"||t===A||t===Tt||t===ct||t===gt||t===At||t===ne||typeof t=="object"&&t!==null&&(t.$$typeof===ft||t.$$typeof===lt||t.$$typeof===Ct||t.$$typeof===ht||t.$$typeof===yt||t.$$typeof===oe||t.getModuleId!==void 0)}function ut(){}function st(){if(dt===0){Lt=console.log,It=console.info,Ut=console.warn,Yt=console.error,Ht=console.group,Bt=console.groupCollapsed,Dt=console.groupEnd;var t={configurable:!0,enumerable:!0,value:ut,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}dt++}function it(){if(dt--,dt===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},t,{value:Lt}),info:W({},t,{value:It}),warn:W({},t,{value:Ut}),error:W({},t,{value:Yt}),group:W({},t,{value:Ht}),groupCollapsed:W({},t,{value:Bt}),groupEnd:W({},t,{value:Dt})})}0>dt&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function U(t){if(Ot===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);Ot=n&&n[1]||"",qt=-1<u.stack.indexOf(` | ||
*/pt.exports;var te;function ie(){return te||(te=1,function(B,E){process.env.NODE_ENV!=="production"&&function(){function $(t,n){Object.defineProperty(O.prototype,t,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1])}})}function G(t){return t===null||typeof t!="object"?null:(t=Mt&&t[Mt]||t["@@iterator"],typeof t=="function"?t:null)}function N(t,n){t=(t=t.constructor)&&(t.displayName||t.name)||"ReactClass";var u=t+"."+n;$t[u]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",n,t),$t[u]=!0)}function O(t,n,u){this.props=t,this.context=n,this.refs=St,this.updater=u||xt}function Z(){}function k(t,n,u){this.props=t,this.context=n,this.refs=St,this.updater=u||xt}function D(t){return""+t}function q(t){try{D(t);var n=!1}catch{n=!0}if(n){n=console;var u=n.error,a=typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object";return u.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),D(t)}}function I(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===re?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case A:return"Fragment";case L:return"Portal";case Tt:return"Profiler";case ct:return"StrictMode";case gt:return"Suspense";case At:return"SuspenseList"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case Ct:return(t.displayName||"Context")+".Provider";case ht:return(t._context.displayName||"Context")+".Consumer";case yt:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ft:return n=t.displayName||null,n!==null?n:I(t.type)||"Memo";case lt:n=t._payload,t=t._init;try{return I(t(n))}catch{}}return null}function J(t){return typeof t=="string"||typeof t=="function"||t===A||t===Tt||t===ct||t===gt||t===At||t===ne||typeof t=="object"&&t!==null&&(t.$$typeof===lt||t.$$typeof===ft||t.$$typeof===Ct||t.$$typeof===ht||t.$$typeof===yt||t.$$typeof===oe||t.getModuleId!==void 0)}function ut(){}function st(){if(dt===0){Lt=console.log,It=console.info,Ut=console.warn,Yt=console.error,Ht=console.group,Bt=console.groupCollapsed,Dt=console.groupEnd;var t={configurable:!0,enumerable:!0,value:ut,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}dt++}function it(){if(dt--,dt===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},t,{value:Lt}),info:W({},t,{value:It}),warn:W({},t,{value:Ut}),error:W({},t,{value:Yt}),group:W({},t,{value:Ht}),groupCollapsed:W({},t,{value:Bt}),groupEnd:W({},t,{value:Dt})})}0>dt&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function U(t){if(Ot===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);Ot=n&&n[1]||"",qt=-1<u.stack.indexOf(` | ||
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return` | ||
@@ -24,7 +24,7 @@ `+Ot+t+qt}function x(t,n){if(!t||Pt)return"";var u=Nt.get(t);if(u!==void 0)return u;Pt=!0,u=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var a=null;a=b.H,b.H=null,st();try{var y={DetermineComponentFrameRoot:function(){try{if(n){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(F){var Rt=F}Reflect.construct(t,[],H)}else{try{H.call()}catch(F){Rt=F}t.call(H.prototype)}}else{try{throw Error()}catch(F){Rt=F}(H=t())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(F){if(F&&Rt&&typeof F.stack=="string")return[F.stack,Rt.stack]}return[null,null]}};y.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(y.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(y.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=y.DetermineComponentFrameRoot(),T=g[0],R=g[1];if(T&&R){var S=T.split(` | ||
`);for(g=v=0;v<S.length&&!S[v].includes("DetermineComponentFrameRoot");)v++;for(;g<M.length&&!M[g].includes("DetermineComponentFrameRoot");)g++;if(v===S.length||g===M.length)for(v=S.length-1,g=M.length-1;1<=v&&0<=g&&S[v]!==M[g];)g--;for(;1<=v&&0<=g;v--,g--)if(S[v]!==M[g]){if(v!==1||g!==1)do if(v--,g--,0>g||S[v]!==M[g]){var ot=` | ||
`+S[v].replace(" at new "," at ");return t.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",t.displayName)),typeof t=="function"&&Nt.set(t,ot),ot}while(1<=v&&0<=g);break}}}finally{Pt=!1,b.H=a,it(),Error.prepareStackTrace=u}return S=(S=t?t.displayName||t.name:"")?U(S):"",typeof t=="function"&&Nt.set(t,S),S}function z(t){if(t==null)return"";if(typeof t=="function"){var n=t.prototype;return x(t,!(!n||!n.isReactComponent))}if(typeof t=="string")return U(t);switch(t){case gt:return U("Suspense");case At:return U("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case yt:return t=x(t.render,!1),t;case lt:return z(t.type);case ft:n=t._payload,t=t._init;try{return z(t(n))}catch{}}return""}function j(){var t=b.A;return t===null?null:t.getOwner()}function K(t){if(wt.call(t,"key")){var n=Object.getOwnPropertyDescriptor(t,"key").get;if(n&&n.isReactWarning)return!1}return t.key!==void 0}function Y(t,n){function u(){zt||(zt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}u.isReactWarning=!0,Object.defineProperty(t,"key",{get:u,configurable:!0})}function C(){var t=I(this.type);return Ft[t]||(Ft[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),t=this.props.ref,t!==void 0?t:null}function Q(t,n,u,a,y,v){return u=v.ref,t={$$typeof:w,type:t,key:n,props:v,_owner:y},(u!==void 0?u:null)!==null?Object.defineProperty(t,"ref",{enumerable:!1,get:C}):Object.defineProperty(t,"ref",{enumerable:!1,value:null}),t._store={},Object.defineProperty(t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(t,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(t.props),Object.freeze(t)),t}function X(t,n){return n=Q(t.type,n,void 0,void 0,t._owner,t.props),n._store.validated=t._store.validated,n}function tt(t,n){if(typeof t=="object"&&t&&t.$$typeof!==ue){if(vt(t))for(var u=0;u<t.length;u++){var a=t[u];P(a)&&at(a,n)}else if(P(t))t._store&&(t._store.validated=1);else if(u=G(t),typeof u=="function"&&u!==t.entries&&(u=u.call(t),u!==t))for(;!(t=u.next()).done;)P(t.value)&&at(t.value,n)}}function P(t){return typeof t=="object"&&t!==null&&t.$$typeof===w}function at(t,n){if(t._store&&!t._store.validated&&t.key==null&&(t._store.validated=1,n=et(n),!Gt[n])){Gt[n]=!0;var u="";t&&t._owner!=null&&t._owner!==j()&&(u=null,typeof t._owner.tag=="number"?u=I(t._owner.type):typeof t._owner.name=="string"&&(u=t._owner.name),u=" It was passed a child from "+u+".");var a=b.getCurrentStack;b.getCurrentStack=function(){var y=z(t.type);return a&&(y+=a()||""),y},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,u),b.getCurrentStack=a}}function et(t){var n="",u=j();return u&&(u=I(u.type))&&(n=` | ||
`+S[v].replace(" at new "," at ");return t.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",t.displayName)),typeof t=="function"&&Nt.set(t,ot),ot}while(1<=v&&0<=g);break}}}finally{Pt=!1,b.H=a,it(),Error.prepareStackTrace=u}return S=(S=t?t.displayName||t.name:"")?U(S):"",typeof t=="function"&&Nt.set(t,S),S}function z(t){if(t==null)return"";if(typeof t=="function"){var n=t.prototype;return x(t,!(!n||!n.isReactComponent))}if(typeof t=="string")return U(t);switch(t){case gt:return U("Suspense");case At:return U("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case yt:return t=x(t.render,!1),t;case ft:return z(t.type);case lt:n=t._payload,t=t._init;try{return z(t(n))}catch{}}return""}function j(){var t=b.A;return t===null?null:t.getOwner()}function K(t){if(wt.call(t,"key")){var n=Object.getOwnPropertyDescriptor(t,"key").get;if(n&&n.isReactWarning)return!1}return t.key!==void 0}function Y(t,n){function u(){zt||(zt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}u.isReactWarning=!0,Object.defineProperty(t,"key",{get:u,configurable:!0})}function C(){var t=I(this.type);return Ft[t]||(Ft[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),t=this.props.ref,t!==void 0?t:null}function Q(t,n,u,a,y,v){return u=v.ref,t={$$typeof:w,type:t,key:n,props:v,_owner:y},(u!==void 0?u:null)!==null?Object.defineProperty(t,"ref",{enumerable:!1,get:C}):Object.defineProperty(t,"ref",{enumerable:!1,value:null}),t._store={},Object.defineProperty(t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(t,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(t.props),Object.freeze(t)),t}function X(t,n){return n=Q(t.type,n,void 0,void 0,t._owner,t.props),n._store.validated=t._store.validated,n}function tt(t,n){if(typeof t=="object"&&t&&t.$$typeof!==ue){if(vt(t))for(var u=0;u<t.length;u++){var a=t[u];P(a)&&at(a,n)}else if(P(t))t._store&&(t._store.validated=1);else if(u=G(t),typeof u=="function"&&u!==t.entries&&(u=u.call(t),u!==t))for(;!(t=u.next()).done;)P(t.value)&&at(t.value,n)}}function P(t){return typeof t=="object"&&t!==null&&t.$$typeof===w}function at(t,n){if(t._store&&!t._store.validated&&t.key==null&&(t._store.validated=1,n=et(n),!Gt[n])){Gt[n]=!0;var u="";t&&t._owner!=null&&t._owner!==j()&&(u=null,typeof t._owner.tag=="number"?u=I(t._owner.type):typeof t._owner.name=="string"&&(u=t._owner.name),u=" It was passed a child from "+u+".");var a=b.getCurrentStack;b.getCurrentStack=function(){var y=z(t.type);return a&&(y+=a()||""),y},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,u),b.getCurrentStack=a}}function et(t){var n="",u=j();return u&&(u=I(u.type))&&(n=` | ||
Check the render method of \``+u+"`."),n||(t=I(t))&&(n=` | ||
Check the top-level render call using <`+t+">."),n}function nt(t){var n={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(u){return n[u]})}function V(t,n){return typeof t=="object"&&t!==null&&t.key!=null?(q(t.key),nt(""+t.key)):n.toString(36)}function r(){}function f(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(r,r):(t.status="pending",t.then(function(n){t.status==="pending"&&(t.status="fulfilled",t.value=n)},function(n){t.status==="pending"&&(t.status="rejected",t.reason=n)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function c(t,n,u,a,y){var v=typeof t;(v==="undefined"||v==="boolean")&&(t=null);var g=!1;if(t===null)g=!0;else switch(v){case"bigint":case"string":case"number":g=!0;break;case"object":switch(t.$$typeof){case w:case L:g=!0;break;case ft:return g=t._init,c(g(t._payload),n,u,a,y)}}if(g){g=t,y=y(g);var T=a===""?"."+V(g,0):a;return vt(y)?(u="",T!=null&&(u=T.replace(Qt,"$&/")+"/"),c(y,n,u,"",function(S){return S})):y!=null&&(P(y)&&(y.key!=null&&(g&&g.key===y.key||q(y.key)),u=X(y,u+(y.key==null||g&&g.key===y.key?"":(""+y.key).replace(Qt,"$&/")+"/")+T),a!==""&&g!=null&&P(g)&&g.key==null&&g._store&&!g._store.validated&&(u._store.validated=2),y=u),n.push(y)),1}if(g=0,T=a===""?".":a+":",vt(t))for(var R=0;R<t.length;R++)a=t[R],v=T+V(a,R),g+=c(a,n,u,v,y);else if(R=G(t),typeof R=="function")for(R===t.entries&&(Kt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Kt=!0),t=R.call(t),R=0;!(a=t.next()).done;)a=a.value,v=T+V(a,R++),g+=c(a,n,u,v,y);else if(v==="object"){if(typeof t.then=="function")return c(f(t),n,u,a,y);throw n=String(t),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return g}function i(t,n,u){if(t==null)return t;var a=[],y=0;return c(t,a,"","",function(v){return n.call(u,v,y++)}),a}function s(t){if(t._status===-1){var n=t._result;n=n(),n.then(function(u){(t._status===0||t._status===-1)&&(t._status=1,t._result=u)},function(u){(t._status===0||t._status===-1)&&(t._status=2,t._result=u)}),t._status===-1&&(t._status=0,t._result=n)}if(t._status===1)return n=t._result,n===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s | ||
Check the top-level render call using <`+t+">."),n}function nt(t){var n={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(u){return n[u]})}function V(t,n){return typeof t=="object"&&t!==null&&t.key!=null?(q(t.key),nt(""+t.key)):n.toString(36)}function r(){}function l(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(r,r):(t.status="pending",t.then(function(n){t.status==="pending"&&(t.status="fulfilled",t.value=n)},function(n){t.status==="pending"&&(t.status="rejected",t.reason=n)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function f(t,n,u,a,y){var v=typeof t;(v==="undefined"||v==="boolean")&&(t=null);var g=!1;if(t===null)g=!0;else switch(v){case"bigint":case"string":case"number":g=!0;break;case"object":switch(t.$$typeof){case w:case L:g=!0;break;case lt:return g=t._init,f(g(t._payload),n,u,a,y)}}if(g){g=t,y=y(g);var T=a===""?"."+V(g,0):a;return vt(y)?(u="",T!=null&&(u=T.replace(Qt,"$&/")+"/"),f(y,n,u,"",function(S){return S})):y!=null&&(P(y)&&(y.key!=null&&(g&&g.key===y.key||q(y.key)),u=X(y,u+(y.key==null||g&&g.key===y.key?"":(""+y.key).replace(Qt,"$&/")+"/")+T),a!==""&&g!=null&&P(g)&&g.key==null&&g._store&&!g._store.validated&&(u._store.validated=2),y=u),n.push(y)),1}if(g=0,T=a===""?".":a+":",vt(t))for(var R=0;R<t.length;R++)a=t[R],v=T+V(a,R),g+=f(a,n,u,v,y);else if(R=G(t),typeof R=="function")for(R===t.entries&&(Kt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Kt=!0),t=R.call(t),R=0;!(a=t.next()).done;)a=a.value,v=T+V(a,R++),g+=f(a,n,u,v,y);else if(v==="object"){if(typeof t.then=="function")return f(l(t),n,u,a,y);throw n=String(t),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return g}function i(t,n,u){if(t==null)return t;var a=[],y=0;return f(t,a,"","",function(v){return n.call(u,v,y++)}),a}function s(t){if(t._status===-1){var n=t._result;n=n(),n.then(function(u){(t._status===0||t._status===-1)&&(t._status=1,t._result=u)},function(u){(t._status===0||t._status===-1)&&(t._status=2,t._result=u)}),t._status===-1&&(t._status=0,t._result=n)}if(t._status===1)return n=t._result,n===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s | ||
@@ -41,2 +41,2 @@ Your code should look like: | ||
3. You might have more than one copy of React in the same app | ||
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),t}function e(){}function o(t){if(Et===null)try{var n=("require"+Math.random()).slice(0,7);Et=(B&&B[n]).call(B,"timers").setImmediate}catch{Et=function(a){Vt===!1&&(Vt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var y=new MessageChannel;y.port1.onmessage=a,y.port2.postMessage(void 0)}}return Et(t)}function p(t){return 1<t.length&&typeof AggregateError=="function"?new AggregateError(t):t[0]}function l(t,n){n!==_t-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),_t=n}function h(t,n,u){var a=b.actQueue;if(a!==null)if(a.length!==0)try{m(a),o(function(){return h(t,n,u)});return}catch(y){b.thrownErrors.push(y)}else b.actQueue=null;0<b.thrownErrors.length?(a=p(b.thrownErrors),b.thrownErrors.length=0,u(a)):n(t)}function m(t){if(!kt){kt=!0;var n=0;try{for(;n<t.length;n++){var u=t[n];do{b.didUsePromise=!1;var a=u(!1);if(a!==null){if(b.didUsePromise){t[n]=u,t.splice(0,n);return}u=a}else break}while(1)}t.length=0}catch(y){t.splice(0,n+1),b.thrownErrors.push(y)}finally{kt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var w=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),ct=Symbol.for("react.strict_mode"),Tt=Symbol.for("react.profiler"),ht=Symbol.for("react.consumer"),Ct=Symbol.for("react.context"),yt=Symbol.for("react.forward_ref"),gt=Symbol.for("react.suspense"),At=Symbol.for("react.suspense_list"),lt=Symbol.for("react.memo"),ft=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),Mt=Symbol.iterator,$t={},xt={isMounted:function(){return!1},enqueueForceUpdate:function(t){N(t,"forceUpdate")},enqueueReplaceState:function(t){N(t,"replaceState")},enqueueSetState:function(t){N(t,"setState")}},W=Object.assign,St={};Object.freeze(St),O.prototype.isReactComponent={},O.prototype.setState=function(t,n){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,n,"setState")},O.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var rt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},mt;for(mt in rt)rt.hasOwnProperty(mt)&&$(mt,rt[mt]);Z.prototype=O.prototype,rt=k.prototype=new Z,rt.constructor=k,W(rt,O.prototype),rt.isPureReactComponent=!0;var vt=Array.isArray,re=Symbol.for("react.client.reference"),b={H:null,A:null,T:null,S:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null},wt=Object.prototype.hasOwnProperty,oe=Symbol.for("react.client.reference"),dt=0,Lt,It,Ut,Yt,Ht,Bt,Dt;ut.__reactDisabledLog=!0;var Ot,qt,Pt=!1,Nt=new(typeof WeakMap=="function"?WeakMap:Map),ue=Symbol.for("react.client.reference"),zt,Wt,Ft={},Gt={},Kt=!1,Qt=/\/+/g,Xt=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Vt=!1,Et=null,_t=0,bt=!1,kt=!1,Zt=typeof queueMicrotask=="function"?function(t){queueMicrotask(function(){return queueMicrotask(t)})}:o;E.Children={map:i,forEach:function(t,n,u){i(t,function(){n.apply(this,arguments)},u)},count:function(t){var n=0;return i(t,function(){n++}),n},toArray:function(t){return i(t,function(n){return n})||[]},only:function(t){if(!P(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},E.Component=O,E.Fragment=A,E.Profiler=Tt,E.PureComponent=k,E.StrictMode=ct,E.Suspense=gt,E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,E.act=function(t){var n=b.actQueue,u=_t;_t++;var a=b.actQueue=n!==null?n:[],y=!1;try{var v=t()}catch(R){b.thrownErrors.push(R)}if(0<b.thrownErrors.length)throw l(n,u),t=p(b.thrownErrors),b.thrownErrors.length=0,t;if(v!==null&&typeof v=="object"&&typeof v.then=="function"){var g=v;return Zt(function(){y||bt||(bt=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(R,S){y=!0,g.then(function(M){if(l(n,u),u===0){try{m(a),o(function(){return h(M,R,S)})}catch(H){b.thrownErrors.push(H)}if(0<b.thrownErrors.length){var ot=p(b.thrownErrors);b.thrownErrors.length=0,S(ot)}}else R(M)},function(M){l(n,u),0<b.thrownErrors.length&&(M=p(b.thrownErrors),b.thrownErrors.length=0),S(M)})}}}var T=v;if(l(n,u),u===0&&(m(a),a.length!==0&&Zt(function(){y||bt||(bt=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),b.actQueue=null),0<b.thrownErrors.length)throw t=p(b.thrownErrors),b.thrownErrors.length=0,t;return{then:function(R,S){y=!0,u===0?(b.actQueue=a,o(function(){return h(T,R,S)})):R(T)}}},E.cache=function(t){return function(){return t.apply(null,arguments)}},E.cloneElement=function(t,n,u){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var a=W({},t.props),y=t.key,v=t._owner;if(n!=null){var g;t:{if(wt.call(n,"ref")&&(g=Object.getOwnPropertyDescriptor(n,"ref").get)&&g.isReactWarning){g=!1;break t}g=n.ref!==void 0}g&&(v=j()),K(n)&&(q(n.key),y=""+n.key);for(T in n)!wt.call(n,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&n.ref===void 0||(a[T]=n[T])}var T=arguments.length-2;if(T===1)a.children=u;else if(1<T){g=Array(T);for(var R=0;R<T;R++)g[R]=arguments[R+2];a.children=g}for(a=Q(t.type,y,void 0,void 0,v,a),y=2;y<arguments.length;y++)tt(arguments[y],a.type);return a},E.createContext=function(t){return t={$$typeof:Ct,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:ht,_context:t},t._currentRenderer=null,t._currentRenderer2=null,t},E.createElement=function(t,n,u){if(J(t))for(var a=2;a<arguments.length;a++)tt(arguments[a],t);else{if(a="",(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),t===null)var y="null";else vt(t)?y="array":t!==void 0&&t.$$typeof===w?(y="<"+(I(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):y=typeof t;console.error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,a)}var v;if(a={},y=null,n!=null)for(v in Wt||!("__self"in n)||"key"in n||(Wt=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),K(n)&&(q(n.key),y=""+n.key),n)wt.call(n,v)&&v!=="key"&&v!=="__self"&&v!=="__source"&&(a[v]=n[v]);var g=arguments.length-2;if(g===1)a.children=u;else if(1<g){for(var T=Array(g),R=0;R<g;R++)T[R]=arguments[R+2];Object.freeze&&Object.freeze(T),a.children=T}if(t&&t.defaultProps)for(v in g=t.defaultProps,g)a[v]===void 0&&(a[v]=g[v]);return y&&Y(a,typeof t=="function"?t.displayName||t.name||"Unknown":t),Q(t,y,void 0,void 0,j(),a)},E.createRef=function(){var t={current:null};return Object.seal(t),t},E.forwardRef=function(t){t!=null&&t.$$typeof===lt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof t!="function"?console.error("forwardRef requires a render function but was given %s.",t===null?"null":typeof t):t.length!==0&&t.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",t.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),t!=null&&t.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var n={$$typeof:yt,render:t},u;return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(a){u=a,t.name||t.displayName||(Object.defineProperty(t,"name",{value:a}),t.displayName=a)}}),n},E.isValidElement=P,E.lazy=function(t){return{$$typeof:ft,_payload:{_status:-1,_result:t},_init:s}},E.memo=function(t,n){J(t)||console.error("memo: The first argument must be a component. Instead received: %s",t===null?"null":typeof t),n={$$typeof:lt,type:t,compare:n===void 0?null:n};var u;return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(a){u=a,t.name||t.displayName||(Object.defineProperty(t,"name",{value:a}),t.displayName=a)}}),n},E.startTransition=function(t){var n=b.T,u={};b.T=u,u._updatedFibers=new Set;try{var a=t(),y=b.S;y!==null&&y(u,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(e,Xt)}catch(v){Xt(v)}finally{n===null&&u._updatedFibers&&(t=u._updatedFibers.size,u._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),b.T=n}},E.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},E.use=function(t){return d().use(t)},E.useActionState=function(t,n,u){return d().useActionState(t,n,u)},E.useCallback=function(t,n){return d().useCallback(t,n)},E.useContext=function(t){var n=d();return t.$$typeof===ht&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),n.useContext(t)},E.useDebugValue=function(t,n){return d().useDebugValue(t,n)},E.useDeferredValue=function(t,n){return d().useDeferredValue(t,n)},E.useEffect=function(t,n){return d().useEffect(t,n)},E.useId=function(){return d().useId()},E.useImperativeHandle=function(t,n,u){return d().useImperativeHandle(t,n,u)},E.useInsertionEffect=function(t,n){return d().useInsertionEffect(t,n)},E.useLayoutEffect=function(t,n){return d().useLayoutEffect(t,n)},E.useMemo=function(t,n){return d().useMemo(t,n)},E.useOptimistic=function(t,n){return d().useOptimistic(t,n)},E.useReducer=function(t,n,u){return d().useReducer(t,n,u)},E.useRef=function(t){return d().useRef(t)},E.useState=function(t){return d().useState(t)},E.useSyncExternalStore=function(t,n,u){return d().useSyncExternalStore(t,n,u)},E.useTransition=function(){return d().useTransition()},E.version="19.0.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(pt,pt.exports)),pt.exports}process.env.NODE_ENV==="production"?jt.exports=se():jt.exports=ie();var ae=jt.exports;const ce=()=>(ae.useEffect(()=>{ee()},[]),null);exports.Bridge=ce;exports.initBridge=ee; | ||
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),t}function e(){}function o(t){if(Et===null)try{var n=("require"+Math.random()).slice(0,7);Et=(B&&B[n]).call(B,"timers").setImmediate}catch{Et=function(a){Vt===!1&&(Vt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var y=new MessageChannel;y.port1.onmessage=a,y.port2.postMessage(void 0)}}return Et(t)}function p(t){return 1<t.length&&typeof AggregateError=="function"?new AggregateError(t):t[0]}function c(t,n){n!==_t-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),_t=n}function h(t,n,u){var a=b.actQueue;if(a!==null)if(a.length!==0)try{m(a),o(function(){return h(t,n,u)});return}catch(y){b.thrownErrors.push(y)}else b.actQueue=null;0<b.thrownErrors.length?(a=p(b.thrownErrors),b.thrownErrors.length=0,u(a)):n(t)}function m(t){if(!kt){kt=!0;var n=0;try{for(;n<t.length;n++){var u=t[n];do{b.didUsePromise=!1;var a=u(!1);if(a!==null){if(b.didUsePromise){t[n]=u,t.splice(0,n);return}u=a}else break}while(1)}t.length=0}catch(y){t.splice(0,n+1),b.thrownErrors.push(y)}finally{kt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var w=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),ct=Symbol.for("react.strict_mode"),Tt=Symbol.for("react.profiler"),ht=Symbol.for("react.consumer"),Ct=Symbol.for("react.context"),yt=Symbol.for("react.forward_ref"),gt=Symbol.for("react.suspense"),At=Symbol.for("react.suspense_list"),ft=Symbol.for("react.memo"),lt=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),Mt=Symbol.iterator,$t={},xt={isMounted:function(){return!1},enqueueForceUpdate:function(t){N(t,"forceUpdate")},enqueueReplaceState:function(t){N(t,"replaceState")},enqueueSetState:function(t){N(t,"setState")}},W=Object.assign,St={};Object.freeze(St),O.prototype.isReactComponent={},O.prototype.setState=function(t,n){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,n,"setState")},O.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var rt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},mt;for(mt in rt)rt.hasOwnProperty(mt)&&$(mt,rt[mt]);Z.prototype=O.prototype,rt=k.prototype=new Z,rt.constructor=k,W(rt,O.prototype),rt.isPureReactComponent=!0;var vt=Array.isArray,re=Symbol.for("react.client.reference"),b={H:null,A:null,T:null,S:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null},wt=Object.prototype.hasOwnProperty,oe=Symbol.for("react.client.reference"),dt=0,Lt,It,Ut,Yt,Ht,Bt,Dt;ut.__reactDisabledLog=!0;var Ot,qt,Pt=!1,Nt=new(typeof WeakMap=="function"?WeakMap:Map),ue=Symbol.for("react.client.reference"),zt,Wt,Ft={},Gt={},Kt=!1,Qt=/\/+/g,Xt=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Vt=!1,Et=null,_t=0,bt=!1,kt=!1,Zt=typeof queueMicrotask=="function"?function(t){queueMicrotask(function(){return queueMicrotask(t)})}:o;E.Children={map:i,forEach:function(t,n,u){i(t,function(){n.apply(this,arguments)},u)},count:function(t){var n=0;return i(t,function(){n++}),n},toArray:function(t){return i(t,function(n){return n})||[]},only:function(t){if(!P(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},E.Component=O,E.Fragment=A,E.Profiler=Tt,E.PureComponent=k,E.StrictMode=ct,E.Suspense=gt,E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,E.act=function(t){var n=b.actQueue,u=_t;_t++;var a=b.actQueue=n!==null?n:[],y=!1;try{var v=t()}catch(R){b.thrownErrors.push(R)}if(0<b.thrownErrors.length)throw c(n,u),t=p(b.thrownErrors),b.thrownErrors.length=0,t;if(v!==null&&typeof v=="object"&&typeof v.then=="function"){var g=v;return Zt(function(){y||bt||(bt=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(R,S){y=!0,g.then(function(M){if(c(n,u),u===0){try{m(a),o(function(){return h(M,R,S)})}catch(H){b.thrownErrors.push(H)}if(0<b.thrownErrors.length){var ot=p(b.thrownErrors);b.thrownErrors.length=0,S(ot)}}else R(M)},function(M){c(n,u),0<b.thrownErrors.length&&(M=p(b.thrownErrors),b.thrownErrors.length=0),S(M)})}}}var T=v;if(c(n,u),u===0&&(m(a),a.length!==0&&Zt(function(){y||bt||(bt=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),b.actQueue=null),0<b.thrownErrors.length)throw t=p(b.thrownErrors),b.thrownErrors.length=0,t;return{then:function(R,S){y=!0,u===0?(b.actQueue=a,o(function(){return h(T,R,S)})):R(T)}}},E.cache=function(t){return function(){return t.apply(null,arguments)}},E.cloneElement=function(t,n,u){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var a=W({},t.props),y=t.key,v=t._owner;if(n!=null){var g;t:{if(wt.call(n,"ref")&&(g=Object.getOwnPropertyDescriptor(n,"ref").get)&&g.isReactWarning){g=!1;break t}g=n.ref!==void 0}g&&(v=j()),K(n)&&(q(n.key),y=""+n.key);for(T in n)!wt.call(n,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&n.ref===void 0||(a[T]=n[T])}var T=arguments.length-2;if(T===1)a.children=u;else if(1<T){g=Array(T);for(var R=0;R<T;R++)g[R]=arguments[R+2];a.children=g}for(a=Q(t.type,y,void 0,void 0,v,a),y=2;y<arguments.length;y++)tt(arguments[y],a.type);return a},E.createContext=function(t){return t={$$typeof:Ct,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:ht,_context:t},t._currentRenderer=null,t._currentRenderer2=null,t},E.createElement=function(t,n,u){if(J(t))for(var a=2;a<arguments.length;a++)tt(arguments[a],t);else{if(a="",(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),t===null)var y="null";else vt(t)?y="array":t!==void 0&&t.$$typeof===w?(y="<"+(I(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):y=typeof t;console.error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,a)}var v;if(a={},y=null,n!=null)for(v in Wt||!("__self"in n)||"key"in n||(Wt=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),K(n)&&(q(n.key),y=""+n.key),n)wt.call(n,v)&&v!=="key"&&v!=="__self"&&v!=="__source"&&(a[v]=n[v]);var g=arguments.length-2;if(g===1)a.children=u;else if(1<g){for(var T=Array(g),R=0;R<g;R++)T[R]=arguments[R+2];Object.freeze&&Object.freeze(T),a.children=T}if(t&&t.defaultProps)for(v in g=t.defaultProps,g)a[v]===void 0&&(a[v]=g[v]);return y&&Y(a,typeof t=="function"?t.displayName||t.name||"Unknown":t),Q(t,y,void 0,void 0,j(),a)},E.createRef=function(){var t={current:null};return Object.seal(t),t},E.forwardRef=function(t){t!=null&&t.$$typeof===ft?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof t!="function"?console.error("forwardRef requires a render function but was given %s.",t===null?"null":typeof t):t.length!==0&&t.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",t.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),t!=null&&t.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var n={$$typeof:yt,render:t},u;return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(a){u=a,t.name||t.displayName||(Object.defineProperty(t,"name",{value:a}),t.displayName=a)}}),n},E.isValidElement=P,E.lazy=function(t){return{$$typeof:lt,_payload:{_status:-1,_result:t},_init:s}},E.memo=function(t,n){J(t)||console.error("memo: The first argument must be a component. Instead received: %s",t===null?"null":typeof t),n={$$typeof:ft,type:t,compare:n===void 0?null:n};var u;return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(a){u=a,t.name||t.displayName||(Object.defineProperty(t,"name",{value:a}),t.displayName=a)}}),n},E.startTransition=function(t){var n=b.T,u={};b.T=u,u._updatedFibers=new Set;try{var a=t(),y=b.S;y!==null&&y(u,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(e,Xt)}catch(v){Xt(v)}finally{n===null&&u._updatedFibers&&(t=u._updatedFibers.size,u._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),b.T=n}},E.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},E.use=function(t){return d().use(t)},E.useActionState=function(t,n,u){return d().useActionState(t,n,u)},E.useCallback=function(t,n){return d().useCallback(t,n)},E.useContext=function(t){var n=d();return t.$$typeof===ht&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),n.useContext(t)},E.useDebugValue=function(t,n){return d().useDebugValue(t,n)},E.useDeferredValue=function(t,n){return d().useDeferredValue(t,n)},E.useEffect=function(t,n){return d().useEffect(t,n)},E.useId=function(){return d().useId()},E.useImperativeHandle=function(t,n,u){return d().useImperativeHandle(t,n,u)},E.useInsertionEffect=function(t,n){return d().useInsertionEffect(t,n)},E.useLayoutEffect=function(t,n){return d().useLayoutEffect(t,n)},E.useMemo=function(t,n){return d().useMemo(t,n)},E.useOptimistic=function(t,n){return d().useOptimistic(t,n)},E.useReducer=function(t,n,u){return d().useReducer(t,n,u)},E.useRef=function(t){return d().useRef(t)},E.useState=function(t){return d().useState(t)},E.useSyncExternalStore=function(t,n,u){return d().useSyncExternalStore(t,n,u)},E.useTransition=function(){return d().useTransition()},E.version="19.0.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(pt,pt.exports)),pt.exports}process.env.NODE_ENV==="production"?jt.exports=se():jt.exports=ie();var ae=jt.exports;const ce=()=>(ae.useEffect(()=>{ee()},[]),null);exports.Bridge=ce;exports.initBridge=ee; |
{ | ||
"name": "@builderx/bridge", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"main": "dist/index.es.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is too big to display
109589