twombly 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- import{n as e,t}from"./rolldown-runtime-WkwZ5CU-.js";var n=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),ee=Symbol.for(`react.lazy`),d=Symbol.for(`react.activity`),te=Symbol.for(`react.view_transition`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,ie={};function m(e,t,n){this.props=e,this.context=t,this.refs=ie,this.updater=n||f}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function ae(){}ae.prototype=m.prototype;function h(e,t,n){this.props=e,this.context=t,this.refs=ie,this.updater=n||f}var g=h.prototype=new ae;g.constructor=h,p(g,m.prototype),g.isPureReactComponent=!0;var _=Array.isArray;function v(){}var y={H:null,A:null,T:null,S:null},b=Object.prototype.hasOwnProperty;function x(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function oe(e,t){return x(e.type,t,e.props)}function S(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function C(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var w=/\/+/g;function T(e,t){return typeof e==`object`&&e&&e.key!=null?C(``+e.key):t.toString(36)}function se(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(v,v):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function E(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case ee:return c=e._init,E(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+T(e,0):a,_(o)?(i=``,c!=null&&(i=c.replace(w,`$&/`)+`/`),E(o,r,i,``,function(e){return e})):o!=null&&(S(o)&&(o=oe(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(w,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(_(e))for(var u=0;u<e.length;u++)a=e[u],s=l+T(a,u),c+=E(a,r,i,s,o);else if(u=re(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+T(a,u++),c+=E(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return E(se(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function D(e,t,n){if(e==null)return e;var r=[],i=0;return E(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function O(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var k=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function A(e){var t=y.T,n={};n.types=t===null?null:t.types,y.T=n;try{var r=e(),i=y.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(v,k)}catch(e){k(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),y.T=t}}function j(e){var t=y.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else A(j.bind(null,e))}var M={map:D,forEach:function(e,t,n){D(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return D(e,function(){t++}),t},toArray:function(e){return D(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=d,e.Children=M,e.Component=m,e.Fragment=r,e.Profiler=a,e.PureComponent=h,e.StrictMode=i,e.Suspense=l,e.ViewTransition=te,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return y.H.useMemoCache(e)}},e.addTransitionType=j,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=p({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!b.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return x(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)b.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return x(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=S,e.lazy=function(e){return{$$typeof:ee,_payload:{_status:-1,_result:e},_init:O}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=A,e.unstable_useCacheRefresh=function(){return y.H.useCacheRefresh()},e.use=function(e){return y.H.use(e)},e.useActionState=function(e,t,n){return y.H.useActionState(e,t,n)},e.useCallback=function(e,t){return y.H.useCallback(e,t)},e.useContext=function(e){return y.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return y.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return y.H.useEffect(e,t)},e.useEffectEvent=function(e){return y.H.useEffectEvent(e)},e.useId=function(){return y.H.useId()},e.useImperativeHandle=function(e,t,n){return y.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return y.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return y.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return y.H.useMemo(e,t)},e.useOptimistic=function(e,t){return y.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return y.H.useReducer(e,t,n)},e.useRef=function(e){return y.H.useRef(e)},e.useState=function(e){return y.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return y.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return y.H.useTransition()},e.version=`19.3.1`})),r=t(((e,t)=>{t.exports=n()})),i=e(r(),1);async function a(e,t){let n=await fetch(e,{credentials:`same-origin`,...t,headers:{...t?.body?{"content-type":`application/json`}:{},...t?.headers}}),r=await n.json().catch(()=>({}));if(!n.ok)throw Object.assign(Error(r.error||`Failed (${n.status})`),{status:n.status});return r}function o(e,t){fetch(e,{method:`POST`,credentials:`same-origin`,keepalive:!0,headers:{"content-type":`application/json`},body:JSON.stringify(t)}).catch(()=>{})}var s={bootstrap:e=>a(`/api/bootstrap${e?`?canvas=${encodeURIComponent(e)}`:``}`),ticket:(e,t)=>a(`/api/canvases/${e}/ticket`,{method:`POST`,body:JSON.stringify({name:t})}),share:e=>a(`/api/canvases/${e}/share`,{method:`POST`,body:`{}`}),unshare:e=>a(`/api/canvases/${e}/unshare`,{method:`POST`,body:`{}`}),list:()=>a(`/api/canvases`),doc:e=>a(`/api/canvases/${e}`),update:(e,t)=>a(`/api/canvases/${e}`,{method:`PATCH`,body:JSON.stringify(t)}),remove:e=>a(`/api/canvases/${e}`,{method:`DELETE`}),login:()=>a(`/api/login`,{method:`POST`,body:`{}`}),saveSettings:e=>a(`/api/settings`,{method:`POST`,body:JSON.stringify(e)}),signOut:()=>a(`/auth/signout`,{method:`POST`,body:`{}`})},c=5e3;function l(e){return typeof e==`string`?e.replace(/[\u0000-\u001f\u007f]+/g,` `).slice(0,52):null}var u=`abcdefghijkmnpqrstuvwxyz23456789`;function ee(e=12){let t=crypto.getRandomValues(new Uint8Array(e)),n=``;for(let e of t)n+=u[e%32];return n}var d=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},te=(e=>e?d(e):d),ne=e=>e;function re(e,t=ne){let n=i.useSyncExternalStore(e.subscribe,i.useCallback(()=>t(e.getState()),[e,t]),()=>t(e.getInitialState()));return i.useDebugValue(n),n}var f=e=>{let t=te(e),n=e=>re(t,e);return Object.assign(n,t),n},p=(e=>e?f(e):f),ie=.05,m=e=>Math.min(8,Math.max(ie,e)),ae=(e,t)=>({x:(e.x-t.x)/t.z,y:(e.y-t.y)/t.z}),h=(e,t)=>({x:t.x+e.x*t.z,y:t.y+e.y*t.z}),g=(e,t,n)=>({...e,x:e.x+t,y:e.y+n});function _(e,t,n){let r=m(e.z*t),i=r/e.z;return{z:r,x:n.x-(n.x-e.x)*i,y:n.y-(n.y-e.y)*i}}function v(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),w:Math.abs(t.x-e.x),h:Math.abs(t.y-e.y)}}var y=(e,t)=>e.x<t.x+t.w&&e.x+e.w>t.x&&e.y<t.y+t.h&&e.y+e.h>t.y;function b(e){if(!e.length)return null;let t=Math.min(...e.map(e=>e.x)),n=Math.min(...e.map(e=>e.y));return{x:t,y:n,w:Math.max(...e.map(e=>e.x+e.w))-t,h:Math.max(...e.map(e=>e.y+e.h))-n}}function x(e,t,n=null,r={x:0,y:0}){let i=t.width<700?16:48,a=m(n===null?Math.min(2,(t.width-i*2)/Math.max(1,e.w),(t.height-i*2)/Math.max(1,e.h)):n),o=(e,t,n)=>{let r=t>n?(t-n)/2+48:0;return Math.max(-r,Math.min(r,e))};return{z:a,x:(t.width-e.w*a)/2-e.x*a+o(r.x,e.w*a,t.width),y:(t.height-e.h*a)/2-e.y*a+o(r.y,e.h*a,t.height)}}function oe(e,t,n){let r=t<640?24:96,i=m(Math.min(1,(t-r*2)/Math.max(1,e.w),(n-r*2)/Math.max(1,e.h)));return{z:i,x:t/2-(e.x+e.w/2)*i,y:n/2-(e.y+e.h/2)*i}}var S=e=>[e.x,e.x+e.w/2,e.x+e.w],C=e=>[e.y,e.y+e.h/2,e.y+e.h];function w(e,t,n){let r=null;for(let i of t)for(let t of e){let e=i-t;Math.abs(e)<=n&&(r===null||Math.abs(e)<Math.abs(r))&&(r=e)}return r}function T(e,t,n){let r=w(S(e),t.flatMap(S),n)??0,i=w(C(e),t.flatMap(C),n)??0,a={...e,x:e.x+r,y:e.y+i},o=[];for(let e of t){for(let t of S(a))S(e).some(e=>Math.abs(e-t)<.5)&&o.push({axis:`x`,pos:t,start:Math.min(a.y,e.y),end:Math.max(a.y+a.h,e.y+e.h)});for(let t of C(a))C(e).some(e=>Math.abs(e-t)<.5)&&o.push({axis:`y`,pos:t,start:Math.min(a.x,e.x),end:Math.max(a.x+a.w,e.x+e.w)})}return{dx:r,dy:i,guides:o}}var se=class{ticket;onMessage;onState;socket=null;closed=!1;attempts=0;pingTimer=0;retryTimer=0;nextRpc=1;calls=new Map;constructor(e,t,n){this.ticket=e,this.onMessage=t,this.onState=n,this.connect()}async connect(){if(this.closed)return;let e;try{e=await this.ticket()}catch{return this.retry()}if(this.closed)return;let t=new WebSocket(e);this.socket=t,t.onopen=()=>{this.attempts=0,this.onState(!0),window.clearInterval(this.pingTimer),this.pingTimer=window.setInterval(()=>this.send({t:`ping`}),25e3)},t.onmessage=e=>{let t;try{t=JSON.parse(e.data)}catch{return}if(t.t===`rpc`){let e=this.calls.get(t.id);if(!e)return;this.calls.delete(t.id),t.error?e.reject(Error(t.error)):e.resolve(t.result)}else this.onMessage(t)},t.onclose=e=>{if(this.socket===t){window.clearInterval(this.pingTimer),this.onState(!1);for(let e of this.calls.values())e.reject(Error(`Disconnected`));this.calls.clear(),e.code!==4004&&this.retry()}}}retry(){if(this.closed)return;let e=Math.min(8e3,400*2**this.attempts++)+Math.random()*200;window.clearTimeout(this.retryTimer),this.retryTimer=window.setTimeout(()=>this.connect(),e)}send(e){this.socket?.readyState===WebSocket.OPEN&&this.socket.send(JSON.stringify(e))}rpc(e,t){return new Promise((n,r)=>{if(this.socket?.readyState!==WebSocket.OPEN)return r(Error(`Disconnected`));let i=this.nextRpc++;this.calls.set(i,{resolve:n,reject:r}),this.send({t:`rpc`,id:i,op:e,body:t})})}close(){this.closed=!0,window.clearInterval(this.pingTimer),window.clearTimeout(this.retryTimer),this.socket?.close()}};function E(e,t,n,r){let i=(e,t,n)=>3*e*(1-n)**2*n+3*t*(1-n)*n**2+n**3;return a=>{let o=0,s=1;for(let t=0;t<20;t++){let t=(o+s)/2;i(e,n,t)<a?o=t:s=t}return i(t,r,(o+s)/2)}}function D(e,t){let n=2*Math.PI/(e*1.2),r=Math.min(1,Math.max(.05,1-t)),i=e=>{let t=e/1e3;if(t<=0)return 0;if(r>=1)return 1-Math.exp(-n*t)*(1+n*t);let i=n*Math.sqrt(1-r*r);return 1-Math.exp(-r*n*t)*(Math.cos(i*t)+r*n/i*Math.sin(i*t))},a=10;for(;a<6e3&&!(Math.abs(1-i(a))<.001&&Math.abs(i(a)-i(a-10))<5e-4);)a+=10;let o=Array.from({length:61},(e,t)=>t===60?1:Number(i(a*t/60).toFixed(4)));return{ms:a,at:i,css:`linear(${o.join(`, `)})`}}var O=p(()=>({boot:null,canvasId:``,name:``,link:null,connected:!1,ready:!1,gone:!1,role:`guest`,self:``,capabilities:{comments:!1,huddle:!1},peers:[],frames:{},threads:{},camera:{x:0,y:0,z:1},tool:`move`,pencil:{color:matchMedia(`(prefers-color-scheme: dark)`).matches?`#ffffff`:`#1a1a1a`,size:6},strokes:{},liveStroke:null,selectedStroke:null,selection:[],interacting:null,focusId:null,focusReturning:!1,following:null,activeThread:null,draft:null,showResolved:!1,guides:[],marquee:null,spacePanning:!1,awaitingSignIn:!1,shareCopied:!1,sharing:null,namePrompt:null,notice:null,noticeFailed:!1,size:{width:window.innerWidth,height:window.innerHeight},working:!1,invertScroll:!1,dark:!1,chatting:!1,chats:{}})),k=O.setState,A=O.getState,j=new Map,M=new Map,ce=new Set,le={x:window.innerWidth/2,y:window.innerHeight/2},N=new Set,ue=e=>(N.add(e),()=>{N.delete(e)}),P=null,F=null,de=!1,fe,I=!0;function pe(){z&&A().focusId||(I=!1,A().following&&k({following:null}))}function me(){I?Oe():A().focusId&&R(A().camera)}var L=e=>P?.send(e),he=()=>P;function R(e){let{focusId:t,frames:n,size:r}=A(),i=t?n[t]:null;if(z){if(i)return;ve(),ye()}if(i){let t=x(i,r,e.z);k({camera:x(i,r,e.z,{x:e.x-t.x,y:e.y-t.y})})}else k({camera:{...e,z:m(e.z)}});H()}var ge=360,_e=E(.22,1,.36,1),z=0,B=null;function ve(){cancelAnimationFrame(z),z=0}function ye(){B=null,k({focusReturning:!1})}function be(e,t,n){if(ve(),!t||matchMedia(`(prefers-reduced-motion: reduce)`).matches)return k({camera:e}),H(),n?.();let r=A().camera,i=performance.now(),a=t=>{let o=Math.min(1,Math.max(0,t-i)/ge),s=_e(o);k({camera:{x:r.x+(e.x-r.x)*s,y:r.y+(e.y-r.y)*s,z:r.z+(e.z-r.z)*s}}),H(),o<1?z=requestAnimationFrame(a):(z=0,n?.())};z=requestAnimationFrame(a)}function xe(e){let{frames:t,size:n,camera:r,role:i}=A(),a=t[e];a&&(B??={camera:r,autoFit:I},I=!0,k({focusId:e,focusReturning:!1,following:null,interacting:null,selection:i===`owner`?[e]:[],selectedStroke:null,activeThread:null,draft:null}),be(x(a,n),!0))}function V(e=!0){let{focusId:t,frames:n,role:r,size:i}=A();if(!t||!B)return;I=B.autoFit;let a=b(Ee()),o=I&&a?oe(a,i.width,i.height):B.camera;k({focusId:null,focusReturning:!0,selection:r===`owner`&&n[t]?[t]:[],activeThread:null,draft:null}),be(o,e,ye)}var Se=8,Ce=8,we=e=>e*Math.min(Ce,Math.max(1,A().peers.length/Se)),Te=0;function H(){Te||=window.setTimeout(()=>{Te=0,U()},we(66))}function U(){let{camera:e,size:t,peers:n}=A();n.length<2||L({t:`view`,v:{x:(t.width/2-e.x)/e.z,y:(t.height/2-e.y)/e.z,z:e.z,w:t.width,h:t.height}})}var Ee=()=>Object.values(A().frames),De=e=>Object.values(e).sort((e,t)=>e.z-t.z||e.id.localeCompare(t.id));function Oe(){let e={width:window.innerWidth,height:window.innerHeight},{focusId:t,frames:n}=A();if(t&&n[t])return R(x(n[t],e));let r=b(Ee());r&&e.width>0&&e.height>0&&R(oe(r,e.width,e.height))}function ke(){k({size:{width:window.innerWidth,height:window.innerHeight}}),me()}function Ae(){I=!0,A().following&&k({following:null}),Oe()}function je(e,t){if(!e.frameId)return{x:e.x,y:e.y};let n=t[e.frameId];return n?{x:n.x+e.x*n.w,y:n.y+e.y*n.h}:null}function Me(e,t=!1){t&&A().focusId&&A().threads[e]&&A().threads[e].frameId!==A().focusId&&V(!1);let{threads:n,frames:r,camera:i,size:a}=A(),o=n[e];if(!o||(Fe(o),k({activeThread:e,draft:null,showResolved:o.resolved?!0:A().showResolved}),!t))return;I=!1;let s=je(o,r);s&&R({...i,x:a.width/2-180-s.x*i.z,y:a.height/2+60-s.y*i.z})}var Ne=()=>`oc:read:${A().canvasId}`,W=null;function Pe(){if(W)return W;try{W=JSON.parse(localStorage.getItem(Ne())||`{}`)}catch{W={}}return W}function Fe(e){let t=e.comments[e.comments.length-1]?.createdAt||0;Pe()[e.id]=t;try{localStorage.setItem(Ne(),JSON.stringify(W))}catch{}}function Ie(e,t){let n=e.comments[e.comments.length-1];return!!n&&n.author.id!==t&&n.createdAt>(Pe()[e.id]||0)}var Le=`oc:name`;function Re(){try{return localStorage.getItem(Le)||``}catch{return``}}function ze(){return!A().peers.find(e=>e.id===A().self)?.guest||Re()?Promise.resolve(!0):new Promise(e=>{k({namePrompt:t=>{k({namePrompt:null});let n=t?.trim();if(!n)return e(!1);try{localStorage.setItem(Le,n)}catch{}L({t:`name`,name:n}),e(!0)}})})}var Be=`twombly:invert-scroll`;function Ve(){try{return localStorage.getItem(Be)===`1`}catch{return!1}}var He=()=>A().boot?.mode===`local`||!!A().boot?.me;function Ue(){let e=!A().invertScroll;if(k({invertScroll:e}),He())s.saveSettings({invertScroll:e}).catch(()=>X(`Could not save that`));else try{localStorage.setItem(Be,e?`1`:`0`)}catch{}}var We=`twombly:theme`,Ge=matchMedia(`(prefers-color-scheme: dark)`),G=null;try{let e=localStorage.getItem(We);(e===`light`||e===`dark`)&&(G=e)}catch{}function K(){let e=G?G===`dark`:Ge.matches;document.documentElement.dataset.colorScheme=e?`dark`:`light`;let{pencil:t}=A(),[n,r]=e?[`#1a1a1a`,`#ffffff`]:[`#ffffff`,`#1a1a1a`];k({dark:e,pencil:t.color===n?{...t,color:r}:t})}Ge.addEventListener(`change`,K),K();function Ke(e){G=e;try{localStorage.setItem(We,e)}catch{}K()}function qe(){G=null,K()}function Je(){let e=A().dark?`light`:`dark`;Ke(e),He()&&s.saveSettings({theme:e}).catch(()=>X(`Could not save that`))}var Ye=0;function Xe(e){window.clearTimeout(Ye),k({working:e>0}),e>0&&(Ye=window.setTimeout(()=>k({working:!1}),e))}var q=[],Ze=[];function J(e){q.push(e),q.length>50&&q.shift(),Ze.length=0}function Qe(e){let{frames:t}=A();if(e.kind===`stroke-added`)return A().strokes[e.stroke.id]?(ot(e.stroke.id),{kind:`stroke-removed`,stroke:e.stroke}):null;if(e.kind===`stroke-removed`)return at(e.stroke),{kind:`stroke-added`,stroke:e.stroke};if(e.kind===`remove`){for(let t of e.frames)L({t:`frame.restore`,frame:t});return{kind:`restore`,frames:e.frames}}if(e.kind===`restore`){for(let t of e.frames)L({t:`frame.remove`,id:t.id});return{kind:`remove`,frames:e.frames.map(e=>t[e.id]??e)}}let n=e.frames.filter(({id:e})=>t[e]);if(!n.length)return null;let r=n.map(({id:e,before:n})=>({id:e,before:Object.fromEntries(Object.keys(n).map(n=>[n,t[e][n]]))}));for(let{id:e,before:t}of n)nt(e,t);return{kind:`patch`,frames:r}}function $e(e,t){for(;e.length;){let n=Qe(e.pop());if(n){t.push(n);return}}}function et(){$e(q,Ze)}function tt(){$e(Ze,q)}function nt(e,t){let{frames:n}=A();n[e]&&(k({frames:{...n,[e]:{...n[e],...t}}}),L({t:`frame.patch`,id:e,patch:t}))}function rt(e){ft();let t=e===`pencil`||e===`comment`?{selection:[]}:{};k({tool:e,draft:null,selectedStroke:null,...e===`move`?{}:{interacting:null},...t})}function it(e){k({pencil:{...A().pencil,...e}})}function at(e){k({strokes:{...A().strokes,[e.id]:e}}),L({t:`stroke.add`,stroke:e})}function ot(e){let{[e]:t,...n}=A().strokes;k({strokes:n,selectedStroke:A().selectedStroke===e?null:A().selectedStroke}),L({t:`stroke.remove`,id:e})}function st(e){at(e),J({kind:`stroke-added`,stroke:e})}function ct(){let{selection:e,frames:t,role:n,selectedStroke:r,strokes:i}=A();if(r&&i[r])return J({kind:`stroke-removed`,stroke:i[r]}),ot(r);if(n!==`owner`||!e.length||A().focusId)return;let a=e.map(e=>t[e]).filter(Boolean);J({kind:`remove`,frames:a});for(let e of a)L({t:`frame.remove`,id:e.id});k({selection:[]})}var lt=300,Y=new Map;function ut(e,t){window.clearTimeout(Y.get(e));let n=A().chats[e],r=()=>{let{[e]:t,...n}=A().chats;k({chats:n}),Y.delete(e)},i=()=>{let t=A().chats[e];if(!t)return r();k({chats:{...A().chats,[e]:{...t,live:!1}}}),Y.set(e,window.setTimeout(r,lt))};t?(k({chats:{...A().chats,[e]:{text:t,live:!0}}}),Y.set(e,window.setTimeout(i,c))):n&&i()}function dt(){k({chatting:!0})}function ft(){A().chatting&&(k({chatting:!1}),L({t:`chat`,text:null}))}function pt(e){let t=A();switch(e.t){case`hello`:{let n={};for(let t of e.doc.frames)n[t.id]=t;let r={};for(let t of e.threads)r[t.id]=t;let i={};for(let t of e.doc.strokes??[])i[t.id]=t;k({self:e.self,role:e.role,frames:n,threads:r,strokes:i,peers:e.peers,capabilities:e.capabilities,name:e.doc.name,ready:!0}),t.focusId&&!n[t.focusId]&&V(),Xe(e.working),document.title=`${e.doc.name} – Twombly`,me();let a=new URLSearchParams(location.search).get(`comment`);a&&r[a]&&(Me(a,!0),history.replaceState(null,``,location.pathname));let o=Re(),s=e.peers.find(t=>t.id===e.self);s?.guest&&o&&s.name!==o&&L({t:`name`,name:o}),setTimeout(U,100);break}case`peers`:{for(let t of j.keys())e.peers.some(e=>e.id===t)||(j.delete(t),M.delete(t));for(let n of Object.keys(t.chats))e.peers.some(e=>e.id===n)||ut(n,null);let n=t.following&&e.peers.some(e=>e.id===t.following)?t.following:null;k({peers:e.peers,following:n}),e.peers.length>t.peers.length&&setTimeout(U,50);break}case`pointer`:j.set(e.from,e.p);break;case`chat`:ut(e.from,l(e.text));break;case`view`:M.set(e.from,{...e.v,at:performance.now()});break;case`frame.upsert`:{let n=ce.has(e.frame.id)?t.frames[e.frame.id]:null,r=n?{...e.frame,x:n.x,y:n.y,w:n.w,h:n.h}:e.frame;k({frames:{...A().frames,[r.id]:r}}),n||me();break}case`frame.remove`:{let{[e.id]:n,...r}=A().frames;k({frames:r,selection:t.selection.filter(t=>t!==e.id),interacting:t.interacting===e.id?null:t.interacting}),t.focusId===e.id&&V();break}case`strokes`:{let t={...A().strokes};for(let n of e.strokes)t[n.id]=n;k({strokes:t});break}case`stroke.remove`:{let{[e.id]:n,...r}=A().strokes;k({strokes:r,selectedStroke:t.selectedStroke===e.id?null:t.selectedStroke});break}case`canvas`:k({name:e.name}),document.title=`${e.name} – Twombly`;break;case`working`:Xe(e.ms);break;case`thread`:k({threads:{...A().threads,[e.thread.id]:e.thread}}),t.activeThread===e.thread.id&&Fe(e.thread);break;case`thread.remove`:{let{[e.id]:n,...r}=A().threads;k({threads:r,activeThread:t.activeThread===e.id?null:t.activeThread});break}case`deleted`:mt();break;case`error`:X(e.message)}for(let t of N)t(e)}async function mt(){let{boot:e}=A();if(e?.mode===`local`)return k({link:null,awaitingSignIn:!1}),await s.bootstrap(A().canvasId).catch(()=>null),Z();P?.close(),k({gone:!0})}var ht=0;function X(e,t=!1){k({notice:e,noticeFailed:t}),window.clearTimeout(ht),ht=window.setTimeout(()=>k({notice:null}),t?5e3:2600)}function Z(){P?.close();let e=A().canvasId;P=new se(()=>s.ticket(e,Re()||void 0).then(e=>e.url),pt,e=>k({connected:e}))}var gt=``;function _t(){let{focusId:e,interacting:t,selection:n,activeThread:r}=A();return e?{via:`fullscreen`,frames:[e],thread:r}:t?{via:`interacting`,frames:[t],thread:r}:{via:n.length?`selected`:null,frames:n,thread:r}}function vt(e=!1){let t=_t(),n=JSON.stringify(t);n===gt&&!e||F?.readyState!==WebSocket.OPEN||(gt=n,F.send(JSON.stringify({t:`context`,context:t})))}function yt(e){O.subscribe((e,t)=>{(e.focusId!==t.focusId||e.interacting!==t.interacting||e.selection!==t.selection||e.activeThread!==t.activeThread)&&vt()});let t=()=>{let n=new WebSocket(`${location.origin.replace(/^http/,`ws`)}/local/${e}?events=1`);F=n,n.onopen=()=>vt(!0),n.onmessage=e=>{let t;try{t=JSON.parse(e.data)}catch{return}if(t.t===`auth`){let e=A().boot;k({boot:e&&{...e,me:t.me}}),t.me&&de?(de=!1,bt()):t.me&&A().link&&Z()}else t.t===`settings`?(k({invertScroll:t.settings.invertScroll}),t.settings.theme&&Ke(t.settings.theme)):t.t===`share-progress`?k({sharing:{done:t.done,total:t.total}}):t.t===`shared`&&(k({link:t.url,sharing:null}),Z())},n.onclose=()=>{F===n&&setTimeout(t,1500)}};t()}async function bt(){let{canvasId:e,link:t}=A();if(!t){k({awaitingSignIn:!1,sharing:{done:0,total:Ee().length}});try{let{url:t}=await s.share(e);k({link:t,sharing:null}),Ct(t)}catch(e){k({sharing:null}),X(e instanceof Error?e.message:`Could not share`,!0)}}}function xt(){let{boot:e,link:t}=A();e?.mode===`local`&&!e.me?(de=!t,k({awaitingSignIn:!t,sharing:null}),s.login().catch(()=>{k({awaitingSignIn:!1}),X(`Could not open sign-in`,!0)})):e?.mode!==`hosted`&&bt()}function St(e){navigator.clipboard?.writeText(e).then(()=>X(`Link copied`)).catch(()=>{})}function Ct(e){navigator.clipboard?.writeText(e).then(()=>{k({shareCopied:!0}),clearTimeout(fe),fe=setTimeout(()=>k({shareCopied:!1}),1400)}).catch(()=>{})}async function wt(){let{boot:e,canvasId:t}=A();e?.mode===`local`?(await s.unshare(t),k({link:null,awaitingSignIn:!1})):(await s.remove(t),location.href=`/`)}function Tt(e){let t=e.canvas;k({boot:e,canvasId:t.id,name:t.name,link:t.url,invertScroll:e.settings?.invertScroll??Ve()}),e.mode===`hosted`&&e.me&&!e.settings&&(Ve()||G)&&s.saveSettings({invertScroll:Ve(),...G&&{theme:G}}).catch(()=>{}),e.mode===`local`&&yt(t.id),Z()}var Et=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Dt=t(((e,t)=>{t.exports=Et()})),Q=Dt();function Ot({name:e,picture:t,color:n,size:r=24,style:i}){return(0,Q.jsx)(`span`,{className:`face`,style:{width:r,height:r,background:n,fontSize:Math.round(r*.46),...i},children:t?(0,Q.jsx)(`img`,{src:t,alt:``,referrerPolicy:`no-referrer`}):(e||`?`)[0].toUpperCase()})}function kt(){let e=O(e=>e.peers),t=O(e=>e.self),n=O(e=>e.following),r=e.find(e=>e.id===t),i=new Set(r?[r.userId]:[]),a=e.filter(e=>!i.has(e.userId)&&(i.add(e.userId),!0)),o=a.slice(0,5),s=a.length-o.length;return a.length?(0,Q.jsxs)(`div`,{className:`faces`,children:[s>0&&(0,Q.jsxs)(`span`,{className:`face more`,children:[`+`,s]}),o.map(e=>(0,Q.jsx)(`button`,{className:`face-button`+(n===e.id?` following`:``),style:{"--peer":e.color},title:n===e.id?`Stop following ${e.name}`:`Follow ${e.name}`,"aria-label":n===e.id?`Stop following ${e.name}`:`Follow ${e.name}`,onClick:()=>O.setState({following:n===e.id?null:e.id,interacting:null}),children:(0,Q.jsx)(Ot,{name:e.name,picture:e.picture,color:e.color})},e.id))]}):null}var $=(e,t=`0 0 24 24`)=>({size:n=16})=>(0,Q.jsx)(`svg`,{width:n,height:n,viewBox:t,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:e}),At=`M9.80282 4.62973L15.8364 6.99069C19.3164 8.35243 21.0564 9.03329 20.9987 10.1133C20.941 11.1934 19.1251 11.6886 15.4933 12.6791C14.412 12.974 13.8713 13.1215 13.4964 13.4963C13.1215 13.8712 12.9741 14.4119 12.6791 15.4933C11.6887 19.125 11.1934 20.9409 10.1134 20.9986C9.03335 21.0563 8.35249 19.3163 6.99075 15.8363L4.62979 9.80276C3.20411 6.15934 2.49127 4.33764 3.41448 3.41442C4.3377 2.49121 6.15941 3.20405 9.80282 4.62973Z`,jt=$((0,Q.jsx)(`path`,{d:At})),Mt=$((0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`path`,{d:`M18.5 11.5V8.75C18.5 7.7835 19.2835 7 20.25 7C21.2165 7 22 7.7835 22 8.75V14.8C22 18.7765 18.7764 22 14.8 22H12.0588M8 14L5.61507 11.2176C5.22468 10.7621 4.65476 10.5 4.05489 10.5H3.91898C2.85916 10.5 2 11.3592 2 12.419C2 12.7978 2.11214 13.1682 2.32229 13.4834L5.7812 18.6718C7.16738 20.7511 9.50102 22 12 22`}),(0,Q.jsx)(`path`,{d:`M18.5 8.5V5.75C18.5 4.7835 17.7165 4 16.75 4C15.7835 4 15 4.7835 15 5.75V10.5`}),(0,Q.jsx)(`path`,{d:`M15 10.5V3.75C15 2.7835 14.2165 2 13.25 2C12.2835 2 11.5 2.7835 11.5 3.75V10`}),(0,Q.jsx)(`path`,{d:`M11.5 10V5.75C11.5 4.7835 10.7165 4 9.75 4C8.7835 4 8 4.7835 8 5.75V14`})]})),Nt=$((0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`path`,{d:`M3.78181 16.3092L3 21L7.69086 20.2182C8.50544 20.0825 9.25725 19.6956 9.84119 19.1116L20.4198 8.53288C21.1934 7.75922 21.1934 6.5049 20.4197 5.73126L18.2687 3.58024C17.495 2.80658 16.2406 2.80659 15.4669 3.58027L4.88841 14.159C4.30447 14.7429 3.91757 15.4947 3.78181 16.3092Z`}),(0,Q.jsx)(`path`,{d:`M14 6L18 10`})]})),Pt=$((0,Q.jsx)(`path`,{d:`M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9`})),Ft=$((0,Q.jsx)(`path`,{d:`M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7`})),It=$((0,Q.jsx)(`path`,{d:`M12 3.5a8.5 8.5 0 0 1 0 17H3.5V12A8.5 8.5 0 0 1 12 3.5Z`})),Lt=$((0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`path`,{d:`M4 15v-3a8 8 0 0 1 16 0v3`}),(0,Q.jsx)(`rect`,{x:`3`,y:`14`,width:`4.5`,height:`6.5`,rx:`1.5`}),(0,Q.jsx)(`rect`,{x:`16.5`,y:`14`,width:`4.5`,height:`6.5`,rx:`1.5`})]})),Rt=$((0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`rect`,{x:`9`,y:`3`,width:`6`,height:`11`,rx:`3`}),(0,Q.jsx)(`path`,{d:`M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v3`})]})),zt=$((0,Q.jsx)(Q.Fragment,{children:(0,Q.jsx)(`path`,{d:`m3.5 3.5 17 17M9 9v2a3 3 0 0 0 4.9 2.3M15 10.5V6a3 3 0 0 0-5.7-1.3M5.5 11.5a6.5 6.5 0 0 0 10.2 5.3M18.5 11.5c0 .7-.1 1.3-.3 1.9M12 18v3`})})),Bt=$((0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`path`,{d:`M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4`}),(0,Q.jsx)(`path`,{d:`m15 8 4 4-4 4M19 12H9`})]})),Vt=$((0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8.5`}),(0,Q.jsx)(`path`,{d:`m8.5 12.2 2.4 2.4 4.6-5`})]})),Ht=$((0,Q.jsx)(`path`,{d:`m6.5 6.5 11 11m0-11-11 11`})),Ut=({size:e=16})=>(0,Q.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,Q.jsx)(`circle`,{cx:`5`,cy:`12`,r:`1.8`}),(0,Q.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.8`}),(0,Q.jsx)(`circle`,{cx:`19`,cy:`12`,r:`1.8`})]}),Wt=`M12 20.5s-8.5-5-8.5-11A4.75 4.75 0 0 1 12 6.6a4.75 4.75 0 0 1 8.5 2.9c0 6-8.5 11-8.5 11Z`,Gt=$((0,Q.jsx)(`path`,{fill:`currentColor`,d:Wt})),Kt=$((0,Q.jsx)(`path`,{d:Wt})),qt=$((0,Q.jsx)(`path`,{d:`M4.5 6.5h15M9.5 6.5V5a1.5 1.5 0 0 1 1.5-1.5h2A1.5 1.5 0 0 1 14.5 5v1.5m3.5 0-.7 12a2 2 0 0 1-2 2H8.7a2 2 0 0 1-2-2L6 6.5`})),Jt=$((0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`}),(0,Q.jsx)(`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`})]})),Yt=$((0,Q.jsx)(`path`,{d:`M12 19V5m-6.5 6.5L12 5l6.5 6.5`})),Xt=$((0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8.5`}),(0,Q.jsx)(`path`,{d:`M8.5 14.5a4.5 4.5 0 0 0 7 0`}),(0,Q.jsx)(`path`,{d:`M9 9.5v.01M15 9.5v.01`,strokeWidth:`2`})]})),Zt=$((0,Q.jsx)(`path`,{d:`M12 5.5v13m-6.5-6.5h13`})),Qt=$((0,Q.jsx)(`path`,{d:`M5.5 12h13`})),$t=$((0,Q.jsx)(`path`,{d:`M10 14a4 4 0 0 0 5.7 0l3-3A4 4 0 0 0 13 5.3l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1`})),en=$((0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`path`,{d:`M4.5 6h15`,strokeWidth:`1.25`}),(0,Q.jsx)(`path`,{d:`M4.5 12h15`,strokeWidth:`2.25`}),(0,Q.jsx)(`path`,{d:`M4.5 18h15`,strokeWidth:`3.5`})]})),tn=$((0,Q.jsx)(`path`,{d:`M3 12v2.5c0 3.3 0 4.95 1.03 5.97C5.05 21.5 6.7 21.5 10 21.5h4c3.3 0 4.95 0 5.97-1.03C21 19.45 21 17.8 21 14.5V12c0-1.68 0-2.52-.36-3.25-.35-.73-1.02-1.24-2.34-2.28l-2-1.56C14.23 3.3 13.2 2.5 12 2.5s-2.23.8-4.3 2.41l-2 1.56C4.38 7.5 3.71 8.01 3.36 8.74 3 9.47 3 10.31 3 12Z`})),nn=$((0,Q.jsx)(`path`,{d:`M19 12V9c0-1.89 0-2.83-.59-3.41C17.83 5 16.89 5 15 5h-3M5 12v3c0 1.89 0 2.83.59 3.41C6.17 19 7.11 19 9 19h3`})),rn=$((0,Q.jsx)(`path`,{d:`M13 4v3c0 1.89 0 2.83.59 3.41.58.59 1.52.59 3.41.59h3M11 20v-3c0-1.89 0-2.83-.59-3.41C9.83 13 8.89 13 7 13H4`})),an=$((0,Q.jsx)(`path`,{d:`M8 19V5M3.5 9.5 8 5l4.5 4.5M16 5v14m4.5-4.5L16 19l-4.5-4.5`})),on=`url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'28'%20height%3D'28'%20viewBox%3D'0%200%2028%2028'%3E%3Cpath%20d%3D'M14%203.5a10.5%2010.5%200%200%201%200%2021H3.5V14A10.5%2010.5%200%200%201%2014%203.5Z'%20fill%3D'%23fff'%20stroke%3D'%23000'%20stroke-width%3D'1.5'%2F%3E%3C%2Fsvg%3E") 3 25, crosshair`,sn=`Save https://twombly.app/skill.md as your Twombly skill, then use it to put this project's main screens on a canvas.`;export{ue as $,qt as A,T as At,Ct as B,Ut as C,D as Ct,an as D,v as Dt,Zt as E,y as Et,pe as F,ee as Ft,X as G,xe as H,Ke as I,s as It,ce as J,qe as K,xt as L,o as Lt,kt as M,p as Mt,Dt as N,c as Nt,Jt as O,g as Ot,st as P,l as Pt,le as Q,ft as R,r as Rt,Qt as S,E as St,Nt as T,m as Tt,V as U,ze as V,Ae as W,we as X,Ie as Y,Fe as Z,tn as _,Ue as _t,Vt as a,tt as at,Rt as b,O as bt,Ht as c,he as ct,Xt as d,R as dt,dt as et,nn as f,it as ft,Kt as g,je as gt,Gt as h,wt as ht,At as i,J as it,Ot as j,_ as jt,en as k,ae as kt,rn as l,L as lt,Lt as m,Tt as mt,Yt as n,nt,Ft as o,ct as ot,Mt as p,rt as pt,De as q,on as r,j as rt,Pt as s,ke as st,sn as t,Me as tt,It as u,U as ut,Bt as v,Je as vt,jt as w,h as wt,zt as x,M as xt,$t as y,et as yt,St as z};