dash-sortable-items 0.7.1__py3-none-any.whl

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.
@@ -0,0 +1,2 @@
1
+ /*! For license information please see dash_sortable_items.js.LICENSE.txt */
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.dash_sortable_items=t(require("react"),require("react-dom")):e.dash_sortable_items=t(e.React,e.ReactDOM)}(self,(e,t)=>(()=>{"use strict";var n={576(e,t,n){n.d(t,{EW:()=>S,HN:()=>m,O8:()=>l,QZ:()=>C,vA:()=>o,vP:()=>y});var r=Symbol.for("preact-signals");function i(){if(u>1)u--;else{var e,t=!1;for(function(){var e=f;for(f=void 0;void 0!==e;){var t=e.S;if(t.v===e.v)for(var n=t.t;void 0!==n;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}}();void 0!==c;){var n=c;for(c=void 0,d++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&b(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(d=0,u--,t)throw e}}function o(e){if(u>0)return e();p=++h,u++;try{return e()}finally{i()}}var s,a=void 0;function l(e){var t=a,n=s;a=void 0,s=void 0;try{return e()}finally{a=t,s=n}}var c=void 0,u=0,d=0,h=0,p=0,f=void 0,g=0;function v(e){if(void 0!==a){var t=e.n;if(void 0===t||t.t!==a)return t={i:0,S:e,p:a.s,n:void 0,t:a,e:void 0,x:void 0,r:t},void 0!==a.s&&(a.s.n=t),a.s=t,e.n=t,32&a.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=a.s,t.n=void 0,a.s.n=t,a.s=t),t}}function m(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function y(e,t){return new m(e,t)}function b(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function w(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function x(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function O(e,t){m.call(this,void 0,t),this.x=e,this.s=void 0,this.g=g-1,this.f=4}function S(e,t){return new O(e,t)}function E(e){var t=e.m;if(e.m=void 0,"function"==typeof t){u++;var n=a;a=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,P(e),t}finally{a=n,i()}}}function P(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,E(e)}function k(e){if(a!==this)throw new Error("Out-of-order effect");x(this),a=e,this.f&=-2,8&this.f&&P(this),i()}function D(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,s&&s.push(this)}function C(e,t){var n=new D(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}m.prototype.brand=r,m.prototype.h=function(){return!0},m.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:l(function(){var e;null==(e=t.W)||e.call(t)}))},m.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&l(function(){var e;null==(e=t.Z)||e.call(t)}))}},m.prototype.subscribe=function(e){var t=this;return C(function(){var n=t.value;l(function(){return e(n)})},{name:"sub"})},m.prototype.valueOf=function(){return this.value},m.prototype.toString=function(){return this.value+""},m.prototype.toJSON=function(){return this.value},m.prototype.peek=function(){var e=this;return l(function(){return e.value})},Object.defineProperty(m.prototype,"value",{get:function(){var e=v(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(d>100)throw new Error("Cycle detected");!function(e){0!==u&&0===d&&e.l!==p&&(e.l=p,f={S:e,v:e.v,i:e.i,o:f})}(this),this.v=e,this.i++,g++,u++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{i()}}}}),O.prototype=new m,O.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===g)return!0;if(this.g=g,this.f|=1,this.i>0&&!b(this))return this.f&=-2,!0;var e=a;try{w(this),a=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return a=e,x(this),this.f&=-2,!0},O.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}m.prototype.S.call(this,e)},O.prototype.U=function(e){if(void 0!==this.t&&(m.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},O.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(O.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=v(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),D.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},D.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,E(this),w(this),u++;var e=a;return a=this,k.bind(this,e)},D.prototype.N=function(){2&this.f||(this.f|=2,this.u=c,c=this)},D.prototype.d=function(){this.f|=8,1&this.f||P(this)},D.prototype.dispose=function(){this.d()}},20(e,t,n){var r=n(295),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},848(e,t,n){e.exports=n(20)},432(e,t,n){var r,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),i=0;i<n.length;i++)"default"!==n[i]&&o(t,e,n[i]);return s(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.HandleWrapper=void 0;var l=a(n(295));t.HandleWrapper=(0,l.forwardRef)(function(e,t){var n=e.child,r=e.className,o=e.style,s="".concat(Date.now());return l.default.createElement("div",{ref:t,className:r,style:{display:"contents"}},(0,l.isValidElement)(n)&&(0,l.cloneElement)(n,{style:i(i({},n.props.style||{}),o),key:s}))})},163(e,t,n){var r,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),i=0;i<n.length;i++)"default"!==n[i]&&o(t,e,n[i]);return s(t,e),t}),l=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.children,n=void 0===t?[]:t,r=e.id,o=e.className,s=e.style,a=void 0===s?{}:s,f=e.showClone,g=void 0!==f&&f,v=e.dropAnimation,m=void 0===v?{duration:250,easing:"ease"}:v,y=e.setProps,b=(0,c.useState)(n.map(function(e){return e.key})),w=b[0],x=b[1],O=(0,c.useRef)(null),S=w.map(function(e){return n.find(function(t){return t.key===e})});return c.default.createElement(h.DragDropProvider,{onDragStart:function(e){O.current=w},onDragOver:function(e){var t=e.operation,n=t.source,r=t.target;n&&r&&n.id!==r.id&&x(function(t){var n=(0,d.move)(t,e);return y({sortedIds:n}),n})},onDragEnd:function(e){var t=e.operation.target;if(e.canceled||!t)return null!==O.current&&x(O.current),void y({sortedIds:O.current});x(function(t){var n=(0,d.move)(t,e);return y({sortedIds:n}),n})},plugins:function(e){return l(l([],e,!0),[u.Feedback.configure({feedback:g?"clone":"default",dropAnimation:m})],!1)}},c.default.createElement("div",{id:r,className:"sortable-group ".concat(o||""),style:i(i({},p.div),a)},S))};var c=a(n(295)),u=n(567),d=n(909),h=n(58),p={div:{display:"flex",flexDirection:"column",flex:1,minHeight:"200px",padding:"16px",borderRadius:"8px",transition:"background-color 0.2s",gap:"16px"}}},761(e,t,n){var r,i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),i=0;i<n.length;i++)"default"!==n[i]&&o(t,e,n[i]);return s(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.children,n=e.id,r=e.className,o=e.index,s=e.styles,a=e.styles_drag,v=e.styles_drop,m=e.handle,y=e.restrict,b=e.lock,w=void 0!==b&&b,x=e.handlePos,O=void 0===x?"start":x,S=e.transitionAnimation,E=void 0===S?{duration:250,easing:"ease",idle:!0}:S,P=e.setProps,k="vertical"===y?[d.RestrictToVerticalAxis]:"horizontal"===y?[d.RestrictToHorizontalAxis]:void 0,D=(0,c.useSortable)({id:n,index:o,modifiers:k,disabled:w,collisionDetector:u.shapeIntersection,transition:null===E?{duration:0,idle:!0}:E}),C=D.ref,M=D.handleRef,j=D.isDragging,A=D.isDropping;(0,l.useEffect)(function(){P({isDragging:j})},[j]),(0,l.useEffect)(function(){P({isDropping:A})},[A]);var R,I={handle:{cursor:w?"default":"grab"},div:{cursor:w||void 0!==m?"default":"grab"}};if(void 0!==m){var W=i(i({},I.handle),j?null==a?void 0:a.handle:A?null==v?void 0:v.handle:null==s?void 0:s.handle);R=l.default.createElement(h.HandleWrapper,{ref:M,className:"sortable-item-handle",style:W,child:m})}else R=null;console.log(n,s,i(i(i({},p.div),I.div),null==s?void 0:s.div));var T=j?i(i(i(i({},p.div),f.div),I.div),null==a?void 0:a.div):A?i(i(i(i({},p.div),g.div),I.div),null==v?void 0:v.div):i(i(i({},p.div),I.div),null==s?void 0:s.div);return l.default.createElement("div",{id:n,className:"sortable-item ".concat(r||""),ref:C,style:T},"start"===O?R:null,t,"end"===O?R:null)};var l=a(n(295)),c=n(706),u=n(528),d=n(327),h=n(432),p={div:{backgroundColor:"light-dark( var(--mantine-primary-color-1, white), var(--mantine-color-dark-4, black))",border:"1px solid black",padding:"12px",margin:"8px 0",borderRadius:"4px",display:"flex",flex:1,alignItems:"center",gap:"20px"}},f={div:{opacity:.5}},g={div:{opacity:.5}}},80(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._SortableGroup=t._SortableItem=void 0;var i=r(n(761));t._SortableItem=i.default;var o=r(n(163));t._SortableGroup=o.default},295(t){t.exports=e},775(e){e.exports=t},13(e,t,n){var r,i,o,s,a=n(665),l=n(500),c=Object.create,u=Object.defineProperty,d=Object.defineProperties,h=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,m=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),y=e=>{throw TypeError(e)},b=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))g.call(t,n)&&b(e,n,t[n]);if(f)for(var n of f(t))v.call(t,n)&&b(e,n,t[n]);return e},x=(e,t)=>d(e,p(t)),O=(e,t)=>u(e,"name",{value:t,configurable:!0}),S=(e,t)=>{var n={};for(var r in e)g.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&f)for(var r of f(e))t.indexOf(r)<0&&v.call(e,r)&&(n[r]=e[r]);return n},E=e=>{var t;return[,,,c(null!=(t=null==e?void 0:e[m("metadata")])?t:null)]},P=["class","method","getter","setter","accessor","field","value","get","set"],k=e=>void 0!==e&&"function"!=typeof e?y("Function expected"):e,D=(e,t,n,r,i)=>({kind:P[e],name:t,metadata:r,addInitializer:e=>n._?y("Already initialized"):i.push(k(e||null))}),C=(e,t)=>b(t,m("metadata"),e[3]),M=(e,t,n,r)=>{for(var i=0,o=e[t>>1],s=o&&o.length;i<s;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},j=(e,t,n,r,i,o)=>{var s,a,l,c,d,p=7&t,f=!!(8&t),g=!!(16&t),v=p>3?e.length+1:p?f?1:2:0,m=P[p+5],b=p>3&&(e[v-1]=[]),w=e[v]||(e[v]=[]),x=p&&(!g&&!f&&(i=i.prototype),p<5&&(p>3||!g)&&h(p<4?i:{get[n](){return I(this,o)},set[n](e){return T(this,o,e)}},n));p?g&&p<4&&O(o,(p>2?"set ":p>1?"get ":"")+n):O(i,n);for(var S=r.length-1;S>=0;S--)c=D(p,n,l={},e[3],w),p&&(c.static=f,c.private=g,d=c.access={has:g?e=>R(i,e):e=>n in e},3^p&&(d.get=g?e=>(1^p?I:_)(e,i,4^p?o:x.get):e=>e[n]),p>2&&(d.set=g?(e,t)=>T(e,i,t,4^p?o:x.set):(e,t)=>e[n]=t)),a=(0,r[S])(p?p<4?g?o:x[m]:p>4?void 0:{get:x.get,set:x.set}:i,c),l._=1,4^p||void 0===a?k(a)&&(p>4?b.unshift(a):p?g?o=a:x[m]=a:i=a):"object"!=typeof a||null===a?y("Object expected"):(k(s=a.get)&&(x.get=s),k(s=a.set)&&(x.set=s),k(s=a.init)&&b.unshift(s));return p||C(e,i),x&&u(i,n,x),g?4^p?o:x:i},A=(e,t,n)=>t.has(e)||y("Cannot "+n),R=(e,t)=>Object(t)!==t?y('Cannot use the "in" operator on this value'):e.has(t),I=(e,t,n)=>(A(e,t,"read from private field"),n?n.call(e):t.get(e)),W=(e,t,n)=>t.has(e)?y("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),T=(e,t,n,r)=>(A(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),_=(e,t,n)=>(A(e,t,"access private method"),n);function $(e,t){return{plugin:e,options:t}}function L(e){return"function"==typeof e?{plugin:e,options:void 0}:e}r=[a.reactive];var z=class{constructor(e,t){this.manager=e,this.options=t,W(this,o,M(i,8,this,!1)),M(i,11,this),W(this,s,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return a.untracked(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=a.effect(e.bind(this));return I(this,s).add(t),t}destroy(){I(this,s).forEach(e=>e())}static configure(e){return $(this,e)}};i=E(null),o=new WeakMap,s=new WeakMap,j(i,4,"disabled",r,z,o),C(i,z);var V,N=class extends z{},F=class{constructor(e){this.manager=e,this.instances=new Map,W(this,V,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(L).reduce((e,t)=>{const n=e.find(({plugin:e})=>e===t.plugin);return n?(n.options=t.options,e):[...e,t]},[]),n=t.map(({plugin:e})=>e);for(const e of I(this,V))if(!n.includes(e)){if(e.prototype instanceof N)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);T(this,V,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function q(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}V=new WeakMap;var H,X,Y,B,K,U,G,Z,Q,J,ee,te,ne=[],re=class extends z{constructor(e){super(e),W(this,H),W(this,X),this.computeCollisions=this.computeCollisions.bind(this),T(this,X,a.signal(ne)),this.destroy=a.effects(()=>{const e=this.computeCollisions(),t=a.untracked(()=>this.manager.dragOperation.position.current);if(e!==ne){const e=I(this,H);if(T(this,H,t),e&&t.x==e.x&&t.y==e.y)return}else T(this,H,void 0);I(this,X).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){a.untracked(()=>{e?I(this,X).value=this.computeCollisions():T(this,H,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:i,shape:o,status:s}=r;if(!s.initialized||!o)return ne;const l=[],c=[];for(const o of null!=e?e:n.droppables){if(o.disabled)continue;if(i&&!o.accepts(i))continue;const e=null!=t?t:o.collisionDetector;if(!e)continue;c.push(o),o.shape;const n=a.untracked(()=>e({droppable:o,dragOperation:r}));n&&(null!=o.collisionPriority&&(n.priority=o.collisionPriority),l.push(n))}return 0===c.length?ne:(l.sort(q),l)}get collisions(){return I(this,X).value}};H=new WeakMap,X=new WeakMap,K=[a.reactive],B=[a.reactive],Y=[a.reactive];var ie=class e{constructor(e,t){W(this,Q,M(Z,8,this)),M(Z,11,this),W(this,J),W(this,ee,M(Z,12,this)),M(Z,15,this),W(this,te,M(Z,16,this)),M(Z,19,this);const{effects:n,id:r,data:i={},disabled:o=!1,register:s=!0}=e;let l=r;T(this,J,a.signal(r)),this.manager=t,this.data=i,this.disabled=o,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==l)return l=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&s&&queueMicrotask(this.register)}get id(){var t,n;const r=I(this,J).value;return null!=(n=null==(t=e.pendingIdChanges)?void 0:t.get(this))?n:r}set id(t){var n,r;t!==(null!=(r=null==(n=e.pendingIdChanges)?void 0:n.get(this))?r:I(this,J).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return _(t=e,U,G).call(t)})),e.pendingIdChanges.set(this,t))}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};Z=E(null),U=new WeakSet,G=function(){const e=ie.pendingIdChanges;ie.pendingIdChanges=null,e&&a.batch(()=>{for(const[t,n]of e)I(t,J).value=n})},Q=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,j(Z,4,"manager",K,ie,Q),j(Z,4,"data",B,ie,ee),j(Z,4,"disabled",Y,ie,te),W(ie,U),C(Z,ie),ie.pendingIdChanges=null;var oe,se,ae,le,ce,ue,de,he,pe,fe,ge,ve,me,ye,be,we,xe,Oe,Se,Ee,Pe,ke,De,Ce,Me=ie,je=class{constructor(){this.map=a.signal(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),i=()=>this.unregister(e,t);if(r===t)return i;if(r&&r.id===e){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const o=new Map(n);for(const[r,i]of n)if(i===t&&r!==e){o.delete(r);break}o.set(e,t),this.map.value=o;const s=a.effects(...t.effects());return this.cleanupFunctions.set(t,s),i},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const i=new Map(n);i.delete(e),this.map.value=i}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},Ae=class extends(de=Me,ue=[a.reactive],ce=[a.reactive],le=[a.reactive],ae=[a.derived],se=[a.derived],oe=[a.derived],de){constructor(e,t){var n=e,{modifiers:r,type:i,sensors:o,plugins:s,effects:a}=n,l=S(n,["modifiers","type","sensors","plugins","effects"]);super(x(w({},l),{effects:()=>{var e;return[...null!=(e=null==a?void 0:a())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const n of t){const{plugin:t}=L(n);e.registry.plugins.register(t)}}]}}),t),M(he,5,this),W(this,pe,M(he,8,this)),M(he,11,this),W(this,fe,M(he,12,this)),M(he,15,this),W(this,ge,M(he,16,this,this.isDragSource?"dragging":"idle")),M(he,19,this),this.type=i,this.sensors=o,this.modifiers=r,this.alignment=l.alignment,this.plugins=s}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const n=L(t);if(n.plugin===e)return n.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};he=E(de),pe=new WeakMap,fe=new WeakMap,ge=new WeakMap,j(he,4,"type",ue,Ae,pe),j(he,4,"modifiers",ce,Ae,fe),j(he,4,"status",le,Ae,ge),j(he,2,"isDropping",ae,Ae),j(he,2,"isDragging",se,Ae),j(he,2,"isDragSource",oe,Ae),C(he,Ae);var Re=class extends(Oe=Me,xe=[a.reactive],we=[a.reactive],be=[a.reactive],ye=[a.reactive],me=[a.reactive],ve=[a.derived],Oe){constructor(e,t){var n=e,{accept:r,collisionDetector:i,collisionPriority:o,type:s}=n;super(S(n,["accept","collisionDetector","collisionPriority","type"]),t),M(Se,5,this),W(this,Ee,M(Se,8,this)),M(Se,11,this),W(this,Pe,M(Se,12,this)),M(Se,15,this),W(this,ke,M(Se,16,this)),M(Se,19,this),W(this,De,M(Se,20,this)),M(Se,23,this),W(this,Ce,M(Se,24,this)),M(Se,27,this),this.accept=r,this.collisionDetector=i,this.collisionPriority=o,this.type=s}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};Se=E(Oe),Ee=new WeakMap,Pe=new WeakMap,ke=new WeakMap,De=new WeakMap,Ce=new WeakMap,j(Se,4,"accept",xe,Re,Ee),j(Se,4,"type",we,Re,Pe),j(Se,4,"collisionDetector",be,Re,ke),j(Se,4,"collisionPriority",ye,Re,De),j(Se,4,"shape",me,Re,Ce),j(Se,2,"isDropTarget",ve,Re),C(Se,Re);var Ie=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},We=class extends Ie{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function Te(e,t=!0){let n=!1;return x(w({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var _e,$e,Le,ze,Ve,Ne,Fe,qe,He,Xe=class extends N{constructor(e){super(e);let t=[];this.destroy=a.effects(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:i}=n;if(n.isDisabled())return;if(Me.pendingIdChanges)return;const o=Te({collisions:i});if(r.dispatch("collision",o),o.defaultPrevented)return;if(s=t,i.map(({id:e})=>e).join("")===s.map(({id:e})=>e).join(""))return;var s;t=i;const[l]=i;a.untracked(()=>{var t;(null==l?void 0:l.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==l?void 0:l.id).then(()=>{n.enable()}))})})}},Ye=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(Ye||{}),Be=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(Be||{});Fe=[a.reactive],Ne=[a.derived],Ve=[a.derived],ze=[a.derived],Le=[a.derived],$e=[a.derived],_e=[a.derived];var Ke=class{constructor(){M(qe,5,this),W(this,He,M(qe,8,this,"idle")),M(qe,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};qe=E(null),He=new WeakMap,j(qe,4,"value",Fe,Ke,He),j(qe,2,"current",Ne,Ke),j(qe,2,"idle",Ve,Ke),j(qe,2,"initializing",ze,Ke),j(qe,2,"initialized",Le,Ke),j(qe,2,"dragging",$e,Ke),j(qe,2,"dropped",_e,Ke),C(qe,Ke);var Ue,Ge=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return a.untracked(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=Te({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return a.untracked(()=>{const{dragOperation:t}=this.manager;if(null!=e.source&&this.setDragSource(e.source),!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const n=new AbortController,{event:r,coordinates:i}=e;a.batch(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(i)});const o=Te({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",o),o.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&a.batch(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1})})}),n)})}move(e){return a.untracked(()=>{var t,n;const{dragOperation:r}=this.manager,{status:i,controller:o}=r;if(!i.dragging||!o||o.signal.aborted)return;const s=Te({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",s),queueMicrotask(()=>{var t,n,i,o,a;if(s.defaultPrevented)return;const l=null!=(a=e.to)?a:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(o=null==(i=e.by)?void 0:i.y)?o:0)};r.position.current=l})})}stop(e={}){return a.untracked(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:i}=r;if(!i||i.signal.aborted)return;let o;i.abort();const s=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=a.untracked(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===i&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=a.effect(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return o=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),o?o.then(s).catch(()=>r.reset()):s()})}},Ze=class extends z{constructor(e,t){super(e,t),this.manager=e,this.options=t}},Qe=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}};Ue=new WeakMap;var Je,et,tt,nt,rt,it,ot,st,at,lt,ct,ut,dt,ht,pt,ft,gt,vt,mt,yt=class extends z{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},bt=class{constructor(e){this.draggables=new je,this.droppables=new je,this.plugins=new F(e),this.sensors=new F(e),this.modifiers=new F(e)}register(e,t){if(e instanceof Ae)return this.draggables.register(e.id,e);if(e instanceof Re)return this.droppables.register(e.id,e);if(e.prototype instanceof yt)return this.modifiers.register(e,t);if(e.prototype instanceof Ze)return this.sensors.register(e,t);if(e.prototype instanceof z)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof Me)return e instanceof Ae?this.draggables.unregister(e.id,e):e instanceof Re?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof yt)return this.modifiers.unregister(e);if(e.prototype instanceof Ze)return this.sensors.unregister(e);if(e.prototype instanceof z)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};at=[a.derived],st=[a.reactive],ot=[a.reactive],it=[a.reactive],rt=[a.reactive],nt=[a.reactive],tt=[a.derived],et=[a.derived],Je=[a.derived];var wt=class{constructor(e){M(dt,5,this),W(this,lt),W(this,ct),W(this,ut,new a.ValueHistory(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new Ke,W(this,ht,M(dt,8,this,!1)),M(dt,11,this),W(this,pt,M(dt,12,this,null)),M(dt,15,this),W(this,ft,M(dt,16,this,null)),M(dt,19,this),W(this,gt,M(dt,20,this,null)),M(dt,23,this),W(this,vt,M(dt,24,this,[])),M(dt,27,this),this.position=new l.Position({x:0,y:0}),W(this,mt,{x:0,y:0}),T(this,lt,e)}get shape(){const{current:e,initial:t,previous:n}=I(this,ut);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?I(this,ut).current=e:I(this,ut).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=I(this,lt).registry.draggables.get(t);return n&&T(this,ct,n),null!=(e=null!=n?n:I(this,ct))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=I(this,lt).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(x(w({},this.snapshot()),{transform:n}));return T(this,mt,n),n}snapshot(){return a.untracked(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:I(this,mt),shape:this.shape?a.snapshot(this.shape):null,position:a.snapshot(this.position),status:a.snapshot(this.status),canceled:this.canceled}))}reset(){a.batch(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,I(this,ut).reset(),this.position.reset({x:0,y:0}),T(this,mt,{x:0,y:0}),this.modifiers=[]})}};dt=E(null),lt=new WeakMap,ct=new WeakMap,ut=new WeakMap,ht=new WeakMap,pt=new WeakMap,ft=new WeakMap,gt=new WeakMap,vt=new WeakMap,mt=new WeakMap,j(dt,2,"shape",at,wt),j(dt,4,"canceled",st,wt,ht),j(dt,4,"activatorEvent",ot,wt,pt),j(dt,4,"sourceIdentifier",it,wt,ft),j(dt,4,"targetIdentifier",rt,wt,gt),j(dt,4,"modifiers",nt,wt,vt),j(dt,2,"source",tt,wt),j(dt,2,"target",et,wt),j(dt,2,"transform",Je,wt),C(dt,wt);var xt={get rendering(){return Promise.resolve()}};function Ot(e,t){return"function"==typeof e?e(t):null!=e?e:t}t.ActivationConstraint=class{constructor(e){this.options=e,W(this,Ue)}set controller(e){T(this,Ue,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=I(this,Ue))||t.activate(e)}},t.ActivationController=Qe,t.CollisionPriority=Ye,t.CollisionType=Be,t.CorePlugin=N,t.DragDropManager=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const n=null!=e?e:{},r=Ot(n.plugins,[]),i=Ot(n.sensors,[]),o=Ot(n.modifiers,[]),s=null!=(t=n.renderer)?t:xt,l=new We(this),c=new bt(this);this.registry=c,this.monitor=l,this.renderer=s,this.actions=new Ge(this),this.dragOperation=new wt(this),this.collisionObserver=new re(this),this.plugins=[Xe,...r],this.modifiers=o,this.sensors=i;const{destroy:u}=this,d=a.effects(()=>{var e,t,n;const r=a.untracked(()=>this.dragOperation.modifiers),i=this.modifiers;for(const e of r)i.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=L(e);return new t(this,n)}))?n:i});this.destroy=()=>{d(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},t.DragOperationStatus=Ke,t.Draggable=Ae,t.Droppable=Re,t.Modifier=yt,t.Plugin=z,t.PluginRegistry=F,t.Sensor=Ze,t.configurator=function(e){return t=>$(e,t)},t.configure=$,t.descriptor=L,t.resolveCustomizable=Ot,t.sortCollisions=q},327(e,t,n){var r=n(13),i=Object.defineProperty,o=Object.defineProperties,s=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&u(e,n,t[n]);if(a)for(var n of a(t))c.call(t,n)&&u(e,n,t[n]);return e},h=(e,t)=>o(e,s(t)),p=class extends r.Modifier{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return h(d({},e),{[t]:n})}};p.configure=r.configurator(p);var f=p,g=f.configure({axis:"x",value:0}),v=f.configure({axis:"y",value:0}),m=class extends r.Modifier{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,i="number"==typeof n?n:n.y;return h(d({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/i)*i})}};m.configure=r.configurator(m);var y=m;t.AxisModifier=f,t.RestrictToHorizontalAxis=v,t.RestrictToVerticalAxis=g,t.SnapModifier=y,t.restrictShapeToBoundingRectangle=function(e,t,n){const r=d({},t);return e.boundingRectangle.top+t.y<=n.top?r.y=n.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=n.top+n.height&&(r.y=n.top+n.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=n.left?r.x=n.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=n.left+n.width&&(r.x=n.left+n.width-e.boundingRectangle.right),r}},528(e,t,n){var r,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(l,{closestCenter:()=>x,closestCorners:()=>y,defaultCollisionDetection:()=>g,directionBiased:()=>E,pointerDistance:()=>D,pointerIntersection:()=>d,shapeIntersection:()=>f}),e.exports=(r=l,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of s(t))a.call(e,n)||void 0===n||i(e,n,{get:()=>t[n],enumerable:!(r=o(t,n))||r.enumerable});return e})(i({},"__esModule",{value:!0}),r));var c=n(13),u=n(500),d=({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;return t.shape&&t.shape.containsPoint(n)?{id:r,value:1/u.Point.distance(t.shape.center,n),type:c.CollisionType.PointerIntersection,priority:c.CollisionPriority.High}:null},h=n(13),p=n(500),f=({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:i}=e,o=p.Point.distance(t.shape.center,i.current),s=r/(n.current.area+t.shape.area-r)/o;return{id:t.id,value:s,type:h.CollisionType.ShapeIntersection,priority:h.CollisionPriority.Normal}}return null},g=e=>{var t;return null!=(t=d(e))?t:f(e)},v=n(13),m=n(500),y=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:i}=t;if(!n.shape)return null;const o=r?m.Rectangle.from(r.current.boundingRectangle).corners:void 0,s=m.Rectangle.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+m.Point.distance(m.Point.from(t),null!=(r=null==o?void 0:o[n])?r:i.current)},0)/4;return{id:n.id,value:1/s,type:v.CollisionType.Collision,priority:v.CollisionPriority.Normal}},b=n(13),w=n(500),x=e=>{var t;const{dragOperation:n,droppable:r}=e,{shape:i,position:o}=n;if(!r.shape)return null;const s=g(e);if(s)return s;const a=1/w.Point.distance(r.shape.center,null!=(t=null==i?void 0:i.current.center)?t:o.current);return{id:r.id,value:a,type:b.CollisionType.Collision,priority:b.CollisionPriority.Normal}},O=n(13),S=n(500),E=({dragOperation:e,droppable:t})=>{if(!t.shape)return null;const{position:n,shape:r}=e,{direction:i}=n;if(!r)return null;if(null===i)return g({dragOperation:e,droppable:t});const{center:o}=r.current,s=t.shape.boundingRectangle,a=s.bottom>=o.y,l=s.top<=o.y,c=s.left<=o.x,u=s.right>=o.x;if("down"===i&&a||"up"===i&&l||"left"===i&&c||"right"===i&&u){const e=S.Point.distance(t.shape.center,o),n=0===e?1:1/e;return{id:t.id,value:n,type:O.CollisionType.Collision,priority:O.CollisionPriority.Normal}}return null},P=n(13),k=n(500),D=e=>{const{dragOperation:t,droppable:n}=e,{position:r}=t;if(!n.shape)return null;const i=1/k.Point.distance(n.shape.center,r.current);return{id:n.id,value:i,type:P.CollisionType.Collision,priority:P.CollisionPriority.Normal}}},567(e,t,n){var r=n(13),i=n(931),o=n(665),s=n(500),a=n(528),l=Object.create,c=Object.defineProperty,u=Object.defineProperties,d=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,v=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),m=e=>{throw TypeError(e)},y=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&y(e,n,t[n]);if(p)for(var n of p(t))g.call(t,n)&&y(e,n,t[n]);return e},w=(e,t)=>u(e,h(t)),x=(e,t)=>c(e,"name",{value:t,configurable:!0}),O=(e,t)=>{var n={};for(var r in e)f.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&p)for(var r of p(e))t.indexOf(r)<0&&g.call(e,r)&&(n[r]=e[r]);return n},S=e=>{var t;return[,,,l(null!=(t=null==e?void 0:e[v("metadata")])?t:null)]},E=["class","method","getter","setter","accessor","field","value","get","set"],P=e=>void 0!==e&&"function"!=typeof e?m("Function expected"):e,k=(e,t,n,r,i)=>({kind:E[e],name:t,metadata:r,addInitializer:e=>n._?m("Already initialized"):i.push(P(e||null))}),D=(e,t)=>y(t,v("metadata"),e[3]),C=(e,t,n,r)=>{for(var i=0,o=e[t>>1],s=o&&o.length;i<s;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},M=(e,t,n,r,i,o)=>{var s,a,l,u,h,p=7&t,f=!!(8&t),g=!!(16&t),v=p>3?e.length+1:p?f?1:2:0,y=E[p+5],b=p>3&&(e[v-1]=[]),w=e[v]||(e[v]=[]),O=p&&(!g&&!f&&(i=i.prototype),p<5&&(p>3||!g)&&d(p<4?i:{get[n](){return R(this,o)},set[n](e){return W(this,o,e)}},n));p?g&&p<4&&x(o,(p>2?"set ":p>1?"get ":"")+n):x(i,n);for(var S=r.length-1;S>=0;S--)u=k(p,n,l={},e[3],w),p&&(u.static=f,u.private=g,h=u.access={has:g?e=>A(i,e):e=>n in e},3^p&&(h.get=g?e=>(1^p?R:T)(e,i,4^p?o:O.get):e=>e[n]),p>2&&(h.set=g?(e,t)=>W(e,i,t,4^p?o:O.set):(e,t)=>e[n]=t)),a=(0,r[S])(p?p<4?g?o:O[y]:p>4?void 0:{get:O.get,set:O.set}:i,u),l._=1,4^p||void 0===a?P(a)&&(p>4?b.unshift(a):p?g?o=a:O[y]=a:i=a):"object"!=typeof a||null===a?m("Object expected"):(P(s=a.get)&&(O.get=s),P(s=a.set)&&(O.set=s),P(s=a.init)&&b.unshift(s));return p||D(e,i),O&&c(i,n,O),g?4^p?o:O:i},j=(e,t,n)=>t.has(e)||m("Cannot "+n),A=(e,t)=>Object(t)!==t?m('Cannot use the "in" operator on this value'):e.has(t),R=(e,t,n)=>(j(e,t,"read from private field"),n?n.call(e):t.get(e)),I=(e,t,n)=>t.has(e)?m("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),W=(e,t,n,r)=>(j(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),T=(e,t,n)=>(j(e,t,"access private method"),n),_="dnd-kit-description",$="dnd-kit-announcement",L={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},z={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function V(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var N,F,q,H,X,Y,B,K,U,G,Z,Q,J,ee=["dragover","dragmove"],te=class extends r.Plugin{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=_,announcement:o=$}={},announcements:s=z,screenReaderInstructions:a=L,debounce:l=500}=null!=t?t:{},c=n?`${r}-${n}`:i.generateUniqueId(r),u=n?`${o}-${n}`:i.generateUniqueId(o);let d,h,p,f;const g=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},v=()=>i.scheduler.schedule(g),m=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(v,l),y=Object.entries(s).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const i=p;if(!i)return;const o=null==t?void 0:t(n,r);o&&i.nodeValue!==o&&(f=o,ee.includes(e)?m():(v(),m.cancel()))})),b=()=>{let e=[];(null==d?void 0:d.isConnected)||(d=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(c,a.draggable),e.push(d)),(null==h?void 0:h.isConnected)||(h=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),h.appendChild(p),e.push(h)),e.length>0&&document.body.append(...e)},w=new Set;function x(){for(const e of w)e()}this.registerEffect(()=>{var e;w.clear();for(const t of this.manager.registry.draggables.value){const n=null!=(e=t.handle)?e:t.element;if(n){d&&h||w.add(b),V(n)&&!i.isSafari()||n.hasAttribute("tabindex")||w.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||w.add(()=>n.setAttribute("role","button")),n.hasAttribute("aria-roledescription")||w.add(()=>n.setAttribute("aria-roledescription","draggable")),n.hasAttribute("aria-describedby")||w.add(()=>n.setAttribute("aria-describedby",c));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&w.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&w.add(()=>n.setAttribute("aria-disabled",e))}}w.size>0&&i.scheduler.schedule(x)}),this.destroy=()=>{super.destroy(),null==d||d.remove(),null==h||h.remove(),y.forEach(e=>e())}}},ne=new Map,re=class extends(X=r.CorePlugin,H=[o.reactive],q=[o.derived],F=[o.derived],N=[o.derived],X){constructor(e,t){super(e,t),C(B,5,this),I(this,U),I(this,Y,new Set),I(this,K,C(B,8,this,new Set)),C(B,11,this),this.registerEffect(T(this,U,G))}register(e){return R(this,Y).add(e),()=>{R(this,Y).delete(e)}}addRoot(e){return o.untracked(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{o.untracked(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return i.getRoot(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return i.getRoot(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};B=S(X),Y=new WeakMap,K=new WeakMap,U=new WeakSet,G=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of R(this,Y))t.push(T(this,U,Z).call(this,n,e));return()=>{for(const e of t)e()}},Z=function(e,t){let n=ne.get(e);n||(n=new Map,ne.set(e,n));let r=n.get(t);if(!r){const o=i.isDocument(e)?T(this,U,Q).call(this,e,n,t):T(this,U,J).call(this,e,n,t);if(!o)return()=>{};r=o,n.set(t,r)}r.refCount++;let o=!1;return()=>{o||(o=!0,r.refCount--,0===r.refCount&&r.cleanup())}},Q=function(e,t,n){var r;const i=e.createElement("style"),{nonce:o}=null!=(r=this.options)?r:{};o&&i.setAttribute("nonce",o),i.textContent=n,e.head.prepend(i);const s=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===i)return void e.head.prepend(i)});return s.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{s.disconnect(),i.remove(),t.delete(n),0===t.size&&ne.delete(e)}}},J=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=r?r:{};if(!o)return null;const s=new o;return s.replaceSync(n),e.adoptedStyleSheets.push(s),{refCount:0,cleanup:()=>{var r;if(i.isShadowRoot(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(s);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&ne.delete(e)}}},M(B,4,"additionalRoots",H,re,K),M(B,2,"sourceRoot",q,re),M(B,2,"targetRoot",F,re),M(B,2,"roots",N,re),D(B,re),re.configure=r.configurator(re);var ie=re,oe=class extends r.Plugin{constructor(e,t){super(e,t),this.manager=e;const{cursor:n="grabbing"}=null!=t?t:{},r=e.registry.plugins.get(ie),i=null==r?void 0:r.register(`* { cursor: ${n} !important; }`);if(i){const e=this.destroy.bind(this);this.destroy=()=>{i(),e()}}}},se="data-dnd-",ae=`${se}dropping`,le="--dnd-",ce=`${se}dragging`,ue=`${se}placeholder`,de=[ce,ue,"popover","aria-pressed","aria-grabbing"],he=["view-transition-name"],pe=`\n :is(:root,:host) [${ce}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${le}top, 0px) !important;\n left: var(${le}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${le}width, auto);\n max-width: var(${le}width, auto);\n height: var(${le}height, auto);\n max-height: var(${le}height, auto);\n transform: var(${le}transform, none) !important;\n transition: var(${le}transition) !important;\n }\n\n :is(:root,:host) [${ue}] {\n transition: none;\n }\n\n :is(:root,:host) [${ue}='hidden'] {\n visibility: hidden;\n }\n\n [${ce}] * {\n pointer-events: none !important;\n }\n\n [${ce}]:not([${ae}]) {\n translate: var(${le}translate) !important;\n }\n\n [${ce}][style*='${le}scale'] {\n scale: var(${le}scale) !important;\n transform-origin: var(${le}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${ce}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${ce}]::backdrop, [${se}overlay]:not([${ce}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function fe(e,t){return e===t||i.getFrameElement(e)===i.getFrameElement(t)}function ge(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&i.isElement(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>i.showPopover(t))}function ve(e){return"TR"===e.tagName}var me,ye,be,we,xe,Oe,Se,Ee=250,Pe="ease",ke=class extends(ye=r.Plugin,me=[o.reactive],ye){constructor(e,t){super(e,t),I(this,xe),I(this,we,C(be,8,this)),C(be,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(ie),r=null==n?void 0:n.register(pe);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(T(this,xe,Oe).bind(this,n)),this.registerEffect(T(this,xe,Se))}};be=S(ye),we=new WeakMap,xe=new WeakSet,Oe=function(e){const{overlay:t}=this;if(!t||!e)return;const n=i.getRoot(t);return n?e.addRoot(n):void 0},Se=function(){var e,t,n,r,a,l,c;const{state:u,manager:d,options:h}=this,{dragOperation:p}=d,{position:f,source:g,status:v}=p;if(v.idle)return u.current={},void(u.initial={});if(!g)return;const{element:m}=g,y=g.pluginConfig(ke),x=null!=(t=null!=(e=null==y?void 0:y.feedback)?e:null==h?void 0:h.feedback)?t:"default",O="function"==typeof x?x(g,d):x;if(!m||"none"===O||!v.initialized||v.initializing)return;const{initial:S}=u,E=null!=(n=this.overlay)?n:m,P=i.getFrameTransform(E),k=i.getFrameTransform(m),D=!fe(m,E),C=new i.DOMRectangle(m,{frameTransform:D?k:null,ignoreTransforms:!D}),M=k.scaleX/P.scaleX,j=k.scaleY/P.scaleY;let{width:A,height:R,top:I,left:W}=C;D&&(A/=M,R/=j);const T=new i.Styles(E),_=i.getComputedStyles(m),{transition:$,translate:L,boxSizing:z,paddingBlockStart:V,paddingBlockEnd:N,paddingInlineStart:F,paddingInlineEnd:q,borderInlineStartWidth:H,borderInlineEndWidth:X,borderBlockStartWidth:Y,borderBlockEndWidth:B}=_,K=$.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),U=i.parseTransform(_),G=_.transform,Z="clone"===O,Q="content-box"===z,J=Q?parseInt(F)+parseInt(q)+parseInt(H)+parseInt(X):0,ee=Q?parseInt(V)+parseInt(N)+parseInt(Y)+parseInt(B):0,te="move"===O||this.overlay?null:function(e,t="hidden"){return o.untracked(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const o=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${se}${i.generateUniqueId("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),s=[],a=i.cloneElement(n),{remove:l}=a;return function(e,t,n){for(const[r,o]of e){if(!r.element)continue;const e=`[${o}]`,s=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(o),!s)continue;const a=r.element;r.proxy=s,s.removeAttribute(o),i.ProxiedElements.set(a,s),n.push(()=>{i.ProxiedElements.delete(a),r.proxy=void 0})}}(o,a,s),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(ue,t)}(a,t),a.remove=()=>{s.forEach(e=>e()),l.call(a)},a})}(g,Z?"clone":"hidden"),ne=o.untracked(()=>i.isKeyboardEvent(d.dragOperation.activatorEvent));if(!S.translate)if(this.overlay&&U)S.translate={x:U.x,y:U.y};else if("none"!==L){const e=i.parseTranslate(L);e&&(S.translate=e)}if(!S.transformOrigin){const e=o.untracked(()=>f.current),t=W+(null!=(r=null==U?void 0:U.x)?r:0),n=I+(null!=(a=null==U?void 0:U.y)?a:0);S.transformOrigin={x:(e.x-t*P.scaleX-P.x)/(A*P.scaleX),y:(e.y-n*P.scaleY-P.y)/(R*P.scaleY)}}const{transformOrigin:re}=S,ie=I*P.scaleY+P.y,oe=W*P.scaleX+P.x;if(!S.coordinates&&(S.coordinates={x:oe,y:ie},1!==M||1!==j)){const{scaleX:e,scaleY:t}=k,{x:n,y:r}=re;S.coordinates.x+=(A*e-A)*n,S.coordinates.y+=(R*t-R)*r}S.dimensions||(S.dimensions={width:A,height:R}),S.frameTransform||(S.frameTransform=P);const pe=S.coordinates.x-oe,me=S.coordinates.y-ie,ye=(S.dimensions.width*S.frameTransform.scaleX-A*P.scaleX)*re.x,be=(S.dimensions.height*S.frameTransform.scaleY-R*P.scaleY)*re.y,we={x:pe/P.scaleX+ye,y:me/P.scaleY+be},xe=W+we.x,Oe=I+we.y;E.setAttribute(ce,"true");const Se=o.untracked(()=>p.transform),De=null!=(l=S.translate)?l:{x:0,y:0},Ce=Se.x*P.scaleX+De.x,Me=Se.y*P.scaleY+De.y,je=i.getFixedPositionOffset();let Ae,Re,Ie;T.set({width:A-J,height:R-ee,top:Oe+je.y,left:xe+je.x,translate:`${Ce}px ${Me}px 0`,transform:this.overlay?"none":G,transition:K?`${K}, translate 0ms linear`:"translate 0ms linear",scale:D?`${M} ${j}`:"","transform-origin":`${100*re.x}% ${100*re.y}%`},le),te&&(m.insertAdjacentElement("afterend",te),null==h?void 0:h.rootElement)&&("function"==typeof h.rootElement?h.rootElement(g):h.rootElement).appendChild(m),i.supportsPopover(E)&&(E.hasAttribute("popover")||E.setAttribute("popover","manual"),i.showPopover(E),E.addEventListener("beforetoggle",ge));const We=(Te={placeholder:te,element:m,feedbackElement:E,frameTransform:P,transformOrigin:re,width:A,height:R,top:I,left:W,widthOffset:J,heightOffset:ee,delta:we,styles:T,dragOperation:p,getTranslate:()=>u.current.translate,getElementMutationObserver:()=>Ae,getSavedCellWidths:()=>Ie,setSavedCellWidths:e=>{Ie=e}},new ResizeObserver(()=>{var e,t,n;const r=new i.DOMRectangle(Te.placeholder,{frameTransform:Te.frameTransform,ignoreTransforms:!0}),o=null!=(e=Te.transformOrigin)?e:{x:1,y:1},a=(Te.width-r.width)*o.x+Te.delta.x,l=(Te.height-r.height)*o.y+Te.delta.y,c=i.getFixedPositionOffset();if(Te.styles.set({width:r.width-Te.widthOffset,height:r.height-Te.heightOffset,top:Te.top+l+c.y,left:Te.left+a+c.x},le),null==(t=Te.getElementMutationObserver())||t.takeRecords(),ve(Te.element)&&ve(Te.placeholder)){const e=Array.from(Te.element.cells),t=Array.from(Te.placeholder.cells);Te.getSavedCellWidths()||Te.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}const u=null!=(n=Te.getTranslate())?n:{x:0,y:0},d=Te.left+a+c.x+u.x,h=Te.top+l+c.y+u.y,p=r.width-Te.widthOffset,f=r.height-Te.heightOffset,g=Te.frameTransform;Te.dragOperation.shape=new s.Rectangle(d*g.scaleX+g.x,h*g.scaleY+g.y,p*g.scaleX,f*g.scaleY)}));var Te;const _e=new i.DOMRectangle(E);o.untracked(()=>p.shape=_e);const $e=i.getWindow(E),Le=e=>{this.manager.actions.stop({event:e})},ze=i.prefersReducedMotion($e);ne&&$e.addEventListener("resize",Le),"idle"===o.untracked(()=>g.status)&&requestAnimationFrame(()=>g.status="dragging"),te&&(We.observe(te),Ae=function(e,t,n){const r=new MutationObserver(r=>{let o=!1;for(const n of r){if(n.target!==e){o=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||de.includes(r))continue;const s=e.getAttribute(r);if("style"===r){if(i.supportsStyle(e)&&i.supportsStyle(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(he.includes(e)||e.startsWith(le))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==s?t.setAttribute(r,s):t.removeAttribute(r)}o&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(m,te,Z),Re=function(e,t,n){const r=new MutationObserver(r=>{for(const o of r)if(0!==o.addedNodes.length)for(const r of Array.from(o.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void i.showPopover(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void i.showPopover(n)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),i.showPopover(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(m,te,E));const Ve=null==(c=d.dragOperation.source)?void 0:c.id,Ne=()=>{var e;if(!ne||null==Ve)return;const t=d.registry.draggables.get(Ve),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;i.isHTMLElement(n)&&n.focus()},Fe=()=>{null==Ae||Ae.disconnect(),null==Re||Re.disconnect(),We.disconnect(),$e.removeEventListener("resize",Le),i.supportsPopover(E)&&(E.removeEventListener("beforetoggle",ge),E.removeAttribute("popover")),E.removeAttribute(ce),T.reset();const e=()=>{var e;if(Ie&&ve(m)){const t=Array.from(m.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=Ie[n])?e:""}g.status="idle";const t=null!=u.current.translate,n=p.status.dragging;te&&(!n&&t||te.parentElement!==E.parentElement)&&E.isConnected&&te.replaceWith(E),null==te||te.remove()};E===this.overlay?setTimeout(e,0):e()},qe=null==h?void 0:h.dropAnimation,He=this,Xe=o.effects(()=>{var e,t,n;const{transform:r,status:a}=p;if((r.x||r.y||u.current.translate)&&a.dragging){const a=null!=(e=S.translate)?e:{x:0,y:0},l={x:r.x/P.scaleX+a.x,y:r.y/P.scaleY+a.y},c=u.current.translate,d=o.untracked(()=>p.modifiers),f=o.untracked(()=>{var e;return null==(e=p.shape)?void 0:e.current}),g=null==h?void 0:h.keyboardTransition,v=ne&&!ze&&null!==g?`${null!=(t=null==g?void 0:g.duration)?t:250}ms ${null!=(n=null==g?void 0:g.easing)?n:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(T.set({transition:K?`${K}, translate ${v}`:`translate ${v}`,translate:`${l.x}px ${l.y}px 0`},le),null==Ae||Ae.takeRecords(),f&&f!==_e&&c&&!d.length){const e=s.Point.delta(l,c);p.shape=s.Rectangle.from(f.boundingRectangle).translate(e.x*P.scaleX,e.y*P.scaleY)}else p.shape=new i.DOMRectangle(E);u.current.translate=l}},function(){if(p.status.dropped){this.dispose(),g.status="dropping";const e=void 0!==(null==y?void 0:y.dropAnimation)?y.dropAnimation:void 0!==He.dropAnimation?He.dropAnimation:qe;let t=u.current.translate;const n=null!=t;if(t||m===E||(t={x:0,y:0}),!t||null===e)return void Fe();d.renderer.rendering.then(()=>{!function(e){var t,n,r,o;const{animation:a}=e;if("function"==typeof a){const t=a({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:l=Ee,easing:c=Pe}=null!=a?a:{};i.showPopover(e.feedbackElement);const[,u]=null!=(t=i.getFinalKeyframe(e.feedbackElement,e=>"translate"in e))?t:[];null==u||u.pause();const d=null!=(n=e.placeholder)?n:e.element,h={frameTransform:fe(e.feedbackElement,d)?null:void 0},p=new i.DOMRectangle(e.feedbackElement,h),f=null!=(r=i.parseTranslate(i.getComputedStyles(e.feedbackElement).translate))?r:e.translate,g=new i.DOMRectangle(d,h),v=s.Rectangle.delta(p,g,e.alignment),m=f.x-v.x,y=f.y-v.y,x=Math.round(p.intrinsicHeight)!==Math.round(g.intrinsicHeight)?{minHeight:[`${p.intrinsicHeight}px`,`${g.intrinsicHeight}px`],maxHeight:[`${p.intrinsicHeight}px`,`${g.intrinsicHeight}px`]}:{},O=Math.round(p.intrinsicWidth)!==Math.round(g.intrinsicWidth)?{minWidth:[`${p.intrinsicWidth}px`,`${g.intrinsicWidth}px`],maxWidth:[`${p.intrinsicWidth}px`,`${g.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},le),e.feedbackElement.setAttribute(ae,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),i.animateTransform({element:e.feedbackElement,keyframes:w(b(b({},x),O),{translate:[`${f.x}px ${f.y}px 0`,`${m}px ${y}px 0`]}),options:{duration:i.prefersReducedMotion(i.getWindow(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?l:0,easing:c}}).then(()=>{e.feedbackElement.removeAttribute(ae),null==u||u.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:g,element:m,feedbackElement:E,placeholder:te,translate:t,moved:n,transition:$,alignment:g.alignment,styles:T,animation:null!=e?e:void 0,getElementMutationObserver:()=>Ae,cleanup:Fe,restoreFocus:Ne})})}});return()=>{Fe(),Xe()}},M(be,4,"overlay",me,ke,we),D(be,ke),ke.configure=r.configurator(ke);var De,Ce,Me,je,Ae,Re,Ie,We=ke,Te=!0;Me=[o.reactive],je=i.ScrollDirection.Forward,De=[o.reactive],Ce=i.ScrollDirection.Reverse;var _e=class{constructor(){I(this,Re,C(Ae,8,this,Te)),C(Ae,11,this),I(this,Ie,C(Ae,12,this,Te)),C(Ae,15,this)}isLocked(e){return e!==i.ScrollDirection.Idle&&(null==e?this[i.ScrollDirection.Forward]===Te&&this[i.ScrollDirection.Reverse]===Te:this[e]===Te)}unlock(e){e!==i.ScrollDirection.Idle&&(this[e]=!1)}};Ae=S(null),Re=new WeakMap,Ie=new WeakMap,M(Ae,4,je,Me,_e,Re),M(Ae,4,Ce,De,_e,Ie),D(Ae,_e);var $e,Le,ze,Ve,Ne,Fe,qe=[i.ScrollDirection.Forward,i.ScrollDirection.Reverse],He=class{constructor(){this.x=new _e,this.y=new _e}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Xe=class extends r.Plugin{constructor(e){super(e);const t=o.signal(new He);let n=null;this.signal=t,o.effect(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new He);const{delta:i}=e.dragOperation.position;if(n){const e={x:Ye(i.x,n.x),y:Ye(i.y,n.y)},r=t.peek();o.batch(()=>{for(const t of s.Axes)for(const n of qe)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}};function Ye(e,t){return Math.sign(e-t)}var Be=class extends(Le=r.CorePlugin,$e=[o.reactive],Le){constructor(e){super(e),I(this,Ve,C(ze,8,this,!1)),C(ze,11,this),I(this,Ne),I(this,Fe,()=>{if(!R(this,Ne))return;const{element:e,by:t}=R(this,Ne);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var n;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return W(this,Ne,void 0),!1;const{position:o}=this.manager.dragOperation,a=null==o?void 0:o.current;if(a){const{by:o}=null!=e?e:{},l=o?{x:Ke(o.x),y:Ke(o.y)}:void 0,c=l?void 0:this.scrollIntentTracker.current;if(null==c?void 0:c.isLocked())return!1;for(const e of r){const r=i.canScroll(e,o);if(r.x||r.y){const{speed:r,direction:u}=i.detectScrollIntent(e,a,l,null==t?void 0:t.acceleration,null==t?void 0:t.threshold);if(c)for(const e of s.Axes)c[e].isLocked(u[e])&&(r[e]=0,u[e]=0);if(u.x||u.y){const{x:t,y:s}=null!=o?o:u,a=t*r.x,l=s*r.y;if(a||l){const t=null==(n=R(this,Ne))?void 0:n.by;if(this.autoScrolling&&t&&(t.x&&!a||t.y&&!l))continue;return W(this,Ne,{element:e,by:{x:a,y:l}}),i.scheduler.schedule(R(this,Fe)),!0}}}}}return W(this,Ne,void 0),!1};let t=null,n=null;const r=o.computed(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const o=i.getElementFromPoint(i.getRoot(null==r?void 0:r.element),n.current);return o&&(t=o),null!=o?o:t}),a=o.computed(()=>{const t=r.value,{documentElement:o}=i.getDocument(t);if(!t||t===o){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=i.getScrollableAncestors(r,{excludeElement:!1});return n=e,e}}if(t){const e=i.getScrollableAncestors(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},o.deepEqual);this.getScrollableElements=()=>a.value,this.scrollIntentTracker=new Xe(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&i.isKeyboardEvent(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function Ke(e){return e>0?i.ScrollDirection.Forward:e<0?i.ScrollDirection.Reverse:i.ScrollDirection.Idle}ze=S(Le),Ve=new WeakMap,Ne=new WeakMap,Fe=new WeakMap,M(ze,4,"autoScrolling",$e,Be,Ve),D(ze,Be);var Ue=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),Ge=class extends r.Plugin{constructor(e,t){super(e,t);const n=e.registry.plugins.get(Be);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=o.effect(()=>{var t,r,i;if(this.disabled)return;const{position:o,status:s}=e.dragOperation;if(s.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(r=this.options)?void 0:r.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(i=this.options)?void 0:i.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;const t=setInterval(()=>Ue.schedule(()=>n.scroll(void 0,e)),10);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};Ge.configure=r.configurator(Ge);var Ze,Qe=Ge,Je={capture:!0,passive:!0},et=class extends r.CorePlugin{constructor(e){super(e),I(this,Ze),this.handleScroll=()=>{null==R(this,Ze)&&W(this,Ze,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),W(this,Ze,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=o.effect(()=>{var e,n,r;if(t.status.dragging){const i=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return i.addEventListener("scroll",this.handleScroll,Je),()=>{i.removeEventListener("scroll",this.handleScroll,Je)}}})}};Ze=new WeakMap;var tt=class extends r.Plugin{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(ie),n=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=o.effect(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return nt(),document.addEventListener("selectionchange",nt,{capture:!0}),()=>{document.removeEventListener("selectionchange",nt,{capture:!0})}}),n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}}};function nt(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var rt,it=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),ot=class extends r.Sensor{constructor(e,t){super(e),this.manager=e,this.options=t,I(this,rt,[]),this.listeners=new i.Listeners,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!i.isElement(e.target))return;if(t.disabled)return;const{keyboardCodes:r=it.keyboardCodes,preventActivation:o=it.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){return o.effect(()=>{var n;const r=null!=(n=e.handle)?n:e.element,o=n=>{i.isKeyboardEvent(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}})}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),i.scrollIntoViewIfNeeded(r);const{center:o}=new i.DOMRectangle(r);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const s=i.getDocument(r),a=[this.listeners.bind(s,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];R(this,rt).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=it.keyboardCodes}=null!=n?n:{};if(lt(e,[...r.end,...r.cancel])){e.preventDefault();const t=lt(e,r.cancel);return void this.handleEnd(e,t)}lt(e,r.up)?this.handleMove("up",e):lt(e,r.down)&&this.handleMove("down",e),lt(e,r.left)?this.handleMove("left",e):lt(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:i}=this.manager.dragOperation,o=t.shiftKey?5:1;let s={x:0,y:0},a=null!=(r=null==(n=this.options)?void 0:n.offset)?r:it.offset;if("number"==typeof a&&(a={x:a,y:a}),i){switch(e){case"up":s={x:0,y:-a.y*o};break;case"down":s={x:0,y:a.y*o};break;case"left":s={x:-a.x*o,y:0};break;case"right":s={x:a.x*o,y:0}}(s.x||s.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:s}))}}sideEffects(){const e=this.manager.registry.plugins.get(Qe);!1===(null==e?void 0:e.disabled)&&(e.disable(),R(this,rt).push(()=>{e.enable()}))}cleanup(){R(this,rt).forEach(e=>e()),W(this,rt,[])}destroy(){this.cleanup(),this.listeners.clear()}};rt=new WeakMap,ot.configure=r.configurator(ot),ot.defaults=it;var st,at=ot;function lt(e,t){return t.includes(e.code)}var ct,ut,dt=class extends r.ActivationConstraint{constructor(){super(...arguments),I(this,st)}onEvent(e){switch(e.type){case"pointerdown":W(this,st,i.getEventCoordinates(e));break;case"pointermove":if(!R(this,st))return;const{x:t,y:n}=i.getEventCoordinates(e),r={x:t-R(this,st).x,y:n-R(this,st).y},{tolerance:o}=this.options;if(o&&s.exceedsDistance(r,o))return void this.abort();s.exceedsDistance(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){W(this,st,void 0)}};st=new WeakMap;var ht=class extends r.ActivationConstraint{constructor(){super(...arguments),I(this,ct),I(this,ut)}onEvent(e){switch(e.type){case"pointerdown":W(this,ut,i.getEventCoordinates(e)),W(this,ct,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!R(this,ut))return;const{x:t,y:n}=i.getEventCoordinates(e),r={x:t-R(this,ut).x,y:n-R(this,ut).y};s.exceedsDistance(r,this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){R(this,ct)&&(clearTimeout(R(this,ct)),W(this,ut,void 0),W(this,ct,void 0))}};ct=new WeakMap,ut=new WeakMap;var pt=class{};pt.Delay=ht,pt.Distance=dt;var ft,gt=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:o}=e;if("mouse"!==r||!i.isElement(o)||t.handle!==o&&!(null==(n=t.handle)?void 0:n.contains(o)))return"touch"===r?[new pt.Delay({value:250,tolerance:5})]:i.isTextInput(o)&&!e.defaultPrevented?[new pt.Delay({value:200,tolerance:0})]:[new pt.Delay({value:200,tolerance:10}),new pt.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;if(r===t.element)return!1;if(r===t.handle)return!1;if(!i.isElement(r))return!1;if(null==(n=t.handle)?void 0:n.contains(r))return!1;const o=i.getInteractiveElement(r);return o!==t.element&&Boolean(o)}}),vt=class extends r.Sensor{constructor(e,t){super(e),this.manager=e,this.options=t,I(this,ft,new Set),this.listeners=new i.Listeners,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=gt.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){return o.effect(()=>{var n;const r=new AbortController,{signal:o}=r,s=n=>{i.isPointerEvent(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(xt(e.ownerDocument.defaultView),e.addEventListener("pointerdown",s,{signal:o}));return()=>r.abort()})}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!i.isElement(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:o=gt.preventActivation}=null!=n?n:{};if(null==o?void 0:o(e,t))return;const{target:s}=e,a=i.isHTMLElement(s)&&s.draggable&&"true"===s.getAttribute("draggable"),l=i.getFrameTransform(t.element),{x:c,y:u}=i.getEventCoordinates(e);this.initialCoordinates={x:c*l.scaleX+l.x,y:u*l.scaleY+l.y};const d=this.activationConstraints(e,t,n);e.sensor=this;const h=new r.ActivationController(d,e=>this.handleStart(t,e));h.signal.onabort=()=>this.handleCancel(e),h.onEvent(e),this.controller=h;const p=i.getDocuments(),f=this.listeners.bind(p,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:a?this.handleCancel:yt,options:{capture:!0}}]);R(this,ft).add(()=>{f(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=i.getEventCoordinates(e),r=i.getFrameTransform(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,i.scheduler.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=i.getDocument(t.target).body;try{o.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const s=i.isElement(t.target)?[t.target,o]:o,a=this.listeners.bind(s,[{type:"touchmove",listener:yt,options:{passive:!1}},{type:"click",listener:yt},{type:"contextmenu",listener:yt},{type:"keydown",listener:this.handleKeyDown}]);R(this,ft).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},R(this,ft).forEach(e=>e()),R(this,ft).clear()}destroy(){this.cleanup(),this.listeners.clear()}};ft=new WeakMap,vt.configure=r.configurator(vt),vt.defaults=gt;var mt=vt;function yt(e){e.preventDefault()}function bt(){}var wt=new WeakSet;function xt(e){e&&!wt.has(e)&&(e.addEventListener("touchmove",bt,{capture:!1,passive:!1}),wt.add(e))}var Ot,St,Et,Pt,kt,Dt,Ct,Mt,jt,At,Rt,It,Wt,Tt,_t,$t,Lt={modifiers:[],plugins:[te,Qe,oe,We,tt],sensors:[mt,at]},zt=class extends r.DragDropManager{constructor(e={}){const t=r.resolveCustomizable(e.plugins,Lt.plugins),n=r.resolveCustomizable(e.sensors,Lt.sensors),i=r.resolveCustomizable(e.modifiers,Lt.modifiers);super(w(b({},e),{plugins:[et,Be,ie,...t],sensors:n,modifiers:i}))}},Vt=class extends(Et=r.Draggable,St=[o.reactive],Ot=[o.reactive],Et){constructor(e,t){var n=e,{element:i,effects:o=()=>[],handle:s}=n,a=O(n,["element","effects","handle"]);super(b({effects:()=>[...o(),()=>{var e,t;const{manager:n}=this;if(!n)return;const i=(null!=(t=null==(e=this.sensors)?void 0:e.map(r.descriptor))?t:[...n.sensors]).map(e=>{const t=e instanceof r.Sensor?e:n.registry.register(e.plugin),i=e instanceof r.Sensor?void 0:e.options;return t.bind(this,i)});return function(){i.forEach(e=>e())}}]},a),t),I(this,kt,C(Pt,8,this)),C(Pt,11,this),I(this,Dt,C(Pt,12,this)),C(Pt,15,this),this.element=i,this.handle=s}};Pt=S(Et),kt=new WeakMap,Dt=new WeakMap,M(Pt,4,"handle",St,Vt,kt),M(Pt,4,"element",Ot,Vt,Dt),D(Pt,Vt);var Nt=class extends(jt=r.Droppable,Mt=[o.reactive],Ct=[o.reactive],jt){constructor(e,t){var n=e,{element:r,effects:s=()=>[]}=n,l=O(n,["element","effects"]);const{collisionDetector:c=a.defaultCollisionDetection}=l,u=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new i.DOMRectangle(n),s=o.untracked(()=>this.shape);return r&&(null==s?void 0:s.equals(r))?s:(this.shape=r,r)},d=o.signal(!1);super(w(b({},l),{collisionDetector:c,effects:()=>[...s(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;d.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(d.value&&e){const t=new i.PositionObserver(e,u);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),I(this,_t),I(this,Rt,C(At,8,this)),C(At,11,this),I(this,$t,C(At,12,this)),C(At,15,this),this.element=r,this.refreshShape=()=>u()}set element(e){W(this,_t,e,Tt)}get element(){var e;return null!=(e=this.proxy)?e:R(this,_t,Wt)}};At=S(jt),Rt=new WeakMap,_t=new WeakSet,$t=new WeakMap,It=M(At,20,"#element",Mt,_t,Rt),Wt=It.get,Tt=It.set,M(At,4,"proxy",Ct,Nt,$t),D(At,Nt),Object.defineProperty(t,"resolveCustomizable",{enumerable:!0,get:function(){return r.resolveCustomizable}}),t.Accessibility=te,t.AutoScroller=Qe,t.Cursor=oe,t.DragDropManager=zt,t.Draggable=Vt,t.Droppable=Nt,t.Feedback=We,t.KeyboardSensor=at,t.PointerActivationConstraints=pt,t.PointerSensor=mt,t.PreventSelection=tt,t.ScrollListener=et,t.Scroller=Be,t.StyleInjector=ie,t.defaultPreset=Lt},345(e,t,n){var r=n(665),i=n(13),o=n(528),s=n(567),a=n(931),l=n(500),c=Object.create,u=Object.defineProperty,d=Object.defineProperties,h=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,m=e=>{throw TypeError(e)},y=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))g.call(t,n)&&y(e,n,t[n]);if(f)for(var n of f(t))v.call(t,n)&&y(e,n,t[n]);return e},w=(e,t)=>d(e,p(t)),x=["class","method","getter","setter","accessor","field","value","get","set"],O=e=>void 0!==e&&"function"!=typeof e?m("Function expected"):e,S=(e,t,n,r,i)=>({kind:x[e],name:t,metadata:r,addInitializer:e=>n._?m("Already initialized"):i.push(O(e||null))}),E=(e,t,n,r)=>{for(var i=0,o=e[t>>1],s=o&&o.length;i<s;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},P=(e,t,n,r,i,o)=>{for(var s,a,l,c,d,p=7&t,f=e.length+1,g=x[p+5],v=e[f-1]=[],y=e[f]||(e[f]=[]),b=(i=i.prototype,h({get[n](){return D(this,o)},set[n](e){return M(this,o,e)}},n)),w=r.length-1;w>=0;w--)(c=S(p,n,l={},e[3],y)).static=!1,c.private=!1,(d=c.access={has:e=>n in e}).get=e=>e[n],d.set=(e,t)=>e[n]=t,a=(0,r[w])({get:b.get,set:b.set},c),l._=1,void 0===a?O(a)&&(b[g]=a):"object"!=typeof a||null===a?m("Object expected"):(O(s=a.get)&&(b.get=s),O(s=a.set)&&(b.set=s),O(s=a.init)&&v.unshift(s));return b&&u(i,n,b),i},k=(e,t,n)=>t.has(e)||m("Cannot "+n),D=(e,t,n)=>(k(e,t,"read from private field"),t.get(e)),C=(e,t,n)=>t.has(e)?m("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,r)=>(k(e,t,"write to private field"),t.set(e,n),n);function j(e){return e instanceof ge||e instanceof fe}var A=class extends i.Plugin{constructor(e){super(e);const t=r.effect(()=>{const{dragOperation:t}=e;if(a.isKeyboardEvent(t.activatorEvent)&&j(t.source)&&t.status.initialized){const t=e.registry.plugins.get(s.Scroller);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!a.isKeyboardEvent(e.nativeEvent))return;if(!j(n.source))return;if(!n.shape)return;const{actions:i,collisionObserver:s,registry:c}=t,{by:u}=e;if(!u)return;const d=function(e){const{x:t,y:n}=e;return t>0?"right":t<0?"left":n>0?"down":n<0?"up":void 0}(u),{source:h,target:p}=n,{center:f}=n.shape.current,g=[],v=[];r.batch(()=>{for(const e of c.droppables){const{id:t}=e;if(!e.accepts(h)||t===(null==p?void 0:p.id)&&j(e)||!e.element)continue;let n=e.shape;const r=new a.DOMRectangle(e.element,{getBoundingClientRect:e=>a.getVisibleBoundingRectangle(e,void 0,.2)});r.height&&r.width&&("down"==d&&f.y+10<r.center.y||"up"==d&&f.y-10>r.center.y||"left"==d&&f.x-10>r.center.x||"right"==d&&f.x+10<r.center.x)&&(g.push(e),e.shape=r,v.push(()=>e.shape=n))}}),e.preventDefault(),s.disable();const m=s.computeCollisions(g,o.closestCorners);r.batch(()=>v.forEach(e=>e()));const[y]=m;if(!y)return;const{id:b}=y,{index:w,group:x}=h.sortable;i.setDropTarget(b).then(()=>{const{source:e,target:t,shape:r}=n;if(!e||!j(e)||!r)return;const{index:o,group:c,target:u}=e.sortable,d=w!==o||x!==c,h=d?u:null==t?void 0:t.element;if(!h)return;a.scrollIntoViewIfNeeded(h);const p=new a.DOMRectangle(h);if(!p)return;const f=l.Rectangle.delta(p,l.Rectangle.from(r.current.boundingRectangle),e.alignment);i.move({by:f}),d?i.setDropTarget(e.id).then(()=>s.enable()):s.enable()})})});this.destroy=()=>{n(),t()}}},R=Object.defineProperty,I=Object.defineProperties,W=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,L=(e,t,n)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z=(e,t)=>{for(var n in t||(t={}))_.call(t,n)&&L(e,n,t[n]);if(T)for(var n of T(t))$.call(t,n)&&L(e,n,t[n]);return e},V=(e,t)=>I(e,W(t));function N(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function F(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function q(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function H(e){const t=new Map;for(const[,n]of e)for(const e of n)t.set(e.id,e.index);return t}function X(e,t,n){var r;for(const[i,o]of t)for(const t of o){const o=e.get(t.id);if(t.index!==o||t.group!==i||!(null==(r=n.get(i))?void 0:r.has(t)))return!0}return!1}var Y="__default__",B=class extends i.Plugin{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof ge){const{sortable:e}=n,{group:r}=e;let i=t.get(r);i||(i=new Set,t.set(r,i)),i.add(e)}return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:i}=n,{source:o,target:s}=i;if(!j(o)||!j(s))return;if(o.sortable===s.sortable)return;const a=t(),l=H(a),c=o.sortable.group===s.sortable.group,u=a.get(o.sortable.group),d=c?u:a.get(s.sortable.group);u&&d&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var i,h;const p=t();if(X(l,a,p))return;const f=o.sortable.element,g=s.sortable.element;if(!g||!f)return;if(!c&&s.id===o.sortable.group)return;const v=Z(u),m=c?v:Z(d),y=null!=(i=o.sortable.group)?i:Y,b=null!=(h=s.sortable.group)?h:Y,w={[y]:v,[b]:m},x=function(e,t){return function(e,t,n){var r,i;const{source:o,target:s,canceled:a}=t.operation;if(!o||!s||a)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,o.id)),i=e.findIndex(e=>l(e,s.id));if(-1===r||-1===i){if(q(o)){const r=o.initialIndex,i=o.index;return r===i||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,i)}return e}if(!a&&"index"in o&&"number"==typeof o.index){const t=o.index;if(t!==r)return n(e,r,t)}return n(e,r,i)}const c=Object.entries(e);let u,d,h=-1,p=-1;for(const[e,t]of c)if(-1===h&&(h=t.findIndex(e=>l(e,o.id)),-1!==h&&(u=e)),-1===p&&(p=t.findIndex(e=>l(e,s.id)),-1!==p&&(d=e)),-1!==h&&-1!==p)break;if(-1===h&&q(o)){const r=null==o.initialGroup?void 0:F(e,o.initialGroup),i=o.initialIndex,s=null==o.group?void 0:F(e,o.group),a=o.index;if(null==r||null==s)return"preventDefault"in t&&t.preventDefault(),e;if(r===s&&i===a)return"preventDefault"in t&&t.preventDefault(),e;if(r===s)return V(z({},e),{[r]:n(e[r],i,a)});const l=e[r][i];return V(z({},e),{[r]:[...e[r].slice(0,i),...e[r].slice(i+1)],[s]:[...e[s].slice(0,a),l,...e[s].slice(a)]})}if(!o.manager)return e;const{dragOperation:f}=o.manager,g=null!=(i=null==(r=f.shape)?void 0:r.current.center)?i:f.position.current;if(null==d){const t=F(e,s.id);null!=t&&(d=t,p=s.shape&&g.y>s.shape.center.y?e[t].length:0)}if(null==u||null==d||u===d&&h===p){if(null!=u&&u===d&&h===p&&q(o)){const t=null==o.group?void 0:F(e,o.group),r=null!=o.group&&t!==u,i=o.index!==h;if(r||i){const r=null==o.group?u:t;if(null!=r){if(u===r)return V(z({},e),{[u]:n(e[u],h,o.index)});const t=e[u][h];return V(z({},e),{[u]:[...e[u].slice(0,h),...e[u].slice(h+1)],[r]:[...e[r].slice(0,o.index),t,...e[r].slice(o.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(u===d)return V(z({},e),{[u]:n(e[u],h,p)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,m=e[u][h];return V(z({},e),{[u]:[...e[u].slice(0,h),...e[u].slice(h+1)],[d]:[...e[d].slice(0,p+v),m,...e[d].slice(p+v)]})}(e,t,N)}(w,e);if(w===x)return;const O=x[b].indexOf(o.sortable),S=x[b].indexOf(s.sortable);n.collisionObserver.disable(),K(f,O,g,S),r.batch(()=>{for(const[e,t]of x[y].entries())t.index=e;if(!c)for(const[e,t]of x[b].entries())t.group=s.sortable.group,t.index=e}),n.actions.setDropTarget(o.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:i}=n,{source:o}=i;j(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),i=H(e),s=e.get(o.sortable.initialGroup);s&&n.renderer.rendering.then(()=>{const n=t();if(X(i,e,n))return;const a=Z(s),l=Z(s,G),c=o.sortable.element,u=a[l.indexOf(o.sortable)],d=null==u?void 0:u.element;u&&d&&c&&(K(c,u.index,d,o.index),r.batch(()=>{for(const t of e.values()){const e=Array.from(t).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}};function K(e,t,n,r){const i=r<t?"afterend":"beforebegin";n.insertAdjacentElement(i,e)}function U(e,t){return e.index-t.index}function G(e,t){return e.initialIndex-t.initialIndex}function Z(e,t=U){return Array.from(e).sort(t)}var Q=[A,B],J={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1};function ee(e){var t,n;return"boolean"==typeof e?{draggable:e,droppable:e}:{draggable:null!=(t=null==e?void 0:e.draggable)&&t,droppable:null!=(n=null==e?void 0:e.droppable)&&n}}var te,ne,re,ie,oe,se,ae,le,ce=new r.WeakStore;ne=[r.reactive],te=[r.reactive];var ue,de,he,pe=class{constructor(e,t){C(this,ie,E(re,8,this)),E(re,11,this),C(this,oe),C(this,se),C(this,ae,E(re,12,this)),E(re,15,this),C(this,le),this.register=()=>(r.batch(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{r.batch(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{r.batch(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:o=()=>[],disabled:a,group:l,index:c,sensors:u,type:d,transition:h=J,plugins:p}=n,m=((e,t)=>{var n={};for(var r in e)g.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&f)for(var r of f(e))t.indexOf(r)<0&&v.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","disabled","group","index","sensors","type","transition","plugins"]);const y=i.resolveCustomizable(p,Q),x=ee(a);this.droppable=new ge(w(b({},m),{disabled:x.droppable}),t,this),this.draggable=new fe(w(b({},m),{disabled:x.draggable,plugins:y,effects:()=>[()=>{var e,t,n;const i=null==(e=this.manager)?void 0:e.dragOperation.status;(null==i?void 0:i.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&ce.clear(this.manager),(null==i?void 0:i.dragging)&&ce.set(this.manager,this.id,r.untracked(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=D(this,se),i=D(this,oe);e===r&&t===i||(M(this,se,e),M(this,oe,t),this.animate())},()=>{var e,t;const{target:n}=this,{isDragSource:r}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(s.Feedback))?void 0:e.feedback)?t:"default")&&r&&(this.droppable.disabled=!n)},...o()],type:d,sensors:u}),t,this),M(this,le,m.element),this.manager=t,this.index=c,M(this,se,c),this.group=l,M(this,oe,l),this.type=d,this.transition=h}get initialIndex(){var e,t;return null!=(t=null==(e=ce.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=ce.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){r.untracked(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;for(const e of r.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const i=this.refreshShape();if(!i)return;const o=n.boundingRectangle.left-i.boundingRectangle.left,s=n.boundingRectangle.top-i.boundingRectangle.top,{translate:l}=a.getComputedStyles(r),c=a.computeTranslate(r,l,!1),u=a.computeTranslate(r,l);if(o||s){const n=a.prefersReducedMotion(a.getWindow(r))?w(b({},t),{duration:0}):t;a.animateTransform({element:r,keyframes:{translate:[`${c.x+o}px ${c.y+s}px ${c.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){r.batch(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){r.batch(()=>{const t=D(this,le),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),M(this,le,e)})}get element(){var e,t;const n=D(this,le);if(n)return null!=(t=null!=(e=a.ProxiedElements.get(n))?e:n)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){const{disabled:e}=this.draggable,{disabled:t}=this.droppable;return e===t?e:{draggable:e,droppable:t}}set plugins(e){this.draggable.plugins=i.resolveCustomizable(e,Q)}set disabled(e){const t=ee(e);r.batch(()=>{this.droppable.disabled=t.droppable,this.draggable.disabled=t.draggable})}set data(e){r.batch(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:o.defaultCollisionDetection}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){r.batch(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};re=[,,,c(null)],ie=new WeakMap,oe=new WeakMap,se=new WeakMap,ae=new WeakMap,le=new WeakMap,P(re,4,"index",ne,pe,ie),P(re,4,"group",te,pe,ae),ue=re,y(pe,(de="metadata",(he=Symbol[de])?he:Symbol.for("Symbol."+de)),ue[3]);var fe=class extends s.Draggable{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},ge=class extends s.Droppable{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}};t.OptimisticSortingPlugin=B,t.Sortable=pe,t.SortableDraggable=fe,t.SortableDroppable=ge,t.SortableKeyboardPlugin=A,t.defaultSortableTransition=J,t.isSortable=j,t.isSortableOperation=function(e){return j(e.source)&&j(e.target)}},931(e,t,n){var r=n(500),i=e=>{throw TypeError(e)},o=(e,t,n)=>t.has(e)||i("Cannot "+n),s=(e,t,n)=>(o(e,t,"read from private field"),t.get(e)),a=(e,t,n)=>t.has(e)?i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),l=(e,t,n,r)=>(o(e,t,"write to private field"),t.set(e,n),n),c=(e,t,n)=>(o(e,t,"access private method"),n);function u(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function d(e,t){const n=e.getAnimations();let r=null;for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,i=(u(n)?n.getKeyframes():[]).filter(t);i.length>0&&(r=[i[i.length-1],e])}return r}function h(e){const{width:t,height:n,top:r,left:i,bottom:o,right:s}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:o,right:s}}function p(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function f(e){return"nodeType"in e}function g(e){var t,n,r;return e?p(e)?e:f(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function v(e){const{Document:t}=g(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function m(e){return!(!e||p(e))&&(e instanceof g(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function y(e){return e instanceof g(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function b(e){return e?p(e)?e.document:f(e)?v(e)?e:m(e)||y(e)?e.ownerDocument:document:document:document}function w(e){var t,n,r,i;const{documentElement:o}=b(e),s=g(e).visualViewport,a=null!=(t=null==s?void 0:s.width)?t:o.clientWidth,l=null!=(n=null==s?void 0:s.height)?n:o.clientHeight,c=null!=(r=null==s?void 0:s.offsetTop)?r:0,u=null!=(i=null==s?void 0:s.offsetLeft)?i:0;return{top:c,left:u,right:u+a,bottom:c+l,width:a,height:l}}function x(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===i}function O(e,t=e.getBoundingClientRect(),n=0){var r,i,o,s,a;let l=t;const{ownerDocument:c}=e,u=null!=(r=c.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==c.documentElement;){if(!x(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),i=n*(e.bottom-e.top),o=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+i),left:Math.max(l.left,e.left-o),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const h=u.visualViewport,p=null!=(i=null==h?void 0:h.offsetTop)?i:0,f=null!=(o=null==h?void 0:h.offsetLeft)?o:0,g=null!=(s=null==h?void 0:h.width)?s:u.innerWidth,v=null!=(a=null==h?void 0:h.height)?a:u.innerHeight,m=n*v,y=n*g;return l={top:Math.max(l.top,p-m),right:Math.min(l.right,f+g+y),bottom:Math.min(l.bottom,p+v+m),left:Math.max(l.left,f-y),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}var S="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function E(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function P(e){return!(!e||!f(e))&&e instanceof g(e).ShadowRoot}function k(e){return"value"in e}function D(e){return"CANVAS"===e.tagName}var C=new WeakMap;function M(e){return e.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')}function j(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function A(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}function R(e,t){const n=()=>performance.now();let r,i;return function(...o){const s=this;i?(null==r||r(),r=A(()=>{e.apply(s,o),i=n()},t-(n()-i))):(e.apply(s,o),i=n())}}var I,W=S?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},T=class extends W{constructor(e){super(t=>{s(this,I)?e(t,this):l(this,I,!0)}),a(this,I,!1)}};I=new WeakMap;var _,$,L,z,V,N,F,q,H,X,Y,B=Array.from({length:100},(e,t)=>t/100),K=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,a(this,H),this.disconnect=()=>{var e,t,n;l(this,F,!0),null==(e=s(this,L))||e.disconnect(),null==(t=s(this,z))||t.disconnect(),s(this,V).disconnect(),null==(n=s(this,N))||n.remove()},a(this,_,!0),a(this,$),a(this,L),a(this,z),a(this,V),a(this,N),a(this,F,!1),a(this,q,R(()=>{var e,t,n;const{element:i}=this;if(null==(e=s(this,z))||e.disconnect(),s(this,F)||!s(this,_)||!i.isConnected)return;const o=null!=(t=i.ownerDocument)?t:document,{innerHeight:a,innerWidth:u}=null!=(n=o.defaultView)?n:window,d=i.getBoundingClientRect(),h=O(i,d),{top:p,left:f,bottom:g,right:v}=h,m=-Math.floor(p),y=-Math.floor(f),b=`${m}px ${-Math.floor(u-v)}px ${-Math.floor(a-g)}px ${y}px`;this.boundingClientRect=d,l(this,z,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:r.Rectangle.intersectionRatio(n,O(i)))&&s(this,q).call(this)},{threshold:B,rootMargin:b,root:o})),s(this,z).observe(i),c(this,H,X).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),l(this,_,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=O(e,t);return n>0&&r>0}(e,this.boundingClientRect));let i=!0;this.callback=e=>{i&&(i=!1,n.skipInitial)||t(e)};const o=e.ownerDocument;(null==n?void 0:n.debug)&&(l(this,N,document.createElement("div")),s(this,N).style.background="rgba(0,0,0,0.15)",s(this,N).style.position="fixed",s(this,N).style.pointerEvents="none",o.body.appendChild(s(this,N))),l(this,V,new IntersectionObserver(t=>{var n,r;const i=t[t.length-1],{boundingClientRect:o,isIntersecting:a}=i,{width:c,height:u}=o,d=s(this,_);l(this,_,a),(c||u)&&(d&&!a?(null==(n=s(this,z))||n.disconnect(),this.callback(null),null==(r=s(this,L))||r.disconnect(),l(this,L,void 0),s(this,N)&&(s(this,N).style.visibility="hidden")):s(this,q).call(this),a&&!s(this,L)&&(l(this,L,new T(s(this,q))),s(this,L).observe(e)))},{threshold:B,root:o})),s(this,_)&&!n.skipInitial&&this.callback(this.boundingClientRect),s(this,V).observe(e)}};_=new WeakMap,$=new WeakMap,L=new WeakMap,z=new WeakMap,V=new WeakMap,N=new WeakMap,F=new WeakMap,q=new WeakMap,H=new WeakSet,X=function(){var e,t;s(this,F)||(c(this,H,Y).call(this),(e=this.boundingClientRect)===(t=s(this,$))||e&&t&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom||(this.callback(this.boundingClientRect),l(this,$,this.boundingClientRect)))},Y=function(){if(s(this,N)){const{top:e,left:t,width:n,height:r}=O(this.element);s(this,N).style.overflow="hidden",s(this,N).style.visibility="visible",s(this,N).style.top=`${Math.floor(e)}px`,s(this,N).style.left=`${Math.floor(t)}px`,s(this,N).style.width=`${Math.floor(n)}px`,s(this,N).style.height=`${Math.floor(r)}px`}};var U,G,Z,Q,J=new WeakMap,ee=new WeakMap;function te(e,t){let n=J.get(e);if(!n){const t=new K(e,t=>{const n=J.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),J.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(J.delete(e),n.disconnect())}}function ne(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function re(e){return!(!S||!e)&&e===b(e).scrollingElement}function ie(e){var t,n;const r=g(e),i=re(e)?w(e):h(e),o=r.visualViewport,s=re(e)?{height:null!=(t=null==o?void 0:o.height)?t:r.innerHeight,width:null!=(n=null==o?void 0:o.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},a={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-s.width,y:e.scrollHeight-s.height}};return{rect:i,position:a,isTop:a.current.y<=0,isLeft:a.current.x<=0,isBottom:a.current.y>=a.max.y,isRight:a.current.x>=a.max.x}}U=new WeakMap,G=new WeakMap,Z=new WeakMap,Q=new WeakMap;var oe=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},se=new oe(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),ae=new oe(e=>setTimeout(e,50)),le=new Map,ce=le.clear.bind(le);function ue(e,t=!1){if(!t)return de(e);let n=le.get(e);return n||(n=de(e),le.set(e,n),ae.schedule(ce),n)}function de(e){return g(e).getComputedStyle(e)}var he={excludeElement:!0,escapeShadowDOM:!0};function pe(e,t=he){const{limit:n,excludeElement:r,escapeShadowDOM:i}=t,o=new Set;return e?function t(s){if(null!=n&&o.size>=n)return o;if(!s)return o;if(v(s)&&null!=s.scrollingElement&&!o.has(s.scrollingElement))return o.add(s.scrollingElement),o;if(i&&P(s))return t(s.host);if(!m(s))return y(s)?t(s.parentElement):o;if(o.has(s))return o;const a=ue(s,!0);if(r&&s===e||function(e,t=ue(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(s,a)&&o.add(s),function(e,t=ue(e,!0)){return"fixed"===t.position||"sticky"===t.position}(s,a)){const{scrollingElement:e}=s.ownerDocument;return e&&o.add(e),o}return t(s.parentNode)}(e):o}function fe(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=j(e);for(;r;){if(r===t)return n;const e=h(r),{x:i,y:o}=ge(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*i,n.scaleY=n.scaleY*o,r=j(r)}return n}function ge(e,t=h(e)){const n=Math.round(t.width),r=Math.round(t.height);if(m(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const i=ue(e,!0);return{x:(parseFloat(i.width)||n)/n,y:(parseFloat(i.height)||r)/r}}function ve(e){if(!e||"none"===e)return null;const[t,n,r="0"]=e.split(" "),i={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function me(e){var t,n,r,i,o,s,a,l,c;const{scale:u,transform:d,translate:h}=e,p=function(e){if(!e||"none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(u),f=ve(h),g=function(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]}}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}(d);if(!g&&!p&&!f)return null;const v=null!=(t=null==p?void 0:p.x)?t:1,m=null!=(n=null==p?void 0:p.y)?n:1,y=null!=(r=null==f?void 0:f.x)?r:0,b=null!=(i=null==f?void 0:f.y)?i:0,w=null!=(o=null==g?void 0:g.x)?o:0,x=null!=(s=null==g?void 0:g.y)?s:0,O=null!=(a=null==g?void 0:g.scaleX)?a:1,S=null!=(l=null==g?void 0:g.scaleY)?l:1;return{x:y+w,y:b+x,z:null!=(c=null==f?void 0:f.z)?c:0,scaleX:v*O,scaleY:m*S}}var ye=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(ye||{}),be={x:.2,y:.2},we={x:10,y:10};function xe(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;const e=r.offsetParent;if(!m(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function Oe(e,t){const n=xe(e),r=xe(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function Se(e,t,n){const{scaleX:r,scaleY:i,x:o,y:s}=t,a=e.left-o-(1-r)*parseFloat(n),l=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width/r:e.width,u=i?e.height/i:e.height;return{width:c,height:u,top:l,right:a+c,bottom:l+u,left:a}}var Ee=new oe(e=>setTimeout(e,0)),Pe=new Map,ke=Pe.clear.bind(Pe);var De=class extends r.Rectangle{constructor(e,t={}){var n,r,i,o;const{frameTransform:s=fe(e),ignoreTransforms:a,getBoundingClientRect:l=h}=t,c=function(e,t){const n=function(e){const t=e.ownerDocument;let n=Pe.get(t);if(n)return n;n=t.getAnimations(),Pe.set(t,n),Ee.schedule(ke);const r=n.filter(t=>u(t.effect)&&t.effect.target===e);return Pe.set(e,r),n}(e).filter(e=>{var n,r;if(u(e.effect)){const{target:i}=e.effect;if(null==(r=i&&(null==(n=t.isValidTarget)?void 0:n.call(t,i)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||E())&&t.contains(e)}),d=l(e);let p,{top:f,left:g,width:v,height:m}=d;const y=ue(e),b=me(y),w={x:null!=(n=null==b?void 0:b.scaleX)?n:1,y:null!=(r=null==b?void 0:b.scaleY)?r:1},x=function(e,t){const n=e.getAnimations();if(!n.length)return null;let r,i,o,s=!1;for(const e of n){if("running"!==e.playState)continue;const t=u(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;const{transform:a,translate:l,scale:c}=n;"string"==typeof a&&a&&(r=a,s=!0),"string"==typeof l&&l&&(i=l,s=!0),"string"==typeof c&&c&&(o=c,s=!0)}return s?me({transform:null!=r?r:t.transform,translate:null!=i?i:t.translate,scale:null!=o?o:t.scale}):null}(e,y);null==c||c(),b&&(p=Se(d,b,y.transformOrigin),(a||x)&&(f=p.top,g=p.left,v=p.width,m=p.height));const O={width:null!=(i=null==p?void 0:p.width)?i:v,height:null!=(o=null==p?void 0:p.height)?o:m};if(x&&!a&&p){const e=function(e,t,n){const{scaleX:r,scaleY:i,x:o,y:s}=t,a=e.left+o+(1-r)*parseFloat(n),l=e.top+s+(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width*r:e.width,u=i?e.height*i:e.height;return{width:c,height:u,top:l,right:a+c,bottom:l+u,left:a}}(p,x,y.transformOrigin);f=e.top,g=e.left,v=e.width,m=e.height,w.x=x.scaleX,w.y=x.scaleY}s&&(a||(g*=s.scaleX,v*=s.scaleX,f*=s.scaleY,m*=s.scaleY),g+=s.x,f+=s.y),super(g,f,v,m),this.scale=w,this.intrinsicWidth=O.width,this.intrinsicHeight=O.height}};function Ce(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}function Me(e){return!!e&&(e instanceof g(e).Element||f(e)&&e.nodeType===Node.ELEMENT_NODE)}var je={};t.DOMRectangle=De,t.Listeners=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],i=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:o}=t,s=[e,t];e.addEventListener(n,r,o),this.entries.add(s),i.push(s)}const o=this.entries;return function(){for(const e of i){const[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i),o.delete(e)}}}},t.PositionObserver=class{constructor(e,t,n){this.callback=t,a(this,U),a(this,G,!1),a(this,Z),a(this,Q,R(e=>{if(!s(this,G)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of s(this,Z))if(e.target.contains(t)){this.callback(s(this,U).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=j(e);for(;n;)t.add(n),n=j(n);return t}(e),i=function(e,t){const n=new Set;for(const r of e){const e=te(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),o=function(e,t){var n;const r=e.ownerDocument;if(!ee.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),ee.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:i,disconnect:o}=null!=(n=ee.get(r))?n:{};return i&&o?(i.add(t),()=>{i.delete(t),0===i.size&&(o(),ee.delete(r))}):()=>{}}(e,s(this,Q));l(this,Z,r),l(this,U,new K(e,t,n)),this.disconnect=()=>{s(this,G)||(l(this,G,!0),i(),o(),s(this,U).disconnect())}}},t.ProxiedElements=C,t.ResizeNotifier=T,t.Scheduler=oe,t.ScrollDirection=ye,t.Styles=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(Ce(n))for(const[r,i]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof i?i:`${i}px`)}}remove(e,t=""){const{element:n}=this;if(Ce(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(Ce(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}},t.animateTransform=function({element:e,keyframes:t,options:n}){return e.animate(t,n).finished},t.canScroll=function(e,t){const{isTop:n,isBottom:r,isLeft:i,isRight:o,position:s}=ie(e),{x:a,y:l}=null!=t?t:{x:0,y:0},c=!n&&s.current.y+l>0,u=!r&&s.current.y+l<s.max.y,d=!i&&s.current.x+a>0,h=!o&&s.current.x+a<s.max.x;return{top:c,bottom:u,left:d,right:h,x:d||h,y:c||u}},t.canUseDOM=S,t.cloneElement=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(k(e)&&k(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),D(e)&&D(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n},t.computeTranslate=function(e,t=ue(e).translate,n=!0){if(n){const t=d(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=ve(e);if(t)return t}}}if(t){const e=ve(t);if(e)return e}return{x:0,y:0,z:0}},t.detectScrollIntent=function(e,t,n,i=25,o=be,s=we){const{x:a,y:l}=t,{rect:c,isTop:u,isBottom:d,isLeft:h,isRight:p}=ie(e),f=fe(e),g=me(ue(e,!0)),v=null!==g&&(null==g?void 0:g.scaleX)<0,m=null!==g&&(null==g?void 0:g.scaleY)<0,y=new r.Rectangle(c.left*f.scaleX+f.x,c.top*f.scaleY+f.y,c.width*f.scaleX,c.height*f.scaleY),b={x:0,y:0},w={x:0,y:0},x=y.height*o.y,O=y.width*o.x;return x>0&&(!u||m&&!d)&&l<=y.top+x&&1!==(null==n?void 0:n.y)&&a>=y.left-s.x&&a<=y.right+s.x?(b.y=m?1:-1,w.y=i*Math.abs((y.top+x-l)/x)):x>0&&(!d||m&&!u)&&l>=y.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=y.left-s.x&&a<=y.right+s.x&&(b.y=m?-1:1,w.y=i*Math.abs((y.bottom-x-l)/x)),O>0&&(!p||v&&!h)&&a>=y.right-O&&-1!==(null==n?void 0:n.x)&&l>=y.top-s.y&&l<=y.bottom+s.y?(b.x=v?-1:1,w.x=i*Math.abs((y.right-O-a)/O)):O>0&&(!h||v&&!p)&&a<=y.left+O&&1!==(null==n?void 0:n.x)&&l>=y.top-s.y&&l<=y.bottom+s.y&&(b.x=v?1:-1,w.x=i*Math.abs((y.left+O-a)/O)),{direction:b,speed:w}},t.generateUniqueId=function(e){const t=null==je[e]?0:je[e]+1;return je[e]=t,`${e}-${t}`},t.getBoundingRectangle=h,t.getComputedStyles=ue,t.getDocument=b,t.getDocuments=function e(t=document,n=new Set){if(n.has(t))return[];n.add(t);const r=[t];for(const i of Array.from(t.querySelectorAll("iframe, frame")))try{const t=i.contentDocument;t&&!n.has(t)&&r.push(...e(t,n))}catch(e){}try{const i=t.defaultView;if(i&&i!==window.top){const o=i.parent;o&&o.document&&o.document!==t&&r.push(...e(o.document,n))}}catch(e){}return r},t.getElementFromPoint=function e(t,{x:n,y:r}){const i=t.elementFromPoint(n,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(i)){const{contentDocument:t}=i;if(t){const{left:o,top:s}=i.getBoundingClientRect();return e(t,{x:n-o,y:r-s})}}return i},t.getEventCoordinates=function(e){return{x:e.clientX,y:e.clientY}},t.getFinalKeyframe=d,t.getFirstScrollableAncestor=function(e){const[t]=pe(e,{limit:1});return null!=t?t:null},t.getFixedPositionOffset=function(){var e,t;const n=E()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}},t.getFrameElement=j,t.getFrameTransform=fe,t.getInteractiveElement=M,t.getRoot=function(e){if(e&&f(e)){let t=e.getRootNode();if(P(t))return t;if(t instanceof Document)return t}return b(e)},t.getScrollableAncestors=pe,t.getViewportBoundingRectangle=w,t.getVisibleBoundingRectangle=O,t.getWindow=g,t.hidePopover=function(e){try{ne(e)&&e.isConnected&&e.hasAttribute("popover")&&e.matches(":popover-open")&&e.hidePopover()}catch(e){}},t.inverseTransform=Se,t.isDocument=v,t.isDocumentScrollingElement=re,t.isElement=Me,t.isHTMLElement=m,t.isInteractiveElement=function(e){return Boolean(M(e))},t.isKeyboardEvent=function(e){if(!e)return!1;const{KeyboardEvent:t}=g(e.target);return e instanceof t},t.isKeyframeEffect=u,t.isPointerEvent=function(e){if(!e)return!1;const{PointerEvent:t}=g(e.target);return e instanceof t},t.isSafari=E,t.isShadowRoot=P,t.isTextInput=function(e){if(!Me(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n},t.parseTransform=me,t.parseTranslate=ve,t.prefersReducedMotion=function(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches},t.scheduler=se,t.scrollIntoViewIfNeeded=function(e,{block:t="nearest",inline:n="nearest"}={}){if(!m(e))return;const r=pe(e),i=[];for(const o of r){if(!m(o))continue;const{top:r,left:s}=Oe(e,o);let a=r,l=s;for(const e of i)a-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const n=a<o.scrollTop;n!==a+e.offsetHeight>o.scrollTop+o.clientHeight&&(o.scrollTop="center"===t?a-o.clientHeight/2+e.offsetHeight/2:n?a:a+e.offsetHeight-o.clientHeight)}if("none"!==n){const t=l<o.scrollLeft;t!==l+e.offsetWidth>o.scrollLeft+o.clientWidth&&(o.scrollLeft="center"===n?l-o.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-o.clientWidth)}i.push(o)}},t.showPopover=function(e){try{ne(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}},t.supportsPopover=ne,t.supportsStyle=Ce,t.supportsViewTransition=function(e){return"startViewTransition"in e},t.timeout=A},909(e){var t,n=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&u(e,n,t[n]);if(a)for(var n of a(t))c.call(t,n)&&u(e,n,t[n]);return e},h=(e,t)=>r(e,o(t)),p={};function f(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function g(e,t,n){if(t===n)return e;const r=e.slice(),i=r[t];return r[t]=r[n],r[n]=i,r}function v(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function m(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function y(e,t,n){var r,i;const{source:o,target:s,canceled:a}=t.operation;if(!o||!s||a)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,o.id)),i=e.findIndex(e=>l(e,s.id));if(-1===r||-1===i){if(m(o)){const r=o.initialIndex,i=o.index;return r===i||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,i)}return e}if(!a&&"index"in o&&"number"==typeof o.index){const t=o.index;if(t!==r)return n(e,r,t)}return n(e,r,i)}const c=Object.entries(e);let u,p,f=-1,g=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>l(e,o.id)),-1!==f&&(u=e)),-1===g&&(g=t.findIndex(e=>l(e,s.id)),-1!==g&&(p=e)),-1!==f&&-1!==g)break;if(-1===f&&m(o)){const r=null==o.initialGroup?void 0:v(e,o.initialGroup),i=o.initialIndex,s=null==o.group?void 0:v(e,o.group),a=o.index;if(null==r||null==s)return"preventDefault"in t&&t.preventDefault(),e;if(r===s&&i===a)return"preventDefault"in t&&t.preventDefault(),e;if(r===s)return h(d({},e),{[r]:n(e[r],i,a)});const l=e[r][i];return h(d({},e),{[r]:[...e[r].slice(0,i),...e[r].slice(i+1)],[s]:[...e[s].slice(0,a),l,...e[s].slice(a)]})}if(!o.manager)return e;const{dragOperation:y}=o.manager,b=null!=(i=null==(r=y.shape)?void 0:r.current.center)?i:y.position.current;if(null==p){const t=v(e,s.id);null!=t&&(p=t,g=s.shape&&b.y>s.shape.center.y?e[t].length:0)}if(null==u||null==p||u===p&&f===g){if(null!=u&&u===p&&f===g&&m(o)){const t=null==o.group?void 0:v(e,o.group),r=null!=o.group&&t!==u,i=o.index!==f;if(r||i){const r=null==o.group?u:t;if(null!=r){if(u===r)return h(d({},e),{[u]:n(e[u],f,o.index)});const t=e[u][f];return h(d({},e),{[u]:[...e[u].slice(0,f),...e[u].slice(f+1)],[r]:[...e[r].slice(0,o.index),t,...e[r].slice(o.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(u===p)return h(d({},e),{[u]:n(e[u],f,g)});const w=s.shape&&Math.round(b.y)>Math.round(s.shape.center.y)?1:0,x=e[u][f];return h(d({},e),{[u]:[...e[u].slice(0,f),...e[u].slice(f+1)],[p]:[...e[p].slice(0,g+w),x,...e[p].slice(g+w)]})}function b(e,t){return y(e,t,f)}function w(e,t){return y(e,t,g)}((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(p,{arrayMove:()=>f,arraySwap:()=>g,move:()=>b,swap:()=>w}),e.exports=(t=p,((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))l.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(o=i(t,r))||o.enumerable});return e})(n({},"__esModule",{value:!0}),t))},750(e,t,n){var r=n(295),i=n(665),o=n(775),s=n(354),a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function l(){const e=r.useState(0)[1];return r.useCallback(()=>{e(e=>e+1)},[e])}t.useComputed=function(e,t=[],n=!1){const s=r.useRef(e);return s.current=e,function(e,t=!1){const n=r.useRef(e.peek()),s=r.useRef(!1),c=l();return a(()=>i.effect(()=>{const r=n.current,i=e.value;if(r!==i){if(n.current=i,!s.current)return;t?o.flushSync(c):c()}}),[e,t,c]),{get value(){return s.current=!0,e.peek()}}}(r.useMemo(()=>i.computed(()=>s.current()),t),n)},t.useConstant=function(e){const t=r.useRef(null);return t.current||(t.current=e()),t.current},t.useDeepSignal=function(e,t){const n=r.useRef(new Map),s=l();return a(()=>{if(e)return i.effect(()=>{var r;let a=!1,l=!1;for(const o of n.current){const[s]=o,c=i.untracked(()=>o[1]),u=e[s];c!==u&&(a=!0,n.current.set(s,u),l=null!=(r=null==t?void 0:t(s,c,u))&&r)}a&&(l?queueMicrotask(()=>o.flushSync(s)):s())});n.current.clear()},[e]),r.useMemo(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])},t.useImmediateEffect=function(e,t){e()},t.useIsomorphicLayoutEffect=a,t.useLatest=function(e){const t=r.useRef(e);return a(()=>{t.current=e},[e]),t},t.useOnElementChange=function(e,t){const n=r.useRef(s.currentValue(e));a(()=>{const r=s.currentValue(e);r!==n.current&&(n.current=r,t(r))})},t.useOnValueChange=function(e,t,n=r.useEffect,i=Object.is){const o=r.useRef(e);n(()=>{const n=o.current;i(e,n)||(o.current=e,t(e,n))},[t,e])}},58(e,t,n){var r=n(295),i=n(567),o=n(750),s=n(665),a=n(848),l=n(354),c=n(13),u=Object.defineProperty,d=Object.defineProperties,h=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,v=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&v(e,n,t[n]);if(p)for(var n of p(t))g.call(t,n)&&v(e,n,t[n]);return e},y=(e,t)=>d(e,h(t)),b=new i.DragDropManager,w=r.createContext(b),x=r.memo(r.forwardRef(({children:e},t)=>{const[n,i]=r.useState(0),s=r.useRef(null),a=r.useRef(null),l=r.useMemo(()=>({renderer:{get rendering(){var e;return null!=(e=s.current)?e:Promise.resolve()}},trackRendering(e){s.current||(s.current=new Promise(e=>{a.current=e})),r.startTransition(()=>{e(),i(e=>e+1)})}}),[]);return o.useIsomorphicLayoutEffect(()=>{var e;null==(e=a.current)||e.call(a),s.current=null},[e,n]),r.useImperativeHandle(t,()=>l),null})),O=[void 0,s.deepEqual];function S(){return r.useContext(w)}function E(e){var t;const n=null!=(t=S())?t:void 0,[i]=r.useState(()=>e(n));return i.manager!==n&&(i.manager=n),o.useIsomorphicLayoutEffect(i.register,[n,i]),i}function P(e,t,n){return!("isDragSource"!==e||n||!t)}function k(){return()=>{}}function D({children:e,source:t}){return e(o.useDeepSignal(t))}var C,M,j,A,R,I,W,T,_,$,L,z=Object.create,V=Object.defineProperty,N=Object.getOwnPropertyDescriptor,F=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),q=e=>{throw TypeError(e)},H=["class","method","getter","setter","accessor","field","value","get","set"],X=e=>void 0!==e&&"function"!=typeof e?q("Function expected"):e,Y=(e,t,n,r,i)=>({kind:H[e],name:t,metadata:r,addInitializer:e=>n._?q("Already initialized"):i.push(X(e||null))}),B=(e,t,n,r,i,o)=>{for(var s,a,l,c=7&t,u=H[c+5],d=e[2]||(e[2]=[]),h=(i=i.prototype,N(i,n)),p=r.length-1;p>=0;p--)(l=Y(c,n,a={},e[3],d)).static=!1,l.private=!1,(l.access={has:e=>n in e}).get=e=>e[n],s=(0,r[p])(h[u],l),a._=1,X(s)&&(h[u]=s);return h&&V(i,n,h),i},K=(e,t,n)=>t.has(e)||q("Cannot "+n),U=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},G=class extends(j=s.ValueHistory,M=[s.derived],C=[s.derived],j){constructor(e){var t,n;super(U.from(e),(e,t)=>U.equals(e,t)),((e,t,n)=>{for(var r=0,i=e[2],o=i&&i.length;r<o;r++)i[r].call(n)})(R,0,this),t=this,(n=A).has(t)?q("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,0),this.velocity={x:0,y:0}}get delta(){return U.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=U.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),o=i-(K(this,a=A,"read from private field"),a.get(this));var a;const l=e=>Math.round(e/o*100);s.batch(()=>{((e,t,n)=>{K(e,t,"write to private field"),t.set(e,n)})(this,A,i),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(U.from(e)),this.velocity={x:0,y:0}}};R=[,,,z(null!=(W=null==(I=j)?void 0:I[F("metadata")])?W:null)],A=new WeakMap,B(R,2,"delta",M,G),B(R,2,"direction",C,G),T=R,_=G,$=F("metadata"),L=T[3],$ in _?V(_,$,{enumerable:!0,configurable:!0,writable:!0,value:L}):_[$]=L;var Z=(e=>(e.Horizontal="x",e.Vertical="y",e))(Z||{});Object.values(Z);var Q=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;return t.shape&&t.shape.containsPoint(n)?{id:r,value:1/U.distance(t.shape.center,n),type:c.CollisionType.PointerIntersection,priority:c.CollisionPriority.High}:null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:i}=e,o=U.distance(t.shape.center,i.current),s=r/(n.current.area+t.shape.area-r)/o;return{id:t.id,value:s,type:c.CollisionType.ShapeIntersection,priority:c.CollisionPriority.Normal}}return null})(e)};Object.defineProperty(t,"KeyboardSensor",{enumerable:!0,get:function(){return i.KeyboardSensor}}),Object.defineProperty(t,"PointerSensor",{enumerable:!0,get:function(){return i.PointerSensor}}),t.DragDropProvider=function(e){var t=e,{children:n,onCollision:s,onBeforeDragStart:l,onDragStart:c,onDragMove:u,onDragOver:d,onDragEnd:h}=t,v=((e,t)=>{var n={};for(var r in e)f.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&p)for(var r of p(e))t.indexOf(r)<0&&g.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const m=r.useRef(null),{plugins:y,modifiers:b,sensors:S}=v,E=i.resolveCustomizable(y,i.defaultPreset.plugins),P=i.resolveCustomizable(S,i.defaultPreset.sensors),k=i.resolveCustomizable(b,i.defaultPreset.modifiers),D=o.useLatest(l),C=o.useLatest(c),M=o.useLatest(d),j=o.useLatest(u),A=o.useLatest(h),R=o.useLatest(s),I=function(){const e=r.useRef(null);var t;return e.current||(e.current=null!=(t=v.manager)?t:new i.DragDropManager(v)),r.useInsertionEffect(()=>()=>{var t;return null==(t=e.current)?void 0:t.destroy()},[]),e.current}();return r.useEffect(()=>{if(!m.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=m.current,{monitor:n}=I;I.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=D.current;n&&t(()=>n(e,I))}),n.addEventListener("dragstart",e=>{var t;return null==(t=C.current)?void 0:t.call(C,e,I)}),n.addEventListener("dragover",e=>{const n=M.current;n&&t(()=>n(e,I))}),n.addEventListener("dragmove",e=>{const n=j.current;n&&t(()=>n(e,I))}),n.addEventListener("dragend",e=>{const n=A.current;n&&t(()=>n(e,I))}),n.addEventListener("collision",e=>{var t;return null==(t=R.current)?void 0:t.call(R,e,I)})];return()=>r.forEach(e=>e())},[I]),o.useOnValueChange(E,()=>I&&(I.plugins=E),...O),o.useOnValueChange(P,()=>I&&(I.sensors=P),...O),o.useOnValueChange(k,()=>I&&(I.modifiers=k),...O),a.jsxs(w.Provider,{value:I,children:[a.jsx(x,{ref:m,children:n}),n]})},t.DragOverlay=function({children:e,className:t,dropAnimation:n,style:s,tag:l,disabled:c}){var u;const d=r.useRef(null),h=S(),p=null!=(u=o.useComputed(()=>null==h?void 0:h.dragOperation.source,[h]).value)?u:null,f="function"==typeof c?c(p):c;r.useEffect(()=>{if(!d.current||!h||f)return;const e=h.plugins.find(e=>e instanceof i.Feedback);return e?(e.overlay=d.current,()=>{e.overlay=void 0}):void 0},[h,f]),r.useEffect(()=>{if(!h)return;const e=h.plugins.find(e=>e instanceof i.Feedback);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[h,n]);const g=r.useMemo(()=>{if(!h)return null;const e=new Proxy(h.registry,{get:(e,t)=>"register"===t||"unregister"===t?k:e[t]});return new Proxy(h,{get:(t,n)=>"registry"===n?e:t[n]})},[h]);return a.jsx(w.Provider,{value:g,children:r.createElement(l||"div",{ref:d,className:t,style:s,"data-dnd-overlay":!0},!p||f?null:"function"==typeof e?a.jsx(D,{source:p,children:e}):e)})},t.useDragDropManager=S,t.useDragDropMonitor=function(e){const t=S();r.useEffect(()=>{if(!t)return;const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const i=n.replace(/^on/,"").toLowerCase(),o=t.monitor.addEventListener(i,r);e.push(o)}return e},[]);return()=>n.forEach(e=>null==e?void 0:e())},[t,e])},t.useDragOperation=function(){const e=S(),t=o.useComputed(()=>null==e?void 0:e.dragOperation.source,[e]),n=o.useComputed(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return n.value}}},t.useDraggable=function(e){const{disabled:t,data:n,element:a,handle:c,id:u,modifiers:d,sensors:h,plugins:p}=e,f=E(t=>new i.Draggable(y(m({},e),{register:!1,handle:l.currentValue(c),element:l.currentValue(a)}),t)),g=o.useDeepSignal(f,P);return o.useOnValueChange(u,()=>f.id=u),o.useOnElementChange(c,e=>f.handle=e),o.useOnElementChange(a,e=>f.element=e),o.useOnValueChange(n,()=>n&&(f.data=n)),o.useOnValueChange(t,()=>f.disabled=!0===t),o.useOnValueChange(h,()=>f.sensors=h,void 0,s.deepEqual),o.useOnValueChange(d,()=>f.modifiers=d,void 0,s.deepEqual),o.useOnValueChange(p,()=>f.plugins=p,void 0,s.deepEqual),o.useOnValueChange(e.alignment,()=>f.alignment=e.alignment),{draggable:g,get isDragging(){return g.isDragging},get isDropping(){return g.isDropping},get isDragSource(){return g.isDragSource},handleRef:r.useCallback(e=>{f.handle=null!=e?e:void 0},[f]),ref:r.useCallback(e=>{var t,n;(e||!(null==(t=f.element)?void 0:t.isConnected)||(null==(n=f.manager)?void 0:n.dragOperation.status.idle))&&(f.element=null!=e?e:void 0)},[f])}},t.useDroppable=function(e){const{collisionDetector:t,data:n,disabled:a,element:c,id:u,accept:d,type:h}=e,p=E(t=>new i.Droppable(y(m({},e),{register:!1,element:l.currentValue(c)}),t)),f=o.useDeepSignal(p);return o.useOnValueChange(u,()=>p.id=u),o.useOnElementChange(c,e=>p.element=e),o.useOnValueChange(d,()=>p.accept=d,void 0,s.deepEqual),o.useOnValueChange(t,()=>p.collisionDetector=null!=t?t:Q),o.useOnValueChange(n,()=>n&&(p.data=n)),o.useOnValueChange(a,()=>p.disabled=!0===a),o.useOnValueChange(h,()=>p.type=h),{droppable:f,get isDropTarget(){return f.isDropTarget},ref:r.useCallback(e=>{var t,n;(e||!(null==(t=p.element)?void 0:t.isConnected)||(null==(n=p.manager)?void 0:n.dragOperation.status.idle))&&(p.element=null!=e?e:void 0)},[p])}},t.useInstance=E},706(e,t,n){var r=n(295),i=n(665),o=n(345),s=n(58),a=n(750),l=n(354),c=Object.defineProperty,u=Object.defineProperties,d=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&g(e,n,t[n]);if(h)for(var n of h(t))f.call(t,n)&&g(e,n,t[n]);return e};function m(e,t,n){return!("isDragSource"!==e||n||!t)}Object.defineProperty(t,"isSortable",{enumerable:!0,get:function(){return o.isSortable}}),Object.defineProperty(t,"isSortableOperation",{enumerable:!0,get:function(){return o.isSortableOperation}}),t.useSortable=function(e){const{accept:t,collisionDetector:n,collisionPriority:c,id:h,data:p,element:f,handle:g,index:y,group:b,disabled:w,modifiers:x,sensors:O,target:S,type:E,plugins:P}=e,k=v(v({},o.defaultSortableTransition),e.transition),D=s.useInstance(t=>{return new o.Sortable((n=v({},e),r={transition:k,register:!1,handle:l.currentValue(g),element:l.currentValue(f),target:l.currentValue(S)},u(n,d(r))),t);var n,r}),C=a.useDeepSignal(D,m);return a.useOnValueChange(h,()=>D.id=h),a.useIsomorphicLayoutEffect(()=>{i.batch(()=>{D.group=b,D.index=y})},[D,b,y]),a.useOnValueChange(E,()=>D.type=E),a.useOnValueChange(t,()=>D.accept=t,void 0,i.deepEqual),a.useOnValueChange(p,()=>p&&(D.data=p)),a.useOnValueChange(y,()=>{var e;(null==(e=D.manager)?void 0:e.dragOperation.status.idle)&&(null==k?void 0:k.idle)&&D.refreshShape()},a.useImmediateEffect),a.useOnElementChange(g,e=>D.handle=e),a.useOnElementChange(f,e=>D.element=e),a.useOnElementChange(S,e=>D.target=e),a.useOnValueChange(w,()=>D.disabled=null!=w&&w,void 0,i.deepEqual),a.useOnValueChange(O,()=>D.sensors=O,void 0,i.deepEqual),a.useOnValueChange(n,()=>D.collisionDetector=n),a.useOnValueChange(c,()=>D.collisionPriority=c),a.useOnValueChange(P,()=>D.plugins=P,void 0,i.deepEqual),a.useOnValueChange(k,()=>D.transition=k,void 0,i.deepEqual),a.useOnValueChange(x,()=>D.modifiers=x,void 0,i.deepEqual),a.useOnValueChange(e.alignment,()=>D.alignment=e.alignment),{sortable:C,get isDragging(){return C.isDragging},get isDropping(){return C.isDropping},get isDragSource(){return C.isDragSource},get isDropTarget(){return C.isDropTarget},handleRef:r.useCallback(e=>{D.handle=null!=e?e:void 0},[D]),ref:r.useCallback(e=>{var t,n;(e||!(null==(t=D.element)?void 0:t.isConnected)||(null==(n=D.manager)?void 0:n.dragOperation.status.idle))&&(D.element=null!=e?e:void 0)},[D]),sourceRef:r.useCallback(e=>{var t,n;(e||!(null==(t=D.source)?void 0:t.isConnected)||(null==(n=D.manager)?void 0:n.dragOperation.status.idle))&&(D.source=null!=e?e:void 0)},[D]),targetRef:r.useCallback(e=>{var t,n;(e||!(null==(t=D.target)?void 0:t.isConnected)||(null==(n=D.manager)?void 0:n.dragOperation.status.idle))&&(D.target=null!=e?e:void 0)},[D])}}},354(e,t){t.currentValue=function(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}},500(e,t,n){n.r(t),n.d(t,{Axes:()=>L,Axis:()=>$,Point:()=>I,Position:()=>T,Rectangle:()=>W,exceedsDistance:()=>_});var r,i,o,s,a,l,c,u=n(665),d=n(576),h=Object.create,p=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,y=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),b=e=>{throw TypeError(e)},w=Math.pow,x=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t)=>p(e,"name",{value:t,configurable:!0}),S=["class","method","getter","setter","accessor","field","value","get","set"],E=e=>void 0!==e&&"function"!=typeof e?b("Function expected"):e,P=(e,t,n,r,i)=>({kind:S[e],name:t,metadata:r,addInitializer:e=>n._?b("Already initialized"):i.push(E(e||null))}),k=(e,t)=>x(t,y("metadata"),e[3]),D=(e,t,n,r,i,o)=>{var s,a,l,c,u,d=7&t,h=!!(8&t),g=!!(16&t),v=d>3?e.length+1:d?h?1:2:0,m=S[d+5],y=d>3&&(e[v-1]=[]),w=e[v]||(e[v]=[]),x=d&&(!g&&!h&&(i=i.prototype),d<5&&(d>3||!g)&&f(d<4?i:{get[n](){return j(this,o)},set[n](e){return A(this,o,e)}},n));d?g&&d<4&&O(o,(d>2?"set ":d>1?"get ":"")+n):O(i,n);for(var D=r.length-1;D>=0;D--)c=P(d,n,l={},e[3],w),d&&(c.static=h,c.private=g,u=c.access={has:g?e=>M(i,e):e=>n in e},3^d&&(u.get=g?e=>(1^d?j:R)(e,i,4^d?o:x.get):e=>e[n]),d>2&&(u.set=g?(e,t)=>A(e,i,t,4^d?o:x.set):(e,t)=>e[n]=t)),a=(0,r[D])(d?d<4?g?o:x[m]:d>4?void 0:{get:x.get,set:x.set}:i,c),l._=1,4^d||void 0===a?E(a)&&(d>4?y.unshift(a):d?g?o=a:x[m]=a:i=a):"object"!=typeof a||null===a?b("Object expected"):(E(s=a.get)&&(x.get=s),E(s=a.set)&&(x.set=s),E(s=a.init)&&y.unshift(s));return d||k(e,i),x&&p(i,n,x),g?4^d?o:x:i},C=(e,t,n)=>t.has(e)||b("Cannot "+n),M=(e,t)=>Object(t)!==t?b('Cannot use the "in" operator on this value'):e.has(t),j=(e,t,n)=>(C(e,t,"read from private field"),n?n.call(e):t.get(e)),A=(e,t,n,r)=>(C(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),R=(e,t,n)=>(C(e,t,"access private method"),n),I=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},W=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:i,width:o,height:s,scale:a}=this,l=new e(i+t,r+n,o,s);return l.scale=((e,t)=>{for(var n in t||(t={}))v.call(t,n)&&x(e,n,t[n]);if(g)for(var n of g(t))m.call(t,n)&&x(e,n,t[n]);return e})({},a),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:i,bottom:o}=this;return{width:e,height:t,left:n,top:r,right:i,bottom:o}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new I((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:i,height:o}=this;return n===t.left&&r===t.top&&i===t.width&&o===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:i}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=i}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);return r<i&&n<o?(i-r)*(o-n):0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:i}){return new e(n,t,r,i)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],i="x"===t?e.left:e.top,o="x"===t?e.width:e.height;return"start"==r?i:"end"==r?i+o:i+o/2};return I.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}},T=class extends(o=u.ValueHistory,i=[u.derived],r=[u.derived],o){constructor(e){var t,n;super(I.from(e),(e,t)=>I.equals(e,t)),((e,t,n)=>{for(var r=0,i=e[2],o=i&&i.length;r<o;r++)i[r].call(n)})(a,0,this),t=this,(n=s).has(t)?b("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,0),this.velocity={x:0,y:0}}get delta(){return I.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=I.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),o=i-j(this,s),a=e=>Math.round(e/o*100);(0,d.vA)(()=>{A(this,s,i),this.velocity={x:a(r.x),y:a(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(I.from(e)),this.velocity={x:0,y:0}}};function _({x:e,y:t},n){const r=Math.abs(e),i=Math.abs(t);return"number"==typeof n?Math.sqrt(w(r,2)+w(i,2))>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n&&i>n.y}a=[,,,h(null!=(c=null==(l=o)?void 0:l[y("metadata")])?c:null)],s=new WeakMap,D(a,2,"delta",i,T),D(a,2,"direction",r,T),k(a,T);var $=(e=>(e.Horizontal="x",e.Vertical="y",e))($||{}),L=Object.values($)},665(e,t,n){n.r(t),n.d(t,{Signal:()=>S.HN,ValueHistory:()=>ne,WeakStore:()=>ie,batch:()=>S.vA,computed:()=>K,deepEqual:()=>U,derived:()=>Z,effect:()=>S.QZ,effects:()=>J,enumerable:()=>Q,reactive:()=>G,signal:()=>S.vP,snapshot:()=>re,untracked:()=>S.O8});var r,i,o,s,a,l,c,u,d,h,p,f,g,v,m,y,b,w,x,O,S=n(576),E=Object.create,P=Object.defineProperty,k=Object.defineProperties,D=Object.getOwnPropertyDescriptor,C=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,R=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),I=e=>{throw TypeError(e)},W=(e,t,n)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>P(e,"name",{value:t,configurable:!0}),_=["class","method","getter","setter","accessor","field","value","get","set"],$=e=>void 0!==e&&"function"!=typeof e?I("Function expected"):e,L=(e,t,n,r,i)=>({kind:_[e],name:t,metadata:r,addInitializer:e=>n._?I("Already initialized"):i.push($(e||null))}),z=(e,t)=>W(t,R("metadata"),e[3]),V=(e,t,n,r)=>{for(var i=0,o=e[t>>1],s=o&&o.length;i<s;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},N=(e,t,n,r,i,o)=>{var s,a,l,c,u,d=7&t,h=!!(8&t),p=!!(16&t),f=d>3?e.length+1:d?h?1:2:0,g=_[d+5],v=d>3&&(e[f-1]=[]),m=e[f]||(e[f]=[]),y=d&&(!p&&!h&&(i=i.prototype),d<5&&(d>3||!p)&&D(d<4?i:{get[n](){return H(this,o)},set[n](e){return Y(this,o,e)}},n));d?p&&d<4&&T(o,(d>2?"set ":d>1?"get ":"")+n):T(i,n);for(var b=r.length-1;b>=0;b--)c=L(d,n,l={},e[3],m),d&&(c.static=h,c.private=p,u=c.access={has:p?e=>q(i,e):e=>n in e},3^d&&(u.get=p?e=>(1^d?H:B)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>Y(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),a=(0,r[b])(d?d<4?p?o:y[g]:d>4?void 0:{get:y.get,set:y.set}:i,c),l._=1,4^d||void 0===a?$(a)&&(d>4?v.unshift(a):d?p?o=a:y[g]=a:i=a):"object"!=typeof a||null===a?I("Object expected"):($(s=a.get)&&(y.get=s),$(s=a.set)&&(y.set=s),$(s=a.init)&&v.unshift(s));return d||z(e,i),y&&P(i,n,y),p?4^d?o:y:i},F=(e,t,n)=>t.has(e)||I("Cannot "+n),q=(e,t)=>Object(t)!==t?I('Cannot use the "in" operator on this value'):e.has(t),H=(e,t,n)=>(F(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>t.has(e)?I("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Y=(e,t,n,r)=>(F(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),B=(e,t,n)=>(F(e,t,"access private method"),n);function K(e,t){if(t){let n;return(0,S.EW)(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return(0,S.EW)(e)}function U(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e))return!(!Array.isArray(t)||e.length!==t.length)&&!e.some((e,n)=>!U(e,t[n]));if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&!n.some(n=>!U(e[n],t[n]))}return!1}function G({get:e},t){return{init:e=>(0,S.vP)(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function Z(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=K(e.bind(this)),n.set(this,t)),t.value}}function Q(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);var i;r&&Object.defineProperty(t,n.name,(i=((e,t)=>{for(var n in t||(t={}))j.call(t,n)&&W(e,n,t[n]);if(M)for(var n of M(t))A.call(t,n)&&W(e,n,t[n]);return e})({},r),k(i,C({enumerable:e}))))})}}function J(...e){const t=e.map(e=>(0,S.QZ)(e));return()=>t.forEach(e=>e())}l=[G],a=[G],s=[G],o=[Q()],i=[Q()],r=[Q()];var ee,te,ne=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,V(c,5,this),X(this,f),X(this,u,V(c,8,this)),V(c,11,this),X(this,g,V(c,12,this)),V(c,15,this),X(this,b,V(c,16,this)),V(c,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return H(this,f,x)}get initial(){return H(this,f,h)}get previous(){return H(this,f,m)}set current(e){const t=(0,S.O8)(()=>H(this,f,x));e&&t&&this.equals(t,e)||(0,S.vA)(()=>{H(this,f,h)||Y(this,f,e,p),Y(this,f,t,y),Y(this,f,e,O)})}reset(e=this.defaultValue){(0,S.vA)(()=>{Y(this,f,void 0,y),Y(this,f,e,p),Y(this,f,e,O)})}};function re(e){return(0,S.O8)(()=>{const t={};for(const n in e)t[n]=e[n];return t})}c=[,,,E(null!=(ee=null==null?void 0:null[R("metadata")])?ee:null)],u=new WeakMap,f=new WeakSet,g=new WeakMap,b=new WeakMap,d=N(c,20,"#initial",l,f,u),h=d.get,p=d.set,v=N(c,20,"#previous",a,f,g),m=v.get,y=v.set,w=N(c,20,"#current",s,f,b),x=w.get,O=w.set,N(c,2,"current",o,ne),N(c,2,"initial",i,ne),N(c,2,"previous",r,ne),z(c,ne);var ie=class{constructor(){X(this,te,new WeakMap)}get(e,t){var n;return e?null==(n=H(this,te).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return H(this,te).has(e)||H(this,te).set(e,new Map),null==(r=H(this,te).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=H(this,te).get(e))?void 0:t.clear():void 0}};te=new WeakMap}};const r={};function i(e){const t=r[e];if(void 0!==t)return t.exports;const o=r[e]={exports:{}};return n[e].call(o.exports,o,o.exports,i),o.exports}return i.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],o=t[n++];i.o(e,r)?0===o&&n++:0===o?Object.defineProperty(e,r,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,r,{enumerable:!0,get:o})}else for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(80)})());
@@ -0,0 +1 @@
1
+ {"src/ts/components/HandleWrapper.tsx":{"displayName":"HandleWrapper","description":"","props":{"child":{"description":"Child component wrapped with a ref.","required":true,"type":{"name":"node","raw":"ReactNode"}},"id":{"description":"Unique ID of the component.","required":false,"type":{"name":"string","raw":"string"}},"className":{"description":"Class name of the component.","required":false,"type":{"name":"string","raw":"string"}},"style":{"description":"CSS style to apply to the component.","required":false,"type":{"name":"objectOf","value":{"name":"any","raw":"any"},"raw":"Record<string, any>"}},"ref":{"description":"Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@,see,,{@link ,https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs,}","required":false,"type":{"name":"union","value":[{"name":"string","raw":"string"},{"name":"func","raw":"(instance: HTMLDivElement) => void"}],"raw":"LegacyRef<HTMLDivElement>"}},"key":{"description":"","required":false,"type":{"name":"union","value":[{"name":"string","raw":"string"},{"name":"number","raw":"number"}],"raw":"Key"}}},"isContext":false},"src/ts/components/_SortableGroup.tsx":{"displayName":"_SortableGroup","description":"sortable group that allows its children to be sorted","props":{"children":{"description":"Children passed as props. These should be SortableItem components.","required":false,"defaultValue":{"value":"[]","computed":false},"type":{"name":"arrayOf","value":{"name":"shape","value":{"key":{"description":"Key provided by Dash. This corresponds to the ID the user has provided.","required":true,"name":"string","raw":"string"},"type":{"description":"","required":true,"name":"union","value":[{"name":"string","raw":"string"}],"raw":"string | JSXElementConstructor<any>"},"props":{"description":"","required":true,"name":"any","raw":"any"}},"raw":"ReactElementWithKey"},"raw":"ReactElementWithKey[]"}},"showClone":{"description":"Whether a clone should be shown in the list when dragging the element or not.","required":false,"defaultValue":{"value":"false","computed":false},"type":{"name":"bool","raw":"boolean"}},"dropAnimation":{"description":"","required":false,"defaultValue":{"value":"{duration : 250, easing: 'ease'}","computed":false},"type":{"name":"shape","value":{"duration":{"description":"","required":true,"name":"number","raw":"number"},"easing":{"description":"","required":true,"name":"string","raw":"string"}},"raw":"{ duration: number; easing: string; }"}},"setProps":{"description":"Function provided by Dash to setup properties usable in dash.Input and dash.Output.","required":true,"type":{"name":"func","raw":"(props: Record<string, unknown>) => void"}},"id":{"description":"Unique ID of the component.","required":false,"type":{"name":"string","raw":"string"}},"className":{"description":"Class name of the component.","required":false,"type":{"name":"string","raw":"string"}},"style":{"description":"CSS style to apply to the component.","required":false,"defaultValue":{"value":"{}","computed":false},"type":{"name":"objectOf","value":{"name":"any","raw":"any"},"raw":"Record<string, any>"}}},"isContext":false},"src/ts/components/_SortableItem.tsx":{"displayName":"_SortableItem","description":"sortable item used in a SortableGroup component","props":{"id":{"description":"Unique ID of the component.","required":true,"type":{"name":"string","raw":"string"}},"index":{"description":"Initial position of the item in the sortable list.","required":true,"type":{"name":"number","raw":"number"}},"restrict":{"description":"Whether to restrict items to vertical or horizontal motions only.\nNone means there is no restriction.","required":false,"type":{"name":"enum","value":[{"value":"'vertical'","computed":false},{"value":"'horizontal'","computed":false}],"raw":"\"vertical\" | \"horizontal\""}},"handle":{"description":"A Dash component used as handle to grab the row.\nNone means the entire row is draggable.","required":false,"type":{"name":"node","raw":"ReactNode"}},"lock":{"description":"Whether to lock the item (i.e. make it not moveable) or not.","required":false,"defaultValue":{"value":"false","computed":false},"type":{"name":"bool","raw":"boolean"}},"transitionAnimation":{"description":"Animation used when the item translates from one position to the next.","required":false,"defaultValue":{"value":"{duration : 250, easing: 'ease', idle: true}","computed":false},"type":{"name":"shape","value":{"duration":{"description":"","required":false,"name":"number","raw":"number"},"easing":{"description":"","required":false,"name":"string","raw":"string"},"idle":{"description":"","required":false,"name":"bool","raw":"boolean"}},"raw":"{ duration?: number; easing?: string; idle?: boolean; }"}},"handlePos":{"description":"Position of the handle either at the start or at the end of the row.","required":false,"defaultValue":{"value":"'start'","computed":false},"type":{"name":"enum","value":[{"value":"'start'","computed":false},{"value":"'end'","computed":false}],"raw":"\"start\" | \"end\""}},"styles":{"description":"CSS styles to apply. \nThis is a dictionary with keys 'div' and 'handle', each taking a dictionary with CSS properties.","required":false,"type":{"name":"shape","value":{"div":{"description":"","required":false,"name":"any","raw":"any"},"handle":{"description":"","required":false,"name":"any","raw":"any"}},"raw":"{ div?: any; handle?: any; }"}},"styles_drag":{"description":"CSS styles to apply when the item is dragged. \nThis is a dictionary with keys 'div' and 'handle', each taking a dictionary with CSS properties.","required":false,"type":{"name":"shape","value":{"div":{"description":"","required":false,"name":"any","raw":"any"},"handle":{"description":"","required":false,"name":"any","raw":"any"}},"raw":"{ div?: any; handle?: any; }"}},"styles_drop":{"description":"CSS styles to apply when the item is dropped. \nThis is a dictionary with keys 'div' and 'handle', each taking a dictionary with CSS properties.","required":false,"type":{"name":"shape","value":{"div":{"description":"","required":false,"name":"any","raw":"any"},"handle":{"description":"","required":false,"name":"any","raw":"any"}},"raw":"{ div?: any; handle?: any; }"}},"children":{"description":"Children of the component.","required":false,"type":{"name":"union","value":[{"name":"string","raw":"string"},{"name":"number","raw":"number"},{"name":"bool","raw":"false"}],"raw":"ReactNode | ReactNode[]"}},"setProps":{"description":"Function provided by Dash to setup properties usable in dash.Input and dash.Output.","required":true,"type":{"name":"func","raw":"(props: Record<string, unknown>) => void"}},"className":{"description":"Class name of the component.","required":false,"type":{"name":"string","raw":"string"}}},"isContext":false}}
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "dash_sortable_items",
3
+ "version": "0.7.1",
4
+ "description": "A set of Dash components built with React that provide an interface to generate sortable items within a group.",
5
+ "main": "index.ts",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git://github.com/WilfriedMercier/dash_sortable_items.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/WilfriedMercier/dash_sortable_items/issues"
12
+ },
13
+ "homepage" : "https://github.com/WilfriedMercier/dash_sortable_items",
14
+ "docpage": "https://wilfriedmercier.github.io/dash_sortable_items/index.html",
15
+ "issuespage" : "https://github.com/WilfriedMercier/dash_sortable_items/issues",
16
+ "scripts": {
17
+ "build:js::dev": "webpack --mode development",
18
+ "build:js": "webpack",
19
+ "build:backends": "dash-generate-components ./src/ts/components dash_sortable_items -p package-info.json --ignore \\.test\\.",
20
+ "build": "npm run build:js && npm run build:backends",
21
+ "watch": "npm run build:js::dev -- --watch",
22
+ "dist": "python -m build --sdist --wheel --outdir dist/",
23
+ "format": "prettier --write src --ignore-path=.prettierignore"
24
+ },
25
+ "devDependencies": {
26
+ "@types/react": "^18.2.0",
27
+ "@types/react-dom": "^18.2.0",
28
+ "css-loader": "^6.10.0",
29
+ "npm-run-all": "^4.1.5",
30
+ "prettier": "^3.2.4",
31
+ "react": "18.2.0",
32
+ "react-docgen": "^5.4.3",
33
+ "react-dom": "18.2.0",
34
+ "style-loader": "^3.3.4",
35
+ "ts-loader": "^9.3.1",
36
+ "typescript": "^5.6.3",
37
+ "webpack": "^5.101.0",
38
+ "webpack-cli": "^5.1.4"
39
+ },
40
+ "peerDependencies": {
41
+ "react": "16 - 19",
42
+ "react-dom": "16- 19"
43
+ },
44
+ "author": "Wilfried Mercier <dagrablelistdash.dried695@passmail.net>",
45
+ "license": "GPL-3.0",
46
+ "dependencies": {
47
+ "@dnd-kit/helpers": "^0.5.0",
48
+ "@dnd-kit/react": "^0.5.0"
49
+ }
50
+ }
@@ -0,0 +1,31 @@
1
+ // AUTOGENERATED FILE - DO NOT EDIT
2
+
3
+ var pt = window.PropTypes;
4
+ var pk = window['dash_sortable_items'];
5
+
6
+ pk.HandleWrapper.propTypes = {child:pt.node,
7
+ id:pt.string,
8
+ className:pt.string,
9
+ style:pt.any,
10
+ ref:pt.oneOfType([pt.string,pt.any]),
11
+ key:pt.oneOfType([pt.string,pt.number])};
12
+ pk._SortableGroup.propTypes = {children:pt.arrayOf(pt.shape({key:pt.string,type:pt.oneOfType([pt.string]),props:pt.any})),
13
+ showClone:pt.bool,
14
+ dropAnimation:pt.shape({duration:pt.number,easing:pt.string}),
15
+ setProps:pt.any,
16
+ id:pt.string,
17
+ className:pt.string,
18
+ style:pt.any};
19
+ pk._SortableItem.propTypes = {id:pt.string,
20
+ index:pt.number,
21
+ restrict:pt.oneOf(['vertical','horizontal']),
22
+ handle:pt.node,
23
+ lock:pt.bool,
24
+ transitionAnimation:pt.shape({duration:pt.number,easing:pt.string,idle:pt.bool}),
25
+ handlePos:pt.oneOf(['start','end']),
26
+ styles:pt.shape({div:pt.any,handle:pt.any}),
27
+ styles_drag:pt.shape({div:pt.any,handle:pt.any}),
28
+ styles_drop:pt.shape({div:pt.any,handle:pt.any}),
29
+ children:pt.oneOfType([pt.string,pt.number,pt.bool]),
30
+ setProps:pt.any,
31
+ className:pt.string};
@@ -0,0 +1,15 @@
1
+ import typing
2
+
3
+ class DashComplexId(typing.TypedDict):
4
+ type : str
5
+ index : str | int
6
+
7
+ class AnimationOptions(typing.TypedDict):
8
+ duration : int
9
+ easing : str
10
+
11
+ type DashId = str | DashComplexId | None
12
+ handlePosType = typing.Literal['start', 'end']
13
+ restrictType = typing.Literal['vertical', 'horizontal'] | None
14
+ CSSDict = dict[str, typing.Any]
15
+ stylesType = dict[str, CSSDict]
@@ -0,0 +1,81 @@
1
+ Metadata-Version: 2.4
2
+ Name: dash_sortable_items
3
+ Version: 0.7.1
4
+ Summary: A set of Dash components built with React that provide an interface to generate sortable items within a group.
5
+ Home-page: https://github.com/WilfriedMercier/dash_sortable_items
6
+ Author: Wilfried Mercier <dagrablelistdash.dried695@passmail.net>
7
+ License: GPL-3.0
8
+ Project-URL: Issues, https://github.com/WilfriedMercier/dash_sortable_items/issues
9
+ Project-URL: Documentation, https://wilfriedmercier.github.io/dash_sortable_items/index.html
10
+ Keywords: dnd-kit,plotly-dash
11
+ Classifier: Framework :: Dash
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Dynamic: author
15
+ Dynamic: classifier
16
+ Dynamic: description
17
+ Dynamic: description-content-type
18
+ Dynamic: home-page
19
+ Dynamic: keywords
20
+ Dynamic: license
21
+ Dynamic: license-file
22
+ Dynamic: project-url
23
+ Dynamic: summary
24
+
25
+
26
+ ## Basic usage
27
+
28
+ This python package provides two new Dash components: `SortableGroup` and `SortableItem`. A `SortableGroup` must only contain `SortableItem` components and exposes in callbacks the `sortedIDs` property which can be used to retrieve the order of the children. Each `SortableItem` is a Dash component that can be dragged and sorted within its parent group. See below for a typical example.
29
+
30
+ **Note:** Drag and drop can be cancelled at any moment by pressing the Esc key
31
+
32
+ ```python
33
+ import dash
34
+ from dash_sortable_items import SortableGroup, SortableItem
35
+
36
+ app = dash.Dash(__name__)
37
+
38
+ item1 = SortableItem(
39
+ id = 'item1',
40
+ children = [dash.html.Label('Row #1')],
41
+ )
42
+
43
+ item2 = SortableItem(
44
+ id = 'item2',
45
+ children = [dash.html.Label('Row #2')],
46
+ )
47
+
48
+ item3 = SortableItem(
49
+ id = 'item3',
50
+ children = [dash.html.Label('Row #3')],
51
+ )
52
+
53
+ group = SortableGroup(
54
+ id = 'group',
55
+ items = [item1, item2, item3],
56
+ )
57
+
58
+ app.layout = group
59
+
60
+ app.run(debug=True)
61
+ ```
62
+
63
+ Note that **all `SortableItem` component must have `id` provided** as it uniquely identifies the component in its parent group.
64
+
65
+ ## Callbacks
66
+
67
+ The order of the `SortableItem` components can be recovered via a callback as follows
68
+
69
+ ```python
70
+ @app.callback(
71
+ ...
72
+ dash.Input('group', 'sortedIds')
73
+ )
74
+ def callback(sortedIds: list[str] | None) -> str:
75
+
76
+ if sortedIDs is None: raise dash.exceptions.PreventUpdate
77
+
78
+ return sortedIds
79
+ ```
80
+
81
+ For more details on `SortableGroup` and `SortableItem` see the [documentation](https://wilfriedmercier.github.io/dash_sortable_items/).
@@ -0,0 +1,17 @@
1
+ dash_sortable_items/HandleWrapper.py,sha256=mKxakgSXcMAtlDE34aXxAXHRGgqyJ452MXMFDpJbOJ0,2719
2
+ dash_sortable_items/SortableGroup.py,sha256=AytajXaXoV2ALlJJ2hrwxDmJDACq63cFd8wSF0D3b9w,2816
3
+ dash_sortable_items/SortableItem.py,sha256=vgjLu_qI6lT7ag2VesQ7UtJK4RkjUYsdQJUS1Vobyfo,2953
4
+ dash_sortable_items/_SortableGroup.py,sha256=oO-DQMoLMfjHxR3L1tY_otSUAEAwHxZ_T5lSYxEXnm8,2997
5
+ dash_sortable_items/_SortableItem.py,sha256=gyRSwT8Zg6WrIAutvwhD8iDQ5ZbHogq-PIf80KN7MO0,5721
6
+ dash_sortable_items/__init__.py,sha256=VWssScn0fvToVEnpyCV1KOv__GmypeFBpq0vCzhNaco,1459
7
+ dash_sortable_items/_imports_.py,sha256=W3JzeVm90W9gB_su0jQNA7SUIR5yTvqRQD2PEmj_wjU,137
8
+ dash_sortable_items/dash_sortable_items.js,sha256=m7Pwv6jLdFIQh3Hr7jr4EOKgqzUqQHCo_UIvxanmZLE,142168
9
+ dash_sortable_items/metadata.json,sha256=iEdA7NFUtXplNb-DavdJX4X3jq_sPEUxI-L-churZaY,6923
10
+ dash_sortable_items/package-info.json,sha256=P50vE2DuYIZJe5Y1TLwMQk81ABFpWphE_ZaImTNNV_Q,1782
11
+ dash_sortable_items/proptypes.js,sha256=yxkX_PJMXJWLrrsdrDISGG7yIqO_afcgFldajv8Sbcw,1068
12
+ dash_sortable_items/types.py,sha256=rJSVHfwgbhk6KpnSSIpbjSfLGOE93lAaVHRLmI1GUjA,400
13
+ dash_sortable_items-0.7.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
14
+ dash_sortable_items-0.7.1.dist-info/METADATA,sha256=ktSmrkxxhjRuvdXbctWCXfEQzzb52o8ZXIZ90A86n6Q,2422
15
+ dash_sortable_items-0.7.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
16
+ dash_sortable_items-0.7.1.dist-info/top_level.txt,sha256=SaAUm5CLs6Lkh1oGW0exgSVRMjy_mdE5wntxzstOZhQ,20
17
+ dash_sortable_items-0.7.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+