@worldresources/wri-design-systems 2.139.0 → 2.140.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -2208,7 +2208,24 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2208
2208
  justify-content: space-between;
2209
2209
  `,Xi=ie`
2210
2210
  margin-top: 9px;
2211
- `,Yi=({columns:e,data:t,renderRow:n,striped:r,stickyHeader:i,pagination:o,selectable:a,selectedRows:l,onSortColumn:s,onPageSizeChange:c,onPageChange:d,onAllItemsSelected:u})=>{const[p,h]=G({key:"",order:""}),{totalItems:f=t.length,currentPage:g=1,pageSize:v=10,showItemCount:m,showItemCountText:x}=o||{},b=(e,t)=>{h({key:e,order:t}),s&&s({key:e,order:t})},y=l?.length===t?.length,C=l&&l.length>0&&!y;return A("div",{children:[A(T.Root,{css:Fi,striped:r,stickyHeader:i,interactive:!0,children:[H(T.Header,{css:Zi,children:A(T.Row,{children:[a?H(T.ColumnHeader,{children:H(kt,{name:"header-checkbox",checked:y,indeterminate:C,onCheckedChange:({checked:e})=>{u&&u(e)}})}):null,e.map((e=>H(T.ColumnHeader,{role:e.sortable?"columnheader":void 0,"aria-sort":e.sortable&&"asc"===p.order?"ascending":e.sortable&&"desc"===p.order?"descending":void 0,children:A("div",{css:qi,children:[e.label,e.sortable?A("div",{css:Gi,children:[H(tt,{css:Wi(p.key===e.key&&"asc"===p.order),icon:H(Se,{style:{transform:"rotate(180deg)"}}),onClick:()=>b(e.key,"asc"),"aria-label":"Ascending"}),H(tt,{css:Wi(p.key===e.key&&"desc"===p.order),icon:H(Se,{}),onClick:()=>b(e.key,"desc"),"aria-label":"Descending"})]}):null]})},e.key)))]})}),H(T.Body,{children:t.map((e=>H(Z.Fragment,{children:n(e)},e.id)))})]}),A("div",{css:Ui,children:[H("div",{children:m?H(_i,{pageSize:v,currentPage:g,totalItems:f,onPageSizeChange:c,showItemCountText:x}):null}),o?H("div",{css:Xi,children:H(Bi,{totalItems:f,pageSize:v,currentPage:g,onPageChange:d})}):null]})]})},Ki=T.Row,Ji=T.Cell;function Qi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eo(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var to,no={exports:{}},ro={},io={exports:{}},oo={exports:{}},ao={};var lo,so,co,uo,po,ho,fo,go,vo,mo,xo,bo,yo,Co={};
2211
+ `,Yi=({columns:e,data:t,renderRow:n,striped:r,stickyHeader:i,pagination:o,selectable:a,selectedRows:l,onSortColumn:s,onPageSizeChange:c,onPageChange:d,onAllItemsSelected:u})=>{const[p,h]=G({key:"",order:""}),{totalItems:f=t.length,currentPage:g=1,pageSize:v=10,showItemCount:m,showItemCountText:x}=o||{},b=(e,t)=>{h({key:e,order:t}),s&&s({key:e,order:t})},y=l?.length===t?.length,C=l&&l.length>0&&!y;return A("div",{children:[A(T.Root,{css:Fi,striped:r,stickyHeader:i,interactive:!0,children:[H(T.Header,{css:Zi,children:A(T.Row,{children:[a?H(T.ColumnHeader,{children:H(kt,{name:"header-checkbox",checked:y,indeterminate:C,onCheckedChange:({checked:e})=>{u&&u(e)}})}):null,e.map((e=>H(T.ColumnHeader,{role:e.sortable?"columnheader":void 0,"aria-sort":e.sortable&&"asc"===p.order?"ascending":e.sortable&&"desc"===p.order?"descending":void 0,children:A("div",{css:qi,children:[e.label,e.sortable?A("div",{css:Gi,children:[H(tt,{css:Wi(p.key===e.key&&"asc"===p.order),icon:H(Se,{style:{transform:"rotate(180deg)"}}),onClick:()=>b(e.key,"asc"),"aria-label":"Ascending"}),H(tt,{css:Wi(p.key===e.key&&"desc"===p.order),icon:H(Se,{}),onClick:()=>b(e.key,"desc"),"aria-label":"Descending"})]}):null]})},e.key)))]})}),H(T.Body,{children:t.map((e=>H(Z.Fragment,{children:n(e)},e.id)))})]}),A("div",{css:Ui,children:[H("div",{children:m?H(_i,{pageSize:v,currentPage:g,totalItems:f,onPageSizeChange:c,showItemCountText:x}):null}),o?H("div",{css:Xi,children:H(Bi,{totalItems:f,pageSize:v,currentPage:g,onPageChange:d})}):null]})]})},Ki=T.Row,Ji=T.Cell,Qi=ie`
2212
+ border: 1px solid ${he("neutral",300)};
2213
+ `,eo=ie`
2214
+ padding: 16px;
2215
+ cursor: pointer;
2216
+ &:focus-visible {
2217
+ outline-color: ${he("primary",700)};
2218
+ }
2219
+ &:hover {
2220
+ box-shadow: 0px 2px 4px -2px #0000001a;
2221
+ box-shadow: 0px 4px 6px -1px #0000001a;
2222
+ background-color: color-mix(
2223
+ in srgb,
2224
+ ${he("primary",500)} 20%,
2225
+ transparent
2226
+ );
2227
+ }
2228
+ `,to=({children:e,header:t,footer:n})=>H(r,{css:Qi,children:H(k.Root,{multiple:!0,children:A(k.Item,{value:"extendable-card-item",children:[A(k.ItemTrigger,{css:eo,alignItems:"center",children:[H(O,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:t}),H(k.ItemIndicator,{children:H(Se,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),A(k.ItemContent,{children:[e,n]})]})})});function no(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ro(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var io,oo={exports:{}},ao={},lo={exports:{}},so={exports:{}},co={};var uo,po,ho,fo,go,vo,mo,xo,bo,yo,Co,wo,$o,ko={};
2212
2229
  /** @license React v16.13.1
2213
2230
  * react-is.development.js
2214
2231
  *
@@ -2216,7 +2233,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2216
2233
  *
2217
2234
  * This source code is licensed under the MIT license found in the
2218
2235
  * LICENSE file in the root directory of this source tree.
2219
- */function wo(){return so||(so=1,"production"===process.env.NODE_ENV?oo.exports=function(){if(to)return ao;to=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case o:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function y(e){return b(e)===c}return ao.AsyncMode=s,ao.ConcurrentMode=c,ao.ContextConsumer=l,ao.ContextProvider=a,ao.Element=t,ao.ForwardRef=d,ao.Fragment=r,ao.Lazy=f,ao.Memo=h,ao.Portal=n,ao.Profiler=o,ao.StrictMode=i,ao.Suspense=u,ao.isAsyncMode=function(e){return y(e)||b(e)===s},ao.isConcurrentMode=y,ao.isContextConsumer=function(e){return b(e)===l},ao.isContextProvider=function(e){return b(e)===a},ao.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ao.isForwardRef=function(e){return b(e)===d},ao.isFragment=function(e){return b(e)===r},ao.isLazy=function(e){return b(e)===f},ao.isMemo=function(e){return b(e)===h},ao.isPortal=function(e){return b(e)===n},ao.isProfiler=function(e){return b(e)===o},ao.isStrictMode=function(e){return b(e)===i},ao.isSuspense=function(e){return b(e)===u},ao.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},ao.typeOf=b,ao}():oo.exports=(lo||(lo=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case o:case i:case u:return g;default:var v=g&&g.$$typeof;switch(v){case l:case d:case f:case h:case a:return v;default:return p}}case n:return p}}}var y=s,C=c,w=l,$=a,k=t,S=d,E=r,O=f,_=h,L=n,R=o,T=i,P=u,D=!1;function M(e){return b(e)===c}Co.AsyncMode=y,Co.ConcurrentMode=C,Co.ContextConsumer=w,Co.ContextProvider=$,Co.Element=k,Co.ForwardRef=S,Co.Fragment=E,Co.Lazy=O,Co.Memo=_,Co.Portal=L,Co.Profiler=R,Co.StrictMode=T,Co.Suspense=P,Co.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||b(e)===s},Co.isConcurrentMode=M,Co.isContextConsumer=function(e){return b(e)===l},Co.isContextProvider=function(e){return b(e)===a},Co.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Co.isForwardRef=function(e){return b(e)===d},Co.isFragment=function(e){return b(e)===r},Co.isLazy=function(e){return b(e)===f},Co.isMemo=function(e){return b(e)===h},Co.isPortal=function(e){return b(e)===n},Co.isProfiler=function(e){return b(e)===o},Co.isStrictMode=function(e){return b(e)===i},Co.isSuspense=function(e){return b(e)===u},Co.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},Co.typeOf=b}()),Co)),oo.exports}function $o(){if(uo)return co;uo=1;return co="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function ko(){return ho?po:(ho=1,po=Function.call.bind(Object.prototype.hasOwnProperty))}function So(){if(mo)return vo;mo=1;var e=wo(),t=se,n=$o(),r=ko(),i=function(){if(go)return fo;go=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=$o(),n={},r=ko();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](o,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},fo=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),vo=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:f(a),arrayOf:function(e){return f((function(t,r,i,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("Invalid "+o+" `"+a+"` of type `"+x(l)+"` supplied to `"+i+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,i,o,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,i){var o=e[t];return l(o)?null:new h("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+i+" `"+o+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:f((function(e,t,n,r,i){return m(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,i,o,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new h("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return f((function(t,n,r,i,o){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(i)+" at index "+t+"."),a}return f((function(t,i,o,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,o,a,l,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new h("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return v(i,o,a,c,b(d));var u=d(l,c,i,o,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new h("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[o],e);for(var p in u){var f=e[p];if(r(e,p)&&"function"!=typeof f)return v(a,l,s,p,b(f));if(!f)return new h("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,p,a,l,s+"."+p,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function i(i,a,l,c,u,p,f){if(c=c||d,p=p||l,f!==n){if(s){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+l;!t[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[l]?i?null===a[l]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,u,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function g(e){return f((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new h("Invalid "+i+" `"+o+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,i){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},vo}function Eo(){if(yo)return io.exports;if(yo=1,"production"!==process.env.NODE_ENV){var e=wo();io.exports=So()(e.isElement,!0)}else io.exports=function(){if(bo)return xo;bo=1;var e=$o();function t(){}function n(){}return n.resetWarningCache=t,xo=function(){function r(t,n,r,i,o,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();return io.exports}function Oo(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Oo(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function _o(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Oo(e))&&(r&&(r+=" "),r+=t);return r}var Lo,Ro=eo(Object.freeze({__proto__:null,clsx:_o,default:_o})),To={},Po={};function Do(){if(Lo)return Po;return Lo=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},Po.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},Po.int=function(e){return parseInt(e,10)},Po.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},Po.isNum=function(e){return"number"==typeof e&&!isNaN(e)},Po}var Mo,No,jo={};function Vo(){if(No)return To;No=1,Object.defineProperty(To,"__esModule",{value:!0}),To.addClassName=a,To.addEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},To.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&a(e.body,"react-draggable-transparent-selection")},To.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},To.createSVGTransform=function(e,t){return o(e,t,"")},To.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},To.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},To.getTranslation=o,To.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},To.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},To.matchesSelector=i,To.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(i(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},To.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,o=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:o}},To.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},To.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},To.removeClassName=l,To.removeEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},To.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&l(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var e=Do(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}i.default=e,r&&r.set(e,i);return i}(function(){if(Mo)return jo;Mo=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.browserPrefixToKey=n,jo.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},jo.default=void 0,jo.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const i=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in i)return e[t];return""}function n(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}return jo.default=t(),jo}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function i(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function o(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);o="translate(".concat(e,", ").concat(r,")")+o}return o}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function l(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return To}var Io,zo={};function Ao(){if(Io)return zo;Io=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},zo.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},zo.createCoreData=function(t,r,i){const o=!(0,e.isNum)(t.lastX),a=n(t);return o?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:a,deltaX:r-t.lastX,deltaY:i-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:i}},zo.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},zo.getBoundPosition=function(r,i,o){if(!r.props.bounds)return[i,o];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const l=n(r);if("string"==typeof a){const{ownerDocument:n}=l,r=n.defaultView;let i;if(i="parent"===a?l.parentNode:n.querySelector(a),!(i instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const o=i,s=r.getComputedStyle(l),c=r.getComputedStyle(o);a={left:-l.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-l.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(o)-(0,t.outerWidth)(l)-l.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(o)-(0,t.outerHeight)(l)-l.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(a.right)&&(i=Math.min(i,a.right));(0,e.isNum)(a.bottom)&&(o=Math.min(o,a.bottom));(0,e.isNum)(a.left)&&(i=Math.max(i,a.left));(0,e.isNum)(a.top)&&(o=Math.max(o,a.top));return[i,o]},zo.getControlPosition=function(e,r,i){const o="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!o)return null;const a=n(i),l=i.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(o||e,l,i.props.scale)},zo.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]};var e=Do(),t=Vo();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return zo}var Ho,Bo,Fo,Zo,qo={},Go={};function Wo(){if(Ho)return Go;return Ho=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=function(){},Go}function Uo(){if(Bo)return qo;Bo=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(Z),t=l(Eo()),n=l(ce),r=Vo(),i=Ao(),o=Do(),a=l(Wo());function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},u={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=u,h=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const o=(0,r.getTouchIdentifier)(e);this.touchIdentifier=o;const l=(0,i.getControlPosition)(e,o,this);if(null==l)return;const{x:s,y:c}=l,d=(0,i.createCoreData)(this,s,c);(0,a.default)("DraggableCore: handleDragStart: %j",d),(0,a.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=c,(0,r.addEvent)(n,p.move,this.handleDrag),(0,r.addEvent)(n,p.stop,this.handleDragStop))})),c(this,"handleDrag",(e=>{const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,i.createCoreData)(this,n,r);(0,a.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),c(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=o-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,o=this.lastY+t}const l=(0,i.createCoreData)(this,n,o);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(s.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(s.ownerDocument,p.move,this.handleDrag),(0,r.removeEvent)(s.ownerDocument,p.stop,this.handleDragStop))})),c(this,"onMouseDown",(e=>(p=u,this.handleDragStart(e)))),c(this,"onMouseUp",(e=>(p=u,this.handleDragStop(e)))),c(this,"onTouchStart",(e=>(p=d,this.handleDragStart(e)))),c(this,"onTouchEnd",(e=>(p=d,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,u.move,this.handleDrag),(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,u.stop,this.handleDragStop),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return qo.default=h,c(h,"displayName","DraggableCore"),c(h,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),c(h,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),qo}function Xo(){return Fo||(Fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(Z),n=d(Eo()),r=d(ce),i=d(Ro),o=Vo(),a=Ao(),l=Do(),s=d(Uo()),c=d(Wo());function d(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",((e,t)=>{(0,c.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,a.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),h(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",t);const n=(0,a.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[i,o]=(0,a.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),h(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,a.createDraggableData)(this,t)))return!1;(0,c.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:l,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:u,position:h,positionOffset:f,scale:g,...v}=this.props;let m={},x=null;const b=!Boolean(h)||this.state.dragging,y=h||l,C={x:(0,a.canDragX)(this)&&b?this.state.x:y.x,y:(0,a.canDragY)(this)&&b?this.state.y:y.y};this.state.isElementSVG?x=(0,o.createSVGTransform)(C,f):m=(0,o.createCSSTransform)(C,f);const w=(0,i.default)(r.props.className||"",c,{[d]:this.state.dragging,[u]:this.state.dragged});return t.createElement(s.default,p({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:w,style:{...r.props.style,...m},transform:x}))}}e.default=f,h(f,"displayName","Draggable"),h(f,"propTypes",{...s.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),h(f,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(ro)),ro}var Yo=function(){if(Zo)return no.exports;Zo=1;const{default:e,DraggableCore:t}=Xo();return no.exports=e,no.exports.default=e,no.exports.DraggableCore=t,no.exports}(),Ko=Qi(Yo);const Jo=e=>ie`
2236
+ */function So(){return po||(po=1,"production"===process.env.NODE_ENV?so.exports=function(){if(io)return co;io=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case o:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function y(e){return b(e)===c}return co.AsyncMode=s,co.ConcurrentMode=c,co.ContextConsumer=l,co.ContextProvider=a,co.Element=t,co.ForwardRef=d,co.Fragment=r,co.Lazy=f,co.Memo=h,co.Portal=n,co.Profiler=o,co.StrictMode=i,co.Suspense=u,co.isAsyncMode=function(e){return y(e)||b(e)===s},co.isConcurrentMode=y,co.isContextConsumer=function(e){return b(e)===l},co.isContextProvider=function(e){return b(e)===a},co.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},co.isForwardRef=function(e){return b(e)===d},co.isFragment=function(e){return b(e)===r},co.isLazy=function(e){return b(e)===f},co.isMemo=function(e){return b(e)===h},co.isPortal=function(e){return b(e)===n},co.isProfiler=function(e){return b(e)===o},co.isStrictMode=function(e){return b(e)===i},co.isSuspense=function(e){return b(e)===u},co.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},co.typeOf=b,co}():so.exports=(uo||(uo=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case o:case i:case u:return g;default:var v=g&&g.$$typeof;switch(v){case l:case d:case f:case h:case a:return v;default:return p}}case n:return p}}}var y=s,C=c,w=l,$=a,k=t,S=d,E=r,O=f,_=h,L=n,R=o,T=i,P=u,D=!1;function M(e){return b(e)===c}ko.AsyncMode=y,ko.ConcurrentMode=C,ko.ContextConsumer=w,ko.ContextProvider=$,ko.Element=k,ko.ForwardRef=S,ko.Fragment=E,ko.Lazy=O,ko.Memo=_,ko.Portal=L,ko.Profiler=R,ko.StrictMode=T,ko.Suspense=P,ko.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||b(e)===s},ko.isConcurrentMode=M,ko.isContextConsumer=function(e){return b(e)===l},ko.isContextProvider=function(e){return b(e)===a},ko.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ko.isForwardRef=function(e){return b(e)===d},ko.isFragment=function(e){return b(e)===r},ko.isLazy=function(e){return b(e)===f},ko.isMemo=function(e){return b(e)===h},ko.isPortal=function(e){return b(e)===n},ko.isProfiler=function(e){return b(e)===o},ko.isStrictMode=function(e){return b(e)===i},ko.isSuspense=function(e){return b(e)===u},ko.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},ko.typeOf=b}()),ko)),so.exports}function Eo(){if(fo)return ho;fo=1;return ho="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Oo(){return vo?go:(vo=1,go=Function.call.bind(Object.prototype.hasOwnProperty))}function _o(){if(yo)return bo;yo=1;var e=So(),t=se,n=Eo(),r=Oo(),i=function(){if(xo)return mo;xo=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Eo(),n={},r=Oo();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](o,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},mo=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),bo=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:f(a),arrayOf:function(e){return f((function(t,r,i,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("Invalid "+o+" `"+a+"` of type `"+x(l)+"` supplied to `"+i+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,i,o,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,i){var o=e[t];return l(o)?null:new h("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+i+" `"+o+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:f((function(e,t,n,r,i){return m(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,i,o,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new h("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return f((function(t,n,r,i,o){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(i)+" at index "+t+"."),a}return f((function(t,i,o,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,o,a,l,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new h("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return v(i,o,a,c,b(d));var u=d(l,c,i,o,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new h("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[o],e);for(var p in u){var f=e[p];if(r(e,p)&&"function"!=typeof f)return v(a,l,s,p,b(f));if(!f)return new h("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,p,a,l,s+"."+p,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function i(i,a,l,c,u,p,f){if(c=c||d,p=p||l,f!==n){if(s){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+l;!t[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[l]?i?null===a[l]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,u,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function g(e){return f((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new h("Invalid "+i+" `"+o+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,i){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},bo}function Lo(){if($o)return lo.exports;if($o=1,"production"!==process.env.NODE_ENV){var e=So();lo.exports=_o()(e.isElement,!0)}else lo.exports=function(){if(wo)return Co;wo=1;var e=Eo();function t(){}function n(){}return n.resetWarningCache=t,Co=function(){function r(t,n,r,i,o,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();return lo.exports}function Ro(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ro(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function To(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ro(e))&&(r&&(r+=" "),r+=t);return r}var Po,Do=ro(Object.freeze({__proto__:null,clsx:To,default:To})),Mo={},No={};function jo(){if(Po)return No;return Po=1,Object.defineProperty(No,"__esModule",{value:!0}),No.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},No.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},No.int=function(e){return parseInt(e,10)},No.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},No.isNum=function(e){return"number"==typeof e&&!isNaN(e)},No}var Vo,Io,zo={};function Ao(){if(Io)return Mo;Io=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.addClassName=a,Mo.addEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},Mo.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&a(e.body,"react-draggable-transparent-selection")},Mo.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},Mo.createSVGTransform=function(e,t){return o(e,t,"")},Mo.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},Mo.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},Mo.getTranslation=o,Mo.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},Mo.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},Mo.matchesSelector=i,Mo.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(i(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},Mo.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,o=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:o}},Mo.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},Mo.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},Mo.removeClassName=l,Mo.removeEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},Mo.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&l(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var e=jo(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}i.default=e,r&&r.set(e,i);return i}(function(){if(Vo)return zo;Vo=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.browserPrefixToKey=n,zo.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},zo.default=void 0,zo.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const i=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in i)return e[t];return""}function n(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}return zo.default=t(),zo}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function i(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function o(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);o="translate(".concat(e,", ").concat(r,")")+o}return o}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function l(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return Mo}var Ho,Bo={};function Fo(){if(Ho)return Bo;Ho=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},Bo.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},Bo.createCoreData=function(t,r,i){const o=!(0,e.isNum)(t.lastX),a=n(t);return o?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:a,deltaX:r-t.lastX,deltaY:i-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:i}},Bo.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},Bo.getBoundPosition=function(r,i,o){if(!r.props.bounds)return[i,o];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const l=n(r);if("string"==typeof a){const{ownerDocument:n}=l,r=n.defaultView;let i;if(i="parent"===a?l.parentNode:n.querySelector(a),!(i instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const o=i,s=r.getComputedStyle(l),c=r.getComputedStyle(o);a={left:-l.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-l.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(o)-(0,t.outerWidth)(l)-l.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(o)-(0,t.outerHeight)(l)-l.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(a.right)&&(i=Math.min(i,a.right));(0,e.isNum)(a.bottom)&&(o=Math.min(o,a.bottom));(0,e.isNum)(a.left)&&(i=Math.max(i,a.left));(0,e.isNum)(a.top)&&(o=Math.max(o,a.top));return[i,o]},Bo.getControlPosition=function(e,r,i){const o="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!o)return null;const a=n(i),l=i.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(o||e,l,i.props.scale)},Bo.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]};var e=jo(),t=Ao();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return Bo}var Zo,qo,Go,Wo,Uo={},Xo={};function Yo(){if(Zo)return Xo;return Zo=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=function(){},Xo}function Ko(){if(qo)return Uo;qo=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(Z),t=l(Lo()),n=l(ce),r=Ao(),i=Fo(),o=jo(),a=l(Yo());function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},u={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=u,h=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const o=(0,r.getTouchIdentifier)(e);this.touchIdentifier=o;const l=(0,i.getControlPosition)(e,o,this);if(null==l)return;const{x:s,y:c}=l,d=(0,i.createCoreData)(this,s,c);(0,a.default)("DraggableCore: handleDragStart: %j",d),(0,a.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=c,(0,r.addEvent)(n,p.move,this.handleDrag),(0,r.addEvent)(n,p.stop,this.handleDragStop))})),c(this,"handleDrag",(e=>{const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,i.createCoreData)(this,n,r);(0,a.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),c(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=o-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,o=this.lastY+t}const l=(0,i.createCoreData)(this,n,o);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(s.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(s.ownerDocument,p.move,this.handleDrag),(0,r.removeEvent)(s.ownerDocument,p.stop,this.handleDragStop))})),c(this,"onMouseDown",(e=>(p=u,this.handleDragStart(e)))),c(this,"onMouseUp",(e=>(p=u,this.handleDragStop(e)))),c(this,"onTouchStart",(e=>(p=d,this.handleDragStart(e)))),c(this,"onTouchEnd",(e=>(p=d,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,u.move,this.handleDrag),(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,u.stop,this.handleDragStop),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Uo.default=h,c(h,"displayName","DraggableCore"),c(h,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),c(h,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Uo}function Jo(){return Go||(Go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(Z),n=d(Lo()),r=d(ce),i=d(Do),o=Ao(),a=Fo(),l=jo(),s=d(Ko()),c=d(Yo());function d(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",((e,t)=>{(0,c.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,a.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),h(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",t);const n=(0,a.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[i,o]=(0,a.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),h(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,a.createDraggableData)(this,t)))return!1;(0,c.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:l,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:u,position:h,positionOffset:f,scale:g,...v}=this.props;let m={},x=null;const b=!Boolean(h)||this.state.dragging,y=h||l,C={x:(0,a.canDragX)(this)&&b?this.state.x:y.x,y:(0,a.canDragY)(this)&&b?this.state.y:y.y};this.state.isElementSVG?x=(0,o.createSVGTransform)(C,f):m=(0,o.createCSSTransform)(C,f);const w=(0,i.default)(r.props.className||"",c,{[d]:this.state.dragging,[u]:this.state.dragged});return t.createElement(s.default,p({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:w,style:{...r.props.style,...m},transform:x}))}}e.default=f,h(f,"displayName","Draggable"),h(f,"propTypes",{...s.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),h(f,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(ao)),ao}var Qo=function(){if(Wo)return oo.exports;Wo=1;const{default:e,DraggableCore:t}=Jo();return oo.exports=e,oo.exports.default=e,oo.exports.DraggableCore=t,oo.exports}(),ea=no(Qo);const ta=e=>ie`
2220
2237
  width: 240px;
2221
2238
  ${"medium"===e&&"width: 320px;"}
2222
2239
  ${"large"===e&&"width: 440px;"}
@@ -2227,7 +2244,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2227
2244
  border-radius: 4px;
2228
2245
  box-shadow: 0px 4px 6px -4px #0000001a;
2229
2246
  box-shadow: 0px 10px 15px -3px #0000001a;
2230
- `,Qo=ie`
2247
+ `,na=ie`
2231
2248
  height: 100%;
2232
2249
  min-height: 40px;
2233
2250
  display: flex;
@@ -2235,31 +2252,31 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2235
2252
  justify-content: space-between;
2236
2253
  padding: 8px;
2237
2254
  border-bottom: 1px solid ${he("neutral",300)};
2238
- `,ea=ie`
2255
+ `,ra=ie`
2239
2256
  top: 10px;
2240
- `,ta=ie`
2257
+ `,ia=ie`
2241
2258
  padding: 12px;
2242
- `,na=({header:e,content:t,footer:n,size:r="medium",draggable:i,blocking:o,open:a,onClose:l})=>a?H(P.Root,{open:a,onOpenChange:l,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!i&&!o,preventScroll:!i&&!o,closeOnEscape:!o,defaultOpen:!0,children:A(s,{children:[i?null:H(P.Backdrop,{}),H(Ko,{disabled:!i,children:H(P.Positioner,{children:A(P.Content,{css:Jo(r),children:[A(P.Header,{css:Qo,children:[e,o?null:H(P.CloseTrigger,{css:ea,asChild:!0,children:H(nt,{})})]}),H(P.Body,{css:ta,children:t}),n?H(P.Footer,{padding:"12px",children:n}):null]})})})]})}):null,ra=e=>ie`
2259
+ `,oa=({header:e,content:t,footer:n,size:r="medium",draggable:i,blocking:o,open:a,onClose:l})=>a?H(P.Root,{open:a,onOpenChange:l,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!i&&!o,preventScroll:!i&&!o,closeOnEscape:!o,defaultOpen:!0,children:A(s,{children:[i?null:H(P.Backdrop,{}),H(ea,{disabled:!i,children:H(P.Positioner,{children:A(P.Content,{css:ta(r),children:[A(P.Header,{css:na,children:[e,o?null:H(P.CloseTrigger,{css:ra,asChild:!0,children:H(nt,{})})]}),H(P.Body,{css:ia,children:t}),n?H(P.Footer,{padding:"12px",children:n}):null]})})})]})}):null,aa=e=>ie`
2243
2260
  height: 100%;
2244
2261
  width: ${e||"320px"};
2245
2262
  background-color: ${he("neutral",100)};
2246
2263
  box-shadow: 0px 1px 2px -1px #0000001a;
2247
2264
  box-shadow: 0px 1px 3px 0px #0000001a;
2248
2265
  position: relative;
2249
- `,ia=ie`
2266
+ `,la=ie`
2250
2267
  border-right: 1px solid ${he("neutral",300)};
2251
- `,oa=ie`
2268
+ `,sa=ie`
2252
2269
  border: 1px solid ${he("neutral",300)};
2253
2270
  border-radius: 4px;
2254
- `,aa=ie`
2271
+ `,ca=ie`
2255
2272
  min-height: 48px;
2256
2273
  width: 100%;
2257
2274
  border-bottom: 1px solid ${he("neutral",300)};
2258
- `,la=(e,t)=>ie`
2275
+ `,da=(e,t)=>ie`
2259
2276
  height: ${((e,t)=>e&&t?`calc(100% - ${e+t}px)`:e?`calc(100% - ${e}px)`:t?`calc(100% - ${t}px)`:"100%")(e,t)};
2260
2277
  width: 100%;
2261
2278
  overflow-y: auto;
2262
- `,sa=ie`
2279
+ `,ua=ie`
2263
2280
  min-height: 64px;
2264
2281
  width: 100%;
2265
2282
  display: flex;
@@ -2269,7 +2286,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2269
2286
  bottom: 0;
2270
2287
  left: 0;
2271
2288
  border-top: 1px solid ${he("neutral",300)};
2272
- `,ca=({header:e,content:t,footer:n,variant:r="fixed",width:i})=>{const[o,a]=G(void 0),[l,s]=G(void 0),c=Y(null),d=Y(null);W((()=>{a(c?.current?.getBoundingClientRect()?.height),s(d?.current?.getBoundingClientRect()?.height)}),[e,n]);return A("div",{css:[ra(i),"fixed"===r?ia:oa],children:[e?H("div",{css:aa,ref:c,children:e}):null,H("div",{css:la(o,l),children:t}),n?H("div",{css:sa,ref:d,children:n}):null]})};var da,ua;!function(){if(ua)return da;ua=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return t[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};e=function(e,n,r){var i=arguments.length;r=new Array(i>2?i-2:0);for(var o=2;o<i;o++)r[o-2]=arguments[o];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}da=e}();var pa=ha()?K:W;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function ha(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var fa=function(e){var t,n=e.children,r=e.type,i=void 0===r?"reach-portal":r,o=Y(null),a=Y(null),l=(t=G(Object.create(null))[1],J((function(){t(Object.create(null))}),[]));return pa((function(){if(o.current){var e=o.current.ownerDocument;return a.current=null==e?void 0:e.createElement(i),e.body.appendChild(a.current),l(),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}}),[i,l]),a.current?de(n,a.current):Q("span",{ref:o})};"production"!==process.env.NODE_ENV&&(fa.displayName="Portal");
2289
+ `,pa=({header:e,content:t,footer:n,variant:r="fixed",width:i})=>{const[o,a]=G(void 0),[l,s]=G(void 0),c=Y(null),d=Y(null);W((()=>{a(c?.current?.getBoundingClientRect()?.height),s(d?.current?.getBoundingClientRect()?.height)}),[e,n]);return A("div",{css:[aa(i),"fixed"===r?la:sa],children:[e?H("div",{css:ca,ref:c,children:e}):null,H("div",{css:da(o,l),children:t}),n?H("div",{css:ua,ref:d,children:n}):null]})};var ha,fa;!function(){if(fa)return ha;fa=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return t[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};e=function(e,n,r){var i=arguments.length;r=new Array(i>2?i-2:0);for(var o=2;o<i;o++)r[o-2]=arguments[o];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}ha=e}();var ga=va()?K:W;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function va(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var ma=function(e){var t,n=e.children,r=e.type,i=void 0===r?"reach-portal":r,o=Y(null),a=Y(null),l=(t=G(Object.create(null))[1],J((function(){t(Object.create(null))}),[]));return ga((function(){if(o.current){var e=o.current.ownerDocument;return a.current=null==e?void 0:e.createElement(i),e.body.appendChild(a.current),l(),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}}),[i,l]),a.current?de(n,a.current):Q("span",{ref:o})};"production"!==process.env.NODE_ENV&&(ma.displayName="Portal");
2273
2290
  /*! *****************************************************************************
2274
2291
  Copyright (c) Microsoft Corporation.
2275
2292
 
@@ -2283,16 +2300,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2283
2300
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2284
2301
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2285
2302
  PERFORMANCE OF THIS SOFTWARE.
2286
- ***************************************************************************** */var ga,va,ma=function(){return ma=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ma.apply(this,arguments)};function xa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function ba(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ya(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ca(e,t,n){if(2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(ga||(ga={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(va||(va={}));var wa=ga.Start,$a=ga.Stop,ka=ga.Raise,Sa=ga.Send,Ea=ga.Cancel,Oa=ga.NullEvent,_a=ga.Assign;ga.After,ga.DoneState;var La=ga.Log,Ra=ga.Init,Ta=ga.Invoke;ga.ErrorExecution;var Pa,Da=ga.ErrorPlatform,Ma=ga.ErrorCustom,Na=ga.Update,ja=ga.Choose,Va=ga.Pure,Ia={},za="xstate.guard",Aa="production"===process.env.NODE_ENV;function Ha(e,t,n){void 0===n&&(n=".");var r=Za(e,n),i=Za(t,n);return al(i)?!!al(r)&&i===r:al(r)?r in i:Object.keys(r).every((function(e){return e in i&&Ha(r[e],i[e])}))}function Ba(e){try{return al(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function Fa(e,t){try{return il(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function Za(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:il(e)?qa(e):"string"!=typeof e?e:qa(Fa(e,t));var n}function qa(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function Ga(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];n[o]=t(e[o],o,e,i)}return n}function Wa(e,t,n){var r,i,o={};try{for(var a=ba(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];n(c)&&(o[s]=t(c,s,e))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var Ua=function(e){return function(t){var n,r,i=t;try{for(var o=ba(e),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function Xa(e){return e?al(e)?[[e]]:Ya(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?Xa(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function Ya(e){var t;return(t=[]).concat.apply(t,Ca([],ya(e),!1))}function Ka(e){return il(e)?e:[e]}function Ja(e){return void 0===e?[]:Ka(e)}function Qa(e,t,n){var r,i;if(ol(e))return e(t,n.data);var o={};try{for(var a=ba(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];ol(c)?o[s]=c(t,n.data):o[s]=c}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function el(e){return e instanceof Promise||!(null===e||!ol(e)&&"object"!=typeof e||!ol(e.then))}function tl(e,t){return Ga(e.states,(function(e,n){if(e){var r=(al(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:tl(e,r)}}}))}function nl(e,t,n,r){Aa||rl(!!e,"Attempting to update undefined context");var i=e?n.reduce((function(e,n){var i,o,a=n.assignment,l={state:r,action:n,_event:t},s={};if(ol(a))s=a(e,t.data,l);else try{for(var c=ba(Object.keys(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=a[u];s[u]=ol(p)?p(e,t.data,l):p}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return Object.assign({},e,s)}),e):e;return i}var rl=function(){};function il(e){return Array.isArray(e)}function ol(e){return"function"==typeof e}function al(e){return"string"==typeof e}function ll(e,t){if(e)return al(e)?{type:za,name:e,predicate:t?t[e]:void 0}:ol(e)?{type:za,name:e.name,predicate:e}:e}Aa||(rl=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var sl=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function cl(e){return!!e&&"__xstatenode"in e}function dl(e,t){return al(e)||"number"==typeof e?ma({type:e},t):e}function ul(e,t){if(!al(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=dl(e);return ma({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function pl(e,t){return Ka(t).map((function(t){return void 0===t||"string"==typeof t||cl(t)?{target:t,event:e}:ma(ma({},t),{event:e})}))}function hl(e,t,n,r,i){var o=e.options.guards,a={state:i,cond:t,_event:r};if(t.type===za)return((null==o?void 0:o[t.name])||t.predicate)(n,r.data,a);var l=null==o?void 0:o[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(n,r.data,a)}function fl(e){return"string"==typeof e?{type:e}:e}function gl(e,t,n){var r=function(){},i="object"==typeof e,o=i?e:null;return{next:((i?e.next:e)||r).bind(o),error:((i?e.error:t)||r).bind(o),complete:((i?e.complete:n)||r).bind(o)}}function vl(e,t){return"".concat(e,":invocation[").concat(t,"]")}function ml(e){return(e.type===ka||e.type===Sa&&e.to===va.Internal)&&"number"!=typeof e.delay}(Pa={})[sl]=function(){return this},Pa[Symbol.observable]=function(){return this};var xl=ul({type:Ra});function bl(e,t){return t&&t[e]||void 0}function yl(e,t){var n;if(al(e)||"number"==typeof e)n=ol(r=bl(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(ol(e))n={type:e.name||e.toString(),exec:e};else{var r;if(ol(r=bl(e.type,t)))n=ma(ma({},e),{exec:r});else if(r){var i=r.type||e.type;n=ma(ma(ma({},r),e),{type:i})}else n=e}return n}var Cl=function(e,t){return e?(il(e)?e:[e]).map((function(e){return yl(e,t)})):[]};function wl(e){var t=yl(e);return ma(ma({id:al(e)?e:t.id},t),{type:t.type})}function $l(e,t){var n="".concat(ga.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function kl(e,t){var n="".concat(ga.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Sl(e,t){var n="".concat(ga.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function El(e,t,n,r,i,o,a){void 0===a&&(a=!1);var l=a?[]:function(e){var t,n,r=[];try{for(var i=ba(e),o=i.next();!o.done;o=i.next())for(var a=o.value,l=0;l<a.actions.length;)a.actions[l].type!==_a?l++:(r.push(a.actions[l]),a.actions.splice(l,1))}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(i),s=l.length?nl(n,r,l,t):n,c=a?[n]:void 0,d=[];function u(i,l){var u;switch(l.type){case ka:var p=function(e,t,n,r){var i,o={_event:n},a=ul(ol(e.event)?e.event(t,n.data,o):e.event);if(al(e.delay)){var l=r&&r[e.delay];i=ol(l)?l(t,n.data,o):l}else i=ol(e.delay)?e.delay(t,n.data,o):e.delay;return ma(ma({},e),{type:ka,_event:a,delay:i})}(l,s,r,e.options.delays);return o&&"number"==typeof p.delay&&o(p,s,r),p;case Sa:var h=function(e,t,n,r){var i,o={_event:n},a=ul(ol(e.event)?e.event(t,n.data,o):e.event);if(al(e.delay)){var l=r&&r[e.delay];i=ol(l)?l(t,n.data,o):l}else i=ol(e.delay)?e.delay(t,n.data,o):e.delay;var s=ol(e.to)?e.to(t,n.data,o):e.to;return ma(ma({},e),{to:s,_event:a,event:a.data,delay:i})}(l,s,r,e.options.delays);if(!Aa){var f=l.delay;rl(!al(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return o&&h.to!==va.Internal&&("entry"===i?d.push(h):o(h,s,r)),h;case La:var g=function(e,t,n){return ma(ma({},e),{value:al(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(l,s,r);return null==o||o(g,s,r),g;case ja:if(!(b=null===(u=l.conds.find((function(n){var i=ll(n.cond,e.options.guards);return!i||hl(e,i,s,r,o?void 0:t)})))||void 0===u?void 0:u.actions))return[];var v=ya(El(e,t,s,r,[{type:i,actions:Cl(Ja(b),e.options.actions)}],o,a),2),m=v[0],x=v[1];return s=x,null==c||c.push(s),m;case Va:var b;if(!(b=l.get(s,r.data)))return[];var y=ya(El(e,t,s,r,[{type:i,actions:Cl(Ja(b),e.options.actions)}],o,a),2),C=y[0],w=y[1];return s=w,null==c||c.push(s),C;case $a:g=function(e,t,n){var r=ol(e.activity)?e.activity(t,n.data):e.activity,i="string"==typeof r?{id:r}:r;return{type:ga.Stop,activity:i}}(l,s,r);return null==o||o(g,n,r),g;case _a:s=nl(s,r,[l],o?void 0:t),null==c||c.push(s);break;default:var $=yl(l,e.options.actions),k=$.exec;if(o)o($,s,r);else if(k&&c){var S=c.length-1,E=ma(ma({},$),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,Ca([c[S]],ya(t),!1))}});$=E}return $}}var p=Ya(i.map((function(e){var t,n,i=[];try{for(var a=ba(e.actions),l=a.next();!l.done;l=a.next()){var c=l.value,p=u(e.type,c);p&&(i=i.concat(p))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return d.forEach((function(e){o(e,s,r)})),d.length=0,i})));return[p,s]}var Ol=function(e,t){return t(e)};function _l(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[sl]=function(){return this},t}function Ll(e,t,n){var r=_l(t);if(r.deferred=!0,cl(e)){var i=r.state=Ol(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return i}}return r}var Rl=function(e){return"atomic"===e.type||"final"===e.type};function Tl(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function Pl(e){return Tl(e).filter((function(e){return"history"!==e.type}))}function Dl(e){var t=[e];return Rl(e)?t:t.concat(Ya(Pl(e).map(Dl)))}function Ml(e,t){var n,r,i,o,a,l,s,c,d=jl(new Set(e)),u=new Set(t);try{for(var p=ba(u),h=p.next();!h.done;h=p.next())for(var f=($=h.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var g=jl(u);try{for(var v=ba(u),m=v.next();!m.done;m=v.next()){if("compound"!==($=m.value).type||g.get($)&&g.get($).length){if("parallel"===$.type)try{for(var x=(a=void 0,ba(Pl($))),b=x.next();!b.done;b=x.next()){var y=b.value;u.has(y)||(u.add(y),d.get(y)?d.get(y).forEach((function(e){return u.add(e)})):y.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}else d.get($)?d.get($).forEach((function(e){return u.add(e)})):$.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var C=ba(u),w=C.next();!w.done;w=C.next()){var $;for(f=($=w.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){s={error:e}}finally{try{w&&!w.done&&(c=C.return)&&c.call(C)}finally{if(s)throw s.error}}return u}function Nl(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(Rl(r))return r.key}var i={};return n.forEach((function(e){i[e.key]=Nl(e,t)})),i}function jl(e){var t,n,r=new Map;try{for(var i=ba(e),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Vl(e,t){return Nl(e,jl(Ml([e],t)))}function Il(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function zl(e,t){return"compound"===t.type?Pl(t).some((function(t){return"final"===t.type&&Il(e,t)})):"parallel"===t.type&&Pl(t).every((function(t){return zl(e,t)}))}function Al(e){return new Set(Ya(e.map((function(e){return e.tags}))))}function Hl(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(al(e)||al(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return Hl(e[n],t[n])}))}var Bl=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=Ia,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||Ia,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return Ca([],ya(new Set(Ya(Ca([],ya(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:xl,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=xl;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),al(e))return[e];var r=Object.keys(e);return r.concat.apply(r,Ca([],ya(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=xa(e,["configuration","transitions","tags","machine"]);return ma(ma({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return Ha(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;Aa&&rl(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),Fl={deferEvents:!1},Zl=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=ma(ma({},Fl),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),ql=new Map,Gl=0,Wl=function(){return"x:".concat(Gl++)},Ul=function(e,t){return ql.set(e,t),e},Xl=function(e){return ql.get(e)},Yl=function(e){ql.delete(e)};function Kl(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(Aa||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function Jl(e){if(Kl()){var t=function(){var e=Kl();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function Ql(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,i=[],o=!1,a=function(e){var t;return ma(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[sl]=function(){return this},t),e)}({id:t.id,send:function(t){i.push(t),function(){if(!o){for(o=!0;i.length>0;){var t=i.shift();n=e.transition(n,t,l),r.forEach((function(e){return e.next(n)}))}o=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,i){var o=gl(e,t,i);return r.add(o),o.next(n),{unsubscribe:function(){r.delete(o)}}}}),l={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(l):n,a}var es,ts={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(es||(es={}));var ns=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=es.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(il(e))return r.batch(e),r.state;var n=ul(dl(e,t));if(r.status===es.Stopped)return Aa||rl(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==es.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var i,o=r.parent&&(t===va.Parent||r.parent.id===t),a=o?r.parent:al(t)?t===va.Internal?r:r.children.get(t)||Xl(t):(i=t)&&"function"==typeof i.send?t:void 0;if(a)if("machine"in a){if(r.status!==es.Stopped||r.parent!==a||r.state.done){var l=ma(ma({},e),{name:e.name===Ma?"".concat(Sl(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,l]):a.send(l)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else{if(!o)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));Aa||rl(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,i){void 0===i&&(i=r.machine.options.actions);var o=e.exec||bl(e.type,i),a=ol(o)?o:o?o.exec:e.exec;if(a)try{return a(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case ka:var l=e;r.defer(l);break;case Sa:var s=e;if("number"==typeof s.delay)return void r.defer(s);s.to?r.sendTo(s._event,s.to,n===xl):r.send(s._event);break;case Ea:r.cancel(e.sendId);break;case wa:if(r.status!==es.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===ga.Invoke){var d=fl(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,p=c.id,h=c.data;Aa||rl(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!u)return void(Aa||rl(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var g=h?Qa(h,t,n):void 0;if("string"==typeof u)return;var v=ol(u)?u(t,n.data,{data:g,src:d,meta:c.meta}):u;if(!v)return;var m=void 0;cl(v)&&(v=g?v.withContext(g):v,m={autoForward:f}),r.spawn(v,p,m)}else r.spawnActivity(c);break;case $a:r.stopChild(e.activity.id);break;case La:var x=e,b=x.label,y=x.value;b?r.logger(b,y):r.logger(y);break;default:Aa||rl(!1,"No implementation found for action type '".concat(e.type,"'"))}};var i=ma(ma({},e.defaultOptions),n),o=i.clock,a=i.logger,l=i.parent,s=i.id,c=void 0!==s?s:t.id;this.id=c,this.logger=a,this.clock=o,this.parent=l,this.options=i,this.scheduler=new Zl({deferEvents:this.options.deferEvents}),this.sessionId=Wl()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Ol(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return Aa||rl(this.status!==es.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var i=ba(e.actions),o=i.next();!o.done;o=i.next()){var a=o.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,i,o,a,l,s,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==xl||!this.options.execute)for(var u=void 0;u=this._outgoingQueue.shift();)u[0].send(u[1]);else this.execute(this.state);if(this.children.forEach((function(e){d.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var p=ba(this.eventListeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=ba(this.listeners),g=f.next();!g.done;g=f.next()){(0,g.value)(e,e.event)}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}try{for(var v=ba(this.contextListeners),m=v.next();!m.done;m=v.next()){(0,m.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=v.return)&&l.call(v)}finally{if(a)throw a.error}}if(this.state.done){var x=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),b=x&&x.doneData?Qa(x.doneData,e.context,t):void 0;this._doneEvent=kl(this.id,b);try{for(var y=ba(this.doneListeners),C=y.next();!C.done;C=y.next()){(0,C.value)(this._doneEvent)}}catch(e){s={error:e}}finally{try{C&&!C.done&&(c=y.return)&&c.call(y)}finally{if(s)throw s.error}}this._stop(),this._stopChildren(),Yl(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===es.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,i=gl(e,t,n);this.listeners.add(i.next),this.status!==es.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===es.Stopped?i.complete():(this.onDone(o),this.onStop(o)),{unsubscribe:function(){r.listeners.delete(i.next),r.doneListeners.delete(o),r.stopListeners.delete(o)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===es.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===es.Running)return this;this.machine._init(),Ul(this.sessionId,this),this.initialized=!0,this.status=es.Running;var n=void 0===e?this.initialState:Ol(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(Bl.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,xl)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){ol(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,i,o,a,l,s,c;try{for(var d=ba(this.listeners),u=d.next();!u.done;u=d.next()){var p=u.value;this.listeners.delete(p)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var h=ba(this.stopListeners),f=h.next();!f.done;f=h.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var g=ba(this.contextListeners),v=g.next();!v.done;v=g.next()){p=v.value;this.contextListeners.delete(p)}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var m=ba(this.doneListeners),x=m.next();!x.done;x=m.next()){p=x.value;this.doneListeners.delete(p)}}catch(e){a={error:e}}finally{try{x&&!x.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=es.Stopped,this._initialState=void 0;try{for(var b=ba(Object.keys(this.delayedEventsMap)),y=b.next();!y.done;y=b.next()){var C=y.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}catch(e){s={error:e}}finally{try{y&&!y.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}this.scheduler.clear(),this.scheduler=new Zl({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=ul({type:"xstate.stop"}),r=Ol(e,(function(){var t=Ya(Ca([],ya(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Cl(t.onExit,e.machine.options.actions)}))),r=ya(El(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),i=r[0],o=r[1],a=new Bl({value:e.state.value,context:o,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter((function(e){return!ml(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a}));e.update(r,n),e._stopChildren(),Yl(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===es.NotStarted&&this.options.deferEvents)Aa||rl(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==es.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,i,o=t.state,a=!1,l=[],s=function(e){var r=ul(e);t.forward(r),o=Ol(t,(function(){return t.machine.transition(o,r,void 0,n||void 0)})),l.push.apply(l,Ca([],ya(t.machine.config.predictableActionArguments?o.actions:o.actions.map((function(e){return function(e,t){var n=e.exec;return ma(ma({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,o)}))),!1)),a=a||!!o.changed};try{for(var c=ba(e),d=c.next();!d.done;d=c.next()){s(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}o.changed=a,o.actions=l,t.update(o,ul(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=ul(e);if(0===r.name.indexOf(Da)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(Da)})))throw r.data.data;return Ol(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=ba(this.forwardTo),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.children.get(o);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),ol(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==es.Running)return Ll(e,t);if(el(e))return this.spawnPromise(Promise.resolve(e),t);if(ol(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(i=e)&&"id"in i)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&ol(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(cl(e))return this.spawnMachine(e,ma(ma({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,i},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var i=new e(t,ma(ma({},this.options),{parent:this,id:n.id||t.id})),o=ma(ma({},ts),n);o.sync&&i.onTransition((function(e){r.send(Na,{state:e,id:i.id})}));var a=i;return this.children.set(i.id,a),o.autoForward&&this.forwardTo.add(i.id),i.onDone((function(e){r.removeChild(i.id),r.send(ul(e,{origin:i.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=Ql(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,i=this,o=!1;e.then((function(e){o||(r=e,i.removeChild(t),i.send(ul(kl(t,e),{origin:t})))}),(function(e){if(!o){i.removeChild(t);var n=Sl(t,e);try{i.send(ul(n,{origin:t}))}catch(r){!function(e,t,n){if(!Aa){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var i=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(i))}}}(e,r,t),i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var i=gl(t,n,r),o=!1;return e.then((function(e){o||(i.next(e),o||i.complete())}),(function(e){o||i.error(e)})),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[sl]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,i,o=this,a=!1,l=new Set,s=new Set;try{i=e((function(e){r=e,s.forEach((function(t){return t(e)})),a||o.send(ul(e,{origin:t}))}),(function(e){l.add(e)}))}catch(e){this.send(Sl(t,e))}if(el(i))return this.spawnPromise(i,t);var c=((n={id:t,send:function(e){return l.forEach((function(t){return t(e)}))},subscribe:function(e){var t=gl(e);return s.add(t.next),{unsubscribe:function(){s.delete(t.next)}}},stop:function(){a=!0,ol(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[sl]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,i=this,o=e.subscribe((function(e){r=e,i.send(ul(e,{origin:t}))}),(function(e){i.removeChild(t),i.send(ul(Sl(t,e),{origin:t}))}),(function(){i.removeChild(t),i.send(ul(kl(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[sl]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else Aa||rl(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[sl]=function(){return this},n))},e.prototype.attachDev=function(){var e=Kl();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(ma(ma({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:ma({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}Jl(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[sl]=function(){return this},e.prototype.getSnapshot=function(){return this.status===es.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=rs,e}();function rs(e,t){return new ns(e,t)}function is(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function os(e){return ma(ma({type:Ta},e),{toJSON:function(){e.onDone,e.onError;var t=xa(e,["onDone","onError"]);return ma(ma({},t),{type:Ta,src:is(e.src)})}})}var as="",ls="*",ss={},cs=function(e){return"#"===e[0]},ds=function(){function e(t,n,r,i){void 0===r&&(r="context"in t?t.context:void 0);var o,a=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==i?void 0:i.parent,this.key=this.config.key||(null==i?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||Ca([this.machine.key],ya(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(o=this.config.schema)&&void 0!==o?o:{},this.description=this.config.description,Aa||rl(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?Ga(this.config.states,(function(t,n){var r,i=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,ma(((r={})[i.id]=i,r),i.idMap)),i})):ss;var l=0;!function e(t){var n,r;t.order=l++;try{for(var i=ba(Tl(t)),o=i.next();!o.done;o=i.next()){e(o.value)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===as})):as in this.config.on),this.strict=!!this.config.strict,this.onEntry=Ja(this.config.entry||this.config.onEntry).map((function(e){return yl(e)})),this.onExit=Ja(this.config.exit||this.config.onExit).map((function(e){return yl(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=Ja(this.config.invoke).map((function(e,t){var n,r;if(cl(e)){var i=vl(a.id,t);return a.machine.options.services=ma(((n={})[i]=e,n),a.machine.options.services),os({src:i,id:i})}if(al(e.src)){i=e.id||vl(a.id,t);return os(ma(ma({},e),{id:i,src:e.src}))}if(cl(e.src)||ol(e.src)){i=e.id||vl(a.id,t);return a.machine.options.services=ma(((r={})[i]=e.src,r),a.machine.options.services),os(ma(ma({id:i},e),{src:i}))}var o=e.src;return os(ma(ma({id:vl(a.id,t)},e),{src:o}))})),this.activities=Ja(this.config.activities).concat(this.invoke).map((function(e){return wl(e)})),this.transition=this.transition.bind(this),this.tags=Ja(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Dl(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,o=r.activities,a=r.guards,l=r.services,s=r.delays;return new e(this.config,{actions:ma(ma({},i),t.actions),activities:ma(ma({},o),t.activities),guards:ma(ma({},a),t.guards),services:ma(ma({},l),t.services),delays:ma(ma({},s),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return ol(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:Ga(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===as,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===ls}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(ga.After,"(").concat(e,")").concat(n)}(ol(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(function(e,t){return{to:t?t.to:void 0,type:Sa,event:ol(e)?e:dl(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:ol(e)?e.name:Ba(e)}}(r,{delay:t})),e.onExit.push({type:Ea,sendId:r}),r},r=il(t)?t.map((function(e,t){var r=n(e.delay,t);return ma(ma({},e),{event:r})})):Ya(Object.keys(t).map((function(e,r){var i=t[e],o=al(i)?{target:i}:i,a=isNaN(+e)?e:+e,l=n(a,r);return Ja(o).map((function(e){return ma(ma({},e),{event:l,delay:a})}))})));return r.map((function(t){var n=t.delay;return ma(ma({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof Bl?e.value:Za(e,this.delimiter);if(al(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((t={})[r]=i,t)):[this,this.states[r]]}var o=Object.keys(r),a=[this];return a.push.apply(a,Ca([],ya(Ya(o.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=Ba(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof Bl?e:Bl.create(e),n=Array.from(Ml([],this.getStateNodes(t.value)));return new Bl(ma(ma({},t),{value:this.resolve(t.value),configuration:n,done:zl(n,this),tags:Al(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),i=this.getStateNode(r[0])._transition(e[r[0]],t,n);return i&&i.transitions.length?i:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,i,o={};try{for(var a=ba(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];if(c){var d=this.getStateNode(s)._transition(c,t,n);d&&(o[s]=d)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var u=Object.keys(o).map((function(e){return o[e]})),p=Ya(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=Ya(Object.keys(o).map((function(e){return o[e].configuration})));return{transitions:p,exitSet:Ya(u.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:Ya(Object.keys(o).map((function(e){return o[e].actions})))}},e.prototype._transition=function(e,t,n){return al(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,ul(t))},e.prototype.next=function(e,t){var n,r,i,o=this,a=t.name,l=[],s=[];try{for(var c=ba(this.getCandidates(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=u.cond,h=u.in,f=e.context,g=!h||(al(h)&&cs(h)?e.matches(Za(this.getStateNodeById(h).path,this.delimiter)):Ha(Za(h,this.delimiter),Ua(this.path.slice(0,-2))(e.value))),v=!1;try{v=!p||hl(this.machine,p,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(v&&g){void 0!==u.target&&(s=u.target),l.push.apply(l,Ca([],ya(u.actions),!1)),i=u;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(i){if(!s.length)return{transitions:[i],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var m=Ya(s.map((function(t){return o.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[i],exitSet:!!i.internal?[]:Ya(s.map((function(e){return o.getPotentiallyReenteringNodes(e)}))),configuration:m,source:e,actions:l}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,i,o,a){var l,s,c,d,u=this,p=o?Ml([],this.getStateNodes(o.value)):[],h=new Set;try{for(var f=ba(Array.from(e).sort((function(e,t){return e.order-t.order}))),g=f.next();!g.done;g=f.next()){(!Il(p,x=g.value)||Il(n.exitSet,x)||x.parent&&h.has(x.parent))&&h.add(x)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(s=f.return)&&s.call(f)}finally{if(l)throw l.error}}try{for(var v=ba(p),m=v.next();!m.done;m=v.next()){var x;Il(e,x=m.value)&&!Il(n.exitSet,x.parent)||n.exitSet.push(x)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var b=Array.from(h).sort((function(e,t){return e.order-t.order})),y=new Set(n.exitSet),C=Ya(b.map((function(e){var t=[];if("final"!==e.type)return t;var o=e.parent;if(!o.parent)return t;t.push($l(e.id,e.doneData),$l(o.id,e.doneData?Qa(e.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&Pl(a).every((function(e){return zl(n.configuration,e)}))&&t.push($l(a.id)),t}))),w=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=wl(e);return{type:ga.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:Cl(a?Ca(Ca([],ya(t),!1),ya(n),!1):Ca(Ca([],ya(n),!1),ya(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:C.map((function(e){return function(e,t){return{type:ka,event:"function"==typeof e?e:dl(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),$=Array.from(y).map((function(e){return{type:"exit",actions:Cl(Ca(Ca([],ya(e.onExit),!1),ya(e.activities.map((function(e){return function(e){var t=ol(e)?e:wl(e);return{type:ga.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:Cl(n.actions,this.machine.options.actions)}).concat(w);if(t){var k=Cl(Ya(Ca([],ya(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!ml(e)}));return $.concat({type:"stop",actions:k})}return $},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var i,o,a=ul(t);if(e instanceof Bl)i=void 0===n?e:this.resolveState(Bl.from(e,n));else{var l=al(e)?this.resolve(qa(this.getResolvedPath(e))):this.resolve(e),s=null!=n?n:this.machine.context;i=this.resolveState(Bl.from(l,s))}if(!Aa&&a.name===ls)throw new Error("An event cannot have the wildcard type ('".concat(ls,"')"));if(this.strict&&!this.events.includes(a.name)&&(o=a.name,!/^(done|error)\./.test(o)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},d=Ml([],this.getStateNodes(i.value)),u=c.configuration.length?Ml(d,c.configuration):d;return c.configuration=Ca([],ya(u),!1),this.resolveTransition(c,i,i.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var i,o=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(i=e.actions).unshift.apply(i,Ca([],ya(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,i){var o,a,l,s,c=this;void 0===i&&(i=xl);var d=e.configuration,u=!t||e.transitions.length>0,p=u?e.configuration:t?t.configuration:[],h=zl(p,this),f=u?Vl(this.machine,d):void 0,g=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,v=this.getActions(new Set(p),h,e,n,i,t,r),m=t?ma({},t.activities):{};try{for(var x=ba(v),b=x.next();!b.done;b=x.next()){var y=b.value;try{for(var C=(l=void 0,ba(y.actions)),w=C.next();!w.done;w=C.next()){var $=w.value;$.type===wa?m[$.activity.id||$.activity.type]=$:$.type===$a&&(m[$.activity.id||$.activity.type]=!1)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(s=C.return)&&s.call(C)}finally{if(l)throw l.error}}}}catch(e){o={error:e}}finally{try{b&&!b.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}var k,S,E=ya(El(this,t,n,i,v,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),O=E[0],_=E[1],L=ya(function(e,t){var n,r,i=ya([[],[]],2),o=i[0],a=i[1];try{for(var l=ba(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(O,ml),2),R=L[0],T=L[1],P=O.filter((function(e){var t;return e.type===wa&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Ta})),D=P.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var i,o=fl(e.src),a=null===(i=null==t?void 0:t.options.services)||void 0===i?void 0:i[o.type],l=e.data?Qa(e.data,n,r):void 0,s=a?Ll(a,e.id,l):_l(e.id);return s.meta=e,s}(t.activity,c.machine,_,i),e}),t?ma({},t.children):{}),M=new Bl({value:f||t.value,context:_,_event:i,_sessionid:t?t._sessionid:null,historyValue:f?g?(k=g,S=f,{current:S,states:tl(k,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?T:[],activities:f?m:t?t.activities:{},events:[],configuration:p,transitions:e.transitions,children:D,done:h,tags:Al(p),machine:this}),N=n!==_;M.changed=i.name===Na||N;var j=M.history;j&&delete j.history;var V=!h&&(this._transient||d.some((function(e){return e._transient})));if(!(u||V&&i.name!==as))return M;var I=M;if(!h)for(V&&(I=this.resolveRaisedTransition(I,{type:Oa},i,r));R.length;){var z=R.shift();I=this.resolveRaisedTransition(I,z._event,i,r)}var A=I.changed||(j?!!I.actions.length||N||typeof j.value!=typeof I.value||!Hl(I.value,j.value):void 0);return I.changed=A,I.history=j,I},e.prototype.getStateNode=function(e){if(cs(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=cs(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&cs(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=Fa(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||ss;switch(this.type){case"parallel":return Ga(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):ss}));case"compound":if(al(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?Ga(e,(function(e,t){return e?n.getStateNode(t).resolve(e):ss})):this.initialStateValue||{};default:return e||ss}},e.prototype.getResolvedPath=function(e){if(cs(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return Fa(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=Wa(this.states,(function(e){return e.initialStateValue||ss}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=Rl(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=al(t.target)&&cs(t.target)?qa(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return Rl(this)?[this]:"compound"!==this.type||this.initial?Ya(Xa(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(Aa||rl(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=ya(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:Wa(this.states,(function(t,n){if(!e)return t.historyValue();var r=al(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?Ya(Xa(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(e){var t,n,r=e;try{for(var a=ba(i),l=a.next();!l.done;l=a.next()){var s=l.value;r=r[o][s]}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return al(a)?[n.getStateNode(a)]:Ya(Xa(a).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=Ya(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=ba(Object.keys(i)),l=a.next();!l.done;l=a.next()){var s=i[l.value];if(s.states)try{for(var c=(n=void 0,ba(s.events)),d=c.next();!d.done;d=c.next()){var u=d.value;o.add("".concat(u))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!al(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return Ja(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return al(e)&&e[0]===t.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=ma(ma({},e),{actions:Cl(Ja(e.actions)),cond:ll(e.cond,i),target:o,source:this,internal:r,eventType:e.event,toJSON:function(){return ma(ma({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=ls,a=i[o],l=void 0===a?[]:a,s=xa(i,["*"]);n=Ya(Object.keys(s).map((function(e){Aa||e!==as||rl(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=pl(e,s[e]);return Aa||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(al(e.target)||cl(e.target))})),i=t===as?"the transient event":"event '".concat(t,"'");rl(!r,"One or more transitions for ".concat(i," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(pl(ls,l)))}else n=[];var c=this.config.always?pl("",this.config.always):[],d=this.config.onDone?pl(String($l(this.id)),this.config.onDone):[];Aa||rl(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=Ya(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,Ca([],ya(pl(String(kl(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,Ca([],ya(pl(String(Sl(e.id)),e.onError)),!1)),t}))),p=this.after,h=Ya(Ca(Ca(Ca(Ca([],ya(d),!1),ya(u),!1),ya(n),!1),ya(c),!1).map((function(e){return Ja(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=ba(p),g=f.next();!g.done;g=f.next()){var v=g.value;h.push(v)}}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return h},e}();var us,ps=function(e){return{type:_a,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(us||(us={}));var hs="undefined"!=typeof document?K:function(){};function fs(e){var t=F.useRef();return t.current||(t.current={v:e()}),t.current.v}var gs=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},vs=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var ms=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},xs=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function bs(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function ys(e){var t=Y([]),n=Y([]);hs((function(){var r=e.subscribe((function(e){var r,i;if(e.actions.length){var o=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),a=ms(function(e,t){var n,r,i=gs([[],[]],2),o=i[0],a=i[1];try{for(var l=vs(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(o,(function(e){return e.exec.__effect===us.Effect})),2),l=a[0],s=a[1];(r=t.current).push.apply(r,xs([],ms(l.map((function(t){return[t,e]}))),!1)),(i=n.current).push.apply(i,xs([],ms(s.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),hs((function(){for(;n.current.length;){var e=ms(n.current.shift(),2);bs(e[0],e[1])}})),W((function(){for(;t.current.length;){var e=ms(t.current.shift(),2);bs(e[0],e[1])}}))}var Cs=function(){return Cs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Cs.apply(this,arguments)},ws=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},$s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};var ks=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function Ss(e,t){void 0===t&&(t={});var n=J((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&a(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=fs((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=$s(G(r),1)[0];e!==i&&console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.")}var o=t.context,a=t.guards,l=t.actions,s=t.activities,c=t.services,d=t.delays,u=t.state,p=ws(t,["context","guards","actions","activities","services","delays","state"]),h=fs((function(){var e={context:o,guards:a,actions:l,activities:s,services:c,delays:d};return rs(r.withConfig(e,(function(){return Cs(Cs({},r.context),o)})),Cs({deferEvents:!0},p))}));return hs((function(){var e;return n&&(e=h.subscribe(function(e){if("object"==typeof e)return e;var t=function(){};return{next:e,error:void 0||t,complete:void 0||t}}(n))),function(){null==e||e.unsubscribe()}}),[n]),hs((function(){return h.start(u?Bl.create(u):void 0),function(){h.stop()}}),[]),hs((function(){Object.assign(h.machine.options.actions,l),Object.assign(h.machine.options.guards,a),Object.assign(h.machine.options.activities,s),Object.assign(h.machine.options.services,c),Object.assign(h.machine.options.delays,d)}),[l,a,s,c,d]),ys(h),h}(e,t,n),i=ks(G((function(){var e=r.machine.initialState;return t.state?Bl.create(t.state):e})),2),o=i[0],a=i[1];return[o,r.send,r]}function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Es.apply(null,arguments)}function Os(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const _s={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(_s.str(e)||_s.num(e))return e===t;if(_s.obj(e)&&_s.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!_s.und(n)||e===t}};function Ls(e,t){return _s.und(e)||_s.nul(e)?t:e}function Rs(e){return _s.und(e)?[]:_s.arr(e)?e:[e]}function Ts(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _s.fun(e)?e(...n):e}function Ps(e){const t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,Os(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(_s.und(t))return Es({to:t},e);const n=Object.keys(e).reduce(((n,r)=>_s.und(t[r])?Es({},n,{[r]:e[r]}):n),{});return Es({to:t},n)}class Ds{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class Ms extends Ds{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof Ds&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof Ds&&e.removeChild(this)))}}class Ns extends Ds{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof Ds&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof Ds&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof Ds)&&(t[n]=r instanceof Ds?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let js,Vs;let Is,zs=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let As,Hs=()=>Date.now();class Bs extends Ns{constructor(e,t){super(),this.update=void 0,this.payload=e.style?Es({},e,{style:As(e.style)}):e,this.update=t,this.attach()}}let Fs=!1;const Zs=new Set,qs=()=>{if(!Fs)return!1;let e=Hs();for(let t of Zs){let n=!1;for(let r=0;r<t.configs.length;r++){let i,o,a=t.configs[r];for(let t=0;t<a.animatedValues.length;t++){let r=a.animatedValues[t];if(r.done)continue;let l=a.fromValues[t],s=a.toValues[t],c=r.lastPosition,d=s instanceof Ds,u=Array.isArray(a.initialVelocity)?a.initialVelocity[t]:a.initialVelocity;if(d&&(s=s.getValue()),a.immediate)r.setValue(s),r.done=!0;else if("string"!=typeof l&&"string"!=typeof s){if(void 0!==a.duration)c=l+a.easing((e-r.startTime)/a.duration)*(s-l),i=e>=r.startTime+a.duration;else if(a.decay)c=l+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),i=Math.abs(r.lastPosition-c)<.1,i&&(s=c);else{o=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:a.initialVelocity,e>o+64&&(o=e);let t=Math.floor(e-o);for(let e=0;e<t;++e){u+=1*((-a.tension*(c-s)+-a.friction*u)/a.mass)/1e3,c+=1*u/1e3}let n=!(!a.clamp||0===a.tension)&&(l<s?c>s:c<s),d=Math.abs(u)<=a.precision,p=0===a.tension||Math.abs(s-c)<=a.precision;i=n||d&&p,r.lastVelocity=u,r.lastTime=e}d&&!a.toValues[t].done&&(i=!1),i?(r.value!==s&&(c=s),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(s),r.done=!0}t.props.onFrame&&(t.values[a.name]=a.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(Zs.delete(t),t.stop(!0))}return Zs.size?zs(qs):Fs=!1,Fs};function Gs(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return Gs({range:e,output:t,extrapolate:n});if(Is&&"string"==typeof e.output[0])return Is(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],s,a,l,r.map)}}class Ws extends Ms{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof Ms&&!(e instanceof Ws)?e.getPayload():Array.isArray(e)?e:[e],this.calc=Gs(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=Gs(e,t,n)}interpolate(e,t,n){return new Ws(this,e,t,n)}}const Us=(e,t,n)=>e&&new Ws(e,t,n);function Xs(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>Xs(e,t)))}class Ys extends Ds{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&Xs(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new Ws(this,e,t,n)}}class Ks extends Ms{constructor(e){super(),this.payload=e.map((e=>new Ys(e)))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach(((e,n)=>this.payload[n].setValue(e,t))):this.payload.forEach((n=>n.setValue(e,t)))}getValue(){return this.payload.map((e=>e.getValue()))}interpolate(e,t){return new Ws(this,e,t)}}let Js=0,Qs=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=Js++}update(e){if(!e)return this;const t=Ps(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=Os(t,["delay","to"]);if(_s.arr(i)||_s.fun(i))this.queue.push(Es({},o,{delay:r,to:i}));else if(i){let e={};Object.entries(i).forEach((t=>{let n=t[0],i=t[1];const a=Es({to:{[n]:i},delay:Ts(r,n)},o),l=e[a.delay]&&e[a.delay].to;e[a.delay]=Es({},e[a.delay],a,{to:Es({},l,a.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(o),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,i=void 0===r?{}:r;_s.obj(n)&&(this.merged=Es({},n,this.merged)),_s.obj(i)&&(this.merged=Es({},this.merged,i))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,i)=>{let o=r.delay,a=Os(r,["delay"]);const l=r=>{i===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let s=_s.arr(a.to)||_s.fun(a.to);o?setTimeout((()=>{t===this.guid&&(s?this.runAsync(a,l):this.diff(a).start(l))}),o):s?this.runAsync(a,l):this.diff(a).start(l)}))}else _s.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,Zs.has(t)||Zs.add(t),Fs||(Fs=!0,zs(qs));var t;return this}stop(e){return this.listeners.forEach((t=>t(e))),this.listeners=[],this}pause(e){var t;return this.stop(!0),e&&(t=this,Zs.has(t)&&Zs.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=Os(e,["delay"]);const i=this.local;let o=Promise.resolve(void 0);if(_s.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=Es({},r,Ps(r.to[t]));_s.arr(n.config)&&(n.config=n.config[t]),o=o.then((()=>{if(i===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(_s.fun(r.to)){let e,t=0;o=o.then((()=>r.to((n=>{const o=Es({},r,Ps(n));if(_s.arr(o.config)&&(o.config=o.config[t]),t++,i===this.guid)return e=new Promise((e=>this.diff(o).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}o.then(t)}diff(e){this.props=Es({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,i=t.to,o=void 0===i?{}:i,a=t.config,l=void 0===a?{}:a,s=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(s){var p=[o,r];r=p[0],o=p[1]}this.merged=Es({},r,this.merged,o),this.hasChanged=!1;let h=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],i=t[1],o=e[n]||{};const a=_s.num(i),s=_s.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!Vs[i],c=_s.arr(i),p=!a&&!c&&!s;let f=_s.und(r[n])?i:r[n],g=a||c||s?i:1,v=Ts(l,n);h&&(g=h.animations[n].parent);let m,x=o.parent,b=o.interpolation,y=Rs(h?g.getPayload():g),C=i;p&&(C=Is({range:[0,1],output:[i,i]})(1));let w=b&&b.getValue();const $=!_s.und(x)&&o.animatedValues.some((e=>!e.done)),k=!_s.equ(C,w),S=!_s.equ(C,o.previous),E=!_s.equ(v,o.config);if(d||S&&k||E){if(a||s)x=b=o.parent||new Ys(f);else if(c)x=b=o.parent||new Ks(f);else if(p){let e=o.interpolation&&o.interpolation.calc(o.parent.value);e=void 0===e||d?f:e,o.parent?(x=o.parent,x.setValue(0,!1)):x=new Ys(0);const t={output:[e,i]};o.interpolation?(b=o.interpolation,o.interpolation.updateConfig(t)):b=x.interpolate(t)}return y=Rs(h?g.getPayload():g),m=Rs(x.getPayload()),d&&!p&&x.setValue(f,!1),this.hasChanged=!0,m.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=$?e.lastVelocity:void 0,e.lastTime=$?e.lastTime:void 0,e.startTime=Hs(),e.done=!1,e.animatedStyles.clear()})),Ts(u,n)&&x.setValue(p?g:i,!1),Es({},e,{[n]:Es({},o,{name:n,parent:x,interpolation:b,animatedValues:m,toValues:y,previous:C,config:v,fromValues:Rs(x.getValue()),immediate:Ts(u,n),initialVelocity:Ls(v.velocity,0),clamp:Ls(v.clamp,!1),precision:Ls(v.precision,.01),tension:Ls(v.tension,170),friction:Ls(v.friction,26),mass:Ls(v.mass,1),duration:v.duration,easing:Ls(v.easing,(e=>e)),decay:v.decay})})}return k?e:(p&&(x.setValue(1,!1),b.updateConfig({output:[C,C]})),x.done=!0,this.hasChanged=!0,Es({},e,{[n]:Es({},e[n],{previous:C})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const ec=e=>{const t=_s.fun(e),n=((e,t)=>{const n=Y(!1),r=Y(),i=_s.fun(t),o=ee((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const o=new Qs,a=i?Ts(t,r,o):t[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o})),n]}),[e]),a=o[0],l=o[1];r.current=a,te(l,(()=>({start:()=>Promise.all(r.current.map((e=>new Promise((t=>e.start(t)))))),stop:e=>r.current.forEach((t=>t.stop(e))),get controllers(){return r.current}})));const s=ee((()=>e=>r.current.map(((t,n)=>{t.update(i?Ts(e,n,t):e[n]),l||t.start()}))),[e]);W((()=>{n.current?i||s(t):l||r.current.forEach((e=>e.start()))})),W((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return i?[c,s,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r};class tc extends Ns{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof Ds||(e=js.transform(e)),this.payload=e}}const nc={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},rc="[-+]?\\d*\\.?\\d+",ic=rc+"%";function oc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const ac=new RegExp("rgb"+oc(rc,rc,rc)),lc=new RegExp("rgba"+oc(rc,rc,rc,rc)),sc=new RegExp("hsl"+oc(rc,ic,ic)),cc=new RegExp("hsla"+oc(rc,ic,ic,rc)),dc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,uc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,pc=/^#([0-9a-fA-F]{6})$/,hc=/^#([0-9a-fA-F]{8})$/;function fc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gc(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=fc(i,r,e+1/3),a=fc(i,r,e),l=fc(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function vc(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function mc(e){return(parseFloat(e)%360+360)%360/360}function xc(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function bc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function yc(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=pc.exec(e))?parseInt(t[1]+"ff",16)>>>0:nc.hasOwnProperty(e)?nc[e]:(t=ac.exec(e))?(vc(t[1])<<24|vc(t[2])<<16|vc(t[3])<<8|255)>>>0:(t=lc.exec(e))?(vc(t[1])<<24|vc(t[2])<<16|vc(t[3])<<8|xc(t[4]))>>>0:(t=dc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hc.exec(e))?parseInt(t[1],16)>>>0:(t=uc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=sc.exec(e))?(255|gc(mc(t[1]),bc(t[2]),bc(t[3])))>>>0:(t=cc.exec(e))?(gc(mc(t[1]),bc(t[2]),bc(t[3]))|xc(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Cc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,wc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,$c=new RegExp(`(${Object.keys(nc).join("|")})`,"g");let kc={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Sc=["Webkit","Ms","Moz","O"];function Ec(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||kc.hasOwnProperty(e)&&kc[e]?(""+t).trim():t+"px"}kc=Object.keys(kc).reduce(((e,t)=>(Sc.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),kc);const Oc={};var _c;As=e=>new tc(e),_c=e=>{const t=e.output.map((e=>e.replace(wc,yc))).map((e=>e.replace($c,yc))),n=t[0].match(Cc).map((()=>[]));t.forEach((e=>{e.match(Cc).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Cc).map(((t,r)=>Gs(Es({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Cc,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`))}},Is=_c,Vs=nc,function(e,t){js={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,o=t.children,a=t.scrollTop,l=t.scrollLeft,s=Os(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=Ec(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in s){const n=c?t:Oc[t]||(Oc[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));var Lc;const Rc=(Lc=e=>q(((t,n)=>{const r=function(){const e=G(!1)[1];return J((()=>e((e=>!e))),[])}(),i=Y(!0),o=Y(null),a=Y(null),l=J((e=>{const t=o.current;o.current=new Bs(e,(()=>{let e=!1;a.current&&(e=js.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);W((()=>()=>{i.current=!1,o.current&&o.current.detach()}),[]),te(n,(()=>(e=>e.current)(a))),l(t);const s=o.current.getValue();s.scrollTop,s.scrollLeft;const c=Os(s,["scrollTop","scrollLeft"]),d=(u=e,!_s.fun(u)||u.prototype instanceof Z.Component?e=>a.current=function(e,t){return t&&(_s.fun(t)?t(e):_s.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return Z.createElement(e,Es({},c,{ref:d}))})),e=>(_s.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=Lc(n),e}),Lc))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function Tc(e,t){return e.map((function(e,n){return e+t[n]}))}function Pc(e,t){return e.map((function(e,n){return e-t[n]}))}function Dc(e){return Math.hypot.apply(Math,e)}function Mc(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Nc(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function jc(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Nc(t-e,n-t,r)+t:e>n?+Nc(e-n,n-t,r)+n:e}function Vc(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function Ic(){return Ic=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ic.apply(this,arguments)}function zc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Ac(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bc(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Hc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hc(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Fc(){}function Zc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?Fc:1===t.length?t[0]:function(){for(var e,n,r=Bc(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function qc(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function Gc(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function Wc(e,t){void 0===e&&(e={});for(var n={},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],l=o[1];switch(typeof l){case"function":n[a]=l.call(n,e[a],a,e);break;case"object":n[a]=Wc(e[a],l);break;case"boolean":l&&(n[a]=e[a])}}return n}var Uc=Ic({},{threshold:function(e){return void 0===e&&(e=0),qc(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return qc(.15);case!1:return qc(0);default:return qc(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:qc(e)}},{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return Uc.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,i=t.right,o=void 0===i?1/0:i,a=t.top,l=void 0===a?-1/0:a,s=t.bottom;return[[r,o],[l,void 0===s?1/0:s]]}}),Xc="undefined"!=typeof window&&window.document&&window.document.createElement,Yc={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=Xc?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,i=t.capture;return{passive:r,capture:void 0!==i&&i}}},Kc=Ic({},Uc,{threshold:function(e,t,n){var r=n.filterTaps,i=void 0!==r&&r,o=n.lockDirection,a=void 0!==o&&o,l=n.axis,s=qc(e,i?3:a||(void 0===l?void 0:l)?1:0);return this.filterTaps=i||s[0]+s[1]>0,s},swipeVelocity:function(e){return void 0===e&&(e=.5),qc(e)},swipeDistance:function(e){return void 0===e&&(e=60),qc(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function Jc(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["domTarget","eventOptions","window","enabled"]),a=function(e){return void 0===e&&(e={}),Wc(e,Yc)}({domTarget:t,eventOptions:n,window:r,enabled:i});return a.drag=function(e){return void 0===e&&(e={}),Wc(e,Kc)}(o),a}function Qc(e){return Ic({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:Fc,canceled:!1,memo:void 0,args:void 0},e)}function ed(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:Qc({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:Qc({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:Qc({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:Qc({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:Qc({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var td=new Map,nd=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(o))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var i=Ic({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),o=n.handler(i);return n.state.memo=void 0!==o?o:n.state.memo,n.state._active||n.clean(),i}}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t=this.config,n=t.initial,r=t.bounds,i=t.rubberband,o=t.threshold,a=this.state,l=a._bounds,s=a._initial,c=a._active,d=a._intentional,u=a.lastOffset,p=a.movement,h=this.getInternalMovement(e,this.state),f=!1===d[0]?rd(h[0],o[0]):d[0],g=!1===d[1]?rd(h[1],o[1]):d[1],v=this.checkIntentionality([f,g],h);if(v._blocked)return Ic({},v,{_movement:h,delta:[0,0]});var m,x,b,y,C=v._intentional,w=h;(!1!==C[0]&&!1===d[0]&&(x=Gc(n,this.state),m=Gc(r,this.state),s[0]=x[0],l[0]=m[0]),!1!==C[1]&&!1===d[1])&&(x=null!=(b=x)?b:Gc(n,this.state),m=null!=(y=m)?y:Gc(r,this.state),s[1]=x[1],l[1]=m[1]);var $=[!1!==C[0]?h[0]-C[0]:s[0],!1!==C[1]?h[1]-C[1]:s[1]],k=Tc($,u),S=c?i:[0,0];return $=id(l,Tc($,s),S),Ic({},v,{intentional:!1!==C[0]||!1!==C[1],_initial:s,_movement:w,movement:$,values:e,offset:id(l,k,S),delta:Pc($,p)})},t.clean=function(){this.clearTimeout()},Vc(e,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),e}();function rd(e,t){return Math.abs(e)>=t&&Mc(e)*t}function id(e,t,n){var r=t[0],i=t[1],o=n[0],a=n[1],l=e[0],s=l[0],c=l[1],d=e[1],u=d[0],p=d[1];return[jc(r,s,c,o),jc(i,u,p,a)]}function od(e,t,n){var r=e.state,i=e.args,o=t.timeStamp,a=t.type,l=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,args:i,previous:l}}function ad(e,t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.call.apply(e,[this,Ic({},t,{event:n})].concat(i))}}var ld=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o,a=Bc(t.classes);!(o=a()).done;){new(0,o.value)(t,r).addBindings(e)}for(var l=0,s=Object.entries(t.nativeRefs);l<s.length;l++){var c=s[l];dd(e,c[0],ad(c[1],Ic({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=cd(n);if(!i)throw new Error("domTarget must be defined");var o=n.eventOptions;pd(i,sd(r),o);for(var a=0,l=Object.entries(t);a<l.length;a++){var s=l[a],c=s[0],d=s[1],u=c.slice(2).toLowerCase();r.push([u,Zc.apply(void 0,d)])}ud(i,r,o)}(t,e):function(e,t){for(var n=e.config,r={},i=n.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var l=a[o],s=l[0],c=l[1],d=Array.isArray(c)?c:[c];r[s+i]=Zc.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=cd(t.config),n=t.config.eventOptions;e&&pd(e,sd(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,i=e.windowListeners;if(!n)return;for(var o in i){pd(n,i[o],r)}e.windowListeners={}}(t)},this.state=ed(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function sd(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function cd(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function dd(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function ud(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=Bc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.addEventListener(a,l,n)}}function pd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=Bc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.removeEventListener(a,l,n)}}function hd(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(td.get("drag"));e.wheel&&t.add(td.get("wheel"));e.scroll&&t.add(td.get("scroll"));e.move&&t.add(td.get("move"));e.pinch&&t.add(td.get("pinch"));e.hover&&t.add(td.get("hover"));return t}(e),i=Z.useMemo((function(){return new ld(r)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=n,Z.useEffect(i.effect,[]),i.config.domTarget?fd:i.bind}function fd(){"development"===process.env.NODE_ENV&&console.warn("Deprecation notice: When the `domTarget` option is specified, you don't need to write `useEffect(bind, [bind])` anymore: event binding is now made handled internally to this lib.\n\nNext version won't return anything when `domTarget` is provided, therefore your code will break if you try to call `useEffect`.")}function gd(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function vd(e){var t="buttons"in e?e.buttons:0,n=gd(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function md(e){var t=gd(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var xd=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(!function(e,t,n){var r=e.config,i=e.windowListeners;void 0===n&&(n=[]),r.window&&(pd(r.window,i[t],r.eventOptions),ud(r.window,i[t]=n,r.eventOptions))}(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(Ac(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=vd(e);if(n.down){t.updateSharedState(n);var r=md(e),i=t.getKinematics(r,e),o=od(Ac(t),e),a=t.state._isTap,l=Dc(i._movement);a&&l>=3&&(a=!1),t.updateGestureState(Ic({},o,i,{_isTap:a})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,i=r[0],o=r[1],a=t.state.movement,l=a[0],s=a[1],c=t.state._intentional,d=c[0],u=c[1],p=t.config.swipeVelocity,h=p[0],f=p[1],g=t.config.swipeDistance,v=g[0],m=g[1],x=Ic({},od(Ac(t),e),t.getMovement(t.state.values)),b=[0,0];x.elapsedTime<220&&(!1!==d&&Math.abs(i)>h&&Math.abs(l)>v&&(b[0]=Mc(i)),!1!==u&&Math.abs(o)>f&&Math.abs(s)>m&&(b[1]=Mc(o))),t.updateGestureState(Ic({},x,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(Ac(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(pd(n.window,r[t],n.eventOptions),delete r[t])}(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}zc(t,e);var n=t.prototype;return n.startDrag=function(e){var t=md(e);this.updateSharedState(vd(e)),this.updateGestureState(Ic({},function(e,t,n){var r=e.state.offset,i=n.timeStamp;return Ic({},ed()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:i})}(this,t,e),od(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(dd(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&dd(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}zc(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Pc(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],i=n[1],o=this.state.axis||(r>i?"x":r<i?"y":void 0);return this.config.axis||this.config.lockDirection?o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e["x"===o?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}:{_intentional:e,_blocked:!1,axis:o}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=Dc(t),i=0===r?0:1/r,o=0===n?0:1/n,a=o*r,l=t.map((function(e){return o*e})),s=t.map((function(e){return i*e}));return{velocities:l,velocity:a,distance:Dc(e),direction:s}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(nd));function bd(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,o;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!bd(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!bd(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===i[r]&&e.$$typeof||bd(e[i[r]],t[i[r]])))return!1;return!0}return e!=e&&t!=t}function yd(e,t){try{return bd(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function Cd(e,t){void 0===t&&(t={}),td.set("drag",xd);var n=Y();return n.current||(n.current=function(e,t){var n,r,i=[],o=!1;return function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return o&&n===this&&t(l,i)||(r=e.apply(this,l),o=!0,n=this,i=l),r}}(Jc,yd)),hd({drag:e},n.current(t))}
2303
+ ***************************************************************************** */var xa,ba,ya=function(){return ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ya.apply(this,arguments)};function Ca(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function wa(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function ka(e,t,n){if(2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(xa||(xa={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(ba||(ba={}));var Sa=xa.Start,Ea=xa.Stop,Oa=xa.Raise,_a=xa.Send,La=xa.Cancel,Ra=xa.NullEvent,Ta=xa.Assign;xa.After,xa.DoneState;var Pa=xa.Log,Da=xa.Init,Ma=xa.Invoke;xa.ErrorExecution;var Na,ja=xa.ErrorPlatform,Va=xa.ErrorCustom,Ia=xa.Update,za=xa.Choose,Aa=xa.Pure,Ha={},Ba="xstate.guard",Fa="production"===process.env.NODE_ENV;function Za(e,t,n){void 0===n&&(n=".");var r=Wa(e,n),i=Wa(t,n);return cl(i)?!!cl(r)&&i===r:cl(r)?r in i:Object.keys(r).every((function(e){return e in i&&Za(r[e],i[e])}))}function qa(e){try{return cl(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function Ga(e,t){try{return ll(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function Wa(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:ll(e)?Ua(e):"string"!=typeof e?e:Ua(Ga(e,t));var n}function Ua(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function Xa(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];n[o]=t(e[o],o,e,i)}return n}function Ya(e,t,n){var r,i,o={};try{for(var a=wa(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];n(c)&&(o[s]=t(c,s,e))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var Ka=function(e){return function(t){var n,r,i=t;try{for(var o=wa(e),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function Ja(e){return e?cl(e)?[[e]]:Qa(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?Ja(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function Qa(e){var t;return(t=[]).concat.apply(t,ka([],$a(e),!1))}function el(e){return ll(e)?e:[e]}function tl(e){return void 0===e?[]:el(e)}function nl(e,t,n){var r,i;if(sl(e))return e(t,n.data);var o={};try{for(var a=wa(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];sl(c)?o[s]=c(t,n.data):o[s]=c}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function rl(e){return e instanceof Promise||!(null===e||!sl(e)&&"object"!=typeof e||!sl(e.then))}function il(e,t){return Xa(e.states,(function(e,n){if(e){var r=(cl(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:il(e,r)}}}))}function ol(e,t,n,r){Fa||al(!!e,"Attempting to update undefined context");var i=e?n.reduce((function(e,n){var i,o,a=n.assignment,l={state:r,action:n,_event:t},s={};if(sl(a))s=a(e,t.data,l);else try{for(var c=wa(Object.keys(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=a[u];s[u]=sl(p)?p(e,t.data,l):p}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return Object.assign({},e,s)}),e):e;return i}var al=function(){};function ll(e){return Array.isArray(e)}function sl(e){return"function"==typeof e}function cl(e){return"string"==typeof e}function dl(e,t){if(e)return cl(e)?{type:Ba,name:e,predicate:t?t[e]:void 0}:sl(e)?{type:Ba,name:e.name,predicate:e}:e}Fa||(al=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var ul=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function pl(e){return!!e&&"__xstatenode"in e}function hl(e,t){return cl(e)||"number"==typeof e?ya({type:e},t):e}function fl(e,t){if(!cl(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=hl(e);return ya({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function gl(e,t){return el(t).map((function(t){return void 0===t||"string"==typeof t||pl(t)?{target:t,event:e}:ya(ya({},t),{event:e})}))}function vl(e,t,n,r,i){var o=e.options.guards,a={state:i,cond:t,_event:r};if(t.type===Ba)return((null==o?void 0:o[t.name])||t.predicate)(n,r.data,a);var l=null==o?void 0:o[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(n,r.data,a)}function ml(e){return"string"==typeof e?{type:e}:e}function xl(e,t,n){var r=function(){},i="object"==typeof e,o=i?e:null;return{next:((i?e.next:e)||r).bind(o),error:((i?e.error:t)||r).bind(o),complete:((i?e.complete:n)||r).bind(o)}}function bl(e,t){return"".concat(e,":invocation[").concat(t,"]")}function yl(e){return(e.type===Oa||e.type===_a&&e.to===ba.Internal)&&"number"!=typeof e.delay}(Na={})[ul]=function(){return this},Na[Symbol.observable]=function(){return this};var Cl=fl({type:Da});function wl(e,t){return t&&t[e]||void 0}function $l(e,t){var n;if(cl(e)||"number"==typeof e)n=sl(r=wl(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(sl(e))n={type:e.name||e.toString(),exec:e};else{var r;if(sl(r=wl(e.type,t)))n=ya(ya({},e),{exec:r});else if(r){var i=r.type||e.type;n=ya(ya(ya({},r),e),{type:i})}else n=e}return n}var kl=function(e,t){return e?(ll(e)?e:[e]).map((function(e){return $l(e,t)})):[]};function Sl(e){var t=$l(e);return ya(ya({id:cl(e)?e:t.id},t),{type:t.type})}function El(e,t){var n="".concat(xa.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Ol(e,t){var n="".concat(xa.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function _l(e,t){var n="".concat(xa.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Ll(e,t,n,r,i,o,a){void 0===a&&(a=!1);var l=a?[]:function(e){var t,n,r=[];try{for(var i=wa(e),o=i.next();!o.done;o=i.next())for(var a=o.value,l=0;l<a.actions.length;)a.actions[l].type!==Ta?l++:(r.push(a.actions[l]),a.actions.splice(l,1))}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(i),s=l.length?ol(n,r,l,t):n,c=a?[n]:void 0,d=[];function u(i,l){var u;switch(l.type){case Oa:var p=function(e,t,n,r){var i,o={_event:n},a=fl(sl(e.event)?e.event(t,n.data,o):e.event);if(cl(e.delay)){var l=r&&r[e.delay];i=sl(l)?l(t,n.data,o):l}else i=sl(e.delay)?e.delay(t,n.data,o):e.delay;return ya(ya({},e),{type:Oa,_event:a,delay:i})}(l,s,r,e.options.delays);return o&&"number"==typeof p.delay&&o(p,s,r),p;case _a:var h=function(e,t,n,r){var i,o={_event:n},a=fl(sl(e.event)?e.event(t,n.data,o):e.event);if(cl(e.delay)){var l=r&&r[e.delay];i=sl(l)?l(t,n.data,o):l}else i=sl(e.delay)?e.delay(t,n.data,o):e.delay;var s=sl(e.to)?e.to(t,n.data,o):e.to;return ya(ya({},e),{to:s,_event:a,event:a.data,delay:i})}(l,s,r,e.options.delays);if(!Fa){var f=l.delay;al(!cl(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return o&&h.to!==ba.Internal&&("entry"===i?d.push(h):o(h,s,r)),h;case Pa:var g=function(e,t,n){return ya(ya({},e),{value:cl(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(l,s,r);return null==o||o(g,s,r),g;case za:if(!(b=null===(u=l.conds.find((function(n){var i=dl(n.cond,e.options.guards);return!i||vl(e,i,s,r,o?void 0:t)})))||void 0===u?void 0:u.actions))return[];var v=$a(Ll(e,t,s,r,[{type:i,actions:kl(tl(b),e.options.actions)}],o,a),2),m=v[0],x=v[1];return s=x,null==c||c.push(s),m;case Aa:var b;if(!(b=l.get(s,r.data)))return[];var y=$a(Ll(e,t,s,r,[{type:i,actions:kl(tl(b),e.options.actions)}],o,a),2),C=y[0],w=y[1];return s=w,null==c||c.push(s),C;case Ea:g=function(e,t,n){var r=sl(e.activity)?e.activity(t,n.data):e.activity,i="string"==typeof r?{id:r}:r;return{type:xa.Stop,activity:i}}(l,s,r);return null==o||o(g,n,r),g;case Ta:s=ol(s,r,[l],o?void 0:t),null==c||c.push(s);break;default:var $=$l(l,e.options.actions),k=$.exec;if(o)o($,s,r);else if(k&&c){var S=c.length-1,E=ya(ya({},$),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,ka([c[S]],$a(t),!1))}});$=E}return $}}var p=Qa(i.map((function(e){var t,n,i=[];try{for(var a=wa(e.actions),l=a.next();!l.done;l=a.next()){var c=l.value,p=u(e.type,c);p&&(i=i.concat(p))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return d.forEach((function(e){o(e,s,r)})),d.length=0,i})));return[p,s]}var Rl=function(e,t){return t(e)};function Tl(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[ul]=function(){return this},t}function Pl(e,t,n){var r=Tl(t);if(r.deferred=!0,pl(e)){var i=r.state=Rl(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return i}}return r}var Dl=function(e){return"atomic"===e.type||"final"===e.type};function Ml(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function Nl(e){return Ml(e).filter((function(e){return"history"!==e.type}))}function jl(e){var t=[e];return Dl(e)?t:t.concat(Qa(Nl(e).map(jl)))}function Vl(e,t){var n,r,i,o,a,l,s,c,d=zl(new Set(e)),u=new Set(t);try{for(var p=wa(u),h=p.next();!h.done;h=p.next())for(var f=($=h.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var g=zl(u);try{for(var v=wa(u),m=v.next();!m.done;m=v.next()){if("compound"!==($=m.value).type||g.get($)&&g.get($).length){if("parallel"===$.type)try{for(var x=(a=void 0,wa(Nl($))),b=x.next();!b.done;b=x.next()){var y=b.value;u.has(y)||(u.add(y),d.get(y)?d.get(y).forEach((function(e){return u.add(e)})):y.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}else d.get($)?d.get($).forEach((function(e){return u.add(e)})):$.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var C=wa(u),w=C.next();!w.done;w=C.next()){var $;for(f=($=w.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){s={error:e}}finally{try{w&&!w.done&&(c=C.return)&&c.call(C)}finally{if(s)throw s.error}}return u}function Il(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(Dl(r))return r.key}var i={};return n.forEach((function(e){i[e.key]=Il(e,t)})),i}function zl(e){var t,n,r=new Map;try{for(var i=wa(e),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Al(e,t){return Il(e,zl(Vl([e],t)))}function Hl(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function Bl(e,t){return"compound"===t.type?Nl(t).some((function(t){return"final"===t.type&&Hl(e,t)})):"parallel"===t.type&&Nl(t).every((function(t){return Bl(e,t)}))}function Fl(e){return new Set(Qa(e.map((function(e){return e.tags}))))}function Zl(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(cl(e)||cl(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return Zl(e[n],t[n])}))}var ql=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=Ha,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||Ha,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return ka([],$a(new Set(Qa(ka([],$a(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:Cl,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Cl;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),cl(e))return[e];var r=Object.keys(e);return r.concat.apply(r,ka([],$a(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=Ca(e,["configuration","transitions","tags","machine"]);return ya(ya({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return Za(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;Fa&&al(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),Gl={deferEvents:!1},Wl=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=ya(ya({},Gl),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),Ul=new Map,Xl=0,Yl=function(){return"x:".concat(Xl++)},Kl=function(e,t){return Ul.set(e,t),e},Jl=function(e){return Ul.get(e)},Ql=function(e){Ul.delete(e)};function es(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(Fa||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function ts(e){if(es()){var t=function(){var e=es();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function ns(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,i=[],o=!1,a=function(e){var t;return ya(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[ul]=function(){return this},t),e)}({id:t.id,send:function(t){i.push(t),function(){if(!o){for(o=!0;i.length>0;){var t=i.shift();n=e.transition(n,t,l),r.forEach((function(e){return e.next(n)}))}o=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,i){var o=xl(e,t,i);return r.add(o),o.next(n),{unsubscribe:function(){r.delete(o)}}}}),l={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(l):n,a}var rs,is={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(rs||(rs={}));var os=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=rs.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(ll(e))return r.batch(e),r.state;var n=fl(hl(e,t));if(r.status===rs.Stopped)return Fa||al(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==rs.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var i,o=r.parent&&(t===ba.Parent||r.parent.id===t),a=o?r.parent:cl(t)?t===ba.Internal?r:r.children.get(t)||Jl(t):(i=t)&&"function"==typeof i.send?t:void 0;if(a)if("machine"in a){if(r.status!==rs.Stopped||r.parent!==a||r.state.done){var l=ya(ya({},e),{name:e.name===Va?"".concat(_l(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,l]):a.send(l)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else{if(!o)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));Fa||al(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,i){void 0===i&&(i=r.machine.options.actions);var o=e.exec||wl(e.type,i),a=sl(o)?o:o?o.exec:e.exec;if(a)try{return a(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case Oa:var l=e;r.defer(l);break;case _a:var s=e;if("number"==typeof s.delay)return void r.defer(s);s.to?r.sendTo(s._event,s.to,n===Cl):r.send(s._event);break;case La:r.cancel(e.sendId);break;case Sa:if(r.status!==rs.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===xa.Invoke){var d=ml(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,p=c.id,h=c.data;Fa||al(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!u)return void(Fa||al(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var g=h?nl(h,t,n):void 0;if("string"==typeof u)return;var v=sl(u)?u(t,n.data,{data:g,src:d,meta:c.meta}):u;if(!v)return;var m=void 0;pl(v)&&(v=g?v.withContext(g):v,m={autoForward:f}),r.spawn(v,p,m)}else r.spawnActivity(c);break;case Ea:r.stopChild(e.activity.id);break;case Pa:var x=e,b=x.label,y=x.value;b?r.logger(b,y):r.logger(y);break;default:Fa||al(!1,"No implementation found for action type '".concat(e.type,"'"))}};var i=ya(ya({},e.defaultOptions),n),o=i.clock,a=i.logger,l=i.parent,s=i.id,c=void 0!==s?s:t.id;this.id=c,this.logger=a,this.clock=o,this.parent=l,this.options=i,this.scheduler=new Wl({deferEvents:this.options.deferEvents}),this.sessionId=Yl()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Rl(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return Fa||al(this.status!==rs.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var i=wa(e.actions),o=i.next();!o.done;o=i.next()){var a=o.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,i,o,a,l,s,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==Cl||!this.options.execute)for(var u=void 0;u=this._outgoingQueue.shift();)u[0].send(u[1]);else this.execute(this.state);if(this.children.forEach((function(e){d.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var p=wa(this.eventListeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=wa(this.listeners),g=f.next();!g.done;g=f.next()){(0,g.value)(e,e.event)}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}try{for(var v=wa(this.contextListeners),m=v.next();!m.done;m=v.next()){(0,m.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=v.return)&&l.call(v)}finally{if(a)throw a.error}}if(this.state.done){var x=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),b=x&&x.doneData?nl(x.doneData,e.context,t):void 0;this._doneEvent=Ol(this.id,b);try{for(var y=wa(this.doneListeners),C=y.next();!C.done;C=y.next()){(0,C.value)(this._doneEvent)}}catch(e){s={error:e}}finally{try{C&&!C.done&&(c=y.return)&&c.call(y)}finally{if(s)throw s.error}}this._stop(),this._stopChildren(),Ql(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===rs.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,i=xl(e,t,n);this.listeners.add(i.next),this.status!==rs.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===rs.Stopped?i.complete():(this.onDone(o),this.onStop(o)),{unsubscribe:function(){r.listeners.delete(i.next),r.doneListeners.delete(o),r.stopListeners.delete(o)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===rs.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===rs.Running)return this;this.machine._init(),Kl(this.sessionId,this),this.initialized=!0,this.status=rs.Running;var n=void 0===e?this.initialState:Rl(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(ql.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Cl)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){sl(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,i,o,a,l,s,c;try{for(var d=wa(this.listeners),u=d.next();!u.done;u=d.next()){var p=u.value;this.listeners.delete(p)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var h=wa(this.stopListeners),f=h.next();!f.done;f=h.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var g=wa(this.contextListeners),v=g.next();!v.done;v=g.next()){p=v.value;this.contextListeners.delete(p)}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var m=wa(this.doneListeners),x=m.next();!x.done;x=m.next()){p=x.value;this.doneListeners.delete(p)}}catch(e){a={error:e}}finally{try{x&&!x.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=rs.Stopped,this._initialState=void 0;try{for(var b=wa(Object.keys(this.delayedEventsMap)),y=b.next();!y.done;y=b.next()){var C=y.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}catch(e){s={error:e}}finally{try{y&&!y.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}this.scheduler.clear(),this.scheduler=new Wl({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=fl({type:"xstate.stop"}),r=Rl(e,(function(){var t=Qa(ka([],$a(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return kl(t.onExit,e.machine.options.actions)}))),r=$a(Ll(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),i=r[0],o=r[1],a=new ql({value:e.state.value,context:o,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter((function(e){return!yl(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a}));e.update(r,n),e._stopChildren(),Ql(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===rs.NotStarted&&this.options.deferEvents)Fa||al(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==rs.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,i,o=t.state,a=!1,l=[],s=function(e){var r=fl(e);t.forward(r),o=Rl(t,(function(){return t.machine.transition(o,r,void 0,n||void 0)})),l.push.apply(l,ka([],$a(t.machine.config.predictableActionArguments?o.actions:o.actions.map((function(e){return function(e,t){var n=e.exec;return ya(ya({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,o)}))),!1)),a=a||!!o.changed};try{for(var c=wa(e),d=c.next();!d.done;d=c.next()){s(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}o.changed=a,o.actions=l,t.update(o,fl(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=fl(e);if(0===r.name.indexOf(ja)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(ja)})))throw r.data.data;return Rl(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=wa(this.forwardTo),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.children.get(o);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),sl(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==rs.Running)return Pl(e,t);if(rl(e))return this.spawnPromise(Promise.resolve(e),t);if(sl(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(i=e)&&"id"in i)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&sl(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(pl(e))return this.spawnMachine(e,ya(ya({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,i},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var i=new e(t,ya(ya({},this.options),{parent:this,id:n.id||t.id})),o=ya(ya({},is),n);o.sync&&i.onTransition((function(e){r.send(Ia,{state:e,id:i.id})}));var a=i;return this.children.set(i.id,a),o.autoForward&&this.forwardTo.add(i.id),i.onDone((function(e){r.removeChild(i.id),r.send(fl(e,{origin:i.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=ns(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,i=this,o=!1;e.then((function(e){o||(r=e,i.removeChild(t),i.send(fl(Ol(t,e),{origin:t})))}),(function(e){if(!o){i.removeChild(t);var n=_l(t,e);try{i.send(fl(n,{origin:t}))}catch(r){!function(e,t,n){if(!Fa){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var i=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(i))}}}(e,r,t),i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var i=xl(t,n,r),o=!1;return e.then((function(e){o||(i.next(e),o||i.complete())}),(function(e){o||i.error(e)})),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[ul]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,i,o=this,a=!1,l=new Set,s=new Set;try{i=e((function(e){r=e,s.forEach((function(t){return t(e)})),a||o.send(fl(e,{origin:t}))}),(function(e){l.add(e)}))}catch(e){this.send(_l(t,e))}if(rl(i))return this.spawnPromise(i,t);var c=((n={id:t,send:function(e){return l.forEach((function(t){return t(e)}))},subscribe:function(e){var t=xl(e);return s.add(t.next),{unsubscribe:function(){s.delete(t.next)}}},stop:function(){a=!0,sl(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[ul]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,i=this,o=e.subscribe((function(e){r=e,i.send(fl(e,{origin:t}))}),(function(e){i.removeChild(t),i.send(fl(_l(t,e),{origin:t}))}),(function(){i.removeChild(t),i.send(fl(Ol(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[ul]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else Fa||al(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[ul]=function(){return this},n))},e.prototype.attachDev=function(){var e=es();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(ya(ya({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:ya({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}ts(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[ul]=function(){return this},e.prototype.getSnapshot=function(){return this.status===rs.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=as,e}();function as(e,t){return new os(e,t)}function ls(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function ss(e){return ya(ya({type:Ma},e),{toJSON:function(){e.onDone,e.onError;var t=Ca(e,["onDone","onError"]);return ya(ya({},t),{type:Ma,src:ls(e.src)})}})}var cs="",ds="*",us={},ps=function(e){return"#"===e[0]},hs=function(){function e(t,n,r,i){void 0===r&&(r="context"in t?t.context:void 0);var o,a=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==i?void 0:i.parent,this.key=this.config.key||(null==i?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||ka([this.machine.key],$a(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(o=this.config.schema)&&void 0!==o?o:{},this.description=this.config.description,Fa||al(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?Xa(this.config.states,(function(t,n){var r,i=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,ya(((r={})[i.id]=i,r),i.idMap)),i})):us;var l=0;!function e(t){var n,r;t.order=l++;try{for(var i=wa(Ml(t)),o=i.next();!o.done;o=i.next()){e(o.value)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===cs})):cs in this.config.on),this.strict=!!this.config.strict,this.onEntry=tl(this.config.entry||this.config.onEntry).map((function(e){return $l(e)})),this.onExit=tl(this.config.exit||this.config.onExit).map((function(e){return $l(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=tl(this.config.invoke).map((function(e,t){var n,r;if(pl(e)){var i=bl(a.id,t);return a.machine.options.services=ya(((n={})[i]=e,n),a.machine.options.services),ss({src:i,id:i})}if(cl(e.src)){i=e.id||bl(a.id,t);return ss(ya(ya({},e),{id:i,src:e.src}))}if(pl(e.src)||sl(e.src)){i=e.id||bl(a.id,t);return a.machine.options.services=ya(((r={})[i]=e.src,r),a.machine.options.services),ss(ya(ya({id:i},e),{src:i}))}var o=e.src;return ss(ya(ya({id:bl(a.id,t)},e),{src:o}))})),this.activities=tl(this.config.activities).concat(this.invoke).map((function(e){return Sl(e)})),this.transition=this.transition.bind(this),this.tags=tl(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||jl(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,o=r.activities,a=r.guards,l=r.services,s=r.delays;return new e(this.config,{actions:ya(ya({},i),t.actions),activities:ya(ya({},o),t.activities),guards:ya(ya({},a),t.guards),services:ya(ya({},l),t.services),delays:ya(ya({},s),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return sl(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:Xa(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===cs,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===ds}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(xa.After,"(").concat(e,")").concat(n)}(sl(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(function(e,t){return{to:t?t.to:void 0,type:_a,event:sl(e)?e:hl(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:sl(e)?e.name:qa(e)}}(r,{delay:t})),e.onExit.push({type:La,sendId:r}),r},r=ll(t)?t.map((function(e,t){var r=n(e.delay,t);return ya(ya({},e),{event:r})})):Qa(Object.keys(t).map((function(e,r){var i=t[e],o=cl(i)?{target:i}:i,a=isNaN(+e)?e:+e,l=n(a,r);return tl(o).map((function(e){return ya(ya({},e),{event:l,delay:a})}))})));return r.map((function(t){var n=t.delay;return ya(ya({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof ql?e.value:Wa(e,this.delimiter);if(cl(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((t={})[r]=i,t)):[this,this.states[r]]}var o=Object.keys(r),a=[this];return a.push.apply(a,ka([],$a(Qa(o.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=qa(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof ql?e:ql.create(e),n=Array.from(Vl([],this.getStateNodes(t.value)));return new ql(ya(ya({},t),{value:this.resolve(t.value),configuration:n,done:Bl(n,this),tags:Fl(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),i=this.getStateNode(r[0])._transition(e[r[0]],t,n);return i&&i.transitions.length?i:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,i,o={};try{for(var a=wa(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];if(c){var d=this.getStateNode(s)._transition(c,t,n);d&&(o[s]=d)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var u=Object.keys(o).map((function(e){return o[e]})),p=Qa(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=Qa(Object.keys(o).map((function(e){return o[e].configuration})));return{transitions:p,exitSet:Qa(u.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:Qa(Object.keys(o).map((function(e){return o[e].actions})))}},e.prototype._transition=function(e,t,n){return cl(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,fl(t))},e.prototype.next=function(e,t){var n,r,i,o=this,a=t.name,l=[],s=[];try{for(var c=wa(this.getCandidates(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=u.cond,h=u.in,f=e.context,g=!h||(cl(h)&&ps(h)?e.matches(Wa(this.getStateNodeById(h).path,this.delimiter)):Za(Wa(h,this.delimiter),Ka(this.path.slice(0,-2))(e.value))),v=!1;try{v=!p||vl(this.machine,p,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(v&&g){void 0!==u.target&&(s=u.target),l.push.apply(l,ka([],$a(u.actions),!1)),i=u;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(i){if(!s.length)return{transitions:[i],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var m=Qa(s.map((function(t){return o.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[i],exitSet:!!i.internal?[]:Qa(s.map((function(e){return o.getPotentiallyReenteringNodes(e)}))),configuration:m,source:e,actions:l}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,i,o,a){var l,s,c,d,u=this,p=o?Vl([],this.getStateNodes(o.value)):[],h=new Set;try{for(var f=wa(Array.from(e).sort((function(e,t){return e.order-t.order}))),g=f.next();!g.done;g=f.next()){(!Hl(p,x=g.value)||Hl(n.exitSet,x)||x.parent&&h.has(x.parent))&&h.add(x)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(s=f.return)&&s.call(f)}finally{if(l)throw l.error}}try{for(var v=wa(p),m=v.next();!m.done;m=v.next()){var x;Hl(e,x=m.value)&&!Hl(n.exitSet,x.parent)||n.exitSet.push(x)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var b=Array.from(h).sort((function(e,t){return e.order-t.order})),y=new Set(n.exitSet),C=Qa(b.map((function(e){var t=[];if("final"!==e.type)return t;var o=e.parent;if(!o.parent)return t;t.push(El(e.id,e.doneData),El(o.id,e.doneData?nl(e.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&Nl(a).every((function(e){return Bl(n.configuration,e)}))&&t.push(El(a.id)),t}))),w=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=Sl(e);return{type:xa.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:kl(a?ka(ka([],$a(t),!1),$a(n),!1):ka(ka([],$a(n),!1),$a(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:C.map((function(e){return function(e,t){return{type:Oa,event:"function"==typeof e?e:hl(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),$=Array.from(y).map((function(e){return{type:"exit",actions:kl(ka(ka([],$a(e.onExit),!1),$a(e.activities.map((function(e){return function(e){var t=sl(e)?e:Sl(e);return{type:xa.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:kl(n.actions,this.machine.options.actions)}).concat(w);if(t){var k=kl(Qa(ka([],$a(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!yl(e)}));return $.concat({type:"stop",actions:k})}return $},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var i,o,a=fl(t);if(e instanceof ql)i=void 0===n?e:this.resolveState(ql.from(e,n));else{var l=cl(e)?this.resolve(Ua(this.getResolvedPath(e))):this.resolve(e),s=null!=n?n:this.machine.context;i=this.resolveState(ql.from(l,s))}if(!Fa&&a.name===ds)throw new Error("An event cannot have the wildcard type ('".concat(ds,"')"));if(this.strict&&!this.events.includes(a.name)&&(o=a.name,!/^(done|error)\./.test(o)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},d=Vl([],this.getStateNodes(i.value)),u=c.configuration.length?Vl(d,c.configuration):d;return c.configuration=ka([],$a(u),!1),this.resolveTransition(c,i,i.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var i,o=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(i=e.actions).unshift.apply(i,ka([],$a(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,i){var o,a,l,s,c=this;void 0===i&&(i=Cl);var d=e.configuration,u=!t||e.transitions.length>0,p=u?e.configuration:t?t.configuration:[],h=Bl(p,this),f=u?Al(this.machine,d):void 0,g=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,v=this.getActions(new Set(p),h,e,n,i,t,r),m=t?ya({},t.activities):{};try{for(var x=wa(v),b=x.next();!b.done;b=x.next()){var y=b.value;try{for(var C=(l=void 0,wa(y.actions)),w=C.next();!w.done;w=C.next()){var $=w.value;$.type===Sa?m[$.activity.id||$.activity.type]=$:$.type===Ea&&(m[$.activity.id||$.activity.type]=!1)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(s=C.return)&&s.call(C)}finally{if(l)throw l.error}}}}catch(e){o={error:e}}finally{try{b&&!b.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}var k,S,E=$a(Ll(this,t,n,i,v,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),O=E[0],_=E[1],L=$a(function(e,t){var n,r,i=$a([[],[]],2),o=i[0],a=i[1];try{for(var l=wa(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(O,yl),2),R=L[0],T=L[1],P=O.filter((function(e){var t;return e.type===Sa&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Ma})),D=P.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var i,o=ml(e.src),a=null===(i=null==t?void 0:t.options.services)||void 0===i?void 0:i[o.type],l=e.data?nl(e.data,n,r):void 0,s=a?Pl(a,e.id,l):Tl(e.id);return s.meta=e,s}(t.activity,c.machine,_,i),e}),t?ya({},t.children):{}),M=new ql({value:f||t.value,context:_,_event:i,_sessionid:t?t._sessionid:null,historyValue:f?g?(k=g,S=f,{current:S,states:il(k,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?T:[],activities:f?m:t?t.activities:{},events:[],configuration:p,transitions:e.transitions,children:D,done:h,tags:Fl(p),machine:this}),N=n!==_;M.changed=i.name===Ia||N;var j=M.history;j&&delete j.history;var V=!h&&(this._transient||d.some((function(e){return e._transient})));if(!(u||V&&i.name!==cs))return M;var I=M;if(!h)for(V&&(I=this.resolveRaisedTransition(I,{type:Ra},i,r));R.length;){var z=R.shift();I=this.resolveRaisedTransition(I,z._event,i,r)}var A=I.changed||(j?!!I.actions.length||N||typeof j.value!=typeof I.value||!Zl(I.value,j.value):void 0);return I.changed=A,I.history=j,I},e.prototype.getStateNode=function(e){if(ps(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=ps(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&ps(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=Ga(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||us;switch(this.type){case"parallel":return Xa(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):us}));case"compound":if(cl(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?Xa(e,(function(e,t){return e?n.getStateNode(t).resolve(e):us})):this.initialStateValue||{};default:return e||us}},e.prototype.getResolvedPath=function(e){if(ps(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return Ga(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=Ya(this.states,(function(e){return e.initialStateValue||us}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=Dl(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=cl(t.target)&&ps(t.target)?Ua(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return Dl(this)?[this]:"compound"!==this.type||this.initial?Qa(Ja(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(Fa||al(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=$a(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:Ya(this.states,(function(t,n){if(!e)return t.historyValue();var r=cl(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?Qa(Ja(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(e){var t,n,r=e;try{for(var a=wa(i),l=a.next();!l.done;l=a.next()){var s=l.value;r=r[o][s]}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return cl(a)?[n.getStateNode(a)]:Qa(Ja(a).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=Qa(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=wa(Object.keys(i)),l=a.next();!l.done;l=a.next()){var s=i[l.value];if(s.states)try{for(var c=(n=void 0,wa(s.events)),d=c.next();!d.done;d=c.next()){var u=d.value;o.add("".concat(u))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!cl(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return tl(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return cl(e)&&e[0]===t.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=ya(ya({},e),{actions:kl(tl(e.actions)),cond:dl(e.cond,i),target:o,source:this,internal:r,eventType:e.event,toJSON:function(){return ya(ya({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=ds,a=i[o],l=void 0===a?[]:a,s=Ca(i,["*"]);n=Qa(Object.keys(s).map((function(e){Fa||e!==cs||al(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=gl(e,s[e]);return Fa||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(cl(e.target)||pl(e.target))})),i=t===cs?"the transient event":"event '".concat(t,"'");al(!r,"One or more transitions for ".concat(i," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(gl(ds,l)))}else n=[];var c=this.config.always?gl("",this.config.always):[],d=this.config.onDone?gl(String(El(this.id)),this.config.onDone):[];Fa||al(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=Qa(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,ka([],$a(gl(String(Ol(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,ka([],$a(gl(String(_l(e.id)),e.onError)),!1)),t}))),p=this.after,h=Qa(ka(ka(ka(ka([],$a(d),!1),$a(u),!1),$a(n),!1),$a(c),!1).map((function(e){return tl(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=wa(p),g=f.next();!g.done;g=f.next()){var v=g.value;h.push(v)}}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return h},e}();var fs,gs=function(e){return{type:Ta,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(fs||(fs={}));var vs="undefined"!=typeof document?K:function(){};function ms(e){var t=F.useRef();return t.current||(t.current={v:e()}),t.current.v}var xs=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},bs=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var ys=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Cs=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function ws(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function $s(e){var t=Y([]),n=Y([]);vs((function(){var r=e.subscribe((function(e){var r,i;if(e.actions.length){var o=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),a=ys(function(e,t){var n,r,i=xs([[],[]],2),o=i[0],a=i[1];try{for(var l=bs(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(o,(function(e){return e.exec.__effect===fs.Effect})),2),l=a[0],s=a[1];(r=t.current).push.apply(r,Cs([],ys(l.map((function(t){return[t,e]}))),!1)),(i=n.current).push.apply(i,Cs([],ys(s.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),vs((function(){for(;n.current.length;){var e=ys(n.current.shift(),2);ws(e[0],e[1])}})),W((function(){for(;t.current.length;){var e=ys(t.current.shift(),2);ws(e[0],e[1])}}))}var ks=function(){return ks=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ks.apply(this,arguments)},Ss=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Es=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};var Os=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function _s(e,t){void 0===t&&(t={});var n=J((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&a(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=ms((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=Es(G(r),1)[0];e!==i&&console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.")}var o=t.context,a=t.guards,l=t.actions,s=t.activities,c=t.services,d=t.delays,u=t.state,p=Ss(t,["context","guards","actions","activities","services","delays","state"]),h=ms((function(){var e={context:o,guards:a,actions:l,activities:s,services:c,delays:d};return as(r.withConfig(e,(function(){return ks(ks({},r.context),o)})),ks({deferEvents:!0},p))}));return vs((function(){var e;return n&&(e=h.subscribe(function(e){if("object"==typeof e)return e;var t=function(){};return{next:e,error:void 0||t,complete:void 0||t}}(n))),function(){null==e||e.unsubscribe()}}),[n]),vs((function(){return h.start(u?ql.create(u):void 0),function(){h.stop()}}),[]),vs((function(){Object.assign(h.machine.options.actions,l),Object.assign(h.machine.options.guards,a),Object.assign(h.machine.options.activities,s),Object.assign(h.machine.options.services,c),Object.assign(h.machine.options.delays,d)}),[l,a,s,c,d]),$s(h),h}(e,t,n),i=Os(G((function(){var e=r.machine.initialState;return t.state?ql.create(t.state):e})),2),o=i[0],a=i[1];return[o,r.send,r]}function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ls.apply(null,arguments)}function Rs(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const Ts={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(Ts.str(e)||Ts.num(e))return e===t;if(Ts.obj(e)&&Ts.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!Ts.und(n)||e===t}};function Ps(e,t){return Ts.und(e)||Ts.nul(e)?t:e}function Ds(e){return Ts.und(e)?[]:Ts.arr(e)?e:[e]}function Ms(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ts.fun(e)?e(...n):e}function Ns(e){const t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,Rs(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(Ts.und(t))return Ls({to:t},e);const n=Object.keys(e).reduce(((n,r)=>Ts.und(t[r])?Ls({},n,{[r]:e[r]}):n),{});return Ls({to:t},n)}class js{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class Vs extends js{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof js&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof js&&e.removeChild(this)))}}class Is extends js{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof js&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof js&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof js)&&(t[n]=r instanceof js?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let zs,As;let Hs,Bs=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let Fs,Zs=()=>Date.now();class qs extends Is{constructor(e,t){super(),this.update=void 0,this.payload=e.style?Ls({},e,{style:Fs(e.style)}):e,this.update=t,this.attach()}}let Gs=!1;const Ws=new Set,Us=()=>{if(!Gs)return!1;let e=Zs();for(let t of Ws){let n=!1;for(let r=0;r<t.configs.length;r++){let i,o,a=t.configs[r];for(let t=0;t<a.animatedValues.length;t++){let r=a.animatedValues[t];if(r.done)continue;let l=a.fromValues[t],s=a.toValues[t],c=r.lastPosition,d=s instanceof js,u=Array.isArray(a.initialVelocity)?a.initialVelocity[t]:a.initialVelocity;if(d&&(s=s.getValue()),a.immediate)r.setValue(s),r.done=!0;else if("string"!=typeof l&&"string"!=typeof s){if(void 0!==a.duration)c=l+a.easing((e-r.startTime)/a.duration)*(s-l),i=e>=r.startTime+a.duration;else if(a.decay)c=l+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),i=Math.abs(r.lastPosition-c)<.1,i&&(s=c);else{o=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:a.initialVelocity,e>o+64&&(o=e);let t=Math.floor(e-o);for(let e=0;e<t;++e){u+=1*((-a.tension*(c-s)+-a.friction*u)/a.mass)/1e3,c+=1*u/1e3}let n=!(!a.clamp||0===a.tension)&&(l<s?c>s:c<s),d=Math.abs(u)<=a.precision,p=0===a.tension||Math.abs(s-c)<=a.precision;i=n||d&&p,r.lastVelocity=u,r.lastTime=e}d&&!a.toValues[t].done&&(i=!1),i?(r.value!==s&&(c=s),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(s),r.done=!0}t.props.onFrame&&(t.values[a.name]=a.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(Ws.delete(t),t.stop(!0))}return Ws.size?Bs(Us):Gs=!1,Gs};function Xs(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return Xs({range:e,output:t,extrapolate:n});if(Hs&&"string"==typeof e.output[0])return Hs(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],s,a,l,r.map)}}class Ys extends Vs{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof Vs&&!(e instanceof Ys)?e.getPayload():Array.isArray(e)?e:[e],this.calc=Xs(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=Xs(e,t,n)}interpolate(e,t,n){return new Ys(this,e,t,n)}}const Ks=(e,t,n)=>e&&new Ys(e,t,n);function Js(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>Js(e,t)))}class Qs extends js{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&Js(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new Ys(this,e,t,n)}}class ec extends Vs{constructor(e){super(),this.payload=e.map((e=>new Qs(e)))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach(((e,n)=>this.payload[n].setValue(e,t))):this.payload.forEach((n=>n.setValue(e,t)))}getValue(){return this.payload.map((e=>e.getValue()))}interpolate(e,t){return new Ys(this,e,t)}}let tc=0,nc=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=tc++}update(e){if(!e)return this;const t=Ns(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=Rs(t,["delay","to"]);if(Ts.arr(i)||Ts.fun(i))this.queue.push(Ls({},o,{delay:r,to:i}));else if(i){let e={};Object.entries(i).forEach((t=>{let n=t[0],i=t[1];const a=Ls({to:{[n]:i},delay:Ms(r,n)},o),l=e[a.delay]&&e[a.delay].to;e[a.delay]=Ls({},e[a.delay],a,{to:Ls({},l,a.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(o),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,i=void 0===r?{}:r;Ts.obj(n)&&(this.merged=Ls({},n,this.merged)),Ts.obj(i)&&(this.merged=Ls({},this.merged,i))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,i)=>{let o=r.delay,a=Rs(r,["delay"]);const l=r=>{i===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let s=Ts.arr(a.to)||Ts.fun(a.to);o?setTimeout((()=>{t===this.guid&&(s?this.runAsync(a,l):this.diff(a).start(l))}),o):s?this.runAsync(a,l):this.diff(a).start(l)}))}else Ts.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,Ws.has(t)||Ws.add(t),Gs||(Gs=!0,Bs(Us));var t;return this}stop(e){return this.listeners.forEach((t=>t(e))),this.listeners=[],this}pause(e){var t;return this.stop(!0),e&&(t=this,Ws.has(t)&&Ws.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=Rs(e,["delay"]);const i=this.local;let o=Promise.resolve(void 0);if(Ts.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=Ls({},r,Ns(r.to[t]));Ts.arr(n.config)&&(n.config=n.config[t]),o=o.then((()=>{if(i===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(Ts.fun(r.to)){let e,t=0;o=o.then((()=>r.to((n=>{const o=Ls({},r,Ns(n));if(Ts.arr(o.config)&&(o.config=o.config[t]),t++,i===this.guid)return e=new Promise((e=>this.diff(o).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}o.then(t)}diff(e){this.props=Ls({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,i=t.to,o=void 0===i?{}:i,a=t.config,l=void 0===a?{}:a,s=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(s){var p=[o,r];r=p[0],o=p[1]}this.merged=Ls({},r,this.merged,o),this.hasChanged=!1;let h=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],i=t[1],o=e[n]||{};const a=Ts.num(i),s=Ts.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!As[i],c=Ts.arr(i),p=!a&&!c&&!s;let f=Ts.und(r[n])?i:r[n],g=a||c||s?i:1,v=Ms(l,n);h&&(g=h.animations[n].parent);let m,x=o.parent,b=o.interpolation,y=Ds(h?g.getPayload():g),C=i;p&&(C=Hs({range:[0,1],output:[i,i]})(1));let w=b&&b.getValue();const $=!Ts.und(x)&&o.animatedValues.some((e=>!e.done)),k=!Ts.equ(C,w),S=!Ts.equ(C,o.previous),E=!Ts.equ(v,o.config);if(d||S&&k||E){if(a||s)x=b=o.parent||new Qs(f);else if(c)x=b=o.parent||new ec(f);else if(p){let e=o.interpolation&&o.interpolation.calc(o.parent.value);e=void 0===e||d?f:e,o.parent?(x=o.parent,x.setValue(0,!1)):x=new Qs(0);const t={output:[e,i]};o.interpolation?(b=o.interpolation,o.interpolation.updateConfig(t)):b=x.interpolate(t)}return y=Ds(h?g.getPayload():g),m=Ds(x.getPayload()),d&&!p&&x.setValue(f,!1),this.hasChanged=!0,m.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=$?e.lastVelocity:void 0,e.lastTime=$?e.lastTime:void 0,e.startTime=Zs(),e.done=!1,e.animatedStyles.clear()})),Ms(u,n)&&x.setValue(p?g:i,!1),Ls({},e,{[n]:Ls({},o,{name:n,parent:x,interpolation:b,animatedValues:m,toValues:y,previous:C,config:v,fromValues:Ds(x.getValue()),immediate:Ms(u,n),initialVelocity:Ps(v.velocity,0),clamp:Ps(v.clamp,!1),precision:Ps(v.precision,.01),tension:Ps(v.tension,170),friction:Ps(v.friction,26),mass:Ps(v.mass,1),duration:v.duration,easing:Ps(v.easing,(e=>e)),decay:v.decay})})}return k?e:(p&&(x.setValue(1,!1),b.updateConfig({output:[C,C]})),x.done=!0,this.hasChanged=!0,Ls({},e,{[n]:Ls({},e[n],{previous:C})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const rc=e=>{const t=Ts.fun(e),n=((e,t)=>{const n=Y(!1),r=Y(),i=Ts.fun(t),o=ee((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const o=new nc,a=i?Ms(t,r,o):t[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o})),n]}),[e]),a=o[0],l=o[1];r.current=a,te(l,(()=>({start:()=>Promise.all(r.current.map((e=>new Promise((t=>e.start(t)))))),stop:e=>r.current.forEach((t=>t.stop(e))),get controllers(){return r.current}})));const s=ee((()=>e=>r.current.map(((t,n)=>{t.update(i?Ms(e,n,t):e[n]),l||t.start()}))),[e]);W((()=>{n.current?i||s(t):l||r.current.forEach((e=>e.start()))})),W((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return i?[c,s,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r};class ic extends Is{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof js||(e=zs.transform(e)),this.payload=e}}const oc={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ac="[-+]?\\d*\\.?\\d+",lc=ac+"%";function sc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const cc=new RegExp("rgb"+sc(ac,ac,ac)),dc=new RegExp("rgba"+sc(ac,ac,ac,ac)),uc=new RegExp("hsl"+sc(ac,lc,lc)),pc=new RegExp("hsla"+sc(ac,lc,lc,ac)),hc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gc=/^#([0-9a-fA-F]{6})$/,vc=/^#([0-9a-fA-F]{8})$/;function mc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xc(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=mc(i,r,e+1/3),a=mc(i,r,e),l=mc(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function bc(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function yc(e){return(parseFloat(e)%360+360)%360/360}function Cc(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function wc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function $c(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gc.exec(e))?parseInt(t[1]+"ff",16)>>>0:oc.hasOwnProperty(e)?oc[e]:(t=cc.exec(e))?(bc(t[1])<<24|bc(t[2])<<16|bc(t[3])<<8|255)>>>0:(t=dc.exec(e))?(bc(t[1])<<24|bc(t[2])<<16|bc(t[3])<<8|Cc(t[4]))>>>0:(t=hc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=vc.exec(e))?parseInt(t[1],16)>>>0:(t=fc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=uc.exec(e))?(255|xc(yc(t[1]),wc(t[2]),wc(t[3])))>>>0:(t=pc.exec(e))?(xc(yc(t[1]),wc(t[2]),wc(t[3]))|Cc(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const kc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Sc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ec=new RegExp(`(${Object.keys(oc).join("|")})`,"g");let Oc={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const _c=["Webkit","Ms","Moz","O"];function Lc(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Oc.hasOwnProperty(e)&&Oc[e]?(""+t).trim():t+"px"}Oc=Object.keys(Oc).reduce(((e,t)=>(_c.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Oc);const Rc={};var Tc;Fs=e=>new ic(e),Tc=e=>{const t=e.output.map((e=>e.replace(Sc,$c))).map((e=>e.replace(Ec,$c))),n=t[0].match(kc).map((()=>[]));t.forEach((e=>{e.match(kc).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(kc).map(((t,r)=>Xs(Ls({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(kc,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`))}},Hs=Tc,As=oc,function(e,t){zs={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,o=t.children,a=t.scrollTop,l=t.scrollLeft,s=Rs(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=Lc(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in s){const n=c?t:Rc[t]||(Rc[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));var Pc;const Dc=(Pc=e=>q(((t,n)=>{const r=function(){const e=G(!1)[1];return J((()=>e((e=>!e))),[])}(),i=Y(!0),o=Y(null),a=Y(null),l=J((e=>{const t=o.current;o.current=new qs(e,(()=>{let e=!1;a.current&&(e=zs.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);W((()=>()=>{i.current=!1,o.current&&o.current.detach()}),[]),te(n,(()=>(e=>e.current)(a))),l(t);const s=o.current.getValue();s.scrollTop,s.scrollLeft;const c=Rs(s,["scrollTop","scrollLeft"]),d=(u=e,!Ts.fun(u)||u.prototype instanceof Z.Component?e=>a.current=function(e,t){return t&&(Ts.fun(t)?t(e):Ts.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return Z.createElement(e,Ls({},c,{ref:d}))})),e=>(Ts.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=Pc(n),e}),Pc))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function Mc(e,t){return e.map((function(e,n){return e+t[n]}))}function Nc(e,t){return e.map((function(e,n){return e-t[n]}))}function jc(e){return Math.hypot.apply(Math,e)}function Vc(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Ic(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function zc(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Ic(t-e,n-t,r)+t:e>n?+Ic(e-n,n-t,r)+n:e}function Ac(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function Hc(){return Hc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hc.apply(this,arguments)}function Bc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Fc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qc(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Zc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zc(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Gc(){}function Wc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?Gc:1===t.length?t[0]:function(){for(var e,n,r=qc(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function Uc(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function Xc(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function Yc(e,t){void 0===e&&(e={});for(var n={},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],l=o[1];switch(typeof l){case"function":n[a]=l.call(n,e[a],a,e);break;case"object":n[a]=Yc(e[a],l);break;case"boolean":l&&(n[a]=e[a])}}return n}var Kc=Hc({},{threshold:function(e){return void 0===e&&(e=0),Uc(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return Uc(.15);case!1:return Uc(0);default:return Uc(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:Uc(e)}},{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return Kc.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,i=t.right,o=void 0===i?1/0:i,a=t.top,l=void 0===a?-1/0:a,s=t.bottom;return[[r,o],[l,void 0===s?1/0:s]]}}),Jc="undefined"!=typeof window&&window.document&&window.document.createElement,Qc={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=Jc?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,i=t.capture;return{passive:r,capture:void 0!==i&&i}}},ed=Hc({},Kc,{threshold:function(e,t,n){var r=n.filterTaps,i=void 0!==r&&r,o=n.lockDirection,a=void 0!==o&&o,l=n.axis,s=Uc(e,i?3:a||(void 0===l?void 0:l)?1:0);return this.filterTaps=i||s[0]+s[1]>0,s},swipeVelocity:function(e){return void 0===e&&(e=.5),Uc(e)},swipeDistance:function(e){return void 0===e&&(e=60),Uc(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function td(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["domTarget","eventOptions","window","enabled"]),a=function(e){return void 0===e&&(e={}),Yc(e,Qc)}({domTarget:t,eventOptions:n,window:r,enabled:i});return a.drag=function(e){return void 0===e&&(e={}),Yc(e,ed)}(o),a}function nd(e){return Hc({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:Gc,canceled:!1,memo:void 0,args:void 0},e)}function rd(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:nd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:nd({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:nd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:nd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:nd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var id=new Map,od=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(o))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var i=Hc({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),o=n.handler(i);return n.state.memo=void 0!==o?o:n.state.memo,n.state._active||n.clean(),i}}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t=this.config,n=t.initial,r=t.bounds,i=t.rubberband,o=t.threshold,a=this.state,l=a._bounds,s=a._initial,c=a._active,d=a._intentional,u=a.lastOffset,p=a.movement,h=this.getInternalMovement(e,this.state),f=!1===d[0]?ad(h[0],o[0]):d[0],g=!1===d[1]?ad(h[1],o[1]):d[1],v=this.checkIntentionality([f,g],h);if(v._blocked)return Hc({},v,{_movement:h,delta:[0,0]});var m,x,b,y,C=v._intentional,w=h;(!1!==C[0]&&!1===d[0]&&(x=Xc(n,this.state),m=Xc(r,this.state),s[0]=x[0],l[0]=m[0]),!1!==C[1]&&!1===d[1])&&(x=null!=(b=x)?b:Xc(n,this.state),m=null!=(y=m)?y:Xc(r,this.state),s[1]=x[1],l[1]=m[1]);var $=[!1!==C[0]?h[0]-C[0]:s[0],!1!==C[1]?h[1]-C[1]:s[1]],k=Mc($,u),S=c?i:[0,0];return $=ld(l,Mc($,s),S),Hc({},v,{intentional:!1!==C[0]||!1!==C[1],_initial:s,_movement:w,movement:$,values:e,offset:ld(l,k,S),delta:Nc($,p)})},t.clean=function(){this.clearTimeout()},Ac(e,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),e}();function ad(e,t){return Math.abs(e)>=t&&Vc(e)*t}function ld(e,t,n){var r=t[0],i=t[1],o=n[0],a=n[1],l=e[0],s=l[0],c=l[1],d=e[1],u=d[0],p=d[1];return[zc(r,s,c,o),zc(i,u,p,a)]}function sd(e,t,n){var r=e.state,i=e.args,o=t.timeStamp,a=t.type,l=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,args:i,previous:l}}function cd(e,t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.call.apply(e,[this,Hc({},t,{event:n})].concat(i))}}var dd=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o,a=qc(t.classes);!(o=a()).done;){new(0,o.value)(t,r).addBindings(e)}for(var l=0,s=Object.entries(t.nativeRefs);l<s.length;l++){var c=s[l];hd(e,c[0],cd(c[1],Hc({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=pd(n);if(!i)throw new Error("domTarget must be defined");var o=n.eventOptions;gd(i,ud(r),o);for(var a=0,l=Object.entries(t);a<l.length;a++){var s=l[a],c=s[0],d=s[1],u=c.slice(2).toLowerCase();r.push([u,Wc.apply(void 0,d)])}fd(i,r,o)}(t,e):function(e,t){for(var n=e.config,r={},i=n.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var l=a[o],s=l[0],c=l[1],d=Array.isArray(c)?c:[c];r[s+i]=Wc.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=pd(t.config),n=t.config.eventOptions;e&&gd(e,ud(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,i=e.windowListeners;if(!n)return;for(var o in i){gd(n,i[o],r)}e.windowListeners={}}(t)},this.state=rd(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function ud(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function pd(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function hd(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function fd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=qc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.addEventListener(a,l,n)}}function gd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=qc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.removeEventListener(a,l,n)}}function vd(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(id.get("drag"));e.wheel&&t.add(id.get("wheel"));e.scroll&&t.add(id.get("scroll"));e.move&&t.add(id.get("move"));e.pinch&&t.add(id.get("pinch"));e.hover&&t.add(id.get("hover"));return t}(e),i=Z.useMemo((function(){return new dd(r)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=n,Z.useEffect(i.effect,[]),i.config.domTarget?md:i.bind}function md(){"development"===process.env.NODE_ENV&&console.warn("Deprecation notice: When the `domTarget` option is specified, you don't need to write `useEffect(bind, [bind])` anymore: event binding is now made handled internally to this lib.\n\nNext version won't return anything when `domTarget` is provided, therefore your code will break if you try to call `useEffect`.")}function xd(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function bd(e){var t="buttons"in e?e.buttons:0,n=xd(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function yd(e){var t=xd(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Cd=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(!function(e,t,n){var r=e.config,i=e.windowListeners;void 0===n&&(n=[]),r.window&&(gd(r.window,i[t],r.eventOptions),fd(r.window,i[t]=n,r.eventOptions))}(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(Fc(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=bd(e);if(n.down){t.updateSharedState(n);var r=yd(e),i=t.getKinematics(r,e),o=sd(Fc(t),e),a=t.state._isTap,l=jc(i._movement);a&&l>=3&&(a=!1),t.updateGestureState(Hc({},o,i,{_isTap:a})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,i=r[0],o=r[1],a=t.state.movement,l=a[0],s=a[1],c=t.state._intentional,d=c[0],u=c[1],p=t.config.swipeVelocity,h=p[0],f=p[1],g=t.config.swipeDistance,v=g[0],m=g[1],x=Hc({},sd(Fc(t),e),t.getMovement(t.state.values)),b=[0,0];x.elapsedTime<220&&(!1!==d&&Math.abs(i)>h&&Math.abs(l)>v&&(b[0]=Vc(i)),!1!==u&&Math.abs(o)>f&&Math.abs(s)>m&&(b[1]=Vc(o))),t.updateGestureState(Hc({},x,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(Fc(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(gd(n.window,r[t],n.eventOptions),delete r[t])}(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}Bc(t,e);var n=t.prototype;return n.startDrag=function(e){var t=yd(e);this.updateSharedState(bd(e)),this.updateGestureState(Hc({},function(e,t,n){var r=e.state.offset,i=n.timeStamp;return Hc({},rd()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:i})}(this,t,e),sd(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(hd(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&hd(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}Bc(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Nc(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],i=n[1],o=this.state.axis||(r>i?"x":r<i?"y":void 0);return this.config.axis||this.config.lockDirection?o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e["x"===o?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}:{_intentional:e,_blocked:!1,axis:o}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=jc(t),i=0===r?0:1/r,o=0===n?0:1/n,a=o*r,l=t.map((function(e){return o*e})),s=t.map((function(e){return i*e}));return{velocities:l,velocity:a,distance:jc(e),direction:s}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(od));function wd(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,o;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!wd(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!wd(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===i[r]&&e.$$typeof||wd(e[i[r]],t[i[r]])))return!1;return!0}return e!=e&&t!=t}function $d(e,t){try{return wd(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function kd(e,t){void 0===t&&(t={}),id.set("drag",Cd);var n=Y();return n.current||(n.current=function(e,t){var n,r,i=[],o=!1;return function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return o&&n===this&&t(l,i)||(r=e.apply(this,l),o=!0,n=this,i=l),r}}(td,$d)),vd({drag:e},n.current(t))}
2287
2304
  /*!
2288
2305
  * tabbable 5.3.3
2289
2306
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2290
- */var wd=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],$d=wd.join(","),kd="undefined"==typeof Element,Sd=kd?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ed=!kd&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Od=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll($d));return t&&Sd.call(e,$d)&&r.unshift(e),r=r.filter(n)},_d=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if("SLOT"===a.tagName){var l=a.assignedElements(),s=e(l.length?l:a.children,!0,r);r.flatten?i.push.apply(i,s):i.push({scope:a,candidates:s})}else{Sd.call(a,$d)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!r.shadowRootFilter||r.shadowRootFilter(a);if(c&&d){var u=e(!0===c?a.children:c.children,!0,r);r.flatten?i.push.apply(i,u):i.push({scope:a,candidates:u})}else o.unshift.apply(o,a.children)}}return i},Ld=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},Rd=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Td=function(e){return"INPUT"===e.tagName},Pd=function(e){return function(e){return Td(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ed(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},Dd=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Md=function(e,t){return!(t.disabled||function(e){return Td(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=Sd.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Sd.call(i,"details:not([open]) *"))return!0;var o=Ed(e).host,a=(null==o?void 0:o.ownerDocument.contains(o))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return Dd(e)}else{if("function"==typeof r){for(var l=e;e;){var s=e.parentElement,c=Ed(e);if(s&&!s.shadowRoot&&!0===r(s))return Dd(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=l}if(a)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Sd.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Nd=function(e,t){return!(Pd(t)||Ld(t)<0||!Md(e,t))},jd=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Vd=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scope,a=o?t.scope:t,l=Ld(a,o),s=o?e(t.candidates):a;0===l?o?n.push.apply(n,s):n.push(a):r.push({documentOrder:i,tabIndex:l,item:t,isScope:o,content:s})})),r.sort(Rd).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Id=function(e,t){var n;return n=(t=t||{}).getShadowRoot?_d([e],t.includeContainer,{filter:Nd.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:jd}):Od(e,t.includeContainer,Nd.bind(null,t)),Vd(n)},zd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Sd.call(e,$d)&&Nd(t,e)},Ad=wd.concat("iframe").join(","),Hd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Sd.call(e,Ad)&&Md(t,e)};
2307
+ */var Sd=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Ed=Sd.join(","),Od="undefined"==typeof Element,_d=Od?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ld=!Od&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Rd=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Ed));return t&&_d.call(e,Ed)&&r.unshift(e),r=r.filter(n)},Td=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if("SLOT"===a.tagName){var l=a.assignedElements(),s=e(l.length?l:a.children,!0,r);r.flatten?i.push.apply(i,s):i.push({scope:a,candidates:s})}else{_d.call(a,Ed)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!r.shadowRootFilter||r.shadowRootFilter(a);if(c&&d){var u=e(!0===c?a.children:c.children,!0,r);r.flatten?i.push.apply(i,u):i.push({scope:a,candidates:u})}else o.unshift.apply(o,a.children)}}return i},Pd=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},Dd=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Md=function(e){return"INPUT"===e.tagName},Nd=function(e){return function(e){return Md(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ld(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},jd=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Vd=function(e,t){return!(t.disabled||function(e){return Md(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=_d.call(e,"details>summary:first-of-type")?e.parentElement:e;if(_d.call(i,"details:not([open]) *"))return!0;var o=Ld(e).host,a=(null==o?void 0:o.ownerDocument.contains(o))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return jd(e)}else{if("function"==typeof r){for(var l=e;e;){var s=e.parentElement,c=Ld(e);if(s&&!s.shadowRoot&&!0===r(s))return jd(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=l}if(a)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!_d.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Id=function(e,t){return!(Nd(t)||Pd(t)<0||!Vd(e,t))},zd=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ad=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scope,a=o?t.scope:t,l=Pd(a,o),s=o?e(t.candidates):a;0===l?o?n.push.apply(n,s):n.push(a):r.push({documentOrder:i,tabIndex:l,item:t,isScope:o,content:s})})),r.sort(Dd).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Hd=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Td([e],t.includeContainer,{filter:Id.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:zd}):Rd(e,t.includeContainer,Id.bind(null,t)),Ad(n)},Bd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==_d.call(e,Ed)&&Id(t,e)},Fd=Sd.concat("iframe").join(","),Zd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==_d.call(e,Fd)&&Vd(t,e)};
2291
2308
  /*!
2292
2309
  * focus-trap 6.9.4
2293
2310
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2294
2311
  */
2295
- function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bd(Object(n),!0).forEach((function(t){Zd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qd,Gd=(qd=[],{activateTrap:function(e){if(qd.length>0){var t=qd[qd.length-1];t!==e&&t.pause()}var n=qd.indexOf(e);-1===n||qd.splice(n,1),qd.push(e)},deactivateTrap:function(e){var t=qd.indexOf(e);-1!==t&&qd.splice(t,1),qd.length>0&&qd[qd.length-1].unpause()}}),Wd=function(e){return setTimeout(e,0)},Ud=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},Xd=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},Yd=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Kd=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=Fd({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e){return o.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},s=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},c=function(){var e=s("initialFocus");if(!1===e)return!1;if(void 0===e)if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map((function(e){var t,n,r=Id(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?_d([t],n.includeContainer,{filter:Md.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Od(t,n.includeContainer,Md.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=o.findIndex((function(t){return t===e}));if(!(n<0))return t?o.slice(n+1).find((function(e){return zd(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return zd(e,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=s("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=Yd(e);l(t)>=0||(Xd(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Hd(t,i.tabbableOptions)}):Xd(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=Yd(e),n=l(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(o.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==Xd(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Yd(e);d();var n=null;if(o.tabbableGroups.length>0){var r=l(t),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=Ud(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||Hd(t,i.tabbableOptions)&&!zd(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?o.tabbableGroups.length-1:c-1;n=o.tabbableGroups[p].lastTabbableNode}}else{var h=Ud(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||Hd(t,i.tabbableOptions)&&!zd(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[f].firstTabbableNode}}}else n=s("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},v=function(e){var t=Yd(e);l(t)>=0||Xd(i.clickOutsideDeactivates,e)||Xd(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return Gd.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?Wd((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",v,{capture:!0,passive:!1}),r.addEventListener("keydown",g,{capture:!0,passive:!1}),n},x=function(){if(o.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",v,!0),r.removeEventListener("keydown",g,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){i&&d(),m(),n&&n()};return i?(i(o.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!o.active)return this;var t=Fd({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,Gd.deactivateTrap(n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),s=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){Wd((function(){c&&u(p(o.nodeFocusedBeforeActivation)),l&&l()}))};return c&&s?(s(p(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,x()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,d(),m(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&d(),this}}).updateContainerElements(e),n};var Jd=!1;if("undefined"!=typeof window){var Qd={get passive(){Jd=!0}};window.addEventListener("testPassive",null,Qd),window.removeEventListener("testPassive",null,Qd)}var eu,tu="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),nu=[],ru=!1,iu=-1,ou=void 0,au=void 0,lu=function(e){return nu.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},su=function(e){var t=e||window.event;return!!lu(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},cu=function(e,t){if(e){if(!nu.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};nu=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(nu),[n]),tu?(e.ontouchstart=function(e){1===e.targetTouches.length&&(iu=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-iu;!lu(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?su(e):e.stopPropagation())}(t,e)},ru||(document.addEventListener("touchmove",su,Jd?{passive:!1}:void 0),ru=!0)):function(e){if(void 0===au){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(au=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===ou&&(ou=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},du=function(e){e?(nu=nu.filter((function(t){return t.targetElement!==e})),tu?(e.ontouchstart=null,e.ontouchmove=null,ru&&0===nu.length&&(document.removeEventListener("touchmove",su,Jd?{passive:!1}:void 0),ru=!1)):nu.length||(void 0!==au&&(document.body.style.paddingRight=au,au=void 0),void 0!==ou&&(document.body.style.overflow=ou,ou=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},uu=[],pu="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(eu||(eu={}));var hu,fu=function(e){return Object.freeze(e)},gu=function(e,t){this.inlineSize=e,this.blockSize=t,fu(this)},vu=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,fu(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),mu=function(e){return e instanceof SVGElement&&"getBBox"in e},xu=function(e){if(mu(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},bu=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},yu="undefined"!=typeof window?window:{},Cu=new WeakMap,wu=/auto|scroll/,$u=/^tb|vertical/,ku=/msie|trident/i.test(yu.navigator&&yu.navigator.userAgent),Su=function(e){return parseFloat(e||"0")},Eu=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new gu((n?t:e)||0,(n?e:t)||0)},Ou=fu({devicePixelContentBoxSize:Eu(),borderBoxSize:Eu(),contentBoxSize:Eu(),contentRect:new vu(0,0,0,0)}),_u=function(e,t){if(void 0===t&&(t=!1),Cu.has(e)&&!t)return Cu.get(e);if(xu(e))return Cu.set(e,Ou),Ou;var n=getComputedStyle(e),r=mu(e)&&e.ownerSVGElement&&e.getBBox(),i=!ku&&"border-box"===n.boxSizing,o=$u.test(n.writingMode||""),a=!r&&wu.test(n.overflowY||""),l=!r&&wu.test(n.overflowX||""),s=r?0:Su(n.paddingTop),c=r?0:Su(n.paddingRight),d=r?0:Su(n.paddingBottom),u=r?0:Su(n.paddingLeft),p=r?0:Su(n.borderTopWidth),h=r?0:Su(n.borderRightWidth),f=r?0:Su(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:Su(n.borderLeftWidth))+h,x=p+f,b=l?e.offsetHeight-x-e.clientHeight:0,y=a?e.offsetWidth-m-e.clientWidth:0,C=i?g+m:0,w=i?v+x:0,$=r?r.width:Su(n.width)-C-y,k=r?r.height:Su(n.height)-w-b,S=$+g+y+m,E=k+v+b+x,O=fu({devicePixelContentBoxSize:Eu(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:Eu(S,E,o),contentBoxSize:Eu($,k,o),contentRect:new vu(u,s,$,k)});return Cu.set(e,O),O},Lu=function(e,t,n){var r=_u(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case eu.DEVICE_PIXEL_CONTENT_BOX:return a;case eu.BORDER_BOX:return i;default:return o}},Ru=function(e){var t=_u(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=fu([t.borderBoxSize]),this.contentBoxSize=fu([t.contentBoxSize]),this.devicePixelContentBoxSize=fu([t.devicePixelContentBoxSize])},Tu=function(e){if(xu(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Pu=function(){var e=1/0,t=[];uu.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Ru(t.target),i=Tu(t.target);r.push(n),t.lastReportedSize=Lu(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},Du=function(e){uu.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Tu(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Mu=function(){var e=0;for(Du(e);uu.some((function(e){return e.activeTargets.length>0}));)e=Pu(),Du(e);return uu.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:pu}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=pu),window.dispatchEvent(e)}(),e>0},Nu=[],ju=function(e){if(!hu){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Nu.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),hu=function(){n.textContent="".concat(t?t--:t++)}}Nu.push(e),hu()},Vu=0,Iu={attributes:!0,characterData:!0,childList:!0,subtree:!0},zu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Au=function(e){return void 0===e&&(e=0),Date.now()+e},Hu=!1,Bu=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Hu){Hu=!0;var n,r=Au(e);n=function(){var n=!1;try{n=Mu()}finally{if(Hu=!1,e=r-Au(),!Vu)return;n?t.run(1e3):e>0?t.run(e):t.start()}},ju((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Iu)};document.body?t():yu.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),zu.forEach((function(t){return yu.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),zu.forEach((function(t){return yu.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Fu=function(e){!Vu&&e>0&&Bu.start(),!(Vu+=e)&&Bu.stop()},Zu=function(){function e(e,t){this.target=e,this.observedBox=t||eu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Lu(this.target,this.observedBox,!0);return function(e){return!mu(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),qu=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Gu=new WeakMap,Wu=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Uu=function(){function e(){}return e.connect=function(e,t){var n=new qu(e,t);Gu.set(e,n)},e.observe=function(e,t,n){var r=Gu.get(e),i=0===r.observationTargets.length;Wu(r.observationTargets,t)<0&&(i&&uu.push(r),r.observationTargets.push(new Zu(t,n&&n.box)),Fu(1),Bu.schedule())},e.unobserve=function(e,t){var n=Gu.get(e),r=Wu(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&uu.splice(uu.indexOf(n),1),n.observationTargets.splice(r,1),Fu(-1))},e.disconnect=function(e){var t=this,n=Gu.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Xu=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Uu.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bu(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Uu.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bu(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Uu.unobserve(this,e)},e.prototype.disconnect=function(){Uu.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Yu(){return Yu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yu.apply(this,arguments)}function Ku(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var Ju="undefined"!=typeof window?K:W;function Qu(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function ep(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var tp={box:"border-box"};function np(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=G(0),a=o[0],l=o[1];ne(n+": "+a);var s=J((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return Ju((function(){if(e.current&&r){var t=new Xu(s);return t.observe(e.current,tp),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function rp(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var ip={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},op={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},ap=function(e,t,n){return void 0===n&&(n=e.context),new ds(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:Yu({},ip,op)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:Yu({},ip,op)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:Yu({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[ps({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),lp=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],sp=["velocity"],cp=["onRest","config"],dp={tension:170,friction:26},up=dp.tension,pp=dp.friction,hp=Z.forwardRef((function(e,t){var n=e.children,r=e.sibling,i=e.className,o=e.footer,a=e.header,l=e.open,s=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,p=e.maxHeight,h=e.defaultSnap,f=void 0===h?gp:h,g=e.snapPoints,v=void 0===g?vp:g,m=e.blocking,x=void 0===m||m,b=e.scrollLocking,y=void 0===b||b,C=e.style,w=e.onSpringStart,$=e.onSpringCancel,k=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?x:S,O=e.expandOnContentDrag,_=void 0!==O&&O,L=Ku(e,lp),R=function(){var e=G(!1),t=e[0],n=e[1],r=G({}),i=r[0],o=r[1],a=J((function(e){return o((function(t){var n;return Yu({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return Yu({},t,((n={})[e]=!0,n))}))}}),[]);return W((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&n(!0)}),[i]),{ready:t,registerReady:a}}(),T=R.ready,P=R.registerReady,D=Y(!1),M=Y(w),N=Y($),j=Y(k);W((function(){M.current=w,N.current=$,j.current=k}),[$,w,k]);var V,I,z=ec((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),A=z[0],H=z[1],B=Y(null),F=Y(null),q=Y(null),U=Y(null),X=Y(null),K=Y(null),Q=Y(0),re=Y(),ie=Y(!1),oe=(V=ee((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=Y(null==V?void 0:V.matches),ne(I.current?"reduce":"no-preference"),W((function(){var e=function(e){I.current=e.matches};return null==V||V.addListener(e),function(){return null==V?void 0:V.removeListener(e)}}),[V]),I),ae=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,i=Y({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((function(){if(!n)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1;i.current={activate:function(){o||(o=!0,cu(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,du(e))}}}),[n,t,r]),i}({targetRef:F,enabled:T&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=Y({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1,o=[],a=[];r.current={activate:function(){if(!i){i=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(o.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){i&&(i=!1,a.forEach((function(e,t){var n=o[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),o=[],a=[])}}}),[t,n]),r}({targetRef:B,enabled:T&&x}),se=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,i=e.enabled,o=Y({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return ne(i?"Enabled":"Disabled"),W((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=Kd(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),l=!1;o.current={activate:function(){try{return l?Promise.resolve():(l=!0,Promise.resolve(a.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){l&&(l=!1,a.deactivate())}}}),[i,n,r,t]),o}({targetRef:B,fallbackRef:K,initialFocusRef:d||void 0,enabled:T&&x&&!1!==d}),ce=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,i=e.ready,o=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,i=e.footerRef,o=e.headerEnabled,a=e.headerRef,l=e.registerReady,s=e.resizeSourceRef,c=ee((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=ee((function(){return t("maxHeight")}),[t]),i=G((function(){return ep(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=Y(0);return ne(e?"controlled":"auto"),W((function(){l&&r()}),[l,r]),Ju((function(){if(e)return a(ep(e)),void(n.current="maxheightprop");var t=function(){s.current||(s.current=requestAnimationFrame((function(){a(window.innerHeight),n.current="window",s.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(s.current)}}),[e,r,n]),o}(n,l,s),u=np(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=np(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=np(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;ne("minHeight: "+f);var g=p>0;return W((function(){g&&c()}),[g,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:h}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),a=o.maxHeight,l=o.minHeight,s=o.headerHeight,c=o.footerHeight,d=function(e,t){var n=[].concat(e).map(ep).reduce((function(e,n){return e.add(Qu(n,0,t)),e}),new Set),r=Array.from(n),i=Math.min.apply(Math,r);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:i,maxSnap:o}}(i?t({height:n.current,footerHeight:c,headerHeight:s,minHeight:l,maxHeight:a}):[0],a),u=d.snapPoints,p=d.minSnap,h=d.maxSnap;return ne("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=ep("function"==typeof e?e({footerHeight:c,headerHeight:s,height:n.current,minHeight:l,maxHeight:a,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:q,controlledMaxHeight:p,footerEnabled:!!o,footerRef:X,getSnapPoints:v,headerEnabled:!1!==a,headerRef:U,heightRef:Q,lastSnapRef:c,ready:T,registerReady:P,resizeSourceRef:re}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=Y(pe),ge=Y(de),ve=Y(ue),me=Y(he),xe=Y(0);Ju((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=J((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=Ku(n,sp),a=Ku(e,cp);return new Promise((function(e){return H(Yu({},a,{config:Yu({velocity:i},o,{mass:1,tension:up,friction:Math.max(pp,pp+(pp-pp*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=Ss(ap,{devTools:!1,actions:{onOpenCancel:J((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:J((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:J((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:J((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:re.current})}),[]),onOpenEnd:J((function(){return null==j.current?void 0:j.current({type:"OPEN"})}),[]),onSnapEnd:J((function(e,t){return null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:J((function(){return null==j.current?void 0:j.current({type:"RESIZE",source:re.current})}),[])},context:{initialState:s},services:{onSnapStart:J((function(e,t){try{return Promise.resolve(null==M.current?void 0:M.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:J((function(e,t){try{return Promise.resolve(null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:J((function(e,t){try{return Promise.resolve(be({y:xe.current,ready:0,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),activate:J((function(e,t){try{return D.current=!0,Promise.resolve(Promise.all([ae.current.activate(),se.current.activate(),le.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[le,se,ae]),deactivate:J((function(){try{return ae.current.deactivate(),se.current.deactivate(),le.current.deactivate(),D.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[le,se,ae]),openImmediately:J((function(){try{return Q.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),openSmoothly:J((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return Q.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:oe.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe]),snapSmoothly:J((function(e,t){try{var n=me.current(e.y);return Q.current=n,c.current=n,Promise.resolve(be({y:n,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:oe.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),resizeSmoothly:J((function(){try{var e=me.current(Q.current);return Q.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==re.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:J((function(e,t){try{return be({minSnap:Q.current,immediate:!0}),Q.current=0,Promise.resolve(be({y:0,maxHeight:fe.current,maxSnap:ve.current,immediate:oe.current})).then((function(){return Promise.resolve(be({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe])}}),Ce=ye[0],we=ye[1];W((function(){T&&we(l?"OPEN":"CLOSE")}),[l,we,T]),Ju((function(){(pe||ue||de)&&we("RESIZE")}),[pe,ue,de,we]),W((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),te(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,i=void 0===r?1:r,o=n.source,a=void 0===o?"custom":o;we("SNAP",{payload:{y:me.current(e),velocity:i,source:a}})},get height(){return Q.current}}}),[we]),W((function(){var e=F.current,t=function(e){ie.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return _&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[_,F]);var $e=Cd((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,i=void 0!==r&&r,o=n.isContentDragging,a=void 0!==o&&o,l=e.cancel,s=e.direction[1],c=e.down,d=e.first,p=e.last,h=e.memo,f=void 0===h?A.y.getValue():h,g=e.tap,v=e.velocity,m=-1*e.movement[1];if(!D.current)return l(),f;if(u&&i&&g)return l(),setTimeout((function(){return u()}),0),f;if(g)return f;var x=f+m,b=m*v,y=Math.max(ge.current,Math.min(ve.current,x+2*b));if(!c&&u&&s>0&&x+b<ge.current/2)return l(),u(),f;var C=c?u||ge.current!==ve.current?jc(x,u?0:ge.current,ve.current,.55):x<ge.current?jc(x,ge.current,2*ve.current,.55):jc(x,ge.current/2,ve.current,.55):y;return _&&a?(C>=ve.current&&(C=ve.current),f===ve.current&&F.current.scrollTop>0&&(C=ve.current),ie.current=C<ve.current):ie.current=!1,d&&we("DRAG"),p?(we("SNAP",{payload:{y:C,velocity:v>.05?v:1,source:"dragging"}}),f):(H({y:C,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:!0,config:{velocity:v}}),f)}),{filterTaps:!0});if(Number.isNaN(ve.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ge.current))throw new TypeError("minSnapRef is NaN!!");var ke=function(e){var t,n=e.spring,r=Us([n.y,n.maxHeight],(function(e,t){return Math.round(Qu(t-e,0,16))+"px"})),i=Us([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return Qu(e,t,n)+"px"})),o=Us([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=Us([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=Us([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return Qu((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=Us([n.y,n.minSnap],(function(e,t){return t?Qu(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=l,t["--rsbs-backdrop-opacity"]=s,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=o,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=i,t}({spring:A});return Z.createElement(Rc.div,Yu({},L,{"data-rsbs-root":!0,"data-rsbs-state":fp.find(Ce.matches),"data-rsbs-is-blocking":x,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!o,className:i,ref:B,style:Yu({},ke,C,{opacity:A.ready})}),r,x&&Z.createElement("div",Yu({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),Z.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:K,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&Z.createElement("div",Yu({key:"header","data-rsbs-header":!0,ref:U},$e()),a),Z.createElement("div",Yu({key:"scroll","data-rsbs-scroll":!0,ref:F},_?$e({isContentDragging:!0}):{}),Z.createElement("div",{"data-rsbs-content":!0,ref:q},n)),o&&Z.createElement("div",Yu({key:"footer",ref:X,"data-rsbs-footer":!0},$e()),o)))})),fp=["closed","opening","open","closing","dragging","snapping","resizing"];function gp(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function vp(e){return e.minHeight}var mp=["onSpringStart","onSpringEnd","skipInitialTransition"],xp=q((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=Ku(e,mp),a=G(!1),l=a[0],s=a[1],c=Y(),d=Y(null),u=Y(i&&o.open?"OPEN":"CLOSED");Ju((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=J((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=J((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return s(!1)})))}))}),[r]);return l?Z.createElement(fa,{"data-rsbs-portal":!0},Z.createElement(hp,Yu({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));const bp=(e,t)=>ie`
2312
+ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qd(Object(n),!0).forEach((function(t){Wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ud,Xd=(Ud=[],{activateTrap:function(e){if(Ud.length>0){var t=Ud[Ud.length-1];t!==e&&t.pause()}var n=Ud.indexOf(e);-1===n||Ud.splice(n,1),Ud.push(e)},deactivateTrap:function(e){var t=Ud.indexOf(e);-1!==t&&Ud.splice(t,1),Ud.length>0&&Ud[Ud.length-1].unpause()}}),Yd=function(e){return setTimeout(e,0)},Kd=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},Jd=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},Qd=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},eu=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=Gd({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e){return o.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},s=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},c=function(){var e=s("initialFocus");if(!1===e)return!1;if(void 0===e)if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map((function(e){var t,n,r=Hd(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?Td([t],n.includeContainer,{filter:Vd.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Rd(t,n.includeContainer,Vd.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=o.findIndex((function(t){return t===e}));if(!(n<0))return t?o.slice(n+1).find((function(e){return Bd(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return Bd(e,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=s("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=Qd(e);l(t)>=0||(Jd(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Zd(t,i.tabbableOptions)}):Jd(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=Qd(e),n=l(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(o.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==Jd(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Qd(e);d();var n=null;if(o.tabbableGroups.length>0){var r=l(t),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=Kd(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||Zd(t,i.tabbableOptions)&&!Bd(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?o.tabbableGroups.length-1:c-1;n=o.tabbableGroups[p].lastTabbableNode}}else{var h=Kd(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||Zd(t,i.tabbableOptions)&&!Bd(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[f].firstTabbableNode}}}else n=s("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},v=function(e){var t=Qd(e);l(t)>=0||Jd(i.clickOutsideDeactivates,e)||Jd(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return Xd.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?Yd((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",v,{capture:!0,passive:!1}),r.addEventListener("keydown",g,{capture:!0,passive:!1}),n},x=function(){if(o.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",v,!0),r.removeEventListener("keydown",g,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){i&&d(),m(),n&&n()};return i?(i(o.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!o.active)return this;var t=Gd({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,Xd.deactivateTrap(n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),s=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){Yd((function(){c&&u(p(o.nodeFocusedBeforeActivation)),l&&l()}))};return c&&s?(s(p(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,x()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,d(),m(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&d(),this}}).updateContainerElements(e),n};var tu=!1;if("undefined"!=typeof window){var nu={get passive(){tu=!0}};window.addEventListener("testPassive",null,nu),window.removeEventListener("testPassive",null,nu)}var ru,iu="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),ou=[],au=!1,lu=-1,su=void 0,cu=void 0,du=function(e){return ou.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},uu=function(e){var t=e||window.event;return!!du(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},pu=function(e,t){if(e){if(!ou.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};ou=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(ou),[n]),iu?(e.ontouchstart=function(e){1===e.targetTouches.length&&(lu=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-lu;!du(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?uu(e):e.stopPropagation())}(t,e)},au||(document.addEventListener("touchmove",uu,tu?{passive:!1}:void 0),au=!0)):function(e){if(void 0===cu){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(cu=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===su&&(su=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},hu=function(e){e?(ou=ou.filter((function(t){return t.targetElement!==e})),iu?(e.ontouchstart=null,e.ontouchmove=null,au&&0===ou.length&&(document.removeEventListener("touchmove",uu,tu?{passive:!1}:void 0),au=!1)):ou.length||(void 0!==cu&&(document.body.style.paddingRight=cu,cu=void 0),void 0!==su&&(document.body.style.overflow=su,su=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},fu=[],gu="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(ru||(ru={}));var vu,mu=function(e){return Object.freeze(e)},xu=function(e,t){this.inlineSize=e,this.blockSize=t,mu(this)},bu=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,mu(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),yu=function(e){return e instanceof SVGElement&&"getBBox"in e},Cu=function(e){if(yu(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},wu=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},$u="undefined"!=typeof window?window:{},ku=new WeakMap,Su=/auto|scroll/,Eu=/^tb|vertical/,Ou=/msie|trident/i.test($u.navigator&&$u.navigator.userAgent),_u=function(e){return parseFloat(e||"0")},Lu=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new xu((n?t:e)||0,(n?e:t)||0)},Ru=mu({devicePixelContentBoxSize:Lu(),borderBoxSize:Lu(),contentBoxSize:Lu(),contentRect:new bu(0,0,0,0)}),Tu=function(e,t){if(void 0===t&&(t=!1),ku.has(e)&&!t)return ku.get(e);if(Cu(e))return ku.set(e,Ru),Ru;var n=getComputedStyle(e),r=yu(e)&&e.ownerSVGElement&&e.getBBox(),i=!Ou&&"border-box"===n.boxSizing,o=Eu.test(n.writingMode||""),a=!r&&Su.test(n.overflowY||""),l=!r&&Su.test(n.overflowX||""),s=r?0:_u(n.paddingTop),c=r?0:_u(n.paddingRight),d=r?0:_u(n.paddingBottom),u=r?0:_u(n.paddingLeft),p=r?0:_u(n.borderTopWidth),h=r?0:_u(n.borderRightWidth),f=r?0:_u(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:_u(n.borderLeftWidth))+h,x=p+f,b=l?e.offsetHeight-x-e.clientHeight:0,y=a?e.offsetWidth-m-e.clientWidth:0,C=i?g+m:0,w=i?v+x:0,$=r?r.width:_u(n.width)-C-y,k=r?r.height:_u(n.height)-w-b,S=$+g+y+m,E=k+v+b+x,O=mu({devicePixelContentBoxSize:Lu(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:Lu(S,E,o),contentBoxSize:Lu($,k,o),contentRect:new bu(u,s,$,k)});return ku.set(e,O),O},Pu=function(e,t,n){var r=Tu(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case ru.DEVICE_PIXEL_CONTENT_BOX:return a;case ru.BORDER_BOX:return i;default:return o}},Du=function(e){var t=Tu(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=mu([t.borderBoxSize]),this.contentBoxSize=mu([t.contentBoxSize]),this.devicePixelContentBoxSize=mu([t.devicePixelContentBoxSize])},Mu=function(e){if(Cu(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Nu=function(){var e=1/0,t=[];fu.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Du(t.target),i=Mu(t.target);r.push(n),t.lastReportedSize=Pu(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},ju=function(e){fu.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Mu(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Vu=function(){var e=0;for(ju(e);fu.some((function(e){return e.activeTargets.length>0}));)e=Nu(),ju(e);return fu.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:gu}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=gu),window.dispatchEvent(e)}(),e>0},Iu=[],zu=function(e){if(!vu){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Iu.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),vu=function(){n.textContent="".concat(t?t--:t++)}}Iu.push(e),vu()},Au=0,Hu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Bu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Fu=function(e){return void 0===e&&(e=0),Date.now()+e},Zu=!1,qu=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Zu){Zu=!0;var n,r=Fu(e);n=function(){var n=!1;try{n=Vu()}finally{if(Zu=!1,e=r-Fu(),!Au)return;n?t.run(1e3):e>0?t.run(e):t.start()}},zu((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Hu)};document.body?t():$u.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Bu.forEach((function(t){return $u.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Bu.forEach((function(t){return $u.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Gu=function(e){!Au&&e>0&&qu.start(),!(Au+=e)&&qu.stop()},Wu=function(){function e(e,t){this.target=e,this.observedBox=t||ru.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Pu(this.target,this.observedBox,!0);return function(e){return!yu(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Uu=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Xu=new WeakMap,Yu=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ku=function(){function e(){}return e.connect=function(e,t){var n=new Uu(e,t);Xu.set(e,n)},e.observe=function(e,t,n){var r=Xu.get(e),i=0===r.observationTargets.length;Yu(r.observationTargets,t)<0&&(i&&fu.push(r),r.observationTargets.push(new Wu(t,n&&n.box)),Gu(1),qu.schedule())},e.unobserve=function(e,t){var n=Xu.get(e),r=Yu(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&fu.splice(fu.indexOf(n),1),n.observationTargets.splice(r,1),Gu(-1))},e.disconnect=function(e){var t=this,n=Xu.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Ju=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ku.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wu(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ku.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wu(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ku.unobserve(this,e)},e.prototype.disconnect=function(){Ku.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Qu(){return Qu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qu.apply(this,arguments)}function ep(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var tp="undefined"!=typeof window?K:W;function np(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function rp(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var ip={box:"border-box"};function op(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=G(0),a=o[0],l=o[1];ne(n+": "+a);var s=J((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return tp((function(){if(e.current&&r){var t=new Ju(s);return t.observe(e.current,ip),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function ap(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var lp={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},sp={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},cp=function(e,t,n){return void 0===n&&(n=e.context),new hs(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:Qu({},lp,sp)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:Qu({},lp,sp)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:Qu({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[gs({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),dp=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],up=["velocity"],pp=["onRest","config"],hp={tension:170,friction:26},fp=hp.tension,gp=hp.friction,vp=Z.forwardRef((function(e,t){var n=e.children,r=e.sibling,i=e.className,o=e.footer,a=e.header,l=e.open,s=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,p=e.maxHeight,h=e.defaultSnap,f=void 0===h?xp:h,g=e.snapPoints,v=void 0===g?bp:g,m=e.blocking,x=void 0===m||m,b=e.scrollLocking,y=void 0===b||b,C=e.style,w=e.onSpringStart,$=e.onSpringCancel,k=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?x:S,O=e.expandOnContentDrag,_=void 0!==O&&O,L=ep(e,dp),R=function(){var e=G(!1),t=e[0],n=e[1],r=G({}),i=r[0],o=r[1],a=J((function(e){return o((function(t){var n;return Qu({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return Qu({},t,((n={})[e]=!0,n))}))}}),[]);return W((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&n(!0)}),[i]),{ready:t,registerReady:a}}(),T=R.ready,P=R.registerReady,D=Y(!1),M=Y(w),N=Y($),j=Y(k);W((function(){M.current=w,N.current=$,j.current=k}),[$,w,k]);var V,I,z=rc((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),A=z[0],H=z[1],B=Y(null),F=Y(null),q=Y(null),U=Y(null),X=Y(null),K=Y(null),Q=Y(0),re=Y(),ie=Y(!1),oe=(V=ee((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=Y(null==V?void 0:V.matches),ne(I.current?"reduce":"no-preference"),W((function(){var e=function(e){I.current=e.matches};return null==V||V.addListener(e),function(){return null==V?void 0:V.removeListener(e)}}),[V]),I),ae=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,i=Y({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((function(){if(!n)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1;i.current={activate:function(){o||(o=!0,pu(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,hu(e))}}}),[n,t,r]),i}({targetRef:F,enabled:T&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=Y({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1,o=[],a=[];r.current={activate:function(){if(!i){i=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(o.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){i&&(i=!1,a.forEach((function(e,t){var n=o[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),o=[],a=[])}}}),[t,n]),r}({targetRef:B,enabled:T&&x}),se=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,i=e.enabled,o=Y({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return ne(i?"Enabled":"Disabled"),W((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=eu(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),l=!1;o.current={activate:function(){try{return l?Promise.resolve():(l=!0,Promise.resolve(a.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){l&&(l=!1,a.deactivate())}}}),[i,n,r,t]),o}({targetRef:B,fallbackRef:K,initialFocusRef:d||void 0,enabled:T&&x&&!1!==d}),ce=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,i=e.ready,o=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,i=e.footerRef,o=e.headerEnabled,a=e.headerRef,l=e.registerReady,s=e.resizeSourceRef,c=ee((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=ee((function(){return t("maxHeight")}),[t]),i=G((function(){return rp(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=Y(0);return ne(e?"controlled":"auto"),W((function(){l&&r()}),[l,r]),tp((function(){if(e)return a(rp(e)),void(n.current="maxheightprop");var t=function(){s.current||(s.current=requestAnimationFrame((function(){a(window.innerHeight),n.current="window",s.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(s.current)}}),[e,r,n]),o}(n,l,s),u=op(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=op(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=op(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;ne("minHeight: "+f);var g=p>0;return W((function(){g&&c()}),[g,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:h}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),a=o.maxHeight,l=o.minHeight,s=o.headerHeight,c=o.footerHeight,d=function(e,t){var n=[].concat(e).map(rp).reduce((function(e,n){return e.add(np(n,0,t)),e}),new Set),r=Array.from(n),i=Math.min.apply(Math,r);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:i,maxSnap:o}}(i?t({height:n.current,footerHeight:c,headerHeight:s,minHeight:l,maxHeight:a}):[0],a),u=d.snapPoints,p=d.minSnap,h=d.maxSnap;return ne("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=rp("function"==typeof e?e({footerHeight:c,headerHeight:s,height:n.current,minHeight:l,maxHeight:a,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:q,controlledMaxHeight:p,footerEnabled:!!o,footerRef:X,getSnapPoints:v,headerEnabled:!1!==a,headerRef:U,heightRef:Q,lastSnapRef:c,ready:T,registerReady:P,resizeSourceRef:re}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=Y(pe),ge=Y(de),ve=Y(ue),me=Y(he),xe=Y(0);tp((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=J((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=ep(n,up),a=ep(e,pp);return new Promise((function(e){return H(Qu({},a,{config:Qu({velocity:i},o,{mass:1,tension:fp,friction:Math.max(gp,gp+(gp-gp*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=_s(cp,{devTools:!1,actions:{onOpenCancel:J((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:J((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:J((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:J((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:re.current})}),[]),onOpenEnd:J((function(){return null==j.current?void 0:j.current({type:"OPEN"})}),[]),onSnapEnd:J((function(e,t){return null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:J((function(){return null==j.current?void 0:j.current({type:"RESIZE",source:re.current})}),[])},context:{initialState:s},services:{onSnapStart:J((function(e,t){try{return Promise.resolve(null==M.current?void 0:M.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:J((function(e,t){try{return Promise.resolve(null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:J((function(e,t){try{return Promise.resolve(be({y:xe.current,ready:0,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),activate:J((function(e,t){try{return D.current=!0,Promise.resolve(Promise.all([ae.current.activate(),se.current.activate(),le.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[le,se,ae]),deactivate:J((function(){try{return ae.current.deactivate(),se.current.deactivate(),le.current.deactivate(),D.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[le,se,ae]),openImmediately:J((function(){try{return Q.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),openSmoothly:J((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return Q.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:oe.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe]),snapSmoothly:J((function(e,t){try{var n=me.current(e.y);return Q.current=n,c.current=n,Promise.resolve(be({y:n,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:oe.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),resizeSmoothly:J((function(){try{var e=me.current(Q.current);return Q.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==re.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:J((function(e,t){try{return be({minSnap:Q.current,immediate:!0}),Q.current=0,Promise.resolve(be({y:0,maxHeight:fe.current,maxSnap:ve.current,immediate:oe.current})).then((function(){return Promise.resolve(be({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe])}}),Ce=ye[0],we=ye[1];W((function(){T&&we(l?"OPEN":"CLOSE")}),[l,we,T]),tp((function(){(pe||ue||de)&&we("RESIZE")}),[pe,ue,de,we]),W((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),te(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,i=void 0===r?1:r,o=n.source,a=void 0===o?"custom":o;we("SNAP",{payload:{y:me.current(e),velocity:i,source:a}})},get height(){return Q.current}}}),[we]),W((function(){var e=F.current,t=function(e){ie.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return _&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[_,F]);var $e=kd((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,i=void 0!==r&&r,o=n.isContentDragging,a=void 0!==o&&o,l=e.cancel,s=e.direction[1],c=e.down,d=e.first,p=e.last,h=e.memo,f=void 0===h?A.y.getValue():h,g=e.tap,v=e.velocity,m=-1*e.movement[1];if(!D.current)return l(),f;if(u&&i&&g)return l(),setTimeout((function(){return u()}),0),f;if(g)return f;var x=f+m,b=m*v,y=Math.max(ge.current,Math.min(ve.current,x+2*b));if(!c&&u&&s>0&&x+b<ge.current/2)return l(),u(),f;var C=c?u||ge.current!==ve.current?zc(x,u?0:ge.current,ve.current,.55):x<ge.current?zc(x,ge.current,2*ve.current,.55):zc(x,ge.current/2,ve.current,.55):y;return _&&a?(C>=ve.current&&(C=ve.current),f===ve.current&&F.current.scrollTop>0&&(C=ve.current),ie.current=C<ve.current):ie.current=!1,d&&we("DRAG"),p?(we("SNAP",{payload:{y:C,velocity:v>.05?v:1,source:"dragging"}}),f):(H({y:C,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:!0,config:{velocity:v}}),f)}),{filterTaps:!0});if(Number.isNaN(ve.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ge.current))throw new TypeError("minSnapRef is NaN!!");var ke=function(e){var t,n=e.spring,r=Ks([n.y,n.maxHeight],(function(e,t){return Math.round(np(t-e,0,16))+"px"})),i=Ks([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return np(e,t,n)+"px"})),o=Ks([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=Ks([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=Ks([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return np((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=Ks([n.y,n.minSnap],(function(e,t){return t?np(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=l,t["--rsbs-backdrop-opacity"]=s,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=o,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=i,t}({spring:A});return Z.createElement(Dc.div,Qu({},L,{"data-rsbs-root":!0,"data-rsbs-state":mp.find(Ce.matches),"data-rsbs-is-blocking":x,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!o,className:i,ref:B,style:Qu({},ke,C,{opacity:A.ready})}),r,x&&Z.createElement("div",Qu({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),Z.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:K,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&Z.createElement("div",Qu({key:"header","data-rsbs-header":!0,ref:U},$e()),a),Z.createElement("div",Qu({key:"scroll","data-rsbs-scroll":!0,ref:F},_?$e({isContentDragging:!0}):{}),Z.createElement("div",{"data-rsbs-content":!0,ref:q},n)),o&&Z.createElement("div",Qu({key:"footer",ref:X,"data-rsbs-footer":!0},$e()),o)))})),mp=["closed","opening","open","closing","dragging","snapping","resizing"];function xp(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function bp(e){return e.minHeight}var yp=["onSpringStart","onSpringEnd","skipInitialTransition"],Cp=q((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=ep(e,yp),a=G(!1),l=a[0],s=a[1],c=Y(),d=Y(null),u=Y(i&&o.open?"OPEN":"CLOSED");tp((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=J((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=J((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return s(!1)})))}))}),[r]);return l?Z.createElement(ma,{"data-rsbs-portal":!0},Z.createElement(vp,Qu({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));const wp=(e,t)=>ie`
2296
2313
  [data-rsbs-overlay] {
2297
2314
  border-top-left-radius: 16px;
2298
2315
  border-top-right-radius: 16px;
@@ -2321,7 +2338,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2321
2338
  padding: 0px;
2322
2339
  min-height: 64px;
2323
2340
  }
2324
- `;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const yp=({header:e,content:t,footer:n,open:r=!1,onClose:i,minimizedHeight:o,midHeight:a=200,maxFullHeight:l,defaultSnap:s="minimized",className:c,blocking:d,zIndex:u=1e3})=>H(xp,{css:bp(!!e,u),className:c,open:r,onDismiss:i,header:e,footer:n,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:r})=>[20,o||e,a+(n?r:0),l||t-t/6],defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:r})=>{let i=20;return"minimized"===s?i=o||e:"mid"===s?i=a+(n?r:0):"full"===s&&(i=l||t-t/6),i},blocking:d,children:t}),Cp=ie`
2341
+ `;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const $p=({header:e,content:t,footer:n,open:r=!1,onClose:i,minimizedHeight:o,midHeight:a=200,maxFullHeight:l,defaultSnap:s="minimized",className:c,blocking:d,zIndex:u=1e3})=>H(Cp,{css:wp(!!e,u),className:c,open:r,onDismiss:i,header:e,footer:n,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:r})=>[20,o||e,a+(n?r:0),l||t-t/6],defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:r})=>{let i=20;return"minimized"===s?i=o||e:"mid"===s?i=a+(n?r:0):"full"===s&&(i=l||t-t/6),i},blocking:d,children:t}),kp=ie`
2325
2342
  a,
2326
2343
  p {
2327
2344
  font-size: 16px;
@@ -2353,19 +2370,19 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2353
2370
  a:hover {
2354
2371
  text-decoration: underline;
2355
2372
  }
2356
- `,wp=ie`
2373
+ `,Sp=ie`
2357
2374
  svg {
2358
2375
  height: 12px;
2359
2376
  width: 12px;
2360
2377
  color: ${he("neutral",600)};
2361
2378
  }
2362
- `,$p=ie`
2379
+ `,Ep=ie`
2363
2380
  cursor: pointer;
2364
2381
  color: ${he("neutral",600)};
2365
2382
  display: flex;
2366
2383
  justify-content: center;
2367
2384
  align-items: center;
2368
- `,kp=({links:e,separator:t,maxItems:n=99,linkRouter:r})=>{const[i,o]=G(e.length>n);W((()=>{o(e.length>n)}),[e.length]);const a=r;return H(D.Root,{children:H(D.List,{gap:"16px",children:i?A(B,{children:[H(D.Item,{css:Cp,children:A(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),H(D.Separator,{css:wp,children:t||H(Se,{rotate:"270"})}),H("li",{className:"chakra-breadcrumb__item",children:H("button",{css:$p,type:"button",onClick:()=>o(!1),children:"..."})}),H(D.Separator,{css:wp,children:t||H(Se,{rotate:"270"})}),H(D.Item,{css:Cp,children:A("p",{"aria-current":"page","aria-label":e[e.length-1].label,children:[e[e.length-1].icon,e[e.length-1].label]})})]}):e.map(((n,r)=>n?.label?A(re,{children:[H(D.Item,{css:Cp,children:r<e.length-1?A(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):A("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?H(D.Separator,{css:wp,children:t||H(Se,{rotate:"270"})}):null]},n.label):null))})})},Sp=(e,t)=>ie`
2385
+ `,Op=({links:e,separator:t,maxItems:n=99,linkRouter:r})=>{const[i,o]=G(e.length>n);W((()=>{o(e.length>n)}),[e.length]);const a=r;return H(D.Root,{children:H(D.List,{gap:"16px",children:i?A(B,{children:[H(D.Item,{css:kp,children:A(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),H(D.Separator,{css:Sp,children:t||H(Se,{rotate:"270"})}),H("li",{className:"chakra-breadcrumb__item",children:H("button",{css:Ep,type:"button",onClick:()=>o(!1),children:"..."})}),H(D.Separator,{css:Sp,children:t||H(Se,{rotate:"270"})}),H(D.Item,{css:kp,children:A("p",{"aria-current":"page","aria-label":e[e.length-1].label,children:[e[e.length-1].icon,e[e.length-1].label]})})]}):e.map(((n,r)=>n?.label?A(re,{children:[H(D.Item,{css:kp,children:r<e.length-1?A(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):A("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?H(D.Separator,{css:Sp,children:t||H(Se,{rotate:"270"})}):null]},n.label):null))})})},_p=(e,t)=>ie`
2369
2386
  min-height: 56px;
2370
2387
  width: 100vw;
2371
2388
  position: ${e?"sticky":"absolute"};
@@ -2375,7 +2392,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2375
2392
  background-color: ${he("neutral",t?200:100)};
2376
2393
  border-top: 1px solid ${he("neutral",400)};
2377
2394
  z-index: 101;
2378
- `,Ep=e=>ie`
2395
+ `,Lp=e=>ie`
2379
2396
  height: 100%;
2380
2397
  width: 100%;
2381
2398
  max-width: ${e?`${e}px`:"100%"};
@@ -2390,7 +2407,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2390
2407
  flex-direction: column;
2391
2408
  align-items: flex-start;
2392
2409
  }
2393
- `,Op=ie`
2410
+ `,Rp=ie`
2394
2411
  display: flex;
2395
2412
  align-items: center;
2396
2413
  flex-wrap: wrap;
@@ -2403,7 +2420,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2403
2420
  color: ${he("neutral",700)};
2404
2421
  text-decoration: underline;
2405
2422
  }
2406
- `,_p=ie`
2423
+ `,Tp=ie`
2407
2424
  width: 240px;
2408
2425
  font-size: 14px;
2409
2426
  line-height: 20px;
@@ -2414,7 +2431,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2414
2431
  @media screen and (max-width: 768px) {
2415
2432
  text-align: left;
2416
2433
  }
2417
- `,Lp=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:i})=>{const o=(new Date).getFullYear();return H("footer",{css:Sp(n,r),children:A("div",{css:Ep(i),children:[H("div",{children:H(Me,{height:"32px",width:"91px"})}),H("div",{css:Op,children:e}),H("div",{children:A("p",{css:_p,children:[t," ",o]})})]})})},Rp=(e,t)=>ie`
2434
+ `,Pp=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:i})=>{const o=(new Date).getFullYear();return H("footer",{css:_p(n,r),children:A("div",{css:Lp(i),children:[H("div",{children:H(Me,{height:"32px",width:"91px"})}),H("div",{css:Rp,children:e}),H("div",{children:A("p",{css:Tp,children:[t," ",o]})})]})})},Dp=(e,t)=>ie`
2418
2435
  height: ${e?"96px":"48px"};
2419
2436
  width: 100%;
2420
2437
  background-color: ${he("neutral",100)};
@@ -2423,7 +2440,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2423
2440
  left: 0;
2424
2441
  z-index: 102;
2425
2442
  border-bottom: 1px solid ${he("neutral",400)};
2426
- `,Tp=ie`
2443
+ `,Mp=ie`
2427
2444
  height: 48px;
2428
2445
  width: 100%;
2429
2446
  background-color: ${he("neutral",100)};
@@ -2433,7 +2450,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2433
2450
  justify-content: flex-start;
2434
2451
  gap: 0px;
2435
2452
  padding: 8px 16px;
2436
- `,Pp=(e,t)=>ie`
2453
+ `,Np=(e,t)=>ie`
2437
2454
  height: 48px;
2438
2455
  width: 100%;
2439
2456
  max-width: ${t?`${t}px`:"100%"};
@@ -2443,7 +2460,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2443
2460
  justify-content: space-between;
2444
2461
  margin: 0 auto;
2445
2462
  padding: 8px 16px;
2446
- `,Dp=ie`
2463
+ `,jp=ie`
2447
2464
  outline: none;
2448
2465
  a {
2449
2466
  &:focus-visible {
@@ -2454,12 +2471,12 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2454
2471
  outline-width: 2px;
2455
2472
  }
2456
2473
  }
2457
- `,Mp=e=>ie`
2474
+ `,Vp=e=>ie`
2458
2475
  display: ${e?"none":"flex"};
2459
2476
  align-items: center;
2460
2477
  justify-content: flex-start;
2461
2478
  gap: 0px;
2462
- `,Np=e=>ie`
2479
+ `,Ip=e=>ie`
2463
2480
  font-size: 16px;
2464
2481
  line-height: 24px;
2465
2482
  font-weight: 400;
@@ -2484,12 +2501,12 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2484
2501
  font-weight: 700;
2485
2502
  color: ${he("accessible","controls-on-neutral-lights")};
2486
2503
  `:""}
2487
- `,jp=ie`
2504
+ `,zp=ie`
2488
2505
  height: 48px;
2489
2506
  display: flex;
2490
2507
  align-items: center;
2491
2508
  justify-content: flex-end;
2492
- `,Vp=e=>ie`
2509
+ `,Ap=e=>ie`
2493
2510
  height: 100%;
2494
2511
  font-size: 16px;
2495
2512
  line-height: 24px;
@@ -2508,7 +2525,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2508
2525
  }
2509
2526
  }
2510
2527
  `:""}
2511
- `,Ip=e=>ie`
2528
+ `,Hp=e=>ie`
2512
2529
  height: 100%;
2513
2530
  display: flex;
2514
2531
  align-items: center;
@@ -2516,7 +2533,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2516
2533
  gap: 20px;
2517
2534
  padding-left: 16px;
2518
2535
  border-left: 1px solid ${he("neutral",e?700:300)};
2519
- `,zp=ie`
2536
+ `,Bp=ie`
2520
2537
  background-color: none;
2521
2538
  border: none;
2522
2539
  cursor: pointer;
@@ -2541,7 +2558,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2541
2558
  outline-width: 2px;
2542
2559
  background-color: ${he("neutral",200)};
2543
2560
  }
2544
- `,Ap=e=>ie`
2561
+ `,Fp=e=>ie`
2545
2562
  position: absolute;
2546
2563
  top: 48px;
2547
2564
  right: 0;
@@ -2554,10 +2571,10 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2554
2571
  justify-content: flex-start;
2555
2572
  gap: 16px;
2556
2573
  transition: width 0.5s ease-in-out;
2557
- `,Hp=ie`
2574
+ `,Zp=ie`
2558
2575
  height: 100%;
2559
2576
  width: 100%;
2560
- `,Bp=ie`
2577
+ `,qp=ie`
2561
2578
  background-color: ${he("neutral",200)};
2562
2579
  border-bottom: 1px solid ${he("neutral",300)};
2563
2580
 
@@ -2577,13 +2594,13 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2577
2594
  margin-left: -12px;
2578
2595
  }
2579
2596
  }
2580
- `,Fp=ie`
2597
+ `,Gp=ie`
2581
2598
  background-color: ${he("neutral",100)};
2582
- `,Zp=ie`
2599
+ `,Wp=ie`
2583
2600
  min-height: 100vh;
2584
2601
  width: 100%;
2585
2602
  overflow-y: scroll;
2586
- `;ie``;const qp=e=>ie`
2603
+ `;ie``;const Up=e=>ie`
2587
2604
  display: inline-block;
2588
2605
  width: 100%;
2589
2606
  padding: 12px 16px;
@@ -2612,7 +2629,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2612
2629
  outline-width: 2px;
2613
2630
  background-color: ${he("neutral",200)};
2614
2631
  }
2615
- `,Gp=ie`
2632
+ `,Xp=ie`
2616
2633
  width: 100%;
2617
2634
  padding: 12px 16px;
2618
2635
  display: flex;
@@ -2636,7 +2653,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2636
2653
  outline-width: 2px;
2637
2654
  background-color: ${he("neutral",200)};
2638
2655
  }
2639
- `,Wp=e=>ie`
2656
+ `,Yp=e=>ie`
2640
2657
  position: absolute;
2641
2658
  top: 0px;
2642
2659
  right: 0;
@@ -2648,7 +2665,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2648
2665
  align-items: flex-start;
2649
2666
  justify-content: flex-start;
2650
2667
  transition: width 0.5s ease-in-out;
2651
- `,Up=ie`
2668
+ `,Kp=ie`
2652
2669
  height: 48px;
2653
2670
  width: 100%;
2654
2671
  display: flex;
@@ -2659,7 +2676,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2659
2676
  position: relative;
2660
2677
  top: 0;
2661
2678
  left: 0;
2662
- `,Xp=ie`
2679
+ `,Jp=ie`
2663
2680
  position: absolute;
2664
2681
  bottom: 0;
2665
2682
  left: 0;
@@ -2674,13 +2691,13 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2674
2691
  button {
2675
2692
  width: calc(48% - 24px);
2676
2693
  }
2677
- `,Yp=({navigationSection:e,utilitySection:t,actionsSection:n,linkRouter:r,isOpen:i,setIsOpen:o,pathname:a})=>{const[l,s]=G(void 0),[c,d]=G(-1),u=Y(null),p=Y([]),h=r;return A(B,{children:[H("div",{css:Ap(i),children:i&&A("div",{css:Hp,children:[A("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[t?H("div",{css:Bp,children:t?.map((e=>H("div",{className:"utility-item",children:e})))}):null,e?H("div",{css:Fp,children:e.map(((e,t)=>e.link?H(h,{to:e.link,href:e.link,onClick:()=>{s(void 0),d(-1),o(!1)},css:qp(a===e.link),children:e.label},e.label):A("button",{css:Gp,type:"button",ref:e=>p.current[t]=e,onClick:()=>{e.items&&(s(e),d(t),setTimeout((()=>{u.current?.focus()}),100))},children:[e.label,e.items?H(Se,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),n?H("div",{css:Xp,children:n.map((e=>H(be,{label:e.label,onClick:()=>{e?.onClick?.(),s(void 0),d(-1),o(!1)}},e.label)))}):null]})}),H("div",{css:Wp(!!l?.items),children:l?.items?A(B,{children:[A("div",{css:Up,children:[A("button",{type:"button",onClick:()=>{s(void 0),d(-1),p.current[c]?.focus()},"aria-label":"Go back",css:zp,ref:u,children:[H(Se,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),l?.label]}),A("button",{type:"button",onClick:()=>{s(void 0),d(-1),o(!1)},"aria-label":"Close menu",css:zp,children:["Close",H(Oe,{height:"16px",width:"16px"})]})]}),H("div",{css:Zp,children:l?.items?.map((e=>H(h,{to:e.link,href:e.link,css:qp(),onClick:()=>{s(void 0),d(-1),o(!1)},children:e.label},e.label)))})]}):null})]})},Kp=1023,Jp=({logo:e,linkRouter:t,pathname:n,navigationSection:r,utilitySection:i,actionsSection:o,maxWidth:a,fixed:l,onNavbarHeightChange:s})=>{const c=Y(null),d=Y(null),u=Y(null),[p,h]=G(!1),[f,g]=G(-1),[v,m]=G("undefined"!=typeof window&&window?.innerWidth<=Kp),[x,b]=G(!1),y=t,C=J((()=>{if(d.current&&c.current&&u.current){const e=c.current.getBoundingClientRect(),t=d.current.getBoundingClientRect(),n=u.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=Kp||window.innerWidth<=f?(s?.(96),h(!0)):window.innerWidth>Kp&&window.innerWidth<=1440?e.right>=t.left?(s?.(96),h(!0),g(window.innerWidth)):window.innerWidth>f&&(s?.(48),h(!1),g(-1)):(s?.(48),h(!1),g(-1)),p&&(window.innerWidth<=Kp||n.right>=t.left?(m(!0),s?.(48)):(m(!1),s?.(96)))}}),[f,p]);return W((()=>(C(),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)})),[C]),A("nav",{css:Rp(p&&!v,l),children:[A("div",{css:Pp(p&&!v,a),children:[A("div",{css:(w=p&&!v,ie`
2694
+ `,Qp=({navigationSection:e,utilitySection:t,actionsSection:n,linkRouter:r,isOpen:i,setIsOpen:o,pathname:a})=>{const[l,s]=G(void 0),[c,d]=G(-1),u=Y(null),p=Y([]),h=r;return A(B,{children:[H("div",{css:Fp(i),children:i&&A("div",{css:Zp,children:[A("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[t?H("div",{css:qp,children:t?.map((e=>H("div",{className:"utility-item",children:e})))}):null,e?H("div",{css:Gp,children:e.map(((e,t)=>e.link?H(h,{to:e.link,href:e.link,onClick:()=>{s(void 0),d(-1),o(!1)},css:Up(a===e.link),children:e.label},e.label):A("button",{css:Xp,type:"button",ref:e=>p.current[t]=e,onClick:()=>{e.items&&(s(e),d(t),setTimeout((()=>{u.current?.focus()}),100))},children:[e.label,e.items?H(Se,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),n?H("div",{css:Jp,children:n.map((e=>H(be,{label:e.label,onClick:()=>{e?.onClick?.(),s(void 0),d(-1),o(!1)}},e.label)))}):null]})}),H("div",{css:Yp(!!l?.items),children:l?.items?A(B,{children:[A("div",{css:Kp,children:[A("button",{type:"button",onClick:()=>{s(void 0),d(-1),p.current[c]?.focus()},"aria-label":"Go back",css:Bp,ref:u,children:[H(Se,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),l?.label]}),A("button",{type:"button",onClick:()=>{s(void 0),d(-1),o(!1)},"aria-label":"Close menu",css:Bp,children:["Close",H(Oe,{height:"16px",width:"16px"})]})]}),H("div",{css:Wp,children:l?.items?.map((e=>H(h,{to:e.link,href:e.link,css:Up(),onClick:()=>{s(void 0),d(-1),o(!1)},children:e.label},e.label)))})]}):null})]})},eh=1023,th=({logo:e,linkRouter:t,pathname:n,navigationSection:r,utilitySection:i,actionsSection:o,maxWidth:a,fixed:l,onNavbarHeightChange:s})=>{const c=Y(null),d=Y(null),u=Y(null),[p,h]=G(!1),[f,g]=G(-1),[v,m]=G("undefined"!=typeof window&&window?.innerWidth<=eh),[x,b]=G(!1),y=t,C=J((()=>{if(d.current&&c.current&&u.current){const e=c.current.getBoundingClientRect(),t=d.current.getBoundingClientRect(),n=u.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=eh||window.innerWidth<=f?(s?.(96),h(!0)):window.innerWidth>eh&&window.innerWidth<=1440?e.right>=t.left?(s?.(96),h(!0),g(window.innerWidth)):window.innerWidth>f&&(s?.(48),h(!1),g(-1)):(s?.(48),h(!1),g(-1)),p&&(window.innerWidth<=eh||n.right>=t.left?(m(!0),s?.(48)):(m(!1),s?.(96)))}}),[f,p]);return W((()=>(C(),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)})),[C]),A("nav",{css:Dp(p&&!v,l),children:[A("div",{css:Np(p&&!v,a),children:[A("div",{css:(w=p&&!v,ie`
2678
2695
  display: flex;
2679
2696
  align-items: center;
2680
2697
  justify-content: flex-start;
2681
2698
  gap: 12px;
2682
2699
  color: ${he("neutral",w?100:900)};
2683
- `),ref:c,children:[e?H("div",{ref:u,css:Dp,children:e}):null,H("div",{css:Mp(p),children:r?.map((e=>e.link?H(y,{to:e.link,href:e.link,css:Np(n===e.link),children:e.label},e.label):H(vt,{label:e.label,items:e.items||[]},e.label)))})]}),H("div",{css:jp,ref:d,children:v?A("button",{type:"button",onClick:()=>b(!x),"aria-label":"Open menu",css:zp,children:[x?"Close":"Menu",H(x?Oe:Ke,{height:"16px",width:"16px"})]}):A(B,{children:[H("div",{css:jp,children:i?.map(((e,t)=>H("div",{css:Vp(p),children:e},t)))}),o?H("div",{css:Ip(p),children:o.map((e=>H(be,{...e},e.label)))}):null]})})]}),p&&!v?H("div",{css:Tp,children:r?.map((e=>e.link?H(y,{to:e.link,href:e.link,css:Np(n===e.link),children:e.label},e.label):H(vt,{label:e.label,items:e.items||[]},e.label)))}):null,v?H(Yp,{navigationSection:r,utilitySection:i,actionsSection:o,linkRouter:t,isOpen:x,setIsOpen:b,pathname:n}):null]});var w},Qp=ie`
2700
+ `),ref:c,children:[e?H("div",{ref:u,css:jp,children:e}):null,H("div",{css:Vp(p),children:r?.map((e=>e.link?H(y,{to:e.link,href:e.link,css:Ip(n===e.link),children:e.label},e.label):H(vt,{label:e.label,items:e.items||[]},e.label)))})]}),H("div",{css:zp,ref:d,children:v?A("button",{type:"button",onClick:()=>b(!x),"aria-label":"Open menu",css:Bp,children:[x?"Close":"Menu",H(x?Oe:Ke,{height:"16px",width:"16px"})]}):A(B,{children:[H("div",{css:zp,children:i?.map(((e,t)=>H("div",{css:Ap(p),children:e},t)))}),o?H("div",{css:Hp(p),children:o.map((e=>H(be,{...e},e.label)))}):null]})})]}),p&&!v?H("div",{css:Mp,children:r?.map((e=>e.link?H(y,{to:e.link,href:e.link,css:Ip(n===e.link),children:e.label},e.label):H(vt,{label:e.label,items:e.items||[]},e.label)))}):null,v?H(Qp,{navigationSection:r,utilitySection:i,actionsSection:o,linkRouter:t,isOpen:x,setIsOpen:b,pathname:n}):null]});var w},nh=ie`
2684
2701
  width: 64px;
2685
2702
  height: 100%;
2686
2703
  z-index: 100;
@@ -2689,7 +2706,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2689
2706
  display: flex;
2690
2707
  flex-direction: column;
2691
2708
  justify-content: space-between;
2692
- `,eh=ie`
2709
+ `,rh=ie`
2693
2710
  width: 64px;
2694
2711
  height: 64px;
2695
2712
  background-color: ${he("neutral",200)};
@@ -2779,7 +2796,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2779
2796
  }
2780
2797
  }
2781
2798
  }
2782
- `,th=ie`
2799
+ `,ih=ie`
2783
2800
  display: flex;
2784
2801
  justify-content: center;
2785
2802
  align-items: center;
@@ -2792,7 +2809,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2792
2809
  fill: ${he("neutral",600)};
2793
2810
  }
2794
2811
  }
2795
- `,nh=ie`
2812
+ `,oh=ie`
2796
2813
  width: 64px;
2797
2814
  height: 64px;
2798
2815
  background-color: ${he("neutral",200)};
@@ -2830,7 +2847,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2830
2847
  text-align: center;
2831
2848
  color: ${he("neutral",600)};
2832
2849
  }
2833
- `,rh=ie`
2850
+ `,ah=ie`
2834
2851
  width: 320px;
2835
2852
  height: 100%;
2836
2853
  z-index: 100;
@@ -2838,14 +2855,14 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2838
2855
  background-color: ${he("neutral",100)};
2839
2856
  overflow-y: auto;
2840
2857
  overflow-x: hidden;
2841
- `,ih=({tabs:e=[],defaultValue:t,onTabClick:n,children:i,onOpenChange:o})=>{const[a,l]=G(!1),[s,c]=G(t||e?.[0]?.value);return A("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[A("div",{css:Qp,children:[H(M.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{var t;c(t=e),n&&n(t)},role:"tablist",children:H(M.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>H(M.Trigger,{css:eh,"aria-label":e["aria-label"]||e.label,...e,children:A(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"tab-label",children:[e.icon?H("div",{css:th,children:e.icon}):null,H("p",{children:e.label})]})},e.label)))})}),i?H(N.Root,{onOpenChange:({open:e})=>{l(e),o&&o(!e)},children:A(N.Trigger,{css:nh,children:[H("div",{css:th,children:H(a?Ce:ye,{})}),A("div",{className:"tab-label",children:[H("p",{children:a?"Show":"Hide"}),H("p",{children:"Sidebar"})]})]})}):null]}),i?H(N.Root,{defaultOpen:!0,open:!a,children:H(N.Content,{height:"100%",children:H("div",{css:rh,role:"tabpanel","aria-labelledby":s,children:i})})}):null]})},oh=e=>ie`
2858
+ `,lh=({tabs:e=[],defaultValue:t,onTabClick:n,children:i,onOpenChange:o})=>{const[a,l]=G(!1),[s,c]=G(t||e?.[0]?.value);return A("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[A("div",{css:nh,children:[H(M.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{var t;c(t=e),n&&n(t)},role:"tablist",children:H(M.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>H(M.Trigger,{css:rh,"aria-label":e["aria-label"]||e.label,...e,children:A(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"tab-label",children:[e.icon?H("div",{css:ih,children:e.icon}):null,H("p",{children:e.label})]})},e.label)))})}),i?H(N.Root,{onOpenChange:({open:e})=>{l(e),o&&o(!e)},children:A(N.Trigger,{css:oh,children:[H("div",{css:ih,children:H(a?Ce:ye,{})}),A("div",{className:"tab-label",children:[H("p",{children:a?"Show":"Hide"}),H("p",{children:"Sidebar"})]})]})}):null]}),i?H(N.Root,{defaultOpen:!0,open:!a,children:H(N.Content,{height:"100%",children:H("div",{css:ah,role:"tabpanel","aria-labelledby":s,children:i})})}):null]})},sh=e=>ie`
2842
2859
  width: 100%;
2843
2860
  display: flex;
2844
2861
  align-items: center;
2845
2862
  height: 40px;
2846
2863
 
2847
2864
  ${"view"===e&&`\n border: 1px solid ${he("neutral",400)};\n background-color: ${he("neutral",200)};\n border-radius: 4px;\n padding: 4px;\n `}
2848
- `,ah=ie`
2865
+ `,ch=ie`
2849
2866
  width: 99%;
2850
2867
  height: 40px;
2851
2868
  padding: 8px 16px;
@@ -2861,7 +2878,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2861
2878
  &:focus-visible {
2862
2879
  box-shadow: none;
2863
2880
  }
2864
- `,lh=ie`
2881
+ `,dh=ie`
2865
2882
  background-color: ${he("neutral",200)};
2866
2883
  color: ${he("neutral",700)};
2867
2884
 
@@ -2918,11 +2935,11 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2918
2935
  opacity: 1;
2919
2936
  }
2920
2937
  }
2921
- `,sh=ie`
2938
+ `,uh=ie`
2922
2939
  width: 4px;
2923
2940
  height: 24px;
2924
2941
  background-color: ${he("neutral",400)};
2925
- `,ch=ie`
2942
+ `,ph=ie`
2926
2943
  height: 32px;
2927
2944
  border-radius: 2px;
2928
2945
  background-color: ${he("neutral",200)};
@@ -2995,16 +3012,16 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2995
3012
  opacity: 1;
2996
3013
  }
2997
3014
  }
2998
- `,dh=(e,t)=>e.findIndex((e=>e.value===t)),uh=e=>1===e?"none":2===e?"left":"right",ph=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:i})=>{const[o,a]=G(dh(n,t)||0),l="view"===e;return H("div",{css:oh(e),children:H(M.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a(dh(n,t=e)),void(i&&i(t));var t},children:H(M.List,{alignItems:"center",border:"none",children:n.map(((e,t)=>A(re,{children:[l&&1===t&&"left"===uh(o)?H("div",{css:sh}):null,H(M.Trigger,{css:[ah,l?ch:lh],"aria-label":e["aria-label"]||e.label,...e,children:A(r,{display:"flex",alignItems:"center",gap:"5px",children:[e.icon,e.label]})},e.label),l&&1===t&&"right"===uh(o)?H("div",{css:sh}):null]},e.label)))})})})},hh=ie`
3015
+ `,hh=(e,t)=>e.findIndex((e=>e.value===t)),fh=e=>1===e?"none":2===e?"left":"right",gh=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:i})=>{const[o,a]=G(hh(n,t)||0),l="view"===e;return H("div",{css:sh(e),children:H(M.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a(hh(n,t=e)),void(i&&i(t));var t},children:H(M.List,{alignItems:"center",border:"none",children:n.map(((e,t)=>A(re,{children:[l&&1===t&&"left"===fh(o)?H("div",{css:uh}):null,H(M.Trigger,{css:[ch,l?ph:dh],"aria-label":e["aria-label"]||e.label,...e,children:A(r,{display:"flex",alignItems:"center",gap:"5px",children:[e.icon,e.label]})},e.label),l&&1===t&&"right"===fh(o)?H("div",{css:uh}):null]},e.label)))})})})},vh=ie`
2999
3016
  display: flex;
3000
3017
  justify-content: flex-start;
3001
3018
  align-items: center;
3002
3019
  gap: 8px;
3003
- `,fh=e=>ie`
3020
+ `,mh=e=>ie`
3004
3021
  width: ${e||"16px"};
3005
3022
  position: relative;
3006
3023
  display: flex;
3007
- `,gh=ie`
3024
+ `,xh=ie`
3008
3025
  height: 4px;
3009
3026
  width: 4px;
3010
3027
  background-color: ${he("error",500)};
@@ -3012,7 +3029,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3012
3029
  position: absolute;
3013
3030
  top: 0px;
3014
3031
  right: 0px;
3015
- `,vh=ie`
3032
+ `,bh=ie`
3016
3033
  height: 10px;
3017
3034
  background-color: ${he("error",500)};
3018
3035
  padding: 0 3px 1px 3px;
@@ -3023,11 +3040,11 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3023
3040
  position: absolute;
3024
3041
  top: -2px;
3025
3042
  left: 9px;
3026
- `,mh=ie`
3043
+ `,yh=ie`
3027
3044
  font-size: 9px;
3028
3045
  font-weight: 700;
3029
3046
  color: ${he("error",100)};
3030
- `,xh=ie`
3047
+ `,Ch=ie`
3031
3048
  height: 16px;
3032
3049
  min-width: 16px;
3033
3050
  background-color: ${he("error",500)};
@@ -3036,11 +3053,11 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3036
3053
  justify-content: center;
3037
3054
  align-items: center;
3038
3055
  padding: 0px 4px 1px 4px;
3039
- `,bh=ie`
3056
+ `,wh=ie`
3040
3057
  font-size: 16px;
3041
3058
  font-weight: 700;
3042
3059
  color: ${he("error",100)};
3043
- `,yh=({hasNotification:e,notificationCount:t,label:n})=>{const[r,i]=G(!1);W((()=>{const e=()=>{window.innerWidth<1024?i(!0):i(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const o=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let a="16px";return t&&t>99?a="28px":t&&t>9&&(a="22px"),A("div",r?{css:hh,role:"status","aria-live":"polite",children:[A("div",{css:fh(),children:[H(Ne,{color:"currentColor",height:"16px",width:"16px"}),!e||t||n?null:H("div",{css:gh,"aria-hidden":!0})]}),n?H("p",{children:n}):null,o.length>0?H("div",{css:xh,children:H("p",{css:bh,"aria-label":`${t} unread message`,children:o})}):null]}:{css:hh,role:"status","aria-live":"polite",children:[n?H("p",{children:n}):null,A("div",{css:fh(a),children:[o.length>0?H("div",{css:vh,children:H("p",{css:mh,"aria-label":`${t} unread message`,children:o})}):null,e&&!t?H("div",{css:gh,"aria-hidden":!0}):null,H(Ne,{color:"currentColor",height:"16px",width:"16px"})]})]})},Ch=(e,t)=>ie`
3060
+ `,$h=({hasNotification:e,notificationCount:t,label:n})=>{const[r,i]=G(!1);W((()=>{const e=()=>{window.innerWidth<1024?i(!0):i(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const o=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let a="16px";return t&&t>99?a="28px":t&&t>9&&(a="22px"),A("div",r?{css:vh,role:"status","aria-live":"polite",children:[A("div",{css:mh(),children:[H(Ne,{color:"currentColor",height:"16px",width:"16px"}),!e||t||n?null:H("div",{css:xh,"aria-hidden":!0})]}),n?H("p",{children:n}):null,o.length>0?H("div",{css:Ch,children:H("p",{css:wh,"aria-label":`${t} unread message`,children:o})}):null]}:{css:vh,role:"status","aria-live":"polite",children:[n?H("p",{children:n}):null,A("div",{css:mh(a),children:[o.length>0?H("div",{css:bh,children:H("p",{css:yh,"aria-label":`${t} unread message`,children:o})}):null,e&&!t?H("div",{css:xh,"aria-hidden":!0}):null,H(Ne,{color:"currentColor",height:"16px",width:"16px"})]})]})},kh=(e,t)=>ie`
3044
3061
  width: 100%;
3045
3062
  min-width: ${"small"===e?"234px":"320px"};
3046
3063
  border-radius: 4px;
@@ -3055,7 +3072,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3055
3072
  button {
3056
3073
  margin-left: ${t?0:"24px"};
3057
3074
  }
3058
- `,wh=ie`
3075
+ `,Sh=ie`
3059
3076
  display: flex;
3060
3077
  align-items: flex-start;
3061
3078
  gap: 8px;
@@ -3063,28 +3080,28 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3063
3080
  svg {
3064
3081
  margin-top: 6px;
3065
3082
  }
3066
- `,$h=e=>ie`
3083
+ `,Eh=e=>ie`
3067
3084
  color: ${he("neutral",800)};
3068
3085
  font-size: ${"small"===e?"14px":"18px"};
3069
3086
  line-height: ${"small"===e?"20px":"28px"};
3070
3087
  font-weight: 400;
3071
3088
  text-align: left;
3072
- `,kh=e=>ie`
3089
+ `,Oh=e=>ie`
3073
3090
  color: ${he("neutral",700)};
3074
3091
  font-size: ${"small"===e?"12px":"16px"};
3075
3092
  line-height: ${"small"===e?"16px":"24px"};
3076
3093
  font-weight: 400;
3077
3094
  margin-left: 24px;
3078
3095
  text-align: left;
3079
- `,Sh=ie`
3096
+ `,_h=ie`
3080
3097
  background-color: ${he("neutral",100)};
3081
3098
  border: 1px solid ${he("neutral",300)};
3082
3099
  color: ${he("neutral",700)};
3083
- `,Eh=ie`
3100
+ `,Lh=ie`
3084
3101
  background-color: ${he("neutral",200)};
3085
3102
  border: 1px solid ${he("neutral",300)};
3086
3103
  color: ${he("neutral",700)};
3087
- `,Oh=ie`
3104
+ `,Rh=ie`
3088
3105
  background-color: ${he("success",100)};
3089
3106
  border: 1px solid ${he("success",300)};
3090
3107
  color: ${he("success",500)};
@@ -3092,7 +3109,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3092
3109
  p {
3093
3110
  color: ${he("success",900)};
3094
3111
  }
3095
- `,_h=ie`
3112
+ `,Th=ie`
3096
3113
  background-color: ${he("warning",100)};
3097
3114
  border: 1px solid ${he("warning",300)};
3098
3115
  color: ${he("warning",500)};
@@ -3100,7 +3117,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3100
3117
  p {
3101
3118
  color: ${he("warning",900)};
3102
3119
  }
3103
- `,Lh=ie`
3120
+ `,Ph=ie`
3104
3121
  background-color: ${he("error",100)};
3105
3122
  border: 1px solid ${he("error",300)};
3106
3123
  color: ${he("error",500)};
@@ -3108,32 +3125,32 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3108
3125
  p {
3109
3126
  color: ${he("error",900)};
3110
3127
  }
3111
- `,Rh=({label:e,caption:t,variant:n,size:r="large",icon:i=H(ke,{height:"16px",width:"16px"}),onActionClick:o,actionLabel:a,isButtonRight:l})=>{let s=Sh;return"info-grey"===n?s=Eh:"success"===n?s=Oh:"warning"===n?s=_h:"error"===n&&(s=Lh),A("div",{css:[Ch(r,l),s],"aria-roledescription":"Note",children:[A("div",{children:[A("div",{css:wh,children:[i,H("p",{css:$h(r),children:e})]}),H("p",{css:kh(r),children:t})]}),a?H(be,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:o}):null]})},Th=ie`
3128
+ `,Dh=({label:e,caption:t,variant:n,size:r="large",icon:i=H(ke,{height:"16px",width:"16px"}),onActionClick:o,actionLabel:a,isButtonRight:l})=>{let s=_h;return"info-grey"===n?s=Lh:"success"===n?s=Rh:"warning"===n?s=Th:"error"===n&&(s=Ph),A("div",{css:[kh(r,l),s],"aria-roledescription":"Note",children:[A("div",{children:[A("div",{css:Sh,children:[i,H("p",{css:Eh(r),children:e})]}),H("p",{css:Oh(r),children:t})]}),a?H(be,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:o}):null]})},Mh=ie`
3112
3129
  height: 8px;
3113
3130
  width: 100%;
3114
3131
  background-color: ${he("neutral",300)};
3115
3132
  display: flex;
3116
3133
  align-items: center;
3117
3134
  justify-content: flex-start;
3118
- `,Ph=e=>ie`
3135
+ `,Nh=e=>ie`
3119
3136
  height: 100%;
3120
3137
  width: ${e}%;
3121
3138
  background-color: ${he("primary",500)};
3122
3139
  transition: width 0.5s ease-in-out;
3123
- `,Dh=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),H("div",{css:Th,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:H("div",{css:Ph(t)})})},Mh=ie`
3140
+ `,jh=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),H("div",{css:Mh,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:H("div",{css:Nh(t)})})},Vh=ie`
3124
3141
  width: 100%;
3125
3142
  display: flex;
3126
3143
  align-items: center;
3127
3144
  justify-content: space-between;
3128
3145
  position: relative;
3129
- `,Nh=ie`
3146
+ `,Ih=ie`
3130
3147
  height: 60px;
3131
3148
  width: 80px;
3132
3149
  display: flex;
3133
3150
  flex-direction: column;
3134
3151
  align-items: center;
3135
3152
  justify-content: space-between;
3136
- `,jh=(e,t)=>ie`
3153
+ `,zh=(e,t)=>ie`
3137
3154
  height: 32px;
3138
3155
  width: 32px;
3139
3156
  display: flex;
@@ -3169,12 +3186,12 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3169
3186
  }
3170
3187
 
3171
3188
  ${t?`\n background-color: ${he("neutral",300)};\n \n &:hover {\n background-color: ${he("neutral",300)};\n box-shadow: none;\n }\n `:""}
3172
- `,Vh=e=>ie`
3189
+ `,Ah=e=>ie`
3173
3190
  color: ${he("neutral",e?800:600)};
3174
3191
  font-size: 14px;
3175
3192
  line-height: 20px;
3176
3193
  font-weight: 400;
3177
- `,Ih=ie`
3194
+ `,Hh=ie`
3178
3195
  height: 1px;
3179
3196
  width: 100%;
3180
3197
  padding: 0 30px;
@@ -3182,11 +3199,11 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3182
3199
  top: 16px;
3183
3200
  left: 0;
3184
3201
  z-index: -1;
3185
- `,zh=ie`
3202
+ `,Bh=ie`
3186
3203
  height: 1px;
3187
3204
  width: 100%;
3188
3205
  background-color: ${he("neutral",400)};
3189
- `,Ah=({steps:e,currentStep:t})=>A("div",{css:Mh,children:[e.map(((e,n)=>A("div",{css:Nh,children:[H("button",{css:jh(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":`Current Step ${n}${e.label?` ${e.label}`:""}`,"data-active":t>=n+1,children:t>n+1?H(we,{height:"16px",width:"16px"}):n+1}),e.label?H("p",{css:Vh(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),H("div",{css:Ih,children:H("div",{css:zh})})]}),Hh=ie`
3206
+ `,Fh=({steps:e,currentStep:t})=>A("div",{css:Vh,children:[e.map(((e,n)=>A("div",{css:Ih,children:[H("button",{css:zh(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":`Current Step ${n}${e.label?` ${e.label}`:""}`,"data-active":t>=n+1,children:t>n+1?H(we,{height:"16px",width:"16px"}):n+1}),e.label?H("p",{css:Ah(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),H("div",{css:Hh,children:H("div",{css:Bh})})]}),Zh=ie`
3190
3207
  justify-content: space-between;
3191
3208
  align-items: center;
3192
3209
  gap: 8px;
@@ -3229,18 +3246,18 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3229
3246
  color: ${he("error",900)};
3230
3247
  }
3231
3248
  }
3232
- `,Bh=ie`
3249
+ `,qh=ie`
3233
3250
  font-size: 18px;
3234
3251
  line-height: 28px;
3235
3252
  font-weight: 400;
3236
3253
  color: ${he("neutral",800)};
3237
- `,Fh=ie`
3254
+ `,Gh=ie`
3238
3255
  font-size: 16px;
3239
3256
  line-height: 24px;
3240
3257
  font-weight: 400;
3241
3258
  color: ${he("neutral",700)};
3242
- `,Zh=ie`
3259
+ `,Wh=ie`
3243
3260
  padding: 6px;
3244
- `,qh=ie`
3261
+ `,Uh=ie`
3245
3262
  padding: 6px;
3246
- `,Gh={pauseOnPageIdle:!0,offsets:"24px"},Wh={"top-start":j({placement:"top-start",...Gh}),"top-end":j({placement:"top-end",...Gh}),"bottom-start":j({placement:"bottom-start",...Gh}),"bottom-end":j({placement:"bottom-end",...Gh})},Uh=e=>{Wh[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})},Xh=()=>Object.keys(Wh).map((e=>H(s,{children:H(V,{toaster:Wh[e],insetInline:{mdDown:"4"},children:t=>A(I.Root,{css:Hh,width:{md:"sm"},children:[A(z,{flexDirection:"row",className:"icon-container",children:["info"===t.type?t.meta?.icon?t.meta.icon:H(ke,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===t.type?H(i,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===t.type?t.meta?.icon?t.meta.icon:H(Te,{color:"var(--chakra-colors-success-500)"}):null,"warning"===t.type?t.meta?.icon?t.meta.icon:H(Pe,{color:"var(--chakra-colors-warning-500)"}):null,"error"===t.type?t.meta?.icon?t.meta.icon:H(De,{color:"var(--chakra-colors-error-500)"}):null,A(z,{gap:"1",flex:"1",maxWidth:"100%",children:[H(I.Title,{css:Bh,"aria-label":`${t.title}`,children:t.title}),t.description?H(I.Title,{css:Fh,"aria-label":`${t.description}`,children:t.description}):null]})]}),t.action||t.meta?.closable?A(z,{flexDirection:"row",children:[t.action?H(be,{css:Zh,label:t.action.label,size:"small",variant:"info"===t.type?"primary":"secondary",onClick:()=>{t?.action?.onClick&&t.action.onClick(),Wh[e].dismiss()}}):null,t.meta?.closable?H(be,{css:qh,label:t.meta.closableLabel,"aria-label":t.meta?.closableLabel||"Dismiss",leftIcon:H(Oe,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>Wh[e].dismiss()}):null]}):null]})})},e)));export{yh as Badge,Rr as BaseMap,kp as Breadcrumb,be as Button,kt as Checkbox,ln as CheckboxList,Tt as CheckboxOptionCard,nt as CloseButton,Lp as Footer,tt as IconButton,Pr as IconMarker,Dr as IconMarkers,Rh as InlineMessage,Wn as InputWithUnits,_i as ItemCount,Zr as LayerGroup,qr as LayerGroupContainer,Fr as LayerItem,Yr as LayerParameters,si as LegendItem,Vi as List,lt as MapControl,st as MapControls,vt as Menu,na as Modal,wt as MultiActionButton,Jp as Navbar,ih as NavigationRail,It as OptionCard,Bi as Pagination,ca as Panel,tr as Password,Dh as ProgressBar,mi as QualitativeAttribute,Ht as Radio,Bt as RadioGroup,cr as RadioList,Je as SSOButtons,ki as ScaleBar,Gn as Select,yp as Sheet,Kt as Slider,hr as SliderInput,Ah as StepProgressIndicator,Qt as Switch,ph as TabBar,Yi as Table,Ji as TableCell,Ki as TableRow,Fn as Tag,yn as TextInput,Cr as Textarea,Xh as Toast,pe as designSystemStyles,he as getThemedColor,Uh as showToast};
3263
+ `,Xh={pauseOnPageIdle:!0,offsets:"24px"},Yh={"top-start":j({placement:"top-start",...Xh}),"top-end":j({placement:"top-end",...Xh}),"bottom-start":j({placement:"bottom-start",...Xh}),"bottom-end":j({placement:"bottom-end",...Xh})},Kh=e=>{Yh[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})},Jh=()=>Object.keys(Yh).map((e=>H(s,{children:H(V,{toaster:Yh[e],insetInline:{mdDown:"4"},children:t=>A(I.Root,{css:Zh,width:{md:"sm"},children:[A(z,{flexDirection:"row",className:"icon-container",children:["info"===t.type?t.meta?.icon?t.meta.icon:H(ke,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===t.type?H(i,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===t.type?t.meta?.icon?t.meta.icon:H(Te,{color:"var(--chakra-colors-success-500)"}):null,"warning"===t.type?t.meta?.icon?t.meta.icon:H(Pe,{color:"var(--chakra-colors-warning-500)"}):null,"error"===t.type?t.meta?.icon?t.meta.icon:H(De,{color:"var(--chakra-colors-error-500)"}):null,A(z,{gap:"1",flex:"1",maxWidth:"100%",children:[H(I.Title,{css:qh,"aria-label":`${t.title}`,children:t.title}),t.description?H(I.Title,{css:Gh,"aria-label":`${t.description}`,children:t.description}):null]})]}),t.action||t.meta?.closable?A(z,{flexDirection:"row",children:[t.action?H(be,{css:Wh,label:t.action.label,size:"small",variant:"info"===t.type?"primary":"secondary",onClick:()=>{t?.action?.onClick&&t.action.onClick(),Yh[e].dismiss()}}):null,t.meta?.closable?H(be,{css:Uh,label:t.meta.closableLabel,"aria-label":t.meta?.closableLabel||"Dismiss",leftIcon:H(Oe,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>Yh[e].dismiss()}):null]}):null]})})},e)));export{$h as Badge,Rr as BaseMap,Op as Breadcrumb,be as Button,kt as Checkbox,ln as CheckboxList,Tt as CheckboxOptionCard,nt as CloseButton,to as ExtendableCard,Pp as Footer,tt as IconButton,Pr as IconMarker,Dr as IconMarkers,Dh as InlineMessage,Wn as InputWithUnits,_i as ItemCount,Zr as LayerGroup,qr as LayerGroupContainer,Fr as LayerItem,Yr as LayerParameters,si as LegendItem,Vi as List,lt as MapControl,st as MapControls,vt as Menu,oa as Modal,wt as MultiActionButton,th as Navbar,lh as NavigationRail,It as OptionCard,Bi as Pagination,pa as Panel,tr as Password,jh as ProgressBar,mi as QualitativeAttribute,Ht as Radio,Bt as RadioGroup,cr as RadioList,Je as SSOButtons,ki as ScaleBar,Gn as Select,$p as Sheet,Kt as Slider,hr as SliderInput,Fh as StepProgressIndicator,Qt as Switch,gh as TabBar,Yi as Table,Ji as TableCell,Ki as TableRow,Fn as Tag,yn as TextInput,Cr as Textarea,Jh as Toast,pe as designSystemStyles,he as getThemedColor,Kh as showToast};