@pie-element/complex-rubric 6.1.0-next.0 → 6.1.2-next.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/module/element.js DELETED
@@ -1 +0,0 @@
1
- import{_dll_react as e,_dll_mui__material_styles as t,_dll_mui__material as r,_dll_mui__material_collapse as n,_dll_pie_lib__render_ui as o,_dll_prop_types as i,_dll_react_dom as a,_dll_debug as s,_dll_mui__icons_material as l}from"../../../@pie-lib/shared-module@^4.0.1/module/index.js";import{_dll_pie_lib__math_rendering as c}from"../../../@pie-lib/math-rendering-module@^4.0.7/module/index.js";import{_dll_pie_lib__editable_html_tip_tap as d}from"../../../@pie-lib/editable-html-module@^6.1.2/module/index.js";import{_dll_pie_lib__config_ui as u}from"../../../@pie-lib/config-module@^3.0.1/module/index.js";import{grey as p}from"@mui/material/colors";const g=e,{styled:m}=t,{ListItem:f}=r,{List:b}=r,h=n,{color:v}=o,{UiLayout:y}=o,x=i,E=m(y)({color:v.text(),backgroundColor:v.background(),"&:not(.MathJax) table":{borderCollapse:"collapse"},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:"8px 12px",textAlign:"left"},"& ul p, & ol p":{marginBottom:0,marginTop:0,lineHeight:"normal"}}),I=m(f)({display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"12px 0px"}),D=m("div")({color:v.text()}),w=m("h3")({color:v.text(),fontSize:"16px",fontWeight:"700",margin:0,paddingBottom:"6px"}),S=m("h4")({color:v.text(),fontSize:"16px",fontWeight:"normal",margin:0,paddingBottom:"6px"}),C=m("h2")(({theme:e})=>({display:"flex",alignItems:"center",cursor:"pointer",userSelect:"none",fontSize:e.typography.fontSize,fontWeight:"500",color:v.tertiary(),margin:0})),O=m("span")({display:"inline-flex",transition:"transform 0.2s",marginLeft:2,alignSelf:"center"}),A=m("h2")({position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",border:0,whiteSpace:"nowrap"}),P=x.shape({excludeZero:x.bool,points:x.arrayOf(x.string),sampleAnswers:x.arrayOf(x.string),animationsDisabled:x.bool});class R extends g.Component{__init(){this.dudUrl="javascript:;"}constructor(e){super(e),R.prototype.__init.call(this),R.prototype.__init2.call(this),this.state={rubricOpen:!1,linkPrefix:"Show"},this.toggleRubric=this.toggleRubric.bind(this)}static __initStatic(){this.propTypes={model:x.object.isRequired,animationsDisabled:x.bool,value:P}}toggleRubric(){this.setState({rubricOpen:!this.state.rubricOpen}),this.setState({linkPrefix:this.state.rubricOpen?"Show":"Hide"})}__init2(){this.shouldRenderPoint=(e,t)=>!t.excludeZero||0!==e}render(){const{model:e,value:t}=this.props;let{animationsDisabled:r}=this.props;if(r=r||t.animationsDisabled,t&&t.points){const{extraCSSRules:n}=e||{},{points:o,sampleAnswers:i}=t,a=g.createElement(b,{component:"nav"},o.slice(0).reverse().map((e,r)=>{r=o.length-r-1;const n=t.excludeZero?r+1:r;return g.createElement(g.Fragment,{key:r},g.createElement(I,{key:`P${r}`},g.createElement(w,null,1===n?`${n} PT`:`${n} PTS`),g.createElement(D,{dangerouslySetInnerHTML:{__html:e}})),i&&i[r]&&g.createElement(I,{key:`S${r}`},g.createElement(S,null,"Sample Answer"),g.createElement(D,{dangerouslySetInnerHTML:{__html:i[r]}})))}));return g.createElement(E,{extraCSSRules:n},g.createElement(A,null,"Rubric"),r?a:g.createElement(g.Fragment,null,g.createElement(C,{id:"rubric-toggle",tabIndex:0,role:"button","aria-expanded":this.state.rubricOpen,onClick:this.toggleRubric,onKeyPress:e=>{"Enter"!==e.key&&" "!==e.key||this.toggleRubric()}},this.state.linkPrefix," Rubric",g.createElement(O,{"aria-hidden":"true"},this.state.rubricOpen?g.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},g.createElement("polyline",{points:"18 15 12 9 6 15"})):g.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},g.createElement("polyline",{points:"6 9 12 15 18 9"})))),g.createElement(h,{in:this.state.rubricOpen,timeout:{enter:225,exit:195}},a)))}return null}}R.__initStatic();var _,B=a;_=B.createRoot,B.hydrateRoot;const N=e,T=s,{renderMath:L}=c;class M extends HTMLElement{constructor(){super(),T.log("constructor called"),this.onModelChanged=this.onModelChanged.bind(this),this._root=null}set model(e){this._model=e,this._render()}onModelChanged(e){this._model=e,this._render()}connectedCallback(){this._render()}_render(){if(this._model){const e=N.createElement(R,{value:this._model});this._root||(this._root=_(this)),this._root.render(e),queueMicrotask(()=>{L(this)})}}disconnectedCallback(){this._root&&this._root.unmount()}}var k={};Object.defineProperty(k,"__esModule",{value:!0});class G extends CustomEvent{constructor(e,t,r){super(G.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e,hasModel:r}}),this.component=e,this.complete=t}}G.TYPE="model-set";var W=k.ModelSetEvent=G;class F extends CustomEvent{constructor(e,t){super(F.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e}}),this.component=e,this.complete=t}}F.TYPE="session-changed",k.SessionChangedEvent=F;const $=e,j=i,{styled:U}=t,{color:H}=o,q=U("td")({color:H.primaryDark(),verticalAlign:"middle"}),V=U("div")({color:H.secondaryBackground(),textAlign:"center"}),z=e=>{const{trait:t,traitIndex:r,scaleIndex:n,showStandards:o,showDescription:i,scorePointsValues:a}=e,{name:s,standards:l,scorePointsDescriptors:c,description:d}=t||{};return $.createElement("tr",{key:`scale-${n}-trait-${r}`},$.createElement(q,null,$.createElement("div",{dangerouslySetInnerHTML:{__html:s}})),o?$.createElement("td",null,$.createElement("div",{dangerouslySetInnerHTML:{__html:l.join(",")}})):null,i?$.createElement("td",null,$.createElement("div",{dangerouslySetInnerHTML:{__html:d}})):null,a&&a.map((e,t)=>{let r;try{r=c[a.length-t-1]||""}catch(e){r=""}return $.createElement("td",{key:`table-cell-${t}`},r?$.createElement("div",{dangerouslySetInnerHTML:{__html:r}}):$.createElement(V,{dangerouslySetInnerHTML:{__html:"No Description"}}))}))};z.propTypes={showStandards:j.bool,showDescription:j.bool,scorePointsValues:j.arrayOf(j.number),scaleIndex:j.number,traitIndex:j.number,trait:j.shape({name:j.string,standards:j.arrayOf(j.string),scorePointsDescriptors:j.arrayOf(j.string),description:j.string})};const Y=e,Z=i,{styled:J}=t,{color:X}=o,{ArrowBackIos:K}=l,{ArrowForwardIos:Q}=l,ee=J("div")({display:"flex",position:"relative"}),te=J("div")({width:"100%",overflow:"auto"}),re=J("table")(({theme:e})=>({borderSpacing:0,marginBottom:e.spacing(2),borderRadius:"4px",color:X.text(),fontSize:e.typography.fontSize,lineHeight:"16px",overflow:"unset","& ul, ol":{marginBlockStart:0,paddingInlineStart:e.spacing(2)},"& th":{padding:e.spacing(2),textAlign:"left",backgroundColor:X.secondaryBackground(),verticalAlign:"bottom"},"& th div":{width:"200px"},"& td":{width:"200px",padding:`${e.spacing(2)} ${e.spacing(1)}`,verticalAlign:"top"}})),ne=J("table")({"& td":{border:0,padding:0,textAlign:"center",minWidth:"200px"}}),oe=J("div")({marginBottom:"4px"}),ie=J("td")({fontWeight:"normal"}),ae=({show:e,onClick:t,extraStyles:r,children:n})=>Y.createElement("div",{style:{height:"calc(100% - 1px)",top:"1px",display:e?"flex":"none",width:"50px",margin:"auto",position:"absolute",alignItems:"center",justifyContent:"center",cursor:"pointer",...r},onClick:t},n);ae.propTypes={show:Z.bool,onClick:Z.func,extraStyles:Z.object,children:Z.object};class se extends Y.Component{constructor(...e){super(...e),se.prototype.__init.call(this),se.prototype.__init2.call(this),se.prototype.__init3.call(this)}__init(){this.state={}}componentDidMount(){this.tableWrapper&&this.tableWrapper.offsetWidth<this.tableWrapper.scrollWidth&&this.setState({showRight:!0})}__init2(){this.scrollLeft=()=>{this.tableWrapper.scrollLeft-=this.tableWrapper.offsetWidth/2,this.setState({showRight:this.tableWrapper.scrollLeft<this.tableWrapper.scrollWidth,showLeft:this.tableWrapper.scrollLeft<this.tableWrapper.scrollWidth&&this.tableWrapper.scrollLeft>0})}}__init3(){this.scrollRight=()=>{const e=this.tableWrapper.scrollLeft;this.tableWrapper.scrollLeft+=this.tableWrapper.offsetWidth/2,this.setState({showRight:e!==this.tableWrapper.scrollLeft&&this.tableWrapper.scrollLeft<this.tableWrapper.scrollWidth,showLeft:this.tableWrapper.scrollLeft<this.tableWrapper.scrollWidth&&this.tableWrapper.scrollLeft>0})}}render(){const{showRight:e,showLeft:t}=this.state,{scale:r,scaleIndex:n,showDescription:o,showPointsLabels:i,showStandards:a,arrowsDisabled:s}=this.props,{excludeZero:l,maxPoints:c,traitLabel:d,traits:u,scorePointsLabels:p}=r||{};let g,m,f,b=[];try{for(let e=c;e>=l;e-=1)b.push(e);const{traitStandards:e,traitDescriptions:t}=u.reduce((e,t)=>({traitStandards:[...e.traitStandards,...t.standards||[]],traitDescriptions:[...e.traitDescriptions,...t.description||[]]}),{traitStandards:[],traitDescriptions:[]});g=o&&t.length,m=i&&p.length,f=a&&e.length}catch(e){g=!1,m=!1,f=!1}return Y.createElement(ee,null,Y.createElement(ae,{show:t&&!s,onClick:this.scrollLeft,extraStyles:{left:0,background:`linear-gradient(to right, white, ${X.background()})`}},Y.createElement(K,null)),Y.createElement(te,{ref:e=>{this.tableWrapper=e},onScroll:()=>{this.setState({showRight:this.tableWrapper.scrollLeft+this.tableWrapper.offsetWidth<this.tableWrapper.scrollWidth-5&&this.tableWrapper.scrollLeft<this.tableWrapper.scrollWidth,showLeft:this.tableWrapper.scrollLeft<this.tableWrapper.scrollWidth&&this.tableWrapper.scrollLeft>0})}},s&&(e||t)?Y.createElement("div",null,"The item is too large to fit in print mode."):null,Y.createElement(re,{key:`scale-${n}`},Y.createElement("thead",null,Y.createElement("tr",null,Y.createElement("th",null,Y.createElement("div",{dangerouslySetInnerHTML:{__html:d}})),f?Y.createElement("th",null,Y.createElement("div",null,"Standard(s)")):null,g?Y.createElement("th",null,Y.createElement("div",null,"Description")):null,b&&b.map((e,t)=>{let r="";try{r=p[b.length-t-1]||""}catch(e){r=""}return Y.createElement("th",{key:`table-header-${t}`},Y.createElement(ne,null,Y.createElement("thead",null,m?Y.createElement("tr",null,Y.createElement("td",null,Y.createElement(oe,{dangerouslySetInnerHTML:{__html:r}}))):null,Y.createElement("tr",null,Y.createElement(ie,null,1===e?`${e} point`:`${e} points`)))))}))),Y.createElement("tbody",null,u&&u.map((e,t)=>Y.createElement(z,{key:`trait_${n}_${t}`,trait:e,traitIndex:t,showDescription:!!g,showStandards:!!f,scaleIndex:n,scorePointsValues:b,excludeZero:l}))))),Y.createElement(ae,{show:e&&!s,onClick:this.scrollRight,extraStyles:{right:0,background:`linear-gradient(to left, white, ${X.background()})`}},Y.createElement(Q,null)))}}se.propTypes={scaleIndex:Z.number,scale:Z.shape({excludeZero:Z.bool,maxPoints:Z.number,scorePointsLabels:Z.arrayOf(Z.string),traitLabel:Z.string,traits:Z.arrayOf(Z.shape({name:Z.string,standards:Z.arrayOf(Z.string),scorePointsDescriptors:Z.arrayOf(Z.string),description:Z.string}))}),showPointsLabels:Z.bool,showDescription:Z.bool,showStandards:Z.bool,arrowsDisabled:Z.bool};const le=e,ce=i,{Link:de}=r,ue=n,{color:pe}=o,{UiLayout:ge}=o;class me extends le.Component{constructor(e){super(e),this.state={rubricOpen:!1,linkPrefix:"Show"},this.toggleRubric=this.toggleRubric.bind(this)}toggleRubric(){this.setState({rubricOpen:!this.state.rubricOpen}),this.setState({linkPrefix:this.state.rubricOpen?"Show":"Hide"})}render(){const{model:e}=this.props;let{animationsDisabled:t}=this.props;const{extraCSSRules:r,halfScoring:n,scales:o,visible:i,pointLabels:a,description:s,standards:l,arrowsDisabled:c}=e||{};if(t=t||e.animationsDisabled,!o||!i)return null;const d=le.createElement(ge,{extraCSSRules:r,style:{fontFamily:"Cerebri Sans",color:pe.text(),backgroundColor:pe.background()}},n?le.createElement("div",{style:{marginBottom:"16px"}},"* Half-point or in-between scores are permitted under this rubric."):null,o.map((e,t)=>le.createElement(se,{key:`scale_${t}`,scale:e,scaleIndex:t,showPointsLabels:a,showDescription:s,showStandards:l,arrowsDisabled:c})));return t?d:le.createElement(ge,{extraCSSRules:r,style:{color:pe.text(),backgroundColor:pe.background()}},le.createElement(de,{style:{backgroundColor:pe.background()},href:this.dudUrl,onClick:this.toggleRubric},this.state.linkPrefix," Rubric"),le.createElement(ue,{style:{marginTop:"16px"},in:this.state.rubricOpen,timeout:{enter:225,exit:195}},d))}}me.propTypes={model:ce.shape({halfScoring:ce.bool,scales:ce.arrayOf(ce.shape({excludeZero:ce.bool,maxPoints:ce.number,scorePointsLabels:ce.arrayOf(ce.string),traitLabel:ce.string,traits:ce.arrayOf(ce.shape({name:ce.string,description:ce.string,scorePointsDescriptors:ce.arrayOf(ce.string),standards:ce.arrayOf(ce.string)}))})),visible:ce.bool,pointLabels:ce.bool,description:ce.bool,standards:ce.bool,animationsDisabled:ce.bool}),animationsDisabled:ce.bool};const fe=e,{renderMath:be}=c;class he extends HTMLElement{constructor(){super(),this._model={},this._session=null,this._root=null}set model(e){this._model=e,this.dispatchEvent(new W(this.tagName.toLowerCase(),this._session,!!this._model)),this._render()}set session(e){this._session=e}get session(){return this._session}connectedCallback(){this._render()}_render(){const e=fe.createElement(me,{model:this._model,session:this._session});this._root||(this._root=_(this)),this._root.render(e),queueMicrotask(()=>{be(this)})}disconnectedCallback(){this._root&&this._root.unmount()}}var ve="object"==typeof global&&global&&global.Object===Object&&global,ye="object"==typeof self&&self&&self.Object===Object&&self,xe=(ve||ye||Function("return this")()).Symbol,Ee=Object.prototype,Ie=Ee.hasOwnProperty,De=Ee.toString,we=xe?xe.toStringTag:void 0;var Se=Object.prototype.toString;var Ce=xe?xe.toStringTag:void 0;function Oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ce&&Ce in Object(e)?function(e){var t=Ie.call(e,we),r=e[we];try{e[we]=void 0;var n=!0}catch(e){}var o=De.call(e);return n&&(t?e[we]=r:delete e[we]),o}(e):function(e){return Se.call(e)}(e)}var Ae=/\s/;var Pe=/^\s+/;function Re(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Ae.test(e.charAt(t)););return t}(e)+1).replace(Pe,""):e}function _e(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Be=/^[-+]0x[0-9a-f]+$/i,Ne=/^0b[01]+$/i,Te=/^0o[0-7]+$/i,Le=parseInt;function Me(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==Oe(e)}(e))return NaN;if(_e(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_e(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Re(e);var r=Ne.test(e);return r||Te.test(e)?Le(e.slice(2),r?2:8):Be.test(e)?NaN:+e}var ke=1/0;function Ge(e){return e?(e=Me(e))===ke||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function We(e){var t=Ge(e),r=t%1;return t==t?r?t-r:t:0}function Fe(e){return e}var $e=/^(?:0|[1-9]\d*)$/;function je(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){if(!_e(e))return!1;var t=Oe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)}function Ue(e,t,r){if(!_e(r))return!1;var n=typeof t;return!!("number"==n?je(r)&&function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&$e.test(e))&&e>-1&&e%1==0&&e<t}(t,r.length):"string"==n&&t in r)&&function(e,t){return e===t||e!=e&&t!=t}(r[t],e)}var He=Math.ceil,qe=Math.max;var Ve,ze=function(e,t,r){return r&&"number"!=typeof r&&Ue(e,t,r)&&(t=r=void 0),e=Ge(e),void 0===t?(t=e,e=0):t=Ge(t),function(e,t,r,n){for(var o=-1,i=qe(He((t-e)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=e,e+=r;return a}(e,t,r=void 0===r?e<t?1:-1:Ge(r),Ve)},Ye=ze;function Ze(e,t,r){var n=null==e?0:e.length;return n?function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}(e,(t=n-(t=r||void 0===t?1:We(t)))<0?0:t,n):[]}var Je=4294967295,Xe=Math.min;function Ke(e,t){if((e=We(e))<1||e>9007199254740991)return[];var r,n=Je,o=Xe(e,Je);e-=Je;for(var i=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(o,t="function"==typeof(r=t)?r:Fe);++n<e;)t(n);return i}function Qe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var et="function"==typeof Symbol&&Symbol.observable||"@@observable",tt=()=>Math.random().toString(36).substring(7).split("").join("."),rt={INIT:`@@redux/INIT${tt()}`,REPLACE:`@@redux/REPLACE${tt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${tt()}`};function nt(e,t,r){if("function"!=typeof e)throw new Error(Qe(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(Qe(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(Qe(1));return r(nt)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((e,t)=>{a.set(t,e)}))}function d(){if(l)throw new Error(Qe(3));return o}function u(e){if("function"!=typeof e)throw new Error(Qe(4));if(l)throw new Error(Qe(5));let t=!0;c();const r=s++;return a.set(r,e),function(){if(t){if(l)throw new Error(Qe(6));t=!1,c(),a.delete(r),i=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(Qe(7));if(void 0===e.type)throw new Error(Qe(8));if("string"!=typeof e.type)throw new Error(Qe(17));if(l)throw new Error(Qe(9));try{l=!0,o=n(o,e)}finally{l=!1}return(i=a).forEach(e=>{e()}),e}p({type:rt.INIT});return{dispatch:p,subscribe:u,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Qe(10));n=e,p({type:rt.REPLACE})},[et]:function(){const e=u;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Qe(11));function r(){const e=t;e.next&&e.next(d())}r();return{unsubscribe:e(r)}},[et](){return this}}}}}function ot(e,t){return function(...r){return t(e.apply(this,r))}}function it(e,t){if("function"==typeof e)return ot(e,t);if("object"!=typeof e||null===e)throw new Error(Qe(16));const r={};for(const n in e){const o=e[n];"function"==typeof o&&(r[n]=ot(o,t))}return r}function at(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}var st={exports:{}},lt={};var ct=e;var dt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ut=ct.useSyncExternalStore,pt=ct.useRef,gt=ct.useEffect,mt=ct.useMemo,ft=ct.useDebugValue;lt.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=pt(null);if(null===i.current){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=mt(function(){function e(e){if(!l){if(l=!0,i=e,e=n(e),void 0!==o&&a.hasValue){var t=a.value;if(o(t,e))return s=t}return s=e}if(t=s,dt(i,e))return t;var r=n(e);return void 0!==o&&o(t,r)?(i=e,t):(i=e,s=r)}var i,s,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,o]);var s=ut(e,i[0],i[1]);return gt(function(){a.hasValue=!0,a.value=s},[s]),ft(s),s},st.exports=lt;const bt=e;var ht=bt.version.startsWith("19"),vt=Symbol.for(ht?"react.transitional.element":"react.element"),yt=Symbol.for("react.portal"),xt=Symbol.for("react.fragment"),Et=Symbol.for("react.strict_mode"),It=Symbol.for("react.profiler"),Dt=Symbol.for("react.consumer"),wt=Symbol.for("react.context"),St=Symbol.for("react.forward_ref"),Ct=Symbol.for("react.suspense"),Ot=Symbol.for("react.suspense_list"),At=Symbol.for("react.memo"),Pt=Symbol.for("react.lazy"),Rt=St,_t=At;function Bt(e){return function(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case vt:switch(e=e.type){case xt:case It:case Et:case Ct:case Ot:return e;default:switch(e=e&&e.$$typeof){case wt:case St:case Pt:case At:case Dt:return e;default:return t}}case yt:return t}}}(e)===At}function Nt(e,t,r,n,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,l,c,d,u,p=!1;function g(p,g){const m=!i(g,l),f=!o(p,s,g,l);return s=p,l=g,m&&f?(c=e(s,l),t.dependsOnOwnProps&&(d=t(n,l)),u=r(c,d,l),u):m?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(d=t(n,l)),u=r(c,d,l),u):f?function(){const t=e(s,l),n=!a(t,c);return c=t,n&&(u=r(c,d,l)),u}():u}return function(o,i){return p?g(o,i):(s=o,l=i,c=e(s,l),d=t(n,l),u=r(c,d,l),p=!0,u)}}function Tt(e){return function(t){const r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function Lt(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Mt(e,t){return function(t,{displayName:r}){const n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=Lt(e);let o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=Lt(o),o=n(t,r)),o},n}}function kt(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function Gt(e,t,r){return{...r,...e,...t}}var Wt={notify(){},get:()=>[]};function Ft(e,t){let r,n=Wt,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){o++,r||(r=t?t.addNestedSub(a):e.subscribe(a),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){n&&null!==e&&(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,r&&0===o&&(r(),r=void 0,n.clear(),n=Wt)}const c={addNestedSub:function(e){s();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>n};return c}var $t=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),jt="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Ut=$t||jt?bt.useLayoutEffect:bt.useEffect;function Ht(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function qt(e,t){if(Ht(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Ht(e[r[n]],t[r[n]]))return!1;return!0}var Vt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Yt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zt={[Rt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[_t]:Yt};function Jt(e){return Bt(e)?Yt:Zt[e.$$typeof]||Vt}var Xt=Object.defineProperty,Kt=Object.getOwnPropertyNames,Qt=Object.getOwnPropertySymbols,er=Object.getOwnPropertyDescriptor,tr=Object.getPrototypeOf,rr=Object.prototype;function nr(e,t){if("string"!=typeof t){if(rr){const r=tr(t);r&&r!==rr&&nr(e,r)}let r=Kt(t);Qt&&(r=r.concat(Qt(t)));const n=Jt(e),o=Jt(t);for(let i=0;i<r.length;++i){const a=r[i];if(!(zt[a]||o&&o[a]||n&&n[a])){const r=er(t,a);try{Xt(e,a,r)}catch(e){}}}}return e}var or=Symbol.for("react-redux-context"),ir="undefined"!=typeof globalThis?globalThis:{};var ar=function(){if(!bt.createContext)return{};const e=ir[or]??=new Map;let t=e.get(bt.createContext);return t||(t=bt.createContext(null),e.set(bt.createContext,t)),t}(),sr=[null,null];function lr(e,t,r,n,o,i){e.current=n,r.current=!1,o.current&&(o.current=null,i())}function cr(e,t){return e===t}var dr=function(e,t,r,{pure:n,areStatesEqual:o=cr,areOwnPropsEqual:i=qt,areStatePropsEqual:a=qt,areMergedPropsEqual:s=qt,forwardRef:l=!1,context:c=ar}={}){const d=c,u=function(e){return e?"function"==typeof e?Mt(e):kt(e,"mapStateToProps"):Tt(()=>({}))}(e),p=function(e){return e&&"object"==typeof e?Tt(t=>function(e,t){const r={};for(const n in e){const o=e[n];"function"==typeof o&&(r[n]=(...e)=>t(o(...e)))}return r}(e,t)):e?"function"==typeof e?Mt(e):kt(e,"mapDispatchToProps"):Tt(e=>({dispatch:e}))}(t),g=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:n}){let o,i=!1;return function(t,r,a){const s=e(t,r,a);return i?n(s,o)||(o=s):(i=!0,o=s),o}}}(e):kt(e,"mergeProps"):()=>Gt}(r),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,n={shouldHandleStateChanges:m,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:u,initMapDispatchToProps:p,initMergeProps:g,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function c(t){const[r,o,i]=bt.useMemo(()=>{const{reactReduxForwardedRef:e,...r}=t;return[t.context,e,r]},[t]),a=bt.useMemo(()=>{let e=d;return function(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],i=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=i(r)):"call"!==o&&"optionalCall"!==o||(r=i((...e)=>r.call(t,...e)),t=void 0)}}([r,"optionalAccess",e=>e.Consumer]),e},[r,d]),s=bt.useContext(a),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),c=Boolean(s)&&Boolean(s.store),u=l?t.store:s.store,p=c?s.getServerState:u.getState,g=bt.useMemo(()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...o}){return Nt(t(e,o),r(e,o),n(e,o),e,o)}(u.dispatch,n),[u]),[f,b]=bt.useMemo(()=>{if(!m)return sr;const e=Ft(u,l?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[u,l,s]),h=bt.useMemo(()=>l?s:{...s,subscription:f},[l,s,f]),v=bt.useRef(void 0),y=bt.useRef(i),x=bt.useRef(void 0),E=bt.useRef(!1),I=bt.useRef(!1),D=bt.useRef(void 0);Ut(()=>(I.current=!0,()=>{I.current=!1}),[]);const w=bt.useMemo(()=>()=>x.current&&i===y.current?x.current:g(u.getState(),i),[u,i]),S=bt.useMemo(()=>e=>f?function(e,t,r,n,o,i,a,s,l,c,d){if(!e)return()=>{};let u=!1,p=null;const g=()=>{if(u||!s.current)return;const e=t.getState();let r,g;try{r=n(e,o.current)}catch(e){g=e,p=e}g||(p=null),r===i.current?a.current||c():(i.current=r,l.current=r,a.current=!0,d())};return r.onStateChange=g,r.trySubscribe(),g(),()=>{if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,p)throw p}}(m,u,f,g,y,v,E,I,x,b,e):()=>{},[f]);var C,O,A;let P;C=lr,O=[y,v,E,i,x,b],Ut(()=>C(...O),A);try{P=bt.useSyncExternalStore(S,w,p?()=>g(p(),i):w)}catch(e){throw D.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${D.current.stack}\n\n`),e}Ut(()=>{D.current=void 0,x.current=void 0,v.current=P});const R=bt.useMemo(()=>bt.createElement(e,{...P,ref:o}),[o,e,P]);return bt.useMemo(()=>m?bt.createElement(a.Provider,{value:h},R):R,[a,R,h])}const f=bt.memo(c);if(f.WrappedComponent=e,f.displayName=c.displayName=r,l){const t=bt.forwardRef(function(e,t){return bt.createElement(f,{...e,reactReduxForwardedRef:t})});return t.displayName=r,t.WrappedComponent=e,nr(t,e)}return nr(f,e)}};var ur=function(e){const{children:t,context:r,serverState:n,store:o}=e,i=bt.useMemo(()=>{const e=Ft(o);return{store:o,subscription:e,getServerState:n?()=>n:void 0}},[o,n]),a=bt.useMemo(()=>o.getState(),[o]);Ut(()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,a]);const s=r||ar;return bt.createElement(s.Provider,{value:i},t)};function pr(e=ar){return function(){return bt.useContext(e)}}var gr=pr();function mr(e=ar){const t=e===ar?gr:pr(e),r=()=>{const{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var fr=mr();!function(e=ar){const t=e===ar?fr:mr(e),r=()=>t().dispatch;Object.assign(r,{withTypes:()=>r})}();var br=(e,t)=>e===t;!function(e=ar){const t=e===ar?gr:pr(e),r=(e,r={})=>{const{equalityFn:n=br}="function"==typeof r?{equalityFn:r}:r,o=t(),{store:i,subscription:a,getServerState:s}=o;bt.useRef(!0);const l=bt.useCallback({[e.name]:t=>e(t)}[e.name],[e]),c=st.exports.useSyncExternalStoreWithSelector(a.addNestedSub,i.getState,s||i.getState,l,n);return bt.useDebugValue(c),c};Object.assign(r,{withTypes:()=>r})}();var hr="Invariant failed";var vr=function(e){var t=e.top,r=e.right,n=e.bottom,o=e.left;return{top:t,right:r,bottom:n,left:o,width:r-o,height:n-t,x:o,y:t,center:{x:(r+o)/2,y:(n+t)/2}}},yr=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},xr=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Er={top:0,right:0,bottom:0,left:0},Ir=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?Er:r,o=e.border,i=void 0===o?Er:o,a=e.padding,s=void 0===a?Er:a,l=vr(yr(t,n)),c=vr(xr(t,i)),d=vr(xr(c,s));return{marginBox:l,borderBox:vr(t),paddingBox:c,contentBox:d,margin:n,border:i,padding:s}},Dr=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&function(e){if(!e)throw new Error(hr)}(!1),r},wr=function(e,t){var r,n,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(n=t,{top:(r=o).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return Ir({borderBox:l,border:i,margin:a,padding:s})},Sr=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),wr(e,t)},Cr=function(e,t){var r={top:Dr(t.marginTop),right:Dr(t.marginRight),bottom:Dr(t.marginBottom),left:Dr(t.marginLeft)},n={top:Dr(t.paddingTop),right:Dr(t.paddingRight),bottom:Dr(t.paddingBottom),left:Dr(t.paddingLeft)},o={top:Dr(t.borderTopWidth),right:Dr(t.borderRightWidth),bottom:Dr(t.borderBottomWidth),left:Dr(t.borderLeftWidth)};return Ir({borderBox:e,margin:r,padding:n,border:o})},Or=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return Cr(t,r)},Ar=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];t=o,r||(r=requestAnimationFrame(function(){r=null,e.apply(void 0,t)}))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n};function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pr.apply(null,arguments)}const Rr=e,{useState:_r}=e,{useRef:Br}=e,{useEffect:Nr}=e,{useLayoutEffect:Tr}=e,{useContext:Lr}=e,Mr=a,{flushSync:kr}=a;function Gr(e,t){}function Wr(){}function Fr(e,t,r){const n=t.map(t=>{const n=(o=r,i=t.options,{...o,...i});var o,i;return e.addEventListener(t.eventName,t.fn,n),function(){e.removeEventListener(t.eventName,t.fn,n)}});return function(){n.forEach(e=>{e()})}}Gr.bind(null,"warn"),Gr.bind(null,"error");class $r extends Error{}function jr(e,t){throw new $r("Invariant failed")}$r.prototype.toString=function(){return this.message};class Ur extends Rr.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=Wr,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort();e.error instanceof $r&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=Fr(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof $r))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Hr=e=>e+1,qr=(e,t)=>{const r=e.droppableId===t.droppableId,n=Hr(e.index),o=Hr(t.index);return r?`\n You have moved the item from position ${n}\n to position ${o}\n `:`\n You have moved the item from position ${n}\n in list ${e.droppableId}\n to list ${t.droppableId}\n in position ${o}\n `},Vr=(e,t,r)=>t.droppableId===r.droppableId?`\n The item ${e}\n has been combined with ${r.draggableId}`:`\n The item ${e}\n in list ${t.droppableId}\n has been combined with ${r.draggableId}\n in list ${r.droppableId}\n `,zr=e=>`\n The item has returned to its starting position\n of ${Hr(e.index)}\n`,Yr={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:e=>`\n You have lifted an item in position ${Hr(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return qr(e.source,t);const r=e.combine;return r?Vr(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`\n Movement cancelled.\n ${zr(e.source)}\n `;const t=e.destination,r=e.combine;return t?`\n You have dropped the item.\n ${qr(e.source,t)}\n `:r?`\n You have dropped the item.\n ${Vr(e.draggableId,e.source,r)}\n `:`\n The item has been dropped while not over a drop area.\n ${zr(e.source)}\n `}};function Zr(e,t){return e===t||!(!Number.isNaN(e)||!Number.isNaN(t))}function Jr(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Zr(e[r],t[r]))return!1;return!0}function Xr(e,t){const r=_r(()=>({inputs:t,result:e()}))[0],n=Br(!0),o=Br(r),i=n.current||Boolean(t&&o.current.inputs&&Jr(t,o.current.inputs))?o.current:{inputs:t,result:e()};return Nr(()=>{n.current=!1,o.current=i},[i]),i.result}function Kr(e,t){return Xr(()=>e,t)}const Qr={x:0,y:0},en=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),tn=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),rn=(e,t)=>e.x===t.x&&e.y===t.y,nn=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),on=(e,t,r=0)=>"x"===e?{x:t,y:r}:{x:r,y:t},an=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),sn=(e,t)=>Math.min(...t.map(t=>an(e,t))),ln=e=>t=>({x:e(t.x),y:e(t.y)});const cn=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),dn=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],un=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const r=vr({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r})(t.pageMarginBox,e):vr(e);var pn=({page:e,withPlaceholder:t,axis:r,frame:n})=>{const o=((e,t)=>t?cn(e,t.scroll.diff.displacement):e)(e.marginBox,n),i=((e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e)(o,r,t);return{page:e,withPlaceholder:t,active:un(i,n)}},gn=(e,t)=>{e.frame||jr();const r=e.frame,n=tn(t,r.scroll.initial),o=nn(n),i={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:o},max:r.scroll.max}},a=pn({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:a}};function mn(e,t=Jr){let r=null;function n(...n){if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;const o=e.apply(this,n);return r={lastResult:o,lastArgs:n,lastThis:this},o}return n.clear=function(){r=null},n}const fn=mn(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),bn=mn(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),hn=mn(e=>Object.values(e)),vn=mn(e=>Object.values(e));var yn=mn((e,t)=>{const r=vn(t).filter(t=>e===t.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index);return r});function xn(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function En(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var In=mn((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),Dn=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const wn={point:Qr,value:0},Sn={invisible:{},visible:{},all:[]},Cn={displaced:Sn,displacedBy:wn,at:null};var On=(e,t)=>r=>e<=r&&r<=t,An=e=>{const t=On(e.top,e.bottom),r=On(e.left,e.right);return n=>{if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;const o=t(n.top)||t(n.bottom),i=r(n.left)||r(n.right);if(o&&i)return!0;const a=n.top<e.top&&n.bottom>e.bottom,s=n.left<e.left&&n.right>e.right;if(a&&s)return!0;return a&&i||s&&o}},Pn=e=>{const t=On(e.top,e.bottom),r=On(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)};const Rn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},_n={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};const Bn=({target:e,destination:t,viewport:r,withDroppableDisplacement:n,isVisibleThroughFrameFn:o})=>{const i=n?((e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:Qr;return cn(e,r)})(e,t):e;return((e,t,r)=>!!t.subject.active&&r(t.subject.active)(e))(i,t,o)&&((e,t,r)=>r(t)(e))(i,r,o)},Nn=e=>Bn({...e,isVisibleThroughFrameFn:Pn});function Tn({afterDragging:e,destination:t,displacedBy:r,viewport:n,forceShouldAnimate:o,last:i}){return e.reduce(function(e,a){const s=function(e,t){const r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return vr(yr(r,n))}(a,r),l=a.descriptor.id;e.all.push(l);var c;if(!(c={target:s,destination:t,viewport:n,withDroppableDisplacement:!0},Bn({...c,isVisibleThroughFrameFn:An})))return e.invisible[a.descriptor.id]=!0,e;const d=((e,t,r)=>{if("boolean"==typeof r)return r;if(!t)return!0;const{invisible:n,visible:o}=t;if(n[e])return!1;const i=o[e];return!i||i.shouldAnimate})(l,i,o),u={draggableId:l,shouldAnimate:d};return e.visible[l]=u,e},{all:[],visible:{},invisible:{}})}function Ln({insideDestination:e,inHomeList:t,displacedBy:r,destination:n}){const o=function(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(e,{inHomeList:t});return{displaced:Sn,displacedBy:r,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:o}}}}function Mn({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:o,last:i,index:a,forceShouldAnimate:s}){const l=Dn(e,r);if(null==a)return Ln({insideDestination:t,inHomeList:l,displacedBy:o,destination:r});const c=t.find(e=>e.descriptor.index===a);if(!c)return Ln({insideDestination:t,inHomeList:l,displacedBy:o,destination:r});const d=In(e,t),u=t.indexOf(c);return{displaced:Tn({afterDragging:d.slice(u),destination:r,displacedBy:o,last:i,viewport:n.frame,forceShouldAnimate:s}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function kn(e,t){return Boolean(t.effected[e])}var Gn=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:o,insideDestination:i,previousImpact:a,viewport:s,afterCritical:l})=>{const c=a.at;if(c||jr(),"REORDER"===c.type){const n=(({isMovingForward:e,isInHomeList:t,insideDestination:r,location:n})=>{if(!r.length)return null;const o=n.index,i=e?o+1:o-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return i<a||i>(t?s:s+1)?null:i})({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:i});return null==n?null:Mn({draggable:r,insideDestination:i,destination:o,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:n})}const d=(({isMovingForward:e,destination:t,draggables:r,combine:n,afterCritical:o})=>{if(!t.isCombineEnabled)return null;const i=n.draggableId,a=r[i].descriptor.index;return kn(i,o)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:o,displaced:a.displaced,draggables:n,combine:c.combine,afterCritical:l});return null==d?null:Mn({draggable:r,insideDestination:i,destination:o,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})},Wn=({afterCritical:e,impact:t,draggables:r})=>{const n=En(t);n||jr();const o=n.draggableId,i=r[o].page.borderBox.center,a=(({displaced:e,afterCritical:t,combineWith:r,displacedBy:n})=>{const o=Boolean(e.visible[r]||e.invisible[r]);return kn(r,t)?o?Qr:nn(n.point):o?n.point:Qr})({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return en(i,a)};const Fn=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,$n=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,jn=({axis:e,moveRelativeTo:t,isMoving:r})=>on(e.line,t.marginBox[e.end]+Fn(e,r),$n(e,t.marginBox,r)),Un=({axis:e,moveRelativeTo:t,isMoving:r})=>on(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,r),$n(e,t.marginBox,r));var Hn=({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o})=>{const i=yn(n.descriptor.id,r),a=t.page,s=n.axis;if(!i.length)return(({axis:e,moveInto:t,isMoving:r})=>on(e.line,t.contentBox[e.start]+Fn(e,r),$n(e,t.contentBox,r)))({axis:s,moveInto:n.page,isMoving:a});const{displaced:l,displacedBy:c}=e,d=l.all[0];if(d){const e=r[d];if(kn(d,o))return Un({axis:s,moveRelativeTo:e.page,isMoving:a});const t=wr(e.page,c.point);return Un({axis:s,moveRelativeTo:t,isMoving:a})}const u=i[i.length-1];if(u.descriptor.id===t.descriptor.id)return a.borderBox.center;if(kn(u.descriptor.id,o)){const e=wr(u.page,nn(o.displacedBy.point));return jn({axis:s,moveRelativeTo:e,isMoving:a})}return jn({axis:s,moveRelativeTo:u.page,isMoving:a})},qn=(e,t)=>{const r=e.frame;return r?en(t,r.scroll.diff.displacement):t};var Vn=e=>{const t=(({impact:e,draggable:t,droppable:r,draggables:n,afterCritical:o})=>{const i=t.page.borderBox.center,a=e.at;return r&&a?"REORDER"===a.type?Hn({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o}):Wn({impact:e,draggables:n,afterCritical:o}):i})(e),r=e.droppable;return r?qn(r,t):t},zn=(e,t)=>{const r=tn(t,e.scroll.initial),n=nn(r);return{frame:vr({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function Yn(e,t){return e.map(e=>t[e])}var Zn=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{const n=((e,t)=>en(e.scroll.diff.displacement,t))(r,e),o=tn(n,t.page.borderBox.center);return en(t.client.borderBox.center,o)},Jn=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:o,onlyOnMainAxis:i=!1})=>{const a=tn(r,e.page.borderBox.center),s={target:cn(e.page.borderBox,a),destination:t,withDroppableDisplacement:o,viewport:n};return i?(e=>{return Bn({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const r=On(e.top,e.bottom),n=On(e.left,e.right);return e=>t===Rn?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)})});var t})(s):Nn(s)},Xn=({isMovingForward:e,draggable:t,destination:r,draggables:n,previousImpact:o,viewport:i,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:l})=>{if(!r.isEnabled)return null;const c=yn(r.descriptor.id,n),d=Dn(t,r),u=(({isMovingForward:e,draggable:t,destination:r,insideDestination:n,previousImpact:o})=>{if(!r.isCombineEnabled)return null;if(!xn(o))return null;function i(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return{...o,at:t}}const a=o.displaced.all,s=a.length?a[0]:null;if(e)return s?i(s):null;const l=In(t,n);if(!s)return l.length?i(l[l.length-1].descriptor.id):null;const c=l.findIndex(e=>e.descriptor.id===s);-1===c&&jr();const d=c-1;return d<0?null:i(l[d].descriptor.id)})({isMovingForward:e,draggable:t,destination:r,insideDestination:c,previousImpact:o})||Gn({isMovingForward:e,isInHomeList:d,draggable:t,draggables:n,destination:r,insideDestination:c,previousImpact:o,viewport:i,afterCritical:l});if(!u)return null;const p=Vn({impact:u,draggable:t,droppable:r,draggables:n,afterCritical:l});if(Jn({draggable:t,destination:r,newPageBorderBoxCenter:p,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})){return{clientSelection:Zn({pageBorderBoxCenter:p,draggable:t,viewport:i}),impact:u,scrollJumpRequest:null}}const g=tn(p,a),m=(({impact:e,viewport:t,destination:r,draggables:n,maxScrollChange:o})=>{const i=zn(t,en(t.scroll.current,o)),a=r.frame?gn(r,en(r.frame.scroll.current,o)):r,s=e.displaced,l=Tn({afterDragging:Yn(s.all,n),destination:r,displacedBy:e.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),c=Tn({afterDragging:Yn(s.all,n),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),d={},u={},p=[s,l,c];return s.all.forEach(e=>{const t=function(e,t){for(let r=0;r<t.length;r++){const n=t[r].visible[e];if(n)return n}return null}(e,p);t?u[e]=t:d[e]=!0}),{...e,displaced:{all:s.all,invisible:d,visible:u}}})({impact:u,viewport:i,destination:r,draggables:n,maxScrollChange:g});return{clientSelection:s,impact:m,scrollJumpRequest:g}};const Kn=e=>{const t=e.subject.active;return t||jr(),t};const Qn=(e,t)=>{const r=e.page.borderBox.center;return kn(e.descriptor.id,t)?tn(r,t.displacedBy.point):r},eo=(e,t)=>{const r=e.page.borderBox;return kn(e.descriptor.id,t)?cn(r,nn(t.displacedBy.point)):r};var to=mn(function(e,t){const r=t[e.line];return{value:r,point:on(e.line,r)}});const ro=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),no=(e,t,r)=>{const n=e.frame;Dn(t,e)&&jr(),e.subject.withPlaceholder&&jr();const o=to(e.axis,t.displaceBy).point,i=((e,t,r)=>{const n=e.axis;if("virtual"===e.descriptor.mode)return on(n.line,t[n.line]);const o=e.subject.page.contentBox[n.size],i=yn(e.descriptor.id,r).reduce((e,t)=>e+t.client.marginBox[n.size],0)+t[n.line]-o;return i<=0?null:on(n.line,i)})(e,o,r),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){const t=pn({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}const s=i?en(n.scroll.max,i):n.scroll.max,l=ro(n,s),c=pn({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:c,frame:l}};var oo=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:n,draggables:o,droppables:i,viewport:a,afterCritical:s})=>{const l=(({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:n,viewport:o})=>{const i=r.subject.active;if(!i)return null;const a=r.axis,s=On(i[a.start],i[a.end]),l=hn(n).filter(e=>e!==r).filter(e=>e.isEnabled).filter(e=>Boolean(e.subject.active)).filter(e=>An(o.frame)(Kn(e))).filter(t=>{const r=Kn(t);return e?i[a.crossAxisEnd]<r[a.crossAxisEnd]:r[a.crossAxisStart]<i[a.crossAxisStart]}).filter(e=>{const t=Kn(e),r=On(t[a.start],t[a.end]);return s(t[a.start])||s(t[a.end])||r(i[a.start])||r(i[a.end])}).sort((t,r)=>{const n=Kn(t)[a.crossAxisStart],o=Kn(r)[a.crossAxisStart];return e?n-o:o-n}).filter((e,t,r)=>Kn(e)[a.crossAxisStart]===Kn(r[0])[a.crossAxisStart]);if(!l.length)return null;if(1===l.length)return l[0];const c=l.filter(e=>On(Kn(e)[a.start],Kn(e)[a.end])(t[a.line]));return 1===c.length?c[0]:c.length>1?c.sort((e,t)=>Kn(e)[a.start]-Kn(t)[a.start])[0]:l.sort((e,r)=>{const n=sn(t,dn(Kn(e))),o=sn(t,dn(Kn(r)));return n!==o?n-o:Kn(e)[a.start]-Kn(r)[a.start]})[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:i,viewport:a});if(!l)return null;const c=yn(l.descriptor.id,o),d=(({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:n,afterCritical:o})=>{const i=n.filter(e=>Nn({target:eo(e,o),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((t,n)=>{const i=an(e,qn(r,Qn(t,o))),a=an(e,qn(r,Qn(n,o)));return i<a?-1:a<i?1:t.descriptor.index-n.descriptor.index});return i[0]||null})({pageBorderBoxCenter:t,viewport:a,destination:l,insideDestination:c,afterCritical:s}),u=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:n,draggables:o,destination:i,viewport:a,afterCritical:s})=>{if(!t){if(r.length)return null;const e={displaced:Sn,displacedBy:wn,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},t=Vn({impact:e,draggable:n,droppable:i,draggables:o,afterCritical:s}),l=Dn(n,i)?i:no(i,n,o);return Jn({draggable:n,destination:l,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const l=Boolean(e[i.axis.line]<=t.page.borderBox.center[i.axis.line]),c=(()=>{const e=t.descriptor.index;return t.descriptor.id===n.descriptor.id||l?e:e+1})(),d=to(i.axis,n.displaceBy);return Mn({draggable:n,insideDestination:r,destination:i,viewport:a,displacedBy:d,last:Sn,index:c})})({previousPageBorderBoxCenter:t,destination:l,draggable:r,draggables:o,moveRelativeTo:d,insideDestination:c,viewport:a,afterCritical:s});if(!u)return null;const p=Vn({impact:u,draggable:r,droppable:l,draggables:o,afterCritical:s});return{clientSelection:Zn({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:u,scrollJumpRequest:null}},io=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};var ao=({state:e,type:t})=>{const r=((e,t)=>{const r=io(e);return r?t[r]:null})(e.impact,e.dimensions.droppables),n=Boolean(r),o=e.dimensions.droppables[e.critical.droppable.id],i=r||o,a=i.axis.direction,s="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(s&&!n)return null;const l="MOVE_DOWN"===t||"MOVE_RIGHT"===t,c=e.dimensions.draggables[e.critical.draggable.id],d=e.current.page.borderBoxCenter,{draggables:u,droppables:p}=e.dimensions;return s?Xn({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:c,destination:i,draggables:u,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):oo({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:c,isOver:i,draggables:u,droppables:p,viewport:e.viewport,afterCritical:e.afterCritical})};function so(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function lo(e){const t=On(e.top,e.bottom),r=On(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function co({pageBorderBox:e,draggable:t,droppables:r}){const n=hn(r).filter(t=>{if(!t.isEnabled)return!1;const r=t.subject.active;if(!r)return!1;if(o=r,!((n=e).left<o.right&&n.right>o.left&&n.top<o.bottom&&n.bottom>o.top))return!1;var n,o;if(lo(r)(e.center))return!0;const i=t.axis,a=r.center[i.crossAxisLine],s=e[i.crossAxisStart],l=e[i.crossAxisEnd],c=On(r[i.crossAxisStart],r[i.crossAxisEnd]),d=c(s),u=c(l);return!d&&!u||(d?s<a:l>a)});return n.length?1===n.length?n[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:r}){const n=t.page.borderBox.center,o=r.map(t=>{const r=t.axis,o=on(t.axis.line,e.center[r.line],t.page.borderBox.center[r.crossAxisLine]);return{id:t.descriptor.id,distance:an(n,o)}}).sort((e,t)=>t.distance-e.distance);return o[0]?o[0].id:null}({pageBorderBox:e,draggable:t,candidates:n}):null}const uo=(e,t)=>vr(cn(e,t));function po({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var go=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:o,viewport:i,afterCritical:a})=>{const s=uo(t.page.borderBox,e),l=co({pageBorderBox:s,draggable:t,droppables:n});if(!l)return Cn;const c=n[l],d=yn(c.descriptor.id,r),u=((e,t)=>{const r=e.frame;return r?uo(t,r.scroll.diff.value):t})(c,s);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:n,insideDestination:o,afterCritical:i})=>{if(!n.isCombineEnabled)return null;const a=n.axis,s=to(n.axis,e.displaceBy),l=s.value,c=t[a.start],d=t[a.end],u=In(e,o).find(e=>{const t=e.descriptor.id,n=e.page.borderBox,o=n[a.size]/4,s=kn(t,i),u=po({displaced:r.displaced,id:t});return s?u?d>n[a.start]+o&&d<n[a.end]-o:c>n[a.start]-l+o&&c<n[a.end]-l-o:u?d>n[a.start]+l+o&&d<n[a.end]+l-o:c>n[a.start]+o&&c<n[a.end]-o});return u?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:u.descriptor.id,droppableId:n.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:u,draggable:t,previousImpact:o,destination:c,insideDestination:d,afterCritical:a})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:n,last:o,viewport:i,afterCritical:a})=>{const s=r.axis,l=to(r.axis,t.displaceBy),c=l.value,d=e[s.start],u=e[s.end],p=function({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:In(t,n).find(e=>{const t=e.descriptor.id,r=e.page.borderBox.center[s.line],n=kn(t,a),i=po({displaced:o,id:t});return n?i?u<=r:d<r-c:i?u<=r+c:d<r})||null,inHomeList:Dn(t,r)});return Mn({draggable:t,insideDestination:n,destination:r,viewport:i,last:o,displacedBy:l,index:p})})({pageBorderBoxWithDroppableScroll:u,draggable:t,destination:c,insideDestination:d,last:o.displaced,viewport:i,afterCritical:a})},mo=(e,t)=>({...e,[t.descriptor.id]:t});const fo=({previousImpact:e,impact:t,droppables:r})=>{const n=io(e),o=io(t);if(!n)return r;if(n===o)return r;const i=r[n];if(!i.subject.withPlaceholder)return r;const a=(e=>{const t=e.subject.withPlaceholder;t||jr();const r=e.frame;if(!r){const t=pn({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const n=t.oldFrameMaxScroll;n||jr();const o=ro(r,n),i=pn({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:i,frame:o}})(i);return mo(r,a)};var bo=({state:e,clientSelection:t,dimensions:r,viewport:n,impact:o,scrollJumpRequest:i})=>{const a=n||e.viewport,s=r||e.dimensions,l=t||e.current.client.selection,c=tn(l,e.initial.client.selection),d={offset:c,selection:l,borderBoxCenter:en(e.initial.client.borderBoxCenter,c)},u={selection:en(d.selection,a.scroll.current),borderBoxCenter:en(d.borderBoxCenter,a.scroll.current),offset:en(d.offset,a.scroll.diff.value)},p={client:d,page:u};if("COLLECTING"===e.phase)return{...e,dimensions:s,viewport:a,current:p};const g=s.draggables[e.critical.draggable.id],m=o||go({pageOffset:u.offset,draggable:g,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),f=(({draggable:e,draggables:t,droppables:r,previousImpact:n,impact:o})=>{const i=fo({previousImpact:n,impact:o,droppables:r}),a=io(o);if(!a)return i;const s=r[a];if(Dn(e,s))return i;if(s.subject.withPlaceholder)return i;const l=no(s,e,t);return mo(i,l)})({draggable:g,impact:m,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:p,dimensions:{draggables:s.draggables,droppables:f},impact:m,viewport:a,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}};var ho=({impact:e,viewport:t,draggables:r,destination:n,forceShouldAnimate:o})=>{const i=e.displaced,a=function(e,t){return e.map(e=>t[e])}(i.all,r),s=Tn({afterDragging:a,destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:i});return{...e,displaced:s}},vo=({impact:e,draggable:t,droppable:r,draggables:n,viewport:o,afterCritical:i})=>{const a=Vn({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i});return Zn({pageBorderBoxCenter:a,draggable:t,viewport:o})},yo=({state:e,dimensions:t,viewport:r})=>{"SNAP"!==e.movementMode&&jr();const n=e.impact,o=r||e.viewport,i=t||e.dimensions,{draggables:a,droppables:s}=i,l=a[e.critical.draggable.id],c=io(n);c||jr();const d=s[c],u=ho({impact:n,viewport:o,destination:d,draggables:a}),p=vo({impact:u,draggable:l,droppable:d,draggables:a,viewport:o,afterCritical:e.afterCritical});return bo({impact:u,clientSelection:p,state:e,dimensions:i,viewport:o})},xo=({draggable:e,home:t,draggables:r,viewport:n})=>{const o=to(t.axis,e.displaceBy),i=yn(t.descriptor.id,r),a=i.indexOf(e);-1===a&&jr();const s=i.slice(a+1),l=s.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),c={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:l};var d;return{impact:{displaced:Tn({afterDragging:s,destination:t,displacedBy:o,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(d=e.descriptor,{index:d.index,droppableId:d.droppableId})}},afterCritical:c}},Eo=({additions:e,updatedDroppables:t,viewport:r})=>{const n=r.scroll.diff.value;return e.map(e=>{const o=e.descriptor.droppableId,i=(e=>{const t=e.frame;return t||jr(),t})(t[o]),a=i.scroll.diff.value,s=(({draggable:e,offset:t,initialWindowScroll:r})=>{const n=wr(e.client,t),o=Sr(n,r);return{...e,placeholder:{...e.placeholder,client:n},client:n,page:o}})({draggable:e,offset:en(n,a),initialWindowScroll:r.scroll.initial});return s})};const Io=e=>"SNAP"===e.movementMode,Do=(e,t,r)=>{const n=((e,t)=>({draggables:e.draggables,droppables:mo(e.droppables,t)}))(e.dimensions,t);return!Io(e)||r?bo({state:e,dimensions:n}):yo({state:e,dimensions:n})};function wo(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const So={phase:"IDLE",completed:null,shouldFlush:!1};var Co=(e=So,t)=>{if("FLUSH"===t.type)return{...So,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&jr();const{critical:r,clientSelection:n,viewport:o,dimensions:i,movementMode:a}=t.payload,s=i.draggables[r.draggable.id],l=i.droppables[r.droppable.id],c={selection:n,borderBoxCenter:s.client.borderBox.center,offset:Qr},d={client:c,page:{selection:en(c.selection,o.scroll.initial),borderBoxCenter:en(c.selection,o.scroll.initial),offset:en(c.selection,o.scroll.diff.value)}},u=hn(i.droppables).every(e=>!e.isFixedOnPage),{impact:p,afterCritical:g}=xo({draggable:s,home:l,draggables:i.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:i,initial:d,current:d,isWindowScrollAllowed:u,impact:p,afterCritical:g,onLiftImpact:p,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&jr();return{...e,phase:"COLLECTING"}}if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&jr(),(({state:e,published:t})=>{const r=t.modified.map(t=>{const r=e.dimensions.droppables[t.droppableId];return gn(r,t.scroll)}),n={...e.dimensions.droppables,...fn(r)},o=bn(Eo({additions:t.additions,updatedDroppables:n,viewport:e.viewport})),i={...e.dimensions.draggables,...o};t.removals.forEach(e=>{delete i[e]});const a={droppables:n,draggables:i},s=io(e.impact),l=s?a.droppables[s]:null,c=a.draggables[e.critical.draggable.id],d=a.droppables[e.critical.droppable.id],{impact:u,afterCritical:p}=xo({draggable:c,home:d,draggables:i,viewport:e.viewport}),g=l&&l.isCombineEnabled?e.impact:u,m=go({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:g,viewport:e.viewport,afterCritical:p}),f={...e,phase:"DRAGGING",impact:m,onLiftImpact:u,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return"COLLECTING"===e.phase?f:{...f,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;so(e)||jr();const{client:r}=t.payload;return rn(r,e.current.client.selection)?e:bo({state:e,clientSelection:r,impact:Io(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return wo(e);if("COLLECTING"===e.phase)return wo(e);so(e)||jr();const{id:r,newScroll:n}=t.payload,o=e.dimensions.droppables[r];if(!o)return e;const i=gn(o,n);return Do(e,i,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;so(e)||jr();const{id:r,isEnabled:n}=t.payload,o=e.dimensions.droppables[r];o||jr(),o.isEnabled===n&&jr();const i={...o,isEnabled:n};return Do(e,i,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;so(e)||jr();const{id:r,isCombineEnabled:n}=t.payload,o=e.dimensions.droppables[r];o||jr(),o.isCombineEnabled===n&&jr();const i={...o,isCombineEnabled:n};return Do(e,i,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;so(e)||jr(),e.isWindowScrollAllowed||jr();const r=t.payload.newScroll;if(rn(e.viewport.scroll.current,r))return wo(e);const n=zn(e.viewport,r);return Io(e)?yo({state:e,viewport:n}):bo({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!so(e))return e;const r=t.payload.maxScroll;if(rn(r,e.viewport.scroll.max))return e;const n={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:n}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&jr();const r=ao({state:e,type:t.type});return r?bo({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const r=t.payload.reason;"COLLECTING"!==e.phase&&jr();return{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if("DROP_ANIMATE"===t.type){const{completed:r,dropDuration:n,newHomeClientOffset:o}=t.payload;"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&jr();return{phase:"DROP_ANIMATING",completed:r,dropDuration:n,newHomeClientOffset:o,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};function Oo(e,t){return e instanceof Object&&"type"in e&&e.type===t}const Ao=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),Po=()=>({type:"COLLECTION_STARTING",payload:null}),Ro=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),_o=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Bo=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),No=e=>({type:"MOVE",payload:e}),To=()=>({type:"MOVE_UP",payload:null}),Lo=()=>({type:"MOVE_DOWN",payload:null}),Mo=()=>({type:"MOVE_RIGHT",payload:null}),ko=()=>({type:"MOVE_LEFT",payload:null}),Go=e=>({type:"DROP_COMPLETE",payload:e}),Wo=e=>({type:"DROP",payload:e}),Fo=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});const $o="cubic-bezier(.2,1,.1,1)",jo={drop:0,combining:.7},Uo={drop:.75},Ho={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},qo=`${Ho.outOfTheWay}s ${"cubic-bezier(0.2, 0, 0, 1)"}`,Vo={fluid:`opacity ${qo}`,snap:`transform ${qo}, opacity ${qo}`,drop:e=>{const t=`${e}s ${$o}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${qo}`,placeholder:`height ${qo}, width ${qo}, margin ${qo}`},zo=e=>rn(e,Qr)?void 0:`translate(${e.x}px, ${e.y}px)`,Yo=zo,Zo=(e,t)=>{const r=zo(e);if(r)return t?`${r} scale(${Uo.drop})`:r},{minDropTime:Jo,maxDropTime:Xo}=Ho,Ko=Xo-Jo;const Qo=({getState:e,dispatch:t})=>r=>n=>{if(!Oo(n,"DROP"))return void r(n);const o=e(),i=n.payload.reason;if("COLLECTING"===o.phase)return void t((e=>({type:"DROP_PENDING",payload:e}))({reason:i}));if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&jr(),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&jr();const a=o.critical,s=o.dimensions,l=s.draggables[o.critical.draggable.id],{impact:c,didDropInsideDroppable:d}=(({draggables:e,reason:t,lastImpact:r,home:n,viewport:o,onLiftImpact:i})=>{if(!r.at||"DROP"!==t)return{impact:ho({draggables:e,impact:i,destination:n,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1};return"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:Sn},didDropInsideDroppable:!0}})({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),u=d?xn(c):null,p=d?En(c):null,g={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:l.descriptor.id,type:l.descriptor.type,source:g,reason:i,mode:o.movementMode,destination:u,combine:p},f=(({impact:e,draggable:t,dimensions:r,viewport:n,afterCritical:o})=>{const{draggables:i,droppables:a}=r,s=io(e),l=s?a[s]:null,c=a[t.descriptor.droppableId],d=vo({impact:e,draggable:t,draggables:i,afterCritical:o,droppable:l||c,viewport:n});return tn(d,t.client.borderBox.center)})({impact:c,draggable:l,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:c};if(!(!rn(o.current.client.offset,f)||Boolean(m.combine)))return void t(Go({completed:b}));const h=(({current:e,destination:t,reason:r})=>{const n=an(e,t);if(n<=0)return Jo;if(n>=1500)return Xo;const o=Jo+Ko*(n/1500);return Number(("CANCEL"===r?.6*o:o).toFixed(2))})({current:o.current.client.offset,destination:f,reason:i});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:f,dropDuration:h,completed:b}))};var ei=()=>({x:window.pageXOffset,y:window.pageYOffset});function ti({onWindowScroll:e}){const t=Ar(function(){e(ei())}),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let n=Wr;function o(){return n!==Wr}return{start:function(){o()&&jr(),n=Fr(window,[r])},stop:function(){o()||jr(),t.cancel(),n(),n=Wr},isActive:o}}const ri=e=>{const t=ti({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>r=>{!t.isActive()&&Oo(r,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&(e=>Oo(e,"DROP_COMPLETE")||Oo(e,"DROP_ANIMATE")||Oo(e,"FLUSH"))(r)&&t.stop(),e(r)}};var ni=()=>{const e=[];return{add:t=>{const r=setTimeout(()=>(t=>{const r=e.findIndex(e=>e.timerId===t);-1===r&&jr();const[n]=e.splice(r,1);n.callback()})(r)),n={timerId:r,callback:t};e.push(n)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}};const oi=(e,t)=>{t()},ii=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function ai(e,t,r,n){if(!e)return void r(n(t));const o=(e=>{let t=!1,r=!1;const n=setTimeout(()=>{r=!0}),o=o=>{t||r||(t=!0,e(o),clearTimeout(n))};return o.wasCalled=()=>t,o})(r);e(t,{announce:o}),o.wasCalled()||r(n(t))}var si=(e,t)=>{const r=((e,t)=>{const r=ni();let n=null;const o=r=>{n||jr(),n=null,oi(0,()=>ai(e().onDragEnd,r,t,Yr.onDragEnd))};return{beforeCapture:(t,r)=>{n&&jr(),oi(0,()=>{const n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})})},beforeStart:(t,r)=>{n&&jr(),oi(0,()=>{const n=e().onBeforeDragStart;n&&n(ii(t,r))})},start:(o,i)=>{n&&jr();const a=ii(o,i);n={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},r.add(()=>{oi(0,()=>ai(e().onDragStart,a,t,Yr.onDragStart))})},update:(o,i)=>{const a=xn(i),s=En(i);n||jr();const l=!((e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n})(o,n.lastCritical);l&&(n.lastCritical=o);const c=(u=a,!(null==(d=n.lastLocation)&&null==u||null!=d&&null!=u&&d.droppableId===u.droppableId&&d.index===u.index));var d,u;c&&(n.lastLocation=a);const p=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(n.lastCombine,s);if(p&&(n.lastCombine=s),!l&&!c&&!p)return;const g={...ii(o,n.mode),combine:s,destination:a};r.add(()=>{oi(0,()=>ai(e().onDragUpdate,g,t,Yr.onDragUpdate))})},flush:()=>{n||jr(),r.flush()},drop:o,abort:()=>{if(!n)return;const e={...ii(n.lastCritical,n.mode),combine:null,destination:null,reason:"CANCEL"};o(e)}}})(e,t);return e=>t=>n=>{if(Oo(n,"BEFORE_INITIAL_CAPTURE"))return void r.beforeCapture(n.payload.draggableId,n.payload.movementMode);if(Oo(n,"INITIAL_PUBLISH")){const e=n.payload.critical;return r.beforeStart(e,n.payload.movementMode),t(n),void r.start(e,n.payload.movementMode)}if(Oo(n,"DROP_COMPLETE")){const e=n.payload.completed.result;return r.flush(),t(n),void r.drop(e)}if(t(n),Oo(n,"FLUSH"))return void r.abort();const o=e.getState();"DRAGGING"===o.phase&&r.update(o.critical,o.impact)}};const li=e=>t=>r=>{if(!Oo(r,"DROP_ANIMATION_FINISHED"))return void t(r);const n=e.getState();"DROP_ANIMATING"!==n.phase&&jr(),e.dispatch(Go({completed:n.completed}))},ci=e=>{let t=null,r=null;return n=>o=>{if((Oo(o,"FLUSH")||Oo(o,"DROP_COMPLETE")||Oo(o,"DROP_ANIMATION_FINISHED"))&&(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(o),!Oo(o,"DROP_ANIMATE"))return;const i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame(()=>{r=null,t=Fr(window,[i])})}};var di=e=>t=>r=>n=>{if((e=>Oo(e,"DROP_COMPLETE")||Oo(e,"DROP_ANIMATE")||Oo(e,"FLUSH"))(n))return e.stop(),void r(n);if(Oo(n,"INITIAL_PUBLISH")){r(n);const o=t.getState();return"DRAGGING"!==o.phase&&jr(),void e.start(o)}r(n),e.scroll(t.getState())};const ui=e=>t=>r=>{if(t(r),!Oo(r,"PUBLISH_WHILE_DRAGGING"))return;const n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(Wo({reason:n.reason})))},pi=at;var gi=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:o,autoScroller:i})=>{return nt(Co,pi(function(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(Qe(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map(e=>e(a));return i=at(...s)(o.dispatch),{...o,dispatch:i}}}((a=r,()=>e=>t=>{Oo(t,"INITIAL_PUBLISH")&&a.dragging(),Oo(t,"DROP_ANIMATE")&&a.dropping(t.payload.completed.result.reason),(Oo(t,"FLUSH")||Oo(t,"DROP_COMPLETE"))&&a.resting(),e(t)}),(e=>()=>t=>r=>{(Oo(r,"DROP_COMPLETE")||Oo(r,"FLUSH")||Oo(r,"DROP_ANIMATE"))&&e.stopPublishing(),t(r)})(e),(e=>({getState:t,dispatch:r})=>n=>o=>{if(!Oo(o,"LIFT"))return void n(o);const{id:i,clientSelection:a,movementMode:s}=o.payload,l=t();"DROP_ANIMATING"===l.phase&&r(Go({completed:l.completed})),"IDLE"!==t().phase&&jr(),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:s}});const c={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},{critical:d,dimensions:u,viewport:p}=e.startPublishing(c);r({type:"INITIAL_PUBLISH",payload:{critical:d,dimensions:u,clientSelection:a,movementMode:s,viewport:p}})})(e),Qo,li,ci,ui,di(i),ri,(e=>{let t=!1;return()=>r=>n=>{if(Oo(n,"INITIAL_PUBLISH"))return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if(Oo(n,"FLUSH"))return t=!1,void e.tryRestoreFocusRecorded();if(Oo(n,"DROP_COMPLETE")){t=!1;const r=n.payload.completed.result;r.combine&&e.tryShiftRecord(r.draggableId,r.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),si(n,o))));var a};var mi=({scrollHeight:e,scrollWidth:t,height:r,width:n})=>{const o=tn({x:t,y:e},{x:n,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},fi=()=>{const e=document.documentElement;return e||jr(),e},bi=()=>{const e=fi();return mi({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},hi=({critical:e,scrollOptions:t,registry:r})=>{const n=(()=>{const e=ei(),t=bi(),r=e.y,n=e.x,o=fi(),i=o.clientWidth,a=o.clientHeight;return{frame:vr({top:r,left:n,right:n+i,bottom:r+a}),scroll:{initial:e,current:e,max:t,diff:{value:Qr,displacement:Qr}}}})(),o=n.scroll.current,i=e.droppable,a=r.droppable.getAllByType(i.type).map(e=>e.callbacks.getDimensionAndWatchScroll(o,t)),s=r.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(o));return{dimensions:{draggables:bn(s),droppables:fn(a)},critical:e,viewport:n}};function vi(e,t,r){if(r.descriptor.id===t.id)return!1;if(r.descriptor.type!==t.type)return!1;return"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode}var yi=(e,t)=>{let r=null;const n=function({registry:e,callbacks:t}){let r={additions:{},removals:{},modified:{}},n=null;const o=()=>{n||(t.collectionStarting(),n=requestAnimationFrame(()=>{n=null;const{additions:o,removals:i,modified:a}=r,s=Object.keys(o).map(t=>e.draggable.getById(t).getDimension(Qr)).sort((e,t)=>e.descriptor.index-t.descriptor.index),l=Object.keys(a).map(t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()})),c={additions:s,removals:Object.keys(i),modified:l};r={additions:{},removals:{},modified:{}},t.publish(c)}))};return{add:e=>{const t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],o()},remove:e=>{const t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],o()},stop:()=>{n&&(cancelAnimationFrame(n),n=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=t=>{r||jr();const o=r.critical.draggable;"ADDITION"===t.type&&vi(e,o,t.value)&&n.add(t.value),"REMOVAL"===t.type&&vi(e,o,t.value)&&n.remove(t.value)},i={updateDroppableIsEnabled:(n,o)=>{e.droppable.exists(n)||jr(),r&&t.updateDroppableIsEnabled({id:n,isEnabled:o})},updateDroppableIsCombineEnabled:(n,o)=>{r&&(e.droppable.exists(n)||jr(),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:o}))},scrollDroppable:(t,n)=>{r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:(n,o)=>{r&&(e.droppable.exists(n)||jr(),t.updateDroppableScroll({id:n,newScroll:o}))},startPublishing:t=>{r&&jr();const n=e.draggable.getById(t.draggableId),i=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:i.descriptor},s=e.subscribe(o);return r={critical:a,unsubscribe:s},hi({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!r)return;n.stop();const t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),r.unsubscribe(),r=null}};return i},xi=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason),Ei=e=>{window.scrollBy(e.x,e.y)};const Ii=mn(e=>hn(e).filter(e=>!!e.isEnabled&&!!e.frame));var Di=({center:e,destination:t,droppables:r})=>{if(t){const e=r[t];return e.frame?e:null}const n=((e,t)=>{const r=Ii(t).find(t=>(t.frame||jr(),lo(t.frame.pageMarginBox)(e)))||null;return r})(e,r);return n};const wi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Si=({startOfRange:e,endOfRange:t,current:r})=>{const n=t-e;if(0===n)return 0;return(r-e)/n},Ci=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:o})=>{const i=((e,t,r=()=>wi)=>{const n=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return n.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const o=1-Si({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),i=n.maxPixelScroll*n.ease(o);return Math.ceil(i)})(e,t,o);return 0===i?0:n?Math.max(((e,t,r)=>{const n=r(),o=n.durationDampening.accelerateAt,i=n.durationDampening.stopDampeningAt,a=t,s=i,l=Date.now()-a;if(l>=i)return e;if(l<o)return 1;const c=Si({startOfRange:o,endOfRange:s,current:l}),d=e*n.ease(c);return Math.ceil(d)})(i,r,o),1):i},Oi=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=((e,t,r=()=>wi)=>{const n=r();return{startScrollingFrom:e[t.size]*n.startFromPercentage,maxScrollValueAt:e[t.size]*n.maxScrollAtPercentage}})(e,n,i);return t[n.end]<t[n.start]?Ci({distanceToEdge:t[n.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i}):-1*Ci({distanceToEdge:t[n.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})};const Ai=ln(e=>0===e?0:e);var Pi=({dragStartTime:e,container:t,subject:r,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a={top:n.y-t.top,right:t.right-n.x,bottom:t.bottom-n.y,left:n.x-t.left},s=Oi({container:t,distanceToEdges:a,dragStartTime:e,axis:Rn,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),l=Oi({container:t,distanceToEdges:a,dragStartTime:e,axis:_n,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),c=Ai({x:l,y:s});if(rn(c,Qr))return null;const d=(({container:e,subject:t,proposedScroll:r})=>{const n=t.height>e.height,o=t.width>e.width;return o||n?o&&n?null:{x:o?0:r.x,y:n?0:r.y}:r})({container:t,subject:r,proposedScroll:c});return d?rn(d,Qr)?null:d:null};const Ri=ln(e=>0===e?0:e>0?1:-1),_i=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:r,change:n})=>{const o=en(t,n),i={x:e(o.x,r.x),y:e(o.y,r.y)};return rn(i,Qr)?null:i}})(),Bi=({max:e,current:t,change:r})=>{const n={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=Ri(r),i=_i({max:n,current:t,change:o});return!i||(0!==o.x&&0===i.x||0!==o.y&&0===i.y)},Ni=(e,t)=>Bi({current:e.scroll.current,max:e.scroll.max,change:t}),Ti=(e,t)=>{const r=e.frame;return!!r&&Bi({current:r.scroll.current,max:r.scroll.max,change:t})};var Li=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:n,scrollDroppable:o,getAutoScrollerOptions:i})=>{const a=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const o=(({viewport:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=Pi({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return a&&Ni(e,a)?a:null})({dragStartTime:t,viewport:e.viewport,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:i});if(o)return void n(o)}const l=Di({center:a,destination:io(e.impact),droppables:e.dimensions.droppables});if(!l)return;const c=(({droppable:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=e.frame;if(!a)return null;const s=Pi({dragStartTime:n,container:a.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return s&&Ti(e,s)?s:null})({dragStartTime:t,droppable:l,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:i});c&&o(l.descriptor.id,c)},Mi=({move:e,scrollDroppable:t,scrollWindow:r})=>{const n=(e,r)=>{if(!Ti(e,r))return r;const n=((e,t)=>{const r=e.frame;return r&&Ti(e,t)?_i({current:r.scroll.current,max:r.scroll.max,change:t}):null})(e,r);if(!n)return t(e.descriptor.id,r),null;const o=tn(r,n);t(e.descriptor.id,o);return tn(r,o)},o=(e,t,n)=>{if(!e)return n;if(!Ni(t,n))return n;const o=((e,t)=>{if(!Ni(e,t))return null;const r=e.scroll.max,n=e.scroll.current;return _i({current:n,max:r,change:t})})(t,n);if(!o)return r(n),null;const i=tn(n,o);r(i);return tn(n,i)};return t=>{const r=t.scrollJumpRequest;if(!r)return;const i=io(t.impact);i||jr();const a=n(t.dimensions.droppables[i],r);if(!a)return;const s=t.viewport,l=o(t.isWindowScrollAllowed,s,a);l&&((t,r)=>{const n=en(t.current.client.selection,r);e({client:n})})(t,l)}};const ki="data-rfd",Gi=(()=>{const e=`${ki}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),Wi=(()=>{const e=`${ki}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Fi=(()=>{const e=`${ki}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),$i={contextId:`${ki}-scroll-container-context-id`},ji=(e,t)=>e.map(e=>{const r=e.styles[t];return r?`${e.selector} { ${r} }`:""}).join(" ");const Ui="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Tr:Nr,Hi=()=>{const e=document.querySelector("head");return e||jr(),e},qi=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Vi(e,t){const r=Xr(()=>(e=>{const t=(r=e,e=>`[${e}="${r}"]`);var r;const n=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(Gi.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),o=[(()=>{const e=`\n transition: ${Vo.outOfTheWay};\n `;return{selector:t(Wi.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),n,{selector:t(Fi.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:ji(o,"always"),resting:ji(o,"resting"),dragging:ji(o,"dragging"),dropAnimating:ji(o,"dropAnimating"),userCancel:ji(o,"userCancel")}})(e),[e]),n=Br(null),o=Br(null),i=Kr(mn(e=>{const t=o.current;t||jr(),t.textContent=e}),[]),a=Kr(e=>{const t=n.current;t||jr(),t.textContent=e},[]);Ui(()=>{(n.current||o.current)&&jr();const s=qi(t),l=qi(t);return n.current=s,o.current=l,s.setAttribute(`${ki}-always`,e),l.setAttribute(`${ki}-dynamic`,e),Hi().appendChild(s),Hi().appendChild(l),a(r.always),i(r.resting),()=>{const e=e=>{const t=e.current;t||jr(),Hi().removeChild(t),e.current=null};e(n),e(o)}},[t,a,i,r.always,r.resting,e]);const s=Kr(()=>i(r.dragging),[i,r.dragging]),l=Kr(e=>{i("DROP"!==e?r.userCancel:r.dropAnimating)},[i,r.dropAnimating,r.userCancel]),c=Kr(()=>{o.current&&i(r.resting)},[i,r.resting]);return Xr(()=>({dragging:s,dropping:l,resting:c}),[s,l,c])}function zi(e,t){return Array.from(e.querySelectorAll(t))}var Yi=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Zi(e){return e instanceof Yi(e).HTMLElement}function Ji(e){const t=Br({}),r=Br(null),n=Br(null),o=Br(!1),i=Kr(function(e,r){const n={id:e,focus:r};return t.current[e]=n,function(){const r=t.current;r[e]!==n&&delete r[e]}},[]),a=Kr(function(t){const r=function(e,t){const r=`[${Gi.contextId}="${e}"]`,n=zi(document,r);if(!n.length)return null;const o=n.find(e=>e.getAttribute(Gi.draggableId)===t);return o&&Zi(o)?o:null}(e,t);r&&r!==document.activeElement&&r.focus()},[e]),s=Kr(function(e,t){r.current===e&&(r.current=t)},[]),l=Kr(function(){n.current||o.current&&(n.current=requestAnimationFrame(()=>{n.current=null;const e=r.current;e&&a(e)}))},[a]),c=Kr(function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(Gi.draggableId)===e&&(r.current=e)},[]);Ui(()=>(o.current=!0,function(){o.current=!1;const e=n.current;e&&cancelAnimationFrame(e)}),[]);return Xr(()=>({register:i,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}),[i,c,l,s])}function Xi(){const e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach(t=>t(e))}function n(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:(t,r)=>{const n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const o=t.descriptor.id,i=n(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&r({type:"REMOVAL",value:t}))},getById:function(e){const t=n(e);return t||jr(),t},findById:n,exists:e=>Boolean(n(e)),getAllByType:t=>Object.values(e.draggables).filter(e=>e.descriptor.type===t)},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const r=o(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=o(e);return t||jr(),t},findById:o,exists:e=>Boolean(o(e)),getAllByType:t=>Object.values(e.droppables).filter(e=>e.descriptor.type===t)},subscribe:function(e){return t.push(e),function(){const r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Ki=Rr.createContext(null),Qi=()=>{const e=document.body;return e||jr(),e};const ea={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};const ta={separator:"::"};function ra(e,t=ta){const r=Rr.useId();return Xr(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var na=Rr.createContext(null);function oa(e){const t=Br(e);return Nr(()=>{t.current=e}),t}function ia(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const aa=9,sa=13,la=33,ca=34,da=35,ua=36,pa={[sa]:!0,[aa]:!0};var ga=e=>{pa[e.keyCode]&&e.preventDefault()};const ma=(()=>{const e="visibilitychange";if("undefined"==typeof document)return e;return[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(e=>`on${e}`in document)||e})();const fa={type:"IDLE"};function ba({cancel:e,completed:t,getPhase:r,setPhase:n}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:o,clientY:i}=e;if(0!==t)return;const a={x:o,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&jr();const l=s.point;if(c=l,d=a,!(Math.abs(d.x-c.x)>=5||Math.abs(d.y-c.y)>=5))return;var c,d;e.preventDefault();const u=s.actions.fluidLift(a);n({type:"DRAGGING",actions:u})}},{eventName:"mouseup",fn:n=>{const o=r();"DRAGGING"===o.type?(n.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===r().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"!==r().type)return 27===t.keyCode?(t.preventDefault(),void e()):void ga(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===r().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{const n=r();"IDLE"===n.type&&jr(),n.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:ma,fn:e}]}function ha(){}const va={[ca]:!0,[la]:!0,[ua]:!0,[da]:!0};function ya(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:n=>27===n.keyCode?(n.preventDefault(),void r()):32===n.keyCode?(n.preventDefault(),t(),void e.drop()):40===n.keyCode?(n.preventDefault(),void e.moveDown()):38===n.keyCode?(n.preventDefault(),void e.moveUp()):39===n.keyCode?(n.preventDefault(),void e.moveRight()):37===n.keyCode?(n.preventDefault(),void e.moveLeft()):void(va[n.keyCode]?n.preventDefault():ga(n))},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:ma,fn:r}]}const xa={type:"IDLE"};const Ea=["input","button","textarea","select","option","optgroup","video","audio"];function Ia(e,t){if(null==t)return!1;if(Ea.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&Ia(e,t.parentElement)}function Da(e,t){const r=t.target;return!!Zi(r)&&Ia(e,r)}var wa=e=>vr(e.getBoundingClientRect()).center;const Sa=(()=>{const e="matches";if("undefined"==typeof document)return e;return[e,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||e})();function Ca(e,t){return null==e?null:e[Sa](t)?e:Ca(e.parentElement,t)}function Oa(e,t){return e.closest?e.closest(t):Ca(e,t)}function Aa(e,t){const r=t.target;if(!((n=r)instanceof Yi(n).Element))return null;var n;const o=function(e){return`[${Gi.contextId}="${e}"]`}(e),i=Oa(r,o);return i&&Zi(i)?i:null}function Pa(e){e.preventDefault()}function Ra({expected:e,phase:t,isLockActive:r,shouldWarn:n}){return!!r()&&e===t}function _a({lockAPI:e,store:t,registry:r,draggableId:n}){if(e.isClaimed())return!1;const o=r.draggable.findById(n);return!!o&&(!!o.options.isEnabled&&!!xi(t.getState(),n))}function Ba({lockAPI:e,contextId:t,store:r,registry:n,draggableId:o,forceSensorStop:i,sourceEvent:a}){if(!_a({lockAPI:e,store:r,registry:n,draggableId:o}))return null;const s=n.draggable.getById(o),l=function(e,t){const r=`[${Wi.contextId}="${e}"]`,n=zi(document,r).find(e=>e.getAttribute(Wi.id)===t);return n&&Zi(n)?n:null}(t,s.descriptor.id);if(!l)return null;if(a&&!s.options.canDragInteractiveElements&&Da(l,a))return null;const c=e.claim(i||Wr);let d="PRE_DRAG";function u(){return s.options.shouldRespectForcePress}function p(){return e.isActive(c)}const g=function(e,t){Ra({expected:e,phase:d,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(t){function n(){e.release(),d="COMPLETED"}function o(e,o={shouldBlockNextClick:!1}){if(t.cleanup(),o.shouldBlockNextClick){const e=Fr(window,[{eventName:"click",fn:Pa,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}n(),r.dispatch(Wo({reason:e}))}return"PRE_DRAG"!==d&&(n(),jr()),r.dispatch((e=>({type:"LIFT",payload:e}))(t.liftActionArgs)),d="DRAGGING",{isActive:()=>Ra({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:u,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e),...t.actions}}return{isActive:()=>Ra({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:u,fluidLift:function(e){const t=Ar(e=>{g(()=>No({client:e}))});return{...m({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>g(To),moveRight:()=>g(Mo),moveDown:()=>g(Lo),moveLeft:()=>g(ko)};return m({liftActionArgs:{id:o,clientSelection:wa(l),movementMode:"SNAP"},cleanup:Wr,actions:e})},abort:function(){Ra({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&e.release()}}}const Na=[function(e){const t=Br(fa),r=Br(Wr),n=Xr(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented)return;if(0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;const n=e.findClosestDraggableId(t);if(!n)return;const o=e.tryGetLock(n,a,{sourceEvent:t});if(!o)return;t.preventDefault();const i={x:t.clientX,y:t.clientY};r.current(),c(o,i)}}),[e]),o=Xr(()=>({eventName:"webkitmouseforcewillbegin",fn:t=>{if(t.defaultPrevented)return;const r=e.findClosestDraggableId(t);if(!r)return;const n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}),[e]),i=Kr(function(){r.current=Fr(window,[o,n],{passive:!1,capture:!0})},[o,n]),a=Kr(()=>{"IDLE"!==t.current.type&&(t.current=fa,r.current(),i())},[i]),s=Kr(()=>{const e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[a]),l=Kr(function(){const e=ba({cancel:s,completed:a,getPhase:()=>t.current,setPhase:e=>{t.current=e}});r.current=Fr(window,e,{capture:!0,passive:!1})},[s,a]),c=Kr(function(e,r){"IDLE"!==t.current.type&&jr(),t.current={type:"PENDING",point:r,actions:e},l()},[l]);Ui(function(){return i(),function(){r.current()}},[i])},function(e){const t=Br(ha),r=Xr(()=>({eventName:"keydown",fn:function(r){if(r.defaultPrevented)return;if(32!==r.keyCode)return;const o=e.findClosestDraggableId(r);if(!o)return;const i=e.tryGetLock(o,l,{sourceEvent:r});if(!i)return;r.preventDefault();let a=!0;const s=i.snapLift();function l(){a||jr(),a=!1,t.current(),n()}t.current(),t.current=Fr(window,ya(s,l),{capture:!0,passive:!1})}}),[e]),n=Kr(function(){t.current=Fr(window,[r],{passive:!1,capture:!0})},[r]);Ui(function(){return n(),function(){t.current()}},[n])},function(e){const t=Br(xa),r=Br(Wr),n=Kr(function(){return t.current},[]),o=Kr(function(e){t.current=e},[]),i=Xr(()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;const n=e.findClosestDraggableId(t);if(!n)return;const o=e.tryGetLock(n,s,{sourceEvent:t});if(!o)return;const i=t.touches[0],{clientX:a,clientY:l}=i,c={x:a,y:l};r.current(),u(o,c)}}),[e]),a=Kr(function(){r.current=Fr(window,[i],{capture:!0,passive:!1})},[i]),s=Kr(()=>{const e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(xa),r.current(),a())},[a,o]),l=Kr(()=>{const e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),c=Kr(function(){const e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:n},o=Fr(window,function({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const n=r();if("DRAGGING"!==n.type)return void e();n.hasMoved=!0;const{clientX:o,clientY:i}=t.touches[0],a={x:o,y:i};t.preventDefault(),n.actions.move(a)}},{eventName:"touchend",fn:n=>{const o=r();"DRAGGING"===o.type?(n.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===r().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const n=r();"IDLE"===n.type&&jr();const o=t.touches[0];if(!o)return;if(!(o.force>=.15))return;const i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void t.preventDefault():void e():void t.preventDefault();i&&e()}},{eventName:ma,fn:e}]}(t),e),i=Fr(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:r=>{"DRAGGING"===t().type?(27===r.keyCode&&r.preventDefault(),e()):e()}},{eventName:ma,fn:e}]}(t),e);r.current=function(){o(),i()}},[l,n,s]),d=Kr(function(){const e=n();"PENDING"!==e.type&&jr();const t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})},[n,o]),u=Kr(function(e,t){"IDLE"!==n().type&&jr();const r=setTimeout(d,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),c()},[c,n,o,d]);Ui(function(){return a(),function(){r.current();const e=n();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(xa))}},[n,a,o]),Ui(function(){return Fr(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}];function Ta({contextId:e,store:t,registry:r,customSensors:n,enableDefaultSensors:o}){const i=[...o?Na:[],...n||[]],a=_r(()=>function(){let e=null;function t(){e||jr(),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&jr();const r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}())[0],s=Kr(function(e,t){ia(e)&&!ia(t)&&a.tryAbandon()},[a]);Ui(function(){let e=t.getState();return t.subscribe(()=>{const r=t.getState();s(e,r),e=r})},[a,t,s]),Ui(()=>a.tryAbandon,[a.tryAbandon]);const l=Kr(e=>_a({lockAPI:a,registry:r,store:t,draggableId:e}),[a,r,t]),c=Kr((n,o,i)=>Ba({lockAPI:a,registry:r,contextId:e,store:t,draggableId:n,forceSensorStop:o||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null}),[e,a,r,t]),d=Kr(t=>function(e,t){const r=Aa(e,t);return r?r.getAttribute(Gi.draggableId):null}(e,t),[e]),u=Kr(e=>{const t=r.draggable.findById(e);return t?t.options:null},[r.draggable]),p=Kr(function(){a.isClaimed()&&(a.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch({type:"FLUSH",payload:null}))},[a,t]),g=Kr(()=>a.isClaimed(),[a]),m=Xr(()=>({canGetLock:l,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:u,tryReleaseLock:p,isLockClaimed:g}),[l,c,d,u,p,g]);for(let e=0;e<i.length;e++)i[e](m)}function La(e){return e.current||jr(),e.current}function Ma(e){const{contextId:t,setCallbacks:r,sensors:n,nonce:o,dragHandleUsageInstructions:i}=e,a=Br(null),s=oa(e),l=Kr(()=>(e=>({onBeforeCapture:t=>{kr(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}))(s.current),[s]),c=Kr(()=>(e=>({...wi,...e.autoScrollerOptions,durationDampening:{...wi.durationDampening,...e.autoScrollerOptions}}))(s.current),[s]),d=function(e){const t=Xr(()=>(e=>`rfd-announcement-${e}`)(e),[e]),r=Br(null);return Nr(function(){const e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Pr(e.style,ea),Qi().appendChild(e),function(){setTimeout(function(){const t=Qi();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)})}},[t]),Kr(e=>{const t=r.current;t&&(t.textContent=e)},[])}(t),u=function({contextId:e,text:t}){const r=ra("hidden-text",{separator:"-"}),n=Xr(()=>function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}({contextId:e,uniqueId:r}),[r,e]);return Nr(function(){const e=document.createElement("div");return e.id=n,e.textContent=t,e.style.display="none",Qi().appendChild(e),function(){const t=Qi();t.contains(e)&&t.removeChild(e)}},[n,t]),n}({contextId:t,text:i}),p=Vi(t,o),g=Kr(e=>{La(a).dispatch(e)},[]),m=Xr(()=>it({publishWhileDragging:Ao,updateDroppableScroll:Ro,updateDroppableIsEnabled:_o,updateDroppableIsCombineEnabled:Bo,collectionStarting:Po},g),[g]),f=function(){const e=Xr(Xi,[]);return Nr(()=>function(){e.clean()},[e]),e}(),b=Xr(()=>yi(f,m),[f,m]),h=Xr(()=>(({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{const o=(({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>wi})=>{const n=Ar(e),o=Ar(t);let i=null;const a=e=>{i||jr();const{shouldUseTimeDampening:t,dragStartTime:a}=i;Li({state:e,scrollWindow:n,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{i&&jr();const t=Date.now();let n=!1;const o=()=>{n=!0};Li({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:r}),i={dragStartTime:t,shouldUseTimeDampening:n},n&&a(e)},stop:()=>{i&&(n.cancel(),o.cancel(),i=null)},scroll:a}})({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),i=Mi({move:r,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{n().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}})({scrollWindow:Ei,scrollDroppable:b.scrollDroppable,getAutoScrollerOptions:c,...it({move:No},g)}),[b.scrollDroppable,g,c]),v=Ji(t),y=Xr(()=>gi({announce:d,autoScroller:h,dimensionMarshal:b,focusMarshal:v,getResponders:l,styleMarshal:p}),[d,h,b,v,l,p]);a.current=y;const x=Kr(()=>{const e=La(a);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})},[]),E=Kr(()=>{const e=La(a).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);r(Xr(()=>({isDragging:E,tryAbort:x}),[E,x]));const I=Kr(e=>xi(La(a).getState(),e),[]),D=Kr(()=>so(La(a).getState()),[]),w=Xr(()=>({marshal:b,focus:v,contextId:t,canLift:I,isMovementAllowed:D,dragHandleUsageInstructionsId:u,registry:f}),[t,b,u,v,I,D,f]);return Ta({contextId:t,store:y,registry:f,customSensors:n||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),Nr(()=>x,[x]),Rr.createElement(na.Provider,{value:w},Rr.createElement(ur,{context:Ki,store:y},e.children))}function ka(e){const t=Rr.useId(),r=e.dragHandleUsageInstructions||Yr.dragHandleUsageInstructions;return Rr.createElement(Ur,null,n=>Rr.createElement(Ma,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const Ga=5e3,Wa=4500,Fa=(e,t)=>t?Vo.drop(t.duration):e?Vo.snap:Vo.fluid,$a=(e,t)=>{if(e)return t?jo.drop:jo.combining};function ja(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:r,combineWith:n,dropping:o}=e,i=Boolean(n),a=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),s=Boolean(o),l=s?Zo(r,i):Yo(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Fa(a,o),transform:l,opacity:$a(i,s),zIndex:s?Wa:Ga,pointerEvents:"none"}}(e):{transform:Yo((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}function Ua(e){const t=ra("draggable"),{descriptor:r,registry:n,getDraggableRef:o,canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:s}=e,l=Xr(()=>({canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:s}),[i,s,a]),c=Kr(e=>{const t=o();return t||jr(),function(e,t,r=Qr){const n=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=Cr(o,n),a=Sr(i,r);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)},[r,o]),d=Xr(()=>({uniqueId:t,descriptor:r,options:l,getDimension:c}),[r,c,l,t]),u=Br(d),p=Br(!0);Ui(()=>(n.draggable.register(u.current),()=>n.draggable.unregister(u.current)),[n.draggable]),Ui(()=>{if(p.current)return void(p.current=!1);const e=u.current;u.current=d,n.draggable.update(d,e)},[d,n.draggable])}var Ha=Rr.createContext(null);function qa(e){const t=Lr(e);return t||jr(),t}function Va(e){e.preventDefault()}var za=(e,t)=>e===t,Ya=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};function Za(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const Ja={mapped:{type:"SECONDARY",offset:Qr,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Za(null)}};const Xa=dr(()=>{const e=function(){const e=mn((e,t)=>({x:e,y:t})),t=mn((e,t,r=null,n=null,o=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null})),r=mn((e,r,n,o,i=null,a=null,s=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:s,snapshot:t(r,o,i,a,null)}}));return(n,o)=>{if(ia(n)){if(n.critical.draggable.id!==o.draggableId)return null;const t=n.current.client.offset,a=n.dimensions.draggables[o.draggableId],s=io(n.impact),l=(i=n.impact).at&&"COMBINE"===i.at.type?i.at.combine.draggableId:null,c=n.forceShouldAnimate;return r(e(t.x,t.y),n.movementMode,a,o.isClone,s,l,c)}var i;if("DROP_ANIMATING"===n.phase){const e=n.completed;if(e.result.draggableId!==o.draggableId)return null;const r=o.isClone,i=n.dimensions.draggables[o.draggableId],a=e.result,s=a.mode,l=Ya(a),c=(e=>e.combine?e.combine.draggableId:null)(a),d={duration:n.dropDuration,curve:$o,moveTo:n.newHomeClientOffset,opacity:c?jo.drop:null,scale:c?Uo.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:i,dropping:d,draggingOver:l,combineWith:c,mode:s,forceShouldAnimate:null,snapshot:t(s,r,l,c,d)}}}return null}}(),t=function(){const e=mn((e,t)=>({x:e,y:t})),t=mn(Za),r=mn((e,r=null,n)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}})),n=e=>e?r(Qr,e,!0):null,o=(t,o,i,a)=>{const s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=En(i),d=c&&c.draggableId===t?o:null;if(!s){if(!l)return n(d);if(i.displaced.invisible[t])return null;const o=nn(a.displacedBy.point),s=e(o.x,o.y);return r(s,d,!0)}if(l)return n(d);const u=i.displacedBy.point,p=e(u.x,u.y);return r(p,d,s.shouldAnimate)};return(e,t)=>{if(ia(e))return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const r=e.completed;return r.result.draggableId===t.draggableId?null:o(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return(r,n)=>e(r,n)||t(r,n)||Ja},{dropAnimationFinished:Fo},null,{context:Ki,areStatePropsEqual:za})(e=>{const t=Br(null),r=Kr((e=null)=>{t.current=e},[]),n=Kr(()=>t.current,[]),{contextId:o,dragHandleUsageInstructionsId:i,registry:a}=qa(na),{type:s,droppableId:l}=qa(Ha),c=Xr(()=>({id:e.draggableId,index:e.index,type:s,droppableId:l}),[e.draggableId,e.index,s,l]),{children:d,draggableId:u,isEnabled:p,shouldRespectForcePress:g,canDragInteractiveElements:m,isClone:f,mapped:b,dropAnimationFinished:h}=e;if(!f){Ua(Xr(()=>({descriptor:c,registry:a,getDraggableRef:n,canDragInteractiveElements:m,shouldRespectForcePress:g,isEnabled:p}),[c,a,n,m,g,p]))}const v=Xr(()=>p?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":u,"data-rfd-drag-handle-context-id":o,draggable:!1,onDragStart:Va}:null,[o,i,u,p]),y=Kr(e=>{"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&kr(h)},[h,b]),x=Xr(()=>{const e=ja(b),t="DRAGGING"===b.type&&b.dropping?y:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":o,"data-rfd-draggable-id":u,style:e,onTransitionEnd:t},dragHandleProps:v}},[o,v,u,b,y,r]),E=Xr(()=>({draggableId:c.id,type:c.type,source:{index:c.index,droppableId:c.droppableId}}),[c.droppableId,c.id,c.index,c.type]);return Rr.createElement(Rr.Fragment,null,d(x,b.snapshot,E))});function Ka(e){return qa(Ha).isUsingCloneFor!==e.draggableId||e.isClone?Rr.createElement(Xa,e):null}function Qa(e){const t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return Rr.createElement(Ka,Pr({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}const es=e=>t=>e===t,ts=es("scroll"),rs=es("auto"),ns=(e,t)=>t(e.overflowX)||t(e.overflowY),os=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return ns(r,ts)||ns(r,rs)})(e)?e:os(e.parentElement);var is=e=>({x:e.scrollLeft,y:e.scrollTop});const as=e=>{if(!e)return!1;return"fixed"===window.getComputedStyle(e).position||as(e.parentElement)};var ss=({ref:e,descriptor:t,env:r,windowScroll:n,direction:o,isDropDisabled:i,isCombineEnabled:a,shouldClipSubject:s})=>{const l=r.closestScrollable,c=((e,t)=>{const r=Or(e);if(!t)return r;if(e!==t)return r;const n=r.paddingBox.top-t.scrollTop,o=r.paddingBox.left-t.scrollLeft,i=n+t.scrollHeight,a=o+t.scrollWidth,s=yr({top:n,right:a,bottom:i,left:o},r.border);return Ir({borderBox:s,margin:r.margin,border:r.border,padding:r.padding})})(e,l),d=Sr(c,n),u=(()=>{if(!l)return null;const e=Or(l),t={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:e,page:Sr(e,n),scroll:is(l),scrollSize:t,shouldClipSubject:s}})(),p=(({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:n,direction:o,client:i,page:a,closest:s})=>{const l=(()=>{if(!s)return null;const{scrollSize:e,client:t}=s,r=mi({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:r,diff:{value:Qr,displacement:Qr}}}})(),c="vertical"===o?Rn:_n;return{descriptor:e,isCombineEnabled:r,isFixedOnPage:n,axis:c,isEnabled:t,client:i,page:a,frame:l,subject:pn({page:a,withPlaceholder:null,axis:c,frame:l})}})({descriptor:t,isEnabled:!i,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:o,client:c,page:d,closest:u});return p};const ls={passive:!1},cs={passive:!0};var ds=e=>e.shouldPublishImmediately?ls:cs;const us=e=>e&&e.env.closestScrollable||null;function ps(e){const t=Br(null),r=qa(na),n=ra("droppable"),{registry:o,marshal:i}=r,a=oa(e),s=Xr(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=Br(s),c=Xr(()=>mn((e,r)=>{t.current||jr();const n={x:e,y:r};i.updateDroppableScroll(s.id,n)}),[s.id,i]),d=Kr(()=>{const e=t.current;return e&&e.env.closestScrollable?is(e.env.closestScrollable):Qr},[]),u=Kr(()=>{const e=d();c(e.x,e.y)},[d,c]),p=Xr(()=>Ar(u),[u]),g=Kr(()=>{const e=t.current,r=us(e);e&&r||jr();e.scrollOptions.shouldPublishImmediately?u():p()},[p,u]),m=Kr((e,n)=>{t.current&&jr();const o=a.current,i=o.getDroppableRef();i||jr();const l={closestScrollable:os(c=i),isFixedOnPage:as(c)};var c;const d={ref:i,descriptor:s,env:l,scrollOptions:n};t.current=d;const u=ss({ref:i,descriptor:s,env:l,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),p=l.closestScrollable;return p&&(p.setAttribute($i.contextId,r.contextId),p.addEventListener("scroll",g,ds(d.scrollOptions))),u},[r.contextId,s,g,a]),f=Kr(()=>{const e=t.current,r=us(e);return e&&r||jr(),is(r)},[]),b=Kr(()=>{const e=t.current;e||jr();const r=us(e);t.current=null,r&&(p.cancel(),r.removeAttribute($i.contextId),r.removeEventListener("scroll",g,ds(e.scrollOptions)))},[g,p]),h=Kr(e=>{const r=t.current;r||jr();const n=us(r);n||jr(),n.scrollTop+=e.y,n.scrollLeft+=e.x},[]),v=Xr(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:f,dragStopped:b,scroll:h}),[b,m,f,h]),y=Xr(()=>({uniqueId:n,descriptor:s,callbacks:v}),[v,s,n]);Ui(()=>(l.current=y.descriptor,o.droppable.register(y),()=>{t.current&&b(),o.droppable.unregister(y)}),[v,s,b,y,i,o.droppable]),Ui(()=>{t.current&&i.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),Ui(()=>{t.current&&i.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function gs(){}const ms={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},fs=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{const n=(({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||"close"===r?ms:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:r});return{display:t.display,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Vo.placeholder:null}};var bs=Rr.memo(e=>{const t=Br(null),r=Kr(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:n,onTransitionEnd:o,onClose:i,contextId:a}=e,[s,l]=_r("open"===e.animate);Nr(()=>s?"open"!==n?(r(),l(!1),gs):t.current?gs:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):gs,[n,s,r]);const c=Kr(e=>{"height"===e.propertyName&&(o(),"close"===n&&i())},[n,i,o]),d=fs({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return Rr.createElement(e.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":a,onTransitionEnd:c,ref:e.innerRef})});class hs extends Rr.PureComponent{constructor(...e){super(...e),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}const vs={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||jr(),document.body}},ys=e=>{let t,r={...e};for(t in vs)void 0===e[t]&&(r={...r,[t]:vs[t]});return r},xs=(e,t)=>e===t.droppable.type,Es=(e,t)=>t.draggables[e.draggable.id],Is=dr(()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=mn(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),n=mn((n,o,i,a,s,l)=>{const c=s.descriptor.id;if(s.descriptor.droppableId===n){const e=l?{render:l,dragging:r(s.descriptor)}:null,t={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!o)return t;if(!a)return e;const d={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}});return(r,o)=>{const i=ys(o),a=i.droppableId,s=i.type,l=!i.isDropDisabled,c=i.renderClone;if(ia(r)){const e=r.critical;if(!xs(s,e))return t;const o=Es(e,r.dimensions),i=io(r.impact)===a;return n(a,l,i,i,o,c)}if("DROP_ANIMATING"===r.phase){const e=r.completed;if(!xs(s,e.critical))return t;const o=Es(e.critical,r.dimensions);return n(a,l,Ya(e.result)===a,io(e.impact)===a,o,c)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){const n=r.completed;if(!xs(s,n.critical))return t;const o=io(n.impact)===a,i=Boolean(n.impact.at&&"COMBINE"===n.impact.at.type),l=n.critical.droppable.id===a;return o?i?e:t:l?e:t}return t}},{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},(e,t,r)=>({...ys(r),...e,...t}),{context:Ki,areStatePropsEqual:za})(e=>{const t=Lr(na);t||jr();const{contextId:r,isMovementAllowed:n}=t,o=Br(null),i=Br(null),{children:a,droppableId:s,type:l,mode:c,direction:d,ignoreContainerClipping:u,isDropDisabled:p,isCombineEnabled:g,snapshot:m,useClone:f,updateViewportMaxScroll:b,getContainerForClone:h}=e,v=Kr(()=>o.current,[]),y=Kr((e=null)=>{o.current=e},[]);Kr(()=>i.current,[]);const x=Kr((e=null)=>{i.current=e},[]),E=Kr(()=>{n()&&b({maxScroll:bi()})},[n,b]);ps({droppableId:s,type:l,mode:c,direction:d,isDropDisabled:p,isCombineEnabled:g,ignoreContainerClipping:u,getDroppableRef:v});const I=Xr(()=>Rr.createElement(hs,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:n})=>Rr.createElement(bs,{placeholder:t,onClose:e,innerRef:x,animate:n,contextId:r,onTransitionEnd:E})),[r,E,e.placeholder,e.shouldAnimatePlaceholder,x]),D=Xr(()=>({innerRef:y,placeholder:I,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":r}}),[r,s,I,y]),w=f?f.dragging.draggableId:null,S=Xr(()=>({droppableId:s,type:l,isUsingCloneFor:w}),[s,w,l]);return Rr.createElement(Ha.Provider,{value:S},a(D,m),function(){if(!f)return null;const{dragging:e,render:t}=f,r=Rr.createElement(Ka,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(r,n)=>t(r,n,e));return Mr.createPortal(r,h())}())}),{Menu:Ds}=r,{MenuItem:ws}=r,{IconButton:Ss}=r,{MoreVert:Cs}=l,{MoreHoriz:Os}=l,As=i,Ps=e;class Rs extends Ps.Component{static __initStatic(){this.propTypes={opts:As.object,onClick:As.func.isRequired}}constructor(e){super(e),Rs.prototype.__init.call(this),Rs.prototype.__init2.call(this),this.state={anchorEl:void 0,open:!1}}__init(){this.handleClick=e=>this.setState({open:!0,anchorEl:e.currentTarget})}__init2(){this.handleRequestClose=()=>this.setState({open:!1})}render(){const{opts:e,onClick:t}=this.props,{open:r,anchorEl:n}=this.state,o=Object.keys(e)||[],i=e=>()=>{t(e),this.handleRequestClose()},a=r?"inherit":"disabled";return Ps.createElement("div",null,Ps.createElement("div",{onClick:this.handleClick},Ps.createElement(Ss,{size:"large"},r?Ps.createElement(Cs,{color:a}):Ps.createElement(Os,{color:a}))),Ps.createElement(Ds,{id:"point-menu",anchorEl:n,open:r,onClose:this.handleRequestClose,style:{transform:"translate(-15px, -15px)"},transformOrigin:{vertical:"center",horizontal:"right"}},o.map((t,r)=>Ps.createElement(ws,{key:r,onClick:i(t)},e[t]))))}}Rs.__initStatic();class _s extends Ps.Component{static __initStatic2(){this.propTypes={onChange:As.func.isRequired,showSampleAnswer:As.bool.isRequired}}render(){const{onChange:e,showSampleAnswer:t}=this.props,r=t?"Provide Sample Response":"Remove Sample Response";return Ps.createElement(Rs,{onClick:t=>e(t),opts:{sample:r}})}}_s.__initStatic2();const Bs=e,Ns=i,{styled:Ts}=t,{InputLabel:Ls}=r,{OutlinedInput:Ms}=r,{Select:ks}=r,{FormControl:Gs}=r,{MenuItem:Ws}=r,{Checkbox:Fs}=r,{FormGroup:$s}=r,{FormControlLabel:js}=r,{Typography:Us}=r,{DragIndicator:Hs}=l,qs=s,Vs=d,{InputContainer:zs}=u,Ys=qs("pie-lib:rubric:authoring"),Zs=(e,t,r)=>{const n=Array.from(e),[o]=n.splice(t,1);return n.splice(r,0,o),n},Js=Ns.shape({excludeZero:Ns.bool,points:Ns.arrayOf(Ns.string),sampleAnswers:Ns.arrayOf(Ns.string),maxPoints:Ns.number,rubriclessInstruction:Ns.string}),Xs=e=>{const{value:t,onChange:r,max:n}=e,o="max-points-label";return Bs.createElement(Gs,{sx:{minWidth:120,m:1},variant:"outlined"},Bs.createElement(Ls,{id:o},"Max Points"),Bs.createElement(ks,{labelId:o,label:"Max Points",value:t,onChange:e=>r(e.target.value),input:Bs.createElement(Ms,{label:"Max Points"}),MenuProps:{transitionDuration:{enter:225,exit:195}}},Ye(1,n+1).map(e=>Bs.createElement(Ws,{key:`${e}`,value:e},e))))},Ks=e=>null===e||"null"===e,Qs=Ts("div")(()=>({display:"flex",width:"100%",position:"relative"})),el=Ts("div")(({theme:e})=>({width:"100%",backgroundColor:`${e.palette.common.white}`})),tl=Ts(Hs)(({theme:e})=>({paddingTop:e.spacing(1),color:p[500]})),rl=Ts(Us)(({theme:e})=>({color:p[500],paddingBottom:e.spacing(1),textTransform:"uppercase"})),nl=Ts("div")(({theme:e})=>({paddingLeft:e.spacing(3)})),ol=Ts("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingLeft:e.spacing(3),paddingTop:e.spacing(1)})),il=Ts("div")(()=>({position:"absolute",right:0})),al=e=>{const{points:t,content:r,sampleAnswer:n,mathMlOptions:o={},error:i,pluginOpts:a={}}=e,s=`${t} ${t<=1?"pt":"pts"}`,l=Ks(n);return Bs.createElement("div",null,Bs.createElement(rl,{variant:"overline"},s),Bs.createElement(Qs,null,Bs.createElement(tl,null),Bs.createElement(el,null,Bs.createElement(Vs,{error:i,pluginProps:a,markup:r,onChange:e.onChange,mathMlOptions:o})),Bs.createElement(il,null,Bs.createElement(_s,{showSampleAnswer:l,onChange:e.onMenuChange}))),i&&Bs.createElement(ol,null,i),!l&&Bs.createElement(nl,null,Bs.createElement(tl,{as:Us,variant:"overline"},"Sample Response"),Bs.createElement(el,null,Bs.createElement(Vs,{markup:n,pluginProps:a,onChange:e.onSampleChange,mathMlOptions:o}))))},sl=Ts("div")(({theme:e})=>({backgroundColor:p[200],borderWidth:1,borderStyle:"solid",borderColor:p[300],padding:e.spacing(2),margin:e.spacing(1)})),ll=Ts("div")(({theme:e})=>({width:"100%",paddingTop:e.spacing(2),marginBottom:e.spacing(2),"& MuiFormControl-root":{width:"100%"}})),cl=Ts("div")(()=>({display:"none"})),dl=Ts("div")(({theme:e})=>({paddingTop:e.spacing(1),paddingBottom:e.spacing(1)})),ul=Ts(Us)(({theme:e})=>({paddingLeft:e.spacing(1),margin:e.spacing(1)}));class pl extends Bs.Component{constructor(...e){super(...e),pl.prototype.__init.call(this),pl.prototype.__init2.call(this),pl.prototype.__init3.call(this),pl.prototype.__init4.call(this),pl.prototype.__init5.call(this),pl.prototype.__init6.call(this),pl.prototype.__init7.call(this)}static __initStatic(){this.propTypes={value:Js,config:Ns.object,pluginOpts:Ns.object,rubricless:Ns.bool,onChange:Ns.func}}static __initStatic2(){this.defaultProps={}}__init(){this.dragEnd=e=>{if(!e.destination)return;const{value:t,onChange:r}=this.props,n=Zs(t.points,e.source.index,e.destination.index),o=Zs(t.sampleAnswers,e.source.index,e.destination.index);r({...t,points:n,sampleAnswers:o})}}__init2(){this.changeRubriclessInstruction=e=>{const{value:t,onChange:r}=this.props;r({...t,rubriclessInstruction:e})}}__init3(){this.changeMaxPoints=e=>{const{value:t,onChange:r,rubricless:n}=this.props,o=t.points.length-1;let i,a;Ys("current",o,"new: ",e),e>o&&(i=Ke(e-o).map(()=>"").concat(t.points),a=Ke(e-o).map(()=>null).concat(t.sampleAnswers)),e<o&&(Ys("less than"),i=Ze(t.points,e+1),a=Ze(t.sampleAnswers,e+1)),r(i&&!n?{...t,points:i,sampleAnswers:a,maxPoints:e}:{...t,maxPoints:e})}}__init4(){this.changeContent=(e,t,r)=>{if(Ys(`changeModel[${r}]:`,e,t),"points"!==r&&"sampleAnswers"!==r)return;const{value:n,onChange:o}=this.props,i=n[r]&&Array.from(n[r]);i.splice(e,1,t),Ys(`changeModel[${r}]:`,i),o({...n,[r]:i})}}__init5(){this.excludeZeros=()=>{const{value:e,onChange:t}=this.props;t({...e,excludeZero:!e.excludeZero})}}__init6(){this.shouldRenderPoint=(e,t)=>!t.excludeZero||(e<t.points.length-1||e!==t.points.length-1)}__init7(){this.onPointMenuChange=(e,t)=>{if("sample"===t){const{value:t}=this.props,r=Array.from(t.sampleAnswers||[]);Ks(r[e])?this.changeContent(e,"","sampleAnswers"):this.changeContent(e,null,"sampleAnswers")}}}render(){const{value:e,mathMlOptions:t={},config:r={},rubricless:n=!1,pluginOpts:o={}}=this.props;let{excludeZeroEnabled:i=!0,maxPointsEnabled:a=!0,errors:s={},rubriclessInstructionEnabled:l=!1,maxPoints:c=10}=e||{};const{rubriclessInstruction:d={},maxMaxPoints:u=10}=r||{},{pointsDescriptorsErrors:p}=s||{};e&&Number.isFinite(e.maxPoints)&&console.warn("maxPoints is deprecated - remove from model");const g=n?c:e.points.length-1;return Bs.createElement("div",null,Bs.createElement(ul,{variant:"h5"},"Rubric"),Bs.createElement($s,{row:!0},a&&Bs.createElement(Xs,{max:u<100?u:100,value:g,onChange:this.changeMaxPoints,pluginOpts:o}),i&&Bs.createElement(js,{label:"Exclude zeros",control:Bs.createElement(Fs,{checked:e.excludeZero,onChange:this.excludeZeros})})),l&&n&&Bs.createElement(ll,null,Bs.createElement(zs,{label:d.label},Bs.createElement(Vs,{markup:e.rubriclessInstruction||"",onChange:this.changeRubriclessInstruction,pluginProps:o,nonEmpty:!1,disableUnderline:!0,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:t}))),Bs.createElement("div",null,n?Bs.createElement(cl,null):Bs.createElement(sl,null,Bs.createElement(ka,{onDragEnd:this.dragEnd},Bs.createElement(Is,{droppableId:"droppable"},r=>Bs.createElement("div",{...r.droppableProps,ref:r.innerRef},e.points.map((r,n)=>this.shouldRenderPoint(n,e)&&Bs.createElement(Qa,{key:`${r.points}-${n}`,index:n,draggableId:n.toString()},i=>Bs.createElement(dl,{ref:i.innerRef,...i.draggableProps,...i.dragHandleProps},Bs.createElement(al,{points:e.points.length-1-n,content:r,error:p&&p[e.points.length-1-n],sampleAnswer:e.sampleAnswers&&e.sampleAnswers[n],onChange:e=>this.changeContent(n,e,"points"),onSampleChange:e=>this.changeContent(n,e,"sampleAnswers"),onMenuChange:e=>this.onPointMenuChange(n,e),mathMlOptions:t,pluginOpts:o})))),r.placeholder))))))}}pl.__initStatic(),pl.__initStatic2(),Ns.object,Ns.object,Ns.bool,Ns.func,Ns.func;const gl="simpleRubric",ml="multiTraitRubric",fl="rubricless",bl="complex-rubric-simple",hl="complex-rubric-multi-trait";class vl extends M{}class yl extends he{}customElements.get(bl)||customElements.define(bl,vl),customElements.get(hl)||customElements.define(hl,yl);class xl extends HTMLElement{constructor(){super(),this._model={},this._type=gl}set type(e){this._type=e}get type(){return this._type}set model(e){this._model=e;const t=this._type;switch(this.type=e.rubricType,this._type){case gl:default:customElements.whenDefined(bl).then(()=>{this.setRubricModel(this.simpleRubric)});break;case ml:customElements.whenDefined(hl).then(()=>{this.setMultiTraitRubricModel(this.multiTraitRubric)});break;case fl:customElements.whenDefined(bl).then(()=>{this.setRubriclessModel(this.rubricless)})}t!==this.type&&this._render()}setRubricModel(e){if(this._model&&this._model.rubrics&&this._model.rubrics.simpleRubric){const{mode:t}=this._model;e.model={...this._model.rubrics.simpleRubric,mode:t}}}setMultiTraitRubricModel(e){if(this._model&&this._model.rubrics&&this._model.rubrics.multiTraitRubric){const{mode:t}=this._model;e.model={...this._model.rubrics.multiTraitRubric,mode:t}}}setRubriclessModel(e){if(this._model&&this._model.rubrics&&this._model.rubrics.rubricless){const{mode:t}=this._model;e.model={...this._model.rubrics.rubricless,mode:t}}}get multiTraitRubric(){return this.querySelector(`${hl}#multiTraitRubric`)}get simpleRubric(){return this.querySelector(`${bl}#simpleRubric`)}get rubricless(){return this.querySelector(`${bl}#rubricless`)}connectedCallback(){this._render()}_render(){let e;switch(e=this._type===gl?`<${bl} id="simpleRubric" />`:this._type===fl?`<${bl} id="rubricless" />`:`<${hl} id="multiTraitRubric" />`,this.innerHTML=e,this._type){case gl:default:customElements.get(bl)&&this.setRubricModel(this.simpleRubric);break;case ml:customElements.get(hl)&&this.setMultiTraitRubricModel(this.multiTraitRubric);break;case fl:customElements.get(bl)&&this.setRubriclessModel(this.rubricless)}}}export{xl as default};
package/module/index.html DELETED
@@ -1,21 +0,0 @@
1
-
2
- <!doctype html>
3
- <html>
4
- <head>
5
- <title>@pie-element/complex-rubric@6.1.0-next.0</title>
6
- <script
7
- type="module"
8
- src="https://cdn.jsdelivr.net/npm/@pslb/demo-el@^1.0.0/dist/demo-el/demo-el.esm.js"></script>
9
-
10
- <link
11
- href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
12
- rel="stylesheet"
13
- />
14
- <style>
15
- html, body {
16
- font-family: 'Roboto', sans-serif;
17
- }
18
- </style>
19
- <script type="module" src="./demo.js"></script>
20
- </head>
21
- </html>
@@ -1,22 +0,0 @@
1
- {
2
- "name": "@pie-element/complex-rubric",
3
- "version": "6.1.0-next.0",
4
- "modules": [
5
- {
6
- "name": "@pie-lib/shared-module",
7
- "version": "^4.0.1"
8
- },
9
- {
10
- "name": "@pie-lib/math-rendering-module",
11
- "version": "^4.0.7"
12
- },
13
- {
14
- "name": "@pie-lib/editable-html-module",
15
- "version": "^6.1.2"
16
- },
17
- {
18
- "name": "@pie-lib/config-module",
19
- "version": "^3.0.1"
20
- }
21
- ]
22
- }
@@ -1,259 +0,0 @@
1
- import PrintElement from './print.js';
2
-
3
- var generate = {};
4
-
5
- generate.model = (id, element) => ({
6
- id,
7
- element,
8
- rubricType: 'simpleRubric',
9
- rubrics: {
10
- simpleRubric: {
11
- points: ['nothing right', 'a teeny bit right', 'mostly right', 'bingo'],
12
- sampleAnswers: [null, 'just right', 'not left', null],
13
- maxPoints: 3,
14
- excludeZero: false,
15
- },
16
- rubricless: {
17
- maxPoints: 100,
18
- excludeZero: false,
19
- rubriclessInstructionEnabled: true,
20
- },
21
- multiTraitRubric: {
22
- visibleToStudent: true,
23
- halfScoring: false,
24
- excludeZero: true,
25
- pointLabels: true,
26
- description: false,
27
- standards: false,
28
- scales: [
29
- {
30
- maxPoints: 4,
31
- scorePointsLabels: ['Non-Scorable', 'Developing', 'Progressing', 'Effective', 'Strong'],
32
- traitLabel: 'Trait',
33
- traits: [
34
- {
35
- name: 'Ideas',
36
- standards: [],
37
- description: 'the main message',
38
- scorePointsDescriptors: [
39
- 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
40
- 'Topic undefined and/or difficult to follow\n' + '\n' + 'Details are unclear',
41
- 'Topic too broad\n' + '\n' + 'Details are limited',
42
- 'Writing stays on topic\n' + '\n' + 'Complete details given',
43
- 'Strong control of topic\n' + '\n' + 'Relevant, accurate, specific details that support topic',
44
- ],
45
- },
46
- {
47
- name: 'Organization',
48
- standards: [],
49
- description: 'the internal structure of the piece',
50
- scorePointsDescriptors: [
51
- 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
52
- 'Does not have a beginning, middle and/or end\n' +
53
- '\n' +
54
- 'Does not have a lead and/or conclusion\n' +
55
- '\n' +
56
- 'Transitions confusing and/or not present\n' +
57
- '\n' +
58
- 'Not written in logical order\n' +
59
- '\n' +
60
- 'No sign of paragraphing / incorrect paragraphing',
61
- 'Weak beginning, middle and end\n' +
62
- '\n' +
63
- 'Has evidence of a lead and/or conclusion but missing elements\n' +
64
- '\n' +
65
- 'Transitions are used sometimes\n' +
66
- '\n' +
67
- 'Some logical order\n' +
68
- '\n' +
69
- 'Most paragraphing incorrect',
70
- 'Has an acceptable beginning, middle and end\n' +
71
- '\n' +
72
- 'Includes a lead and conclusion\n' +
73
- '\n' +
74
- 'Transitions are used correctly\n' +
75
- '\n' +
76
- 'Mostly logical order\n' +
77
- '\n' +
78
- 'Mostly correct paragraphing',
79
- 'Has an effective beginning, middle and end\n' +
80
- '\n' +
81
- 'Powerful introduction / lead and conclusion\n' +
82
- '\n' +
83
- 'Effective transitions\n' +
84
- '\n' +
85
- 'Logical order / sequencing\n' +
86
- '\n' +
87
- 'Uses appropriate paragraphing',
88
- ],
89
- },
90
- {
91
- name: 'Word Choice',
92
- standards: [],
93
- description: 'the vocabulary a writer chooses to convey meaning',
94
- scorePointsDescriptors: [
95
- 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
96
- 'Vocabulary is limited/used incorrectly\n' +
97
- '\n' +
98
- 'No figurative language; words do not convey meaning',
99
- 'Generally correct words\n' +
100
- '\n' +
101
- 'Attempt at figurative language\n' +
102
- '\n' +
103
- 'and/or words convey general meaning',
104
- 'Some active verbs and precise nouns\n' +
105
- '\n' +
106
- 'Effective use of figurative language and/or words that enhance meaning',
107
- 'Powerful and engaging words\n' + '\n' + 'Artful use of figurative language and/or sensory detail',
108
- ],
109
- },
110
- {
111
- name: 'Sentence Fluency',
112
- standards: [],
113
- description: 'the rhythm and flow of the language',
114
- scorePointsDescriptors: [
115
- 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
116
- 'No sentences are clear\n' +
117
- '\n' +
118
- 'No variety in sentence structure\n' +
119
- '\n' +
120
- 'Frequent run-ons and/or fragments are present',
121
- 'Some sentences are clear\n' +
122
- '\n' +
123
- 'Sentence variety used rarely\n' +
124
- '\n' +
125
- 'Some run-ons and/or fragments are present',
126
- 'Most sentences are clear\n' +
127
- '\n' +
128
- 'Some sentence variety is used\n' +
129
- '\n' +
130
- 'Run-ons and/or fragments are rare',
131
- 'All Sentences are clear\n' +
132
- '\n' +
133
- 'Variety of sentence structure is used\n' +
134
- '\n' +
135
- 'Run-ons and/or fragments are not present',
136
- ],
137
- },
138
- {
139
- name: 'Conventions',
140
- standards: [],
141
- description: 'the mechanical correctness',
142
- scorePointsDescriptors: [
143
- 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
144
- 'Many distracting errors are present in grammar, punctuation, capitalization and/or spelling',
145
- 'Errors in grammar, punctuation, capitalization and/or spelling are present and some distract from meaning',
146
- 'Errors in grammar, punctuation, capitalization and/or spelling are present but don’t distract from meaning',
147
- 'Few errors in grammar, punctuation,\n' + '\n' + 'capitalization and/or spelling',
148
- ],
149
- },
150
- {
151
- name: 'Voice',
152
- standards: [],
153
- description: 'the personal tone and flavor of the author\'s message',
154
- scorePointsDescriptors: [
155
- 'Student’s response is blank, not in English, not legible, or does not respond to the prompt.',
156
- 'Not concerned with audience or purpose\n' +
157
- '\n' +
158
- 'No viewpoint (perspective) used\n' +
159
- '\n' +
160
- 'Writing is mechanical and lifeless',
161
- 'Shows beginning awareness of audience/purpose\n' +
162
- '\n' +
163
- 'Some viewpoint (perspective) used throughout the piece\n' +
164
- '\n' +
165
- 'Writing is distant, too formal or informal',
166
- 'Awareness of audience; purpose is clear most of the time\n' +
167
- '\n' +
168
- 'Uses viewpoint (perspective) throughout most of the paper\n' +
169
- '\n' +
170
- 'Writing is pleasant, agreeable and satisfying',
171
- 'Powerful connection with audience; purpose is clearly communicated\n' +
172
- '\n' +
173
- 'Maintains strong viewpoint (perspective) throughout entire piece\n' +
174
- '\n' +
175
- 'Writing is expressive, engaging and has lots of energy',
176
- ],
177
- },
178
- ],
179
- },
180
- {
181
- maxPoints: 5,
182
- scorePointsLabels: ['Non-Scorable', 'Unsatisfactory', 'Satisfactory'],
183
- traitLabel: 'Category',
184
- traits: [
185
- {
186
- name: 'Presentation',
187
- standards: [],
188
- description: '',
189
- scorePointsDescriptors: [
190
- 'Handwriting is unreadable, or response is blank, not in English, or too brief to evaluate. ',
191
- 'Handwriting poor\n' + '\n' + 'Overall appearance is distracting to unacceptable',
192
- 'Handwriting is generally legible\n' + '\n' + 'Overall appearance is acceptable or better',
193
- ],
194
- },
195
- ],
196
- },
197
- ],
198
- },
199
- },
200
- });
201
-
202
- const { model } = generate;
203
-
204
- var config = {
205
- elements: {
206
- 'complex-rubric': '../..',
207
- },
208
- models: [model('1', 'complex-rubric')],
209
- };
210
-
211
- // new init - just shows off print!
212
-
213
- const init = async () => {
214
- console.log('define the element...');
215
- await Promise.all(
216
- config.models.map(async (m) => {
217
- try {
218
- const printTag = `${m.element}-print`;
219
- if (customElements.get(printTag)) {
220
- return true;
221
- } else {
222
- customElements.define(printTag, PrintElement);
223
- await customElements.whenDefined(printTag);
224
- return true;
225
- }
226
- } catch (e) {
227
- return false;
228
- }
229
- })
230
- );
231
-
232
- console.log('now apply the model...');
233
- config.models.forEach((m) => {
234
- const printTag = `${m.element}-print`;
235
- const h3s = document.createElement('h3');
236
- h3s.textContent = 'student mode';
237
- document.body.appendChild(h3s);
238
- const de = document.createElement(printTag);
239
- document.body.appendChild(de);
240
- de.options = {};
241
- de.model = m;
242
-
243
- const h3 = document.createElement('h3');
244
- h3.textContent = 'instructor mode';
245
- document.body.appendChild(h3);
246
- const instr = document.createElement(printTag);
247
- document.body.appendChild(instr);
248
- instr.options = { mode: 'instructor' };
249
- instr.model = JSON.parse(JSON.stringify(m));
250
- });
251
- };
252
-
253
- init()
254
- .then(() => {
255
- console.log('ready');
256
- })
257
- .catch((e) => {
258
- console.error(e);
259
- });
package/module/print.html DELETED
@@ -1,18 +0,0 @@
1
-
2
- <!doctype html>
3
- <html>
4
- <head>
5
- <title>@pie-element/complex-rubric@6.1.0-next.0</title>
6
- <link
7
- href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
8
- rel="stylesheet"
9
- />
10
- <style>
11
- html, body {
12
- font-family: 'Roboto', sans-serif;
13
- }
14
- </style>
15
- <script type="module" src="./print-demo.js"></script>
16
- </head>
17
- <body></body>
18
- </html>