pagecast 0.1.0 → 0.1.1
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/.codex/skills/publish-report/SKILL.md +15 -7
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +2 -2
- package/plugin/hooks/detect-report.mjs +8 -5
- package/plugin/skills/publish-report/SKILL.md +25 -16
- package/public/assets/dnd-vendor-Cz0hTDTU.js +5 -0
- package/public/assets/index-CKg3jtU_.js +60 -0
- package/public/assets/index-CfB-rxjb.css +1 -0
- package/public/index.html +3 -3
- package/src/markdown.js +0 -0
- package/src/server.js +80 -3
- package/public/assets/dnd-vendor-BtfBOykZ.js +0 -1
- package/public/assets/index-BTCh8CIt.js +0 -54
- package/public/assets/index-XOrnLHdD.css +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: publish-report
|
|
3
|
-
description: Publish
|
|
3
|
+
description: Publish local HTML, Markdown, or built static web projects with Pagecast as shareable public URLs. Use whenever Codex creates or finishes an .html, .htm, .md, .markdown, or static build output that a person could share (a report, plan, doc, dashboard, or analysis) — proactively offer to publish it without being asked — and whenever the user asks to publish, share, make a public link for, or send a local report/doc/dashboard/web project from terminal, Codex CLI, or Codex desktop.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Publish With Pagecast
|
|
@@ -16,21 +16,29 @@ Cloudflare Pages project.
|
|
|
16
16
|
Never publish without explicit confirmation. Publishing makes the selected
|
|
17
17
|
artifact publicly reachable.
|
|
18
18
|
|
|
19
|
+
## Be Proactive
|
|
20
|
+
|
|
21
|
+
**Default to offering.** Right after you create or finish a shareable file, offer
|
|
22
|
+
once to publish it — do not wait for the user to ask, and do not stay silent
|
|
23
|
+
because you are unsure it is "worth it." If it could be shared, offer. When it is
|
|
24
|
+
borderline, offer anyway; the user can say no.
|
|
25
|
+
|
|
19
26
|
## What To Publish
|
|
20
27
|
|
|
21
|
-
|
|
28
|
+
Proactively offer once for any shareable artifact you produce:
|
|
22
29
|
|
|
23
30
|
- HTML reports, dashboards, coverage reports, Playwright/Lighthouse output, or
|
|
24
31
|
static single-page mini apps.
|
|
25
|
-
- Markdown reports, plans, docs, proposals, release notes, or summaries
|
|
26
|
-
be read by someone else.
|
|
32
|
+
- Markdown reports, plans, docs, proposals, release notes, analyses, or summaries
|
|
33
|
+
meant to be read by someone else.
|
|
27
34
|
- Static web projects after they are built. Publish the generated entry file,
|
|
28
35
|
usually `dist/index.html`, `build/index.html`, `out/index.html`, or
|
|
29
36
|
`public/index.html`; Pagecast stages sibling assets from that output folder.
|
|
30
37
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
Only skip (do not offer) clearly non-shareable files: scratch/draft notes the
|
|
39
|
+
user is keeping private, source files, repo metadata (README/CHANGELOG,
|
|
40
|
+
AGENTS.md/CLAUDE.md), task files, secrets, config files, dependency/build
|
|
41
|
+
folders, and hidden files.
|
|
34
42
|
|
|
35
43
|
## Confirmation
|
|
36
44
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pagecast",
|
|
3
3
|
"displayName": "Pagecast",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "When your agent finishes an HTML or Markdown report, plan, or doc, it offers to publish it to a shareable public URL with Pagecast.",
|
|
4
|
+
"version": "0.3.0",
|
|
5
|
+
"description": "When your agent finishes an HTML or Markdown report, plan, or doc, it proactively offers to publish it to a shareable public URL with Pagecast.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Pagecast"
|
|
8
8
|
},
|
|
@@ -85,11 +85,14 @@ async function main() {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
const additionalContext =
|
|
88
|
-
`
|
|
89
|
-
`
|
|
90
|
-
`
|
|
91
|
-
`
|
|
92
|
-
`
|
|
88
|
+
`A shareable HTML/Markdown file was just written at "${filePath}". ` +
|
|
89
|
+
`Default action: when you finish this turn, proactively offer ONCE to publish it — ` +
|
|
90
|
+
`ask the user exactly "Want me to publish this with Pagecast? It'll create a shareable public link." ` +
|
|
91
|
+
`Offer unless the file is clearly internal/scratch (a draft note, a config/source file, or repo meta ` +
|
|
92
|
+
`like README/CHANGELOG/TODO — those were already filtered, so lean toward offering). ` +
|
|
93
|
+
`Do not stay silent just because you are unsure. ` +
|
|
94
|
+
`Only on an explicit yes, run \`npx pagecast publish "${filePath}" --json\` and return the URL. ` +
|
|
95
|
+
`Never publish without an explicit yes, and ask at most once for this file.`;
|
|
93
96
|
|
|
94
97
|
process.stdout.write(
|
|
95
98
|
JSON.stringify({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: publish-report
|
|
3
|
-
description: Use
|
|
4
|
-
version: 0.
|
|
3
|
+
description: Use right after an HTML or Markdown report, plan, doc, dashboard, or built static web project is created (or when the user wants to share one). Proactively offer to publish it with Pagecast as a shareable public link, then return the URL. Default to offering; only skip clearly internal/scratch files.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Publish with Pagecast
|
|
@@ -12,22 +12,31 @@ right moment, then do it on a yes.
|
|
|
12
12
|
|
|
13
13
|
## When to offer
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
**Default to offering.** Whenever you produce an `.html`/`.htm` or
|
|
16
|
+
`.md`/`.markdown` file that a person could reasonably share, proactively offer to
|
|
17
|
+
publish it — once, right after you finish making it. Do **not** wait to be asked,
|
|
18
|
+
and do **not** stay silent because you are unsure whether it is "worth it." If it
|
|
19
|
+
could be shared, offer.
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
- A
|
|
21
|
+
This includes:
|
|
22
|
+
|
|
23
|
+
- A report you generated — test/coverage/Lighthouse/Playwright output, a data
|
|
24
|
+
dashboard, an analysis, a "here's what I built/found" summary.
|
|
25
|
+
- A written plan, proposal, design doc, spec, release notes, or doc.
|
|
26
|
+
- A static web project that was just built, with a generated entry file such as
|
|
22
27
|
`dist/index.html`, `build/index.html`, `out/index.html`, or `public/index.html`.
|
|
23
|
-
-
|
|
24
|
-
- A `PostToolUse` hint
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
- Any time the user says "share", "publish", "make a link for", or "send" a doc.
|
|
29
|
+
- A `PostToolUse` hint fired saying an HTML/Markdown file was created — treat that
|
|
30
|
+
as a cue to offer.
|
|
31
|
+
|
|
32
|
+
**The only files to skip** (don't offer): scratch/draft notes the user is clearly
|
|
33
|
+
keeping private, source code, config files, secrets, and repo-meta files (README,
|
|
34
|
+
CHANGELOG, CONTRIBUTING, LICENSE, AGENTS.md, CLAUDE.md, TODO/tasks), or anything
|
|
35
|
+
under `node_modules`/`dist` build internals. When it is borderline, **offer** —
|
|
36
|
+
the user can just say no.
|
|
37
|
+
|
|
38
|
+
Ask **at most once per file.** If the user declines or ignores the offer, drop it
|
|
39
|
+
and don't re-ask for that file. Never nag across multiple turns.
|
|
31
40
|
|
|
32
41
|
## The one question to ask
|
|
33
42
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{r as An,g as Mn,a as u,R as z}from"./motion-vendor-CDgKLzlB.js";var ct={exports:{}},P={};var Nt;function Tn(){if(Nt)return P;Nt=1;var e=An();function t(a){var i="https://react.dev/errors/"+a;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)i+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(a,i,d){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:f==null?null:""+f,children:a,containerInfo:i,implementation:d}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(a,i){if(a==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return P.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,P.createPortal=function(a,i){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error(t(299));return s(a,i,null,d)},P.flushSync=function(a){var i=c.T,d=r.p;try{if(c.T=null,r.p=2,a)return a()}finally{c.T=i,r.p=d,r.d.f()}},P.preconnect=function(a,i){typeof a=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,r.d.C(a,i))},P.prefetchDNS=function(a){typeof a=="string"&&r.d.D(a)},P.preinit=function(a,i){if(typeof a=="string"&&i&&typeof i.as=="string"){var d=i.as,f=l(d,i.crossOrigin),h=typeof i.integrity=="string"?i.integrity:void 0,g=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;d==="style"?r.d.S(a,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:f,integrity:h,fetchPriority:g}):d==="script"&&r.d.X(a,{crossOrigin:f,integrity:h,fetchPriority:g,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},P.preinitModule=function(a,i){if(typeof a=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var d=l(i.as,i.crossOrigin);r.d.M(a,{crossOrigin:d,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&r.d.M(a)},P.preload=function(a,i){if(typeof a=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var d=i.as,f=l(d,i.crossOrigin);r.d.L(a,d,{crossOrigin:f,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},P.preloadModule=function(a,i){if(typeof a=="string")if(i){var d=l(i.as,i.crossOrigin);r.d.m(a,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:d,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else r.d.m(a)},P.requestFormReset=function(a){r.d.r(a)},P.unstable_batchedUpdates=function(a,i){return a(i)},P.useFormState=function(a,i,d){return c.H.useFormState(a,i,d)},P.useFormStatus=function(){return c.H.useHostTransitionStatus()},P.version="19.2.6",P}var Lt;function In(){if(Lt)return ct.exports;Lt=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ct.exports=Tn(),ct.exports}var me=In();const ho=Mn(me);function Nn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.useMemo(()=>r=>{t.forEach(o=>o(r))},t)}const tt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xe(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function yt(e){return"nodeType"in e}function B(e){var t,n;return e?xe(e)?e:yt(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function mt(e){const{Document:t}=B(e);return e instanceof t}function Be(e){return xe(e)?!1:e instanceof B(e).HTMLElement}function Kt(e){return e instanceof B(e).SVGElement}function De(e){return e?xe(e)?e.document:yt(e)?mt(e)?e:Be(e)||Kt(e)?e.ownerDocument:document:document:document}const Z=tt?u.useLayoutEffect:u.useEffect;function wt(e){const t=u.useRef(e);return Z(()=>{t.current=e}),u.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function Ln(){const e=u.useRef(null),t=u.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=u.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Pe(e,t){t===void 0&&(t=[e]);const n=u.useRef(e);return Z(()=>{n.current!==e&&(n.current=e)},t),n}function Fe(e,t){const n=u.useRef();return u.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Ge(e){const t=wt(e),n=u.useRef(null),r=u.useCallback(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function gt(e){const t=u.useRef();return u.useEffect(()=>{t.current=e},[e]),t.current}let lt={};function $e(e,t){return u.useMemo(()=>{if(t)return t;const n=lt[e]==null?0:lt[e]+1;return lt[e]=n,e+"-"+n},[e,t])}function qt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((s,c)=>{const l=Object.entries(c);for(const[a,i]of l){const d=s[a];d!=null&&(s[a]=d+e*i)}return s},{...t})}}const we=qt(1),_e=qt(-1);function kn(e){return"clientX"in e&&"clientY"in e}function xt(e){if(!e)return!1;const{KeyboardEvent:t}=B(e.target);return t&&e instanceof t}function Pn(e){if(!e)return!1;const{TouchEvent:t}=B(e.target);return t&&e instanceof t}function ht(e){if(Pn(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return kn(e)?{x:e.clientX,y:e.clientY}:null}const Je=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Je.Translate.toString(e),Je.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),kt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function _n(e){return e.matches(kt)?e:e.querySelector(kt)}const zn={display:"none"};function Bn(e){let{id:t,value:n}=e;return z.createElement("div",{id:t,style:zn},n)}function Fn(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return z.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function $n(){const[e,t]=u.useState("");return{announce:u.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Vt=u.createContext(null);function Un(e){const t=u.useContext(Vt);u.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Xn(){const[e]=u.useState(()=>new Set),t=u.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[u.useCallback(r=>{let{type:o,event:s}=r;e.forEach(c=>{var l;return(l=c[o])==null?void 0:l.call(c,s)})},[e]),t]}const Yn={draggable:`
|
|
2
|
+
To pick up a draggable item, press the space bar.
|
|
3
|
+
While dragging, use the arrow keys to move the item.
|
|
4
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
5
|
+
`},jn={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Hn(e){let{announcements:t=jn,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Yn}=e;const{announce:s,announcement:c}=$n(),l=$e("DndLiveRegion"),[a,i]=u.useState(!1);if(u.useEffect(()=>{i(!0)},[]),Un(u.useMemo(()=>({onDragStart(f){let{active:h}=f;s(t.onDragStart({active:h}))},onDragMove(f){let{active:h,over:g}=f;t.onDragMove&&s(t.onDragMove({active:h,over:g}))},onDragOver(f){let{active:h,over:g}=f;s(t.onDragOver({active:h,over:g}))},onDragEnd(f){let{active:h,over:g}=f;s(t.onDragEnd({active:h,over:g}))},onDragCancel(f){let{active:h,over:g}=f;s(t.onDragCancel({active:h,over:g}))}}),[s,t])),!a)return null;const d=z.createElement(z.Fragment,null,z.createElement(Bn,{id:r,value:o.draggable}),z.createElement(Fn,{id:l,announcement:c}));return n?me.createPortal(d,n):d}var T;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(T||(T={}));function Qe(){}function vo(e,t){return u.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function po(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const q=Object.freeze({x:0,y:0});function Gt(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Jt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Wn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Pt(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function Qt(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function _t(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const bo=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=_t(t,t.left,t.top),s=[];for(const c of r){const{id:l}=c,a=n.get(l);if(a){const i=Gt(_t(a),o);s.push({id:l,data:{droppableContainer:c,value:i}})}}return s.sort(Jt)},Kn=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Pt(t),s=[];for(const c of r){const{id:l}=c,a=n.get(l);if(a){const i=Pt(a),d=o.reduce((h,g,R)=>h+Gt(i[R],g),0),f=Number((d/4).toFixed(4));s.push({id:l,data:{droppableContainer:c,value:f}})}}return s.sort(Jt)};function qn(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),c=o-r,l=s-n;if(r<o&&n<s){const a=t.width*t.height,i=e.width*e.height,d=c*l,f=d/(a+i-d);return Number(f.toFixed(4))}return 0}const Vn=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const s of r){const{id:c}=s,l=n.get(c);if(l){const a=qn(l,t);a>0&&o.push({id:c,data:{droppableContainer:s,value:a}})}}return o.sort(Wn)};function Gn(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Zt(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:q}function Jn(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return o.reduce((c,l)=>({...c,top:c.top+e*l.y,bottom:c.bottom+e*l.y,left:c.left+e*l.x,right:c.right+e*l.x}),{...n})}}const Qn=Jn(1);function Zn(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function er(e,t,n){const r=Zn(t);if(!r)return e;const{scaleX:o,scaleY:s,x:c,y:l}=r,a=e.left-c-(1-o)*parseFloat(n),i=e.top-l-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),d=o?e.width/o:e.width,f=s?e.height/s:e.height;return{width:d,height:f,top:i,right:a+d,bottom:i+f,left:a}}const tr={ignoreTransform:!1};function Re(e,t){t===void 0&&(t=tr);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:i,transformOrigin:d}=B(e).getComputedStyle(e);i&&(n=er(n,i,d))}const{top:r,left:o,width:s,height:c,bottom:l,right:a}=n;return{top:r,left:o,width:s,height:c,bottom:l,right:a}}function zt(e){return Re(e,{ignoreTransform:!0})}function nr(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function rr(e,t){return t===void 0&&(t=B(e).getComputedStyle(e)),t.position==="fixed"}function or(e,t){t===void 0&&(t=B(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const s=t[o];return typeof s=="string"?n.test(s):!1})}function nt(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(mt(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Be(o)||Kt(o)||n.includes(o))return n;const s=B(e).getComputedStyle(o);return o!==e&&or(o,s)&&n.push(o),rr(o,s)?n:r(o.parentNode)}return e?r(e):n}function en(e){const[t]=nt(e,1);return t??null}function ut(e){return!tt||!e?null:xe(e)?e:yt(e)?mt(e)||e===De(e).scrollingElement?window:Be(e)?e:null:null}function tn(e){return xe(e)?e.scrollX:e.scrollLeft}function nn(e){return xe(e)?e.scrollY:e.scrollTop}function vt(e){return{x:tn(e),y:nn(e)}}var N;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(N||(N={}));function rn(e){return!tt||!e?!1:e===document.scrollingElement}function on(e){const t={x:0,y:0},n=rn(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,c=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return{isTop:o,isLeft:s,isBottom:c,isRight:l,maxScroll:r,minScroll:t}}const ir={x:.2,y:.2};function sr(e,t,n,r,o){let{top:s,left:c,right:l,bottom:a}=n;r===void 0&&(r=10),o===void 0&&(o=ir);const{isTop:i,isBottom:d,isLeft:f,isRight:h}=on(e),g={x:0,y:0},R={x:0,y:0},v={height:t.height*o.y,width:t.width*o.x};return!i&&s<=t.top+v.height?(g.y=N.Backward,R.y=r*Math.abs((t.top+v.height-s)/v.height)):!d&&a>=t.bottom-v.height&&(g.y=N.Forward,R.y=r*Math.abs((t.bottom-v.height-a)/v.height)),!h&&l>=t.right-v.width?(g.x=N.Forward,R.x=r*Math.abs((t.right-v.width-l)/v.width)):!f&&c<=t.left+v.width&&(g.x=N.Backward,R.x=r*Math.abs((t.left+v.width-c)/v.width)),{direction:g,speed:R}}function ar(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:c}=window;return{top:0,left:0,right:s,bottom:c,width:s,height:c}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function sn(e){return e.reduce((t,n)=>we(t,vt(n)),q)}function cr(e){return e.reduce((t,n)=>t+tn(n),0)}function lr(e){return e.reduce((t,n)=>t+nn(n),0)}function ur(e,t){if(t===void 0&&(t=Re),!e)return;const{top:n,left:r,bottom:o,right:s}=t(e);en(e)&&(o<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const dr=[["x",["left","right"],cr],["y",["top","bottom"],lr]];class Dt{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=nt(n),o=sn(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,c,l]of dr)for(const a of c)Object.defineProperty(this,a,{get:()=>{const i=l(r),d=o[s]-i;return this.rect[a]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ne{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function fr(e){const{EventTarget:t}=B(e);return e instanceof t?e:De(e)}function dt(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var H;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(H||(H={}));function Bt(e){e.preventDefault()}function gr(e){e.stopPropagation()}var y;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(y||(y={}));const an={start:[y.Space,y.Enter],cancel:[y.Esc],end:[y.Space,y.Enter,y.Tab]},hr=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case y.Right:return{...n,x:n.x+25};case y.Left:return{...n,x:n.x-25};case y.Down:return{...n,y:n.y+25};case y.Up:return{...n,y:n.y-25}}};class cn{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Ne(De(n)),this.windowListeners=new Ne(B(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(H.Resize,this.handleCancel),this.windowListeners.add(H.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(H.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&ur(r),n(q)}handleKeyDown(t){if(xt(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:s=an,coordinateGetter:c=hr,scrollBehavior:l="smooth"}=o,{code:a}=t;if(s.end.includes(a)){this.handleEnd(t);return}if(s.cancel.includes(a)){this.handleCancel(t);return}const{collisionRect:i}=r.current,d=i?{x:i.left,y:i.top}:q;this.referenceCoordinates||(this.referenceCoordinates=d);const f=c(t,{active:n,context:r.current,currentCoordinates:d});if(f){const h=_e(f,d),g={x:0,y:0},{scrollableAncestors:R}=r.current;for(const v of R){const p=t.code,{isTop:m,isRight:w,isLeft:b,isBottom:S,maxScroll:C,minScroll:E}=on(v),x=ar(v),D={x:Math.min(p===y.Right?x.right-x.width/2:x.right,Math.max(p===y.Right?x.left:x.left+x.width/2,f.x)),y:Math.min(p===y.Down?x.bottom-x.height/2:x.bottom,Math.max(p===y.Down?x.top:x.top+x.height/2,f.y))},M=p===y.Right&&!w||p===y.Left&&!b,I=p===y.Down&&!S||p===y.Up&&!m;if(M&&D.x!==f.x){const A=v.scrollLeft+h.x,W=p===y.Right&&A<=C.x||p===y.Left&&A>=E.x;if(W&&!h.y){v.scrollTo({left:A,behavior:l});return}W?g.x=v.scrollLeft-A:g.x=p===y.Right?v.scrollLeft-C.x:v.scrollLeft-E.x,g.x&&v.scrollBy({left:-g.x,behavior:l});break}else if(I&&D.y!==f.y){const A=v.scrollTop+h.y,W=p===y.Down&&A<=C.y||p===y.Up&&A>=E.y;if(W&&!h.x){v.scrollTo({top:A,behavior:l});return}W?g.y=v.scrollTop-A:g.y=p===y.Down?v.scrollTop-C.y:v.scrollTop-E.y,g.y&&v.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,we(_e(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}cn.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=an,onActivation:o}=t,{active:s}=n;const{code:c}=e.nativeEvent;if(r.start.includes(c)){const l=s.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function Ft(e){return!!(e&&"distance"in e)}function $t(e){return!!(e&&"delay"in e)}class Rt{constructor(t,n,r){var o;r===void 0&&(r=fr(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:c}=s;this.props=t,this.events=n,this.document=De(c),this.documentListeners=new Ne(this.document),this.listeners=new Ne(r),this.windowListeners=new Ne(B(c)),this.initialCoordinates=(o=ht(s))!=null?o:q,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(H.Resize,this.handleCancel),this.windowListeners.add(H.DragStart,Bt),this.windowListeners.add(H.VisibilityChange,this.handleCancel),this.windowListeners.add(H.ContextMenu,Bt),this.documentListeners.add(H.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if($t(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Ft(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(H.Click,gr,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(H.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:s}=this,{onMove:c,options:{activationConstraint:l}}=s;if(!o)return;const a=(n=ht(t))!=null?n:q,i=_e(o,a);if(!r&&l){if(Ft(l)){if(l.tolerance!=null&&dt(i,l.tolerance))return this.handleCancel();if(dt(i,l.distance))return this.handleStart()}if($t(l)&&dt(i,l.tolerance))return this.handleCancel();this.handlePending(l,i);return}t.cancelable&&t.preventDefault(),c(a)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===y.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const vr={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ln extends Rt{constructor(t){const{event:n}=t,r=De(n.target);super(t,vr,r)}}ln.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const pr={move:{name:"mousemove"},end:{name:"mouseup"}};var pt;(function(e){e[e.RightClick=2]="RightClick"})(pt||(pt={}));class br extends Rt{constructor(t){super(t,pr,De(t.event.target))}}br.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===pt.RightClick?!1:(r?.({event:n}),!0)}}];const ft={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class yr extends Rt{constructor(t){super(t,ft)}static setup(){return window.addEventListener(ft.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(ft.move.name,t)};function t(){}}}yr.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var Le;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Le||(Le={}));var Ze;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ze||(Ze={}));function mr(e){let{acceleration:t,activator:n=Le.Pointer,canScroll:r,draggingRect:o,enabled:s,interval:c=5,order:l=Ze.TreeOrder,pointerCoordinates:a,scrollableAncestors:i,scrollableAncestorRects:d,delta:f,threshold:h}=e;const g=xr({delta:f,disabled:!s}),[R,v]=Ln(),p=u.useRef({x:0,y:0}),m=u.useRef({x:0,y:0}),w=u.useMemo(()=>{switch(n){case Le.Pointer:return a?{top:a.y,bottom:a.y,left:a.x,right:a.x}:null;case Le.DraggableRect:return o}},[n,o,a]),b=u.useRef(null),S=u.useCallback(()=>{const E=b.current;if(!E)return;const x=p.current.x*m.current.x,D=p.current.y*m.current.y;E.scrollBy(x,D)},[]),C=u.useMemo(()=>l===Ze.TreeOrder?[...i].reverse():i,[l,i]);u.useEffect(()=>{if(!s||!i.length||!w){v();return}for(const E of C){if(r?.(E)===!1)continue;const x=i.indexOf(E),D=d[x];if(!D)continue;const{direction:M,speed:I}=sr(E,D,w,t,h);for(const A of["x","y"])g[A][M[A]]||(I[A]=0,M[A]=0);if(I.x>0||I.y>0){v(),b.current=E,R(S,c),p.current=I,m.current=M;return}}p.current={x:0,y:0},m.current={x:0,y:0},v()},[t,S,r,v,s,c,JSON.stringify(w),JSON.stringify(g),R,i,C,d,JSON.stringify(h)])}const wr={x:{[N.Backward]:!1,[N.Forward]:!1},y:{[N.Backward]:!1,[N.Forward]:!1}};function xr(e){let{delta:t,disabled:n}=e;const r=gt(t);return Fe(o=>{if(n||!r||!o)return wr;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[N.Backward]:o.x[N.Backward]||s.x===-1,[N.Forward]:o.x[N.Forward]||s.x===1},y:{[N.Backward]:o.y[N.Backward]||s.y===-1,[N.Forward]:o.y[N.Forward]||s.y===1}}},[n,t,r])}function Dr(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Fe(o=>{var s;return t==null?null:(s=r??o)!=null?s:null},[r,t])}function Rr(e,t){return u.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,s=o.activators.map(c=>({eventName:c.eventName,handler:t(c.handler,r)}));return[...n,...s]},[]),[e,t])}var ze;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ze||(ze={}));var bt;(function(e){e.Optimized="optimized"})(bt||(bt={}));const Ut=new Map;function Sr(e,t){let{dragging:n,dependencies:r,config:o}=t;const[s,c]=u.useState(null),{frequency:l,measure:a,strategy:i}=o,d=u.useRef(e),f=p(),h=Pe(f),g=u.useCallback(function(m){m===void 0&&(m=[]),!h.current&&c(w=>w===null?m:w.concat(m.filter(b=>!w.includes(b))))},[h]),R=u.useRef(null),v=Fe(m=>{if(f&&!n)return Ut;if(!m||m===Ut||d.current!==e||s!=null){const w=new Map;for(let b of e){if(!b)continue;if(s&&s.length>0&&!s.includes(b.id)&&b.rect.current){w.set(b.id,b.rect.current);continue}const S=b.node.current,C=S?new Dt(a(S),S):null;b.rect.current=C,C&&w.set(b.id,C)}return w}return m},[e,s,n,f,a]);return u.useEffect(()=>{d.current=e},[e]),u.useEffect(()=>{f||g()},[n,f]),u.useEffect(()=>{s&&s.length>0&&c(null)},[JSON.stringify(s)]),u.useEffect(()=>{f||typeof l!="number"||R.current!==null||(R.current=setTimeout(()=>{g(),R.current=null},l))},[l,f,g,...r]),{droppableRects:v,measureDroppableContainers:g,measuringScheduled:s!=null};function p(){switch(i){case ze.Always:return!1;case ze.BeforeDragging:return n;default:return!n}}}function un(e,t){return Fe(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Cr(e,t){return un(e,t)}function Er(e){let{callback:t,disabled:n}=e;const r=wt(t),o=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return u.useEffect(()=>()=>o?.disconnect(),[o]),o}function rt(e){let{callback:t,disabled:n}=e;const r=wt(t),o=u.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return u.useEffect(()=>()=>o?.disconnect(),[o]),o}function Or(e){return new Dt(Re(e),e)}function Xt(e,t,n){t===void 0&&(t=Or);const[r,o]=u.useState(null);function s(){o(a=>{if(!e)return null;if(e.isConnected===!1){var i;return(i=a??n)!=null?i:null}const d=t(e);return JSON.stringify(a)===JSON.stringify(d)?a:d})}const c=Er({callback(a){if(e)for(const i of a){const{type:d,target:f}=i;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){s();break}}}}),l=rt({callback:s});return Z(()=>{s(),e?(l?.observe(e),c?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),c?.disconnect())},[e]),r}function Ar(e){const t=un(e);return Zt(e,t)}const Yt=[];function Mr(e){const t=u.useRef(e),n=Fe(r=>e?r&&r!==Yt&&e&&t.current&&e.parentNode===t.current.parentNode?r:nt(e):Yt,[e]);return u.useEffect(()=>{t.current=e},[e]),n}function Tr(e){const[t,n]=u.useState(null),r=u.useRef(e),o=u.useCallback(s=>{const c=ut(s.target);c&&n(l=>l?(l.set(c,vt(c)),new Map(l)):null)},[]);return u.useEffect(()=>{const s=r.current;if(e!==s){c(s);const l=e.map(a=>{const i=ut(a);return i?(i.addEventListener("scroll",o,{passive:!0}),[i,vt(i)]):null}).filter(a=>a!=null);n(l.length?new Map(l):null),r.current=e}return()=>{c(e),c(s)};function c(l){l.forEach(a=>{const i=ut(a);i?.removeEventListener("scroll",o)})}},[o,e]),u.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,c)=>we(s,c),q):sn(e):q,[e,t])}function jt(e,t){t===void 0&&(t=[]);const n=u.useRef(null);return u.useEffect(()=>{n.current=null},t),u.useEffect(()=>{const r=e!==q;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?_e(e,n.current):q}function Ir(e){u.useEffect(()=>{if(!tt)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function Nr(e,t){return u.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:s}=r;return n[o]=c=>{s(c,t)},n},{}),[e,t])}function dn(e){return u.useMemo(()=>e?nr(e):null,[e])}const Ht=[];function Lr(e,t){t===void 0&&(t=Re);const[n]=e,r=dn(n?B(n):null),[o,s]=u.useState(Ht);function c(){s(()=>e.length?e.map(a=>rn(a)?r:new Dt(t(a),a)):Ht)}const l=rt({callback:c});return Z(()=>{l?.disconnect(),c(),e.forEach(a=>l?.observe(a))},[e]),o}function kr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Be(t)?t:e}function Pr(e){let{measure:t}=e;const[n,r]=u.useState(null),o=u.useCallback(i=>{for(const{target:d}of i)if(Be(d)){r(f=>{const h=t(d);return f?{...f,width:h.width,height:h.height}:h});break}},[t]),s=rt({callback:o}),c=u.useCallback(i=>{const d=kr(i);s?.disconnect(),d&&s?.observe(d),r(d?t(d):null)},[t,s]),[l,a]=Ge(c);return u.useMemo(()=>({nodeRef:l,rect:n,setRef:a}),[n,l,a])}const _r=[{sensor:ln,options:{}},{sensor:cn,options:{}}],zr={current:{}},Ve={draggable:{measure:zt},droppable:{measure:zt,strategy:ze.WhileDragging,frequency:bt.Optimized},dragOverlay:{measure:Re}};class ke extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Br={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ke,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Qe},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ve,measureDroppableContainers:Qe,windowRect:null,measuringScheduled:!1},Fr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Qe,draggableNodes:new Map,over:null,measureDroppableContainers:Qe},ot=u.createContext(Fr),fn=u.createContext(Br);function $r(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ke}}}function Ur(e,t){switch(t.type){case T.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case T.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case T.DragEnd:case T.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case T.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new ke(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case T.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const c=new ke(e.droppable.containers);return c.set(n,{...s,disabled:o}),{...e,droppable:{...e.droppable,containers:c}}}case T.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new ke(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function Xr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=u.useContext(ot),s=gt(r),c=gt(n?.id);return u.useEffect(()=>{if(!t&&!r&&s&&c!=null){if(!xt(s)||document.activeElement===s.target)return;const l=o.get(c);if(!l)return;const{activatorNode:a,node:i}=l;if(!a.current&&!i.current)return;requestAnimationFrame(()=>{for(const d of[a.current,i.current]){if(!d)continue;const f=_n(d);if(f){f.focus();break}}})}},[r,t,o,c,s]),null}function Yr(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,s)=>s({transform:o,...r}),n):n}function jr(e){return u.useMemo(()=>({draggable:{...Ve.draggable,...e?.draggable},droppable:{...Ve.droppable,...e?.droppable},dragOverlay:{...Ve.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Hr(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const s=u.useRef(!1),{x:c,y:l}=typeof o=="boolean"?{x:o,y:o}:o;Z(()=>{if(!c&&!l||!t){s.current=!1;return}if(s.current||!r)return;const i=t?.node.current;if(!i||i.isConnected===!1)return;const d=n(i),f=Zt(d,r);if(c||(f.x=0),l||(f.y=0),s.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const h=en(i);h&&h.scrollBy({top:f.y,left:f.x})}},[t,c,l,r,n])}const gn=u.createContext({...q,scaleX:1,scaleY:1});var de;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(de||(de={}));const yo=u.memo(function(t){var n,r,o,s;let{id:c,accessibility:l,autoScroll:a=!0,children:i,sensors:d=_r,collisionDetection:f=Vn,measuring:h,modifiers:g,...R}=t;const v=u.useReducer(Ur,void 0,$r),[p,m]=v,[w,b]=Xn(),[S,C]=u.useState(de.Uninitialized),E=S===de.Initialized,{draggable:{active:x,nodes:D,translate:M},droppable:{containers:I}}=p,A=x!=null?D.get(x):null,W=u.useRef({initial:null,translated:null}),K=u.useMemo(()=>{var k;return x!=null?{id:x,data:(k=A?.data)!=null?k:zr,rect:W}:null},[x,A]),V=u.useRef(null),[Se,Ue]=u.useState(null),[F,Xe]=u.useState(null),ee=Pe(R,Object.values(R)),Ce=$e("DndDescribedBy",c),Ye=u.useMemo(()=>I.getEnabled(),[I]),_=jr(h),{droppableRects:te,measureDroppableContainers:fe,measuringScheduled:Ee}=Sr(Ye,{dragging:E,dependencies:[M.x,M.y],config:_.droppable}),Y=Dr(D,x),je=u.useMemo(()=>F?ht(F):null,[F]),ie=On(),ne=Cr(Y,_.draggable.measure);Hr({activeNode:x!=null?D.get(x):null,config:ie.layoutShiftCompensation,initialRect:ne,measure:_.draggable.measure});const O=Xt(Y,_.draggable.measure,ne),Oe=Xt(Y?Y.parentElement:null),G=u.useRef({activatorEvent:null,active:null,activeNode:Y,collisionRect:null,collisions:null,droppableRects:te,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ge=I.getNodeFor((n=G.current.over)==null?void 0:n.id),re=Pr({measure:_.dragOverlay.measure}),he=(r=re.nodeRef.current)!=null?r:Y,ve=E?(o=re.rect)!=null?o:O:null,St=!!(re.nodeRef.current&&re.rect),Ct=Ar(St?null:O),it=dn(he?B(he):null),se=Mr(E?ge??Y:null),He=Lr(se),We=Yr(g,{transform:{x:M.x-Ct.x,y:M.y-Ct.y,scaleX:1,scaleY:1},activatorEvent:F,active:K,activeNodeRect:O,containerNodeRect:Oe,draggingNodeRect:ve,over:G.current.over,overlayNodeRect:re.rect,scrollableAncestors:se,scrollableAncestorRects:He,windowRect:it}),Et=je?we(je,M):null,Ot=Tr(se),wn=jt(Ot),xn=jt(Ot,[O]),pe=we(We,wn),be=ve?Qn(ve,We):null,Ae=K&&be?f({active:K,collisionRect:be,droppableRects:te,droppableContainers:Ye,pointerCoordinates:Et}):null,At=Qt(Ae,"id"),[ae,Mt]=u.useState(null),Dn=St?We:we(We,xn),Rn=Gn(Dn,(s=ae?.rect)!=null?s:null,O),st=u.useRef(null),Tt=u.useCallback((k,$)=>{let{sensor:U,options:ce}=$;if(V.current==null)return;const j=D.get(V.current);if(!j)return;const X=k.nativeEvent,J=new U({active:V.current,activeNode:j,event:X,options:ce,context:G,onAbort(L){if(!D.get(L))return;const{onDragAbort:Q}=ee.current,oe={id:L};Q?.(oe),w({type:"onDragAbort",event:oe})},onPending(L,le,Q,oe){if(!D.get(L))return;const{onDragPending:Te}=ee.current,ue={id:L,constraint:le,initialCoordinates:Q,offset:oe};Te?.(ue),w({type:"onDragPending",event:ue})},onStart(L){const le=V.current;if(le==null)return;const Q=D.get(le);if(!Q)return;const{onDragStart:oe}=ee.current,Me={activatorEvent:X,active:{id:le,data:Q.data,rect:W}};me.unstable_batchedUpdates(()=>{oe?.(Me),C(de.Initializing),m({type:T.DragStart,initialCoordinates:L,active:le}),w({type:"onDragStart",event:Me}),Ue(st.current),Xe(X)})},onMove(L){m({type:T.DragMove,coordinates:L})},onEnd:ye(T.DragEnd),onCancel:ye(T.DragCancel)});st.current=J;function ye(L){return async function(){const{active:Q,collisions:oe,over:Me,scrollAdjustedTranslate:Te}=G.current;let ue=null;if(Q&&Te){const{cancelDrop:Ie}=ee.current;ue={activatorEvent:X,active:Q,collisions:oe,delta:Te,over:Me},L===T.DragEnd&&typeof Ie=="function"&&await Promise.resolve(Ie(ue))&&(L=T.DragCancel)}V.current=null,me.unstable_batchedUpdates(()=>{m({type:L}),C(de.Uninitialized),Mt(null),Ue(null),Xe(null),st.current=null;const Ie=L===T.DragEnd?"onDragEnd":"onDragCancel";if(ue){const at=ee.current[Ie];at?.(ue),w({type:Ie,event:ue})}})}}},[D]),Sn=u.useCallback((k,$)=>(U,ce)=>{const j=U.nativeEvent,X=D.get(ce);if(V.current!==null||!X||j.dndKit||j.defaultPrevented)return;const J={active:X};k(U,$.options,J)===!0&&(j.dndKit={capturedBy:$.sensor},V.current=ce,Tt(U,$))},[D,Tt]),It=Rr(d,Sn);Ir(d),Z(()=>{O&&S===de.Initializing&&C(de.Initialized)},[O,S]),u.useEffect(()=>{const{onDragMove:k}=ee.current,{active:$,activatorEvent:U,collisions:ce,over:j}=G.current;if(!$||!U)return;const X={active:$,activatorEvent:U,collisions:ce,delta:{x:pe.x,y:pe.y},over:j};me.unstable_batchedUpdates(()=>{k?.(X),w({type:"onDragMove",event:X})})},[pe.x,pe.y]),u.useEffect(()=>{const{active:k,activatorEvent:$,collisions:U,droppableContainers:ce,scrollAdjustedTranslate:j}=G.current;if(!k||V.current==null||!$||!j)return;const{onDragOver:X}=ee.current,J=ce.get(At),ye=J&&J.rect.current?{id:J.id,rect:J.rect.current,data:J.data,disabled:J.disabled}:null,L={active:k,activatorEvent:$,collisions:U,delta:{x:j.x,y:j.y},over:ye};me.unstable_batchedUpdates(()=>{Mt(ye),X?.(L),w({type:"onDragOver",event:L})})},[At]),Z(()=>{G.current={activatorEvent:F,active:K,activeNode:Y,collisionRect:be,collisions:Ae,droppableRects:te,draggableNodes:D,draggingNode:he,draggingNodeRect:ve,droppableContainers:I,over:ae,scrollableAncestors:se,scrollAdjustedTranslate:pe},W.current={initial:ve,translated:be}},[K,Y,Ae,be,D,he,ve,te,I,ae,se,pe]),mr({...ie,delta:M,draggingRect:be,pointerCoordinates:Et,scrollableAncestors:se,scrollableAncestorRects:He});const Cn=u.useMemo(()=>({active:K,activeNode:Y,activeNodeRect:O,activatorEvent:F,collisions:Ae,containerNodeRect:Oe,dragOverlay:re,draggableNodes:D,droppableContainers:I,droppableRects:te,over:ae,measureDroppableContainers:fe,scrollableAncestors:se,scrollableAncestorRects:He,measuringConfiguration:_,measuringScheduled:Ee,windowRect:it}),[K,Y,O,F,Ae,Oe,re,D,I,te,ae,fe,se,He,_,Ee,it]),En=u.useMemo(()=>({activatorEvent:F,activators:It,active:K,activeNodeRect:O,ariaDescribedById:{draggable:Ce},dispatch:m,draggableNodes:D,over:ae,measureDroppableContainers:fe}),[F,It,K,O,m,Ce,D,ae,fe]);return z.createElement(Vt.Provider,{value:b},z.createElement(ot.Provider,{value:En},z.createElement(fn.Provider,{value:Cn},z.createElement(gn.Provider,{value:Rn},i)),z.createElement(Xr,{disabled:l?.restoreFocus===!1})),z.createElement(Hn,{...l,hiddenTextDescribedById:Ce}));function On(){const k=Se?.autoScrollEnabled===!1,$=typeof a=="object"?a.enabled===!1:a===!1,U=E&&!k&&!$;return typeof a=="object"?{...a,enabled:U}:{enabled:U}}}),Wr=u.createContext(null),Wt="button",Kr="Draggable";function qr(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const s=$e(Kr),{activators:c,activatorEvent:l,active:a,activeNodeRect:i,ariaDescribedById:d,draggableNodes:f,over:h}=u.useContext(ot),{role:g=Wt,roleDescription:R="draggable",tabIndex:v=0}=o??{},p=a?.id===t,m=u.useContext(p?gn:Wr),[w,b]=Ge(),[S,C]=Ge(),E=Nr(c,t),x=Pe(n);Z(()=>(f.set(t,{id:t,key:s,node:w,activatorNode:S,data:x}),()=>{const M=f.get(t);M&&M.key===s&&f.delete(t)}),[f,t]);const D=u.useMemo(()=>({role:g,tabIndex:v,"aria-disabled":r,"aria-pressed":p&&g===Wt?!0:void 0,"aria-roledescription":R,"aria-describedby":d.draggable}),[r,g,v,p,R,d.draggable]);return{active:a,activatorEvent:l,activeNodeRect:i,attributes:D,isDragging:p,listeners:r?void 0:E,node:w,over:h,setNodeRef:b,setActivatorNodeRef:C,transform:m}}function Vr(){return u.useContext(fn)}const Gr="Droppable",Jr={timeout:25};function Qr(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const s=$e(Gr),{active:c,dispatch:l,over:a,measureDroppableContainers:i}=u.useContext(ot),d=u.useRef({disabled:n}),f=u.useRef(!1),h=u.useRef(null),g=u.useRef(null),{disabled:R,updateMeasurementsFor:v,timeout:p}={...Jr,...o},m=Pe(v??r),w=u.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{i(Array.isArray(m.current)?m.current:[m.current]),g.current=null},p)},[p]),b=rt({callback:w,disabled:R||!c}),S=u.useCallback((D,M)=>{b&&(M&&(b.unobserve(M),f.current=!1),D&&b.observe(D))},[b]),[C,E]=Ge(S),x=Pe(t);return u.useEffect(()=>{!b||!C.current||(b.disconnect(),f.current=!1,b.observe(C.current))},[C,b]),u.useEffect(()=>(l({type:T.RegisterDroppable,element:{id:r,key:s,disabled:n,node:C,rect:h,data:x}}),()=>l({type:T.UnregisterDroppable,key:s,id:r})),[r]),u.useEffect(()=>{n!==d.current.disabled&&(l({type:T.SetDroppableDisabled,id:r,key:s,disabled:n}),d.current.disabled=n)},[r,s,n,l]),{active:c,rect:h,isOver:a?.id===r,node:C,over:a,setNodeRef:E}}function hn(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Zr(e,t){return e.reduce((n,r,o)=>{const s=t.get(r);return s&&(n[o]=s),n},Array(e.length))}function Ke(e){return e!==null&&e>=0}function eo(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function to(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const vn=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const s=hn(t,r,n),c=t[o],l=s[o];return!l||!c?null:{x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height}},qe={scaleX:1,scaleY:1},mo=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:s,overIndex:c}=e;const l=(t=s[n])!=null?t:r;if(!l)return null;if(o===n){const i=s[c];return i?{x:0,y:n<c?i.top+i.height-(l.top+l.height):i.top-l.top,...qe}:null}const a=no(s,o,n);return o>n&&o<=c?{x:0,y:-l.height-a,...qe}:o<n&&o>=c?{x:0,y:l.height+a,...qe}:{x:0,y:0,...qe}};function no(e,t,n){const r=e[t],o=e[t-1],s=e[t+1];return r?n<t?o?r.top-(o.top+o.height):s?s.top-(r.top+r.height):0:s?s.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const pn="Sortable",bn=z.createContext({activeIndex:-1,containerId:pn,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:vn,disabled:{draggable:!1,droppable:!1}});function wo(e){let{children:t,id:n,items:r,strategy:o=vn,disabled:s=!1}=e;const{active:c,dragOverlay:l,droppableRects:a,over:i,measureDroppableContainers:d}=Vr(),f=$e(pn,n),h=l.rect!==null,g=u.useMemo(()=>r.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),R=c!=null,v=c?g.indexOf(c.id):-1,p=i?g.indexOf(i.id):-1,m=u.useRef(g),w=!eo(g,m.current),b=p!==-1&&v===-1||w,S=to(s);Z(()=>{w&&R&&d(g)},[w,g,R,d]),u.useEffect(()=>{m.current=g},[g]);const C=u.useMemo(()=>({activeIndex:v,containerId:f,disabled:S,disableTransforms:b,items:g,overIndex:p,useDragOverlay:h,sortedRects:Zr(g,a),strategy:o}),[v,f,S.draggable,S.droppable,b,g,p,a,h,o]);return z.createElement(bn.Provider,{value:C},t)}const ro=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return hn(n,r,o).indexOf(t)},oo=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:s,newIndex:c,previousItems:l,previousContainerId:a,transition:i}=e;return!i||!r||l!==s&&o===c?!1:n?!0:c!==o&&t===a},io={duration:200,easing:"ease"},yn="transform",so=Je.Transition.toString({property:yn,duration:0,easing:"linear"}),ao={roleDescription:"sortable"};function co(e){let{disabled:t,index:n,node:r,rect:o}=e;const[s,c]=u.useState(null),l=u.useRef(n);return Z(()=>{if(!t&&n!==l.current&&r.current){const a=o.current;if(a){const i=Re(r.current,{ignoreTransform:!0}),d={x:a.left-i.left,y:a.top-i.top,scaleX:a.width/i.width,scaleY:a.height/i.height};(d.x||d.y)&&c(d)}}n!==l.current&&(l.current=n)},[t,n,r,o]),u.useEffect(()=>{s&&c(null)},[s]),s}function xo(e){let{animateLayoutChanges:t=oo,attributes:n,disabled:r,data:o,getNewIndex:s=ro,id:c,strategy:l,resizeObserverConfig:a,transition:i=io}=e;const{items:d,containerId:f,activeIndex:h,disabled:g,disableTransforms:R,sortedRects:v,overIndex:p,useDragOverlay:m,strategy:w}=u.useContext(bn),b=lo(r,g),S=d.indexOf(c),C=u.useMemo(()=>({sortable:{containerId:f,index:S,items:d},...o}),[f,o,S,d]),E=u.useMemo(()=>d.slice(d.indexOf(c)),[d,c]),{rect:x,node:D,isOver:M,setNodeRef:I}=Qr({id:c,data:C,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...a}}),{active:A,activatorEvent:W,activeNodeRect:K,attributes:V,setNodeRef:Se,listeners:Ue,isDragging:F,over:Xe,setActivatorNodeRef:ee,transform:Ce}=qr({id:c,data:C,attributes:{...ao,...n},disabled:b.draggable}),Ye=Nn(I,Se),_=!!A,te=_&&!R&&Ke(h)&&Ke(p),fe=!m&&F,Ee=fe&&te?Ce:null,je=te?Ee??(l??w)({rects:v,activeNodeRect:K,activeIndex:h,overIndex:p,index:S}):null,ie=Ke(h)&&Ke(p)?s({id:c,items:d,activeIndex:h,overIndex:p}):S,ne=A?.id,O=u.useRef({activeId:ne,items:d,newIndex:ie,containerId:f}),Oe=d!==O.current.items,G=t({active:A,containerId:f,isDragging:F,isSorting:_,id:c,index:S,items:d,newIndex:O.current.newIndex,previousItems:O.current.items,previousContainerId:O.current.containerId,transition:i,wasDragging:O.current.activeId!=null}),ge=co({disabled:!G,index:S,node:D,rect:x});return u.useEffect(()=>{_&&O.current.newIndex!==ie&&(O.current.newIndex=ie),f!==O.current.containerId&&(O.current.containerId=f),d!==O.current.items&&(O.current.items=d)},[_,ie,f,d]),u.useEffect(()=>{if(ne===O.current.activeId)return;if(ne!=null&&O.current.activeId==null){O.current.activeId=ne;return}const he=setTimeout(()=>{O.current.activeId=ne},50);return()=>clearTimeout(he)},[ne]),{active:A,activeIndex:h,attributes:V,data:C,rect:x,index:S,newIndex:ie,items:d,isOver:M,isSorting:_,isDragging:F,listeners:Ue,node:D,overIndex:p,over:Xe,setNodeRef:Ye,setActivatorNodeRef:ee,setDroppableNodeRef:I,setDraggableNodeRef:Se,transform:ge??je,transition:re()};function re(){if(ge||Oe&&O.current.newIndex===S)return so;if(!(fe&&!xt(W)||!i)&&(_||G))return Je.Transition.toString({...i,property:yn})}}function lo(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}function et(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const uo=[y.Down,y.Right,y.Up,y.Left],Do=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:s,over:c,scrollableAncestors:l}}=t;if(uo.includes(e.code)){if(e.preventDefault(),!n||!r)return;const a=[];s.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const h=o.get(f.id);if(h)switch(e.code){case y.Down:r.top<h.top&&a.push(f);break;case y.Up:r.top>h.top&&a.push(f);break;case y.Left:r.left>h.left&&a.push(f);break;case y.Right:r.left<h.left&&a.push(f);break}});const i=Kn({collisionRect:r,droppableRects:o,droppableContainers:a});let d=Qt(i,"id");if(d===c?.id&&i.length>1&&(d=i[1].id),d!=null){const f=s.get(n.id),h=s.get(d),g=h?o.get(h.id):null,R=h?.node.current;if(R&&g&&f&&h){const p=nt(R).some((E,x)=>l[x]!==E),m=mn(f,h),w=fo(f,h),b=p||!m?{x:0,y:0}:{x:w?r.width-g.width:0,y:w?r.height-g.height:0},S={x:g.left,y:g.top};return b.x&&b.y?S:_e(S,b)}}}};function mn(e,t){return!et(e)||!et(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function fo(e,t){return!et(e)||!et(t)||!mn(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}export{Je as C,yo as D,cn as K,ln as P,ho as R,wo as S,me as a,vo as b,bo as c,hn as d,xo as e,In as r,Do as s,po as u,mo as v};
|