grab 0.1.47-dev.423fe9d → 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.
- package/dist/{copy-content-DaqHoqk_.d.cts → copy-content-5FzVj_Qo.d.cts} +6 -7
- package/dist/{copy-content-JFYyyG38.d.ts → copy-content-BJATOqZF.d.ts} +6 -7
- package/dist/{copy-content-Czq_T5A4.js → copy-content-BPOJJewQ.js} +1 -1
- package/dist/{copy-content-DQZhmRbG.cjs → copy-content-DBTUuI3p.cjs} +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/core-Bas76m8X.js +14 -0
- package/dist/core-Ch_38Dh0.cjs +14 -0
- package/dist/{create-pointer-move-prompt-handoff-RUfeJDhx.cjs → create-pointer-move-prompt-handoff-CuUzA8kA.cjs} +1 -1
- package/dist/{create-pointer-move-prompt-handoff-9qSasKrd.js → create-pointer-move-prompt-handoff-DL_Nlrs5.js} +1 -1
- package/dist/{freeze-updates-BjpjTrQp.cjs → freeze-updates-D6aehaiC.cjs} +1 -1
- package/dist/{freeze-updates-Bcu6JNcm.js → freeze-updates-Dldphza-.js} +1 -1
- package/dist/{index-BerRIq43.d.ts → index-C_bngsx-.d.ts} +1 -1
- package/dist/{index-ED8DYbM_.d.cts → index-jMjUhmbS.d.cts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +9 -9
- package/dist/index.js +1 -1
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.d.cts +1 -1
- package/dist/primitives.d.ts +1 -1
- package/dist/primitives.js +1 -1
- package/dist/renderer-BI36o6Yw.cjs +9 -0
- package/dist/renderer-PetxKDwl.js +9 -0
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/dist/core-BQw4TuR5.js +0 -14
- package/dist/core-BhhBnb2X.cjs +0 -14
- package/dist/renderer-BFx7vCsE.cjs +0 -9
- package/dist/renderer-nRW72NeZ.js +0 -9
|
@@ -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
|
-
import{H as e,I as t,Pt as n,nt as r}from"./freeze-updates-Bcu6JNcm.js";const i={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return a(this.context.count)},getNextContextId(){return a(this.context.count++)}};function a(e){let t=String(e),n=t.length-1;return i.context.id+(n?String.fromCharCode(96+n):``)+t}function o(e){i.context=e}const s=(e,t)=>e===t,c=Symbol(`solid-proxy`),l=typeof Proxy==`function`,u=Symbol(`solid-track`),d={equals:s};let f=pe;const p={owned:null,cleanups:null,context:null,owner:null},m={};var h=null;let g=null,_=null,v=null,y=null,b=0;function x(e,t){let n=_,r=h,i=e.length===0,a=t===void 0?r:t,o=i?p:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>E(()=>R(o)));h=o,_=null;try{return I(s,!0)}finally{_=n,h=r}}function S(e,t){t=t?Object.assign({},d,t):d;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[le.bind(n),e=>(typeof e==`function`&&(e=g&&g.running&&g.sources.has(n)?e(n.tValue):e(n.value)),ue(n,e))]}function ee(e,t,n){N(P(e,t,!0,1))}function C(e,t,n){N(P(e,t,!1,1))}function te(e,t,n){f=me;let r=P(e,t,!1,1),i=M&&se(M);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),y?y.push(r):N(r)}function w(e,t,n){n=n?Object.assign({},d,n):d;let r=P(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,N(r),le.bind(r)}function ne(e){return e&&typeof e==`object`&&`then`in e}function re(e,t,n){let r,a,o;typeof t==`function`?(r=e,a=t,o=n||{}):(r=!0,a=e,o=t||{});let s=null,c=m,l=null,u=!1,d=!1,f=`initialValue`in o,p=typeof r==`function`&&w(r),v=new Set,[y,b]=(o.storage||S)(o.initialValue),[x,C]=S(void 0),[te,re]=S(void 0,{equals:!1}),[T,ie]=S(f?`ready`:`unresolved`);i.context&&(l=i.getNextContextId(),o.ssrLoadFrom===`initial`?c=o.initialValue:i.load&&i.has(l)&&(c=i.load(l)));function D(e,t,n,r){return s===e&&(s=null,r!==void 0&&(f=!0),(e===c||t===c)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(r,{value:t})),c=m,g&&e&&u?(g.promises.delete(e),u=!1,I(()=>{g.running=!0,O(t,n)},!1)):O(t,n)),t}function O(e,t){I(()=>{t===void 0&&b(()=>e),ie(t===void 0?f?`ready`:`unresolved`:`errored`),C(t);for(let e of v.keys())e.decrement();v.clear()},!1)}function k(){let e=M&&se(M),t=y(),n=x();if(n!==void 0&&!s)throw n;return _&&!_.user&&e&&ee(()=>{te(),s&&(e.resolved&&g&&u?g.promises.add(s):v.has(e)||(e.increment(),v.add(e)))}),t}function A(e=!0){if(e!==!1&&d)return;d=!1;let t=p?p():r;if(u=g&&g.running,t==null||t===!1){D(s,E(y));return}g&&s&&g.promises.delete(s);let n,i=c===m?E(()=>{try{return a(t,{value:y(),refetching:e})}catch(e){n=e}}):c;if(n!==void 0){D(s,void 0,z(n),t);return}else if(!ne(i))return D(s,i,void 0,t),i;return s=i,`v`in i?(i.s===1?D(s,i.v,void 0,t):D(s,void 0,z(i.v),t),i):(d=!0,queueMicrotask(()=>d=!1),I(()=>{ie(f?`refreshing`:`pending`),re()},!1),i.then(e=>D(i,e,void 0,t),e=>D(i,void 0,z(e),t)))}Object.defineProperties(k,{state:{get:()=>T()},error:{get:()=>x()},loading:{get(){let e=T();return e===`pending`||e===`refreshing`}},latest:{get(){if(!f)return k();let e=x();if(e&&!s)throw e;return y()}}});let j=h;return p?ee(()=>(j=h,A(!1))):A(!1),[k,{refetch:e=>ae(j,()=>A(e)),mutate:b}]}function T(e){return I(e,!1)}function E(e){if(_===null)return e();let t=_;_=null;try{return e()}finally{_=t}}function ie(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=E(()=>t(o,i,n));return i=o,s}}function D(e){te(()=>E(e))}function O(e){return h===null||(h.cleanups===null?h.cleanups=[e]:h.cleanups.push(e)),e}function k(){return _}function ae(e,t){let n=h,r=_;h=e,_=null;try{return I(t,!0)}catch(e){B(e)}finally{h=n,_=r}}const[A,j]=S(!1);function oe(e,t){let n=Symbol(`context`);return{id:n,Provider:ve(n),defaultValue:e}}function se(e){let t;return h&&h.context&&(t=h.context[e.id])!==void 0?t:e.defaultValue}function ce(e){let t=w(e),n=w(()=>_e(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}let M;function le(){let e=g&&g.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===1)N(this);else{let e=v;v=null,I(()=>L(this),!1),v=e}if(_){let e=this.observers?this.observers.length:0;_.sources?(_.sources.push(this),_.sourceSlots.push(e)):(_.sources=[this],_.sourceSlots=[e]),this.observers?(this.observers.push(_),this.observerSlots.push(_.sources.length-1)):(this.observers=[_],this.observerSlots=[_.sources.length-1])}return e&&g.sources.has(this)?this.tValue:this.value}function ue(e,t,n){let r=g&&g.running&&g.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(g){let r=g.running;(r||!n&&g.sources.has(e))&&(g.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&I(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=g&&g.running;r&&g.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?v.push(n):y.push(n),n.observers&&he(n)),r?n.tState=1:n.state=1)}if(v.length>1e6)throw v=[],Error()},!1)}return t}function N(e){if(!e.fn)return;R(e);let t=b;de(e,g&&g.running&&g.sources.has(e)?e.tValue:e.value,t),g&&!g.running&&g.sources.has(e)&&queueMicrotask(()=>{I(()=>{g&&(g.running=!0),_=h=e,de(e,e.tValue,t),_=h=null},!1)})}function de(e,t,n){let r,i=h,a=_;_=h=e;try{r=e.fn(t)}catch(t){return e.pure&&(g&&g.running?(e.tState=1,e.tOwned&&e.tOwned.forEach(R),e.tOwned=void 0):(e.state=1,e.owned&&e.owned.forEach(R),e.owned=null)),e.updatedAt=n+1,B(t)}finally{_=a,h=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?ue(e,r,!0):g&&g.running&&e.pure?(g.sources.has(e)||(e.value=r),g.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function P(e,t,n,r=1,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:h,context:h?h.context:null,pure:n};return g&&g.running&&(a.state=0,a.tState=r),h===null||h!==p&&(g&&g.running&&h.pure?h.tOwned?h.tOwned.push(a):h.tOwned=[a]:h.owned?h.owned.push(a):h.owned=[a]),a}function F(e){let t=g&&g.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===2)return L(e);if(e.suspense&&E(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<b);){if(t&&g.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(g.disposed.has(t))return}if((t?e.tState:e.state)===1)N(e);else if((t?e.tState:e.state)===2){let t=v;v=null,I(()=>L(e,n[0]),!1),v=t}}}function I(e,t){if(v)return e();let n=!1;t||(v=[]),y?n=!0:y=[],b++;try{let t=e();return fe(n),t}catch(e){n||(y=null),v=null,B(e)}}function fe(e){if(v&&=(pe(v),null),e)return;let t;if(g){if(!g.promises.size&&!g.queue.size){let e=g.sources,n=g.disposed;y.push.apply(y,g.effects),t=g.resolve;for(let e of y)`tState`in e&&(e.state=e.tState),delete e.tState;g=null,I(()=>{for(let e of n)R(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)R(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}j(!1)},!1)}else if(g.running){g.running=!1,g.effects.push.apply(g.effects,y),y=null,j(!0);return}}let n=y;y=null,n.length&&I(()=>f(n),!1),t&&t()}function pe(e){for(let t=0;t<e.length;t++)F(e[t])}function me(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:F(r)}if(i.context){if(i.count){i.effects||=[],i.effects.push(...e.slice(0,n));return}o()}for(i.effects&&(i.done||!i.count)&&(e=[...i.effects,...e],n+=i.effects.length,delete i.effects),t=0;t<n;t++)F(e[t])}function L(e,t){let n=g&&g.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===1?i!==t&&(!i.updatedAt||i.updatedAt<b)&&F(i):e===2&&L(i,t)}}}function he(e){let t=g&&g.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=2:r.state=2,r.pure?v.push(r):y.push(r),r.observers&&he(r))}}function R(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)R(e.tOwned[t]);delete e.tOwned}if(g&&g.running&&e.pure)ge(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)R(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}g&&g.running?e.tState=0:e.state=0}function ge(e,t){if(t||(e.tState=0,g.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)ge(e.owned[t])}function z(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function B(e,t=h){throw z(e)}function _e(e){if(typeof e==`function`&&!e.length)return _e(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=_e(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function ve(e,t){return function(t){let n;return C(()=>n=E(()=>(h.context={...h.context,[e]:t.value},ce(()=>t.children))),void 0),n}}const ye=Symbol(`fallback`);function V(e){for(let t=0;t<e.length;t++)e[t]()}function be(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return O(()=>V(a)),()=>{let c=e()||[],l=c.length,d,f;return c[u],E(()=>{let e,t,u,m,h,g,_,v,y;if(l===0)o!==0&&(V(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[ye],i[0]=x(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),f=0;f<l;f++)r[f]=c[f],i[f]=x(p);o=l}else{for(u=Array(l),m=Array(l),s&&(h=Array(l)),g=0,_=Math.min(o,l);g<_&&r[g]===c[g];g++);for(_=o-1,v=l-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)u[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),f=v;f>=g;f--)y=c[f],d=e.get(y),t[f]=d===void 0?-1:d,e.set(y,f);for(d=g;d<=_;d++)y=r[d],f=e.get(y),f!==void 0&&f!==-1?(u[f]=i[d],m[f]=a[d],s&&(h[f]=s[d]),f=t[f],e.set(y,f)):a[d]();for(f=g;f<l;f++)f in u?(i[f]=u[f],a[f]=m[f],s&&(s[f]=h[f],s[f](f))):i[f]=x(p);i=i.slice(0,o=l),r=c.slice(0)}return i});function p(e){if(a[f]=e,s){let[e,n]=S(f);return s[f]=n,t(c[f],e)}return t(c[f])}}}function xe(e,t,n={}){let r=[],i=[],a=[],o=[],s=0,c;return O(()=>V(a)),()=>{let l=e()||[],d=l.length;return l[u],E(()=>{if(d===0)return s!==0&&(V(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[ye],i[0]=x(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===ye&&(a[0](),a=[],r=[],i=[],s=0),c=0;c<d;c++)c<r.length&&r[c]!==l[c]?o[c](()=>l[c]):c>=r.length&&(i[c]=x(f));for(;c<r.length;c++)a[c]();return s=o.length=a.length=d,r=l.slice(0),i=i.slice(0,s)});function f(e){a[c]=e;let[n,r]=S(l[c]);return o[c]=r,t(n,c)}}}function Se(e,t){return E(()=>e(t||{}))}function H(){return!0}const Ce={get(e,t,n){return t===c?n:e.get(t)},has(e,t){return t===c?!0:e.has(t)},set:H,deleteProperty:H,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:H,deleteProperty:H}},ownKeys(e){return e.keys()}};function we(e){return(e=typeof e==`function`?e():e)?e:{}}function Te(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function Ee(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&c in r,e[n]=typeof r==`function`?(t=!0,w(r)):r}if(l&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=we(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in we(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(we(e[n])));return[...new Set(t)]}},Ce);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:Te.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function De(e,...t){let n=t.length;if(l&&c in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},Ce));return i.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return r.includes(t)?!1:t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},Ce)),i}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}const Oe=e=>`Stale read from <${e}>.`;function ke(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return w(be(()=>e.each,e.children,t||void 0))}function Ae(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return w(xe(()=>e.each,e.children,t||void 0))}function je(e){let t=e.keyed,n=w(()=>e.when,void 0,void 0),r=t?n:w(n,void 0,{equals:(e,t)=>!e==!t});return w(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?E(()=>a(t?i:()=>{if(!E(r))throw Oe(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function Me(e){let t=ce(()=>e.children),n=w(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;e<n.length;e++){let t=e,i=n[e],a=r,o=w(()=>a()?void 0:i.when,void 0,void 0),s=i.keyed?o:w(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return w(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?E(()=>o(a.keyed?i():()=>{if(E(n)()?.[0]!==r)throw Oe(`Match`);return i()})):o},void 0,void 0)}function Ne(e){return e}const Pe=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),Fe=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),Ie=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),Le=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}});function Re(e,t){let n=Le[e];return typeof n==`object`?n[t]?n.$:void 0:n}const ze=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),Be={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},Ve=e=>w(()=>e());function He(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}const Ue=`_$DX_DELEGATE`;function We(e,t,n,r={}){let i;return x(r=>{i=r,t===document?e():nt(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function Ge(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>E(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Ke(e,t=window.document){let n=t[Ue]||(t[Ue]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,st))}}function U(e,t,n){W(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function qe(e,t,n,r){W(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Je(e,t,n){W(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function Ye(e,t){W(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function Xe(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function Ze(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(at(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(at(e,i,!0),n[i]=o)}return n}function Qe(e,t,n){if(!t)return n?U(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function $e(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function et(e,t={},n,r){let i={};return r||C(()=>i.children=G(e,t.children,i.children)),C(()=>typeof t.ref==`function`&&tt(t.ref,e)),C(()=>rt(e,t,n,!0,i,!0)),i}function tt(e,t,n){return E(()=>e(t,n))}function nt(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return G(e,t,r,n);C(r=>G(e,t(),r,n),r)}function rt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=ot(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||G(e,t.children);continue}let s=t[o];i[o]=ot(e,o,s,i[o],n,a,t)}}function W(e){return!!i.context&&!i.done&&(!e||e.isConnected)}function it(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function at(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function ot(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return Qe(e,n,r);if(t===`classList`)return Ze(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=ze.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(Xe(e,i,n,a),a&&Ke([i]))}else if(t.slice(0,5)===`attr:`)U(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)Je(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=Fe.has(t))||!i&&((u=Re(t,e.tagName))||(c=Pe.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(W(e))return n;t===`class`||t===`className`?Ye(e,n):s&&!c&&!l?e[it(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&Be[t.split(`:`)[0]];r?qe(e,r,t,n):U(e,Ie[t]||t,n)}return n}function st(e){if(i.registry&&i.events&&i.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,a=e.currentTarget,o=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),s=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},c=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),i.registry&&!i.done&&(i.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();o(n[0]);for(let e=0;e<n.length-2&&(t=n[e],s());e++){if(t._$host){t=t._$host,c();break}if(t.parentNode===a)break}}else c();o(r)}function G(e,t,n,r,i){let a=W(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=K(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=K(e,n,r)}else if(o===`function`)return C(()=>{let i=t();for(;typeof i==`function`;)i=i();n=G(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(ct(o,t,n,i))return C(()=>n=G(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=K(e,n,r),s)return n}else c?n.length===0?lt(e,o,r):He(e,n,o):(n&&K(e),lt(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=K(e,n,r,t);K(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function ct(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=ct(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=ct(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function lt(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function K(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}const ut=e=>!!(e?.isConnected??e?.ownerDocument?.contains(e)),dt=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],ft=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},pt=e=>{if(document.designMode===`on`)return!0;let n=ft(e);if(!n)return!1;if(n.isContentEditable)return!0;let r=t(n);return dt.some(e=>e===r||e===n.role)},mt=e=>{let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let e=t.selectionStart??0;return(t.selectionEnd??0)-e>0}return!1},ht=()=>{let e=window.getSelection();return e?e.toString().length>0:!1},gt=/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*([\d.]+%?))?\s*\)$/,q=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,`0`),_t=(e,t,n,r=1)=>{let i=q(e),a=q(t),o=q(n);return r>=1?`#${i}${a}${o}`:`#${i}${a}${o}${q(r*255)}`},vt=e=>{if(!e.startsWith(`#`))return null;let t=e.slice(1);if(t.length!==6&&t.length!==8)return null;let n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16),a=t.length===8?parseInt(t.slice(6,8),16)/255:1;return!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)?null:{red:n,green:r,blue:i,alpha:a}},yt=e=>{let t=e.match(gt);if(!t)return null;let n=1;if(t[4]!==void 0){let e=t[4];n=e.endsWith(`%`)?Number(e.slice(0,-1))/100:Number(e)}return _t(Number(t[1]),Number(t[2]),Number(t[3]),n)},bt=e=>{let t=e.match(gt);return!t||t[4]===void 0?!1:(t[4].endsWith(`%`)?Number(t[4].slice(0,-1))/100:Number(t[4]))===0},xt=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,St=e=>{let t=e.match(xt);if(!t)return null;let n=t[1];return n.length===3?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`:n.length===4?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`:`#${n}`},Ct=`rgba(0, 0, 0, 0)`,wt=/^oklch\(\s*([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+)(deg|grad|rad|turn)?(?:\s*\/\s*([+-]?\d*\.?\d+%?))?\s*\)$/i,Tt=180/Math.PI,Et=(e,t)=>e.endsWith(`%`)?Number(e.slice(0,-1))/100*t:Number(e),Dt=(e,t)=>{let n=Number(e);return t===`grad`?n*.9:t===`rad`?n*Tt:t===`turn`?n*360:n},Ot=e=>{let t=Math.max(0,Math.min(1,e));return(t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055)*255},kt=e=>{let t=e.match(wt);if(!t)return null;let n=Et(t[1],1),r=Et(t[2],.4),i=Dt(t[3],t[4])*Math.PI/180,a=t[5]===void 0?1:Et(t[5],1);if(![n,r,i,a].every(Number.isFinite))return null;let o=r*Math.cos(i),s=r*Math.sin(i),c=n+.3963377774*o+.2158037573*s,l=n-.1055613458*o-.0638541728*s,u=n-.0894841775*o-1.291485548*s,d=c**3,f=l**3,p=u**3,m=4.0767416621*d-3.3077115913*f+.2309699292*p,h=-1.2684380046*d+2.6097574011*f-.3413193965*p,g=-.0041960863*d-.7034186147*f+1.707614701*p;return _t(Ot(m),Ot(h),Ot(g),Math.max(0,Math.min(1,a)))};let At=null;const jt=()=>At||(typeof document>`u`?null:(At=document.createElement(`canvas`).getContext(`2d`,{willReadFrequently:!0}),At)),Mt=(e,t)=>{e.clearRect(0,0,1,1),e.fillStyle=t,e.fillRect(0,0,1,1);let n=e.getImageData(0,0,1,1).data;return n[3]===0?r:_t(n[0],n[1],n[2],n[3]/255)},Nt=e=>{let t=e.trim();if(!t)return null;if(t.toLowerCase()===`transparent`)return r;let n=St(t);if(n)return n;let i=kt(t);if(i)return i;let a=jt();if(!a)return null;a.fillStyle=Ct,a.fillStyle=t;let o=a.fillStyle;return typeof o==`string`?o.toLowerCase()===Ct?t.toLowerCase().replace(/\s+/g,``)===`rgba(0,0,0,0)`?r:null:o.startsWith(`#`)&&o.length===7?o:o.startsWith(`rgb`)?yt(o):Mt(a,t):null},Pt=(e,t,n)=>Math.max(t,Math.min(e,n));let J=null;const Ft=()=>{if(typeof navigator>`u`||!(`userAgentData`in navigator))return null;let e=navigator.userAgentData;if(typeof e!=`object`||!e||!(`platform`in e))return null;let t=e.platform;return typeof t==`string`?t:null},It=()=>{if(J===null){if(typeof navigator>`u`)return J=!1,J;let e=navigator.platform??Ft()??navigator.userAgent;J=/Mac|iPhone|iPad|iPod/i.test(e)}return J},Lt=(e,t)=>{try{return e.composedPath().some(e=>e instanceof HTMLElement&&e.hasAttribute(t))}catch{return!1}},Rt=`padding-top.padding-right.padding-bottom.padding-left.margin-top.margin-right.margin-bottom.margin-left.gap.row-gap.column-gap.font-size.line-height.letter-spacing.border-radius.border-top-left-radius.border-top-right-radius.border-bottom-right-radius.border-bottom-left-radius.border-width.border-top-width.border-right-width.border-bottom-width.border-left-width.opacity.width.height.min-width.min-height.max-width.max-height.top.right.bottom.left.z-index`.split(`.`),zt=.5,Bt=384,Vt=-128,Ht=-512,Ut=-9999,Wt=9999,Gt=new Set([`letter-spacing`,`gap`,`row-gap`,`column-gap`]),Kt=new Set([`z-index`]),qt=[{key:`padding`,label:`padding`,longhands:[`padding-top`,`padding-right`,`padding-bottom`,`padding-left`]},{key:`padding-top,padding-bottom`,label:`padding-y`,longhands:[`padding-top`,`padding-bottom`]},{key:`padding-left,padding-right`,label:`padding-x`,longhands:[`padding-left`,`padding-right`]},{key:`padding-top`,label:`padding top`,longhands:[`padding-top`]},{key:`padding-right`,label:`padding right`,longhands:[`padding-right`]},{key:`padding-bottom`,label:`padding bottom`,longhands:[`padding-bottom`]},{key:`padding-left`,label:`padding left`,longhands:[`padding-left`]}],Jt=[{key:`margin`,label:`margin`,longhands:[`margin-top`,`margin-right`,`margin-bottom`,`margin-left`]},{key:`margin-top,margin-bottom`,label:`margin-y`,longhands:[`margin-top`,`margin-bottom`]},{key:`margin-left,margin-right`,label:`margin-x`,longhands:[`margin-left`,`margin-right`]},{key:`margin-top`,label:`margin top`,longhands:[`margin-top`]},{key:`margin-right`,label:`margin right`,longhands:[`margin-right`]},{key:`margin-bottom`,label:`margin bottom`,longhands:[`margin-bottom`]},{key:`margin-left`,label:`margin left`,longhands:[`margin-left`]}],Yt=[{key:`gap`,label:`gap`,longhands:[`row-gap`,`column-gap`]},{key:`row-gap`,label:`row gap`,longhands:[`row-gap`]},{key:`column-gap`,label:`column gap`,longhands:[`column-gap`]}],Xt=[{key:`border-radius`,label:`border radius`,longhands:[`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`]},{key:`border-top-left-radius,border-top-right-radius`,label:`top corners`,longhands:[`border-top-left-radius`,`border-top-right-radius`]},{key:`border-bottom-left-radius,border-bottom-right-radius`,label:`bottom corners`,longhands:[`border-bottom-left-radius`,`border-bottom-right-radius`]},{key:`border-top-left-radius,border-bottom-left-radius`,label:`left corners`,longhands:[`border-top-left-radius`,`border-bottom-left-radius`]},{key:`border-top-right-radius,border-bottom-right-radius`,label:`right corners`,longhands:[`border-top-right-radius`,`border-bottom-right-radius`]},{key:`border-top-left-radius`,label:`top left radius`,longhands:[`border-top-left-radius`]},{key:`border-top-right-radius`,label:`top right radius`,longhands:[`border-top-right-radius`]},{key:`border-bottom-right-radius`,label:`bottom right radius`,longhands:[`border-bottom-right-radius`]},{key:`border-bottom-left-radius`,label:`bottom left radius`,longhands:[`border-bottom-left-radius`]}],Zt=[{key:`top,right,bottom,left`,label:`inset`,longhands:[`top`,`right`,`bottom`,`left`]},{key:`top,bottom`,label:`inset-y`,longhands:[`top`,`bottom`]},{key:`left,right`,label:`inset-x`,longhands:[`left`,`right`]},{key:`top`,label:`top`,longhands:[`top`]},{key:`right`,label:`right`,longhands:[`right`]},{key:`bottom`,label:`bottom`,longhands:[`bottom`]},{key:`left`,label:`left`,longhands:[`left`]}],Qt=new Set(Zt.map(e=>e.key)),$t=[qt,Jt,Yt,Xt,[{key:`border-width`,label:`border width`,longhands:[`border-top-width`,`border-right-width`,`border-bottom-width`,`border-left-width`]},{key:`border-top-width`,label:`border top width`,longhands:[`border-top-width`]},{key:`border-right-width`,label:`border right width`,longhands:[`border-right-width`]},{key:`border-bottom-width`,label:`border bottom width`,longhands:[`border-bottom-width`]},{key:`border-left-width`,label:`border left width`,longhands:[`border-left-width`]}],[{key:`width,height`,label:`size`,longhands:[`width`,`height`]},{key:`width`,label:`width`,longhands:[`width`]},{key:`height`,label:`height`,longhands:[`height`]}],Zt],en=[{key:`font-size`,label:`font size`},{key:`line-height`,label:`line height`},{key:`letter-spacing`,label:`letter spacing`},{key:`min-width`,label:`min width`},{key:`min-height`,label:`min height`},{key:`max-width`,label:`max width`},{key:`max-height`,label:`max height`},{key:`z-index`,label:`z-index`},{key:`opacity`,label:`opacity`}],tn=[{key:`color`,label:`text color`,alwaysShow:!0},{key:`background-color`,label:`background`,alwaysShow:!0},{key:`border-color`,label:`border color`},{key:`fill`,label:`fill`},{key:`stroke`,label:`stroke`}],nn=[{value:`ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`,label:`sans`},{value:`ui-serif, Georgia, Cambria, "Times New Roman", Times, serif`,label:`serif`},{value:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace`,label:`mono`},{value:`system-ui, sans-serif`,label:`system`},{value:`serif`,label:`serif`},{value:`monospace`,label:`mono`}],rn=e=>{let t=e.trim();return nn.some(e=>e.value===t)?nn:[{value:t,label:`current`},...nn]},an={key:`font-family`,label:`font family`},on=[{key:`display`,label:`display`,options:[{value:`block`,label:`block`},{value:`flex`,label:`flex`},{value:`inline-block`,label:`inline-block`},{value:`inline`,label:`inline`},{value:`grid`,label:`grid`},{value:`none`,label:`none`}]},{key:`text-align`,label:`text align`,options:[{value:`left`,label:`left`},{value:`center`,label:`center`},{value:`right`,label:`right`},{value:`justify`,label:`justify`}]},{key:`font-style`,label:`font style`,options:[{value:`normal`,label:`normal`},{value:`italic`,label:`italic`}]},{key:`text-transform`,label:`text transform`,options:[{value:`none`,label:`none`},{value:`uppercase`,label:`uppercase`},{value:`lowercase`,label:`lowercase`},{value:`capitalize`,label:`capitalize`}]},{key:`white-space`,label:`white space`,options:[{value:`normal`,label:`normal`},{value:`nowrap`,label:`nowrap`},{value:`pre`,label:`pre`},{value:`pre-wrap`,label:`pre-wrap`},{value:`pre-line`,label:`pre-line`},{value:`break-spaces`,label:`break-spaces`}]},{key:`word-break`,label:`word break`,options:[{value:`normal`,label:`normal`},{value:`break-all`,label:`break-all`},{value:`keep-all`,label:`keep-all`}]},{key:`overflow-wrap`,label:`wrap`,options:[{value:`normal`,label:`normal`},{value:`break-word`,label:`break-word`},{value:`anywhere`,label:`anywhere`}]},{key:`font-variant-numeric`,label:`number style`,options:[{value:`normal`,label:`normal`},{value:`tabular-nums`,label:`tabular`},{value:`proportional-nums`,label:`proportional`},{value:`lining-nums`,label:`lining`},{value:`oldstyle-nums`,label:`oldstyle`},{value:`slashed-zero`,label:`slashed zero`}]},{key:`text-decoration-line`,label:`decoration`,options:[{value:`none`,label:`none`},{value:`underline`,label:`underline`},{value:`line-through`,label:`strike`}]},{key:`border-style`,label:`border style`,options:[{value:`none`,label:`none`},{value:`solid`,label:`solid`},{value:`dashed`,label:`dashed`},{value:`dotted`,label:`dotted`}]},{key:`visibility`,label:`visibility`,options:[{value:`visible`,label:`visible`},{value:`hidden`,label:`hidden`}]},{key:`align-items`,label:`align items`,options:[{value:`stretch`,label:`stretch`},{value:`flex-start`,label:`start`},{value:`center`,label:`center`},{value:`flex-end`,label:`end`},{value:`baseline`,label:`baseline`}]},{key:`justify-content`,label:`justify content`,options:[{value:`flex-start`,label:`start`},{value:`center`,label:`center`},{value:`flex-end`,label:`end`},{value:`space-between`,label:`between`},{value:`space-around`,label:`around`},{value:`space-evenly`,label:`evenly`}]},{key:`font-weight`,label:`font weight`,options:[{value:`100`,label:`thin`},{value:`200`,label:`extra-light`},{value:`300`,label:`light`},{value:`400`,label:`normal`},{value:`500`,label:`medium`},{value:`600`,label:`semibold`},{value:`700`,label:`bold`},{value:`800`,label:`extra-bold`},{value:`900`,label:`black`}]}],sn=[...Rt,`color`,`background-color`,`border-color`,`fill`,`stroke`,`font-family`,`display`,`text-align`,`font-style`,`text-transform`,`white-space`,`word-break`,`overflow-wrap`,`font-variant-numeric`,`text-decoration-line`,`border-style`,`visibility`,`align-items`,`justify-content`,`font-weight`],cn=e=>Number.isInteger(e)?e:Math.round(e*100)/100,ln=e=>Number.isInteger(e)?String(e):e.toFixed(2).replace(/\.?0+$/,``),un=e=>Number.isFinite(e)?ln(cn(e)):String(e),dn=e=>Math.round(e),fn=(e,t)=>{if(e.kind===`color`||e.kind===`enum`)return typeof t==`string`?t:e.value;let n=typeof t==`number`?t:e.value;return e.key===`opacity`&&e.unit===`%`?ln(cn(n/100)):`${ln(cn(n))}${e.unit}`},pn={slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`}},mn={p:`padding`,px:`padding-left,padding-right`,py:`padding-top,padding-bottom`,pt:`padding-top`,pr:`padding-right`,pb:`padding-bottom`,pl:`padding-left`,ps:`padding-left`,pe:`padding-right`,m:`margin`,mx:`margin-left,margin-right`,my:`margin-top,margin-bottom`,mt:`margin-top`,mr:`margin-right`,mb:`margin-bottom`,ml:`margin-left`,ms:`margin-left`,me:`margin-right`,gap:`gap`,"gap-x":`column-gap`,"gap-y":`row-gap`,text:`font-size`,leading:`line-height`,tracking:`letter-spacing`,rounded:`border-radius`,"rounded-t":`border-top-left-radius,border-top-right-radius`,"rounded-b":`border-bottom-left-radius,border-bottom-right-radius`,"rounded-l":`border-top-left-radius,border-bottom-left-radius`,"rounded-r":`border-top-right-radius,border-bottom-right-radius`,"rounded-tl":`border-top-left-radius`,"rounded-tr":`border-top-right-radius`,"rounded-bl":`border-bottom-left-radius`,"rounded-br":`border-bottom-right-radius`,border:`border-width`,"border-t":`border-top-width`,"border-r":`border-right-width`,"border-b":`border-bottom-width`,"border-l":`border-left-width`,w:`width`,h:`height`,size:`width,height`,"max-w":`max-width`,"max-h":`max-height`,"min-w":`min-width`,"min-h":`min-height`,opacity:`opacity`,inset:`top,right,bottom,left`,"inset-x":`left,right`,"inset-y":`top,bottom`,top:`top`,right:`right`,bottom:`bottom`,left:`left`,z:`z-index`,items:`align-items`,justify:`justify-content`,font:`font-weight`,whitespace:`white-space`},hn={"font-size":[`font-size`,`font size`,`text-size`,`text size`],color:[`color`,`text-color`,`text color`,`text-colour`,`text colour`,`foreground`,`fg`],"background-color":[`background`,`background-color`,`background color`,`bg`,`bg-color`,`bg color`],"border-color":[`border-color`,`border color`],fill:[`fill`,`fill-color`,`fill color`],stroke:[`stroke`,`stroke-color`,`stroke color`],"font-family":[`font`,`font-sans`,`font-serif`,`font-mono`,`family`,`sans`,`serif`,`mono`],"font-style":[`italic`,`not-italic`],"text-align":[`text-left`,`text-center`,`text-right`,`text-justify`],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-decoration-line":[`underline`,`line-through`,`no-underline`],"white-space":[`whitespace`,`whitespace-normal`,`whitespace-nowrap`,`whitespace-pre`],"word-break":[`break-normal`,`break-all`,`break-keep`],"overflow-wrap":[`break-words`,`break-anywhere`],"font-variant-numeric":[`tabular-nums`,`proportional-nums`,`lining-nums`,`oldstyle-nums`],"border-style":[`border-solid`,`border-dashed`,`border-dotted`,`border-none`]},gn=(()=>{let e={};for(let[t,n]of Object.entries(mn))n!==void 0&&(e[n]??=new Set).add(t);let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=Array.from(r));for(let[e,n]of Object.entries(hn)){let r=new Set([...t[e]??[],...n]);t[e]=Array.from(r)}return t})(),_n={text:`color`,bg:`background-color`,border:`border-color`,"border-x":`border-color`,"border-y":`border-color`,"border-t":`border-color`,"border-r":`border-color`,"border-b":`border-color`,"border-l":`border-color`,"border-s":`border-color`,"border-e":`border-color`,fill:`fill`,stroke:`stroke`},vn=e=>mn[e]!==void 0||_n[e]!==void 0,Y=e=>{let t=0,n=-1;for(let r=0;r<e.length;r++){let i=e[r];i===`[`?t++:i===`]`?t--:i===`:`&&t===0&&(n=r)}let r=n>=0?e.slice(n+1):e;return r.startsWith(`!`)?r.slice(1):r},X=e=>{let t=Y(e);if(!t)return null;let n=t.indexOf(`[`);if(n>0)return t.slice(0,n).replace(/-$/,``)||null;let r=t.split(`-`).filter(Boolean);if(r.length===0)return null;for(let e=r.length;e>=1;e--){let t=r.slice(0,e).join(`-`);if(vn(t))return t}return r[0]},yn=/-(red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose|slate|gray|zinc|neutral|stone|black|white|transparent|current|inherit)\b/,bn=(e,t)=>e!==`text`&&e!==`bg`&&e!==`border`&&!e.startsWith(`border-`)?!1:yn.test(t),xn=new Set(`color.red.orange.amber.yellow.lime.green.emerald.teal.cyan.sky.blue.indigo.violet.purple.fuchsia.pink.rose.slate.gray.grey.zinc.neutral.stone.black.white.transparent.current.currentcolor.inherit.primary.secondary.accent.muted.foreground.background.destructive.success.warning.error.info.card.popover.input.ring`.split(`.`)),Sn=new Set([`xs`,`sm`,`base`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`9xl`]),Cn=/^(#|rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color:|color\(|var\(--.*color)/,wn=/^(-?\d|length:|size:)/,Z=e=>e.trim().toLowerCase().replace(/\s+/g,`-`).replace(/([a-z])(\d)/g,`$1-$2`),Tn=e=>Cn.test(e)&&!wn.test(e),En=(e,t)=>{if(e===t)return``;let n=`${t}-`;return e.startsWith(n)?e.slice(n.length):null},Dn=e=>{let t=Y(Z(e)),n=X(t);if(!n)return null;let r=_n[n];if(!r)return null;let i=t.indexOf(`[`);if(i>=0)return Tn(t.slice(i+1).replace(/\]$/,``))?r:null;let a=En(t,n);if(a===null)return null;if(n===`bg`&&a===``||(n===`fill`||n===`stroke`)&&a===``)return r;let o=a.split(`-`)[0];return n===`text`&&Sn.has(o)?null:xn.has(o)?r:null},On={black:`#000000`,white:`#ffffff`,transparent:r},kn=e=>{let t=Y(Z(e)),n=X(t);if(!n||_n[n]===void 0||t.includes(`[`))return null;let r=En(t,n);if(!r)return null;let i=On[r];if(i)return i;let a=r.lastIndexOf(`-`);if(a<0)return null;let o=r.slice(0,a),s=o===`grey`?`gray`:o,c=Number.parseInt(r.slice(a+1),10);return pn[s]?.[c]??null},An=/^-?\d/,jn=(e,t)=>{if(t===``||t.startsWith(`[`)||An.test(t))return!0;let n=t.split(`-`)[0];return e===`text`?Sn.has(n):e===`font`||e===`border`||e.startsWith(`border-`)?!1:(e===`rounded`||e.startsWith(`rounded-`),!0)},Mn={"font-sans":{property:`font-family`,value:`ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`},"font-serif":{property:`font-family`,value:`ui-serif, Georgia, Cambria, "Times New Roman", Times, serif`},"font-mono":{property:`font-family`,value:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace`},"font-thin":{property:`font-weight`,value:`100`},"font-extralight":{property:`font-weight`,value:`200`},"font-light":{property:`font-weight`,value:`300`},"font-normal":{property:`font-weight`,value:`400`},"font-medium":{property:`font-weight`,value:`500`},"font-semibold":{property:`font-weight`,value:`600`},"font-bold":{property:`font-weight`,value:`700`},"font-extrabold":{property:`font-weight`,value:`800`},"font-black":{property:`font-weight`,value:`900`},"text-left":{property:`text-align`,value:`left`},"text-center":{property:`text-align`,value:`center`},"text-right":{property:`text-align`,value:`right`},"text-justify":{property:`text-align`,value:`justify`},italic:{property:`font-style`,value:`italic`},"not-italic":{property:`font-style`,value:`normal`},uppercase:{property:`text-transform`,value:`uppercase`},lowercase:{property:`text-transform`,value:`lowercase`},capitalize:{property:`text-transform`,value:`capitalize`},"normal-case":{property:`text-transform`,value:`none`},underline:{property:`text-decoration-line`,value:`underline`},"line-through":{property:`text-decoration-line`,value:`line-through`},"no-underline":{property:`text-decoration-line`,value:`none`},"whitespace-normal":{property:`white-space`,value:`normal`},"whitespace-nowrap":{property:`white-space`,value:`nowrap`},"whitespace-pre":{property:`white-space`,value:`pre`},"whitespace-pre-line":{property:`white-space`,value:`pre-line`},"whitespace-pre-wrap":{property:`white-space`,value:`pre-wrap`},"whitespace-break-spaces":{property:`white-space`,value:`break-spaces`},"break-normal":{property:`word-break`,value:`normal`},"break-all":{property:`word-break`,value:`break-all`},"break-keep":{property:`word-break`,value:`keep-all`},"break-words":{property:`overflow-wrap`,value:`break-word`},"break-anywhere":{property:`overflow-wrap`,value:`anywhere`},"tabular-nums":{property:`font-variant-numeric`,value:`tabular-nums`},"proportional-nums":{property:`font-variant-numeric`,value:`proportional-nums`},"lining-nums":{property:`font-variant-numeric`,value:`lining-nums`},"oldstyle-nums":{property:`font-variant-numeric`,value:`oldstyle-nums`},"slashed-zero":{property:`font-variant-numeric`,value:`slashed-zero`},"border-solid":{property:`border-style`,value:`solid`},"border-dashed":{property:`border-style`,value:`dashed`},"border-dotted":{property:`border-style`,value:`dotted`},"border-none":{property:`border-style`,value:`none`}},Nn=e=>{let t=Z(e);if(!t)return[];let n=$(t);if(n)return[n.property];let r=Dn(t);return r?[r]:[]},Pn=e=>{let t=Z(e);if(!t)return[];let n=X(t);if(!n)return[];let r=En(Y(t),n);if(r===null||!jn(n,r))return[];let i=Q(n);return i?[i]:[]},Fn=e=>{let t=e.getAttribute(`class`);if(!t)return new Set;let n=t.split(/\s+/).filter(Boolean),r=new Set;for(let e of n){let t=X(e);if(!t||bn(t,e))continue;let n=$(e);if(n){r.add(n.property);continue}let i=Q(t);i&&r.add(i)}return r},In=e=>gn[e]??[],Q=e=>{let t=mn[e];return t===void 0?null:t},$=e=>{let t=Mn[Y(e)];return t===void 0?null:t},Ln=`react-grab-toolbar-state`,Rn=()=>{try{let t=localStorage.getItem(Ln);if(!t)return null;let r=JSON.parse(t);if(typeof r!=`object`||!r)return null;let i=r,a=typeof i.collapsed==`boolean`?i.collapsed:!1;return{edge:i.edge===`top`||i.edge===`bottom`||i.edge===`left`||i.edge===`right`?i.edge:`bottom`,ratio:typeof i.ratio==`number`?i.ratio:n,collapsed:a,enabled:!a,defaultAction:typeof i.defaultAction==`string`?i.defaultAction:e}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},zn=e=>{try{localStorage.setItem(Ln,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}},Bn=e=>{let[t,n]=S(!1);return D(()=>{let t=t=>n(e(t)),r=()=>n(!1);window.addEventListener(`keydown`,t,{capture:!0}),window.addEventListener(`keyup`,t,{capture:!0}),window.addEventListener(`blur`,r),O(()=>{window.removeEventListener(`keydown`,t,{capture:!0}),window.removeEventListener(`keyup`,t,{capture:!0}),window.removeEventListener(`blur`,r)})}),t},Vn=e=>e.key===`Enter`,Hn=e=>e.metaKey||e.ctrlKey,Un=(e,t,n={})=>{if(!t.key)return null;if(Vn(t))return e.find(e=>e.shortcut===`Enter`)??null;if(t.repeat)return null;let r=t.key.toLowerCase();return Hn(t)?n.includeModifierShortcuts===!0?e.find(e=>e.shortcut!==void 0&&e.shortcut!==`Enter`&&e.shortcutModifier!==!1&&r===e.shortcut.toLowerCase())??null:null:e.find(e=>e.shortcut!==void 0&&e.shortcutModifier===!1&&r===e.shortcut.toLowerCase())??null},Wn=()=>{let e=!1;return{arm:()=>{e=!0},clear:()=>{e=!1},consume:()=>e?(e=!1,!0):!1}};export{$e as $,Rt as A,vt as B,Gt as C,ie as Ct,Ht as D,E as Dt,Qt as E,De as Et,Lt as F,Xe as G,ht as H,It as I,Ke as J,Ze as K,Pt as L,Wt as M,Ut as N,en as O,se as Ot,rn as P,U as Q,Nt as R,on as S,Ee as St,Vt as T,D as Tt,pt as U,mt as V,ut as W,Ve as X,nt as Y,We as Z,dn as _,re as _t,zn as a,u as at,sn as b,k as bt,Dn as c,Ne as ct,Nn as d,T as dt,et,Z as f,Se as ft,fn as g,C as gt,un as h,w as ht,Rn as i,c as it,Kt as j,Bt as k,kn as l,je as lt,Q as m,te as mt,Un as n,Ge as nt,Fn as o,ke as ot,$ as p,oe as pt,Ye as q,Bn as r,tt as rt,In as s,Ae as st,Wn as t,Qe as tt,Pn as u,Me as ut,$t as v,x as vt,an as w,O as wt,tn as x,be as xt,zt as y,S as yt,bt as z};
|
|
9
|
+
import{H as e,I as t,Pt as n,nt as r}from"./freeze-updates-Dldphza-.js";const i={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return a(this.context.count)},getNextContextId(){return a(this.context.count++)}};function a(e){let t=String(e),n=t.length-1;return i.context.id+(n?String.fromCharCode(96+n):``)+t}function o(e){i.context=e}const s=(e,t)=>e===t,c=Symbol(`solid-proxy`),l=typeof Proxy==`function`,u=Symbol(`solid-track`),d={equals:s};let f=pe;const p={owned:null,cleanups:null,context:null,owner:null},m={};var h=null;let g=null,_=null,v=null,y=null,b=0;function x(e,t){let n=_,r=h,i=e.length===0,a=t===void 0?r:t,o=i?p:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>E(()=>R(o)));h=o,_=null;try{return I(s,!0)}finally{_=n,h=r}}function S(e,t){t=t?Object.assign({},d,t):d;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[le.bind(n),e=>(typeof e==`function`&&(e=g&&g.running&&g.sources.has(n)?e(n.tValue):e(n.value)),ue(n,e))]}function ee(e,t,n){N(P(e,t,!0,1))}function C(e,t,n){N(P(e,t,!1,1))}function te(e,t,n){f=me;let r=P(e,t,!1,1),i=M&&se(M);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),y?y.push(r):N(r)}function w(e,t,n){n=n?Object.assign({},d,n):d;let r=P(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,N(r),le.bind(r)}function ne(e){return e&&typeof e==`object`&&`then`in e}function re(e,t,n){let r,a,o;typeof t==`function`?(r=e,a=t,o=n||{}):(r=!0,a=e,o=t||{});let s=null,c=m,l=null,u=!1,d=!1,f=`initialValue`in o,p=typeof r==`function`&&w(r),v=new Set,[y,b]=(o.storage||S)(o.initialValue),[x,C]=S(void 0),[te,re]=S(void 0,{equals:!1}),[T,ie]=S(f?`ready`:`unresolved`);i.context&&(l=i.getNextContextId(),o.ssrLoadFrom===`initial`?c=o.initialValue:i.load&&i.has(l)&&(c=i.load(l)));function D(e,t,n,r){return s===e&&(s=null,r!==void 0&&(f=!0),(e===c||t===c)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(r,{value:t})),c=m,g&&e&&u?(g.promises.delete(e),u=!1,I(()=>{g.running=!0,O(t,n)},!1)):O(t,n)),t}function O(e,t){I(()=>{t===void 0&&b(()=>e),ie(t===void 0?f?`ready`:`unresolved`:`errored`),C(t);for(let e of v.keys())e.decrement();v.clear()},!1)}function k(){let e=M&&se(M),t=y(),n=x();if(n!==void 0&&!s)throw n;return _&&!_.user&&e&&ee(()=>{te(),s&&(e.resolved&&g&&u?g.promises.add(s):v.has(e)||(e.increment(),v.add(e)))}),t}function A(e=!0){if(e!==!1&&d)return;d=!1;let t=p?p():r;if(u=g&&g.running,t==null||t===!1){D(s,E(y));return}g&&s&&g.promises.delete(s);let n,i=c===m?E(()=>{try{return a(t,{value:y(),refetching:e})}catch(e){n=e}}):c;if(n!==void 0){D(s,void 0,z(n),t);return}else if(!ne(i))return D(s,i,void 0,t),i;return s=i,`v`in i?(i.s===1?D(s,i.v,void 0,t):D(s,void 0,z(i.v),t),i):(d=!0,queueMicrotask(()=>d=!1),I(()=>{ie(f?`refreshing`:`pending`),re()},!1),i.then(e=>D(i,e,void 0,t),e=>D(i,void 0,z(e),t)))}Object.defineProperties(k,{state:{get:()=>T()},error:{get:()=>x()},loading:{get(){let e=T();return e===`pending`||e===`refreshing`}},latest:{get(){if(!f)return k();let e=x();if(e&&!s)throw e;return y()}}});let j=h;return p?ee(()=>(j=h,A(!1))):A(!1),[k,{refetch:e=>ae(j,()=>A(e)),mutate:b}]}function T(e){return I(e,!1)}function E(e){if(_===null)return e();let t=_;_=null;try{return e()}finally{_=t}}function ie(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=E(()=>t(o,i,n));return i=o,s}}function D(e){te(()=>E(e))}function O(e){return h===null||(h.cleanups===null?h.cleanups=[e]:h.cleanups.push(e)),e}function k(){return _}function ae(e,t){let n=h,r=_;h=e,_=null;try{return I(t,!0)}catch(e){B(e)}finally{h=n,_=r}}const[A,j]=S(!1);function oe(e,t){let n=Symbol(`context`);return{id:n,Provider:ve(n),defaultValue:e}}function se(e){let t;return h&&h.context&&(t=h.context[e.id])!==void 0?t:e.defaultValue}function ce(e){let t=w(e),n=w(()=>_e(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}let M;function le(){let e=g&&g.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===1)N(this);else{let e=v;v=null,I(()=>L(this),!1),v=e}if(_){let e=this.observers?this.observers.length:0;_.sources?(_.sources.push(this),_.sourceSlots.push(e)):(_.sources=[this],_.sourceSlots=[e]),this.observers?(this.observers.push(_),this.observerSlots.push(_.sources.length-1)):(this.observers=[_],this.observerSlots=[_.sources.length-1])}return e&&g.sources.has(this)?this.tValue:this.value}function ue(e,t,n){let r=g&&g.running&&g.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(g){let r=g.running;(r||!n&&g.sources.has(e))&&(g.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&I(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=g&&g.running;r&&g.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?v.push(n):y.push(n),n.observers&&he(n)),r?n.tState=1:n.state=1)}if(v.length>1e6)throw v=[],Error()},!1)}return t}function N(e){if(!e.fn)return;R(e);let t=b;de(e,g&&g.running&&g.sources.has(e)?e.tValue:e.value,t),g&&!g.running&&g.sources.has(e)&&queueMicrotask(()=>{I(()=>{g&&(g.running=!0),_=h=e,de(e,e.tValue,t),_=h=null},!1)})}function de(e,t,n){let r,i=h,a=_;_=h=e;try{r=e.fn(t)}catch(t){return e.pure&&(g&&g.running?(e.tState=1,e.tOwned&&e.tOwned.forEach(R),e.tOwned=void 0):(e.state=1,e.owned&&e.owned.forEach(R),e.owned=null)),e.updatedAt=n+1,B(t)}finally{_=a,h=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?ue(e,r,!0):g&&g.running&&e.pure?(g.sources.has(e)||(e.value=r),g.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function P(e,t,n,r=1,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:h,context:h?h.context:null,pure:n};return g&&g.running&&(a.state=0,a.tState=r),h===null||h!==p&&(g&&g.running&&h.pure?h.tOwned?h.tOwned.push(a):h.tOwned=[a]:h.owned?h.owned.push(a):h.owned=[a]),a}function F(e){let t=g&&g.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===2)return L(e);if(e.suspense&&E(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<b);){if(t&&g.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(g.disposed.has(t))return}if((t?e.tState:e.state)===1)N(e);else if((t?e.tState:e.state)===2){let t=v;v=null,I(()=>L(e,n[0]),!1),v=t}}}function I(e,t){if(v)return e();let n=!1;t||(v=[]),y?n=!0:y=[],b++;try{let t=e();return fe(n),t}catch(e){n||(y=null),v=null,B(e)}}function fe(e){if(v&&=(pe(v),null),e)return;let t;if(g){if(!g.promises.size&&!g.queue.size){let e=g.sources,n=g.disposed;y.push.apply(y,g.effects),t=g.resolve;for(let e of y)`tState`in e&&(e.state=e.tState),delete e.tState;g=null,I(()=>{for(let e of n)R(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)R(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}j(!1)},!1)}else if(g.running){g.running=!1,g.effects.push.apply(g.effects,y),y=null,j(!0);return}}let n=y;y=null,n.length&&I(()=>f(n),!1),t&&t()}function pe(e){for(let t=0;t<e.length;t++)F(e[t])}function me(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:F(r)}if(i.context){if(i.count){i.effects||=[],i.effects.push(...e.slice(0,n));return}o()}for(i.effects&&(i.done||!i.count)&&(e=[...i.effects,...e],n+=i.effects.length,delete i.effects),t=0;t<n;t++)F(e[t])}function L(e,t){let n=g&&g.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===1?i!==t&&(!i.updatedAt||i.updatedAt<b)&&F(i):e===2&&L(i,t)}}}function he(e){let t=g&&g.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=2:r.state=2,r.pure?v.push(r):y.push(r),r.observers&&he(r))}}function R(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)R(e.tOwned[t]);delete e.tOwned}if(g&&g.running&&e.pure)ge(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)R(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}g&&g.running?e.tState=0:e.state=0}function ge(e,t){if(t||(e.tState=0,g.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)ge(e.owned[t])}function z(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function B(e,t=h){throw z(e)}function _e(e){if(typeof e==`function`&&!e.length)return _e(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=_e(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function ve(e,t){return function(t){let n;return C(()=>n=E(()=>(h.context={...h.context,[e]:t.value},ce(()=>t.children))),void 0),n}}const ye=Symbol(`fallback`);function V(e){for(let t=0;t<e.length;t++)e[t]()}function be(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return O(()=>V(a)),()=>{let c=e()||[],l=c.length,d,f;return c[u],E(()=>{let e,t,u,m,h,g,_,v,y;if(l===0)o!==0&&(V(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[ye],i[0]=x(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),f=0;f<l;f++)r[f]=c[f],i[f]=x(p);o=l}else{for(u=Array(l),m=Array(l),s&&(h=Array(l)),g=0,_=Math.min(o,l);g<_&&r[g]===c[g];g++);for(_=o-1,v=l-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)u[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),f=v;f>=g;f--)y=c[f],d=e.get(y),t[f]=d===void 0?-1:d,e.set(y,f);for(d=g;d<=_;d++)y=r[d],f=e.get(y),f!==void 0&&f!==-1?(u[f]=i[d],m[f]=a[d],s&&(h[f]=s[d]),f=t[f],e.set(y,f)):a[d]();for(f=g;f<l;f++)f in u?(i[f]=u[f],a[f]=m[f],s&&(s[f]=h[f],s[f](f))):i[f]=x(p);i=i.slice(0,o=l),r=c.slice(0)}return i});function p(e){if(a[f]=e,s){let[e,n]=S(f);return s[f]=n,t(c[f],e)}return t(c[f])}}}function xe(e,t,n={}){let r=[],i=[],a=[],o=[],s=0,c;return O(()=>V(a)),()=>{let l=e()||[],d=l.length;return l[u],E(()=>{if(d===0)return s!==0&&(V(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[ye],i[0]=x(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===ye&&(a[0](),a=[],r=[],i=[],s=0),c=0;c<d;c++)c<r.length&&r[c]!==l[c]?o[c](()=>l[c]):c>=r.length&&(i[c]=x(f));for(;c<r.length;c++)a[c]();return s=o.length=a.length=d,r=l.slice(0),i=i.slice(0,s)});function f(e){a[c]=e;let[n,r]=S(l[c]);return o[c]=r,t(n,c)}}}function Se(e,t){return E(()=>e(t||{}))}function H(){return!0}const Ce={get(e,t,n){return t===c?n:e.get(t)},has(e,t){return t===c?!0:e.has(t)},set:H,deleteProperty:H,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:H,deleteProperty:H}},ownKeys(e){return e.keys()}};function we(e){return(e=typeof e==`function`?e():e)?e:{}}function Te(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function Ee(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&c in r,e[n]=typeof r==`function`?(t=!0,w(r)):r}if(l&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=we(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in we(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(we(e[n])));return[...new Set(t)]}},Ce);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:Te.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function De(e,...t){let n=t.length;if(l&&c in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},Ce));return i.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return r.includes(t)?!1:t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},Ce)),i}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}const Oe=e=>`Stale read from <${e}>.`;function ke(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return w(be(()=>e.each,e.children,t||void 0))}function Ae(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return w(xe(()=>e.each,e.children,t||void 0))}function je(e){let t=e.keyed,n=w(()=>e.when,void 0,void 0),r=t?n:w(n,void 0,{equals:(e,t)=>!e==!t});return w(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?E(()=>a(t?i:()=>{if(!E(r))throw Oe(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function Me(e){let t=ce(()=>e.children),n=w(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;e<n.length;e++){let t=e,i=n[e],a=r,o=w(()=>a()?void 0:i.when,void 0,void 0),s=i.keyed?o:w(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return w(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?E(()=>o(a.keyed?i():()=>{if(E(n)()?.[0]!==r)throw Oe(`Match`);return i()})):o},void 0,void 0)}function Ne(e){return e}const Pe=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),Fe=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),Ie=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),Le=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}});function Re(e,t){let n=Le[e];return typeof n==`object`?n[t]?n.$:void 0:n}const ze=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),Be={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},Ve=e=>w(()=>e());function He(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}const Ue=`_$DX_DELEGATE`;function We(e,t,n,r={}){let i;return x(r=>{i=r,t===document?e():nt(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function Ge(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>E(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Ke(e,t=window.document){let n=t[Ue]||(t[Ue]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,st))}}function U(e,t,n){W(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function qe(e,t,n,r){W(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Je(e,t,n){W(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function Ye(e,t){W(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function Xe(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function Ze(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(at(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(at(e,i,!0),n[i]=o)}return n}function Qe(e,t,n){if(!t)return n?U(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function $e(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function et(e,t={},n,r){let i={};return r||C(()=>i.children=G(e,t.children,i.children)),C(()=>typeof t.ref==`function`&&tt(t.ref,e)),C(()=>rt(e,t,n,!0,i,!0)),i}function tt(e,t,n){return E(()=>e(t,n))}function nt(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return G(e,t,r,n);C(r=>G(e,t(),r,n),r)}function rt(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=ot(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||G(e,t.children);continue}let s=t[o];i[o]=ot(e,o,s,i[o],n,a,t)}}function W(e){return!!i.context&&!i.done&&(!e||e.isConnected)}function it(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function at(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function ot(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return Qe(e,n,r);if(t===`classList`)return Ze(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=ze.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(Xe(e,i,n,a),a&&Ke([i]))}else if(t.slice(0,5)===`attr:`)U(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)Je(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=Fe.has(t))||!i&&((u=Re(t,e.tagName))||(c=Pe.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(W(e))return n;t===`class`||t===`className`?Ye(e,n):s&&!c&&!l?e[it(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&Be[t.split(`:`)[0]];r?qe(e,r,t,n):U(e,Ie[t]||t,n)}return n}function st(e){if(i.registry&&i.events&&i.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,a=e.currentTarget,o=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),s=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},c=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),i.registry&&!i.done&&(i.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();o(n[0]);for(let e=0;e<n.length-2&&(t=n[e],s());e++){if(t._$host){t=t._$host,c();break}if(t.parentNode===a)break}}else c();o(r)}function G(e,t,n,r,i){let a=W(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=K(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=K(e,n,r)}else if(o===`function`)return C(()=>{let i=t();for(;typeof i==`function`;)i=i();n=G(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(ct(o,t,n,i))return C(()=>n=G(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=K(e,n,r),s)return n}else c?n.length===0?lt(e,o,r):He(e,n,o):(n&&K(e),lt(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=K(e,n,r,t);K(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function ct(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=ct(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=ct(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function lt(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function K(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}const ut=e=>!!(e?.isConnected??e?.ownerDocument?.contains(e)),dt=[`input`,`textarea`,`select`,`searchbox`,`slider`,`spinbutton`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`textbox`,`combobox`],ft=e=>{if(e.composed){let t=e.composedPath()[0];if(t instanceof HTMLElement)return t}else if(e.target instanceof HTMLElement)return e.target},pt=e=>{if(document.designMode===`on`)return!0;let n=ft(e);if(!n)return!1;if(n.isContentEditable)return!0;let r=t(n);return dt.some(e=>e===r||e===n.role)},mt=e=>{let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){let e=t.selectionStart??0;return(t.selectionEnd??0)-e>0}return!1},ht=()=>{let e=window.getSelection();return e?e.toString().length>0:!1},gt=/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*([\d.]+%?))?\s*\)$/,q=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,`0`),_t=(e,t,n,r=1)=>{let i=q(e),a=q(t),o=q(n);return r>=1?`#${i}${a}${o}`:`#${i}${a}${o}${q(r*255)}`},vt=e=>{if(!e.startsWith(`#`))return null;let t=e.slice(1);if(t.length!==6&&t.length!==8)return null;let n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16),a=t.length===8?parseInt(t.slice(6,8),16)/255:1;return!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)?null:{red:n,green:r,blue:i,alpha:a}},yt=e=>{let t=e.match(gt);if(!t)return null;let n=1;if(t[4]!==void 0){let e=t[4];n=e.endsWith(`%`)?Number(e.slice(0,-1))/100:Number(e)}return _t(Number(t[1]),Number(t[2]),Number(t[3]),n)},bt=e=>{let t=e.match(gt);return!t||t[4]===void 0?!1:(t[4].endsWith(`%`)?Number(t[4].slice(0,-1))/100:Number(t[4]))===0},xt=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,St=e=>{let t=e.match(xt);if(!t)return null;let n=t[1];return n.length===3?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`:n.length===4?`#${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`:`#${n}`},Ct=`rgba(0, 0, 0, 0)`,wt=/^oklch\(\s*([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+%?)\s+([+-]?\d*\.?\d+)(deg|grad|rad|turn)?(?:\s*\/\s*([+-]?\d*\.?\d+%?))?\s*\)$/i,Tt=180/Math.PI,Et=(e,t)=>e.endsWith(`%`)?Number(e.slice(0,-1))/100*t:Number(e),Dt=(e,t)=>{let n=Number(e);return t===`grad`?n*.9:t===`rad`?n*Tt:t===`turn`?n*360:n},Ot=e=>{let t=Math.max(0,Math.min(1,e));return(t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055)*255},kt=e=>{let t=e.match(wt);if(!t)return null;let n=Et(t[1],1),r=Et(t[2],.4),i=Dt(t[3],t[4])*Math.PI/180,a=t[5]===void 0?1:Et(t[5],1);if(![n,r,i,a].every(Number.isFinite))return null;let o=r*Math.cos(i),s=r*Math.sin(i),c=n+.3963377774*o+.2158037573*s,l=n-.1055613458*o-.0638541728*s,u=n-.0894841775*o-1.291485548*s,d=c**3,f=l**3,p=u**3,m=4.0767416621*d-3.3077115913*f+.2309699292*p,h=-1.2684380046*d+2.6097574011*f-.3413193965*p,g=-.0041960863*d-.7034186147*f+1.707614701*p;return _t(Ot(m),Ot(h),Ot(g),Math.max(0,Math.min(1,a)))};let At=null;const jt=()=>At||(typeof document>`u`?null:(At=document.createElement(`canvas`).getContext(`2d`,{willReadFrequently:!0}),At)),Mt=(e,t)=>{e.clearRect(0,0,1,1),e.fillStyle=t,e.fillRect(0,0,1,1);let n=e.getImageData(0,0,1,1).data;return n[3]===0?r:_t(n[0],n[1],n[2],n[3]/255)},Nt=e=>{let t=e.trim();if(!t)return null;if(t.toLowerCase()===`transparent`)return r;let n=St(t);if(n)return n;let i=kt(t);if(i)return i;let a=jt();if(!a)return null;a.fillStyle=Ct,a.fillStyle=t;let o=a.fillStyle;return typeof o==`string`?o.toLowerCase()===Ct?t.toLowerCase().replace(/\s+/g,``)===`rgba(0,0,0,0)`?r:null:o.startsWith(`#`)&&o.length===7?o:o.startsWith(`rgb`)?yt(o):Mt(a,t):null},Pt=(e,t,n)=>Math.max(t,Math.min(e,n));let J=null;const Ft=()=>{if(typeof navigator>`u`||!(`userAgentData`in navigator))return null;let e=navigator.userAgentData;if(typeof e!=`object`||!e||!(`platform`in e))return null;let t=e.platform;return typeof t==`string`?t:null},It=()=>{if(J===null){if(typeof navigator>`u`)return J=!1,J;let e=navigator.platform??Ft()??navigator.userAgent;J=/Mac|iPhone|iPad|iPod/i.test(e)}return J},Lt=(e,t)=>{try{return e.composedPath().some(e=>e instanceof HTMLElement&&e.hasAttribute(t))}catch{return!1}},Rt=`padding-top.padding-right.padding-bottom.padding-left.margin-top.margin-right.margin-bottom.margin-left.gap.row-gap.column-gap.font-size.line-height.letter-spacing.border-radius.border-top-left-radius.border-top-right-radius.border-bottom-right-radius.border-bottom-left-radius.border-width.border-top-width.border-right-width.border-bottom-width.border-left-width.opacity.width.height.min-width.min-height.max-width.max-height.top.right.bottom.left.z-index`.split(`.`),zt=.5,Bt=384,Vt=-128,Ht=-512,Ut=-9999,Wt=9999,Gt=new Set([`letter-spacing`,`gap`,`row-gap`,`column-gap`]),Kt=new Set([`z-index`]),qt=[{key:`padding`,label:`padding`,longhands:[`padding-top`,`padding-right`,`padding-bottom`,`padding-left`]},{key:`padding-top,padding-bottom`,label:`padding-y`,longhands:[`padding-top`,`padding-bottom`]},{key:`padding-left,padding-right`,label:`padding-x`,longhands:[`padding-left`,`padding-right`]},{key:`padding-top`,label:`padding top`,longhands:[`padding-top`]},{key:`padding-right`,label:`padding right`,longhands:[`padding-right`]},{key:`padding-bottom`,label:`padding bottom`,longhands:[`padding-bottom`]},{key:`padding-left`,label:`padding left`,longhands:[`padding-left`]}],Jt=[{key:`margin`,label:`margin`,longhands:[`margin-top`,`margin-right`,`margin-bottom`,`margin-left`]},{key:`margin-top,margin-bottom`,label:`margin-y`,longhands:[`margin-top`,`margin-bottom`]},{key:`margin-left,margin-right`,label:`margin-x`,longhands:[`margin-left`,`margin-right`]},{key:`margin-top`,label:`margin top`,longhands:[`margin-top`]},{key:`margin-right`,label:`margin right`,longhands:[`margin-right`]},{key:`margin-bottom`,label:`margin bottom`,longhands:[`margin-bottom`]},{key:`margin-left`,label:`margin left`,longhands:[`margin-left`]}],Yt=[{key:`gap`,label:`gap`,longhands:[`row-gap`,`column-gap`]},{key:`row-gap`,label:`row gap`,longhands:[`row-gap`]},{key:`column-gap`,label:`column gap`,longhands:[`column-gap`]}],Xt=[{key:`border-radius`,label:`border radius`,longhands:[`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`]},{key:`border-top-left-radius,border-top-right-radius`,label:`top corners`,longhands:[`border-top-left-radius`,`border-top-right-radius`]},{key:`border-bottom-left-radius,border-bottom-right-radius`,label:`bottom corners`,longhands:[`border-bottom-left-radius`,`border-bottom-right-radius`]},{key:`border-top-left-radius,border-bottom-left-radius`,label:`left corners`,longhands:[`border-top-left-radius`,`border-bottom-left-radius`]},{key:`border-top-right-radius,border-bottom-right-radius`,label:`right corners`,longhands:[`border-top-right-radius`,`border-bottom-right-radius`]},{key:`border-top-left-radius`,label:`top left radius`,longhands:[`border-top-left-radius`]},{key:`border-top-right-radius`,label:`top right radius`,longhands:[`border-top-right-radius`]},{key:`border-bottom-right-radius`,label:`bottom right radius`,longhands:[`border-bottom-right-radius`]},{key:`border-bottom-left-radius`,label:`bottom left radius`,longhands:[`border-bottom-left-radius`]}],Zt=[{key:`top,right,bottom,left`,label:`inset`,longhands:[`top`,`right`,`bottom`,`left`]},{key:`top,bottom`,label:`inset-y`,longhands:[`top`,`bottom`]},{key:`left,right`,label:`inset-x`,longhands:[`left`,`right`]},{key:`top`,label:`top`,longhands:[`top`]},{key:`right`,label:`right`,longhands:[`right`]},{key:`bottom`,label:`bottom`,longhands:[`bottom`]},{key:`left`,label:`left`,longhands:[`left`]}],Qt=new Set(Zt.map(e=>e.key)),$t=[qt,Jt,Yt,Xt,[{key:`border-width`,label:`border width`,longhands:[`border-top-width`,`border-right-width`,`border-bottom-width`,`border-left-width`]},{key:`border-top-width`,label:`border top width`,longhands:[`border-top-width`]},{key:`border-right-width`,label:`border right width`,longhands:[`border-right-width`]},{key:`border-bottom-width`,label:`border bottom width`,longhands:[`border-bottom-width`]},{key:`border-left-width`,label:`border left width`,longhands:[`border-left-width`]}],[{key:`width,height`,label:`size`,longhands:[`width`,`height`]},{key:`width`,label:`width`,longhands:[`width`]},{key:`height`,label:`height`,longhands:[`height`]}],Zt],en=[{key:`font-size`,label:`font size`},{key:`line-height`,label:`line height`},{key:`letter-spacing`,label:`letter spacing`},{key:`min-width`,label:`min width`},{key:`min-height`,label:`min height`},{key:`max-width`,label:`max width`},{key:`max-height`,label:`max height`},{key:`z-index`,label:`z-index`},{key:`opacity`,label:`opacity`}],tn=[{key:`color`,label:`text color`,alwaysShow:!0},{key:`background-color`,label:`background`,alwaysShow:!0},{key:`border-color`,label:`border color`},{key:`fill`,label:`fill`},{key:`stroke`,label:`stroke`}],nn=[{value:`ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`,label:`sans`},{value:`ui-serif, Georgia, Cambria, "Times New Roman", Times, serif`,label:`serif`},{value:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace`,label:`mono`},{value:`system-ui, sans-serif`,label:`system`},{value:`serif`,label:`serif`},{value:`monospace`,label:`mono`}],rn=e=>{let t=e.trim();return nn.some(e=>e.value===t)?nn:[{value:t,label:`current`},...nn]},an={key:`font-family`,label:`font family`},on=[{key:`display`,label:`display`,options:[{value:`block`,label:`block`},{value:`flex`,label:`flex`},{value:`inline-block`,label:`inline-block`},{value:`inline`,label:`inline`},{value:`grid`,label:`grid`},{value:`none`,label:`none`}]},{key:`text-align`,label:`text align`,options:[{value:`left`,label:`left`},{value:`center`,label:`center`},{value:`right`,label:`right`},{value:`justify`,label:`justify`}]},{key:`font-style`,label:`font style`,options:[{value:`normal`,label:`normal`},{value:`italic`,label:`italic`}]},{key:`text-transform`,label:`text transform`,options:[{value:`none`,label:`none`},{value:`uppercase`,label:`uppercase`},{value:`lowercase`,label:`lowercase`},{value:`capitalize`,label:`capitalize`}]},{key:`white-space`,label:`white space`,options:[{value:`normal`,label:`normal`},{value:`nowrap`,label:`nowrap`},{value:`pre`,label:`pre`},{value:`pre-wrap`,label:`pre-wrap`},{value:`pre-line`,label:`pre-line`},{value:`break-spaces`,label:`break-spaces`}]},{key:`word-break`,label:`word break`,options:[{value:`normal`,label:`normal`},{value:`break-all`,label:`break-all`},{value:`keep-all`,label:`keep-all`}]},{key:`overflow-wrap`,label:`wrap`,options:[{value:`normal`,label:`normal`},{value:`break-word`,label:`break-word`},{value:`anywhere`,label:`anywhere`}]},{key:`font-variant-numeric`,label:`number style`,options:[{value:`normal`,label:`normal`},{value:`tabular-nums`,label:`tabular`},{value:`proportional-nums`,label:`proportional`},{value:`lining-nums`,label:`lining`},{value:`oldstyle-nums`,label:`oldstyle`},{value:`slashed-zero`,label:`slashed zero`}]},{key:`text-decoration-line`,label:`decoration`,options:[{value:`none`,label:`none`},{value:`underline`,label:`underline`},{value:`line-through`,label:`strike`}]},{key:`border-style`,label:`border style`,options:[{value:`none`,label:`none`},{value:`solid`,label:`solid`},{value:`dashed`,label:`dashed`},{value:`dotted`,label:`dotted`}]},{key:`visibility`,label:`visibility`,options:[{value:`visible`,label:`visible`},{value:`hidden`,label:`hidden`}]},{key:`align-items`,label:`align items`,options:[{value:`stretch`,label:`stretch`},{value:`flex-start`,label:`start`},{value:`center`,label:`center`},{value:`flex-end`,label:`end`},{value:`baseline`,label:`baseline`}]},{key:`justify-content`,label:`justify content`,options:[{value:`flex-start`,label:`start`},{value:`center`,label:`center`},{value:`flex-end`,label:`end`},{value:`space-between`,label:`between`},{value:`space-around`,label:`around`},{value:`space-evenly`,label:`evenly`}]},{key:`font-weight`,label:`font weight`,options:[{value:`100`,label:`thin`},{value:`200`,label:`extra-light`},{value:`300`,label:`light`},{value:`400`,label:`normal`},{value:`500`,label:`medium`},{value:`600`,label:`semibold`},{value:`700`,label:`bold`},{value:`800`,label:`extra-bold`},{value:`900`,label:`black`}]}],sn=[...Rt,`color`,`background-color`,`border-color`,`fill`,`stroke`,`font-family`,`display`,`text-align`,`font-style`,`text-transform`,`white-space`,`word-break`,`overflow-wrap`,`font-variant-numeric`,`text-decoration-line`,`border-style`,`visibility`,`align-items`,`justify-content`,`font-weight`],cn=e=>Number.isInteger(e)?e:Math.round(e*100)/100,ln=e=>Number.isInteger(e)?String(e):e.toFixed(2).replace(/\.?0+$/,``),un=e=>Number.isFinite(e)?ln(cn(e)):String(e),dn=e=>Math.round(e),fn=(e,t)=>{if(e.kind===`color`||e.kind===`enum`)return typeof t==`string`?t:e.value;let n=typeof t==`number`?t:e.value;return e.key===`opacity`&&e.unit===`%`?ln(cn(n/100)):`${ln(cn(n))}${e.unit}`},pn={slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`}},mn={p:`padding`,px:`padding-left,padding-right`,py:`padding-top,padding-bottom`,pt:`padding-top`,pr:`padding-right`,pb:`padding-bottom`,pl:`padding-left`,ps:`padding-left`,pe:`padding-right`,m:`margin`,mx:`margin-left,margin-right`,my:`margin-top,margin-bottom`,mt:`margin-top`,mr:`margin-right`,mb:`margin-bottom`,ml:`margin-left`,ms:`margin-left`,me:`margin-right`,gap:`gap`,"gap-x":`column-gap`,"gap-y":`row-gap`,text:`font-size`,leading:`line-height`,tracking:`letter-spacing`,rounded:`border-radius`,"rounded-t":`border-top-left-radius,border-top-right-radius`,"rounded-b":`border-bottom-left-radius,border-bottom-right-radius`,"rounded-l":`border-top-left-radius,border-bottom-left-radius`,"rounded-r":`border-top-right-radius,border-bottom-right-radius`,"rounded-tl":`border-top-left-radius`,"rounded-tr":`border-top-right-radius`,"rounded-bl":`border-bottom-left-radius`,"rounded-br":`border-bottom-right-radius`,border:`border-width`,"border-t":`border-top-width`,"border-r":`border-right-width`,"border-b":`border-bottom-width`,"border-l":`border-left-width`,w:`width`,h:`height`,size:`width,height`,"max-w":`max-width`,"max-h":`max-height`,"min-w":`min-width`,"min-h":`min-height`,opacity:`opacity`,inset:`top,right,bottom,left`,"inset-x":`left,right`,"inset-y":`top,bottom`,top:`top`,right:`right`,bottom:`bottom`,left:`left`,z:`z-index`,items:`align-items`,justify:`justify-content`,font:`font-weight`,whitespace:`white-space`},hn={"font-size":[`font-size`,`font size`,`text-size`,`text size`],color:[`color`,`text-color`,`text color`,`text-colour`,`text colour`,`foreground`,`fg`],"background-color":[`background`,`background-color`,`background color`,`bg`,`bg-color`,`bg color`],"border-color":[`border-color`,`border color`],fill:[`fill`,`fill-color`,`fill color`],stroke:[`stroke`,`stroke-color`,`stroke color`],"font-family":[`font`,`font-sans`,`font-serif`,`font-mono`,`family`,`sans`,`serif`,`mono`],"font-style":[`italic`,`not-italic`],"text-align":[`text-left`,`text-center`,`text-right`,`text-justify`],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-decoration-line":[`underline`,`line-through`,`no-underline`],"white-space":[`whitespace`,`whitespace-normal`,`whitespace-nowrap`,`whitespace-pre`],"word-break":[`break-normal`,`break-all`,`break-keep`],"overflow-wrap":[`break-words`,`break-anywhere`],"font-variant-numeric":[`tabular-nums`,`proportional-nums`,`lining-nums`,`oldstyle-nums`],"border-style":[`border-solid`,`border-dashed`,`border-dotted`,`border-none`]},gn=(()=>{let e={};for(let[t,n]of Object.entries(mn))n!==void 0&&(e[n]??=new Set).add(t);let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=Array.from(r));for(let[e,n]of Object.entries(hn)){let r=new Set([...t[e]??[],...n]);t[e]=Array.from(r)}return t})(),_n={text:`color`,bg:`background-color`,border:`border-color`,"border-x":`border-color`,"border-y":`border-color`,"border-t":`border-color`,"border-r":`border-color`,"border-b":`border-color`,"border-l":`border-color`,"border-s":`border-color`,"border-e":`border-color`,fill:`fill`,stroke:`stroke`},vn=e=>mn[e]!==void 0||_n[e]!==void 0,Y=e=>{let t=0,n=-1;for(let r=0;r<e.length;r++){let i=e[r];i===`[`?t++:i===`]`?t--:i===`:`&&t===0&&(n=r)}let r=n>=0?e.slice(n+1):e;return r.startsWith(`!`)?r.slice(1):r},X=e=>{let t=Y(e);if(!t)return null;let n=t.indexOf(`[`);if(n>0)return t.slice(0,n).replace(/-$/,``)||null;let r=t.split(`-`).filter(Boolean);if(r.length===0)return null;for(let e=r.length;e>=1;e--){let t=r.slice(0,e).join(`-`);if(vn(t))return t}return r[0]},yn=/-(red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose|slate|gray|zinc|neutral|stone|black|white|transparent|current|inherit)\b/,bn=(e,t)=>e!==`text`&&e!==`bg`&&e!==`border`&&!e.startsWith(`border-`)?!1:yn.test(t),xn=new Set(`color.red.orange.amber.yellow.lime.green.emerald.teal.cyan.sky.blue.indigo.violet.purple.fuchsia.pink.rose.slate.gray.grey.zinc.neutral.stone.black.white.transparent.current.currentcolor.inherit.primary.secondary.accent.muted.foreground.background.destructive.success.warning.error.info.card.popover.input.ring`.split(`.`)),Sn=new Set([`xs`,`sm`,`base`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`9xl`]),Cn=/^(#|rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color:|color\(|var\(--.*color)/,wn=/^(-?\d|length:|size:)/,Z=e=>e.trim().toLowerCase().replace(/\s+/g,`-`).replace(/([a-z])(\d)/g,`$1-$2`),Tn=e=>Cn.test(e)&&!wn.test(e),En=(e,t)=>{if(e===t)return``;let n=`${t}-`;return e.startsWith(n)?e.slice(n.length):null},Dn=e=>{let t=Y(Z(e)),n=X(t);if(!n)return null;let r=_n[n];if(!r)return null;let i=t.indexOf(`[`);if(i>=0)return Tn(t.slice(i+1).replace(/\]$/,``))?r:null;let a=En(t,n);if(a===null)return null;if(n===`bg`&&a===``||(n===`fill`||n===`stroke`)&&a===``)return r;let o=a.split(`-`)[0];return n===`text`&&Sn.has(o)?null:xn.has(o)?r:null},On={black:`#000000`,white:`#ffffff`,transparent:r},kn=e=>{let t=Y(Z(e)),n=X(t);if(!n||_n[n]===void 0||t.includes(`[`))return null;let r=En(t,n);if(!r)return null;let i=On[r];if(i)return i;let a=r.lastIndexOf(`-`);if(a<0)return null;let o=r.slice(0,a),s=o===`grey`?`gray`:o,c=Number.parseInt(r.slice(a+1),10);return pn[s]?.[c]??null},An=/^-?\d/,jn=(e,t)=>{if(t===``||t.startsWith(`[`)||An.test(t))return!0;let n=t.split(`-`)[0];return e===`text`?Sn.has(n):e===`font`||e===`border`||e.startsWith(`border-`)?!1:(e===`rounded`||e.startsWith(`rounded-`),!0)},Mn={"font-sans":{property:`font-family`,value:`ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`},"font-serif":{property:`font-family`,value:`ui-serif, Georgia, Cambria, "Times New Roman", Times, serif`},"font-mono":{property:`font-family`,value:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace`},"font-thin":{property:`font-weight`,value:`100`},"font-extralight":{property:`font-weight`,value:`200`},"font-light":{property:`font-weight`,value:`300`},"font-normal":{property:`font-weight`,value:`400`},"font-medium":{property:`font-weight`,value:`500`},"font-semibold":{property:`font-weight`,value:`600`},"font-bold":{property:`font-weight`,value:`700`},"font-extrabold":{property:`font-weight`,value:`800`},"font-black":{property:`font-weight`,value:`900`},"text-left":{property:`text-align`,value:`left`},"text-center":{property:`text-align`,value:`center`},"text-right":{property:`text-align`,value:`right`},"text-justify":{property:`text-align`,value:`justify`},italic:{property:`font-style`,value:`italic`},"not-italic":{property:`font-style`,value:`normal`},uppercase:{property:`text-transform`,value:`uppercase`},lowercase:{property:`text-transform`,value:`lowercase`},capitalize:{property:`text-transform`,value:`capitalize`},"normal-case":{property:`text-transform`,value:`none`},underline:{property:`text-decoration-line`,value:`underline`},"line-through":{property:`text-decoration-line`,value:`line-through`},"no-underline":{property:`text-decoration-line`,value:`none`},"whitespace-normal":{property:`white-space`,value:`normal`},"whitespace-nowrap":{property:`white-space`,value:`nowrap`},"whitespace-pre":{property:`white-space`,value:`pre`},"whitespace-pre-line":{property:`white-space`,value:`pre-line`},"whitespace-pre-wrap":{property:`white-space`,value:`pre-wrap`},"whitespace-break-spaces":{property:`white-space`,value:`break-spaces`},"break-normal":{property:`word-break`,value:`normal`},"break-all":{property:`word-break`,value:`break-all`},"break-keep":{property:`word-break`,value:`keep-all`},"break-words":{property:`overflow-wrap`,value:`break-word`},"break-anywhere":{property:`overflow-wrap`,value:`anywhere`},"tabular-nums":{property:`font-variant-numeric`,value:`tabular-nums`},"proportional-nums":{property:`font-variant-numeric`,value:`proportional-nums`},"lining-nums":{property:`font-variant-numeric`,value:`lining-nums`},"oldstyle-nums":{property:`font-variant-numeric`,value:`oldstyle-nums`},"slashed-zero":{property:`font-variant-numeric`,value:`slashed-zero`},"border-solid":{property:`border-style`,value:`solid`},"border-dashed":{property:`border-style`,value:`dashed`},"border-dotted":{property:`border-style`,value:`dotted`},"border-none":{property:`border-style`,value:`none`}},Nn=e=>{let t=Z(e);if(!t)return[];let n=$(t);if(n)return[n.property];let r=Dn(t);return r?[r]:[]},Pn=e=>{let t=Z(e);if(!t)return[];let n=X(t);if(!n)return[];let r=En(Y(t),n);if(r===null||!jn(n,r))return[];let i=Q(n);return i?[i]:[]},Fn=e=>{let t=e.getAttribute(`class`);if(!t)return new Set;let n=t.split(/\s+/).filter(Boolean),r=new Set;for(let e of n){let t=X(e);if(!t||bn(t,e))continue;let n=$(e);if(n){r.add(n.property);continue}let i=Q(t);i&&r.add(i)}return r},In=e=>gn[e]??[],Q=e=>{let t=mn[e];return t===void 0?null:t},$=e=>{let t=Mn[Y(e)];return t===void 0?null:t},Ln=`react-grab-toolbar-state`,Rn=()=>{try{let t=localStorage.getItem(Ln);if(!t)return null;let r=JSON.parse(t);if(typeof r!=`object`||!r)return null;let i=r,a=typeof i.collapsed==`boolean`?i.collapsed:!1;return{edge:i.edge===`top`||i.edge===`bottom`||i.edge===`left`||i.edge===`right`?i.edge:`bottom`,ratio:typeof i.ratio==`number`?i.ratio:n,collapsed:a,enabled:!a,defaultAction:typeof i.defaultAction==`string`?i.defaultAction:e}}catch(e){console.warn(`[react-grab] Failed to load toolbar state from localStorage:`,e)}return null},zn=e=>{try{localStorage.setItem(Ln,JSON.stringify(e))}catch(e){console.warn(`[react-grab] Failed to save toolbar state to localStorage:`,e)}},Bn=e=>e.key===`Enter`,Vn=e=>e.metaKey||e.ctrlKey,Hn=(e,t,n={})=>{if(!t.key)return null;if(Bn(t))return e.find(e=>e.shortcut===`Enter`)??null;if(t.repeat)return null;let r=t.key.toLowerCase();return Vn(t)?n.includeModifierShortcuts===!0?e.find(e=>e.shortcut!==void 0&&e.shortcut!==`Enter`&&e.shortcutModifier!==!1&&r===e.shortcut.toLowerCase())??null:null:e.find(e=>e.shortcut!==void 0&&e.shortcutModifier===!1&&r===e.shortcut.toLowerCase())??null},Un=()=>{let e=!1;return{arm:()=>{e=!0},clear:()=>{e=!1},consume:()=>e?(e=!1,!0):!1}};export{et as $,Kt as A,mt as B,an as C,O as Ct,en as D,se as Dt,Ht as E,E as Et,It as F,Ze as G,pt as H,Pt as I,nt as J,Ye as K,Nt as L,Ut as M,rn as N,Bt as O,Lt as P,$e as Q,bt as R,Gt as S,ie as St,Qt as T,De as Tt,ut as U,ht as V,Xe as W,We as X,Ve as Y,U as Z,$t as _,x as _t,Fn as a,ke as at,tn as b,be as bt,kn as c,je as ct,Z as d,Se as dt,Qe as et,$ as f,oe as ft,dn as g,re as gt,fn as h,C as ht,zn as i,u as it,Wt as j,Rt as k,Pn as l,Me as lt,un as m,w as mt,Hn as n,tt as nt,In as o,Ae as ot,Q as p,te as pt,Ke as q,Rn as r,c as rt,Dn as s,Ne as st,Un as t,Ge as tt,Nn as u,T as ut,zt as v,S as vt,Vt as w,D as wt,on as x,Ee as xt,sn as y,k as yt,vt as z};
|
|
@@ -48,4 +48,4 @@ const mn=/^(?:\.\/)?\/?\([a-z][a-z0-9-]*\)\//,hn=e=>{let t=Rt(e);return t=t.repl
|
|
|
48
48
|
*, *::before, *::after {
|
|
49
49
|
transition: none !important;
|
|
50
50
|
}
|
|
51
|
-
`;let e=[];for(let t of document.getAnimations())ar(t)||e.push(t);ir(e),K=!1}else{for(let e of G)try{e.finish()}catch{try{e.play()}catch{}}G=[]}U.remove(),U=null,nr(W),W=[],qn()}},fr=[`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`],pr=[`focus`,`blur`,`focusin`,`focusout`],mr=[`background-color`,`color`,`border-color`,`box-shadow`,`transform`,`opacity`,`outline`,`filter`,`scale`,`visibility`],hr=[`background-color`,`color`,`border-color`,`box-shadow`,`outline`,`outline-offset`,`outline-width`,`outline-color`,`outline-style`,`filter`,`opacity`,`ring-color`,`ring-width`],gr=new Map,_r=new Map,vr=e=>{e.stopImmediatePropagation()},yr=e=>{e.preventDefault(),e.stopImmediatePropagation()},br=(e,t)=>{let n=new Map;for(let r of t){let t=e.style.getPropertyValue(r);t&&n.set(r,t)}return n},xr=(e,t,n)=>{if(n?.has(e))return null;let r=getComputedStyle(e),i=e.style.cssText,a=br(e,t);for(let e of t){let t=r.getPropertyValue(e);t&&(i+=`${e}: ${t} !important; `)}return{element:e,frozenStyles:i,originalPropertyValues:a}},Sr=(e,t)=>{let n=[],r=document.elementFromPoint(e,t);for(;r&&r!==document.documentElement;)r instanceof HTMLElement&&n.push(r),r=r.parentElement;return n},Cr=()=>{let e=[],t=document.activeElement;for(;t&&t!==document.body;)t instanceof HTMLElement&&e.push(t),t=t.shadowRoot?.activeElement??null;return e},wr=(e,t)=>{for(let{element:n,frozenStyles:r,originalPropertyValues:i}of e)t.set(n,i),n.style.cssText=r},Tr=(e,t)=>{for(let[n,r]of e)for(let e of t){let t=r.get(e);t?n.style.setProperty(e,t):n.style.removeProperty(e)}e.clear()},Er=(e,t)=>{if(Mn())return null;let n=[],r=e!==void 0&&t!==void 0&&e>=0&&t>=0&&e<window.innerWidth&&t<window.innerHeight?Sr(e,t):Array.from(document.querySelectorAll(`:hover`)).filter(e=>e instanceof HTMLElement);for(let e of r){let t=xr(e,mr);t&&n.push(t)}let i=[];for(let e of Cr()){let t=xr(e,hr,_r);t&&i.push(t)}return{hoverStates:n,focusStates:i}},Dr=e=>{if(e){for(let e of fr)document.addEventListener(e,vr,!0);for(let e of pr)document.addEventListener(e,yr,!0);wr(e.hoverStates,gr),wr(e.focusStates,_r),Nn()}},Or=()=>{Bn();for(let e of fr)document.removeEventListener(e,vr,!0);for(let e of pr)document.removeEventListener(e,yr,!0);Tr(gr,mr),Tr(_r,hr),Pn()},kr=(e,t)=>{let n=Er(e,t),r=lr();Dr(n),ur(r)},Ar=()=>{Or(),dr()},jr=(e,t)=>{};let Y=!1;const Mr=(e,t,n)=>{let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i},Nr=new WeakMap,Pr=new WeakMap,Fr=new WeakMap,Ir=new Set,Lr=[],X=[],Z=new WeakMap,Q=new WeakMap,Rr=new WeakSet,zr=Pe,Br=e=>{let t=e;for(;t.return;)t=t.return;return t.stateNode??null},Vr=()=>{if(zr.size>0)return zr;let e=new Set,t=n=>{let r=Ne(n);if(r){let t=Br(r);t&&e.add(t);return}for(let r of Array.from(n.children))if(t(r),e.size>0)return};return t(document.body),e},Hr=(e,t)=>{if(!e)return t;if(!t)return e;if(!e.next||!t.next)return t;let n=e.next,r=t.next,i=e===n,a=t===r;return i&&a?(e.next=t,t.next=e):i?(e.next=r,t.next=e):a?(t.next=n,e.next=t):(e.next=r,t.next=n),t},Ur=e=>{if(!e||Z.has(e))return;let t={originalPendingDescriptor:Object.getOwnPropertyDescriptor(e,`pending`),pendingValueAtPause:e.pending,bufferedPending:null};typeof e.getSnapshot==`function`&&(t.originalGetSnapshot=e.getSnapshot,t.snapshotValueAtPause=e.getSnapshot(),e.getSnapshot=()=>Y?t.snapshotValueAtPause:t.originalGetSnapshot());let n=t.pendingValueAtPause;Object.defineProperty(e,`pending`,{configurable:!0,enumerable:!0,get:()=>Y?null:n,set:e=>{if(Y){e!==null&&(t.bufferedPending=Hr(t.bufferedPending??null,e));return}n=e}}),Z.set(e,t)},Wr=e=>{if(!e)return[];let t=[],n=e.next;if(!n)return[];let r=n;do r&&=(t.push(r.action),r.next);while(r&&r!==n);return t},Gr=e=>{let t=Z.get(e);if(!t)return;t.originalGetSnapshot&&(e.getSnapshot=t.originalGetSnapshot),t.originalPendingDescriptor?Object.defineProperty(e,`pending`,t.originalPendingDescriptor):delete e.pending,e.pending=null;let n=e.dispatch;if(typeof n==`function`){let e=Wr(t.pendingValueAtPause??null),r=Wr(t.bufferedPending??null);for(let t of[...e,...r])X.push(()=>n(t))}Z.delete(e)},Kr=e=>{if(Q.has(e))return;let t={originalDescriptor:Object.getOwnPropertyDescriptor(e,`memoizedValue`),frozenValue:e.memoizedValue};Object.defineProperty(e,`memoizedValue`,{configurable:!0,enumerable:!0,get(){return Y?t.frozenValue:t.originalDescriptor?.get?t.originalDescriptor.get.call(this):this._memoizedValue},set(e){if(Y){t.pendingValue=e,t.didReceivePendingValue=!0;return}t.originalDescriptor?.set?t.originalDescriptor.set.call(this,e):this._memoizedValue=e}}),t.originalDescriptor?.get||(e._memoizedValue=t.frozenValue),Q.set(e,t)},qr=e=>{let t=Q.get(e);t&&(t.originalDescriptor?Object.defineProperty(e,`memoizedValue`,t.originalDescriptor):delete e.memoizedValue,t.didReceivePendingValue&&(e.memoizedValue=t.pendingValue),Q.delete(e))},Jr=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Ur(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)Kr(n),n=n.next},Yr=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Gr(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)qr(n),n=n.next},Xr=e=>{let t=e;for(;t;){if(Te(t)&&Jr(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},Zr=e=>{let t=e;for(;t;){if(Te(t)&&Yr(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},Qr=e=>{if(Nr.has(e))return;let t=e,n={useState:t.useState,useReducer:t.useReducer,useTransition:t.useTransition,useSyncExternalStore:t.useSyncExternalStore};Nr.set(e,n),t.useState=(...t)=>{let r=n.useState.apply(e,t);if(!Y||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Mr(Pr,a,()=>(...e)=>{Y?X.push(()=>a(...e)):a(...e)})]},t.useReducer=(...t)=>{let r=n.useReducer.apply(e,t);if(!Y||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Mr(Pr,a,()=>(...e)=>{Y?X.push(()=>a(...e)):a(...e)})]},t.useTransition=(...t)=>{let r=n.useTransition.apply(e,t);if(!Y||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Mr(Fr,a,()=>e=>{Y?Lr.push(()=>a(e)):a(e)})]},t.useSyncExternalStore=((e,t,r)=>Y?n.useSyncExternalStore(t=>e(()=>{Y?Ir.add(t):t()}),t,r):n.useSyncExternalStore(e,t,r))},$r=e=>{let t=e.currentDispatcherRef;if(!t||typeof t!=`object`)return;let n=`H`in t?`H`:`current`,r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>(r&&typeof r==`object`&&Qr(r),r),set:e=>{r=e}})},ei=e=>{queueMicrotask(()=>{try{for(let t of g().renderers.values())if(typeof t.scheduleUpdate==`function`){for(let n of e)if(n.current)try{t.scheduleUpdate(n.current)}catch{}}}catch{}})},$=e=>{for(let t of e)try{t()}catch{}},ti=()=>{for(let e of g().renderers.values())Rr.has(e)||($r(e),Rr.add(e))},ni=()=>{if(Y)return()=>{};ti(),Y=!0;let e=Vr();for(let t of e)Xr(t.current);return()=>{if(Y)try{let e=Vr();for(let t of e)Zr(t.current);let t=Array.from(Ir),n=Lr.slice(),r=X.slice();Y=!1,$(t),$(n),$(r),ei(e)}finally{Ir.clear(),Lr.length=0,X.length=0}}};Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return 12e3}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return .95}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return`comment`}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return`var(--rg-shadow)`}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return`0.1.47-dev.423fe9d`}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return`copy`}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return .01}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return 2e3}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return 2147483647}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return 8e3}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return 5e3}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return vt}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return .2}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return 2147483645}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return`var(--rg-panel-bg)`}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return Et}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return .7}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return 1e7}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return .75}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return 8e3}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return 5e3}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return or}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return 1.2}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return _n}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Bn}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return .6}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return`superellipse(1.25)`}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return 9e3}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return .01}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return wn}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return-1e3}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return 1500}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return-9999}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return zn}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return .18}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return jn}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return`#00000000`}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return cr}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return An}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return`edit`}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return kr}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return`transparent`}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Hn}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return ni}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return`cubic-bezier(0.34, 1.56, 0.64, 1)`}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Rn}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return Sn}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return hn}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return vn}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return 16.666666666666668}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return`data-react-grab`}});
|
|
51
|
+
`;let e=[];for(let t of document.getAnimations())ar(t)||e.push(t);ir(e),K=!1}else{for(let e of G)try{e.finish()}catch{try{e.play()}catch{}}G=[]}U.remove(),U=null,nr(W),W=[],qn()}},fr=[`mouseenter`,`mouseleave`,`mouseover`,`mouseout`,`pointerenter`,`pointerleave`,`pointerover`,`pointerout`],pr=[`focus`,`blur`,`focusin`,`focusout`],mr=[`background-color`,`color`,`border-color`,`box-shadow`,`transform`,`opacity`,`outline`,`filter`,`scale`,`visibility`],hr=[`background-color`,`color`,`border-color`,`box-shadow`,`outline`,`outline-offset`,`outline-width`,`outline-color`,`outline-style`,`filter`,`opacity`,`ring-color`,`ring-width`],gr=new Map,_r=new Map,vr=e=>{e.stopImmediatePropagation()},yr=e=>{e.preventDefault(),e.stopImmediatePropagation()},br=(e,t)=>{let n=new Map;for(let r of t){let t=e.style.getPropertyValue(r);t&&n.set(r,t)}return n},xr=(e,t,n)=>{if(n?.has(e))return null;let r=getComputedStyle(e),i=e.style.cssText,a=br(e,t);for(let e of t){let t=r.getPropertyValue(e);t&&(i+=`${e}: ${t} !important; `)}return{element:e,frozenStyles:i,originalPropertyValues:a}},Sr=(e,t)=>{let n=[],r=document.elementFromPoint(e,t);for(;r&&r!==document.documentElement;)r instanceof HTMLElement&&n.push(r),r=r.parentElement;return n},Cr=()=>{let e=[],t=document.activeElement;for(;t&&t!==document.body;)t instanceof HTMLElement&&e.push(t),t=t.shadowRoot?.activeElement??null;return e},wr=(e,t)=>{for(let{element:n,frozenStyles:r,originalPropertyValues:i}of e)t.set(n,i),n.style.cssText=r},Tr=(e,t)=>{for(let[n,r]of e)for(let e of t){let t=r.get(e);t?n.style.setProperty(e,t):n.style.removeProperty(e)}e.clear()},Er=(e,t)=>{if(Mn())return null;let n=[],r=e!==void 0&&t!==void 0&&e>=0&&t>=0&&e<window.innerWidth&&t<window.innerHeight?Sr(e,t):Array.from(document.querySelectorAll(`:hover`)).filter(e=>e instanceof HTMLElement);for(let e of r){let t=xr(e,mr);t&&n.push(t)}let i=[];for(let e of Cr()){let t=xr(e,hr,_r);t&&i.push(t)}return{hoverStates:n,focusStates:i}},Dr=e=>{if(e){for(let e of fr)document.addEventListener(e,vr,!0);for(let e of pr)document.addEventListener(e,yr,!0);wr(e.hoverStates,gr),wr(e.focusStates,_r),Nn()}},Or=()=>{Bn();for(let e of fr)document.removeEventListener(e,vr,!0);for(let e of pr)document.removeEventListener(e,yr,!0);Tr(gr,mr),Tr(_r,hr),Pn()},kr=(e,t)=>{let n=Er(e,t),r=lr();Dr(n),ur(r)},Ar=()=>{Or(),dr()},jr=(e,t)=>{};let Y=!1;const Mr=(e,t,n)=>{let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i},Nr=new WeakMap,Pr=new WeakMap,Fr=new WeakMap,Ir=new Set,Lr=[],X=[],Z=new WeakMap,Q=new WeakMap,Rr=new WeakSet,zr=Pe,Br=e=>{let t=e;for(;t.return;)t=t.return;return t.stateNode??null},Vr=()=>{if(zr.size>0)return zr;let e=new Set,t=n=>{let r=Ne(n);if(r){let t=Br(r);t&&e.add(t);return}for(let r of Array.from(n.children))if(t(r),e.size>0)return};return t(document.body),e},Hr=(e,t)=>{if(!e)return t;if(!t)return e;if(!e.next||!t.next)return t;let n=e.next,r=t.next,i=e===n,a=t===r;return i&&a?(e.next=t,t.next=e):i?(e.next=r,t.next=e):a?(t.next=n,e.next=t):(e.next=r,t.next=n),t},Ur=e=>{if(!e||Z.has(e))return;let t={originalPendingDescriptor:Object.getOwnPropertyDescriptor(e,`pending`),pendingValueAtPause:e.pending,bufferedPending:null};typeof e.getSnapshot==`function`&&(t.originalGetSnapshot=e.getSnapshot,t.snapshotValueAtPause=e.getSnapshot(),e.getSnapshot=()=>Y?t.snapshotValueAtPause:t.originalGetSnapshot());let n=t.pendingValueAtPause;Object.defineProperty(e,`pending`,{configurable:!0,enumerable:!0,get:()=>Y?null:n,set:e=>{if(Y){e!==null&&(t.bufferedPending=Hr(t.bufferedPending??null,e));return}n=e}}),Z.set(e,t)},Wr=e=>{if(!e)return[];let t=[],n=e.next;if(!n)return[];let r=n;do r&&=(t.push(r.action),r.next);while(r&&r!==n);return t},Gr=e=>{let t=Z.get(e);if(!t)return;t.originalGetSnapshot&&(e.getSnapshot=t.originalGetSnapshot),t.originalPendingDescriptor?Object.defineProperty(e,`pending`,t.originalPendingDescriptor):delete e.pending,e.pending=null;let n=e.dispatch;if(typeof n==`function`){let e=Wr(t.pendingValueAtPause??null),r=Wr(t.bufferedPending??null);for(let t of[...e,...r])X.push(()=>n(t))}Z.delete(e)},Kr=e=>{if(Q.has(e))return;let t={originalDescriptor:Object.getOwnPropertyDescriptor(e,`memoizedValue`),frozenValue:e.memoizedValue};Object.defineProperty(e,`memoizedValue`,{configurable:!0,enumerable:!0,get(){return Y?t.frozenValue:t.originalDescriptor?.get?t.originalDescriptor.get.call(this):this._memoizedValue},set(e){if(Y){t.pendingValue=e,t.didReceivePendingValue=!0;return}t.originalDescriptor?.set?t.originalDescriptor.set.call(this,e):this._memoizedValue=e}}),t.originalDescriptor?.get||(e._memoizedValue=t.frozenValue),Q.set(e,t)},qr=e=>{let t=Q.get(e);t&&(t.originalDescriptor?Object.defineProperty(e,`memoizedValue`,t.originalDescriptor):delete e.memoizedValue,t.didReceivePendingValue&&(e.memoizedValue=t.pendingValue),Q.delete(e))},Jr=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Ur(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)Kr(n),n=n.next},Yr=e=>{let t=e.memoizedState;for(;t;)t.queue&&typeof t.queue==`object`&&Gr(t.queue),t=t.next;let n=e.dependencies?.firstContext;for(;n&&typeof n==`object`&&`memoizedValue`in n;)qr(n),n=n.next},Xr=e=>{let t=e;for(;t;){if(Te(t)&&Jr(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},Zr=e=>{let t=e;for(;t;){if(Te(t)&&Yr(t),t.child){t=t.child;continue}for(;t!==e&&!t.sibling;)if(t=t.return,!t)return;if(t===e)return;t=t.sibling}},Qr=e=>{if(Nr.has(e))return;let t=e,n={useState:t.useState,useReducer:t.useReducer,useTransition:t.useTransition,useSyncExternalStore:t.useSyncExternalStore};Nr.set(e,n),t.useState=(...t)=>{let r=n.useState.apply(e,t);if(!Y||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Mr(Pr,a,()=>(...e)=>{Y?X.push(()=>a(...e)):a(...e)})]},t.useReducer=(...t)=>{let r=n.useReducer.apply(e,t);if(!Y||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Mr(Pr,a,()=>(...e)=>{Y?X.push(()=>a(...e)):a(...e)})]},t.useTransition=(...t)=>{let r=n.useTransition.apply(e,t);if(!Y||!Array.isArray(r)||typeof r[1]!=`function`)return r;let[i,a]=r;return[i,Mr(Fr,a,()=>e=>{Y?Lr.push(()=>a(e)):a(e)})]},t.useSyncExternalStore=((e,t,r)=>Y?n.useSyncExternalStore(t=>e(()=>{Y?Ir.add(t):t()}),t,r):n.useSyncExternalStore(e,t,r))},$r=e=>{let t=e.currentDispatcherRef;if(!t||typeof t!=`object`)return;let n=`H`in t?`H`:`current`,r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>(r&&typeof r==`object`&&Qr(r),r),set:e=>{r=e}})},ei=e=>{queueMicrotask(()=>{try{for(let t of g().renderers.values())if(typeof t.scheduleUpdate==`function`){for(let n of e)if(n.current)try{t.scheduleUpdate(n.current)}catch{}}}catch{}})},$=e=>{for(let t of e)try{t()}catch{}},ti=()=>{for(let e of g().renderers.values())Rr.has(e)||($r(e),Rr.add(e))},ni=()=>{if(Y)return()=>{};ti(),Y=!0;let e=Vr();for(let t of e)Xr(t.current);return()=>{if(Y)try{let e=Vr();for(let t of e)Zr(t.current);let t=Array.from(Ir),n=Lr.slice(),r=X.slice();Y=!1,$(t),$(n),$(r),ei(e)}finally{Ir.clear(),Lr.length=0,X.length=0}}};Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return 12e3}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return .95}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return`comment`}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return`var(--rg-shadow)`}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return`0.1.47-dev.58b4de2`}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return`copy`}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return .01}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return 2e3}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return 2147483647}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return 8e3}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return 5e3}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return vt}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return .2}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return 2147483645}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return`var(--rg-panel-bg)`}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return Et}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return .7}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return 1e7}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return .75}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return 8e3}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return 5e3}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return or}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return 1.2}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return _n}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Bn}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return .6}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return`superellipse(1.25)`}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return 9e3}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return .01}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return wn}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return-1e3}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return 1500}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return-9999}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return zn}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return .18}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return jn}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return`#00000000`}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return cr}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return An}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return 1e3}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return`edit`}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return kr}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return`transparent`}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Hn}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return .5}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return ni}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return`cubic-bezier(0.34, 1.56, 0.64, 1)`}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Rn}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return 1e4}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return Sn}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return te}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return hn}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return vn}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return 16.666666666666668}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return`data-react-grab`}});
|
|
@@ -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.
|
|
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(`
|
|
@@ -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
|
-
import { C as ReactGrabAPI, g as Options, k as Theme, n as StackFrame } from "./copy-content-
|
|
9
|
+
import { C as ReactGrabAPI, g as Options, k as Theme, n as StackFrame } from "./copy-content-BJATOqZF.js";
|
|
10
10
|
|
|
11
11
|
//#region src/core/context.d.ts
|
|
12
12
|
declare const getStack: (element: Element) => Promise<StackFrame[] | null>;
|
|
@@ -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
|
-
import { C as ReactGrabAPI, g as Options, k as Theme, n as StackFrame } from "./copy-content-
|
|
9
|
+
import { C as ReactGrabAPI, g as Options, k as Theme, n as StackFrame } from "./copy-content-5FzVj_Qo.cjs";
|
|
10
10
|
|
|
11
11
|
//#region src/core/context.d.ts
|
|
12
12
|
declare const getStack: (element: Element) => Promise<StackFrame[] | null>;
|
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-
|
|
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;
|
package/dist/index.d.cts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
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
|
-
import { A as ToolbarState, C as ReactGrabAPI, D as SettableOptions, E as Rect, O as SourceInfo, S as PromptModeContext, T as ReactGrabState, _ as OverlayBounds, a as ActionContext, b as PluginHooks, c as AgentContext, d as DeepPartial, f as DragRect, g as Options, h as GrabbedBox, i as isInstrumentationActive, k as Theme, l as ContextMenuAction, m as ElementLabelVariant, o as ActionContextHooks, p as ElementLabelContext, s as ActivationMode, u as ContextMenuActionContext, v as Plugin, x as Position, y as PluginConfig } from "./copy-content-
|
|
10
|
-
import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-
|
|
9
|
+
import { A as ToolbarState, C as ReactGrabAPI, D as SettableOptions, E as Rect, O as SourceInfo, S as PromptModeContext, T as ReactGrabState, _ as OverlayBounds, a as ActionContext, b as PluginHooks, c as AgentContext, d as DeepPartial, f as DragRect, g as Options, h as GrabbedBox, i as isInstrumentationActive, k as Theme, l as ContextMenuAction, m as ElementLabelVariant, o as ActionContextHooks, p as ElementLabelContext, s as ActivationMode, u as ContextMenuActionContext, v as Plugin, x as Position, y as PluginConfig } from "./copy-content-5FzVj_Qo.cjs";
|
|
10
|
+
import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-jMjUhmbS.cjs";
|
|
11
11
|
|
|
12
12
|
//#region src/core/plugins/comment.d.ts
|
|
13
13
|
declare const commentPlugin: Plugin;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
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
|
-
import { A as ToolbarState, C as ReactGrabAPI, D as SettableOptions, E as Rect, O as SourceInfo, S as PromptModeContext, T as ReactGrabState, _ as OverlayBounds, a as ActionContext, b as PluginHooks, c as AgentContext, d as DeepPartial, f as DragRect, g as Options, h as GrabbedBox, i as isInstrumentationActive, k as Theme, l as ContextMenuAction, m as ElementLabelVariant, o as ActionContextHooks, p as ElementLabelContext, s as ActivationMode, u as ContextMenuActionContext, v as Plugin, x as Position, y as PluginConfig } from "./copy-content-
|
|
10
|
-
import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-
|
|
9
|
+
import { A as ToolbarState, C as ReactGrabAPI, D as SettableOptions, E as Rect, O as SourceInfo, S as PromptModeContext, T as ReactGrabState, _ as OverlayBounds, a as ActionContext, b as PluginHooks, c as AgentContext, d as DeepPartial, f as DragRect, g as Options, h as GrabbedBox, i as isInstrumentationActive, k as Theme, l as ContextMenuAction, m as ElementLabelVariant, o as ActionContextHooks, p as ElementLabelContext, s as ActivationMode, u as ContextMenuActionContext, v as Plugin, x as Position, y as PluginConfig } from "./copy-content-BJATOqZF.js";
|
|
10
|
+
import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "./index-C_bngsx-.js";
|
|
11
11
|
|
|
12
12
|
//#region src/core/plugins/comment.d.ts
|
|
13
13
|
declare const commentPlugin: Plugin;
|