grab 0.1.47-dev.48f6725 → 0.1.47-dev.58b4de2

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.
@@ -6,7 +6,7 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- let e=null;const t=()=>{if(e!==null)return e;try{e=window.matchMedia(`(color-gamut: p3)`).matches}catch{e=!1}return e},n=t(),r=e=>n?`color(display-p3 0.84 0.19 0.78 / ${e})`:`rgba(210, 57, 192, ${e})`,i=`data-react-grab`,a=`0.1.47-dev.48f6725`,o=`var(--rg-panel-bg)`,s=`var(--rg-shadow)`,c=-1e3,l=.95,ee=1500,te=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],ne=5e3,re=8e3,ie=1e4,ae=2147483647,oe=2147483645,se=.7,ce=1e3/60,le=.5,ue=.01,de=r(.4),fe=r(.05),pe=r(.5),me=r(.08),he=r(.15),ge=.2,_e=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],ve=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),ye=new Set([`a`,`code`,`pre`]),be=new Set([`script`,`style`,`template`,`noscript`]),xe=[`Meta`,`Control`,`Shift`,`Alt`],Se=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),u=`data-react-grab-frozen`,Ce=.18,we=.6,Te=.5,Ee=.5,De=`copy`,Oe=`comment`,ke=`edit`,Ae=`superellipse(1.25)`,je=.75,Me=.01,Ne=1e3,Pe={left:-9999,top:-9999},Fe={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},Ie=1e3,Le=`#00000000`,Re=`transparent`,ze=2e3,Be=`cubic-bezier(0.34, 1.56, 0.64, 1)`,Ve=12e3,He=9e3,Ue=1e4,We=8e3,Ge=5e3,Ke=1e3,qe=1e7,Je=1.2,Ye=-9999,Xe=new Set(`display.position.top.right.bottom.left.z-index.overflow.overflow-x.overflow-y.width.height.min-width.min-height.max-width.max-height.margin-top.margin-right.margin-bottom.margin-left.padding-top.padding-right.padding-bottom.padding-left.flex-direction.flex-wrap.justify-content.align-items.align-self.align-content.flex-grow.flex-shrink.flex-basis.order.gap.row-gap.column-gap.grid-template-columns.grid-template-rows.grid-template-areas.font-family.font-size.font-weight.font-style.line-height.letter-spacing.text-align.text-decoration-line.text-decoration-style.text-transform.text-overflow.text-shadow.white-space.word-break.overflow-wrap.vertical-align.color.background-color.background-image.background-position.background-size.background-repeat.border-top-width.border-right-width.border-bottom-width.border-left-width.border-top-style.border-right-style.border-bottom-style.border-left-style.border-top-color.border-right-color.border-bottom-color.border-left-color.border-top-left-radius.border-top-right-radius.border-bottom-left-radius.border-bottom-right-radius.box-shadow.opacity.transform.filter.backdrop-filter.object-fit.object-position`.split(`.`)),Ze=e=>(e.tagName||``).toLowerCase();let Qe;const $e=()=>{if(Qe!==void 0)return Qe;let e=document.querySelector(`script[nonce], style[nonce]`),t=e?.nonce||e?.getAttribute(`nonce`)||null;return t&&(Qe=t),t},et=[[`data-rr-block`,``],[`data-rr-ignore`,``],[`data-rr-mask`,``],[`data-sentry-block`,``],[`data-sentry-ignore`,``],[`data-sentry-mask`,``],[`data-dd-privacy`,`hidden`],[`data-fs-exclude`,``],[`data-lr-exclude`,``],[`data-hj-suppress`,``],[`data-recording-disable`,``],[`data-clarity-mask`,`true`],[`data-heap-redact-text`,``]],tt=e=>{for(let[t,n]of et)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)},nt=`bippy-0.5.42`,rt=Object.defineProperty,it=Object.prototype.hasOwnProperty,d=()=>{},at=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{}},ot=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let st=!1,ct;const lt=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>st?!0:(e&&typeof e.inject==`function`&&(ct=e.inject.toString()),!!ct?.includes(`(injected)`)),f=new Set,p=new Set,ut=e=>{let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:nt,checkDCE:at,hasUnsupportedRendererAttached:!1,inject(e){let i=++n;return t.set(i,e),p.add(e),r._instrumentationIsActive||(r._instrumentationIsActive=!0,f.forEach(e=>e())),i},on:d,onCommitFiberRoot:d,onCommitFiberUnmount:d,onPostCommitFiberRoot:d,renderers:t,supportsFiber:!0,supportsFlight:!0};try{rt(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return r},set(t){if(t&&typeof t==`object`){let n=r.renderers;r=t,n.size>0&&(n.forEach((e,n)=>{p.add(e),t.renderers.set(n,e)}),m(e))}}});let t=window.hasOwnProperty,n=!1;rt(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{m(e)}return r},m=e=>{e&&f.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=at,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=nt,t._instrumentationIsActive=!1;let e=ot(t);if(e||(t.on=d),t.renderers.size){t._instrumentationIsActive=!0,f.forEach(e=>e());return}let n=t.inject,r=lt(t);r&&!e&&(st=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let i=n(e);return p.add(e),r&&t.renderers.set(i,e),t._instrumentationIsActive=!0,f.forEach(e=>e()),i}}(t.renderers.size||t._instrumentationIsActive||lt())&&e?.()}catch{}},dt=()=>it.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),h=e=>dt()?(m(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):ut(e),ft=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),pt=()=>{try{ft()&&h()}catch{}},mt=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return!0;default:return!1}};function ht(e,t,n=!1){if(!e)return null;let r=t(e);if(r instanceof Promise)return(async()=>{if(await r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=await _t(i,t,n);if(e)return e;i=n?null:i.sibling}return null})();if(r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=gt(i,t,n);if(e)return e;i=n?null:i.sibling}return null}const gt=(e,t,n=!1)=>{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=gt(r,t,n);if(e)return e;r=n?null:r.sibling}return null},_t=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=await _t(r,t,n);if(e)return e;r=n?null:r.sibling}return null},vt=e=>{let t=e;return typeof t==`function`?t:typeof t==`object`&&t?vt(t.type||t.render):null},g=e=>{let t=e;if(typeof t==`string`)return t;if(typeof t!=`function`&&!(typeof t==`object`&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=vt(t);return r&&(r.displayName||r.name)||null},yt=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||ot(e)||lt(e)},bt=e=>Object.prototype.toString.call(e)===`[object Object]`&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),xt=(e,t=[])=>{if(!bt(e))return[{path:t,value:e}];let n=[];for(let r in e){let i=e[r],a=t.concat(r);bt(i)?n.push(...xt(i,a)):n.push({path:a,value:i})}return n},St=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){if(`_reactRootContainer`in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let t in e)if(t.startsWith(`__reactContainer$`)||t.startsWith(`__reactInternalInstance$`)||t.startsWith(`__reactFiber`))return e[t]||null}return null},Ct=new Set,wt=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Tt=[`rsc://`,`file:///`,`webpack-internal://`,`webpack://`,`node:`,`turbopack://`,`metro://`,`/app-pages-browser/`,`/(app-pages-browser)/`],Et=[`<anonymous>`,`eval`,``],Dt=/\.(jsx|tsx|ts|js)$/,Ot=/(\.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,kt=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,At=/\(at [^)]+\)$/,jt=/(^|@)\S+:\d+/,Mt=/^\s*at .*(\S+:\d+|\(native\))/m,Nt=/^(eval@)?(\[native code\])?$/,_=(e,t)=>{if(t?.includeInElement!==!1){let n=e.split(`
9
+ let e=null;const t=()=>{if(e!==null)return e;try{e=window.matchMedia(`(color-gamut: p3)`).matches}catch{e=!1}return e},n=t(),r=e=>n?`color(display-p3 0.84 0.19 0.78 / ${e})`:`rgba(210, 57, 192, ${e})`,i=`data-react-grab`,a=`0.1.47-dev.58b4de2`,o=`var(--rg-panel-bg)`,s=`var(--rg-shadow)`,c=-1e3,l=.95,ee=1500,te=[`/components/ui/`,`/packages/ui/`,`/design-system/`,`/design-systems/`,`/primitives/`],ne=5e3,re=8e3,ie=1e4,ae=2147483647,oe=2147483645,se=.7,ce=1e3/60,le=.5,ue=.01,de=r(.4),fe=r(.05),pe=r(.5),me=r(.08),he=r(.15),ge=.2,_e=[`id`,`class`,`aria-label`,`data-testid`,`role`,`name`,`title`],ve=new Set([`id`,`data-testid`,`aria-label`,`href`,`src`,`alt`,`type`,`name`,`placeholder`,`role`,`for`,`action`,`method`,`title`,`disabled`,`checked`,`readonly`,`required`,`selected`,`open`]),ye=new Set([`a`,`code`,`pre`]),be=new Set([`script`,`style`,`template`,`noscript`]),xe=[`Meta`,`Control`,`Shift`,`Alt`],Se=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]),u=`data-react-grab-frozen`,Ce=.18,we=.6,Te=.5,Ee=.5,De=`copy`,Oe=`comment`,ke=`edit`,Ae=`superellipse(1.25)`,je=.75,Me=.01,Ne=1e3,Pe={left:-9999,top:-9999},Fe={left:`left center`,right:`right center`,top:`center top`,bottom:`center bottom`},Ie=1e3,Le=`#00000000`,Re=`transparent`,ze=2e3,Be=`cubic-bezier(0.34, 1.56, 0.64, 1)`,Ve=12e3,He=9e3,Ue=1e4,We=8e3,Ge=5e3,Ke=1e3,qe=1e7,Je=1.2,Ye=-9999,Xe=new Set(`display.position.top.right.bottom.left.z-index.overflow.overflow-x.overflow-y.width.height.min-width.min-height.max-width.max-height.margin-top.margin-right.margin-bottom.margin-left.padding-top.padding-right.padding-bottom.padding-left.flex-direction.flex-wrap.justify-content.align-items.align-self.align-content.flex-grow.flex-shrink.flex-basis.order.gap.row-gap.column-gap.grid-template-columns.grid-template-rows.grid-template-areas.font-family.font-size.font-weight.font-style.line-height.letter-spacing.text-align.text-decoration-line.text-decoration-style.text-transform.text-overflow.text-shadow.white-space.word-break.overflow-wrap.vertical-align.color.background-color.background-image.background-position.background-size.background-repeat.border-top-width.border-right-width.border-bottom-width.border-left-width.border-top-style.border-right-style.border-bottom-style.border-left-style.border-top-color.border-right-color.border-bottom-color.border-left-color.border-top-left-radius.border-top-right-radius.border-bottom-left-radius.border-bottom-right-radius.box-shadow.opacity.transform.filter.backdrop-filter.object-fit.object-position`.split(`.`)),Ze=e=>(e.tagName||``).toLowerCase();let Qe;const $e=()=>{if(Qe!==void 0)return Qe;let e=document.querySelector(`script[nonce], style[nonce]`),t=e?.nonce||e?.getAttribute(`nonce`)||null;return t&&(Qe=t),t},et=[[`data-rr-block`,``],[`data-rr-ignore`,``],[`data-rr-mask`,``],[`data-sentry-block`,``],[`data-sentry-ignore`,``],[`data-sentry-mask`,``],[`data-dd-privacy`,`hidden`],[`data-fs-exclude`,``],[`data-lr-exclude`,``],[`data-hj-suppress`,``],[`data-recording-disable`,``],[`data-clarity-mask`,`true`],[`data-heap-redact-text`,``]],tt=e=>{for(let[t,n]of et)e.setAttribute(t,n);e.setAttribute(`data-testid`,`react-grab-overlay`),e.classList.add(`ph-no-capture`)},nt=`bippy-0.5.42`,rt=Object.defineProperty,it=Object.prototype.hasOwnProperty,d=()=>{},at=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{}},ot=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(e&&`getFiberRoots`in e);let st=!1,ct;const lt=(e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>st?!0:(e&&typeof e.inject==`function`&&(ct=e.inject.toString()),!!ct?.includes(`(injected)`)),f=new Set,p=new Set,ut=e=>{let t=new Map,n=0,r={_instrumentationIsActive:!1,_instrumentationSource:nt,checkDCE:at,hasUnsupportedRendererAttached:!1,inject(e){let i=++n;return t.set(i,e),p.add(e),r._instrumentationIsActive||(r._instrumentationIsActive=!0,f.forEach(e=>e())),i},on:d,onCommitFiberRoot:d,onCommitFiberUnmount:d,onPostCommitFiberRoot:d,renderers:t,supportsFiber:!0,supportsFlight:!0};try{rt(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!0,enumerable:!0,get(){return r},set(t){if(t&&typeof t==`object`){let n=r.renderers;r=t,n.size>0&&(n.forEach((e,n)=>{p.add(e),t.renderers.set(n,e)}),m(e))}}});let t=window.hasOwnProperty,n=!1;rt(window,`hasOwnProperty`,{configurable:!0,value:function(...e){try{if(!n&&e[0]===`__REACT_DEVTOOLS_GLOBAL_HOOK__`)return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,n=!0,-0}catch{}return t.apply(this,e)},writable:!0})}catch{m(e)}return r},m=e=>{e&&f.add(e);try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=at,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=nt,t._instrumentationIsActive=!1;let e=ot(t);if(e||(t.on=d),t.renderers.size){t._instrumentationIsActive=!0,f.forEach(e=>e());return}let n=t.inject,r=lt(t);r&&!e&&(st=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=e=>{let i=n(e);return p.add(e),r&&t.renderers.set(i,e),t._instrumentationIsActive=!0,f.forEach(e=>e()),i}}(t.renderers.size||t._instrumentationIsActive||lt())&&e?.()}catch{}},dt=()=>it.call(globalThis,`__REACT_DEVTOOLS_GLOBAL_HOOK__`),h=e=>dt()?(m(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):ut(e),ft=()=>!!(typeof window<`u`&&(window.document?.createElement||window.navigator?.product===`ReactNative`)),pt=()=>{try{ft()&&h()}catch{}},mt=e=>{switch(e.tag){case 1:case 11:case 0:case 14:case 15:return!0;default:return!1}};function ht(e,t,n=!1){if(!e)return null;let r=t(e);if(r instanceof Promise)return(async()=>{if(await r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=await _t(i,t,n);if(e)return e;i=n?null:i.sibling}return null})();if(r===!0)return e;let i=n?e.return:e.child;for(;i;){let e=gt(i,t,n);if(e)return e;i=n?null:i.sibling}return null}const gt=(e,t,n=!1)=>{if(!e)return null;if(t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=gt(r,t,n);if(e)return e;r=n?null:r.sibling}return null},_t=async(e,t,n=!1)=>{if(!e)return null;if(await t(e)===!0)return e;let r=n?e.return:e.child;for(;r;){let e=await _t(r,t,n);if(e)return e;r=n?null:r.sibling}return null},vt=e=>{let t=e;return typeof t==`function`?t:typeof t==`object`&&t?vt(t.type||t.render):null},g=e=>{let t=e;if(typeof t==`string`)return t;if(typeof t!=`function`&&!(typeof t==`object`&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=vt(t);return r&&(r.displayName||r.name)||null},yt=()=>{let e=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;return!!e?._instrumentationIsActive||ot(e)||lt(e)},bt=e=>Object.prototype.toString.call(e)===`[object Object]`&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null),xt=(e,t=[])=>{if(!bt(e))return[{path:t,value:e}];let n=[];for(let r in e){let i=e[r],a=t.concat(r);bt(i)?n.push(...xt(i,a)):n.push({path:a,value:i})}return n},St=e=>{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t?.renderers)for(let n of t.renderers.values())try{let t=n.findFiberByHostInstance?.(e);if(t)return t}catch{}if(typeof e==`object`&&e){if(`_reactRootContainer`in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let t in e)if(t.startsWith(`__reactContainer$`)||t.startsWith(`__reactInternalInstance$`)||t.startsWith(`__reactFiber`))return e[t]||null}return null},Ct=new Set,wt=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,Tt=[`rsc://`,`file:///`,`webpack-internal://`,`webpack://`,`node:`,`turbopack://`,`metro://`,`/app-pages-browser/`,`/(app-pages-browser)/`],Et=[`<anonymous>`,`eval`,``],Dt=/\.(jsx|tsx|ts|js)$/,Ot=/(\.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,kt=/^\?[\w~.-]+(?:=[^&#]*)?(?:&[\w~.-]+(?:=[^&#]*)?)*$/,At=/\(at [^)]+\)$/,jt=/(^|@)\S+:\d+/,Mt=/^\s*at .*(\S+:\d+|\(native\))/m,Nt=/^(eval@)?(\[native code\])?$/,_=(e,t)=>{if(t?.includeInElement!==!1){let n=e.split(`
10
10
  `),r=[];for(let e of n)if(/^\s*at\s+/.test(e)){let t=Ft(e,void 0)[0];t&&r.push(t)}else if(/^\s*in\s+/.test(e)){let t=e.replace(/^\s*in\s+/,``).replace(/\s*\(at .*\)$/,``);r.push({functionName:t,source:e})}else if(e.match(jt)){let t=It(e,void 0)[0];t&&r.push(t)}return v(r,t)}return e.match(Mt)?Ft(e,t):It(e,t)},Pt=e=>{if(!e.includes(`:`))return[e,void 0,void 0];let t=e.startsWith(`(`)&&/:\d+\)$/.test(e)?e.slice(1,-1):e,n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);return n?[n[1],n[2]||void 0,n[3]||void 0]:[t,void 0,void 0]},v=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e,Ft=(e,t)=>v(e.split(`
11
11
  `).filter(e=>!!e.match(Mt)),t).map(e=>{let t=e;t.includes(`(eval `)&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));let n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;let i=Pt(r?r[1]:n);return{functionName:r&&n||void 0,fileName:[`eval`,`<anonymous>`].includes(i[0])?void 0:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}),It=(e,t)=>v(e.split(`
12
12
  `).filter(e=>!e.match(Nt)),t).map(e=>{let t=e;if(t.includes(` > eval`)&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),!t.includes(`@`)&&!t.includes(`:`))return{functionName:t};{let e=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(e),r=n&&n[1]?n[1]:void 0,i=Pt(t.replace(e,``));return{functionName:r,fileName:i[0],lineNumber:i[1]?+i[1]:void 0,columnNumber:i[2]?+i[2]:void 0,source:t}}});var Lt=44,Rt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,zt=new Uint8Array(64),Bt=new Uint8Array(128);for(let e=0;e<Rt.length;e++){let t=Rt.charCodeAt(e);zt[e]=t,Bt[t]=e}function y(e,t){let n=0,r=0,i=0;do i=Bt[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function Vt(e,t){return e.pos>=t?!1:e.peek()!==Lt}var Ht=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function Ut(e){let{length:t}=e,n=new Ht(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,ee=0;for(i=0;n.pos<e;){let r;i=y(n,i),i<ee&&(l=!1),ee=i,Vt(n,e)?(a=y(n,a),o=y(n,o),s=y(n,s),Vt(n,e)?(c=y(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||Wt(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function Wt(e){e.sort(Gt)}function Gt(e,t){return e[0]-t[0]}const Kt=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,qt=/^data:application\/json[^,]+base64,/,Jt=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Yt=new Map,Xt=new Map,Zt=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let i=e[n];if(!i||i.length===0)return null;let a=null;for(let e of i)if(e[0]<=r)a=e;else break;if(!a||a.length<4)return null;let[,o,s,c]=a;if(o===void 0||s===void 0||c===void 0)return null;let l=t[o];return l?{columnNumber:c,fileName:l,lineNumber:s+1}:null},Qt=(e,t,n)=>{if(e.sections){let r=null;for(let i of e.sections)if(t>i.offset.line||t===i.offset.line&&n>=i.offset.column)r=i;else break;if(!r)return null;let i=t-r.offset.line,a=t===r.offset.line?n-r.offset.column:n;return Zt(r.map.mappings,r.map.sources,i,a)}return Zt(e.mappings,e.sources,t-1,n)},$t=(e,t)=>{let n=t.split(`
package/dist/index.cjs CHANGED
@@ -6,4 +6,4 @@
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./core-BmaRR2IV.cjs`),t=require(`./freeze-updates-QI0t5eTs.cjs`),n=require(`./copy-content-BTprycmH.cjs`);let r=null;const i=()=>typeof window>`u`?r:window.__REACT_GRAB__??r??null,a=e=>{r=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__)},o=[],s=e=>{for(;o.length>0;){let t=o.shift();t&&e.registerPlugin(t)}},c=e=>{let t=i();if(t){t.registerPlugin(e);return}o.push(e)},l=e=>{let t=i();if(t){t.unregisterPlugin(e);return}let n=o.findIndex(t=>t.name===e);n!==-1&&o.splice(n,1)};typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(window.__REACT_GRAB__?r=window.__REACT_GRAB__:(r=e.t(),window.__REACT_GRAB__=r),s(r),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:r}))),exports.DEFAULT_THEME=e.a,exports.commentPlugin=e.i,exports.formatElementInfo=n.n,exports.generateSnippet=e.n,exports.getGlobalApi=i,exports.getStack=n.o,exports.init=e.t,exports.isInstrumentationActive=t.A,exports.openPlugin=e.r,exports.registerPlugin=c,exports.setGlobalApi=a,exports.unregisterPlugin=l;
9
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./core-Ch_38Dh0.cjs`),t=require(`./freeze-updates-D6aehaiC.cjs`),n=require(`./copy-content-DBTUuI3p.cjs`);let r=null;const i=()=>typeof window>`u`?r:window.__REACT_GRAB__??r??null,a=e=>{r=e,typeof window<`u`&&(e?window.__REACT_GRAB__=e:delete window.__REACT_GRAB__)},o=[],s=e=>{for(;o.length>0;){let t=o.shift();t&&e.registerPlugin(t)}},c=e=>{let t=i();if(t){t.registerPlugin(e);return}o.push(e)},l=e=>{let t=i();if(t){t.unregisterPlugin(e);return}let n=o.findIndex(t=>t.name===e);n!==-1&&o.splice(n,1)};typeof window<`u`&&!window.__REACT_GRAB_DISABLED__&&(window.__REACT_GRAB__?r=window.__REACT_GRAB__:(r=e.t(),window.__REACT_GRAB__=r),s(r),window.dispatchEvent(new CustomEvent(`react-grab:init`,{detail:r}))),exports.DEFAULT_THEME=e.a,exports.commentPlugin=e.i,exports.formatElementInfo=n.n,exports.generateSnippet=e.n,exports.getGlobalApi=i,exports.getStack=n.o,exports.init=e.t,exports.isInstrumentationActive=t.A,exports.openPlugin=e.r,exports.registerPlugin=c,exports.setGlobalApi=a,exports.unregisterPlugin=l;