@malloy-publisher/sdk 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DocumentStorage-D7yF4_T3.cjs.js → DocumentStorage-B0_YgSzt.cjs.js} +32 -32
- package/dist/{DocumentStorage-BCpTBa7U.es.js → DocumentStorage-BZqn0x5r.es.js} +3826 -3741
- package/dist/{RenderedResult-ChkvK7b2.cjs.js → RenderedResult-Bu25oAAr.cjs.js} +1 -1
- package/dist/{RenderedResult-CDA9mN_6.es.js → RenderedResult-DKOl0FQ8.es.js} +2 -2
- package/dist/{ServerProvider-CvMqBhuj.es.js → ServerProvider-CfUFleYe.es.js} +4 -4
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +2 -2
- package/dist/client/api.d.ts +10 -4
- package/dist/client/index.es.js +1 -1
- package/dist/components/Dashboard/ExploreDialog.d.ts +3 -1
- package/dist/components/Model/Model.d.ts +10 -3
- package/dist/components/Model/ModelExplorer.d.ts +21 -1
- package/dist/components/Model/ModelExplorerDialog.d.ts +4 -1
- package/dist/components/Model/SourcesExplorer.d.ts +8 -1
- package/dist/components/Model/index.d.ts +1 -0
- package/dist/components/Model/runGate.d.ts +19 -0
- package/dist/components/Notebook/NotebookCell.d.ts +10 -1
- package/dist/index.cjs.js +13 -13
- package/dist/index.es.js +3754 -3732
- package/package.json +1 -1
- package/src/components/Dashboard/Dashboard.spec.tsx +58 -2
- package/src/components/Dashboard/Dashboard.tsx +8 -1
- package/src/components/Dashboard/ExploreDialog.tsx +5 -0
- package/src/components/Model/Model.tsx +28 -1
- package/src/components/Model/ModelExplorer.spec.tsx +404 -0
- package/src/components/Model/ModelExplorer.tsx +65 -2
- package/src/components/Model/ModelExplorerDialog.tsx +12 -0
- package/src/components/Model/SourcesExplorer.tsx +70 -15
- package/src/components/Model/index.ts +1 -0
- package/src/components/Model/runGate.spec.ts +102 -0
- package/src/components/Model/runGate.ts +67 -0
- package/src/components/Notebook/Notebook.spec.tsx +67 -3
- package/src/components/Notebook/Notebook.tsx +12 -2
- package/src/components/Notebook/NotebookCell.tsx +26 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ge=Object.create;var le=Object.defineProperty;var ve=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var xe=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of we(r))!Re.call(e,o)&&o!==t&&le(e,o,{get:()=>r[o],enumerable:!(a=ve(r,o))||a.enumerable});return e};var G=(e,r,t)=>(t=e!=null?ge(ke(e)):{},xe(r||!e||!e.__esModule?le(t,"default",{value:e,enumerable:!0}):t,e));const I=require("react/jsx-runtime"),U=require("@mui/material"),p=require("react"),g=require("./DocumentStorage-
|
|
1
|
+
"use strict";var ge=Object.create;var le=Object.defineProperty;var ve=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var xe=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of we(r))!Re.call(e,o)&&o!==t&&le(e,o,{get:()=>r[o],enumerable:!(a=ve(r,o))||a.enumerable});return e};var G=(e,r,t)=>(t=e!=null?ge(ke(e)):{},xe(r||!e||!e.__esModule?le(t,"default",{value:e,enumerable:!0}):t,e));const I=require("react/jsx-runtime"),U=require("@mui/material"),p=require("react"),g=require("./DocumentStorage-B0_YgSzt.cjs.js"),X=require("./ServerProvider-CuYLH_Yi.cjs.js"),v="publisher-drill";function de(e,r){const t=new Set;let a;try{a=e.getMetadata()?.getAllFields()??[]}catch{return t}const o=new Set;for(const n of a)!n||r(n)||n.tag?.tag("hidden")===void 0&&o.add(n.tag?.text("label")??n.name);for(const n of a){if(!n||!r(n))continue;const l=n.tag?.text("label")??n.name;o.has(l)||t.add(l)}return t}function B(e){const r=/^\s*(\d+)/.exec(e.style?.gridColumn??"");return r?r[1]:void 0}function ce(e,r){if(r.size!==0)for(const t of e.querySelectorAll(".malloy-table")){const a=l=>l.closest(".malloy-table")===t,o=new Set;for(const l of t.querySelectorAll(".column-cell.th")){if(!a(l))continue;const s=(l.textContent??"").replace(/\u200b/g,"").trim(),y=B(l);y&&r.has(s)&&o.add(y)}if(o.size===0)continue;const n=new Set;for(const l of t.querySelectorAll(`.${v}[tabindex="0"]`)){if(!a(l))continue;const s=B(l);s&&(n.has(s)?l.tabIndex=-1:n.add(s))}for(const l of t.querySelectorAll(".column-cell.td")){if(!a(l))continue;const s=B(l),y=!l.querySelector(".value-null")&&(l.textContent??"").trim()!=="";if(s&&y&&o.has(s)&&!l.querySelector(".malloy-table")){if(l.classList.add(v),l.tabIndex===0)n.add(s);else{const h=n.has(s);h||n.add(s),l.tabIndex=h?-1:0}l.setAttribute("role","button")}}}}function Ce(e){const r=e.closest(".malloy-table"),t=B(e);return!r||!t?[]:Array.from(r.querySelectorAll(`.${v}`)).filter(a=>a.closest(".malloy-table")===r&&B(a)===t)}function ie(e,r){const t=Ce(e),a=t.indexOf(e);if(a===-1)return;const o=r==="first"?t[0]:r==="last"?t[t.length-1]:t[Math.min(Math.max(a+r,0),t.length-1)];if(o){for(const n of t)n.tabIndex=n===o?0:-1;return o}}function ue(e){return{background:e.dashboardRoot,tableBackground:e.tableBackground,tableHeaderColor:e.tableHeader,tableBodyColor:e.tableBody,tableBorder:e.border,tablePinnedBackground:e.tableHeaderBackground,tablePinnedBorder:e.pinnedBorder,tableFontSize:`${e.font.size}px`,fontFamily:e.font.family,mapColor:e.mapColor}}function he(e){const{foreground:r,axisFaint:t,font:a}=e,o={background:e.background,font:a.family,title:{color:r,font:a.family},axis:{labelColor:r,titleColor:r,domainColor:t,tickColor:t,gridColor:t,labelFont:a.family,titleFont:a.family},legend:{labelColor:r,titleColor:r,labelFont:a.family,titleFont:a.family},header:{labelColor:r,titleColor:r},range:{category:e.series}};return n=>o}function me(e){if(!e)return;const r=e.tag("theme");if(!r)return;const t={},a=r.tag("palette");if(a){const n={},l=a.textArray("series");l&&l.length>0&&(n.series=l);for(const s of X.PER_MODE_COLOR_KEYS){const y=a.tag(s);if(!y)continue;const h={},k=y.text("light"),E=y.text("dark");k&&(h.light=k),E&&(h.dark=E),Object.keys(h).length>0&&(n[s]=h)}Object.keys(n).length>0&&(t.palette=n)}const o=r.tag("font");if(o){const n={},l=o.text("family");l&&(n.family=l);const s=o.numeric("size");typeof s=="number"&&Number.isFinite(s)&&(n.size=s),Object.keys(n).length>0&&(t.font=n)}return Object.keys(t).length>0?t:void 0}const Ee=async(e,r)=>{if(typeof window>"u")throw new Error("MalloyRenderer can only be used in browser environment");const{MalloyRenderer:t}=await import("@malloydata/render");return new t({onClick:r,vegaConfigOverride:he(e),theme:ue(e),onError:o=>{console.error("Error rendering visualization:",typeof o,o)}}).createViz()};typeof window<"u"&&import("@malloydata/render");async function Se(e){if(!e||typeof e!="object")return;const r=e,t=[...Array.isArray(r.model_annotations)?r.model_annotations:[],...Array.isArray(r.source_annotations)?r.source_annotations:[],...Array.isArray(r.annotations)?r.annotations:[]].map(o=>typeof o?.value=="string"?o.value:void 0).filter(o=>!!o);if(t.length===0)return;let a;try{({parseAnnotation:a}=await import("@malloydata/malloy-tag"))}catch{return}try{const{tag:o}=a(t);return me(o)}catch(o){console.warn("Failed to parse # theme.* annotations; chart will render with the shell theme.",{error:o,lines:t});return}}function Ae(e,r,t){const a=g.buildTableCssVars(r,t);for(const[o,n]of Object.entries(a))e.style.setProperty(o,n)}const De=`
|
|
2
2
|
/* Card geometry, through the renderer's OWN theme vars rather than over the top
|
|
3
3
|
of them. It declares --malloy-theme--dashboard-* on .malloy-render itself and
|
|
4
4
|
passes each through to the --malloy-render--* the card CSS reads, so a value
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import { Box as oe, useTheme as ce } from "@mui/material";
|
|
3
3
|
import { Suspense as ue, useRef as z, useCallback as he, useMemo as me, useEffect as be, useLayoutEffect as fe } from "react";
|
|
4
|
-
import { D as ye, r as K, b as pe, a as ge, m as ve, c as we, d as ae } from "./DocumentStorage-
|
|
5
|
-
import { aD as ke, aE as Ce, aF as xe } from "./ServerProvider-
|
|
4
|
+
import { D as ye, r as K, b as pe, a as ge, m as ve, c as we, d as ae } from "./DocumentStorage-BZqn0x5r.es.js";
|
|
5
|
+
import { aD as ke, aE as Ce, aF as xe } from "./ServerProvider-CfUFleYe.es.js";
|
|
6
6
|
const g = "publisher-drill";
|
|
7
7
|
function Re(e, r) {
|
|
8
8
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -2468,7 +2468,7 @@ const ot = {
|
|
|
2468
2468
|
};
|
|
2469
2469
|
},
|
|
2470
2470
|
/**
|
|
2471
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
2471
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
2472
2472
|
* @summary Execute Malloy query
|
|
2473
2473
|
* @param {string} environmentName Name of the environment
|
|
2474
2474
|
* @param {string} packageName Name of the package
|
|
@@ -2578,7 +2578,7 @@ const ot = {
|
|
|
2578
2578
|
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2579
2579
|
},
|
|
2580
2580
|
/**
|
|
2581
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
2581
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
2582
2582
|
* @summary Execute Malloy query
|
|
2583
2583
|
* @param {string} environmentName Name of the environment
|
|
2584
2584
|
* @param {string} packageName Name of the package
|
|
@@ -2651,7 +2651,7 @@ const ot = {
|
|
|
2651
2651
|
return r.compileModelSource(a, t, o, s, l).then((i) => i(e, n));
|
|
2652
2652
|
},
|
|
2653
2653
|
/**
|
|
2654
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
2654
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
2655
2655
|
* @summary Execute Malloy query
|
|
2656
2656
|
* @param {string} environmentName Name of the environment
|
|
2657
2657
|
* @param {string} packageName Name of the package
|
|
@@ -2720,7 +2720,7 @@ class Me extends I {
|
|
|
2720
2720
|
return U(this.configuration).compileModelSource(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2721
2721
|
}
|
|
2722
2722
|
/**
|
|
2723
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
2723
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
2724
2724
|
* @summary Execute Malloy query
|
|
2725
2725
|
* @param {string} environmentName Name of the environment
|
|
2726
2726
|
* @param {string} packageName Name of the package
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var eu=Object.create;var sa=Object.defineProperty;var tu=Object.getOwnPropertyDescriptor;var nu=Object.getOwnPropertyNames;var ru=Object.getPrototypeOf,iu=Object.prototype.hasOwnProperty;var su=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nu(t))!iu.call(e,i)&&i!==n&&sa(e,i,{get:()=>t[i],enumerable:!(r=tu(t,i))||r.enumerable});return e};var oa=(e,t,n)=>(n=e!=null?eu(ru(e)):{},su(t||!e||!e.__esModule?sa(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),S=require("react"),ou=require("react-dom"),k=require("@mui/material"),j=require("../DocumentStorage-D7yF4_T3.cjs.js"),Be=require("../ServerProvider-CuYLH_Yi.cjs.js"),au=require("@tanstack/react-query");var lu=Symbol.for("preact-signals");function Ci(){if(vt>1)vt--;else{var e,t=!1;for((function(){var i=ui;for(ui=void 0;i!==void 0;){var s=i.S;if(s.v===i.v)for(var o=s.t;o!==void 0;o=o.x)o.i===i.i&&(o.i=s.i);i=i.o}})();cr!==void 0;){var n=cr;for(cr=void 0,di++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&ol(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(di=0,vt--,t)throw e}}function ue(e){if(vt>0)return e();ds=++cu,vt++;try{return e()}finally{Ci()}}var lr,ie=void 0;function U(e){var t=ie,n=lr;ie=void 0,lr=void 0;try{return e()}finally{ie=t,lr=n}}var cr=void 0,vt=0,di=0,cu=0,ds=0,ui=void 0,fi=0;function sl(e){if(ie!==void 0){var t=e.n;if(t===void 0||t.t!==ie)return t={i:0,S:e,p:ie.s,n:void 0,t:ie,e:void 0,x:void 0,r:t},ie.s!==void 0&&(ie.s.n=t),ie.s=t,e.n=t,32&ie.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ie.s,t.n=void 0,ie.s.n=t,ie.s=t),t}}function Re(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}Re.prototype.brand=lu;Re.prototype.h=function(){return!0};Re.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n!==void 0?n.e=e:U(function(){var r;(r=t.W)==null||r.call(t)}))};Re.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&U(function(){var i;(i=t.Z)==null||i.call(t)}))}};Re.prototype.subscribe=function(e){var t=this;return tt(function(){var n=t.value;U(function(){return e(n)})},{name:"sub"})};Re.prototype.valueOf=function(){return this.value};Re.prototype.toString=function(){return this.value+""};Re.prototype.toJSON=function(){return this.value};Re.prototype.peek=function(){var e=this;return U(function(){return e.value})};Object.defineProperty(Re.prototype,"value",{get:function(){var e=sl(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(di>100)throw new Error("Cycle detected");(function(n){vt!==0&&di===0&&n.l!==ds&&(n.l=ds,ui={S:n,v:n.v,i:n.i,o:ui})})(this),this.v=e,this.i++,fi++,vt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ci()}}}});function En(e,t){return new Re(e,t)}function ol(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function al(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function ll(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function qt(e,t){Re.call(this,void 0,t),this.x=e,this.s=void 0,this.g=fi-1,this.f=4}qt.prototype=new Re;qt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===fi))return!0;if(this.g=fi,this.f|=1,this.i>0&&!ol(this))return this.f&=-2,!0;var e=ie;try{al(this),ie=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return ie=e,ll(this),this.f&=-2,!0};qt.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Re.prototype.S.call(this,e)};qt.prototype.U=function(e){if(this.t!==void 0&&(Re.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};qt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(qt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=sl(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function aa(e,t){return new qt(e,t)}function cl(e){var t=e.m;if(e.m=void 0,typeof t=="function"){vt++;var n=ie;ie=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,eo(e),r}finally{ie=n,Ci()}}}function eo(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,cl(e)}function du(e){if(ie!==this)throw new Error("Out-of-order effect");ll(this),ie=e,this.f&=-2,8&this.f&&eo(this),Ci()}function On(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name,lr&&lr.push(this)}On.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.m=t)}finally{e()}};On.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,cl(this),al(this),vt++;var e=ie;return ie=this,du.bind(this,e)};On.prototype.N=function(){2&this.f||(this.f|=2,this.u=cr,cr=this)};On.prototype.d=function(){this.f|=8,1&this.f||eo(this)};On.prototype.dispose=function(){this.d()};function tt(e,t){var n=new On(e,t);try{n.c()}catch(i){throw n.d(),i}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var uu=Object.create,to=Object.defineProperty,fu=Object.defineProperties,hu=Object.getOwnPropertyDescriptor,pu=Object.getOwnPropertyDescriptors,la=Object.getOwnPropertySymbols,gu=Object.prototype.hasOwnProperty,vu=Object.prototype.propertyIsEnumerable,mu=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Dn=e=>{throw TypeError(e)},us=(e,t,n)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yu=(e,t)=>{for(var n in t||(t={}))gu.call(t,n)&&us(e,n,t[n]);if(la)for(var n of la(t))vu.call(t,n)&&us(e,n,t[n]);return e},bu=(e,t)=>fu(e,pu(t)),ca=(e,t)=>to(e,"name",{value:t,configurable:!0}),xu=e=>{var t;return[,,,uu((t=void 0)!=null?t:null)]},dl=["class","method","getter","setter","accessor","field","value","get","set"],Hn=e=>e!==void 0&&typeof e!="function"?Dn("Function expected"):e,wu=(e,t,n,r,i)=>({kind:dl[e],name:t,metadata:r,addInitializer:s=>n._?Dn("Already initialized"):i.push(Hn(s||null))}),ul=(e,t)=>us(t,mu("metadata"),e[3]),Mt=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)t&1?s[i].call(n):r=s[i].call(n,r);return r},Tn=(e,t,n,r,i,s)=>{var o,a,l,u,c,d=t&7,h=!!(t&8),f=!!(t&16),g=d>3?e.length+1:d?h?1:2:0,v=dl[d+5],w=d>3&&(e[g-1]=[]),x=e[g]||(e[g]=[]),m=d&&(!f&&!h&&(i=i.prototype),d<5&&(d>3||!f)&&hu(d<4?i:{get[n](){return Qe(this,s)},set[n](b){return kt(this,s,b)}},n));d?f&&d<4&&ca(s,(d>2?"set ":d>1?"get ":"")+n):ca(i,n);for(var p=r.length-1;p>=0;p--)u=wu(d,n,l={},e[3],x),d&&(u.static=h,u.private=f,c=u.access={has:f?b=>_u(i,b):b=>n in b},d^3&&(c.get=f?b=>(d^1?Qe:ku)(b,i,d^4?s:m.get):b=>b[n]),d>2&&(c.set=f?(b,_)=>kt(b,i,_,d^4?s:m.set):(b,_)=>b[n]=_)),a=(0,r[p])(d?d<4?f?s:m[v]:d>4?void 0:{get:m.get,set:m.set}:i,u),l._=1,d^4||a===void 0?Hn(a)&&(d>4?w.unshift(a):d?f?s=a:m[v]=a:i=a):typeof a!="object"||a===null?Dn("Object expected"):(Hn(o=a.get)&&(m.get=o),Hn(o=a.set)&&(m.set=o),Hn(o=a.init)&&w.unshift(o));return d||ul(e,i),m&&to(i,n,m),f?d^4?s:m:i},no=(e,t,n)=>t.has(e)||Dn("Cannot "+n),_u=(e,t)=>Object(t)!==t?Dn('Cannot use the "in" operator on this value'):e.has(t),Qe=(e,t,n)=>(no(e,t,"read from private field"),n?n.call(e):t.get(e)),qn=(e,t,n)=>t.has(e)?Dn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),kt=(e,t,n,r)=>(no(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ku=(e,t,n)=>(no(e,t,"access private method"),n);function fs(e,t){if(t){let n;return aa(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return aa(e)}function rt(e,t){if(Object.is(e,t))return!0;if(e===null||t===null)return!1;if(typeof e=="function"&&typeof t=="function")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?!1:!e.some((r,i)=>!rt(r,t[i]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:!n.some(s=>!rt(e[s],t[s]))}return!1}function H({get:e},t){return{init(n){return En(n)},get(){return e.call(this).value},set(n){const r=e.call(this);r.peek()!==n&&(r.value=n)}}}function ge(e,t){const n=new WeakMap;return function(){let r=n.get(this);return r||(r=fs(e.bind(this)),n.set(this,r)),r.value}}function Hi(e=!0){return function(t,n){n.addInitializer(function(){const r=n.kind==="field"?this:n.static?this:Object.getPrototypeOf(this),i=Object.getOwnPropertyDescriptor(r,n.name);i&&Object.defineProperty(r,n.name,bu(yu({},i),{enumerable:e}))})}}function $r(...e){const t=e.map(n=>tt(n));return()=>t.forEach(n=>n())}var fl,hl,pl,gl,vl,ml,Ie,ro,qi,hs,ps,Pe,io,Ki,yl,gs,so,Yi,vs,ms;ml=[H],vl=[H],gl=[H],pl=[Hi()],hl=[Hi()],fl=[Hi()];var Kt=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Mt(Ie,5,this),qn(this,Pe),qn(this,ro,Mt(Ie,8,this)),Mt(Ie,11,this),qn(this,io,Mt(Ie,12,this)),Mt(Ie,15,this),qn(this,so,Mt(Ie,16,this)),Mt(Ie,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Qe(this,Pe,vs)}get initial(){return Qe(this,Pe,hs)}get previous(){return Qe(this,Pe,yl)}set current(e){const t=U(()=>Qe(this,Pe,vs));e&&t&&this.equals(t,e)||ue(()=>{Qe(this,Pe,hs)||kt(this,Pe,e,ps),kt(this,Pe,t,gs),kt(this,Pe,e,ms)})}reset(e=this.defaultValue){ue(()=>{kt(this,Pe,void 0,gs),kt(this,Pe,e,ps),kt(this,Pe,e,ms)})}};Ie=xu();ro=new WeakMap;Pe=new WeakSet;io=new WeakMap;so=new WeakMap;qi=Tn(Ie,20,"#initial",ml,Pe,ro),hs=qi.get,ps=qi.set;Ki=Tn(Ie,20,"#previous",vl,Pe,io),yl=Ki.get,gs=Ki.set;Yi=Tn(Ie,20,"#current",gl,Pe,so),vs=Yi.get,ms=Yi.set;Tn(Ie,2,"current",pl,Kt);Tn(Ie,2,"initial",hl,Kt);Tn(Ie,2,"previous",fl,Kt);ul(Ie,Kt);function Xi(e){return U(()=>{const t={};for(const n in e)t[n]=e[n];return t})}var It,Su=class{constructor(){qn(this,It,new WeakMap)}get(e,t){var n;return e?(n=Qe(this,It).get(e))==null?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return Qe(this,It).has(e)||Qe(this,It).set(e,new Map),(r=Qe(this,It).get(e))==null?void 0:r.set(t,n)}clear(e){var t;return e?(t=Qe(this,It).get(e))==null?void 0:t.clear():void 0}};It=new WeakMap;var $u=Object.create,bl=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,da=Object.getOwnPropertySymbols,Ou=Object.prototype.hasOwnProperty,Du=Object.prototype.propertyIsEnumerable,xl=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Pi=e=>{throw TypeError(e)},ua=Math.pow,ys=(e,t,n)=>t in e?bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tu=(e,t)=>{for(var n in t||(t={}))Ou.call(t,n)&&ys(e,n,t[n]);if(da)for(var n of da(t))Du.call(t,n)&&ys(e,n,t[n]);return e},Cu=e=>{var t;return[,,,$u((t=e?.[xl("metadata")])!=null?t:null)]},wl=["class","method","getter","setter","accessor","field","value","get","set"],_l=e=>e!==void 0&&typeof e!="function"?Pi("Function expected"):e,Pu=(e,t,n,r,i)=>({kind:wl[e],name:t,metadata:r,addInitializer:s=>n._?Pi("Already initialized"):i.push(_l(s||null))}),Mu=(e,t)=>ys(t,xl("metadata"),e[3]),Iu=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)s[i].call(n);return r},kl=(e,t,n,r,i,s)=>{for(var o,a,l,u,c=t&7,d=!1,h=!1,f=2,g=wl[c+5],v=e[f]||(e[f]=[]),w=(i=i.prototype,Eu(i,n)),x=r.length-1;x>=0;x--)l=Pu(c,n,a={},e[3],v),l.static=d,l.private=h,u=l.access={has:m=>n in m},u.get=m=>m[n],o=(0,r[x])(w[g],l),a._=1,_l(o)&&(w[g]=o);return w&&bl(i,n,w),i},Sl=(e,t,n)=>t.has(e)||Pi("Cannot "+n),ju=(e,t,n)=>(Sl(e,t,"read from private field"),t.get(e)),Au=(e,t,n)=>t.has(e)?Pi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ru=(e,t,n,r)=>(Sl(e,t,"write to private field"),t.set(e,n),n),Ze=class bs{constructor(t,n){this.x=t,this.y=n}static delta(t,n){return new bs(t.x-n.x,t.y-n.y)}static distance(t,n){return Math.hypot(t.x-n.x,t.y-n.y)}static equals(t,n){return t.x===n.x&&t.y===n.y}static from({x:t,y:n}){return new bs(t,n)}},dt=class jt{constructor(t,n,r,i){this.left=t,this.top=n,this.width=r,this.height=i,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:s,height:o,scale:a}=this,l=new jt(i+t,r+n,s,o);return l.scale=Tu({},a),l}get boundingRectangle(){const{width:t,height:n,left:r,top:i,right:s,bottom:o}=this;return{width:t,height:n,left:r,top:i,right:s,bottom:o}}get center(){const{left:t,top:n,right:r,bottom:i}=this;return new Ze((t+r)/2,(n+i)/2)}get area(){const{width:t,height:n}=this;return t*n}equals(t){if(!(t instanceof jt))return!1;const{left:n,top:r,width:i,height:s}=this;return n===t.left&&r===t.top&&i===t.width&&s===t.height}containsPoint(t){const{top:n,left:r,bottom:i,right:s}=this;return n<=t.y&&t.y<=i&&r<=t.x&&t.x<=s}intersectionArea(t){return t instanceof jt?Lu(this,t):0}intersectionRatio(t){const{area:n}=this,r=this.intersectionArea(t);return r/(t.area+n-r)}get bottom(){const{top:t,height:n}=this;return t+n}get right(){const{left:t,width:n}=this;return t+n}get aspectRatio(){const{width:t,height:n}=this;return t/n}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 jt(n,t,r,i)}static delta(t,n,r={x:"center",y:"center"}){const i=(s,o)=>{const a=r[o],l=o==="x"?s.left:s.top,u=o==="x"?s.width:s.height;return a=="start"?l:a=="end"?l+u:l+u/2};return Ze.delta({x:i(t,"x"),y:i(t,"y")},{x:i(n,"x"),y:i(n,"y")})}static intersectionRatio(t,n){return jt.from(t).intersectionRatio(jt.from(n))}};function Lu(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),s=Math.min(t.top+t.height,e.top+e.height),o=i-r,a=s-n;return r<i&&n<s?o*a:0}var $l,El,xs,Xr,Er,Mi=class extends(xs=Kt,El=[ge],$l=[ge],xs){constructor(t){const n=Ze.from(t);super(n,(r,i)=>Ze.equals(r,i)),Iu(Er,5,this),Au(this,Xr,0),this.velocity={x:0,y:0}}get delta(){return Ze.delta(this.current,this.initial)}get direction(){const{current:t,previous:n}=this;if(!n)return null;const r={x:t.x-n.x,y:t.y-n.y};return!r.x&&!r.y?null:Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up"}get current(){return super.current}set current(t){const{current:n}=this,r=Ze.from(t),i={x:r.x-n.x,y:r.y-n.y},s=Date.now(),o=s-ju(this,Xr),a=l=>Math.round(l/o*100);ue(()=>{Ru(this,Xr,s),this.velocity={x:a(i.x),y:a(i.y)},super.current=r})}reset(t=this.defaultValue){super.reset(Ze.from(t)),this.velocity={x:0,y:0}}};Er=Cu(xs);Xr=new WeakMap;kl(Er,2,"delta",El,Mi);kl(Er,2,"direction",$l,Mi);Mu(Er,Mi);function ws({x:e,y:t},n){const r=Math.abs(e),i=Math.abs(t);return typeof n=="number"?Math.sqrt(ua(r,2)+ua(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:!1}var Ol=(e=>(e.Horizontal="x",e.Vertical="y",e))(Ol||{}),Dl=Object.values(Ol),Wu=Object.create,oo=Object.defineProperty,zu=Object.defineProperties,Fu=Object.getOwnPropertyDescriptor,Nu=Object.getOwnPropertyDescriptors,hi=Object.getOwnPropertySymbols,Tl=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable,Pl=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Cn=e=>{throw TypeError(e)},_s=(e,t,n)=>t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ao=(e,t)=>{for(var n in t||(t={}))Tl.call(t,n)&&_s(e,n,t[n]);if(hi)for(var n of hi(t))Cl.call(t,n)&&_s(e,n,t[n]);return e},lo=(e,t)=>zu(e,Nu(t)),fa=(e,t)=>oo(e,"name",{value:t,configurable:!0}),Ml=(e,t)=>{var n={};for(var r in e)Tl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&hi)for(var r of hi(e))t.indexOf(r)<0&&Cl.call(e,r)&&(n[r]=e[r]);return n},Pn=e=>{var t;return[,,,Wu((t=e?.[Pl("metadata")])!=null?t:null)]},Il=["class","method","getter","setter","accessor","field","value","get","set"],Kn=e=>e!==void 0&&typeof e!="function"?Cn("Function expected"):e,Bu=(e,t,n,r,i)=>({kind:Il[e],name:t,metadata:r,addInitializer:s=>n._?Cn("Already initialized"):i.push(Kn(s||null))}),Yt=(e,t)=>_s(t,Pl("metadata"),e[3]),N=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)t&1?s[i].call(n):r=s[i].call(n,r);return r},q=(e,t,n,r,i,s)=>{var o,a,l,u,c,d=t&7,h=!!(t&8),f=!!(t&16),g=d>3?e.length+1:d?h?1:2:0,v=Il[d+5],w=d>3&&(e[g-1]=[]),x=e[g]||(e[g]=[]),m=d&&(!f&&!h&&(i=i.prototype),d<5&&(d>3||!f)&&Fu(d<4?i:{get[n](){return pe(this,s)},set[n](b){return qe(this,s,b)}},n));d?f&&d<4&&fa(s,(d>2?"set ":d>1?"get ":"")+n):fa(i,n);for(var p=r.length-1;p>=0;p--)u=Bu(d,n,l={},e[3],x),d&&(u.static=h,u.private=f,c=u.access={has:f?b=>Vu(i,b):b=>n in b},d^3&&(c.get=f?b=>(d^1?pe:jl)(b,i,d^4?s:m.get):b=>b[n]),d>2&&(c.set=f?(b,_)=>qe(b,i,_,d^4?s:m.set):(b,_)=>b[n]=_)),a=(0,r[p])(d?d<4?f?s:m[v]:d>4?void 0:{get:m.get,set:m.set}:i,u),l._=1,d^4||a===void 0?Kn(a)&&(d>4?w.unshift(a):d?f?s=a:m[v]=a:i=a):typeof a!="object"||a===null?Cn("Object expected"):(Kn(o=a.get)&&(m.get=o),Kn(o=a.set)&&(m.set=o),Kn(o=a.init)&&w.unshift(o));return d||Yt(e,i),m&&oo(i,n,m),f?d^4?s:m:i},co=(e,t,n)=>t.has(e)||Cn("Cannot "+n),Vu=(e,t)=>Object(t)!==t?Cn('Cannot use the "in" operator on this value'):e.has(t),pe=(e,t,n)=>(co(e,t,"read from private field"),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?Cn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qe=(e,t,n,r)=>(co(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),jl=(e,t,n)=>(co(e,t,"access private method"),n);function Al(e,t){return{plugin:e,options:t}}function Or(e){return t=>Al(e,t)}function gr(e){return typeof e=="function"?{plugin:e,options:void 0}:e}var Rl,vr,uo,Qr;Rl=[H];var Me=class{constructor(e,t){this.manager=e,this.options=t,J(this,uo,N(vr,8,this,!1)),N(vr,11,this),J(this,Qr,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return U(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=tt(e.bind(this));return pe(this,Qr).add(t),t}destroy(){pe(this,Qr).forEach(e=>e())}static configure(e){return Al(this,e)}};vr=Pn(null);uo=new WeakMap;Qr=new WeakMap;q(vr,4,"disabled",Rl,Me,uo);Yt(vr,Me);var Dr=class extends Me{},Zr,Qi=class{constructor(e){this.manager=e,this.instances=new Map,J(this,Zr,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(gr).reduce((r,i)=>{const s=r.find(({plugin:o})=>o===i.plugin);return s?(s.options=i.options,r):[...r,i]},[]),n=t.map(({plugin:r})=>r);for(const r of pe(this,Zr))if(!n.includes(r)){if(r.prototype instanceof Dr)continue;this.unregister(r)}for(const{plugin:r,options:i}of t)this.register(r,i);qe(this,Zr,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()}};Zr=new WeakMap;function Gu(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}var Wr=[],an,ln,Uu=class extends Me{constructor(e){super(e),J(this,an),J(this,ln),this.computeCollisions=this.computeCollisions.bind(this),qe(this,ln,En(Wr)),this.destroy=$r(()=>{const t=this.computeCollisions(),n=U(()=>this.manager.dragOperation.position.current);if(t!==Wr){const r=pe(this,an);if(qe(this,an,n),r&&n.x==r.x&&n.y==r.y)return}else qe(this,an,void 0);pe(this,ln).value=t},()=>{const{dragOperation:t}=this.manager;t.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){U(()=>{e?pe(this,ln).value=this.computeCollisions():qe(this,an,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:i,shape:s,status:o}=r;if(!o.initialized||!s)return Wr;const a=[],l=[];for(const u of e??n.droppables){if(u.disabled||i&&!u.accepts(i))continue;const c=t??u.collisionDetector;if(!c)continue;l.push(u),u.shape;const d=U(()=>c({droppable:u,dragOperation:r}));d&&(u.collisionPriority!=null&&(d.priority=u.collisionPriority),a.push(d))}return l.length===0?Wr:(a.sort(Gu),a)}get collisions(){return pe(this,ln).value}};an=new WeakMap;ln=new WeakMap;var Ll,Wl,zl,fo,Fl,it,ho,pn,po,go;zl=[H],Wl=[H],Ll=[H];var yt=class At{constructor(t,n){J(this,ho,N(it,8,this)),N(it,11,this),J(this,pn),J(this,po,N(it,12,this)),N(it,15,this),J(this,go,N(it,16,this)),N(it,19,this);const{effects:r,id:i,data:s={},disabled:o=!1,register:a=!0}=t;let l=i;qe(this,pn,En(i)),this.manager=n,this.data=s,this.disabled=o,this.effects=()=>{var u;return[()=>{const{id:c,manager:d}=this;if(c!==l)return l=c,d?.registry.register(this),()=>d?.registry.unregister(this)},...(u=r?.())!=null?u:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),n&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=pe(this,pn).value;return(n=(t=At.pendingIdChanges)==null?void 0:t.get(this))!=null?n:r}set id(t){var n,r;const i=(r=(n=At.pendingIdChanges)==null?void 0:n.get(this))!=null?r:pe(this,pn).peek();t!==i&&(At.pendingIdChanges||(At.pendingIdChanges=new Map,queueMicrotask(()=>{var s;return jl(s=At,fo,Fl).call(s)})),At.pendingIdChanges.set(this,t))}register(){var t;return(t=this.manager)==null?void 0:t.registry.register(this)}unregister(){var t;(t=this.manager)==null||t.registry.unregister(this)}destroy(){var t;(t=this.manager)==null||t.registry.unregister(this)}};it=Pn(null);fo=new WeakSet;Fl=function(){const e=yt.pendingIdChanges;yt.pendingIdChanges=null,e&&ue(()=>{for(const[t,n]of e)pe(t,pn).value=n})};ho=new WeakMap;pn=new WeakMap;po=new WeakMap;go=new WeakMap;q(it,4,"manager",zl,yt,ho);q(it,4,"data",Wl,yt,po);q(it,4,"disabled",Ll,yt,go);J(yt,fo);Yt(it,yt);yt.pendingIdChanges=null;var Ii=yt,ha=class{constructor(){this.map=En(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 a=this.cleanupFunctions.get(r);a?.(),this.cleanupFunctions.delete(r)}const s=new Map(n);for(const[a,l]of n)if(l===t&&a!==e){s.delete(a);break}s.set(e,t),this.map.value=s;const o=$r(...t.effects());return this.cleanupFunctions.set(t,o),i},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);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);t?.(),e.destroy()}this.map.value=new Map}},Nl,Bl,Vl,Gl,Ul,Hl,ks,je,vo,mo,yo,ut=class extends(ks=Ii,Hl=[H],Ul=[H],Gl=[H],Vl=[ge],Bl=[ge],Nl=[ge],ks){constructor(t,n){var r=t,{modifiers:i,type:s,sensors:o,plugins:a,effects:l}=r,u=Ml(r,["modifiers","type","sensors","plugins","effects"]);super(lo(ao({},u),{effects:()=>{var c;return[...(c=l?.())!=null?c:[],()=>{const{manager:d,plugins:h}=this;if(!(!d||!h))for(const f of h){const{plugin:g}=gr(f);d.registry.plugins.register(g)}}]}}),n),N(je,5,this),J(this,vo,N(je,8,this)),N(je,11,this),J(this,mo,N(je,12,this)),N(je,15,this),J(this,yo,N(je,16,this,this.isDragSource?"dragging":"idle")),N(je,19,this),this.type=s,this.sensors=o,this.modifiers=i,this.alignment=u.alignment,this.plugins=a}pluginConfig(t){if(this.plugins)for(const n of this.plugins){const r=gr(n);if(r.plugin===t)return r.options}}get isDropping(){return this.status==="dropping"&&this.isDragSource}get isDragging(){return this.status==="dragging"&&this.isDragSource}get isDragSource(){var t,n;return((n=(t=this.manager)==null?void 0:t.dragOperation.source)==null?void 0:n.id)===this.id}};je=Pn(ks);vo=new WeakMap;mo=new WeakMap;yo=new WeakMap;q(je,4,"type",Hl,ut,vo);q(je,4,"modifiers",Ul,ut,mo);q(je,4,"status",Gl,ut,yo);q(je,2,"isDropping",Vl,ut);q(je,2,"isDragging",Bl,ut);q(je,2,"isDragSource",Nl,ut);Yt(je,ut);var ql,Kl,Yl,Xl,Ql,Zl,Ss,xe,bo,xo,wo,_o,ko,ft=class extends(Ss=Ii,Zl=[H],Ql=[H],Xl=[H],Yl=[H],Kl=[H],ql=[ge],Ss){constructor(t,n){var r=t,{accept:i,collisionDetector:s,collisionPriority:o,type:a}=r,l=Ml(r,["accept","collisionDetector","collisionPriority","type"]);super(l,n),N(xe,5,this),J(this,bo,N(xe,8,this)),N(xe,11,this),J(this,xo,N(xe,12,this)),N(xe,15,this),J(this,wo,N(xe,16,this)),N(xe,19,this),J(this,_o,N(xe,20,this)),N(xe,23,this),J(this,ko,N(xe,24,this)),N(xe,27,this),this.accept=i,this.collisionDetector=s,this.collisionPriority=o,this.type=a}accepts(t){const{accept:n}=this;return n?typeof n=="function"?n(t):t.type?Array.isArray(n)?n.includes(t.type):t.type===n:!1:!0}get isDropTarget(){var t,n;return((n=(t=this.manager)==null?void 0:t.dragOperation.target)==null?void 0:n.id)===this.id}};xe=Pn(Ss);bo=new WeakMap;xo=new WeakMap;wo=new WeakMap;_o=new WeakMap;ko=new WeakMap;q(xe,4,"accept",Zl,ft,bo);q(xe,4,"type",Ql,ft,xo);q(xe,4,"collisionDetector",Xl,ft,wo);q(xe,4,"collisionPriority",Yl,ft,_o);q(xe,4,"shape",Kl,ft,ko);q(xe,2,"isDropTarget",ql,ft);Yt(xe,ft);var Hu=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 i of r)i(...t)}},qu=class extends Hu{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function Jr(e,t=!0){let n=!1;return lo(ao({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var Ku=class extends Dr{constructor(e){super(e);const t=(r,i)=>r.map(({id:s})=>s).join("")===i.map(({id:s})=>s).join("");let n=[];this.destroy=$r(()=>{const{dragOperation:r,collisionObserver:i}=e;r.status.initializing&&(n=[],i.enable())},()=>{const{collisionObserver:r,monitor:i}=e,{collisions:s}=r;if(r.isDisabled()||Ii.pendingIdChanges)return;const o=Jr({collisions:s});if(i.dispatch("collision",o),o.defaultPrevented||t(s,n))return;n=s;const[a]=s;U(()=>{var l;a?.id!==((l=e.dragOperation.target)==null?void 0:l.id)&&(r.disable(),e.actions.setDropTarget(a?.id).then(()=>{r.enable()}))})})}},Mn=(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))(Mn||{}),In=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(In||{}),Jl,ec,tc,nc,rc,ic,sc,et,So;sc=[H],ic=[ge],rc=[ge],nc=[ge],tc=[ge],ec=[ge],Jl=[ge];var bt=class{constructor(){N(et,5,this),J(this,So,N(et,8,this,"idle")),N(et,11,this)}get current(){return this.value}get idle(){return this.value==="idle"}get initializing(){return this.value==="initializing"}get initialized(){const{value:e}=this;return e!=="idle"&&e!=="initialization-pending"}get dragging(){return this.value==="dragging"}get dropped(){return this.value==="dropped"}set(e){this.value=e}};et=Pn(null);So=new WeakMap;q(et,4,"value",sc,bt,So);q(et,2,"current",ic,bt);q(et,2,"idle",rc,bt);q(et,2,"initializing",nc,bt);q(et,2,"initialized",tc,bt);q(et,2,"dragging",ec,bt);q(et,2,"dropped",Jl,bt);Yt(et,bt);var Yu=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier=typeof e=="string"||typeof e=="number"?e:e.id}setDropTarget(e){return U(()=>{const{dragOperation:t}=this.manager,n=e??null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=Jr({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return U(()=>{const{dragOperation:t}=this.manager;if(e.source!=null&&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 r=new AbortController,{event:i,coordinates:s}=e;ue(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=i??null,t.position.reset(s)});const o=Jr({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",o),o.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:a}=t;a.current==="initializing"&&ue(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:i,operation:t.snapshot(),cancelable:!1})})}),r)})}move(e){return U(()=>{var t,n;const{dragOperation:r}=this.manager,{status:i,controller:s}=r;if(!i.dragging||!s||s.signal.aborted)return;const o=Jr({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},(t=e.cancelable)!=null?t:!0);((n=e.propagate)==null||n)&&this.manager.monitor.dispatch("dragmove",o),queueMicrotask(()=>{var a,l,u,c,d;if(o.defaultPrevented)return;const h=(d=e.to)!=null?d:{x:r.position.current.x+((l=(a=e.by)==null?void 0:a.x)!=null?l:0),y:r.position.current.y+((c=(u=e.by)==null?void 0:u.y)!=null?c:0)};r.position.current=h})})}stop(e={}){return U(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:i}=r;if(!i||i.signal.aborted)return;let s;const o=()=>{const l={resume:()=>{},abort:()=>{}};return s=new Promise((u,c)=>{l.resume=u,l.abort=c}),l};i.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const l=U(()=>{var c;return((c=r.source)==null?void 0:c.status)==="dropping"}),u=()=>{r.controller===i&&(r.controller=void 0),r.reset()};if(l){const{source:c}=r,d=tt(()=>{c?.status==="idle"&&(d(),u())})}else this.manager.renderer.rendering.then(u)})};r.canceled=(t=e.canceled)!=null?t:!1,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:(n=e.canceled)!=null?n:!1,suspend:o}),s?s.then(a).catch(()=>r.reset()):a()})}},bn=class extends Me{constructor(e,t){super(e,t),this.manager=e,this.options=t}},Xu=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const n of e??[])n.controller=this}onEvent(e){var t;if(!this.activated)if((t=this.constraints)!=null&&t.length)for(const n of this.constraints)n.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},ei,oc=class{constructor(e){this.options=e,J(this,ei)}set controller(e){qe(this,ei,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;(t=pe(this,ei))==null||t.activate(e)}};ei=new WeakMap;var pa=class extends Me{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},Qu=class{constructor(e){this.draggables=new ha,this.droppables=new ha,this.plugins=new Qi(e),this.sensors=new Qi(e),this.modifiers=new Qi(e)}register(e,t){if(e instanceof ut)return this.draggables.register(e.id,e);if(e instanceof ft)return this.droppables.register(e.id,e);if(e.prototype instanceof pa)return this.modifiers.register(e,t);if(e.prototype instanceof bn)return this.sensors.register(e,t);if(e.prototype instanceof Me)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof Ii)return e instanceof ut?this.draggables.unregister(e.id,e):e instanceof ft?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof pa)return this.modifiers.unregister(e);if(e.prototype instanceof bn)return this.sensors.unregister(e);if(e.prototype instanceof Me)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()}},ac,lc,cc,dc,uc,fc,hc,pc,gc,Yn,ti,cn,ce,$o,Eo,Oo,Do,To,Xn;gc=[ge],pc=[H],hc=[H],fc=[H],uc=[H],dc=[H],cc=[ge],lc=[ge],ac=[ge];var ot=class{constructor(e){N(ce,5,this),J(this,Yn),J(this,ti),J(this,cn,new Kt(void 0,(t,n)=>t&&n?t.equals(n):t===n)),this.status=new bt,J(this,$o,N(ce,8,this,!1)),N(ce,11,this),J(this,Eo,N(ce,12,this,null)),N(ce,15,this),J(this,Oo,N(ce,16,this,null)),N(ce,19,this),J(this,Do,N(ce,20,this,null)),N(ce,23,this),J(this,To,N(ce,24,this,[])),N(ce,27,this),this.position=new Mi({x:0,y:0}),J(this,Xn,{x:0,y:0}),qe(this,Yn,e)}get shape(){const{current:e,initial:t,previous:n}=pe(this,cn);return!e||!t?null:{current:e,initial:t,previous:n}}set shape(e){e?pe(this,cn).current=e:pe(this,cn).reset()}get source(){var e;const t=this.sourceIdentifier;if(t==null)return null;const n=pe(this,Yn).registry.draggables.get(t);return n&&qe(this,ti,n),(e=n??pe(this,ti))!=null?e:null}get target(){var e;const t=this.targetIdentifier;return t!=null&&(e=pe(this,Yn).registry.droppables.get(t))!=null?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const r of this.modifiers)n=r.apply(lo(ao({},this.snapshot()),{transform:n}));return qe(this,Xn,n),n}snapshot(){return U(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:pe(this,Xn),shape:this.shape?Xi(this.shape):null,position:Xi(this.position),status:Xi(this.status),canceled:this.canceled}))}reset(){ue(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,pe(this,cn).reset(),this.position.reset({x:0,y:0}),qe(this,Xn,{x:0,y:0}),this.modifiers=[]})}};ce=Pn(null);Yn=new WeakMap;ti=new WeakMap;cn=new WeakMap;$o=new WeakMap;Eo=new WeakMap;Oo=new WeakMap;Do=new WeakMap;To=new WeakMap;Xn=new WeakMap;q(ce,2,"shape",gc,ot);q(ce,4,"canceled",pc,ot,$o);q(ce,4,"activatorEvent",hc,ot,Eo);q(ce,4,"sourceIdentifier",fc,ot,Oo);q(ce,4,"targetIdentifier",uc,ot,Do);q(ce,4,"modifiers",dc,ot,To);q(ce,2,"source",cc,ot);q(ce,2,"target",lc,ot);q(ce,2,"transform",ac,ot);Yt(ce,ot);var Zu={get rendering(){return Promise.resolve()}};function st(e,t){return typeof e=="function"?e(t):e??t}var Ju=class{constructor(t){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(h=>h.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};var n;const r=t??{},i=st(r.plugins,[]),s=st(r.sensors,[]),o=st(r.modifiers,[]),a=(n=r.renderer)!=null?n:Zu,l=new qu(this),u=new Qu(this);this.registry=u,this.monitor=l,this.renderer=a,this.actions=new Yu(this),this.dragOperation=new ot(this),this.collisionObserver=new Uu(this),this.plugins=[Ku,...i],this.modifiers=o,this.sensors=s;const{destroy:c}=this,d=$r(()=>{var h,f,g;const v=U(()=>this.dragOperation.modifiers),w=this.modifiers;for(const x of v)w.includes(x)||x.destroy();this.dragOperation.modifiers=(g=(f=(h=this.dragOperation.source)==null?void 0:h.modifiers)==null?void 0:f.map(x=>{const{plugin:m,options:p}=gr(x);return new m(this,p)}))!=null?g:w});this.destroy=()=>{d(),c()}}get plugins(){return this.registry.plugins.values}set plugins(t){this.registry.plugins.values=t}get modifiers(){return this.registry.modifiers.values}set modifiers(t){this.registry.modifiers.values=t}get sensors(){return this.registry.sensors.values}set sensors(t){this.registry.sensors.values=t}},vc=e=>{throw TypeError(e)},Co=(e,t,n)=>t.has(e)||vc("Cannot "+n),F=(e,t,n)=>(Co(e,t,"read from private field"),t.get(e)),Ne=(e,t,n)=>t.has(e)?vc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),He=(e,t,n,r)=>(Co(e,t,"write to private field"),t.set(e,n),n),mc=(e,t,n)=>(Co(e,t,"access private method"),n);function ji(e){return e?e instanceof KeyframeEffect?!0:"getKeyframes"in e&&typeof e.getKeyframes=="function":!1}function yc(e,t){const n=e.getAnimations();let r=null;for(const i of n){if(i.playState!=="running")continue;const{effect:s}=i,a=(ji(s)?s.getKeyframes():[]).filter(t);a.length>0&&(r=[a[a.length-1],i])}return r}function Ai(e){const{width:t,height:n,top:r,left:i,bottom:s,right:o}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:s,right:o}}function Po(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Tr(e){return"nodeType"in e}function Ke(e){var t,n,r;return e?Po(e)?e:Tr(e)?"defaultView"in e?(t=e.defaultView)!=null?t:window:(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window:window:window}function Mo(e){const{Document:t}=Ke(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function Dt(e){return!e||Po(e)?!1:e instanceof Ke(e).HTMLElement||"namespaceURI"in e&&typeof e.namespaceURI=="string"&&e.namespaceURI.endsWith("html")}function bc(e){return e instanceof Ke(e).SVGElement||"namespaceURI"in e&&typeof e.namespaceURI=="string"&&e.namespaceURI.endsWith("svg")}function jn(e){return e?Po(e)?e.document:Tr(e)?Mo(e)?e:Dt(e)||bc(e)?e.ownerDocument:document:document:document}function ef(e){var t,n,r,i;const{documentElement:s}=jn(e),o=Ke(e).visualViewport,a=(t=o?.width)!=null?t:s.clientWidth,l=(n=o?.height)!=null?n:s.clientHeight,u=(r=o?.offsetTop)!=null?r:0,c=(i=o?.offsetLeft)!=null?i:0;return{top:u,left:c,right:c+a,bottom:u+l,width:a,height:l}}function tf(e,t){if(nf(e)&&e.open===!1)return!1;const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return n==="visible"&&r==="visible"&&i==="visible"}function nf(e){return e.tagName==="DETAILS"}function mr(e,t=e.getBoundingClientRect(),n=0){var r,i,s,o,a;let l=t;const{ownerDocument:u}=e,c=(r=u.defaultView)!=null?r:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!tf(d)){const p=d.getBoundingClientRect(),b=n*(p.bottom-p.top),_=n*(p.right-p.left),$=n*(p.bottom-p.top),O=n*(p.right-p.left);l={top:Math.max(l.top,p.top-b),right:Math.min(l.right,p.right+_),bottom:Math.min(l.bottom,p.bottom+$),left:Math.max(l.left,p.left-O),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const h=c.visualViewport,f=(i=h?.offsetTop)!=null?i:0,g=(s=h?.offsetLeft)!=null?s:0,v=(o=h?.width)!=null?o:c.innerWidth,w=(a=h?.height)!=null?a:c.innerHeight,x=n*w,m=n*v;return l={top:Math.max(l.top,f-x),right:Math.min(l.right,g+v+m),bottom:Math.min(l.bottom,f+w+x),left:Math.max(l.left,g-m),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}function xn(e){return{x:e.clientX,y:e.clientY}}var xc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $s(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const i=r.contentDocument;i&&!t.has(i)&&n.push(...$s(i,t))}catch{}try{const r=e.defaultView;if(r&&r!==window.top){const i=r.parent;i&&i.document&&i.document!==e&&n.push(...$s(i.document,t))}}catch{}return n}function Io(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function wc(){var e,t;const n=Io()?window.visualViewport:null;return{x:(e=n?.offsetLeft)!=null?e:0,y:(t=n?.offsetTop)!=null?t:0}}function jo(e){return!e||!Tr(e)?!1:e instanceof Ke(e).ShadowRoot}function pi(e){if(e&&Tr(e)){let t=e.getRootNode();if(jo(t))return t;if(t instanceof Document)return t}return jn(e)}function Ao(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function rf(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((s,o)=>{const a=r[o];if(ga(s)&&ga(a)&&(s.type!=="file"&&(s.value=a.value),s.type==="radio"&&s.name&&(s.name=`Cloned__${s.name}`)),va(s)&&va(a)&&a.width>0&&a.height>0){const l=s.getContext("2d");l?.drawImage(a,0,0)}}),n}function ga(e){return"value"in e}function va(e){return e.tagName==="CANVAS"}function _c(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(sf(r)){const{contentDocument:i}=r;if(i){const{left:s,top:o}=r.getBoundingClientRect();return _c(i,{x:t-s,y:n-o})}}return r}function sf(e){return e?.tagName==="IFRAME"}var Es=new WeakMap;function of(e){return e.closest(`
|
|
1
|
+
"use strict";var eu=Object.create;var sa=Object.defineProperty;var tu=Object.getOwnPropertyDescriptor;var nu=Object.getOwnPropertyNames;var ru=Object.getPrototypeOf,iu=Object.prototype.hasOwnProperty;var su=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nu(t))!iu.call(e,i)&&i!==n&&sa(e,i,{get:()=>t[i],enumerable:!(r=tu(t,i))||r.enumerable});return e};var oa=(e,t,n)=>(n=e!=null?eu(ru(e)):{},su(t||!e||!e.__esModule?sa(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),S=require("react"),ou=require("react-dom"),k=require("@mui/material"),j=require("../DocumentStorage-B0_YgSzt.cjs.js"),Be=require("../ServerProvider-CuYLH_Yi.cjs.js"),au=require("@tanstack/react-query");var lu=Symbol.for("preact-signals");function Ci(){if(vt>1)vt--;else{var e,t=!1;for((function(){var i=ui;for(ui=void 0;i!==void 0;){var s=i.S;if(s.v===i.v)for(var o=s.t;o!==void 0;o=o.x)o.i===i.i&&(o.i=s.i);i=i.o}})();cr!==void 0;){var n=cr;for(cr=void 0,di++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&ol(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(di=0,vt--,t)throw e}}function ue(e){if(vt>0)return e();ds=++cu,vt++;try{return e()}finally{Ci()}}var lr,ie=void 0;function U(e){var t=ie,n=lr;ie=void 0,lr=void 0;try{return e()}finally{ie=t,lr=n}}var cr=void 0,vt=0,di=0,cu=0,ds=0,ui=void 0,fi=0;function sl(e){if(ie!==void 0){var t=e.n;if(t===void 0||t.t!==ie)return t={i:0,S:e,p:ie.s,n:void 0,t:ie,e:void 0,x:void 0,r:t},ie.s!==void 0&&(ie.s.n=t),ie.s=t,e.n=t,32&ie.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ie.s,t.n=void 0,ie.s.n=t,ie.s=t),t}}function Re(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}Re.prototype.brand=lu;Re.prototype.h=function(){return!0};Re.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n!==void 0?n.e=e:U(function(){var r;(r=t.W)==null||r.call(t)}))};Re.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&U(function(){var i;(i=t.Z)==null||i.call(t)}))}};Re.prototype.subscribe=function(e){var t=this;return tt(function(){var n=t.value;U(function(){return e(n)})},{name:"sub"})};Re.prototype.valueOf=function(){return this.value};Re.prototype.toString=function(){return this.value+""};Re.prototype.toJSON=function(){return this.value};Re.prototype.peek=function(){var e=this;return U(function(){return e.value})};Object.defineProperty(Re.prototype,"value",{get:function(){var e=sl(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(di>100)throw new Error("Cycle detected");(function(n){vt!==0&&di===0&&n.l!==ds&&(n.l=ds,ui={S:n,v:n.v,i:n.i,o:ui})})(this),this.v=e,this.i++,fi++,vt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ci()}}}});function En(e,t){return new Re(e,t)}function ol(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function al(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function ll(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function qt(e,t){Re.call(this,void 0,t),this.x=e,this.s=void 0,this.g=fi-1,this.f=4}qt.prototype=new Re;qt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===fi))return!0;if(this.g=fi,this.f|=1,this.i>0&&!ol(this))return this.f&=-2,!0;var e=ie;try{al(this),ie=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return ie=e,ll(this),this.f&=-2,!0};qt.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Re.prototype.S.call(this,e)};qt.prototype.U=function(e){if(this.t!==void 0&&(Re.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};qt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(qt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=sl(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function aa(e,t){return new qt(e,t)}function cl(e){var t=e.m;if(e.m=void 0,typeof t=="function"){vt++;var n=ie;ie=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,eo(e),r}finally{ie=n,Ci()}}}function eo(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,cl(e)}function du(e){if(ie!==this)throw new Error("Out-of-order effect");ll(this),ie=e,this.f&=-2,8&this.f&&eo(this),Ci()}function On(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name,lr&&lr.push(this)}On.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.m=t)}finally{e()}};On.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,cl(this),al(this),vt++;var e=ie;return ie=this,du.bind(this,e)};On.prototype.N=function(){2&this.f||(this.f|=2,this.u=cr,cr=this)};On.prototype.d=function(){this.f|=8,1&this.f||eo(this)};On.prototype.dispose=function(){this.d()};function tt(e,t){var n=new On(e,t);try{n.c()}catch(i){throw n.d(),i}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var uu=Object.create,to=Object.defineProperty,fu=Object.defineProperties,hu=Object.getOwnPropertyDescriptor,pu=Object.getOwnPropertyDescriptors,la=Object.getOwnPropertySymbols,gu=Object.prototype.hasOwnProperty,vu=Object.prototype.propertyIsEnumerable,mu=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Dn=e=>{throw TypeError(e)},us=(e,t,n)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yu=(e,t)=>{for(var n in t||(t={}))gu.call(t,n)&&us(e,n,t[n]);if(la)for(var n of la(t))vu.call(t,n)&&us(e,n,t[n]);return e},bu=(e,t)=>fu(e,pu(t)),ca=(e,t)=>to(e,"name",{value:t,configurable:!0}),xu=e=>{var t;return[,,,uu((t=void 0)!=null?t:null)]},dl=["class","method","getter","setter","accessor","field","value","get","set"],Hn=e=>e!==void 0&&typeof e!="function"?Dn("Function expected"):e,wu=(e,t,n,r,i)=>({kind:dl[e],name:t,metadata:r,addInitializer:s=>n._?Dn("Already initialized"):i.push(Hn(s||null))}),ul=(e,t)=>us(t,mu("metadata"),e[3]),Mt=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)t&1?s[i].call(n):r=s[i].call(n,r);return r},Tn=(e,t,n,r,i,s)=>{var o,a,l,u,c,d=t&7,h=!!(t&8),f=!!(t&16),g=d>3?e.length+1:d?h?1:2:0,v=dl[d+5],w=d>3&&(e[g-1]=[]),x=e[g]||(e[g]=[]),m=d&&(!f&&!h&&(i=i.prototype),d<5&&(d>3||!f)&&hu(d<4?i:{get[n](){return Qe(this,s)},set[n](b){return kt(this,s,b)}},n));d?f&&d<4&&ca(s,(d>2?"set ":d>1?"get ":"")+n):ca(i,n);for(var p=r.length-1;p>=0;p--)u=wu(d,n,l={},e[3],x),d&&(u.static=h,u.private=f,c=u.access={has:f?b=>_u(i,b):b=>n in b},d^3&&(c.get=f?b=>(d^1?Qe:ku)(b,i,d^4?s:m.get):b=>b[n]),d>2&&(c.set=f?(b,_)=>kt(b,i,_,d^4?s:m.set):(b,_)=>b[n]=_)),a=(0,r[p])(d?d<4?f?s:m[v]:d>4?void 0:{get:m.get,set:m.set}:i,u),l._=1,d^4||a===void 0?Hn(a)&&(d>4?w.unshift(a):d?f?s=a:m[v]=a:i=a):typeof a!="object"||a===null?Dn("Object expected"):(Hn(o=a.get)&&(m.get=o),Hn(o=a.set)&&(m.set=o),Hn(o=a.init)&&w.unshift(o));return d||ul(e,i),m&&to(i,n,m),f?d^4?s:m:i},no=(e,t,n)=>t.has(e)||Dn("Cannot "+n),_u=(e,t)=>Object(t)!==t?Dn('Cannot use the "in" operator on this value'):e.has(t),Qe=(e,t,n)=>(no(e,t,"read from private field"),n?n.call(e):t.get(e)),qn=(e,t,n)=>t.has(e)?Dn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),kt=(e,t,n,r)=>(no(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ku=(e,t,n)=>(no(e,t,"access private method"),n);function fs(e,t){if(t){let n;return aa(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return aa(e)}function rt(e,t){if(Object.is(e,t))return!0;if(e===null||t===null)return!1;if(typeof e=="function"&&typeof t=="function")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?!1:!e.some((r,i)=>!rt(r,t[i]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:!n.some(s=>!rt(e[s],t[s]))}return!1}function H({get:e},t){return{init(n){return En(n)},get(){return e.call(this).value},set(n){const r=e.call(this);r.peek()!==n&&(r.value=n)}}}function ge(e,t){const n=new WeakMap;return function(){let r=n.get(this);return r||(r=fs(e.bind(this)),n.set(this,r)),r.value}}function Hi(e=!0){return function(t,n){n.addInitializer(function(){const r=n.kind==="field"?this:n.static?this:Object.getPrototypeOf(this),i=Object.getOwnPropertyDescriptor(r,n.name);i&&Object.defineProperty(r,n.name,bu(yu({},i),{enumerable:e}))})}}function $r(...e){const t=e.map(n=>tt(n));return()=>t.forEach(n=>n())}var fl,hl,pl,gl,vl,ml,Ie,ro,qi,hs,ps,Pe,io,Ki,yl,gs,so,Yi,vs,ms;ml=[H],vl=[H],gl=[H],pl=[Hi()],hl=[Hi()],fl=[Hi()];var Kt=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Mt(Ie,5,this),qn(this,Pe),qn(this,ro,Mt(Ie,8,this)),Mt(Ie,11,this),qn(this,io,Mt(Ie,12,this)),Mt(Ie,15,this),qn(this,so,Mt(Ie,16,this)),Mt(Ie,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Qe(this,Pe,vs)}get initial(){return Qe(this,Pe,hs)}get previous(){return Qe(this,Pe,yl)}set current(e){const t=U(()=>Qe(this,Pe,vs));e&&t&&this.equals(t,e)||ue(()=>{Qe(this,Pe,hs)||kt(this,Pe,e,ps),kt(this,Pe,t,gs),kt(this,Pe,e,ms)})}reset(e=this.defaultValue){ue(()=>{kt(this,Pe,void 0,gs),kt(this,Pe,e,ps),kt(this,Pe,e,ms)})}};Ie=xu();ro=new WeakMap;Pe=new WeakSet;io=new WeakMap;so=new WeakMap;qi=Tn(Ie,20,"#initial",ml,Pe,ro),hs=qi.get,ps=qi.set;Ki=Tn(Ie,20,"#previous",vl,Pe,io),yl=Ki.get,gs=Ki.set;Yi=Tn(Ie,20,"#current",gl,Pe,so),vs=Yi.get,ms=Yi.set;Tn(Ie,2,"current",pl,Kt);Tn(Ie,2,"initial",hl,Kt);Tn(Ie,2,"previous",fl,Kt);ul(Ie,Kt);function Xi(e){return U(()=>{const t={};for(const n in e)t[n]=e[n];return t})}var It,Su=class{constructor(){qn(this,It,new WeakMap)}get(e,t){var n;return e?(n=Qe(this,It).get(e))==null?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return Qe(this,It).has(e)||Qe(this,It).set(e,new Map),(r=Qe(this,It).get(e))==null?void 0:r.set(t,n)}clear(e){var t;return e?(t=Qe(this,It).get(e))==null?void 0:t.clear():void 0}};It=new WeakMap;var $u=Object.create,bl=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,da=Object.getOwnPropertySymbols,Ou=Object.prototype.hasOwnProperty,Du=Object.prototype.propertyIsEnumerable,xl=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Pi=e=>{throw TypeError(e)},ua=Math.pow,ys=(e,t,n)=>t in e?bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tu=(e,t)=>{for(var n in t||(t={}))Ou.call(t,n)&&ys(e,n,t[n]);if(da)for(var n of da(t))Du.call(t,n)&&ys(e,n,t[n]);return e},Cu=e=>{var t;return[,,,$u((t=e?.[xl("metadata")])!=null?t:null)]},wl=["class","method","getter","setter","accessor","field","value","get","set"],_l=e=>e!==void 0&&typeof e!="function"?Pi("Function expected"):e,Pu=(e,t,n,r,i)=>({kind:wl[e],name:t,metadata:r,addInitializer:s=>n._?Pi("Already initialized"):i.push(_l(s||null))}),Mu=(e,t)=>ys(t,xl("metadata"),e[3]),Iu=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)s[i].call(n);return r},kl=(e,t,n,r,i,s)=>{for(var o,a,l,u,c=t&7,d=!1,h=!1,f=2,g=wl[c+5],v=e[f]||(e[f]=[]),w=(i=i.prototype,Eu(i,n)),x=r.length-1;x>=0;x--)l=Pu(c,n,a={},e[3],v),l.static=d,l.private=h,u=l.access={has:m=>n in m},u.get=m=>m[n],o=(0,r[x])(w[g],l),a._=1,_l(o)&&(w[g]=o);return w&&bl(i,n,w),i},Sl=(e,t,n)=>t.has(e)||Pi("Cannot "+n),ju=(e,t,n)=>(Sl(e,t,"read from private field"),t.get(e)),Au=(e,t,n)=>t.has(e)?Pi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ru=(e,t,n,r)=>(Sl(e,t,"write to private field"),t.set(e,n),n),Ze=class bs{constructor(t,n){this.x=t,this.y=n}static delta(t,n){return new bs(t.x-n.x,t.y-n.y)}static distance(t,n){return Math.hypot(t.x-n.x,t.y-n.y)}static equals(t,n){return t.x===n.x&&t.y===n.y}static from({x:t,y:n}){return new bs(t,n)}},dt=class jt{constructor(t,n,r,i){this.left=t,this.top=n,this.width=r,this.height=i,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:s,height:o,scale:a}=this,l=new jt(i+t,r+n,s,o);return l.scale=Tu({},a),l}get boundingRectangle(){const{width:t,height:n,left:r,top:i,right:s,bottom:o}=this;return{width:t,height:n,left:r,top:i,right:s,bottom:o}}get center(){const{left:t,top:n,right:r,bottom:i}=this;return new Ze((t+r)/2,(n+i)/2)}get area(){const{width:t,height:n}=this;return t*n}equals(t){if(!(t instanceof jt))return!1;const{left:n,top:r,width:i,height:s}=this;return n===t.left&&r===t.top&&i===t.width&&s===t.height}containsPoint(t){const{top:n,left:r,bottom:i,right:s}=this;return n<=t.y&&t.y<=i&&r<=t.x&&t.x<=s}intersectionArea(t){return t instanceof jt?Lu(this,t):0}intersectionRatio(t){const{area:n}=this,r=this.intersectionArea(t);return r/(t.area+n-r)}get bottom(){const{top:t,height:n}=this;return t+n}get right(){const{left:t,width:n}=this;return t+n}get aspectRatio(){const{width:t,height:n}=this;return t/n}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 jt(n,t,r,i)}static delta(t,n,r={x:"center",y:"center"}){const i=(s,o)=>{const a=r[o],l=o==="x"?s.left:s.top,u=o==="x"?s.width:s.height;return a=="start"?l:a=="end"?l+u:l+u/2};return Ze.delta({x:i(t,"x"),y:i(t,"y")},{x:i(n,"x"),y:i(n,"y")})}static intersectionRatio(t,n){return jt.from(t).intersectionRatio(jt.from(n))}};function Lu(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),s=Math.min(t.top+t.height,e.top+e.height),o=i-r,a=s-n;return r<i&&n<s?o*a:0}var $l,El,xs,Xr,Er,Mi=class extends(xs=Kt,El=[ge],$l=[ge],xs){constructor(t){const n=Ze.from(t);super(n,(r,i)=>Ze.equals(r,i)),Iu(Er,5,this),Au(this,Xr,0),this.velocity={x:0,y:0}}get delta(){return Ze.delta(this.current,this.initial)}get direction(){const{current:t,previous:n}=this;if(!n)return null;const r={x:t.x-n.x,y:t.y-n.y};return!r.x&&!r.y?null:Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up"}get current(){return super.current}set current(t){const{current:n}=this,r=Ze.from(t),i={x:r.x-n.x,y:r.y-n.y},s=Date.now(),o=s-ju(this,Xr),a=l=>Math.round(l/o*100);ue(()=>{Ru(this,Xr,s),this.velocity={x:a(i.x),y:a(i.y)},super.current=r})}reset(t=this.defaultValue){super.reset(Ze.from(t)),this.velocity={x:0,y:0}}};Er=Cu(xs);Xr=new WeakMap;kl(Er,2,"delta",El,Mi);kl(Er,2,"direction",$l,Mi);Mu(Er,Mi);function ws({x:e,y:t},n){const r=Math.abs(e),i=Math.abs(t);return typeof n=="number"?Math.sqrt(ua(r,2)+ua(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:!1}var Ol=(e=>(e.Horizontal="x",e.Vertical="y",e))(Ol||{}),Dl=Object.values(Ol),Wu=Object.create,oo=Object.defineProperty,zu=Object.defineProperties,Fu=Object.getOwnPropertyDescriptor,Nu=Object.getOwnPropertyDescriptors,hi=Object.getOwnPropertySymbols,Tl=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable,Pl=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Cn=e=>{throw TypeError(e)},_s=(e,t,n)=>t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ao=(e,t)=>{for(var n in t||(t={}))Tl.call(t,n)&&_s(e,n,t[n]);if(hi)for(var n of hi(t))Cl.call(t,n)&&_s(e,n,t[n]);return e},lo=(e,t)=>zu(e,Nu(t)),fa=(e,t)=>oo(e,"name",{value:t,configurable:!0}),Ml=(e,t)=>{var n={};for(var r in e)Tl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&hi)for(var r of hi(e))t.indexOf(r)<0&&Cl.call(e,r)&&(n[r]=e[r]);return n},Pn=e=>{var t;return[,,,Wu((t=e?.[Pl("metadata")])!=null?t:null)]},Il=["class","method","getter","setter","accessor","field","value","get","set"],Kn=e=>e!==void 0&&typeof e!="function"?Cn("Function expected"):e,Bu=(e,t,n,r,i)=>({kind:Il[e],name:t,metadata:r,addInitializer:s=>n._?Cn("Already initialized"):i.push(Kn(s||null))}),Yt=(e,t)=>_s(t,Pl("metadata"),e[3]),N=(e,t,n,r)=>{for(var i=0,s=e[t>>1],o=s&&s.length;i<o;i++)t&1?s[i].call(n):r=s[i].call(n,r);return r},q=(e,t,n,r,i,s)=>{var o,a,l,u,c,d=t&7,h=!!(t&8),f=!!(t&16),g=d>3?e.length+1:d?h?1:2:0,v=Il[d+5],w=d>3&&(e[g-1]=[]),x=e[g]||(e[g]=[]),m=d&&(!f&&!h&&(i=i.prototype),d<5&&(d>3||!f)&&Fu(d<4?i:{get[n](){return pe(this,s)},set[n](b){return qe(this,s,b)}},n));d?f&&d<4&&fa(s,(d>2?"set ":d>1?"get ":"")+n):fa(i,n);for(var p=r.length-1;p>=0;p--)u=Bu(d,n,l={},e[3],x),d&&(u.static=h,u.private=f,c=u.access={has:f?b=>Vu(i,b):b=>n in b},d^3&&(c.get=f?b=>(d^1?pe:jl)(b,i,d^4?s:m.get):b=>b[n]),d>2&&(c.set=f?(b,_)=>qe(b,i,_,d^4?s:m.set):(b,_)=>b[n]=_)),a=(0,r[p])(d?d<4?f?s:m[v]:d>4?void 0:{get:m.get,set:m.set}:i,u),l._=1,d^4||a===void 0?Kn(a)&&(d>4?w.unshift(a):d?f?s=a:m[v]=a:i=a):typeof a!="object"||a===null?Cn("Object expected"):(Kn(o=a.get)&&(m.get=o),Kn(o=a.set)&&(m.set=o),Kn(o=a.init)&&w.unshift(o));return d||Yt(e,i),m&&oo(i,n,m),f?d^4?s:m:i},co=(e,t,n)=>t.has(e)||Cn("Cannot "+n),Vu=(e,t)=>Object(t)!==t?Cn('Cannot use the "in" operator on this value'):e.has(t),pe=(e,t,n)=>(co(e,t,"read from private field"),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?Cn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qe=(e,t,n,r)=>(co(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),jl=(e,t,n)=>(co(e,t,"access private method"),n);function Al(e,t){return{plugin:e,options:t}}function Or(e){return t=>Al(e,t)}function gr(e){return typeof e=="function"?{plugin:e,options:void 0}:e}var Rl,vr,uo,Qr;Rl=[H];var Me=class{constructor(e,t){this.manager=e,this.options=t,J(this,uo,N(vr,8,this,!1)),N(vr,11,this),J(this,Qr,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return U(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=tt(e.bind(this));return pe(this,Qr).add(t),t}destroy(){pe(this,Qr).forEach(e=>e())}static configure(e){return Al(this,e)}};vr=Pn(null);uo=new WeakMap;Qr=new WeakMap;q(vr,4,"disabled",Rl,Me,uo);Yt(vr,Me);var Dr=class extends Me{},Zr,Qi=class{constructor(e){this.manager=e,this.instances=new Map,J(this,Zr,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(gr).reduce((r,i)=>{const s=r.find(({plugin:o})=>o===i.plugin);return s?(s.options=i.options,r):[...r,i]},[]),n=t.map(({plugin:r})=>r);for(const r of pe(this,Zr))if(!n.includes(r)){if(r.prototype instanceof Dr)continue;this.unregister(r)}for(const{plugin:r,options:i}of t)this.register(r,i);qe(this,Zr,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()}};Zr=new WeakMap;function Gu(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}var Wr=[],an,ln,Uu=class extends Me{constructor(e){super(e),J(this,an),J(this,ln),this.computeCollisions=this.computeCollisions.bind(this),qe(this,ln,En(Wr)),this.destroy=$r(()=>{const t=this.computeCollisions(),n=U(()=>this.manager.dragOperation.position.current);if(t!==Wr){const r=pe(this,an);if(qe(this,an,n),r&&n.x==r.x&&n.y==r.y)return}else qe(this,an,void 0);pe(this,ln).value=t},()=>{const{dragOperation:t}=this.manager;t.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){U(()=>{e?pe(this,ln).value=this.computeCollisions():qe(this,an,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:i,shape:s,status:o}=r;if(!o.initialized||!s)return Wr;const a=[],l=[];for(const u of e??n.droppables){if(u.disabled||i&&!u.accepts(i))continue;const c=t??u.collisionDetector;if(!c)continue;l.push(u),u.shape;const d=U(()=>c({droppable:u,dragOperation:r}));d&&(u.collisionPriority!=null&&(d.priority=u.collisionPriority),a.push(d))}return l.length===0?Wr:(a.sort(Gu),a)}get collisions(){return pe(this,ln).value}};an=new WeakMap;ln=new WeakMap;var Ll,Wl,zl,fo,Fl,it,ho,pn,po,go;zl=[H],Wl=[H],Ll=[H];var yt=class At{constructor(t,n){J(this,ho,N(it,8,this)),N(it,11,this),J(this,pn),J(this,po,N(it,12,this)),N(it,15,this),J(this,go,N(it,16,this)),N(it,19,this);const{effects:r,id:i,data:s={},disabled:o=!1,register:a=!0}=t;let l=i;qe(this,pn,En(i)),this.manager=n,this.data=s,this.disabled=o,this.effects=()=>{var u;return[()=>{const{id:c,manager:d}=this;if(c!==l)return l=c,d?.registry.register(this),()=>d?.registry.unregister(this)},...(u=r?.())!=null?u:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),n&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=pe(this,pn).value;return(n=(t=At.pendingIdChanges)==null?void 0:t.get(this))!=null?n:r}set id(t){var n,r;const i=(r=(n=At.pendingIdChanges)==null?void 0:n.get(this))!=null?r:pe(this,pn).peek();t!==i&&(At.pendingIdChanges||(At.pendingIdChanges=new Map,queueMicrotask(()=>{var s;return jl(s=At,fo,Fl).call(s)})),At.pendingIdChanges.set(this,t))}register(){var t;return(t=this.manager)==null?void 0:t.registry.register(this)}unregister(){var t;(t=this.manager)==null||t.registry.unregister(this)}destroy(){var t;(t=this.manager)==null||t.registry.unregister(this)}};it=Pn(null);fo=new WeakSet;Fl=function(){const e=yt.pendingIdChanges;yt.pendingIdChanges=null,e&&ue(()=>{for(const[t,n]of e)pe(t,pn).value=n})};ho=new WeakMap;pn=new WeakMap;po=new WeakMap;go=new WeakMap;q(it,4,"manager",zl,yt,ho);q(it,4,"data",Wl,yt,po);q(it,4,"disabled",Ll,yt,go);J(yt,fo);Yt(it,yt);yt.pendingIdChanges=null;var Ii=yt,ha=class{constructor(){this.map=En(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 a=this.cleanupFunctions.get(r);a?.(),this.cleanupFunctions.delete(r)}const s=new Map(n);for(const[a,l]of n)if(l===t&&a!==e){s.delete(a);break}s.set(e,t),this.map.value=s;const o=$r(...t.effects());return this.cleanupFunctions.set(t,o),i},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);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);t?.(),e.destroy()}this.map.value=new Map}},Nl,Bl,Vl,Gl,Ul,Hl,ks,je,vo,mo,yo,ut=class extends(ks=Ii,Hl=[H],Ul=[H],Gl=[H],Vl=[ge],Bl=[ge],Nl=[ge],ks){constructor(t,n){var r=t,{modifiers:i,type:s,sensors:o,plugins:a,effects:l}=r,u=Ml(r,["modifiers","type","sensors","plugins","effects"]);super(lo(ao({},u),{effects:()=>{var c;return[...(c=l?.())!=null?c:[],()=>{const{manager:d,plugins:h}=this;if(!(!d||!h))for(const f of h){const{plugin:g}=gr(f);d.registry.plugins.register(g)}}]}}),n),N(je,5,this),J(this,vo,N(je,8,this)),N(je,11,this),J(this,mo,N(je,12,this)),N(je,15,this),J(this,yo,N(je,16,this,this.isDragSource?"dragging":"idle")),N(je,19,this),this.type=s,this.sensors=o,this.modifiers=i,this.alignment=u.alignment,this.plugins=a}pluginConfig(t){if(this.plugins)for(const n of this.plugins){const r=gr(n);if(r.plugin===t)return r.options}}get isDropping(){return this.status==="dropping"&&this.isDragSource}get isDragging(){return this.status==="dragging"&&this.isDragSource}get isDragSource(){var t,n;return((n=(t=this.manager)==null?void 0:t.dragOperation.source)==null?void 0:n.id)===this.id}};je=Pn(ks);vo=new WeakMap;mo=new WeakMap;yo=new WeakMap;q(je,4,"type",Hl,ut,vo);q(je,4,"modifiers",Ul,ut,mo);q(je,4,"status",Gl,ut,yo);q(je,2,"isDropping",Vl,ut);q(je,2,"isDragging",Bl,ut);q(je,2,"isDragSource",Nl,ut);Yt(je,ut);var ql,Kl,Yl,Xl,Ql,Zl,Ss,xe,bo,xo,wo,_o,ko,ft=class extends(Ss=Ii,Zl=[H],Ql=[H],Xl=[H],Yl=[H],Kl=[H],ql=[ge],Ss){constructor(t,n){var r=t,{accept:i,collisionDetector:s,collisionPriority:o,type:a}=r,l=Ml(r,["accept","collisionDetector","collisionPriority","type"]);super(l,n),N(xe,5,this),J(this,bo,N(xe,8,this)),N(xe,11,this),J(this,xo,N(xe,12,this)),N(xe,15,this),J(this,wo,N(xe,16,this)),N(xe,19,this),J(this,_o,N(xe,20,this)),N(xe,23,this),J(this,ko,N(xe,24,this)),N(xe,27,this),this.accept=i,this.collisionDetector=s,this.collisionPriority=o,this.type=a}accepts(t){const{accept:n}=this;return n?typeof n=="function"?n(t):t.type?Array.isArray(n)?n.includes(t.type):t.type===n:!1:!0}get isDropTarget(){var t,n;return((n=(t=this.manager)==null?void 0:t.dragOperation.target)==null?void 0:n.id)===this.id}};xe=Pn(Ss);bo=new WeakMap;xo=new WeakMap;wo=new WeakMap;_o=new WeakMap;ko=new WeakMap;q(xe,4,"accept",Zl,ft,bo);q(xe,4,"type",Ql,ft,xo);q(xe,4,"collisionDetector",Xl,ft,wo);q(xe,4,"collisionPriority",Yl,ft,_o);q(xe,4,"shape",Kl,ft,ko);q(xe,2,"isDropTarget",ql,ft);Yt(xe,ft);var Hu=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 i of r)i(...t)}},qu=class extends Hu{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function Jr(e,t=!0){let n=!1;return lo(ao({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var Ku=class extends Dr{constructor(e){super(e);const t=(r,i)=>r.map(({id:s})=>s).join("")===i.map(({id:s})=>s).join("");let n=[];this.destroy=$r(()=>{const{dragOperation:r,collisionObserver:i}=e;r.status.initializing&&(n=[],i.enable())},()=>{const{collisionObserver:r,monitor:i}=e,{collisions:s}=r;if(r.isDisabled()||Ii.pendingIdChanges)return;const o=Jr({collisions:s});if(i.dispatch("collision",o),o.defaultPrevented||t(s,n))return;n=s;const[a]=s;U(()=>{var l;a?.id!==((l=e.dragOperation.target)==null?void 0:l.id)&&(r.disable(),e.actions.setDropTarget(a?.id).then(()=>{r.enable()}))})})}},Mn=(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))(Mn||{}),In=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(In||{}),Jl,ec,tc,nc,rc,ic,sc,et,So;sc=[H],ic=[ge],rc=[ge],nc=[ge],tc=[ge],ec=[ge],Jl=[ge];var bt=class{constructor(){N(et,5,this),J(this,So,N(et,8,this,"idle")),N(et,11,this)}get current(){return this.value}get idle(){return this.value==="idle"}get initializing(){return this.value==="initializing"}get initialized(){const{value:e}=this;return e!=="idle"&&e!=="initialization-pending"}get dragging(){return this.value==="dragging"}get dropped(){return this.value==="dropped"}set(e){this.value=e}};et=Pn(null);So=new WeakMap;q(et,4,"value",sc,bt,So);q(et,2,"current",ic,bt);q(et,2,"idle",rc,bt);q(et,2,"initializing",nc,bt);q(et,2,"initialized",tc,bt);q(et,2,"dragging",ec,bt);q(et,2,"dropped",Jl,bt);Yt(et,bt);var Yu=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier=typeof e=="string"||typeof e=="number"?e:e.id}setDropTarget(e){return U(()=>{const{dragOperation:t}=this.manager,n=e??null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=Jr({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return U(()=>{const{dragOperation:t}=this.manager;if(e.source!=null&&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 r=new AbortController,{event:i,coordinates:s}=e;ue(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=i??null,t.position.reset(s)});const o=Jr({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",o),o.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:a}=t;a.current==="initializing"&&ue(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:i,operation:t.snapshot(),cancelable:!1})})}),r)})}move(e){return U(()=>{var t,n;const{dragOperation:r}=this.manager,{status:i,controller:s}=r;if(!i.dragging||!s||s.signal.aborted)return;const o=Jr({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},(t=e.cancelable)!=null?t:!0);((n=e.propagate)==null||n)&&this.manager.monitor.dispatch("dragmove",o),queueMicrotask(()=>{var a,l,u,c,d;if(o.defaultPrevented)return;const h=(d=e.to)!=null?d:{x:r.position.current.x+((l=(a=e.by)==null?void 0:a.x)!=null?l:0),y:r.position.current.y+((c=(u=e.by)==null?void 0:u.y)!=null?c:0)};r.position.current=h})})}stop(e={}){return U(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:i}=r;if(!i||i.signal.aborted)return;let s;const o=()=>{const l={resume:()=>{},abort:()=>{}};return s=new Promise((u,c)=>{l.resume=u,l.abort=c}),l};i.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const l=U(()=>{var c;return((c=r.source)==null?void 0:c.status)==="dropping"}),u=()=>{r.controller===i&&(r.controller=void 0),r.reset()};if(l){const{source:c}=r,d=tt(()=>{c?.status==="idle"&&(d(),u())})}else this.manager.renderer.rendering.then(u)})};r.canceled=(t=e.canceled)!=null?t:!1,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:(n=e.canceled)!=null?n:!1,suspend:o}),s?s.then(a).catch(()=>r.reset()):a()})}},bn=class extends Me{constructor(e,t){super(e,t),this.manager=e,this.options=t}},Xu=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const n of e??[])n.controller=this}onEvent(e){var t;if(!this.activated)if((t=this.constraints)!=null&&t.length)for(const n of this.constraints)n.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},ei,oc=class{constructor(e){this.options=e,J(this,ei)}set controller(e){qe(this,ei,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;(t=pe(this,ei))==null||t.activate(e)}};ei=new WeakMap;var pa=class extends Me{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},Qu=class{constructor(e){this.draggables=new ha,this.droppables=new ha,this.plugins=new Qi(e),this.sensors=new Qi(e),this.modifiers=new Qi(e)}register(e,t){if(e instanceof ut)return this.draggables.register(e.id,e);if(e instanceof ft)return this.droppables.register(e.id,e);if(e.prototype instanceof pa)return this.modifiers.register(e,t);if(e.prototype instanceof bn)return this.sensors.register(e,t);if(e.prototype instanceof Me)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof Ii)return e instanceof ut?this.draggables.unregister(e.id,e):e instanceof ft?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof pa)return this.modifiers.unregister(e);if(e.prototype instanceof bn)return this.sensors.unregister(e);if(e.prototype instanceof Me)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()}},ac,lc,cc,dc,uc,fc,hc,pc,gc,Yn,ti,cn,ce,$o,Eo,Oo,Do,To,Xn;gc=[ge],pc=[H],hc=[H],fc=[H],uc=[H],dc=[H],cc=[ge],lc=[ge],ac=[ge];var ot=class{constructor(e){N(ce,5,this),J(this,Yn),J(this,ti),J(this,cn,new Kt(void 0,(t,n)=>t&&n?t.equals(n):t===n)),this.status=new bt,J(this,$o,N(ce,8,this,!1)),N(ce,11,this),J(this,Eo,N(ce,12,this,null)),N(ce,15,this),J(this,Oo,N(ce,16,this,null)),N(ce,19,this),J(this,Do,N(ce,20,this,null)),N(ce,23,this),J(this,To,N(ce,24,this,[])),N(ce,27,this),this.position=new Mi({x:0,y:0}),J(this,Xn,{x:0,y:0}),qe(this,Yn,e)}get shape(){const{current:e,initial:t,previous:n}=pe(this,cn);return!e||!t?null:{current:e,initial:t,previous:n}}set shape(e){e?pe(this,cn).current=e:pe(this,cn).reset()}get source(){var e;const t=this.sourceIdentifier;if(t==null)return null;const n=pe(this,Yn).registry.draggables.get(t);return n&&qe(this,ti,n),(e=n??pe(this,ti))!=null?e:null}get target(){var e;const t=this.targetIdentifier;return t!=null&&(e=pe(this,Yn).registry.droppables.get(t))!=null?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const r of this.modifiers)n=r.apply(lo(ao({},this.snapshot()),{transform:n}));return qe(this,Xn,n),n}snapshot(){return U(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:pe(this,Xn),shape:this.shape?Xi(this.shape):null,position:Xi(this.position),status:Xi(this.status),canceled:this.canceled}))}reset(){ue(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,pe(this,cn).reset(),this.position.reset({x:0,y:0}),qe(this,Xn,{x:0,y:0}),this.modifiers=[]})}};ce=Pn(null);Yn=new WeakMap;ti=new WeakMap;cn=new WeakMap;$o=new WeakMap;Eo=new WeakMap;Oo=new WeakMap;Do=new WeakMap;To=new WeakMap;Xn=new WeakMap;q(ce,2,"shape",gc,ot);q(ce,4,"canceled",pc,ot,$o);q(ce,4,"activatorEvent",hc,ot,Eo);q(ce,4,"sourceIdentifier",fc,ot,Oo);q(ce,4,"targetIdentifier",uc,ot,Do);q(ce,4,"modifiers",dc,ot,To);q(ce,2,"source",cc,ot);q(ce,2,"target",lc,ot);q(ce,2,"transform",ac,ot);Yt(ce,ot);var Zu={get rendering(){return Promise.resolve()}};function st(e,t){return typeof e=="function"?e(t):e??t}var Ju=class{constructor(t){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(h=>h.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};var n;const r=t??{},i=st(r.plugins,[]),s=st(r.sensors,[]),o=st(r.modifiers,[]),a=(n=r.renderer)!=null?n:Zu,l=new qu(this),u=new Qu(this);this.registry=u,this.monitor=l,this.renderer=a,this.actions=new Yu(this),this.dragOperation=new ot(this),this.collisionObserver=new Uu(this),this.plugins=[Ku,...i],this.modifiers=o,this.sensors=s;const{destroy:c}=this,d=$r(()=>{var h,f,g;const v=U(()=>this.dragOperation.modifiers),w=this.modifiers;for(const x of v)w.includes(x)||x.destroy();this.dragOperation.modifiers=(g=(f=(h=this.dragOperation.source)==null?void 0:h.modifiers)==null?void 0:f.map(x=>{const{plugin:m,options:p}=gr(x);return new m(this,p)}))!=null?g:w});this.destroy=()=>{d(),c()}}get plugins(){return this.registry.plugins.values}set plugins(t){this.registry.plugins.values=t}get modifiers(){return this.registry.modifiers.values}set modifiers(t){this.registry.modifiers.values=t}get sensors(){return this.registry.sensors.values}set sensors(t){this.registry.sensors.values=t}},vc=e=>{throw TypeError(e)},Co=(e,t,n)=>t.has(e)||vc("Cannot "+n),F=(e,t,n)=>(Co(e,t,"read from private field"),t.get(e)),Ne=(e,t,n)=>t.has(e)?vc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),He=(e,t,n,r)=>(Co(e,t,"write to private field"),t.set(e,n),n),mc=(e,t,n)=>(Co(e,t,"access private method"),n);function ji(e){return e?e instanceof KeyframeEffect?!0:"getKeyframes"in e&&typeof e.getKeyframes=="function":!1}function yc(e,t){const n=e.getAnimations();let r=null;for(const i of n){if(i.playState!=="running")continue;const{effect:s}=i,a=(ji(s)?s.getKeyframes():[]).filter(t);a.length>0&&(r=[a[a.length-1],i])}return r}function Ai(e){const{width:t,height:n,top:r,left:i,bottom:s,right:o}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:s,right:o}}function Po(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Tr(e){return"nodeType"in e}function Ke(e){var t,n,r;return e?Po(e)?e:Tr(e)?"defaultView"in e?(t=e.defaultView)!=null?t:window:(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window:window:window}function Mo(e){const{Document:t}=Ke(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function Dt(e){return!e||Po(e)?!1:e instanceof Ke(e).HTMLElement||"namespaceURI"in e&&typeof e.namespaceURI=="string"&&e.namespaceURI.endsWith("html")}function bc(e){return e instanceof Ke(e).SVGElement||"namespaceURI"in e&&typeof e.namespaceURI=="string"&&e.namespaceURI.endsWith("svg")}function jn(e){return e?Po(e)?e.document:Tr(e)?Mo(e)?e:Dt(e)||bc(e)?e.ownerDocument:document:document:document}function ef(e){var t,n,r,i;const{documentElement:s}=jn(e),o=Ke(e).visualViewport,a=(t=o?.width)!=null?t:s.clientWidth,l=(n=o?.height)!=null?n:s.clientHeight,u=(r=o?.offsetTop)!=null?r:0,c=(i=o?.offsetLeft)!=null?i:0;return{top:u,left:c,right:c+a,bottom:u+l,width:a,height:l}}function tf(e,t){if(nf(e)&&e.open===!1)return!1;const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return n==="visible"&&r==="visible"&&i==="visible"}function nf(e){return e.tagName==="DETAILS"}function mr(e,t=e.getBoundingClientRect(),n=0){var r,i,s,o,a;let l=t;const{ownerDocument:u}=e,c=(r=u.defaultView)!=null?r:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!tf(d)){const p=d.getBoundingClientRect(),b=n*(p.bottom-p.top),_=n*(p.right-p.left),$=n*(p.bottom-p.top),O=n*(p.right-p.left);l={top:Math.max(l.top,p.top-b),right:Math.min(l.right,p.right+_),bottom:Math.min(l.bottom,p.bottom+$),left:Math.max(l.left,p.left-O),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const h=c.visualViewport,f=(i=h?.offsetTop)!=null?i:0,g=(s=h?.offsetLeft)!=null?s:0,v=(o=h?.width)!=null?o:c.innerWidth,w=(a=h?.height)!=null?a:c.innerHeight,x=n*w,m=n*v;return l={top:Math.max(l.top,f-x),right:Math.min(l.right,g+v+m),bottom:Math.min(l.bottom,f+w+x),left:Math.max(l.left,g-m),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}function xn(e){return{x:e.clientX,y:e.clientY}}var xc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $s(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const i=r.contentDocument;i&&!t.has(i)&&n.push(...$s(i,t))}catch{}try{const r=e.defaultView;if(r&&r!==window.top){const i=r.parent;i&&i.document&&i.document!==e&&n.push(...$s(i.document,t))}}catch{}return n}function Io(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function wc(){var e,t;const n=Io()?window.visualViewport:null;return{x:(e=n?.offsetLeft)!=null?e:0,y:(t=n?.offsetTop)!=null?t:0}}function jo(e){return!e||!Tr(e)?!1:e instanceof Ke(e).ShadowRoot}function pi(e){if(e&&Tr(e)){let t=e.getRootNode();if(jo(t))return t;if(t instanceof Document)return t}return jn(e)}function Ao(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function rf(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((s,o)=>{const a=r[o];if(ga(s)&&ga(a)&&(s.type!=="file"&&(s.value=a.value),s.type==="radio"&&s.name&&(s.name=`Cloned__${s.name}`)),va(s)&&va(a)&&a.width>0&&a.height>0){const l=s.getContext("2d");l?.drawImage(a,0,0)}}),n}function ga(e){return"value"in e}function va(e){return e.tagName==="CANVAS"}function _c(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(sf(r)){const{contentDocument:i}=r;if(i){const{left:s,top:o}=r.getBoundingClientRect();return _c(i,{x:t-s,y:n-o})}}return r}function sf(e){return e?.tagName==="IFRAME"}var Es=new WeakMap;function of(e){return e.closest(`
|
|
2
2
|
input:not([disabled]),
|
|
3
3
|
select:not([disabled]),
|
|
4
4
|
textarea:not([disabled]),
|
package/dist/builder/index.es.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsxs as T, jsx as x, Fragment as Ge } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect as Xe, useRef as ue, useLayoutEffect as Ou, useMemo as se, useState as L, useCallback as Ce, createContext as Eu, memo as Du, useInsertionEffect as Cu, forwardRef as Pu, startTransition as Tu, useImperativeHandle as Mu, useContext as Iu, createElement as Au } from "react";
|
|
3
3
|
import { flushSync as Ru } from "react-dom";
|
|
4
4
|
import { Button as $e, Divider as $s, Tooltip as Cn, IconButton as Os, Chip as wo, Stack as me, Typography as ne, TextField as We, MenuItem as $t, Box as be, List as Lu, ListItemButton as zu, ListItemText as El, Checkbox as Es, ToggleButtonGroup as Wu, ToggleButton as $a, Autocomplete as Fu, Popover as Dl, FormControlLabel as Nu, Switch as ju, Alert as Gt } from "@mui/material";
|
|
5
|
-
import { e as sn, f as Cl, A as Pl, g as Bi, S as Tl, G as di, T as Vu, h as Gu, t as Bu, i as Ds, j as Uu, n as On, k as Hu, l as qu, o as Ku, p as Yu, u as Xu, q as ui, s as Oa, v as Qu, L as Zu, C as Ju, w as ef, x as tf, y as nf, z as rf, B as sf } from "../DocumentStorage-
|
|
6
|
-
import { aE as ct, u as Ml } from "../ServerProvider-
|
|
5
|
+
import { e as sn, f as Cl, A as Pl, g as Bi, S as Tl, G as di, T as Vu, h as Gu, t as Bu, i as Ds, j as Uu, n as On, k as Hu, l as qu, o as Ku, p as Yu, u as Xu, q as ui, s as Oa, v as Qu, L as Zu, C as Ju, w as ef, x as tf, y as nf, z as rf, B as sf } from "../DocumentStorage-BZqn0x5r.es.js";
|
|
6
|
+
import { aE as ct, u as Ml } from "../ServerProvider-CfUFleYe.es.js";
|
|
7
7
|
import { useQueryClient as of } from "@tanstack/react-query";
|
|
8
8
|
var af = Symbol.for("preact-signals");
|
|
9
9
|
function Ui() {
|
package/dist/client/api.d.ts
CHANGED
|
@@ -1982,6 +1982,12 @@ export interface ModelError {
|
|
|
1982
1982
|
* @memberof ModelError
|
|
1983
1983
|
*/
|
|
1984
1984
|
'reason'?: string;
|
|
1985
|
+
/**
|
|
1986
|
+
* Present on the 400 answering ad-hoc query text that does not compile: the compiler\'s problems, in the shape `/compile` returns. Each `at.range` is located in the submitted `query` text, with 0-based lines and characters; `at.url` is omitted, since the text has no document of its own. A problem produced by something the server added to the text (an injected source filter) carries no location.
|
|
1987
|
+
* @type {Array<CompileProblem>}
|
|
1988
|
+
* @memberof ModelError
|
|
1989
|
+
*/
|
|
1990
|
+
'problems'?: Array<CompileProblem>;
|
|
1985
1991
|
}
|
|
1986
1992
|
/**
|
|
1987
1993
|
* The text to write into a dashboard file
|
|
@@ -5553,7 +5559,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
5553
5559
|
*/
|
|
5554
5560
|
compileModelSource: (environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5555
5561
|
/**
|
|
5556
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
5562
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
5557
5563
|
* @summary Execute Malloy query
|
|
5558
5564
|
* @param {string} environmentName Name of the environment
|
|
5559
5565
|
* @param {string} packageName Name of the package
|
|
@@ -5614,7 +5620,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
5614
5620
|
*/
|
|
5615
5621
|
compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompileResult>>;
|
|
5616
5622
|
/**
|
|
5617
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
5623
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
5618
5624
|
* @summary Execute Malloy query
|
|
5619
5625
|
* @param {string} environmentName Name of the environment
|
|
5620
5626
|
* @param {string} packageName Name of the package
|
|
@@ -5675,7 +5681,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
5675
5681
|
*/
|
|
5676
5682
|
compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): AxiosPromise<CompileResult>;
|
|
5677
5683
|
/**
|
|
5678
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
5684
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
5679
5685
|
* @summary Execute Malloy query
|
|
5680
5686
|
* @param {string} environmentName Name of the environment
|
|
5681
5687
|
* @param {string} packageName Name of the package
|
|
@@ -5739,7 +5745,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
5739
5745
|
*/
|
|
5740
5746
|
compileModelSource(environmentName: string, packageName: string, path: string, compileRequest: CompileRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<CompileResult, any, {}>>;
|
|
5741
5747
|
/**
|
|
5742
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
5748
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
5743
5749
|
* @summary Execute Malloy query
|
|
5744
5750
|
* @param {string} environmentName Name of the environment
|
|
5745
5751
|
* @param {string} packageName Name of the package
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as i, C as o, b as n, c as t, aC as r, e as p, f as u, d as A, O as m, I as c, K as E, J as l, X as C, U as y, W as P, V as F, $ as b, Y as g, _ as d, Z as S, D as k, a3 as M, a0 as h, a2 as x, a1 as v, h as D, a7 as T, a4 as R, a6 as f, a5 as z, ab as N, a8 as Q, aa as W, a9 as B, ap as O, F as I, i as L, G as q, L as w, j, k as G, M as H, l as J, ag as K, m as U, af as V, ac as X, ae as Y, ad as Z, ak as _, ah as $, aj as aa, ai as sa, n as ea, N as ia, ao as oa, al as na, an as ta, am as ra, q as pa, p as ua, o as Aa, P as ma, r as ca, s as Ea, at as la, aq as Ca, as as ya, ar as Pa, t as Fa, v as ba, ax as ga, au as da, aw as Sa, av as ka, Q as Ma, w as ha, x as xa, R as va, z as Da, y as Ta, B as Ra, E as fa, S as za, H as Na, T as Qa, aB as Wa, ay as Ba, aA as Oa, az as Ia, g as La, u as qa } from "../ServerProvider-
|
|
1
|
+
import { A as e, a as i, C as o, b as n, c as t, aC as r, e as p, f as u, d as A, O as m, I as c, K as E, J as l, X as C, U as y, W as P, V as F, $ as b, Y as g, _ as d, Z as S, D as k, a3 as M, a0 as h, a2 as x, a1 as v, h as D, a7 as T, a4 as R, a6 as f, a5 as z, ab as N, a8 as Q, aa as W, a9 as B, ap as O, F as I, i as L, G as q, L as w, j, k as G, M as H, l as J, ag as K, m as U, af as V, ac as X, ae as Y, ad as Z, ak as _, ah as $, aj as aa, ai as sa, n as ea, N as ia, ao as oa, al as na, an as ta, am as ra, q as pa, p as ua, o as Aa, P as ma, r as ca, s as Ea, at as la, aq as Ca, as as ya, ar as Pa, t as Fa, v as ba, ax as ga, au as da, aw as Sa, av as ka, Q as Ma, w as ha, x as xa, R as va, z as Da, y as Ta, B as Ra, E as fa, S as za, H as Na, T as Qa, aB as Wa, ay as Ba, aA as Oa, az as Ia, g as La, u as qa } from "../ServerProvider-CfUFleYe.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AttachedDatabaseTypeEnum,
|
|
4
4
|
i as AzureConnectionAuthTypeEnum,
|
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
* as written. The model is fetched here rather than inside the explorer so
|
|
8
8
|
* the tile's source can be selected before it renders.
|
|
9
9
|
*/
|
|
10
|
-
export declare function ExploreDialog({ tile, environmentName, packageName, versionId, modelPath, onClose, }: {
|
|
10
|
+
export declare function ExploreDialog({ tile, environmentName, packageName, versionId, modelPath, givens, onClose, }: {
|
|
11
11
|
/** The tile expression to open, or undefined when closed. */
|
|
12
12
|
tile: string | undefined;
|
|
13
13
|
environmentName: string;
|
|
14
14
|
packageName: string;
|
|
15
15
|
versionId?: string;
|
|
16
16
|
modelPath: string;
|
|
17
|
+
/** The dashboard's current control values, to seed the explorer's own. */
|
|
18
|
+
givens?: Record<string, string>;
|
|
17
19
|
onClose: () => void;
|
|
18
20
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { QueryExplorerResult } from './SourcesExplorer';
|
|
2
|
-
interface ModelProps {
|
|
2
|
+
export interface ModelProps {
|
|
3
3
|
onChange?: (query: QueryExplorerResult) => void;
|
|
4
4
|
resourceUri: string;
|
|
5
5
|
runOnDemand?: boolean;
|
|
6
6
|
maxResultSize?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Control values from the host, typically its URL query parameters. When
|
|
9
|
+
* omitted, `Model` holds them itself, so the embedded explorer and the
|
|
10
|
+
* maximized dialog still agree with each other.
|
|
11
|
+
*/
|
|
12
|
+
givens?: Record<string, string>;
|
|
13
|
+
/** Applied control values, for a host that wants them in its URL. */
|
|
14
|
+
onGivensChange?: (givens: Record<string, string>, managed: readonly string[]) => void;
|
|
7
15
|
}
|
|
8
|
-
export default function Model({ onChange, resourceUri, runOnDemand, maxResultSize, }: ModelProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
16
|
+
export default function Model({ onChange, resourceUri, runOnDemand, maxResultSize, givens, onGivensChange, }: ModelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,6 +11,26 @@ export interface ModelExplorerProps {
|
|
|
11
11
|
/** Callback when source selection changes */
|
|
12
12
|
onSourceChange?: (index: number) => void;
|
|
13
13
|
resourceUri: string;
|
|
14
|
+
/**
|
|
15
|
+
* Control values from the host, typically its URL query parameters. These
|
|
16
|
+
* beat the model's own starting values, so a shared link shows what the
|
|
17
|
+
* sender was looking at.
|
|
18
|
+
*/
|
|
19
|
+
givens?: Record<string, string>;
|
|
20
|
+
/**
|
|
21
|
+
* Applied control values, for a host that wants them in its URL.
|
|
22
|
+
*
|
|
23
|
+
* `managed` is every given this model declares, whether or not it currently
|
|
24
|
+
* holds a value, and a host writing to a shared query string needs it.
|
|
25
|
+
* `givens` alone says which parameters to write but not which to REMOVE, so
|
|
26
|
+
* a host that guesses by deleting everything it did not just receive
|
|
27
|
+
* deletes the unrelated parameters it has no business touching. Same
|
|
28
|
+
* contract as `Dashboard` and `Notebook`, so a host can treat every surface
|
|
29
|
+
* alike.
|
|
30
|
+
*/
|
|
31
|
+
onGivensChange?: (givens: Record<string, string>, managed: readonly string[]) => void;
|
|
32
|
+
/** Where the controls start, from the host, e.g. a dashboard tile's values. */
|
|
33
|
+
startingGivens?: Record<string, string>;
|
|
14
34
|
}
|
|
15
35
|
/**
|
|
16
36
|
* ModelExplorer renders the main explorer UI for a Malloy model. It shows the
|
|
@@ -18,4 +38,4 @@ export interface ModelExplorerProps {
|
|
|
18
38
|
* queries for that model. This logic was originally embedded inside `Model.tsx`
|
|
19
39
|
* but has been extracted for easier reuse.
|
|
20
40
|
*/
|
|
21
|
-
export declare function ModelExplorer({ data, onChange, existingQuery, initialSelectedSourceIndex, onSourceChange, resourceUri, }: ModelExplorerProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare function ModelExplorer({ data, onChange, existingQuery, initialSelectedSourceIndex, onSourceChange, resourceUri, givens, onGivensChange, startingGivens, }: ModelExplorerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,6 +11,9 @@ interface ModelExplorerDialogProps {
|
|
|
11
11
|
initialSelectedSourceIndex?: number;
|
|
12
12
|
onChange?: (query: QueryExplorerResult) => void;
|
|
13
13
|
onSourceChange?: (index: number) => void;
|
|
14
|
+
givens?: Record<string, string>;
|
|
15
|
+
onGivensChange?: (givens: Record<string, string>, managed: readonly string[]) => void;
|
|
16
|
+
startingGivens?: Record<string, string>;
|
|
14
17
|
}
|
|
15
|
-
export declare function ModelExplorerDialog({ open, onClose, resourceUri, data, title, hasValidImport, existingQuery, initialSelectedSourceIndex, onChange, onSourceChange, }: ModelExplorerDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function ModelExplorerDialog({ open, onClose, resourceUri, data, title, hasValidImport, existingQuery, initialSelectedSourceIndex, onChange, onSourceChange, givens, onGivensChange, startingGivens, }: ModelExplorerDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
16
19
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RunGate } from './runGate';
|
|
1
2
|
import * as Malloy from "@malloydata/malloy-interfaces";
|
|
2
3
|
export interface SourceAndPath {
|
|
3
4
|
modelPath: string;
|
|
@@ -10,6 +11,10 @@ export interface SourceExplorerProps {
|
|
|
10
11
|
onQueryChange?: (query: QueryExplorerResult) => void;
|
|
11
12
|
onSourceChange?: (index: number) => void;
|
|
12
13
|
resourceUri: string;
|
|
14
|
+
/** The control row's current values, sent with every Run. */
|
|
15
|
+
givens?: Record<string, unknown>;
|
|
16
|
+
/** What the control row leaves unset, for the words around a result or a refusal. */
|
|
17
|
+
gate?: RunGate;
|
|
13
18
|
}
|
|
14
19
|
/**
|
|
15
20
|
* Component for Exploring a set of sources.
|
|
@@ -18,12 +23,14 @@ export interface SourceExplorerProps {
|
|
|
18
23
|
* It is expected that multiple sourceInfo entries will correspond to the same
|
|
19
24
|
* model path.
|
|
20
25
|
*/
|
|
21
|
-
export declare function SourcesExplorer({ sourceAndPaths, selectedSourceIndex, existingQuery, onQueryChange, onSourceChange, resourceUri, }: SourceExplorerProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function SourcesExplorer({ sourceAndPaths, selectedSourceIndex, existingQuery, onQueryChange, onSourceChange, resourceUri, givens, gate, }: SourceExplorerProps): import("react/jsx-runtime").JSX.Element;
|
|
22
27
|
interface SourceExplorerComponentProps {
|
|
23
28
|
sourceAndPath: SourceAndPath;
|
|
24
29
|
existingQuery?: QueryExplorerResult;
|
|
25
30
|
onChange?: (query: QueryExplorerResult) => void;
|
|
26
31
|
resourceUri: string;
|
|
32
|
+
givens?: Record<string, unknown>;
|
|
33
|
+
gate?: RunGate;
|
|
27
34
|
}
|
|
28
35
|
export interface QueryExplorerResult {
|
|
29
36
|
query: string | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Given } from '../../client';
|
|
2
|
+
import { GivenValue } from '../../hooks/givenValue';
|
|
3
|
+
/**
|
|
4
|
+
* What a Run is about to send, measured against the model's declared givens.
|
|
5
|
+
*
|
|
6
|
+
* Nothing here refuses a Run. Givens are declared model-wide but read per
|
|
7
|
+
* source, and nothing on the client says which source reads which, so a blank
|
|
8
|
+
* given with no default may be exactly right for the source being explored.
|
|
9
|
+
* The server decides; this only supplies the words around its answer.
|
|
10
|
+
*/
|
|
11
|
+
export interface RunGate {
|
|
12
|
+
/** Unset givens with no default: named in a hint when the server refuses. */
|
|
13
|
+
missing: string[];
|
|
14
|
+
/** Set when an unset given fell back to a non-empty default. */
|
|
15
|
+
defaultsNote?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function runGate(givens: readonly Given[], values: ReadonlyMap<string, GivenValue>): RunGate;
|
|
18
|
+
/** The hint shown under a refusal when the reader left no-default givens blank. */
|
|
19
|
+
export declare function missingGivensHint(missing: readonly string[]): string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Given } from '../../client';
|
|
1
2
|
import { NavigationClick } from '../click_helper';
|
|
2
3
|
import { DrillNavigation } from '../drill';
|
|
3
4
|
import { EnhancedNotebookCell } from './types';
|
|
@@ -45,6 +46,14 @@ interface NotebookCellProps {
|
|
|
45
46
|
* drill inert rather than dead-ended, and removes the affordance with it.
|
|
46
47
|
*/
|
|
47
48
|
onDrillNavigate?: (target: DrillNavigation, event?: MouseEvent) => void;
|
|
49
|
+
/**
|
|
50
|
+
* The notebook's current control values, to seed the "Data Sources"
|
|
51
|
+
* dialog's own so exploring from a cell starts from what the reader is
|
|
52
|
+
* looking at rather than the model's bare defaults.
|
|
53
|
+
*/
|
|
54
|
+
givens?: Record<string, string>;
|
|
55
|
+
/** The notebook's declared givens, so that dialog renders their controls. */
|
|
56
|
+
givenSpecs?: Given[];
|
|
48
57
|
}
|
|
49
|
-
export declare function NotebookCell({ cell, hideCodeCellIcon, hideEmbeddingIcon, resourceUri, index, maxResultSize, isExecuting, pendingRerun, onNavigate, onDrillSelf, canDrillSelf, onDrillNavigate, }: NotebookCellProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export declare function NotebookCell({ cell, hideCodeCellIcon, hideEmbeddingIcon, resourceUri, index, maxResultSize, isExecuting, pendingRerun, onNavigate, onDrillSelf, canDrillSelf, onDrillNavigate, givens, givenSpecs, }: NotebookCellProps): import("react/jsx-runtime").JSX.Element;
|
|
50
59
|
export {};
|