funcnodes-react-flow 0.4.3__py3-none-any.whl → 0.4.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,100 +0,0 @@
1
- var global=window;!function(){"use strict";function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n="undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}var i=r,a=o;function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}"function"==typeof global.setTimeout&&(i=setTimeout),"function"==typeof global.clearTimeout&&(a=clearTimeout);var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===o||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{return a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}h.prototype.run=function(){this.fun.apply(null,this.array)};var m,g,y={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(p)},emit:function(){}},v={exports:{}},b={};function w(){if(m)return b;m=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}function v(){}function w(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||f}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var x=w.prototype=new v;x.constructor=w,p(x,g.prototype),x.isPureReactComponent=!0;var k=Array.isArray,S={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function _(t,n,r,o,i,a){return r=a.ref,{$$typeof:e,type:t,key:n,ref:void 0!==r?r:null,props:a}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var O=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function P(){}function R(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,c,f=!1;if(null===n)f=!0;else switch(s){case"bigint":case"string":case"number":f=!0;break;case"object":switch(n.$$typeof){case e:case t:f=!0;break;case u:return R((f=n._init)(n._payload),r,o,i,a)}}if(f)return a=a(n),f=""===i?"."+N(n,0):i,k(a)?(o="",null!=f&&(o=f.replace(O,"$&/")+"/"),R(a,r,o,"",(function(e){return e}))):null!=a&&(C(a)&&(l=a,c=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+f,a=_(l.type,c,void 0,0,0,l.props)),r.push(a)),1;f=0;var p,h=""===i?".":i+":";if(k(n))for(var m=0;m<n.length;m++)f+=R(i=n[m],r,o,s=h+N(i,m),a);else if("function"==typeof(m=null===(p=n)||"object"!=typeof p?null:"function"==typeof(p=d&&p[d]||p["@@iterator"])?p:null))for(n=m.call(n),m=0;!(i=n.next()).done;)f+=R(i=i.value,r,o,s=h+N(i,m++),a);else if("object"===s){if("function"==typeof n.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(P,P):(e.status="pending",e.then((function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)}),(function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,i,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return f}function A(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("function"==typeof y.emit)return;console.error(e)};function D(){}return b.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},b.Component=g,b.Fragment=n,b.Profiler=o,b.PureComponent=w,b.StrictMode=r,b.Suspense=l,b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,b.act=function(){throw Error("act(...) is not supported in production builds of React.")},b.cache=function(e){return function(){return e.apply(null,arguments)}},b.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=p({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.ref&&void 0,void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return _(e.type,o,void 0,0,0,r)},b.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},b.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return _(e,i,void 0,0,0,o)},b.createRef=function(){return{current:null}},b.forwardRef=function(e){return{$$typeof:s,render:e}},b.isValidElement=C,b.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:M}},b.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},b.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),o=S.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(D,T)}catch(e){T(e)}finally{S.T=t}},b.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},b.use=function(e){return S.H.use(e)},b.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},b.useCallback=function(e,t){return S.H.useCallback(e,t)},b.useContext=function(e){return S.H.useContext(e)},b.useDebugValue=function(){},b.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},b.useEffect=function(e,t){return S.H.useEffect(e,t)},b.useId=function(){return S.H.useId()},b.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},b.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},b.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},b.useMemo=function(e,t){return S.H.useMemo(e,t)},b.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},b.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},b.useRef=function(e){return S.H.useRef(e)},b.useState=function(e){return S.H.useState(e)},b.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},b.useTransition=function(){return S.H.useTransition()},b.version="19.0.0",b}function x(){return g||(g=1,v.exports=w()),v.exports}var k=x(),S=t(k),E=e({__proto__:null,default:S},[k]);const _=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,o,i);return i},C=e=>e?_(e):_;var O,N,P,R,A={exports:{}},M={},T={exports:{}},D={};function I(){return N||(N=1,T.exports=function(){if(O)return D;O=1;var e=x(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),l=n({inst:{value:s,getSnapshot:t}}),c=l[0].inst,u=l[1];return o((function(){c.value=s,c.getSnapshot=t,a(c)&&u({inst:c})}),[e,s,t]),r((function(){return a(c)&&u({inst:c}),e((function(){a(c)&&u({inst:c})}))}),[e]),i(s),s};return D.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,D}()),T.exports}
2
- /**
3
- * @license React
4
- * use-sync-external-store-shim/with-selector.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var L=(R||(R=1,A.exports=function(){if(P)return M;P=1;var e=x(),t=I(),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,s=e.useDebugValue;return M.useSyncExternalStoreWithSelector=function(e,t,l,c,u){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a((function(){function e(e){if(!i){if(i=!0,r=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,n(r,e))return t;var a=c(e);return void 0!==u&&u(t,a)?(r=e,t):(r=e,o=a)}var r,o,i=!1,a=void 0===l?null:l;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]}),[t,l,c,u]);var p=r(e,d[0],d[1]);return i((function(){f.hasValue=!0,f.value=p}),[p]),s(p),p},M}()),A.exports),z=t(L);const{useDebugValue:F}=S,{useSyncExternalStoreWithSelector:j}=z;let B=!1;const $=e=>e;const V=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?C(e):e,n=(e,n)=>function(e,t=$,n){n&&!B&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),B=!0);const r=j(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return F(r),r}(t,e,n);return Object.assign(n,t),n},U=e=>e?V(e):V;function H(e){return"[object Object]"===Object.prototype.toString.call(e)}function W(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e.constructor!==t.constructor)return!1;if(e.constructor===Object||e.constructor===Array){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){if(!r.includes(o))return!1;if(!W(e[o],t[o]))return!1}}return!(e instanceof Date&&t instanceof Date)||e.getTime()===t.getTime()}const q=(e,t)=>{let n=!1;if(!H(e))throw new Error("Target must be a plain object not"+typeof e);if(!H(t))throw new Error("Source must be a plain object not"+typeof t);const r={...e};return Object.keys(t).forEach((o=>{const i=t[o],a=e[o];if(H(i)&&H(a)){const{new_obj:e,change:t}=q(a,i);t&&(n=!0,r[o]=e)}else W(a,i)||(n=!0,r[o]=i)})),{new_obj:r,change:n}},Y=(e,t)=>{let n=!1;if(!H(e))throw new Error("Target must be a plain object");if(!H(t))throw new Error("Source must be a plain object");const r={...e};return Object.keys(t).forEach((o=>{const i=t[o],a=e[o];if(void 0!==a||void 0!==i){if(void 0===a)return n=!0,void(r[o]=i);if(H(i)&&H(a)){const{new_obj:e,change:t}=Y(a,i);t&&(n=!0,r[o]=e)}}})),{new_obj:r,change:n}},X=(e,t)=>void 0===t?[e,!1]:[t,e!==t];function K(e,t){throw new Error("Unhandled case: "+e+" with: "+JSON.stringify(t))}const G=e=>{void 0===e.io&&(e.io={});let t=e.io,n=e.io_order;if(void 0===n)if(Array.isArray(t)){n=t.map((e=>e.id));const e={};for(const n of t)e[n.id]=n;t=e}else n=Object.keys(e.io);else if(Array.isArray(t)){const e={};for(const r of t)e[r.id]=r,n.includes(r.id)||n.push(r.id);t=e}else for(const e in t)n.includes(e)||n.push(e);return{...e,io_order:n,io:t}},Q=(e,t)=>{e.properties=e.properties||{},t.pos&&(e.properties["frontend:pos"]=t.pos),t.size&&(e.properties["frontend:size"]=t.size),void 0!==t.collapsed&&(e.properties["frontend:collapsed"]=!!t.collapsed)};class Z{constructor({data:e,mime:t}){this._data=e,this._mime=t}get data(){return this._data}get value(){return this._data}get mime(){return this._mime}toString(){return this._data instanceof ArrayBuffer?`DataStructure(${this._data.byteLength},${this._mime})`:this._data instanceof Blob?`DataStructure(${this._data.size},${this._mime})`:this._data instanceof String||this._data instanceof Array?`DataStructure(${this._data.length},${this._mime})`:this._data instanceof Object?`DataStructure(${Object.keys(this._data).length},${this._mime})`:`DataStructure(${this._mime})`}toJSON(){return this.toString()}dispose(){}}class J extends Z{get objectUrl(){if(this._objectUrl)return this._objectUrl;const e=this.data instanceof Blob?this.data:new Blob([this.data],{type:this.mime});return this._objectUrl=URL.createObjectURL(e),this._objectUrl}dispose(){this._objectUrl&&URL.revokeObjectURL(this._objectUrl),super.dispose()}get value(){return this.objectUrl}}const ee=e=>e.buffer?e.buffer:e,te={x:(e,t)=>null,c:(e,t)=>new DataView(ee(e)).getInt8(0),B:(e,t)=>new DataView(ee(e)).getUint8(0),"?":(e,t)=>1===new DataView(ee(e)).getInt8(0),h:(e,t)=>new DataView(ee(e)).getInt16(0,t),H:(e,t)=>new DataView(ee(e)).getUint16(0,t),i:(e,t)=>new DataView(ee(e)).getInt32(0,t),I:(e,t)=>new DataView(ee(e)).getUint32(0,t),l:(e,t)=>new DataView(ee(e)).getInt32(0,t),L:(e,t)=>new DataView(ee(e)).getUint32(0,t),q:(e,t)=>Number(new DataView(ee(e)).getBigInt64(0,t)),Q:(e,t)=>Number(new DataView(ee(e)).getBigUint64(0,t)),n:(e,t)=>Number(new DataView(ee(e)).getBigInt64(0,t)),N:(e,t)=>Number(new DataView(ee(e)).getBigUint64(0,t)),f:(e,t)=>new DataView(ee(e)).getFloat32(0,t),d:(e,t)=>new DataView(ee(e)).getFloat64(0,t),s:(e,t)=>(new TextDecoder).decode(ee(e)),p:(e,t)=>(new TextDecoder).decode(ee(e)),P:(e,t)=>Number(new DataView(ee(e)).getBigUint64(0,t))};class ne extends Z{constructor({data:e,mime:t}){super({data:e,mime:t}),this._cType=t.split("application/fn.struct.")[1],this._value=null,this.parse_value()}parse_value(){let e=!0,t=this._cType;return t.startsWith("<")&&(e=!0,t=t.slice(1)),t.startsWith(">")&&(e=!1,t=t.slice(1)),t.startsWith("!")&&(e=!1,t=t.slice(1)),t.startsWith("@")&&(e=!1,t=t.slice(1)),t.startsWith("=")&&(e=!1,t=t.slice(1)),this._value=te[t](this.data,e),this._value}get value(){return this._value}toString(){return null===this._value?"null":this._value.toString()}}class re extends Z{constructor({data:e,mime:t}){super({data:e,mime:t}),0===e.length?this._json=void 0:(this._json=JSON.parse((new TextDecoder).decode(ee(e))),"<NoValue>"===this._json&&(this._json=void 0))}get value(){return this._json}static fromObject(e){const t="<NoValue>"===e?new Uint8Array(0):(new TextEncoder).encode(JSON.stringify(e));return new re({data:t,mime:"application/json"})}toString(){return JSON.stringify(this._json)}}class oe extends Z{constructor({data:e,mime:t}){super({data:e,mime:t}),this._value=(new TextDecoder).decode(ee(e))}get value(){return this._value}toString(){return this._value}}const ie=({data:e,mime:t})=>e instanceof ArrayBuffer||e instanceof Uint8Array?t.startsWith("application/fn.struct.")?new ne({data:e,mime:t}):t.startsWith("application/json")?new re({data:e,mime:t}):"text"===t||t.startsWith("text/")?new oe({data:e,mime:t}):new J({data:e,mime:t}):new Z({data:e,mime:t}),ae={id:"dummy",node_id:"dummy",node_name:"dummy",properties:{"frontend:size":[200,100],"frontend:pos":[NaN,NaN],"frontend:collapsed":!1},io:{},name:"dummy",in_trigger:!1,progress:{ascii:!1,elapsed:0,initial:0,n:0,prefix:"idle",unit:"it",unit_divisor:1e3,unit_scale:!1}},se={id:"dummy",name:"dummy",node:"dummy",full_id:"dummy",type:"any",value:void 0,is_input:!1,connected:!1,does_trigger:!0,fullvalue:void 0,render_options:{set_default:!0,type:"any"},hidden:!1,emit_value_set:!0,required:!1},le=(e,t,n)=>{let r;if(void 0===e)throw new Error("nodestore is undefined");return r={_state:U(((e,r)=>((e,t)=>{if(!t.id)throw new Error("IO must have an id but is missing for "+JSON.stringify(t));void 0===t.name&&(t.name=t.id);const{new_obj:n}=Y(t,se);return"any"!==n.render_options.type&&void 0!==n.render_options.type||(n.render_options.type=n.type),((e,t)=>("<NoValue>"===t.value&&(t.value=void 0),"<NoValue>"===t.fullvalue&&(t.fullvalue=void 0),void 0===t.hidden&&(t.hidden=!1),{...t,try_get_full_value:()=>{void 0!==t.node&&void 0!==t.id&&e.worker?.get_io_full_value({nid:t.node,ioid:t.id})},set_hidden:n=>{void 0!==t.node&&void 0!==t.id&&e.worker?.update_io_options({nid:t.node,ioid:t.id,options:{hidden:n}})}}))(e,n)})(t,n))),use:()=>r._state(),getState:()=>r._state.getState(),setState:e=>{r._state.setState(e)},update:e=>{((e,t)=>{const n=e.getState(),r={},o={},i=Object.keys(t);for(const e of i)switch(e){case"name":{const[o,i]=X(n[e],t[e]);i&&(r[e]=o);break}case"id":{const[o,i]=X(n[e],t[e]);i&&(r[e]=o);break}case"connected":{const[o,i]=X(n[e],t[e]);i&&(r[e]=o);break}case"does_trigger":{const[o,i]=X(n[e],t[e]);i&&(r[e]=o);break}case"hidden":{const[o,i]=X(n[e],t[e]);i&&(r[e]=o);break}case"full_id":{const[o,i]=X(n[e],t[e]);i&&(r[e]=o);break}case"is_input":case"node":case"type":break;case"value":o.preview=t[e];break;case"fullvalue":o.full=t[e];break;case"render_options":{const[o,i]=((e,t)=>{if(void 0===t)return[e,!1];if(void 0===e)return[t,void 0!==t];const{new_obj:n,change:r}=q(e,t);return[n,r]})(n[e],t[e]);i&&(r[e]=o);break}case"value_options":{const[o,i]=((e,t)=>{if(void 0===t)return[e,!1];if(void 0===e)return[t,void 0!==t];const{new_obj:n,change:r}=q(e,t);return[n,r]})(n[e],t[e]);i&&(r[e]=o);break}case"valuepreview_type":case"emit_value_set":case"default":case"required":r[e]=t[e];break;default:try{K(e,t[e])}catch(e){console.error(e)}}Object.keys(o).length>0&&e.updateValueStore(o),Object.keys(r).length>0&&e.setState(r)})(r,e)},valuestore:U(((e,t)=>{let r=n.value;"<NoValue>"===r&&(r=void 0),r instanceof Z||void 0===r||(r=re.fromObject(r));let o=n.fullvalue;return"<NoValue>"===o&&(o=void 0),o instanceof Z||void 0===o||(o=re.fromObject(o)),{preview:r,full:o}})),updateValueStore:e=>{r.valuestore.setState((t=>(t.preview&&"function"==typeof t.preview.dispose&&t.preview.dispose(),t.full&&"function"==typeof t.full.dispose&&t.full.dispose(),void 0!==e.preview&&void 0===e.full&&(e.full=void 0,t.full=void 0),void 0===e.preview||e.preview instanceof Z||(e.preview=re.fromObject(e.preview)),void 0===e.full||e.full instanceof Z||(e.full=re.fromObject(e.full)),{...t,...e})))},node:e},r},ce=(e,t,n)=>{if(!n.id)throw new Error("Node must have an id");const{new_obj:r}=Y(n,ae),o=((e,t,n)=>{const r=n.io_order;if(void 0===r)throw new Error("Node must have io_order");const o={...n,in_trigger:U((()=>!1)),inputs:Object.keys(n.io).filter((e=>n.io[e].is_input)),outputs:Object.keys(n.io).filter((e=>!n.io[e].is_input)),io:Object.fromEntries(Object.entries(n.io).map((([n,r])=>[n,le(e,t,r)]))),io_order:r,progress:U((()=>n.progress))};return o})(e,t,r);return o},ue=(e,t)=>{const n={use:()=>r._state(),getState:()=>r._state.getState(),setState:e=>{r._state.setState(e)},update:e=>{((e,t)=>{const n=e.getState(),r={},o=G(t),i=Object.keys(o);for(const e of i)switch(e){case"id":{const[t,i]=X(n[e],o[e]);i&&(r[e]=t);break}case"node_id":{const[t,i]=X(n[e],o[e]);i&&(r[e]=t);break}case"node_name":{const[t,i]=X(n[e],o[e]);i&&(r[e]=t);break}case"name":{const[t,i]=X(n[e],o[e]);i&&(r[e]=t);break}case"in_trigger":n[e].setState(!!o[e]);break;case"error":o[e]!==n[e]&&(r[e]=o[e]);break;case"render_options":{const[t,i]=((e,t)=>{if(void 0===t)return[e,!1];if(void 0===e)return[t,void 0!==t];const{new_obj:n,change:r}=q(e,t);return[n,r]})(n[e],o[e]);i&&(r[e]=t);break}case"io_order":{const[t,i]=((e,t)=>void 0===t?[e,!1]:[t,!W(e,t)])(n[e],o[e]);i&&(r[e]=t);break}case"io":{const t=n[e],r=o[e];if(void 0===r)break;if(void 0===t)break;for(const e in r)void 0!==t[e]?t[e].update(r[e]):console.error("io key not found in oldvalue:",e,"allowed:",t,"for update:",o);break}case"progress":{const[t,r]=((e,t)=>{if(void 0===t)return[e,!1];if(void 0===e)return[t,void 0!==t];const{new_obj:n,change:r}=q(e,t);return[n,r]})(n[e].getState(),o[e]);r&&n[e].setState(t);break}case"description":r[e]=o[e];break;case"properties":{const[t,i]=((e,t)=>{if(void 0===t)return[e,!1];if(void 0===e)return[t,void 0!==t];const{new_obj:n,change:r}=q(e,t);return[n,r]})(n[e],o[e]);i&&(r[e]=t);break}case"status":{const[t,i]=((e,t)=>{if(void 0===t)return[e,!1];if(void 0===e)return[t,void 0!==t];const{new_obj:n,change:r}=q(e,t);return[n,r]})(n[e],o[e]);i&&(r[e]=t);break}default:try{K(e,o[e])}catch(e){console.error(e)}}Object.keys(r).length>0&&e.setState(r)})(r._state,e)}},r=n;return r._state=U(((n,o)=>ce(r,e,G(t)))),r};function de(e){if("string"==typeof e||"number"==typeof e)return""+e;let t="";if(Array.isArray(e))for(let n,r=0;r<e.length;r++)""!==(n=de(e[r]))&&(t+=(t&&" ")+n);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}const{useDebugValue:fe}=S,{useSyncExternalStoreWithSelector:pe}=z,he=e=>e;function me(e,t=he,n){const r=pe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return fe(r),r}const ge=(e,t)=>{const n=C(e),r=(e,r=t)=>me(n,e,r);return Object.assign(r,n),r};function ye(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}var ve={value:()=>{}};function be(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new we(r)}function we(e){this._=e}function xe(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function ke(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=ve,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}we.prototype=be.prototype={constructor:we,on:function(e,t){var n,r=this._,o=function(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}(e+"",r),i=-1,a=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++i<a;)if(n=(e=o[i]).type)r[n]=ke(r[n],e.name,t);else if(null==t)for(n in r)r[n]=ke(r[n],e.name,null);return this}for(;++i<a;)if((n=(e=o[i]).type)&&(n=xe(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new we(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,n=(r=this._[e]).length;i<n;++i)r[i].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};var Se="http://www.w3.org/1999/xhtml",Ee={svg:"http://www.w3.org/2000/svg",xhtml:Se,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _e(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ee.hasOwnProperty(t)?{space:Ee[t],local:e}:e}function Ce(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Se&&t.documentElement.namespaceURI===Se?t.createElement(e):t.createElementNS(n,e)}}function Oe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ne(e){var t=_e(e);return(t.local?Oe:Ce)(t)}function Pe(){}function Re(e){return null==e?Pe:function(){return this.querySelector(e)}}function Ae(){return[]}function Me(e){return null==e?Ae:function(){return this.querySelectorAll(e)}}function Te(e){return function(){return function(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}(e.apply(this,arguments))}}function De(e){return function(){return this.matches(e)}}function Ie(e){return function(t){return t.matches(e)}}var Le=Array.prototype.find;function ze(){return this.firstElementChild}var Fe=Array.prototype.filter;function je(){return Array.from(this.children)}function Be(e){return new Array(e.length)}function $e(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Ve(e,t,n,r,o,i){for(var a,s=0,l=t.length,c=i.length;s<c;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new $e(e,i[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function Ue(e,t,n,r,o,i,a){var s,l,c,u=new Map,d=t.length,f=i.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c=a.call(l,l.__data__,s,t)+"",u.has(c)?o[s]=l:u.set(c,l));for(s=0;s<f;++s)c=a.call(e,i[s],s,i)+"",(l=u.get(c))?(r[s]=l,l.__data__=i[s],u.delete(c)):n[s]=new $e(e,i[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(p[s])===l&&(o[s]=l)}function He(e){return e.__data__}function We(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function qe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ye(e){return function(){this.removeAttribute(e)}}function Xe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ke(e,t){return function(){this.setAttribute(e,t)}}function Ge(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Qe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Ze(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Je(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function et(e){return function(){this.style.removeProperty(e)}}function tt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function nt(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function rt(e,t){return e.style.getPropertyValue(t)||Je(e).getComputedStyle(e,null).getPropertyValue(t)}function ot(e){return function(){delete this[e]}}function it(e,t){return function(){this[e]=t}}function at(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function st(e){return e.trim().split(/^|\s+/)}function lt(e){return e.classList||new ct(e)}function ct(e){this._node=e,this._names=st(e.getAttribute("class")||"")}function ut(e,t){for(var n=lt(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function dt(e,t){for(var n=lt(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function ft(e){return function(){ut(this,e)}}function pt(e){return function(){dt(this,e)}}function ht(e,t){return function(){(t.apply(this,arguments)?ut:dt)(this,e)}}function mt(){this.textContent=""}function gt(e){return function(){this.textContent=e}}function yt(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function vt(){this.innerHTML=""}function bt(e){return function(){this.innerHTML=e}}function wt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function xt(){this.nextSibling&&this.parentNode.appendChild(this)}function kt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function St(){return null}function Et(){var e=this.parentNode;e&&e.removeChild(this)}function _t(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ct(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ot(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function Nt(e,t,n){return function(){var r,o=this.__on,i=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(o)for(var a=0,s=o.length;a<s;++a)if((r=o[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),void(r.value=t);this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},o?o.push(r):this.__on=[r]}}function Pt(e,t,n){var r=Je(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Rt(e,t){return function(){return Pt(this,e,t)}}function At(e,t){return function(){return Pt(this,e,t.apply(this,arguments))}}$e.prototype={constructor:$e,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},ct.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Mt=[null];function Tt(e,t){this._groups=e,this._parents=t}function Dt(){return new Tt([[document.documentElement]],Mt)}function It(e){return"string"==typeof e?new Tt([[document.querySelector(e)]],[document.documentElement]):new Tt([[e]],Mt)}function Lt(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}Tt.prototype=Dt.prototype={constructor:Tt,select:function(e){"function"!=typeof e&&(e=Re(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a,s=t[o],l=s.length,c=r[o]=new Array(l),u=0;u<l;++u)(i=s[u])&&(a=e.call(i,i.__data__,u,s))&&("__data__"in i&&(a.__data__=i.__data__),c[u]=a);return new Tt(r,this._parents)},selectAll:function(e){e="function"==typeof e?Te(e):Me(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var a,s=t[i],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),o.push(a));return new Tt(r,o)},selectChild:function(e){return this.select(null==e?ze:function(e){return function(){return Le.call(this.children,e)}}("function"==typeof e?e:Ie(e)))},selectChildren:function(e){return this.selectAll(null==e?je:function(e){return function(){return Fe.call(this.children,e)}}("function"==typeof e?e:Ie(e)))},filter:function(e){"function"!=typeof e&&(e=De(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],s=a.length,l=r[o]=[],c=0;c<s;++c)(i=a[c])&&e.call(i,i.__data__,c,a)&&l.push(i);return new Tt(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,He);var n=t?Ue:Ve,r=this._parents,o=this._groups;"function"!=typeof e&&(e=function(e){return function(){return e}}(e));for(var i=o.length,a=new Array(i),s=new Array(i),l=new Array(i),c=0;c<i;++c){var u=r[c],d=o[c],f=d.length,p=We(e.call(u,u&&u.__data__,c,r)),h=p.length,m=s[c]=new Array(h),g=a[c]=new Array(h);n(u,d,m,g,l[c]=new Array(f),p,t);for(var y,v,b=0,w=0;b<h;++b)if(y=m[b]){for(b>=w&&(w=b+1);!(v=g[w])&&++w<h;);y._next=v||null}}return(a=new Tt(a,r))._enter=s,a._exit=l,a},enter:function(){return new Tt(this._enter||this._groups.map(Be),this._parents)},exit:function(){return new Tt(this._exit||this._groups.map(Be),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,i=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,a=Math.min(o,i),s=new Array(o),l=0;l<a;++l)for(var c,u=n[l],d=r[l],f=u.length,p=s[l]=new Array(f),h=0;h<f;++h)(c=u[h]||d[h])&&(p[h]=c);for(;l<o;++l)s[l]=n[l];return new Tt(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=qe);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a,s=n[i],l=s.length,c=o[i]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new Tt(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,i=t[n],a=0,s=i.length;a<s;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this},attr:function(e,t){var n=_e(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Xe:Ye:"function"==typeof t?n.local?Ze:Qe:n.local?Ge:Ke)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?et:"function"==typeof t?nt:tt)(e,t,null==n?"":n)):rt(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?ot:"function"==typeof t?at:it)(e,t)):this.node()[e]},classed:function(e,t){var n=st(e+"");if(arguments.length<2){for(var r=lt(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?ht:t?ft:pt)(n,t))},text:function(e){return arguments.length?this.each(null==e?mt:("function"==typeof e?yt:gt)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?vt:("function"==typeof e?wt:bt)(e)):this.node().innerHTML},raise:function(){return this.each(xt)},lower:function(){return this.each(kt)},append:function(e){var t="function"==typeof e?e:Ne(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Ne(e),r=null==t?St:"function"==typeof t?t:Re(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Et)},clone:function(e){return this.select(e?Ct:_t)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,i=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?Nt:Ot,r=0;r<a;++r)this.each(s(i[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((o=i[r]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?At:Rt)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,o=e[t],i=0,a=o.length;i<a;++i)(r=o[i])&&(yield r)}};const zt={passive:!1},Ft={capture:!0,passive:!1};function jt(e){e.stopImmediatePropagation()}function Bt(e){e.preventDefault(),e.stopImmediatePropagation()}function $t(e){var t=e.document.documentElement,n=It(e).on("dragstart.drag",Bt,Ft);"onselectstart"in t?n.on("selectstart.drag",Bt,Ft):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Vt(e,t){var n=e.document.documentElement,r=It(e).on("dragstart.drag",null);t&&(r.on("click.drag",Bt,Ft),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Ut=e=>()=>e;function Ht(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:i,x:a,y:s,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}function Wt(e){return!e.ctrlKey&&!e.button}function qt(){return this.parentNode}function Yt(e,t){return null==t?{x:e.x,y:e.y}:t}function Xt(){return navigator.maxTouchPoints||"ontouchstart"in this}function Kt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Gt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Qt(){}Ht.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var Zt=.7,Jt=1/Zt,en="\\s*([+-]?\\d+)\\s*",tn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rn=/^#([0-9a-f]{3,8})$/,on=new RegExp(`^rgb\\(${en},${en},${en}\\)$`),an=new RegExp(`^rgb\\(${nn},${nn},${nn}\\)$`),sn=new RegExp(`^rgba\\(${en},${en},${en},${tn}\\)$`),ln=new RegExp(`^rgba\\(${nn},${nn},${nn},${tn}\\)$`),cn=new RegExp(`^hsl\\(${tn},${nn},${nn}\\)$`),un=new RegExp(`^hsla\\(${tn},${nn},${nn},${tn}\\)$`),dn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function fn(){return this.rgb().formatHex()}function pn(){return this.rgb().formatRgb()}function hn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?mn(t):3===n?new vn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=on.exec(e))?new vn(t[1],t[2],t[3],1):(t=an.exec(e))?new vn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sn.exec(e))?gn(t[1],t[2],t[3],t[4]):(t=ln.exec(e))?gn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=cn.exec(e))?En(t[1],t[2]/100,t[3]/100,1):(t=un.exec(e))?En(t[1],t[2]/100,t[3]/100,t[4]):dn.hasOwnProperty(e)?mn(dn[e]):"transparent"===e?new vn(NaN,NaN,NaN,0):null}function mn(e){return new vn(e>>16&255,e>>8&255,255&e,1)}function gn(e,t,n,r){return r<=0&&(e=t=n=NaN),new vn(e,t,n,r)}function yn(e,t,n,r){return 1===arguments.length?function(e){return e instanceof Qt||(e=hn(e)),e?new vn((e=e.rgb()).r,e.g,e.b,e.opacity):new vn}(e):new vn(e,t,n,null==r?1:r)}function vn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function bn(){return`#${Sn(this.r)}${Sn(this.g)}${Sn(this.b)}`}function wn(){const e=xn(this.opacity);return`${1===e?"rgb(":"rgba("}${kn(this.r)}, ${kn(this.g)}, ${kn(this.b)}${1===e?")":`, ${e})`}`}function xn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function kn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Sn(e){return((e=kn(e))<16?"0":"")+e.toString(16)}function En(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cn(e,t,n,r)}function _n(e){if(e instanceof Cn)return new Cn(e.h,e.s,e.l,e.opacity);if(e instanceof Qt||(e=hn(e)),!e)return new Cn;if(e instanceof Cn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Cn(a,s,l,e.opacity)}function Cn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function On(e){return(e=(e||0)%360)<0?e+360:e}function Nn(e){return Math.max(0,Math.min(1,e||0))}function Pn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Kt(Qt,hn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fn,formatHex:fn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _n(this).formatHsl()},formatRgb:pn,toString:pn}),Kt(vn,yn,Gt(Qt,{brighter(e){return e=null==e?Jt:Math.pow(Jt,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Zt:Math.pow(Zt,e),new vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vn(kn(this.r),kn(this.g),kn(this.b),xn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bn,formatHex:bn,formatHex8:function(){return`#${Sn(this.r)}${Sn(this.g)}${Sn(this.b)}${Sn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:wn,toString:wn})),Kt(Cn,(function(e,t,n,r){return 1===arguments.length?_n(e):new Cn(e,t,n,null==r?1:r)}),Gt(Qt,{brighter(e){return e=null==e?Jt:Math.pow(Jt,e),new Cn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Zt:Math.pow(Zt,e),new Cn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new vn(Pn(e>=240?e-240:e+120,o,r),Pn(e,o,r),Pn(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Cn(On(this.h),Nn(this.s),Nn(this.l),xn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=xn(this.opacity);return`${1===e?"hsl(":"hsla("}${On(this.h)}, ${100*Nn(this.s)}%, ${100*Nn(this.l)}%${1===e?")":`, ${e})`}`}}));var Rn=e=>()=>e;function An(e){return 1==(e=+e)?Mn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Rn(isNaN(t)?n:t)}}function Mn(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Rn(isNaN(e)?t:e)}var Tn=function e(t){var n=An(t);function r(e,t){var r=n((e=yn(e)).r,(t=yn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Mn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Dn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var In=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ln=new RegExp(In.source,"g");function zn(e,t){var n,r,o,i=In.lastIndex=Ln.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=In.exec(e))&&(r=Ln.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Dn(n,r)})),i=Ln.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}var Fn,jn=180/Math.PI,Bn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $n(e,t,n,r,o,i){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*jn,skewX:Math.atan(l)*jn,scaleX:a,scaleY:s}}function Vn(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(i,a){var s=[],l=[];return i=e(i),a=e(a),function(e,r,o,i,a,s){if(e!==o||r!==i){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:Dn(e,o)},{i:l-2,x:Dn(r,i)})}else(o||i)&&a.push("translate("+o+t+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,s,l),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Dn(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,l),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Dn(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,l),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:Dn(e,n)},{i:s-2,x:Dn(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,l),i=a=null,function(e){for(var t,n=-1,r=l.length;++n<r;)s[(t=l[n]).i]=t.x(e);return s.join("")}}}var Un=Vn((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Bn:$n(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Hn=Vn((function(e){return null==e?Bn:(Fn||(Fn=document.createElementNS("http://www.w3.org/2000/svg","g")),Fn.setAttribute("transform",e),(e=Fn.transform.baseVal.consolidate())?$n((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Bn)}),", ",")",")");function Wn(e){return((e=Math.exp(e))+1/e)/2}var qn,Yn,Xn=function e(t,n,r){function o(e,o){var i,a,s=e[0],l=e[1],c=e[2],u=o[0],d=o[1],f=o[2],p=u-s,h=d-l,m=p*p+h*h;if(m<1e-12)a=Math.log(f/c)/t,i=function(e){return[s+e*p,l+e*h,c*Math.exp(t*e*a)]};else{var g=Math.sqrt(m),y=(f*f-c*c+r*m)/(2*c*n*g),v=(f*f-c*c-r*m)/(2*f*n*g),b=Math.log(Math.sqrt(y*y+1)-y),w=Math.log(Math.sqrt(v*v+1)-v);a=(w-b)/t,i=function(e){var r=e*a,o=Wn(b),i=c/(n*g)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+i*p,l+i*h,c*o/Wn(t*r+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),Kn=0,Gn=0,Qn=0,Zn=0,Jn=0,er=0,tr="object"==typeof performance&&performance.now?performance:Date,nr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function rr(){return Jn||(nr(or),Jn=tr.now()+er)}function or(){Jn=0}function ir(){this._call=this._time=this._next=null}function ar(e,t,n){var r=new ir;return r.restart(e,t,n),r}function sr(){Jn=(Zn=tr.now())+er,Kn=Gn=0;try{!function(){rr(),++Kn;for(var e,t=qn;t;)(e=Jn-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Kn}()}finally{Kn=0,function(){var e,t,n=qn,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:qn=t);Yn=e,cr(r)}(),Jn=0}}function lr(){var e=tr.now(),t=e-Zn;t>1e3&&(er-=t,Zn=e)}function cr(e){Kn||(Gn&&(Gn=clearTimeout(Gn)),e-Jn>24?(e<1/0&&(Gn=setTimeout(sr,e-tr.now()-er)),Qn&&(Qn=clearInterval(Qn))):(Qn||(Zn=tr.now(),Qn=setInterval(lr,1e3)),Kn=1,nr(sr)))}function ur(e,t,n){var r=new ir;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}ir.prototype=ar.prototype={constructor:ir,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?rr():+n)+(null==t?0:+t),this._next||Yn===this||(Yn?Yn._next=this:qn=this,Yn=this),this._call=e,this._time=n,cr()},stop:function(){this._call&&(this._call=null,this._time=1/0,cr())}};var dr=be("start","end","cancel","interrupt"),fr=[];function pr(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(i){var c,u,d,f;if(1!==n.state)return l();for(c in o)if((f=o[c]).name===n.name){if(3===f.state)return ur(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[c]):+c<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete o[c])}if(ur((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(i))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(f=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function s(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=5,1),i=-1,a=r.length;++i<a;)r[i].call(e,o);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=6,n.timer.stop(),delete o[t],o)return;delete e.__transition}o[t]=n,n.timer=ar(i,0,n.time)}(e,n,{name:t,index:r,group:o,on:dr,tween:fr,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function hr(e,t){var n=gr(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function mr(e,t){var n=gr(e,t);if(n.state>3)throw new Error("too late; already running");return n}function gr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function yr(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete i[o]):a=!1;a&&delete e.__transition}}function vr(e,t){var n,r;return function(){var o=mr(this,e),i=o.tween;if(i!==n)for(var a=0,s=(r=n=i).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}o.tween=r}}function br(e,t,n){var r,o;if("function"!=typeof n)throw new Error;return function(){var i=mr(this,e),a=i.tween;if(a!==r){o=(r=a).slice();for(var s={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=s;break}l===c&&o.push(s)}i.tween=o}}function wr(e,t,n){var r=e._id;return e.each((function(){var e=mr(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return gr(e,r).value[t]}}function xr(e,t){var n;return("number"==typeof t?Dn:t instanceof hn?Tn:(n=hn(t))?(t=n,Tn):zn)(e,t)}function kr(e){return function(){this.removeAttribute(e)}}function Sr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Er(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function _r(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function Cr(e,t,n){var r,o,i;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttribute(e))===(s=l+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,l));this.removeAttribute(e)}}function Or(e,t,n){var r,o,i;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,l));this.removeAttributeNS(e.space,e.local)}}function Nr(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function Pr(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function Rr(e,t){return function(){hr(this,e).delay=+t.apply(this,arguments)}}function Ar(e,t){return t=+t,function(){hr(this,e).delay=t}}function Mr(e,t){return function(){mr(this,e).duration=+t.apply(this,arguments)}}function Tr(e,t){return t=+t,function(){mr(this,e).duration=t}}var Dr=Dt.prototype.constructor;function Ir(e){return function(){this.style.removeProperty(e)}}var Lr=0;function zr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Fr(){return++Lr}var jr=Dt.prototype;zr.prototype={constructor:zr,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Re(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var s,l,c=r[a],u=c.length,d=i[a]=new Array(u),f=0;f<u;++f)(s=c[f])&&(l=e.call(s,s.__data__,f,c))&&("__data__"in s&&(l.__data__=s.__data__),d[f]=l,pr(d[f],t,n,f,d,gr(s,n)));return new zr(i,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Me(e));for(var r=this._groups,o=r.length,i=[],a=[],s=0;s<o;++s)for(var l,c=r[s],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var f,p=e.call(l,l.__data__,d,c),h=gr(l,n),m=0,g=p.length;m<g;++m)(f=p[m])&&pr(f,t,n,m,p,h);i.push(p),a.push(l)}return new zr(i,a,t,n)},selectChild:jr.selectChild,selectChildren:jr.selectChildren,filter:function(e){"function"!=typeof e&&(e=De(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],s=a.length,l=r[o]=[],c=0;c<s;++c)(i=a[c])&&e.call(i,i.__data__,c,a)&&l.push(i);return new zr(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),s=0;s<i;++s)for(var l,c=t[s],u=n[s],d=c.length,f=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(f[p]=l);for(;s<r;++s)a[s]=t[s];return new zr(a,this._parents,this._name,this._id)},selection:function(){return new Dr(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Fr(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a,s=r[i],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=gr(a,t);pr(a,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new zr(r,this._parents,e,n)},call:jr.call,nodes:jr.nodes,node:jr.node,size:jr.size,empty:jr.empty,each:jr.each,on:function(e,t){var n=this._id;return arguments.length<2?gr(this.node(),n).on.on(e):this.each(function(e,t,n){var r,o,i=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?hr:mr;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}(n,e,t))},attr:function(e,t){var n=_e(e),r="transform"===n?Hn:xr;return this.attrTween(e,"function"==typeof t?(n.local?Or:Cr)(n,r,wr(this,"attr."+e,t)):null==t?(n.local?Sr:kr)(n):(n.local?_r:Er)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=_e(e);return this.tween(n,(r.local?Nr:Pr)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Un:xr;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=rt(this,e),a=(this.style.removeProperty(e),rt(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,Ir(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=rt(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=rt(this,e)),a===l?null:a===r&&l===o?i:(o=l,i=t(r=a,s))}}(e,r,wr(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,s="end."+a;return function(){var l=mr(this,e),c=l.on,u=null==l.value[a]?i||(i=Ir(t)):void 0;c===n&&o===u||(r=(n=c).copy()).on(s,o=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,i=n+"";return function(){var a=rt(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,i,n)),r}return i._value=t,i}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(wr(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=gr(this.node(),n).tween,i=0,a=o.length;i<a;++i)if((r=o[i]).name===e)return r.value;return null}return this.each((null==t?vr:br)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Rr:Ar)(t,e)):gr(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Mr:Tr)(t,e)):gr(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){mr(this,e).ease=t}}(t,e)):gr(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;mr(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,o=n.size();return new Promise((function(i,a){var s={value:a},l={value:function(){0==--o&&i()}};n.each((function(){var n=mr(this,r),o=n.on;o!==e&&((t=(e=o).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t})),0===o&&i()}))},[Symbol.iterator]:jr[Symbol.iterator]};var Br={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function $r(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}Dt.prototype.interrupt=function(e){return this.each((function(){yr(this,e)}))},Dt.prototype.transition=function(e){var t,n;e instanceof zr?(t=e._id,e=e._name):(t=Fr(),(n=Br).time=rr(),e=null==e?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a,s=r[i],l=s.length,c=0;c<l;++c)(a=s[c])&&pr(a,e,t,c,s,n||$r(a,t));return new zr(r,this._parents,e,t)};var Vr=e=>()=>e;function Ur(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function Hr(e,t,n){this.k=e,this.x=t,this.y=n}Hr.prototype={constructor:Hr,scale:function(e){return 1===e?this:new Hr(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Hr(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Wr=new Hr(1,0,0);function qr(e){e.stopImmediatePropagation()}function Yr(e){e.preventDefault(),e.stopImmediatePropagation()}function Xr(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Kr(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function Gr(){return this.__zoom||Wr}function Qr(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Zr(){return navigator.maxTouchPoints||"ontouchstart"in this}function Jr(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function eo(){var e,t,n,r=Xr,o=Kr,i=Jr,a=Qr,s=Zr,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=Xn,f=be("start","zoom","end"),p=0,h=10;function m(e){e.property("__zoom",Gr).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",S).on("dblclick.zoom",E).filter(s).on("touchstart.zoom",_).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new Hr(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new Hr(e.k,r,o)}function v(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function b(e,t,n,r){e.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,i=arguments,a=w(e,i).event(r),s=o.apply(e,i),l=null==n?v(s):"function"==typeof n?n.apply(e,i):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),u=e.__zoom,f="function"==typeof t?t.apply(e,i):t,p=d(u.invert(l).concat(c/u.k),f.invert(l).concat(c/f.k));return function(e){if(1===e)e=f;else{var t=p(e),n=c/t[2];e=new Hr(n,l[0]-t[0]*n,l[1]-t[1]*n)}a.zoom(null,e)}}))}function w(e,t,n){return!n&&e.__zooming||new x(e,t)}function x(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function k(e,...t){if(r.apply(this,arguments)){var n=w(this,t).event(e),o=this.__zoom,s=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,a.apply(this,arguments)))),u=Lt(e);if(n.wheel)n.mouse[0][0]===u[0]&&n.mouse[0][1]===u[1]||(n.mouse[1]=o.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(o.k===s)return;n.mouse=[u,o.invert(u)],yr(this),n.start()}Yr(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),150),n.zoom("mouse",i(y(g(o,s),n.mouse[0],n.mouse[1]),n.extent,c))}}function S(e,...t){if(!n&&r.apply(this,arguments)){var o=e.currentTarget,a=w(this,t,!0).event(e),s=It(e.view).on("mousemove.zoom",(function(e){if(Yr(e),!a.moved){var t=e.clientX-u,n=e.clientY-d;a.moved=t*t+n*n>p}a.event(e).zoom("mouse",i(y(a.that.__zoom,a.mouse[0]=Lt(e,o),a.mouse[1]),a.extent,c))}),!0).on("mouseup.zoom",(function(e){s.on("mousemove.zoom mouseup.zoom",null),Vt(e.view,a.moved),Yr(e),a.event(e).end()}),!0),l=Lt(e,o),u=e.clientX,d=e.clientY;$t(e.view),qr(e),a.mouse=[l,this.__zoom.invert(l)],yr(this),a.start()}}function E(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,a=Lt(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(a),l=n.k*(e.shiftKey?.5:2),d=i(y(g(n,l),a,s),o.apply(this,t),c);Yr(e),u>0?It(this).transition().duration(u).call(b,d,a,e):It(this).call(m.transform,d,a,e)}}function _(n,...o){if(r.apply(this,arguments)){var i,a,s,l,c=n.touches,u=c.length,d=w(this,o,n.changedTouches.length===u).event(n);for(qr(n),a=0;a<u;++a)l=[l=Lt(s=c[a],this),this.__zoom.invert(l),s.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,i=!0,d.taps=1+!!e);e&&(e=clearTimeout(e)),i&&(d.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),500)),yr(this),d.start())}}function C(e,...t){if(this.__zooming){var n,r,o,a,s=w(this,t).event(e),l=e.changedTouches,u=l.length;for(Yr(e),n=0;n<u;++n)o=Lt(r=l[n],this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=o:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=o);if(r=s.that.__zoom,s.touch1){var d=s.touch0[0],f=s.touch0[1],p=s.touch1[0],h=s.touch1[1],m=(m=p[0]-d[0])*m+(m=p[1]-d[1])*m,v=(v=h[0]-f[0])*v+(v=h[1]-f[1])*v;r=g(r,Math.sqrt(m/v)),o=[(d[0]+p[0])/2,(d[1]+p[1])/2],a=[(f[0]+h[0])/2,(f[1]+h[1])/2]}else{if(!s.touch0)return;o=s.touch0[0],a=s.touch0[1]}s.zoom("touch",i(y(r,o,a),s.extent,c))}}function O(e,...r){if(this.__zooming){var o,i,a=w(this,r).event(e),s=e.changedTouches,l=s.length;for(qr(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),o=0;o<l;++o)i=s[o],a.touch0&&a.touch0[2]===i.identifier?delete a.touch0:a.touch1&&a.touch1[2]===i.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(i=Lt(i,this),Math.hypot(t[0]-i[0],t[1]-i[1])<h)){var c=It(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return m.transform=function(e,t,n,r){var o=e.selection?e.selection():e;o.property("__zoom",Gr),e!==o?b(e,t,n,r):o.interrupt().each((function(){w(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},m.scaleBy=function(e,t,n,r){m.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,r)},m.scaleTo=function(e,t,n,r){m.transform(e,(function(){var e=o.apply(this,arguments),r=this.__zoom,a=null==n?v(e):"function"==typeof n?n.apply(this,arguments):n,s=r.invert(a),l="function"==typeof t?t.apply(this,arguments):t;return i(y(g(r,l),a,s),e,c)}),n,r)},m.translateBy=function(e,t,n,r){m.transform(e,(function(){return i(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,r)},m.translateTo=function(e,t,n,r,a){m.transform(e,(function(){var e=o.apply(this,arguments),a=this.__zoom,s=null==r?v(e):"function"==typeof r?r.apply(this,arguments):r;return i(Wr.translate(s[0],s[1]).scale(a.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),r,a)},x.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=It(this.that).datum();f.call(e,this.that,new Ur(e,{sourceEvent:this.sourceEvent,target:m,transform:this.that.__zoom,dispatch:f}),t)}},m.wheelDelta=function(e){return arguments.length?(a="function"==typeof e?e:Vr(+e),m):a},m.filter=function(e){return arguments.length?(r="function"==typeof e?e:Vr(!!e),m):r},m.touchable=function(e){return arguments.length?(s="function"==typeof e?e:Vr(!!e),m):s},m.extent=function(e){return arguments.length?(o="function"==typeof e?e:Vr([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):o},m.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],m):[l[0],l[1]]},m.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(e){return arguments.length?(i=e,m):i},m.duration=function(e){return arguments.length?(u=+e,m):u},m.interpolate=function(e){return arguments.length?(d=e,m):d},m.on=function(){var e=f.on.apply(f,arguments);return e===f?m:e},m.clickDistance=function(e){return arguments.length?(p=(e=+e)*e,m):Math.sqrt(p)},m.tapDistance=function(e){return arguments.length?(h=+e,m):h},m}Hr.prototype;var to,no,ro={exports:{}},oo={};function io(){if(to)return oo;to=1;var e=x();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return oo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,oo.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},oo.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},oo.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},oo.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},oo.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:s}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},oo.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},oo.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},oo.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},oo.requestFormReset=function(e){r.d.r(e)},oo.unstable_batchedUpdates=function(e,t){return e(t)},oo.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},oo.useFormStatus=function(){return i.H.useHostTransitionStatus()},oo.version="19.0.0",oo}function ao(){if(no)return ro.exports;return no=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),ro.exports=io(),ro.exports}var so=ao(),lo=t(so);const co=k.createContext(null),uo=co.Provider,fo=e=>`Node type "${e}" not found. Using fallback type "default".`,po=()=>"The React Flow parent container needs a width and a height to render the graph.",ho=()=>"Only child nodes can use a parent extent.",mo=e=>`Marker type "${e}" doesn't exist.`,go=(e,t)=>`Couldn't create edge for ${e?"target":"source"} handle id: "${e?t.targetHandle:t.sourceHandle}", edge id: ${t.id}.`,yo=()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",vo=e=>`Edge type "${e}" not found. Using fallback type "default".`,bo=e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,wo=(()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001")();function xo(e,t){const n=k.useContext(co);if(null===n)throw new Error(wo);return me(n,e,t)}const ko=()=>{const e=k.useContext(co);if(null===e)throw new Error(wo);return k.useMemo((()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy})),[e])},So=e=>e.userSelectionActive?"none":"all";function Eo({position:e,children:t,className:n,style:r,...o}){const i=xo(So),a=`${e}`.split("-");return S.createElement("div",{className:de(["react-flow__panel",n,...a]),style:{...r,pointerEvents:i},...o},t)}function _o({proOptions:e,position:t="bottom-right"}){return e?.hideAttribution?null:S.createElement(Eo,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro"},S.createElement("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution"},"React Flow"))}var Co=k.memo((({x:e,y:t,label:n,labelStyle:r={},labelShowBg:o=!0,labelBgStyle:i={},labelBgPadding:a=[2,4],labelBgBorderRadius:s=2,children:l,className:c,...u})=>{const d=k.useRef(null),[f,p]=k.useState({x:0,y:0,width:0,height:0}),h=de(["react-flow__edge-textwrapper",c]);return k.useEffect((()=>{if(d.current){const e=d.current.getBBox();p({x:e.x,y:e.y,width:e.width,height:e.height})}}),[n]),void 0!==n&&n?S.createElement("g",{transform:`translate(${e-f.width/2} ${t-f.height/2})`,className:h,visibility:f.width?"visible":"hidden",...u},o&&S.createElement("rect",{width:f.width+2*a[0],x:-a[0],y:-a[1],height:f.height+2*a[1],className:"react-flow__edge-textbg",style:i,rx:s,ry:s}),S.createElement("text",{className:"react-flow__edge-text",y:f.height/2,dy:"0.3em",ref:d,style:r},n),l):null}));const Oo=e=>({width:e.offsetWidth,height:e.offsetHeight}),No=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Po=(e={x:0,y:0},t)=>({x:No(e.x,t[0][0],t[1][0]),y:No(e.y,t[0][1],t[1][1])}),Ro=(e,t,n)=>e<t?No(Math.abs(e-t),1,50)/50:e>n?-No(Math.abs(e-n),1,50)/50:0,Ao=(e,t)=>[20*Ro(e.x,35,t.width-35),20*Ro(e.y,35,t.height-35)],Mo=e=>e.getRootNode?.()||window?.document,To=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Do=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),Io=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),Lo=e=>({...e.positionAbsolute||{x:0,y:0},width:e.width||0,height:e.height||0}),zo=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},Fo=e=>!isNaN(e)&&isFinite(e),jo=Symbol.for("internals"),Bo=["Enter"," ","Escape"];function $o(e){const t=(e=>"nativeEvent"in e)(e)?e.nativeEvent:e,n=t.composedPath?.()?.[0]||e.target;return["INPUT","SELECT","TEXTAREA"].includes(n?.nodeName)||n?.hasAttribute("contenteditable")||!!n?.closest(".nokey")}const Vo=e=>"clientX"in e,Uo=(e,t)=>{const n=Vo(e),r=n?e.clientX:e.touches?.[0].clientX,o=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:o-(t?.top??0)}},Ho=()=>"undefined"!=typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0,Wo=({id:e,path:t,labelX:n,labelY:r,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,style:u,markerEnd:d,markerStart:f,interactionWidth:p=20})=>S.createElement(S.Fragment,null,S.createElement("path",{id:e,style:u,d:t,fill:"none",className:"react-flow__edge-path",markerEnd:d,markerStart:f}),p&&S.createElement("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:p,className:"react-flow__edge-interaction"}),o&&Fo(n)&&Fo(r)?S.createElement(Co,{x:n,y:r,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c}):null);function qo(e,t,n){return void 0===n?n:r=>{const o=t().edges.find((t=>t.id===e));o&&n(r,{...o})}}function Yo({sourceX:e,sourceY:t,targetX:n,targetY:r}){const o=Math.abs(n-e)/2,i=n<e?n+o:n-o,a=Math.abs(r-t)/2;return[i,r<t?r+a:r-a,o,a]}function Xo({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:a,targetControlY:s}){const l=.125*e+.375*o+.375*a+.125*n,c=.125*t+.375*i+.375*s+.125*r;return[l,c,Math.abs(l-e),Math.abs(c-t)]}var Ko,Go,Qo,Zo,Jo,ei;function ti({pos:e,x1:t,y1:n,x2:r,y2:o}){return e===ei.Left||e===ei.Right?[.5*(t+r),n]:[t,.5*(n+o)]}function ni({sourceX:e,sourceY:t,sourcePosition:n=ei.Bottom,targetX:r,targetY:o,targetPosition:i=ei.Top}){const[a,s]=ti({pos:n,x1:e,y1:t,x2:r,y2:o}),[l,c]=ti({pos:i,x1:r,y1:o,x2:e,y2:t}),[u,d,f,p]=Xo({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:a,sourceControlY:s,targetControlX:l,targetControlY:c});return[`M${e},${t} C${a},${s} ${l},${c} ${r},${o}`,u,d,f,p]}Wo.displayName="BaseEdge",function(e){e.Strict="strict",e.Loose="loose"}(Ko||(Ko={})),function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"}(Go||(Go={})),function(e){e.Partial="partial",e.Full="full"}(Qo||(Qo={})),function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"}(Zo||(Zo={})),function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"}(Jo||(Jo={})),function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"}(ei||(ei={}));const ri=k.memo((({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:o=ei.Bottom,targetPosition:i=ei.Top,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:h,interactionWidth:m})=>{const[g,y,v]=ni({sourceX:e,sourceY:t,sourcePosition:o,targetX:n,targetY:r,targetPosition:i});return S.createElement(Wo,{path:g,labelX:y,labelY:v,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:h,interactionWidth:m})}));ri.displayName="SimpleBezierEdge";const oi={[ei.Left]:{x:-1,y:0},[ei.Right]:{x:1,y:0},[ei.Top]:{x:0,y:-1},[ei.Bottom]:{x:0,y:1}},ii=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function ai({source:e,sourcePosition:t=ei.Bottom,target:n,targetPosition:r=ei.Top,center:o,offset:i}){const a=oi[t],s=oi[r],l={x:e.x+a.x*i,y:e.y+a.y*i},c={x:n.x+s.x*i,y:n.y+s.y*i},u=(({source:e,sourcePosition:t=ei.Bottom,target:n})=>t===ei.Left||t===ei.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1})({source:l,sourcePosition:t,target:c}),d=0!==u.x?"x":"y",f=u[d];let p,h,m=[];const g={x:0,y:0},y={x:0,y:0},[v,b,w,x]=Yo({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(a[d]*s[d]==-1){p=o.x??v,h=o.y??b;const e=[{x:p,y:l.y},{x:p,y:c.y}],t=[{x:l.x,y:h},{x:c.x,y:h}];m=a[d]===f?"x"===d?e:t:"x"===d?t:e}else{const o=[{x:l.x,y:c.y}],u=[{x:c.x,y:l.y}];if(m="x"===d?a.x===f?u:o:a.y===f?o:u,t===r){const t=Math.abs(e[d]-n[d]);if(t<=i){const r=Math.min(i-1,i-t);a[d]===f?g[d]=(l[d]>e[d]?-1:1)*r:y[d]=(c[d]>n[d]?-1:1)*r}}if(t!==r){const e="x"===d?"y":"x",t=a[d]===s[e],n=l[e]>c[e],r=l[e]<c[e];(1===a[d]&&(!t&&n||t&&r)||1!==a[d]&&(!t&&r||t&&n))&&(m="x"===d?o:u)}const v={x:l.x+g.x,y:l.y+g.y},b={x:c.x+y.x,y:c.y+y.y};Math.max(Math.abs(v.x-m[0].x),Math.abs(b.x-m[0].x))>=Math.max(Math.abs(v.y-m[0].y),Math.abs(b.y-m[0].y))?(p=(v.x+b.x)/2,h=m[0].y):(p=m[0].x,h=(v.y+b.y)/2)}return[[e,{x:l.x+g.x,y:l.y+g.y},...m,{x:c.x+y.x,y:c.y+y.y},n],p,h,w,x]}function si({sourceX:e,sourceY:t,sourcePosition:n=ei.Bottom,targetX:r,targetY:o,targetPosition:i=ei.Top,borderRadius:a=5,centerX:s,centerY:l,offset:c=20}){const[u,d,f,p,h]=ai({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:s,y:l},offset:c}),m=u.reduce(((e,t,n)=>{let r="";return r=n>0&&n<u.length-1?function(e,t,n,r){const o=Math.min(ii(e,t)/2,ii(t,n)/2,r),{x:i,y:a}=t;if(e.x===i&&i===n.x||e.y===a&&a===n.y)return`L${i} ${a}`;if(e.y===a)return`L ${i+o*(e.x<n.x?-1:1)},${a}Q ${i},${a} ${i},${a+o*(e.y<n.y?1:-1)}`;const s=e.x<n.x?1:-1;return`L ${i},${a+o*(e.y<n.y?-1:1)}Q ${i},${a} ${i+o*s},${a}`}(u[n-1],t,u[n+1],a):`${0===n?"M":"L"}${t.x} ${t.y}`,e+=r}),"");return[m,d,f,p,h]}const li=k.memo((({sourceX:e,sourceY:t,targetX:n,targetY:r,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,style:u,sourcePosition:d=ei.Bottom,targetPosition:f=ei.Top,markerEnd:p,markerStart:h,pathOptions:m,interactionWidth:g})=>{const[y,v,b]=si({sourceX:e,sourceY:t,sourcePosition:d,targetX:n,targetY:r,targetPosition:f,borderRadius:m?.borderRadius,offset:m?.offset});return S.createElement(Wo,{path:y,labelX:v,labelY:b,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,style:u,markerEnd:p,markerStart:h,interactionWidth:g})}));li.displayName="SmoothStepEdge";const ci=k.memo((e=>S.createElement(li,{...e,pathOptions:k.useMemo((()=>({borderRadius:0,offset:e.pathOptions?.offset})),[e.pathOptions?.offset])})));ci.displayName="StepEdge";const ui=k.memo((({sourceX:e,sourceY:t,targetX:n,targetY:r,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,style:u,markerEnd:d,markerStart:f,interactionWidth:p})=>{const[h,m,g]=function({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,a,s]=Yo({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,a,s]}({sourceX:e,sourceY:t,targetX:n,targetY:r});return S.createElement(Wo,{path:h,labelX:m,labelY:g,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,style:u,markerEnd:d,markerStart:f,interactionWidth:p})}));function di(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function fi({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case ei.Left:return[t-di(t-r,i),n];case ei.Right:return[t+di(r-t,i),n];case ei.Top:return[t,n-di(n-o,i)];case ei.Bottom:return[t,n+di(o-n,i)]}}function pi({sourceX:e,sourceY:t,sourcePosition:n=ei.Bottom,targetX:r,targetY:o,targetPosition:i=ei.Top,curvature:a=.25}){const[s,l]=fi({pos:n,x1:e,y1:t,x2:r,y2:o,c:a}),[c,u]=fi({pos:i,x1:r,y1:o,x2:e,y2:t,c:a}),[d,f,p,h]=Xo({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:u});return[`M${e},${t} C${s},${l} ${c},${u} ${r},${o}`,d,f,p,h]}ui.displayName="StraightEdge";const hi=k.memo((({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:o=ei.Bottom,targetPosition:i=ei.Top,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:h,pathOptions:m,interactionWidth:g})=>{const[y,v,b]=pi({sourceX:e,sourceY:t,sourcePosition:o,targetX:n,targetY:r,targetPosition:i,curvature:m?.curvature});return S.createElement(Wo,{path:y,labelX:v,labelY:b,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:h,interactionWidth:g})}));hi.displayName="BezierEdge";const mi=k.createContext(null),gi=mi.Provider;mi.Consumer;const yi=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`reactflow__edge-${e}${t||""}-${n}${r||""}`,vi=(e,t)=>{if(void 0===e)return"";if("string"==typeof e)return e;return`${t?`${t}__`:""}${Object.keys(e).sort().map((t=>`${t}=${e[t]}`)).join("&")}`},bi=({x:e,y:t},[n,r,o],i,[a,s])=>{const l={x:(e-n)/o,y:(t-r)/o};return i?{x:a*Math.round(l.x/a),y:s*Math.round(l.y/s)}:l},wi=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r}),xi=(e,t=[0,0])=>{if(!e)return{x:0,y:0,positionAbsolute:{x:0,y:0}};const n=(e.width??0)*t[0],r=(e.height??0)*t[1],o={x:e.position.x-n,y:e.position.y-r};return{...o,positionAbsolute:e.positionAbsolute?{x:e.positionAbsolute.x-n,y:e.positionAbsolute.y-r}:o}},ki=(e,t=[0,0])=>{if(0===e.length)return{x:0,y:0,width:0,height:0};const n=e.reduce(((e,n)=>{const{x:r,y:o}=xi(n,t).positionAbsolute;return To(e,Do({x:r,y:o,width:n.width||0,height:n.height||0}))}),{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Io(n)},Si=(e,t,[n,r,o]=[0,0,1],i=!1,a=!1,s=[0,0])=>{const l={x:(t.x-n)/o,y:(t.y-r)/o,width:t.width/o,height:t.height/o},c=[];return e.forEach((e=>{const{width:t,height:n,selectable:r=!0,hidden:o=!1}=e;if(a&&!r||o)return!1;const{positionAbsolute:u}=xi(e,s),d={x:u.x,y:u.y,width:t||0,height:n||0},f=zo(l,d);(void 0===t||void 0===n||null===t||null===n||i&&f>0||f>=(t||0)*(n||0)||e.dragging)&&c.push(e)})),c},Ei=(e,t)=>{const n=e.map((e=>e.id));return t.filter((e=>n.includes(e.source)||n.includes(e.target)))},_i=(e,t,n,r,o,i=.1)=>{const a=t/(e.width*(1+i)),s=n/(e.height*(1+i)),l=Math.min(a,s),c=No(l,r,o);return{x:t/2-(e.x+e.width/2)*c,y:n/2-(e.y+e.height/2)*c,zoom:c}},Ci=(e,t=0)=>e.transition().duration(t);function Oi(e,t,n,r){return(t[n]||[]).reduce(((t,o)=>(`${e.id}-${o.id}-${n}`!==r&&t.push({id:o.id||null,type:n,nodeId:e.id,x:(e.positionAbsolute?.x??0)+o.x+o.width/2,y:(e.positionAbsolute?.y??0)+o.y+o.height/2}),t)),[])}const Ni={source:null,target:null,sourceHandle:null,targetHandle:null},Pi=()=>({handleDomNode:null,isValid:!1,connection:Ni,endHandle:null});function Ri(e,t,n,r,o,i,a){const s="target"===o,l=a.querySelector(`.react-flow__handle[data-id="${e?.nodeId}-${e?.id}-${e?.type}"]`),c={...Pi(),handleDomNode:l};if(l){const e=Ai(void 0,l),o=l.getAttribute("data-nodeid"),a=l.getAttribute("data-handleid"),u=l.classList.contains("connectable"),d=l.classList.contains("connectableend"),f={source:s?o:n,sourceHandle:s?a:r,target:s?n:o,targetHandle:s?r:a};c.connection=f;u&&d&&(t===Ko.Strict?s&&"source"===e||!s&&"target"===e:o!==n||a!==r)&&(c.endHandle={nodeId:o,handleId:a,type:e},c.isValid=i(f))}return c}function Ai(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function Mi(e){e?.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function Ti(e,t){let n=null;return t?n="valid":e&&!t&&(n="invalid"),n}function Di({event:e,handleId:t,nodeId:n,onConnect:r,isTarget:o,getState:i,setState:a,isValidConnection:s,edgeUpdaterType:l,onReconnectEnd:c}){const u=Mo(e.target),{connectionMode:d,domNode:f,autoPanOnConnect:p,connectionRadius:h,onConnectStart:m,panBy:g,getNodes:y,cancelConnection:v}=i();let b,w=0;const{x:x,y:k}=Uo(e),S=u?.elementFromPoint(x,k),E=Ai(l,S),_=f?.getBoundingClientRect();if(!_||!E)return;let C,O=Uo(e,_),N=!1,P=null,R=!1,A=null;const M=function({nodes:e,nodeId:t,handleId:n,handleType:r}){return e.reduce(((e,o)=>{if(o[jo]){const{handleBounds:i}=o[jo];let a=[],s=[];i&&(a=Oi(o,i,"source",`${t}-${n}-${r}`),s=Oi(o,i,"target",`${t}-${n}-${r}`)),e.push(...a,...s)}return e}),[])}({nodes:y(),nodeId:n,handleId:t,handleType:E}),T=()=>{if(!p)return;const[e,t]=Ao(O,_);g({x:e,y:t}),w=requestAnimationFrame(T)};function D(e){const{transform:r}=i();O=Uo(e,_);const{handle:l,validHandleResult:c}=function(e,t,n,r,o,i){const{x:a,y:s}=Uo(e),l=t.elementsFromPoint(a,s).find((e=>e.classList.contains("react-flow__handle")));if(l){const e=l.getAttribute("data-nodeid");if(e){const t=Ai(void 0,l),r=l.getAttribute("data-handleid"),a=i({nodeId:e,id:r,type:t});if(a){const i=o.find((n=>n.nodeId===e&&n.type===t&&n.id===r));return{handle:{id:r,type:t,nodeId:e,x:i?.x||n.x,y:i?.y||n.y},validHandleResult:a}}}}let c=[],u=1/0;if(o.forEach((e=>{const t=Math.sqrt((e.x-n.x)**2+(e.y-n.y)**2);if(t<=r){const n=i(e);t<=u&&(t<u?c=[{handle:e,validHandleResult:n}]:t===u&&c.push({handle:e,validHandleResult:n}),u=t)}})),!c.length)return{handle:null,validHandleResult:Pi()};if(1===c.length)return c[0];const d=c.some((({validHandleResult:e})=>e.isValid)),f=c.some((({handle:e})=>"target"===e.type));return c.find((({handle:e,validHandleResult:t})=>f?"target"===e.type:!d||t.isValid))||c[0]}(e,u,bi(O,r,!1,[1,1]),h,M,(e=>Ri(e,d,n,t,o?"target":"source",s,u)));if(b=l,N||(T(),N=!0),A=c.handleDomNode,P=c.connection,R=c.isValid,a({connectionPosition:b&&R?wi({x:b.x,y:b.y},r):O,connectionStatus:Ti(!!b,R),connectionEndHandle:c.endHandle}),!b&&!R&&!A)return Mi(C);P.source!==P.target&&A&&(Mi(C),C=A,A.classList.add("connecting","react-flow__handle-connecting"),A.classList.toggle("valid",R),A.classList.toggle("react-flow__handle-valid",R))}function I(e){(b||A)&&P&&R&&r?.(P),i().onConnectEnd?.(e),l&&c?.(e),Mi(C),v(),cancelAnimationFrame(w),N=!1,R=!1,P=null,A=null,u.removeEventListener("mousemove",D),u.removeEventListener("mouseup",I),u.removeEventListener("touchmove",D),u.removeEventListener("touchend",I)}a({connectionPosition:O,connectionStatus:null,connectionNodeId:n,connectionHandleId:t,connectionHandleType:E,connectionStartHandle:{nodeId:n,handleId:t,type:E},connectionEndHandle:null}),m?.(e,{nodeId:n,handleId:t,handleType:E}),u.addEventListener("mousemove",D),u.addEventListener("mouseup",I),u.addEventListener("touchmove",D),u.addEventListener("touchend",I)}const Ii=()=>!0,Li=e=>({connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName}),zi=k.forwardRef((({type:e="source",position:t=ei.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:o=!0,isConnectableEnd:i=!0,id:a,onConnect:s,children:l,className:c,onMouseDown:u,onTouchStart:d,...f},p)=>{const h=a||null,m="target"===e,g=ko(),y=k.useContext(mi),{connectOnClick:v,noPanClassName:b}=xo(Li,ye),{connecting:w,clickConnecting:x}=xo(((e,t,n)=>r=>{const{connectionStartHandle:o,connectionEndHandle:i,connectionClickStartHandle:a}=r;return{connecting:o?.nodeId===e&&o?.handleId===t&&o?.type===n||i?.nodeId===e&&i?.handleId===t&&i?.type===n,clickConnecting:a?.nodeId===e&&a?.handleId===t&&a?.type===n}})(y,h,e),ye);y||g.getState().onError?.("010",yo());const E=e=>{const{defaultEdgeOptions:t,onConnect:n,hasDefaultEdges:r}=g.getState(),o={...t,...e};if(r){const{edges:e,setEdges:t}=g.getState();t(((e,t)=>{if(!e.source||!e.target)return t;let n;return n=(e=>"id"in e&&"source"in e&&"target"in e)(e)?{...e}:{...e,id:yi(e)},((e,t)=>t.some((t=>!(t.source!==e.source||t.target!==e.target||t.sourceHandle!==e.sourceHandle&&(t.sourceHandle||e.sourceHandle)||t.targetHandle!==e.targetHandle&&(t.targetHandle||e.targetHandle)))))(n,t)?t:t.concat(n)})(o,e))}n?.(o),s?.(o)},_=e=>{if(!y)return;const t=Vo(e);o&&(t&&0===e.button||!t)&&Di({event:e,handleId:h,nodeId:y,onConnect:E,isTarget:m,getState:g.getState,setState:g.setState,isValidConnection:n||g.getState().isValidConnection||Ii}),t?u?.(e):d?.(e)};return S.createElement("div",{"data-handleid":h,"data-nodeid":y,"data-handlepos":t,"data-id":`${y}-${h}-${e}`,className:de(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",b,c,{source:!m,target:m,connectable:r,connectablestart:o,connectableend:i,connecting:x,connectionindicator:r&&(o&&!w||i&&w)}]),onMouseDown:_,onTouchStart:_,onClick:v?t=>{const{onClickConnectStart:r,onClickConnectEnd:i,connectionClickStartHandle:a,connectionMode:s,isValidConnection:l}=g.getState();if(!y||!a&&!o)return;if(!a)return r?.(t,{nodeId:y,handleId:h,handleType:e}),void g.setState({connectionClickStartHandle:{nodeId:y,type:e,handleId:h}});const c=Mo(t.target),u=n||l||Ii,{connection:d,isValid:f}=Ri({nodeId:y,id:h,type:e},s,a.nodeId,a.handleId||null,a.type,u,c);f&&E(d),i?.(t),g.setState({connectionClickStartHandle:null})}:void 0,ref:p,...f},l)}));zi.displayName="Handle";var Fi=k.memo(zi);const ji=({data:e,isConnectable:t,targetPosition:n=ei.Top,sourcePosition:r=ei.Bottom})=>S.createElement(S.Fragment,null,S.createElement(Fi,{type:"target",position:n,isConnectable:t}),e?.label,S.createElement(Fi,{type:"source",position:r,isConnectable:t}));ji.displayName="DefaultNode";var Bi=k.memo(ji);const $i=({data:e,isConnectable:t,sourcePosition:n=ei.Bottom})=>S.createElement(S.Fragment,null,e?.label,S.createElement(Fi,{type:"source",position:n,isConnectable:t}));$i.displayName="InputNode";var Vi=k.memo($i);const Ui=({data:e,isConnectable:t,targetPosition:n=ei.Top})=>S.createElement(S.Fragment,null,S.createElement(Fi,{type:"target",position:n,isConnectable:t}),e?.label);Ui.displayName="OutputNode";var Hi=k.memo(Ui);const Wi=()=>null;Wi.displayName="GroupNode";const qi=e=>({selectedNodes:e.getNodes().filter((e=>e.selected)),selectedEdges:e.edges.filter((e=>e.selected)).map((e=>({...e})))}),Yi=e=>e.id;function Xi(e,t){return ye(e.selectedNodes.map(Yi),t.selectedNodes.map(Yi))&&ye(e.selectedEdges.map(Yi),t.selectedEdges.map(Yi))}const Ki=k.memo((({onSelectionChange:e})=>{const t=ko(),{selectedNodes:n,selectedEdges:r}=xo(qi,Xi);return k.useEffect((()=>{const o={nodes:n,edges:r};e?.(o),t.getState().onSelectionChange.forEach((e=>e(o)))}),[n,r,e]),null}));Ki.displayName="SelectionListener";const Gi=e=>!!e.onSelectionChange;function Qi({onSelectionChange:e}){const t=xo(Gi);return e||t?S.createElement(Ki,{onSelectionChange:e}):null}const Zi=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset});function Ji(e,t){k.useEffect((()=>{void 0!==e&&t(e)}),[e])}function ea(e,t,n){k.useEffect((()=>{void 0!==t&&n({[e]:t})}),[t])}const ta=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:o,onConnectStart:i,onConnectEnd:a,onClickConnectStart:s,onClickConnectEnd:l,nodesDraggable:c,nodesConnectable:u,nodesFocusable:d,edgesFocusable:f,edgesUpdatable:p,elevateNodesOnSelect:h,minZoom:m,maxZoom:g,nodeExtent:y,onNodesChange:v,onEdgesChange:b,elementsSelectable:w,connectionMode:x,snapGrid:S,snapToGrid:E,translateExtent:_,connectOnClick:C,defaultEdgeOptions:O,fitView:N,fitViewOptions:P,onNodesDelete:R,onEdgesDelete:A,onNodeDrag:M,onNodeDragStart:T,onNodeDragStop:D,onSelectionDrag:I,onSelectionDragStart:L,onSelectionDragStop:z,noPanClassName:F,nodeOrigin:j,rfId:B,autoPanOnConnect:$,autoPanOnNodeDrag:V,onError:U,connectionRadius:H,isValidConnection:W,nodeDragThreshold:q})=>{const{setNodes:Y,setEdges:X,setDefaultNodesAndEdges:K,setMinZoom:G,setMaxZoom:Q,setTranslateExtent:Z,setNodeExtent:J,reset:ee}=xo(Zi,ye),te=ko();return k.useEffect((()=>{const e=r?.map((e=>({...e,...O})));return K(n,e),()=>{ee()}}),[]),ea("defaultEdgeOptions",O,te.setState),ea("connectionMode",x,te.setState),ea("onConnect",o,te.setState),ea("onConnectStart",i,te.setState),ea("onConnectEnd",a,te.setState),ea("onClickConnectStart",s,te.setState),ea("onClickConnectEnd",l,te.setState),ea("nodesDraggable",c,te.setState),ea("nodesConnectable",u,te.setState),ea("nodesFocusable",d,te.setState),ea("edgesFocusable",f,te.setState),ea("edgesUpdatable",p,te.setState),ea("elementsSelectable",w,te.setState),ea("elevateNodesOnSelect",h,te.setState),ea("snapToGrid",E,te.setState),ea("snapGrid",S,te.setState),ea("onNodesChange",v,te.setState),ea("onEdgesChange",b,te.setState),ea("connectOnClick",C,te.setState),ea("fitViewOnInit",N,te.setState),ea("fitViewOnInitOptions",P,te.setState),ea("onNodesDelete",R,te.setState),ea("onEdgesDelete",A,te.setState),ea("onNodeDrag",M,te.setState),ea("onNodeDragStart",T,te.setState),ea("onNodeDragStop",D,te.setState),ea("onSelectionDrag",I,te.setState),ea("onSelectionDragStart",L,te.setState),ea("onSelectionDragStop",z,te.setState),ea("noPanClassName",F,te.setState),ea("nodeOrigin",j,te.setState),ea("rfId",B,te.setState),ea("autoPanOnConnect",$,te.setState),ea("autoPanOnNodeDrag",V,te.setState),ea("onError",U,te.setState),ea("connectionRadius",H,te.setState),ea("isValidConnection",W,te.setState),ea("nodeDragThreshold",q,te.setState),Ji(e,Y),Ji(t,X),Ji(m,G),Ji(g,Q),Ji(_,Z),Ji(y,J),null},na={display:"none"},ra={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},oa="react-flow__node-desc",ia="react-flow__edge-desc",aa=e=>e.ariaLiveMessage;function sa({rfId:e}){const t=xo(aa);return S.createElement("div",{id:`react-flow__aria-live-${e}`,"aria-live":"assertive","aria-atomic":"true",style:ra},t)}function la({rfId:e,disableKeyboardA11y:t}){return S.createElement(S.Fragment,null,S.createElement("div",{id:`${oa}-${e}`,style:na},"Press enter or space to select a node.",!t&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "),S.createElement("div",{id:`${ia}-${e}`,style:na},"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."),!t&&S.createElement(sa,{rfId:e}))}var ca=(e=null,t={actInsideInputWithModifier:!0})=>{const[n,r]=k.useState(!1),o=k.useRef(!1),i=k.useRef(new Set([])),[a,s]=k.useMemo((()=>{if(null!==e){const t=(Array.isArray(e)?e:[e]).filter((e=>"string"==typeof e)).map((e=>e.split("+"))),n=t.reduce(((e,t)=>e.concat(...t)),[]);return[t,n]}return[[],[]]}),[e]);return k.useEffect((()=>{const n="undefined"!=typeof document?document:null,l=t?.target||n;if(null!==e){const e=e=>{o.current=e.ctrlKey||e.metaKey||e.shiftKey;if((!o.current||o.current&&!t.actInsideInputWithModifier)&&$o(e))return!1;const n=da(e.code,s);i.current.add(e[n]),ua(a,i.current,!1)&&(e.preventDefault(),r(!0))},n=e=>{if((!o.current||o.current&&!t.actInsideInputWithModifier)&&$o(e))return!1;const n=da(e.code,s);ua(a,i.current,!0)?(r(!1),i.current.clear()):i.current.delete(e[n]),"Meta"===e.key&&i.current.clear(),o.current=!1},c=()=>{i.current.clear(),r(!1)};return l?.addEventListener("keydown",e),l?.addEventListener("keyup",n),window.addEventListener("blur",c),()=>{l?.removeEventListener("keydown",e),l?.removeEventListener("keyup",n),window.removeEventListener("blur",c)}}}),[e,r]),n};function ua(e,t,n){return e.filter((e=>n||e.length===t.size)).some((e=>e.every((e=>t.has(e)))))}function da(e,t){return t.includes(e)?"code":"key"}function fa(e,t,n,r){const o=e.parentNode||e.parentId;if(!o)return n;const i=t.get(o),a=xi(i,r);return fa(i,t,{x:(n.x??0)+a.x,y:(n.y??0)+a.y,z:(i[jo]?.z??0)>(n.z??0)?i[jo]?.z??0:n.z??0},r)}function pa(e,t,n){e.forEach((r=>{const o=r.parentNode||r.parentId;if(o&&!e.has(o))throw new Error(`Parent node ${o} not found`);if(o||n?.[r.id]){const{x:o,y:i,z:a}=fa(r,e,{...r.position,z:r[jo]?.z??0},t);r.positionAbsolute={x:o,y:i},r[jo].z=a,n?.[r.id]&&(r[jo].isParent=!0)}}))}function ha(e,t,n,r){const o=new Map,i={},a=r?1e3:0;return e.forEach((e=>{const n=(Fo(e.zIndex)?e.zIndex:0)+(e.selected?a:0),r=t.get(e.id),s={...e,positionAbsolute:{x:e.position.x,y:e.position.y}},l=e.parentNode||e.parentId;l&&(i[l]=!0);const c=r?.type&&r?.type!==e.type;Object.defineProperty(s,jo,{enumerable:!1,value:{handleBounds:c?void 0:r?.[jo]?.handleBounds,z:n}}),o.set(e.id,s)})),pa(o,n,i),o}function ma(e,t={}){const{getNodes:n,width:r,height:o,minZoom:i,maxZoom:a,d3Zoom:s,d3Selection:l,fitViewOnInitDone:c,fitViewOnInit:u,nodeOrigin:d}=e(),f=t.initial&&!c&&u;if(s&&l&&(f||!t.initial)){const e=n().filter((e=>{const n=t.includeHiddenNodes?e.width&&e.height:!e.hidden;return t.nodes?.length?n&&t.nodes.some((t=>t.id===e.id)):n})),c=e.every((e=>e.width&&e.height));if(e.length>0&&c){const n=ki(e,d),{x:c,y:u,zoom:f}=_i(n,r,o,t.minZoom??i,t.maxZoom??a,t.padding??.1),p=Wr.translate(c,u).scale(f);return"number"==typeof t.duration&&t.duration>0?s.transform(Ci(l,t.duration),p):s.transform(l,p),!0}}return!1}function ga(e,t){return e.forEach((e=>{const n=t.get(e.id);n&&t.set(n.id,{...n,[jo]:n[jo],selected:e.selected})})),new Map(t)}function ya(e,t){return t.map((t=>{const n=e.find((e=>e.id===t.id));return n&&(t.selected=n.selected),t}))}function va({changedNodes:e,changedEdges:t,get:n,set:r}){const{nodeInternals:o,edges:i,onNodesChange:a,onEdgesChange:s,hasDefaultNodes:l,hasDefaultEdges:c}=n();e?.length&&(l&&r({nodeInternals:ga(e,o)}),a?.(e)),t?.length&&(c&&r({edges:ya(t,i)}),s?.(t))}const ba=()=>{},wa={zoomIn:ba,zoomOut:ba,zoomTo:ba,getZoom:()=>1,setViewport:ba,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:ba,fitBounds:ba,project:e=>e,screenToFlowPosition:e=>e,flowToScreenPosition:e=>e,viewportInitialized:!1},xa=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection});function ka(){const e=(()=>{const e=ko(),{d3Zoom:t,d3Selection:n}=xo(xa,ye),r=k.useMemo((()=>n&&t?{zoomIn:e=>t.scaleBy(Ci(n,e?.duration),1.2),zoomOut:e=>t.scaleBy(Ci(n,e?.duration),1/1.2),zoomTo:(e,r)=>t.scaleTo(Ci(n,r?.duration),e),getZoom:()=>e.getState().transform[2],setViewport:(r,o)=>{const[i,a,s]=e.getState().transform,l=Wr.translate(r.x??i,r.y??a).scale(r.zoom??s);t.transform(Ci(n,o?.duration),l)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},fitView:t=>ma(e.getState,t),setCenter:(r,o,i)=>{const{width:a,height:s,maxZoom:l}=e.getState(),c=void 0!==i?.zoom?i.zoom:l,u=a/2-r*c,d=s/2-o*c,f=Wr.translate(u,d).scale(c);t.transform(Ci(n,i?.duration),f)},fitBounds:(r,o)=>{const{width:i,height:a,minZoom:s,maxZoom:l}=e.getState(),{x:c,y:u,zoom:d}=_i(r,i,a,s,l,o?.padding??.1),f=Wr.translate(c,u).scale(d);t.transform(Ci(n,o?.duration),f)},project:t=>{const{transform:n,snapToGrid:r,snapGrid:o}=e.getState();return console.warn("[DEPRECATED] `project` is deprecated. Instead use `screenToFlowPosition`. There is no need to subtract the react flow bounds anymore! https://reactflow.dev/api-reference/types/react-flow-instance#screen-to-flow-position"),bi(t,n,r,o)},screenToFlowPosition:t=>{const{transform:n,snapToGrid:r,snapGrid:o,domNode:i}=e.getState();if(!i)return t;const{x:a,y:s}=i.getBoundingClientRect(),l={x:t.x-a,y:t.y-s};return bi(l,n,r,o)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:o,y:i}=r.getBoundingClientRect(),a=wi(t,n);return{x:a.x+o,y:a.y+i}},viewportInitialized:!0}:wa),[t,n]);return r})(),t=ko(),n=k.useCallback((()=>t.getState().getNodes().map((e=>({...e})))),[]),r=k.useCallback((e=>t.getState().nodeInternals.get(e)),[]),o=k.useCallback((()=>{const{edges:e=[]}=t.getState();return e.map((e=>({...e})))}),[]),i=k.useCallback((e=>{const{edges:n=[]}=t.getState();return n.find((t=>t.id===e))}),[]),a=k.useCallback((e=>{const{getNodes:n,setNodes:r,hasDefaultNodes:o,onNodesChange:i}=t.getState(),a=n(),s="function"==typeof e?e(a):e;if(o)r(s);else if(i){const e=0===s.length?a.map((e=>({type:"remove",id:e.id}))):s.map((e=>({item:e,type:"reset"})));i(e)}}),[]),s=k.useCallback((e=>{const{edges:n=[],setEdges:r,hasDefaultEdges:o,onEdgesChange:i}=t.getState(),a="function"==typeof e?e(n):e;if(o)r(a);else if(i){i(0===a.length?n.map((e=>({type:"remove",id:e.id}))):a.map((e=>({item:e,type:"reset"}))))}}),[]),l=k.useCallback((e=>{const n=Array.isArray(e)?e:[e],{getNodes:r,setNodes:o,hasDefaultNodes:i,onNodesChange:a}=t.getState();if(i){o([...r(),...n])}else if(a){const e=n.map((e=>({item:e,type:"add"})));a(e)}}),[]),c=k.useCallback((e=>{const n=Array.isArray(e)?e:[e],{edges:r=[],setEdges:o,hasDefaultEdges:i,onEdgesChange:a}=t.getState();if(i)o([...r,...n]);else if(a){a(n.map((e=>({item:e,type:"add"}))))}}),[]),u=k.useCallback((()=>{const{getNodes:e,edges:n=[],transform:r}=t.getState(),[o,i,a]=r;return{nodes:e().map((e=>({...e}))),edges:n.map((e=>({...e}))),viewport:{x:o,y:i,zoom:a}}}),[]),d=k.useCallback((({nodes:e,edges:n})=>{const{nodeInternals:r,getNodes:o,edges:i,hasDefaultNodes:a,hasDefaultEdges:s,onNodesDelete:l,onEdgesDelete:c,onNodesChange:u,onEdgesChange:d}=t.getState(),f=(e||[]).map((e=>e.id)),p=(n||[]).map((e=>e.id)),h=o().reduce(((e,t)=>{const n=t.parentNode||t.parentId,r=!f.includes(t.id)&&n&&e.find((e=>e.id===n));return("boolean"!=typeof t.deletable||t.deletable)&&(f.includes(t.id)||r)&&e.push(t),e}),[]),m=i.filter((e=>"boolean"!=typeof e.deletable||e.deletable)),g=m.filter((e=>p.includes(e.id)));if(h||g){const e=Ei(h,m),n=[...g,...e],o=n.reduce(((e,t)=>(e.includes(t.id)||e.push(t.id),e)),[]);if((s||a)&&(s&&t.setState({edges:i.filter((e=>!o.includes(e.id)))}),a&&(h.forEach((e=>{r.delete(e.id)})),t.setState({nodeInternals:new Map(r)}))),o.length>0&&(c?.(n),d&&d(o.map((e=>({id:e,type:"remove"}))))),h.length>0&&(l?.(h),u)){u(h.map((e=>({id:e.id,type:"remove"}))))}}}),[]),f=k.useCallback((e=>{const n=Fo((r=e).width)&&Fo(r.height)&&Fo(r.x)&&Fo(r.y);var r;const o=n?null:t.getState().nodeInternals.get(e.id);if(!n&&!o)return[null,null,n];return[n?e:Lo(o),o,n]}),[]),p=k.useCallback(((e,n=!0,r)=>{const[o,i,a]=f(e);return o?(r||t.getState().getNodes()).filter((e=>{if(!(a||e.id!==i.id&&e.positionAbsolute))return!1;const t=Lo(e),r=zo(t,o);return n&&r>0||r>=o.width*o.height})):[]}),[]),h=k.useCallback(((e,t,n=!0)=>{const[r]=f(e);if(!r)return!1;const o=zo(r,t);return n&&o>0||o>=r.width*r.height}),[]);return k.useMemo((()=>({...e,getNodes:n,getNode:r,getEdges:o,getEdge:i,setNodes:a,setEdges:s,addNodes:l,addEdges:c,toObject:u,deleteElements:d,getIntersectingNodes:p,isNodeIntersecting:h})),[e,n,r,o,i,a,s,l,c,u,d,p,h])}const Sa={actInsideInputWithModifier:!1};const Ea={position:"absolute",width:"100%",height:"100%",top:0,left:0},_a=e=>({x:e.x,y:e.y,zoom:e.k}),Ca=(e,t)=>e.target.closest(`.${t}`),Oa=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),Na=e=>{const t=e.ctrlKey&&Ho()?10:1;return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t},Pa=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler,userSelectionActive:e.userSelectionActive}),Ra=({onMove:e,onMoveStart:t,onMoveEnd:n,onPaneContextMenu:r,zoomOnScroll:o=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:l=Go.Free,zoomOnDoubleClick:c=!0,elementsSelectable:u,panOnDrag:d=!0,defaultViewport:f,translateExtent:p,minZoom:h,maxZoom:m,zoomActivationKeyCode:g,preventScrolling:y=!0,children:v,noWheelClassName:b,noPanClassName:w})=>{const x=k.useRef(),E=ko(),_=k.useRef(!1),C=k.useRef(!1),O=k.useRef(null),N=k.useRef({x:0,y:0,zoom:0}),{d3Zoom:P,d3Selection:R,d3ZoomHandler:A,userSelectionActive:M}=xo(Pa,ye),T=ca(g),D=k.useRef(0),I=k.useRef(!1),L=k.useRef();return function(e){const t=ko();k.useEffect((()=>{let n;const r=()=>{if(!e.current)return;const n=Oo(e.current);0!==n.height&&0!==n.width||t.getState().onError?.("004",po()),t.setState({width:n.width||500,height:n.height||500})};return r(),window.addEventListener("resize",r),e.current&&(n=new ResizeObserver((()=>r())),n.observe(e.current)),()=>{window.removeEventListener("resize",r),n&&e.current&&n.unobserve(e.current)}}),[])}(O),k.useEffect((()=>{if(O.current){const e=O.current.getBoundingClientRect(),t=eo().scaleExtent([h,m]).translateExtent(p),n=It(O.current).call(t),r=Wr.translate(f.x,f.y).scale(No(f.zoom,h,m)),o=[[0,0],[e.width,e.height]],i=t.constrain()(r,o,p);t.transform(n,i),t.wheelDelta(Na),E.setState({d3Zoom:t,d3Selection:n,d3ZoomHandler:n.on("wheel.zoom"),transform:[i.x,i.y,i.k],domNode:O.current.closest(".react-flow")})}}),[]),k.useEffect((()=>{R&&P&&(!a||T||M?void 0!==A&&R.on("wheel.zoom",(function(e,t){if(!y&&"wheel"===e.type&&!e.ctrlKey||Ca(e,b))return null;e.preventDefault(),A.call(this,e,t)}),{passive:!1}):R.on("wheel.zoom",(r=>{if(Ca(r,b))return!1;r.preventDefault(),r.stopImmediatePropagation();const o=R.property("__zoom").k||1;if(r.ctrlKey&&i){const e=Lt(r),t=Na(r),n=o*Math.pow(2,t);return void P.scaleTo(R,n,e,r)}const a=1===r.deltaMode?20:1;let c=l===Go.Vertical?0:r.deltaX*a,u=l===Go.Horizontal?0:r.deltaY*a;!Ho()&&r.shiftKey&&l!==Go.Vertical&&(c=r.deltaY*a,u=0),P.translateBy(R,-c/o*s,-u/o*s,{internal:!0});const d=_a(R.property("__zoom")),{onViewportChangeStart:f,onViewportChange:p,onViewportChangeEnd:h}=E.getState();clearTimeout(L.current),I.current||(I.current=!0,t?.(r,d),f?.(d)),I.current&&(e?.(r,d),p?.(d),L.current=setTimeout((()=>{n?.(r,d),h?.(d),I.current=!1}),150))}),{passive:!1}))}),[M,a,l,R,P,A,T,i,y,b,t,e,n]),k.useEffect((()=>{P&&P.on("start",(e=>{if(!e.sourceEvent||e.sourceEvent.internal)return null;D.current=e.sourceEvent?.button;const{onViewportChangeStart:n}=E.getState(),r=_a(e.transform);_.current=!0,N.current=r,"mousedown"===e.sourceEvent?.type&&E.setState({paneDragging:!0}),n?.(r),t?.(e.sourceEvent,r)}))}),[P,t]),k.useEffect((()=>{P&&(M&&!_.current?P.on("zoom",null):M||P.on("zoom",(t=>{const{onViewportChange:n}=E.getState();if(E.setState({transform:[t.transform.x,t.transform.y,t.transform.k]}),C.current=!(!r||!Oa(d,D.current??0)),(e||n)&&!t.sourceEvent?.internal){const r=_a(t.transform);n?.(r),e?.(t.sourceEvent,r)}})))}),[M,P,e,d,r]),k.useEffect((()=>{P&&P.on("end",(e=>{if(!e.sourceEvent||e.sourceEvent.internal)return null;const{onViewportChangeEnd:t}=E.getState();if(_.current=!1,E.setState({paneDragging:!1}),r&&Oa(d,D.current??0)&&!C.current&&r(e.sourceEvent),C.current=!1,(n||t)&&(o=N.current,i=e.transform,o.x!==i.x||o.y!==i.y||o.zoom!==i.k)){const r=_a(e.transform);N.current=r,clearTimeout(x.current),x.current=setTimeout((()=>{t?.(r),n?.(e.sourceEvent,r)}),a?150:0)}var o,i}))}),[P,a,d,n,r]),k.useEffect((()=>{P&&P.filter((e=>{const t=T||o,n=i&&e.ctrlKey;if((!0===d||Array.isArray(d)&&d.includes(1))&&1===e.button&&"mousedown"===e.type&&(Ca(e,"react-flow__node")||Ca(e,"react-flow__edge")))return!0;if(!(d||t||a||c||i))return!1;if(M)return!1;if(!c&&"dblclick"===e.type)return!1;if(Ca(e,b)&&"wheel"===e.type)return!1;if(Ca(e,w)&&("wheel"!==e.type||a&&"wheel"===e.type&&!T))return!1;if(!i&&e.ctrlKey&&"wheel"===e.type)return!1;if(!t&&!a&&!n&&"wheel"===e.type)return!1;if(!d&&("mousedown"===e.type||"touchstart"===e.type))return!1;if(Array.isArray(d)&&!d.includes(e.button)&&"mousedown"===e.type)return!1;const r=Array.isArray(d)&&d.includes(e.button)||!e.button||e.button<=1;return(!e.ctrlKey||"wheel"===e.type)&&r}))}),[M,P,o,i,a,c,d,u,T]),S.createElement("div",{className:"react-flow__renderer",ref:O,style:Ea},v)},Aa=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Ma(){const{userSelectionActive:e,userSelectionRect:t}=xo(Aa,ye);return e&&t?S.createElement("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}function Ta(e,t){const n=t.parentNode||t.parentId,r=e.find((e=>e.id===n));if(r){const e=t.position.x+t.width-r.width,n=t.position.y+t.height-r.height;if(e>0||n>0||t.position.x<0||t.position.y<0){if(r.style={...r.style}||{},r.style.width=r.style.width??r.width,r.style.height=r.style.height??r.height,e>0&&(r.style.width+=e),n>0&&(r.style.height+=n),t.position.x<0){const e=Math.abs(t.position.x);r.position.x=r.position.x-e,r.style.width+=e,t.position.x=0}if(t.position.y<0){const e=Math.abs(t.position.y);r.position.y=r.position.y-e,r.style.height+=e,t.position.y=0}r.width=r.style.width,r.height=r.style.height}}}function Da(e,t){if(e.some((e=>"reset"===e.type)))return e.filter((e=>"reset"===e.type)).map((e=>e.item));const n=e.filter((e=>"add"===e.type)).map((e=>e.item));return t.reduce(((t,n)=>{const r=e.filter((e=>e.id===n.id));if(0===r.length)return t.push(n),t;const o={...n};for(const e of r)if(e)switch(e.type){case"select":o.selected=e.selected;break;case"position":void 0!==e.position&&(o.position=e.position),void 0!==e.positionAbsolute&&(o.positionAbsolute=e.positionAbsolute),void 0!==e.dragging&&(o.dragging=e.dragging),o.expandParent&&Ta(t,o);break;case"dimensions":void 0!==e.dimensions&&(o.width=e.dimensions.width,o.height=e.dimensions.height),void 0!==e.updateStyle&&(o.style={...o.style||{},...e.dimensions}),"boolean"==typeof e.resizing&&(o.resizing=e.resizing),o.expandParent&&Ta(t,o);break;case"remove":return t}return t.push(o),t}),n)}function Ia(e,t){return Da(e,t)}function La(e,t){return Da(e,t)}const za=(e,t)=>({id:e,type:"select",selected:t});function Fa(e,t){return e.reduce(((e,n)=>{const r=t.includes(n.id);return!n.selected&&r?(n.selected=!0,e.push(za(n.id,!0))):n.selected&&!r&&(n.selected=!1,e.push(za(n.id,!1))),e}),[])}const ja=(e,t)=>n=>{n.target===t.current&&e?.(n)},Ba=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging}),$a=k.memo((({isSelecting:e,selectionMode:t=Qo.Full,panOnDrag:n,onSelectionStart:r,onSelectionEnd:o,onPaneClick:i,onPaneContextMenu:a,onPaneScroll:s,onPaneMouseEnter:l,onPaneMouseMove:c,onPaneMouseLeave:u,children:d})=>{const f=k.useRef(null),p=ko(),h=k.useRef(0),m=k.useRef(0),g=k.useRef(),{userSelectionActive:y,elementsSelectable:v,dragging:b}=xo(Ba,ye),w=()=>{p.setState({userSelectionActive:!1,userSelectionRect:null}),h.current=0,m.current=0},x=e=>{i?.(e),p.getState().resetSelectedElements(),p.setState({nodesSelectionActive:!1})},E=s?e=>s(e):void 0,_=v&&(e||y);return S.createElement("div",{className:de(["react-flow__pane",{dragging:b,selection:e}]),onClick:_?void 0:ja(x,f),onContextMenu:ja((e=>{Array.isArray(n)&&n?.includes(2)?e.preventDefault():a?.(e)}),f),onWheel:ja(E,f),onMouseEnter:_?void 0:l,onMouseDown:_?t=>{const{resetSelectedElements:n,domNode:o}=p.getState();if(g.current=o?.getBoundingClientRect(),!v||!e||0!==t.button||t.target!==f.current||!g.current)return;const{x:i,y:a}=Uo(t,g.current);n(),p.setState({userSelectionRect:{width:0,height:0,startX:i,startY:a,x:i,y:a}}),r?.(t)}:void 0,onMouseMove:_?n=>{const{userSelectionRect:r,nodeInternals:o,edges:i,transform:a,onNodesChange:s,onEdgesChange:l,nodeOrigin:c,getNodes:u}=p.getState();if(!e||!g.current||!r)return;p.setState({userSelectionActive:!0,nodesSelectionActive:!1});const d=Uo(n,g.current),f=r.startX??0,y=r.startY??0,v={...r,x:d.x<f?d.x:f,y:d.y<y?d.y:y,width:Math.abs(d.x-f),height:Math.abs(d.y-y)},b=u(),w=Si(o,v,a,t===Qo.Partial,!0,c),x=Ei(w,i).map((e=>e.id)),k=w.map((e=>e.id));if(h.current!==k.length){h.current=k.length;const e=Fa(b,k);e.length&&s?.(e)}if(m.current!==x.length){m.current=x.length;const e=Fa(i,x);e.length&&l?.(e)}p.setState({userSelectionRect:v})}:c,onMouseUp:_?e=>{if(0!==e.button)return;const{userSelectionRect:t}=p.getState();!y&&t&&e.target===f.current&&x?.(e),p.setState({nodesSelectionActive:h.current>0}),w(),o?.(e)}:void 0,onMouseLeave:_?e=>{y&&(p.setState({nodesSelectionActive:h.current>0}),o?.(e)),w()}:u,ref:f,style:Ea},d,S.createElement(Ma,null))}));function Va(e,t){const n=e.parentNode||e.parentId;if(!n)return!1;const r=t.get(n);return!!r&&(!!r.selected||Va(r,t))}function Ua(e,t,n){let r=e;do{if(r?.matches(t))return!0;if(r===n.current)return!1;r=r.parentElement}while(r);return!1}function Ha(e,t,n,r){return Array.from(e.values()).filter((n=>(n.selected||n.id===r)&&(!n.parentNode||n.parentId||!Va(n,e))&&(n.draggable||t&&void 0===n.draggable))).map((e=>({id:e.id,position:e.position||{x:0,y:0},positionAbsolute:e.positionAbsolute||{x:0,y:0},distance:{x:n.x-(e.positionAbsolute?.x??0),y:n.y-(e.positionAbsolute?.y??0)},delta:{x:0,y:0},extent:e.extent,parentNode:e.parentNode||e.parentId,parentId:e.parentNode||e.parentId,width:e.width,height:e.height,expandParent:e.expandParent})))}function Wa(e,t,n,r,o=[0,0],i){const a=function(e,t){return t&&"parent"!==t?[t[0],[t[1][0]-(e.width||0),t[1][1]-(e.height||0)]]:t}(e,e.extent||r);let s=a;const l=e.parentNode||e.parentId;if("parent"!==e.extent||e.expandParent){if(e.extent&&l&&"parent"!==e.extent){const t=n.get(l),{x:r,y:i}=xi(t,o).positionAbsolute;s=[[e.extent[0][0]+r,e.extent[0][1]+i],[e.extent[1][0]+r,e.extent[1][1]+i]]}}else if(l&&e.width&&e.height){const t=n.get(l),{x:r,y:i}=xi(t,o).positionAbsolute;s=t&&Fo(r)&&Fo(i)&&Fo(t.width)&&Fo(t.height)?[[r+e.width*o[0],i+e.height*o[1]],[r+t.width-e.width+e.width*o[0],i+t.height-e.height+e.height*o[1]]]:s}else i?.("005",ho()),s=a;let c={x:0,y:0};if(l){const e=n.get(l);c=xi(e,o).positionAbsolute}const u=s&&"parent"!==s?Po(t,s):t;return{position:{x:u.x-c.x,y:u.y-c.y},positionAbsolute:u}}function qa({nodeId:e,dragItems:t,nodeInternals:n}){const r=t.map((e=>({...n.get(e.id),position:e.position,positionAbsolute:e.positionAbsolute})));return[e?r.find((t=>t.id===e)):r[0],r]}$a.displayName="Pane";const Ya=(e,t,n,r)=>{const o=t.querySelectorAll(e);if(!o||!o.length)return null;const i=Array.from(o),a=t.getBoundingClientRect(),s=a.width*r[0],l=a.height*r[1];return i.map((e=>{const t=e.getBoundingClientRect();return{id:e.getAttribute("data-handleid"),position:e.getAttribute("data-handlepos"),x:(t.left-a.left-s)/n,y:(t.top-a.top-l)/n,...Oo(e)}}))};function Xa(e,t,n){return void 0===n?n:r=>{const o=t().nodeInternals.get(e);o&&n(r,{...o})}}function Ka({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:o,unselectNodesAndEdges:i,multiSelectionActive:a,nodeInternals:s,onError:l}=t.getState(),c=s.get(e);c?(t.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&a)&&(i({nodes:[c],edges:[]}),requestAnimationFrame((()=>r?.current?.blur()))):o([e])):l?.("012",bo(e))}function Ga(e){return(t,n,r)=>e?.(t,r)}function Qa({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:o,isSelectable:i,selectNodesOnDrag:a}){const s=ko(),[l,c]=k.useState(!1),u=k.useRef([]),d=k.useRef({x:null,y:null}),f=k.useRef(0),p=k.useRef(null),h=k.useRef({x:0,y:0}),m=k.useRef(null),g=k.useRef(!1),y=k.useRef(!1),v=k.useRef(!1),b=function(){const e=ko(),t=k.useCallback((({sourceEvent:t})=>{const{transform:n,snapGrid:r,snapToGrid:o}=e.getState(),i=t.touches?t.touches[0].clientX:t.clientX,a=t.touches?t.touches[0].clientY:t.clientY,s={x:(i-n[0])/n[2],y:(a-n[1])/n[2]};return{xSnapped:o?r[0]*Math.round(s.x/r[0]):s.x,ySnapped:o?r[1]*Math.round(s.y/r[1]):s.y,...s}}),[]);return t}();return k.useEffect((()=>{if(e?.current){const l=It(e.current),w=({x:e,y:t})=>{const{nodeInternals:n,onNodeDrag:r,onSelectionDrag:i,updateNodePositions:a,nodeExtent:l,snapGrid:f,snapToGrid:p,nodeOrigin:h,onError:g}=s.getState();d.current={x:e,y:t};let y=!1,v={x:0,y:0,x2:0,y2:0};if(u.current.length>1&&l){const e=ki(u.current,h);v=Do(e)}if(u.current=u.current.map((r=>{const o={x:e-r.distance.x,y:t-r.distance.y};p&&(o.x=f[0]*Math.round(o.x/f[0]),o.y=f[1]*Math.round(o.y/f[1]));const i=[[l[0][0],l[0][1]],[l[1][0],l[1][1]]];u.current.length>1&&l&&!r.extent&&(i[0][0]=r.positionAbsolute.x-v.x+l[0][0],i[1][0]=r.positionAbsolute.x+(r.width??0)-v.x2+l[1][0],i[0][1]=r.positionAbsolute.y-v.y+l[0][1],i[1][1]=r.positionAbsolute.y+(r.height??0)-v.y2+l[1][1]);const a=Wa(r,o,n,i,h,g);return y=y||r.position.x!==a.position.x||r.position.y!==a.position.y,r.position=a.position,r.positionAbsolute=a.positionAbsolute,r})),!y)return;a(u.current,!0,!0),c(!0);const b=o?r:Ga(i);if(b&&m.current){const[e,t]=qa({nodeId:o,dragItems:u.current,nodeInternals:n});b(m.current,e,t)}},x=()=>{if(!p.current)return;const[e,t]=Ao(h.current,p.current);if(0!==e||0!==t){const{transform:n,panBy:r}=s.getState();d.current.x=(d.current.x??0)-e/n[2],d.current.y=(d.current.y??0)-t/n[2],r({x:e,y:t})&&w(d.current)}f.current=requestAnimationFrame(x)},k=t=>{const{nodeInternals:n,multiSelectionActive:r,nodesDraggable:l,unselectNodesAndEdges:c,onNodeDragStart:f,onSelectionDragStart:p}=s.getState();y.current=!0;const h=o?f:Ga(p);a&&i||r||!o||n.get(o)?.selected||c(),o&&i&&a&&Ka({id:o,store:s,nodeRef:e});const m=b(t);if(d.current=m,u.current=Ha(n,l,m,o),h&&u.current){const[e,r]=qa({nodeId:o,dragItems:u.current,nodeInternals:n});h(t.sourceEvent,e,r)}};if(!t){const t=function(){var e,t,n,r,o=Wt,i=qt,a=Yt,s=Xt,l={},c=be("start","drag","end"),u=0,d=0;function f(e){e.on("mousedown.drag",p).filter(s).on("touchstart.drag",g).on("touchmove.drag",y,zt).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(a,s){if(!r&&o.call(this,a,s)){var l=b(this,i.call(this,a,s),a,s,"mouse");l&&(It(a.view).on("mousemove.drag",h,Ft).on("mouseup.drag",m,Ft),$t(a.view),jt(a),n=!1,e=a.clientX,t=a.clientY,l("start",a))}}function h(r){if(Bt(r),!n){var o=r.clientX-e,i=r.clientY-t;n=o*o+i*i>d}l.mouse("drag",r)}function m(e){It(e.view).on("mousemove.drag mouseup.drag",null),Vt(e.view,n),Bt(e),l.mouse("end",e)}function g(e,t){if(o.call(this,e,t)){var n,r,a=e.changedTouches,s=i.call(this,e,t),l=a.length;for(n=0;n<l;++n)(r=b(this,s,e,t,a[n].identifier,a[n]))&&(jt(e),r("start",e,a[n]))}}function y(e){var t,n,r=e.changedTouches,o=r.length;for(t=0;t<o;++t)(n=l[r[t].identifier])&&(Bt(e),n("drag",e,r[t]))}function v(e){var t,n,o=e.changedTouches,i=o.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<i;++t)(n=l[o[t].identifier])&&(jt(e),n("end",e,o[t]))}function b(e,t,n,r,o,i){var s,d,p,h=c.copy(),m=Lt(i||n,t);if(null!=(p=a.call(e,new Ht("beforestart",{sourceEvent:n,target:f,identifier:o,active:u,x:m[0],y:m[1],dx:0,dy:0,dispatch:h}),r)))return s=p.x-m[0]||0,d=p.y-m[1]||0,function n(i,a,c){var g,y=m;switch(i){case"start":l[o]=n,g=u++;break;case"end":delete l[o],--u;case"drag":m=Lt(c||a,t),g=u}h.call(i,e,new Ht(i,{sourceEvent:a,subject:p,target:f,identifier:o,active:g,x:m[0]+s,y:m[1]+d,dx:m[0]-y[0],dy:m[1]-y[1],dispatch:h}),r)}}return f.filter=function(e){return arguments.length?(o="function"==typeof e?e:Ut(!!e),f):o},f.container=function(e){return arguments.length?(i="function"==typeof e?e:Ut(e),f):i},f.subject=function(e){return arguments.length?(a="function"==typeof e?e:Ut(e),f):a},f.touchable=function(e){return arguments.length?(s="function"==typeof e?e:Ut(!!e),f):s},f.on=function(){var e=c.on.apply(c,arguments);return e===c?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}().on("start",(e=>{const{domNode:t,nodeDragThreshold:n}=s.getState();0===n&&k(e),v.current=!1;const r=b(e);d.current=r,p.current=t?.getBoundingClientRect()||null,h.current=Uo(e.sourceEvent,p.current)})).on("drag",(e=>{const t=b(e),{autoPanOnNodeDrag:n,nodeDragThreshold:r}=s.getState();if("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1&&(v.current=!0),!v.current){if(!g.current&&y.current&&n&&(g.current=!0,x()),!y.current){const n=t.xSnapped-(d?.current?.x??0),o=t.ySnapped-(d?.current?.y??0);Math.sqrt(n*n+o*o)>r&&k(e)}(d.current.x!==t.xSnapped||d.current.y!==t.ySnapped)&&u.current&&y.current&&(m.current=e.sourceEvent,h.current=Uo(e.sourceEvent,p.current),w(t))}})).on("end",(e=>{if(y.current&&!v.current&&(c(!1),g.current=!1,y.current=!1,cancelAnimationFrame(f.current),u.current)){const{updateNodePositions:t,nodeInternals:n,onNodeDragStop:r,onSelectionDragStop:i}=s.getState(),a=o?r:Ga(i);if(t(u.current,!1,!1),a){const[t,r]=qa({nodeId:o,dragItems:u.current,nodeInternals:n});a(e.sourceEvent,t,r)}}})).filter((t=>{const o=t.target;return!t.button&&(!n||!Ua(o,`.${n}`,e))&&(!r||Ua(o,r,e))}));return l.call(t),()=>{l.on(".drag",null)}}l.on(".drag",null)}}),[e,t,n,r,i,s,o,a,b]),l}function Za(){const e=ko(),t=k.useCallback((t=>{const{nodeInternals:n,nodeExtent:r,updateNodePositions:o,getNodes:i,snapToGrid:a,snapGrid:s,onError:l,nodesDraggable:c}=e.getState(),u=i().filter((e=>e.selected&&(e.draggable||c&&void 0===e.draggable))),d=a?s[0]:5,f=a?s[1]:5,p=t.isShiftPressed?4:1,h=t.x*d*p,m=t.y*f*p,g=u.map((e=>{if(e.positionAbsolute){const t={x:e.positionAbsolute.x+h,y:e.positionAbsolute.y+m};a&&(t.x=s[0]*Math.round(t.x/s[0]),t.y=s[1]*Math.round(t.y/s[1]));const{positionAbsolute:o,position:i}=Wa(e,t,n,r,void 0,l);e.position=i,e.positionAbsolute=o}return e}));o(g,!0,!1)}),[]);return t}const Ja={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};var es=e=>{const t=({id:t,type:n,data:r,xPos:o,yPos:i,xPosOrigin:a,yPosOrigin:s,selected:l,onClick:c,onMouseEnter:u,onMouseMove:d,onMouseLeave:f,onContextMenu:p,onDoubleClick:h,style:m,className:g,isDraggable:y,isSelectable:v,isConnectable:b,isFocusable:w,selectNodesOnDrag:x,sourcePosition:E,targetPosition:_,hidden:C,resizeObserver:O,dragHandle:N,zIndex:P,isParent:R,noDragClassName:A,noPanClassName:M,initialized:T,disableKeyboardA11y:D,ariaLabel:I,rfId:L,hasHandleBounds:z})=>{const F=ko(),j=k.useRef(null),B=k.useRef(null),$=k.useRef(E),V=k.useRef(_),U=k.useRef(n),H=v||y||c||u||d||f,W=Za(),q=Xa(t,F.getState,u),Y=Xa(t,F.getState,d),X=Xa(t,F.getState,f),K=Xa(t,F.getState,p),G=Xa(t,F.getState,h);k.useEffect((()=>()=>{B.current&&(O?.unobserve(B.current),B.current=null)}),[]),k.useEffect((()=>{if(j.current&&!C){const e=j.current;T&&z&&B.current===e||(B.current&&O?.unobserve(B.current),O?.observe(e),B.current=e)}}),[C,T,z]),k.useEffect((()=>{const e=U.current!==n,r=$.current!==E,o=V.current!==_;j.current&&(e||r||o)&&(e&&(U.current=n),r&&($.current=E),o&&(V.current=_),F.getState().updateNodeDimensions([{id:t,nodeElement:j.current,forceUpdate:!0}]))}),[t,n,E,_]);const Q=Qa({nodeRef:j,disabled:C||!y,noDragClassName:A,handleSelector:N,nodeId:t,isSelectable:v,selectNodesOnDrag:x});return C?null:S.createElement("div",{className:de(["react-flow__node",`react-flow__node-${n}`,{[M]:y},g,{selected:l,selectable:v,parent:R,dragging:Q}]),ref:j,style:{zIndex:P,transform:`translate(${a}px,${s}px)`,pointerEvents:H?"all":"none",visibility:T?"visible":"hidden",...m},"data-id":t,"data-testid":`rf__node-${t}`,onMouseEnter:q,onMouseMove:Y,onMouseLeave:X,onContextMenu:K,onClick:e=>{const{nodeDragThreshold:n}=F.getState();if(v&&(!x||!y||n>0)&&Ka({id:t,store:F,nodeRef:j}),c){const n=F.getState().nodeInternals.get(t);n&&c(e,{...n})}},onDoubleClick:G,onKeyDown:w?e=>{if(!$o(e)&&!D)if(Bo.includes(e.key)&&v){const n="Escape"===e.key;Ka({id:t,store:F,unselect:n,nodeRef:j})}else y&&l&&Object.prototype.hasOwnProperty.call(Ja,e.key)&&(F.setState({ariaLiveMessage:`Moved selected node ${e.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~o}, y: ${~~i}`}),W({x:Ja[e.key].x,y:Ja[e.key].y,isShiftPressed:e.shiftKey}))}:void 0,tabIndex:w?0:void 0,role:w?"button":void 0,"aria-describedby":D?void 0:`${oa}-${L}`,"aria-label":I},S.createElement(gi,{value:t},S.createElement(e,{id:t,data:r,type:n,xPos:o,yPos:i,selected:l,isConnectable:b,sourcePosition:E,targetPosition:_,dragging:Q,dragHandle:N,zIndex:P})))};return t.displayName="NodeWrapper",k.memo(t)};const ts=e=>{const t=e.getNodes().filter((e=>e.selected));return{...ki(t,e.nodeOrigin),transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`,userSelectionActive:e.userSelectionActive}};var ns=k.memo((function({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=ko(),{width:o,height:i,x:a,y:s,transformString:l,userSelectionActive:c}=xo(ts,ye),u=Za(),d=k.useRef(null);if(k.useEffect((()=>{n||d.current?.focus({preventScroll:!0})}),[n]),Qa({nodeRef:d}),c||!o||!i)return null;const f=e?t=>{const n=r.getState().getNodes().filter((e=>e.selected));e(t,n)}:void 0;return S.createElement("div",{className:de(["react-flow__nodesselection","react-flow__container",t]),style:{transform:l}},S.createElement("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:f,tabIndex:n?void 0:-1,onKeyDown:n?void 0:e=>{Object.prototype.hasOwnProperty.call(Ja,e.key)&&u({x:Ja[e.key].x,y:Ja[e.key].y,isShiftPressed:e.shiftKey})},style:{width:o,height:i,top:s,left:a}}))}));const rs=e=>e.nodesSelectionActive,os=({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:a,deleteKeyCode:s,onMove:l,onMoveStart:c,onMoveEnd:u,selectionKeyCode:d,selectionOnDrag:f,selectionMode:p,onSelectionStart:h,onSelectionEnd:m,multiSelectionKeyCode:g,panActivationKeyCode:y,zoomActivationKeyCode:v,elementsSelectable:b,zoomOnScroll:w,zoomOnPinch:x,panOnScroll:E,panOnScrollSpeed:_,panOnScrollMode:C,zoomOnDoubleClick:O,panOnDrag:N,defaultViewport:P,translateExtent:R,minZoom:A,maxZoom:M,preventScrolling:T,onSelectionContextMenu:D,noWheelClassName:I,noPanClassName:L,disableKeyboardA11y:z})=>{const F=xo(rs),j=ca(d),B=ca(y),$=B||N,V=B||E,U=j||f&&!0!==$;return(({deleteKeyCode:e,multiSelectionKeyCode:t})=>{const n=ko(),{deleteElements:r}=ka(),o=ca(e,Sa),i=ca(t);k.useEffect((()=>{if(o){const{edges:e,getNodes:t}=n.getState(),o=t().filter((e=>e.selected)),i=e.filter((e=>e.selected));r({nodes:o,edges:i}),n.setState({nodesSelectionActive:!1})}}),[o]),k.useEffect((()=>{n.setState({multiSelectionActive:i})}),[i])})({deleteKeyCode:s,multiSelectionKeyCode:g}),S.createElement(Ra,{onMove:l,onMoveStart:c,onMoveEnd:u,onPaneContextMenu:i,elementsSelectable:b,zoomOnScroll:w,zoomOnPinch:x,panOnScroll:V,panOnScrollSpeed:_,panOnScrollMode:C,zoomOnDoubleClick:O,panOnDrag:!j&&$,defaultViewport:P,translateExtent:R,minZoom:A,maxZoom:M,zoomActivationKeyCode:v,preventScrolling:T,noWheelClassName:I,noPanClassName:L},S.createElement($a,{onSelectionStart:h,onSelectionEnd:m,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:a,panOnDrag:$,isSelecting:!!U,selectionMode:p},e,F&&S.createElement(ns,{onSelectionContextMenu:D,noPanClassName:L,disableKeyboardA11y:z})))};os.displayName="FlowRenderer";var is=k.memo(os);function as(e){return{...{input:es(e.input||Vi),default:es(e.default||Bi),output:es(e.output||Hi),group:es(e.group||Wi)},...Object.keys(e).filter((e=>!["input","default","output","group"].includes(e))).reduce(((t,n)=>(t[n]=es(e[n]||Bi),t)),{})}}const ss=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions,onError:e.onError}),ls=e=>{const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,updateNodeDimensions:i,onError:a}=xo(ss,ye),s=function(e){const t=xo(k.useCallback((t=>e?Si(t.nodeInternals,{x:0,y:0,width:t.width,height:t.height},t.transform,!0):t.getNodes()),[e]));return t}(e.onlyRenderVisibleElements),l=k.useRef(),c=k.useMemo((()=>{if("undefined"==typeof ResizeObserver)return null;const e=new ResizeObserver((e=>{const t=e.map((e=>({id:e.target.getAttribute("data-id"),nodeElement:e.target,forceUpdate:!0})));i(t)}));return l.current=e,e}),[]);return k.useEffect((()=>()=>{l?.current?.disconnect()}),[]),S.createElement("div",{className:"react-flow__nodes",style:Ea},s.map((i=>{let s=i.type||"default";e.nodeTypes[s]||(a?.("003",fo(s)),s="default");const l=e.nodeTypes[s]||e.nodeTypes.default,u=!!(i.draggable||t&&void 0===i.draggable),d=!!(i.selectable||o&&void 0===i.selectable),f=!!(i.connectable||n&&void 0===i.connectable),p=!!(i.focusable||r&&void 0===i.focusable),h=e.nodeExtent?Po(i.positionAbsolute,e.nodeExtent):i.positionAbsolute,m=h?.x??0,g=h?.y??0,y=(({x:e,y:t,width:n,height:r,origin:o})=>n&&r?o[0]<0||o[1]<0||o[0]>1||o[1]>1?{x:e,y:t}:{x:e-n*o[0],y:t-r*o[1]}:{x:e,y:t})({x:m,y:g,width:i.width??0,height:i.height??0,origin:e.nodeOrigin});return S.createElement(l,{key:i.id,id:i.id,className:i.className,style:i.style,type:s,data:i.data,sourcePosition:i.sourcePosition||ei.Bottom,targetPosition:i.targetPosition||ei.Top,hidden:i.hidden,xPos:m,yPos:g,xPosOrigin:y.x,yPosOrigin:y.y,selectNodesOnDrag:e.selectNodesOnDrag,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,selected:!!i.selected,isDraggable:u,isSelectable:d,isConnectable:f,isFocusable:p,resizeObserver:c,dragHandle:i.dragHandle,zIndex:i[jo]?.z??0,isParent:!!i[jo]?.isParent,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,initialized:!!i.width&&!!i.height,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,ariaLabel:i.ariaLabel,hasHandleBounds:!!i[jo]?.handleBounds})})))};ls.displayName="NodeRenderer";var cs=k.memo(ls);const us=(e,t,n)=>n===ei.Left?e-t:n===ei.Right?e+t:e,ds=(e,t,n)=>n===ei.Top?e-t:n===ei.Bottom?e+t:e,fs="react-flow__edgeupdater",ps=({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:o,onMouseEnter:i,onMouseOut:a,type:s})=>S.createElement("circle",{onMouseDown:o,onMouseEnter:i,onMouseOut:a,className:de([fs,`${fs}-${s}`]),cx:us(t,r,e),cy:ds(n,r,e),r:r,stroke:"transparent",fill:"transparent"}),hs=()=>!0;var ms=e=>{const t=({id:t,className:n,type:r,data:o,onClick:i,onEdgeDoubleClick:a,selected:s,animated:l,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:h,style:m,source:g,target:y,sourceX:v,sourceY:b,targetX:w,targetY:x,sourcePosition:E,targetPosition:_,elementsSelectable:C,hidden:O,sourceHandleId:N,targetHandleId:P,onContextMenu:R,onMouseEnter:A,onMouseMove:M,onMouseLeave:T,reconnectRadius:D,onReconnect:I,onReconnectStart:L,onReconnectEnd:z,markerEnd:F,markerStart:j,rfId:B,ariaLabel:$,isFocusable:V,isReconnectable:U,pathOptions:H,interactionWidth:W,disableKeyboardA11y:q})=>{const Y=k.useRef(null),[X,K]=k.useState(!1),[G,Q]=k.useState(!1),Z=ko(),J=k.useMemo((()=>`url('#${vi(j,B)}')`),[j,B]),ee=k.useMemo((()=>`url('#${vi(F,B)}')`),[F,B]);if(O)return null;const te=qo(t,Z.getState,a),ne=qo(t,Z.getState,R),re=qo(t,Z.getState,A),oe=qo(t,Z.getState,M),ie=qo(t,Z.getState,T),ae=(e,n)=>{if(0!==e.button)return;const{edges:r,isValidConnection:o}=Z.getState(),i=n?y:g,a=(n?P:N)||null,s=n?"target":"source",l=o||hs,c=n,u=r.find((e=>e.id===t));Q(!0),L?.(e,u,s);Di({event:e,handleId:a,nodeId:i,onConnect:e=>I?.(u,e),isTarget:c,getState:Z.getState,setState:Z.setState,isValidConnection:l,edgeUpdaterType:s,onReconnectEnd:e=>{Q(!1),z?.(e,u,s)}})},se=()=>K(!0),le=()=>K(!1),ce=!C&&!i;return S.createElement("g",{className:de(["react-flow__edge",`react-flow__edge-${r}`,n,{selected:s,animated:l,inactive:ce,updating:X}]),onClick:e=>{const{edges:n,addSelectedEdges:r,unselectNodesAndEdges:o,multiSelectionActive:a}=Z.getState(),s=n.find((e=>e.id===t));s&&(C&&(Z.setState({nodesSelectionActive:!1}),s.selected&&a?(o({nodes:[],edges:[s]}),Y.current?.blur()):r([t])),i&&i(e,s))},onDoubleClick:te,onContextMenu:ne,onMouseEnter:re,onMouseMove:oe,onMouseLeave:ie,onKeyDown:V?e=>{if(!q&&Bo.includes(e.key)&&C){const{unselectNodesAndEdges:n,addSelectedEdges:r,edges:o}=Z.getState();"Escape"===e.key?(Y.current?.blur(),n({edges:[o.find((e=>e.id===t))]})):r([t])}}:void 0,tabIndex:V?0:void 0,role:V?"button":"img","data-testid":`rf__edge-${t}`,"aria-label":null===$?void 0:$||`Edge from ${g} to ${y}`,"aria-describedby":V?`${ia}-${B}`:void 0,ref:Y},!G&&S.createElement(e,{id:t,source:g,target:y,selected:s,animated:l,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:h,data:o,style:m,sourceX:v,sourceY:b,targetX:w,targetY:x,sourcePosition:E,targetPosition:_,sourceHandleId:N,targetHandleId:P,markerStart:J,markerEnd:ee,pathOptions:H,interactionWidth:W}),U&&S.createElement(S.Fragment,null,("source"===U||!0===U)&&S.createElement(ps,{position:E,centerX:v,centerY:b,radius:D,onMouseDown:e=>ae(e,!0),onMouseEnter:se,onMouseOut:le,type:"source"}),("target"===U||!0===U)&&S.createElement(ps,{position:_,centerX:w,centerY:x,radius:D,onMouseDown:e=>ae(e,!1),onMouseEnter:se,onMouseOut:le,type:"target"})))};return t.displayName="EdgeWrapper",k.memo(t)};function gs(e){return{...{default:ms(e.default||hi),straight:ms(e.bezier||ui),step:ms(e.step||ci),smoothstep:ms(e.step||li),simplebezier:ms(e.simplebezier||ri)},...Object.keys(e).filter((e=>!["default","bezier"].includes(e))).reduce(((t,n)=>(t[n]=ms(e[n]||hi),t)),{})}}function ys(e,t,n=null){const r=(n?.x||0)+t.x,o=(n?.y||0)+t.y,i=n?.width||t.width,a=n?.height||t.height;switch(e){case ei.Top:return{x:r+i/2,y:o};case ei.Right:return{x:r+i,y:o+a/2};case ei.Bottom:return{x:r+i/2,y:o+a};case ei.Left:return{x:r,y:o+a/2}}}function vs(e,t){return e?1!==e.length&&t?t&&e.find((e=>e.id===t))||null:e[0]:null}function bs(e){const t=e?.[jo]?.handleBounds||null,n=t&&e?.width&&e?.height&&void 0!==e?.positionAbsolute?.x&&void 0!==e?.positionAbsolute?.y;return[{x:e?.positionAbsolute?.x||0,y:e?.positionAbsolute?.y||0,width:e?.width||0,height:e?.height||0},t,!!n]}const ws=[{level:0,isMaxLevel:!0,edges:[]}];function xs(e,t,n){const r=xo(k.useCallback((n=>e?n.edges.filter((e=>{const r=t.get(e.source),o=t.get(e.target);return r?.width&&r?.height&&o?.width&&o?.height&&function({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:r,targetWidth:o,targetHeight:i,width:a,height:s,transform:l}){const c={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+o),y2:Math.max(e.y+r,t.y+i)};c.x===c.x2&&(c.x2+=1),c.y===c.y2&&(c.y2+=1);const u=Do({x:(0-l[0])/l[2],y:(0-l[1])/l[2],width:a/l[2],height:s/l[2]}),d=Math.max(0,Math.min(u.x2,c.x2)-Math.max(u.x,c.x)),f=Math.max(0,Math.min(u.y2,c.y2)-Math.max(u.y,c.y));return Math.ceil(d*f)>0}({sourcePos:r.positionAbsolute||{x:0,y:0},targetPos:o.positionAbsolute||{x:0,y:0},sourceWidth:r.width,sourceHeight:r.height,targetWidth:o.width,targetHeight:o.height,width:n.width,height:n.height,transform:n.transform})})):n.edges),[e,t]));return function(e,t,n=!1){let r=-1;const o=e.reduce(((e,o)=>{const i=Fo(o.zIndex);let a=i?o.zIndex:0;if(n){const e=t.get(o.target),n=t.get(o.source),r=o.selected||e?.selected||n?.selected,s=Math.max(n?.[jo]?.z||0,e?.[jo]?.z||0,1e3);a=(i?o.zIndex:0)+(r?s:0)}return e[a]?e[a].push(o):e[a]=[o],r=a>r?a:r,e}),{}),i=Object.entries(o).map((([e,t])=>{const n=+e;return{edges:t,level:n,isMaxLevel:n===r}}));return 0===i.length?ws:i}(r,t,n)}const ks={[Jo.Arrow]:({color:e="none",strokeWidth:t=1})=>S.createElement("polyline",{style:{stroke:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),[Jo.ArrowClosed]:({color:e="none",strokeWidth:t=1})=>S.createElement("polyline",{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})};const Ss=({id:e,type:t,color:n,width:r=12.5,height:o=12.5,markerUnits:i="strokeWidth",strokeWidth:a,orient:s="auto-start-reverse"})=>{const l=function(e){const t=ko();return k.useMemo((()=>Object.prototype.hasOwnProperty.call(ks,e)?ks[e]:(t.getState().onError?.("009",mo(e)),null)),[e])}(t);return l?S.createElement("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:s,refX:"0",refY:"0"},S.createElement(l,{color:n,strokeWidth:a})):null},Es=({defaultColor:e,rfId:t})=>{const n=xo(k.useCallback((({defaultColor:e,rfId:t})=>n=>{const r=[];return n.edges.reduce(((n,o)=>([o.markerStart,o.markerEnd].forEach((o=>{if(o&&"object"==typeof o){const i=vi(o,t);r.includes(i)||(n.push({id:i,color:o.color||e,...o}),r.push(i))}})),n)),[]).sort(((e,t)=>e.id.localeCompare(t.id)))})({defaultColor:e,rfId:t}),[e,t]),((e,t)=>!(e.length!==t.length||e.some(((e,n)=>e.id!==t[n].id)))));return S.createElement("defs",null,n.map((e=>S.createElement(Ss,{id:e.id,key:e.id,type:e.type,color:e.color,width:e.width,height:e.height,markerUnits:e.markerUnits,strokeWidth:e.strokeWidth,orient:e.orient}))))};Es.displayName="MarkerDefinitions";var _s=k.memo(Es);const Cs=e=>({nodesConnectable:e.nodesConnectable,edgesFocusable:e.edgesFocusable,edgesUpdatable:e.edgesUpdatable,elementsSelectable:e.elementsSelectable,width:e.width,height:e.height,connectionMode:e.connectionMode,nodeInternals:e.nodeInternals,onError:e.onError}),Os=({defaultMarkerColor:e,onlyRenderVisibleElements:t,elevateEdgesOnSelect:n,rfId:r,edgeTypes:o,noPanClassName:i,onEdgeContextMenu:a,onEdgeMouseEnter:s,onEdgeMouseMove:l,onEdgeMouseLeave:c,onEdgeClick:u,onEdgeDoubleClick:d,onReconnect:f,onReconnectStart:p,onReconnectEnd:h,reconnectRadius:m,children:g,disableKeyboardA11y:y})=>{const{edgesFocusable:v,edgesUpdatable:b,elementsSelectable:w,width:x,height:k,connectionMode:E,nodeInternals:_,onError:C}=xo(Cs,ye),O=xs(t,_,n);return x?S.createElement(S.Fragment,null,O.map((({level:t,edges:n,isMaxLevel:g})=>S.createElement("svg",{key:t,style:{zIndex:t},width:x,height:k,className:"react-flow__edges react-flow__container"},g&&S.createElement(_s,{defaultColor:e,rfId:r}),S.createElement("g",null,n.map((e=>{const[t,n,g]=bs(_.get(e.source)),[x,k,O]=bs(_.get(e.target));if(!g||!O)return null;let N=e.type||"default";o[N]||(C?.("011",vo(N)),N="default");const P=o[N]||o.default,R=E===Ko.Strict?k.target:(k.target??[]).concat(k.source??[]),A=vs(n.source,e.sourceHandle),M=vs(R,e.targetHandle),T=A?.position||ei.Bottom,D=M?.position||ei.Top,I=!!(e.focusable||v&&void 0===e.focusable),L=e.reconnectable||e.updatable,z=void 0!==f&&(L||b&&void 0===L);if(!A||!M)return C?.("008",go(A,e)),null;const{sourceX:F,sourceY:j,targetX:B,targetY:$}=((e,t,n,r,o,i)=>{const a=ys(n,e,t),s=ys(i,r,o);return{sourceX:a.x,sourceY:a.y,targetX:s.x,targetY:s.y}})(t,A,T,x,M,D);return S.createElement(P,{key:e.id,id:e.id,className:de([e.className,i]),type:N,data:e.data,selected:!!e.selected,animated:!!e.animated,hidden:!!e.hidden,label:e.label,labelStyle:e.labelStyle,labelShowBg:e.labelShowBg,labelBgStyle:e.labelBgStyle,labelBgPadding:e.labelBgPadding,labelBgBorderRadius:e.labelBgBorderRadius,style:e.style,source:e.source,target:e.target,sourceHandleId:e.sourceHandle,targetHandleId:e.targetHandle,markerEnd:e.markerEnd,markerStart:e.markerStart,sourceX:F,sourceY:j,targetX:B,targetY:$,sourcePosition:T,targetPosition:D,elementsSelectable:w,onContextMenu:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,onClick:u,onEdgeDoubleClick:d,onReconnect:f,onReconnectStart:p,onReconnectEnd:h,reconnectRadius:m,rfId:r,ariaLabel:e.ariaLabel,isFocusable:I,isReconnectable:z,pathOptions:"pathOptions"in e?e.pathOptions:void 0,interactionWidth:e.interactionWidth,disableKeyboardA11y:y})})))))),g):null};Os.displayName="EdgeRenderer";var Ns=k.memo(Os);const Ps=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function Rs({children:e}){const t=xo(Ps);return S.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:t}},e)}const As={[ei.Left]:ei.Right,[ei.Right]:ei.Left,[ei.Top]:ei.Bottom,[ei.Bottom]:ei.Top},Ms=({nodeId:e,handleType:t,style:n,type:r=Zo.Bezier,CustomComponent:o,connectionStatus:i})=>{const{fromNode:a,handleId:s,toX:l,toY:c,connectionMode:u}=xo(k.useCallback((t=>({fromNode:t.nodeInternals.get(e),handleId:t.connectionHandleId,toX:(t.connectionPosition.x-t.transform[0])/t.transform[2],toY:(t.connectionPosition.y-t.transform[1])/t.transform[2],connectionMode:t.connectionMode})),[e]),ye),d=a?.[jo]?.handleBounds;let f=d?.[t];if(u===Ko.Loose&&(f=f||d?.["source"===t?"target":"source"]),!a||!f)return null;const p=s?f.find((e=>e.id===s)):f[0],h=p?p.x+p.width/2:(a.width??0)/2,m=p?p.y+p.height/2:a.height??0,g=(a.positionAbsolute?.x??0)+h,y=(a.positionAbsolute?.y??0)+m,v=p?.position,b=v?As[v]:null;if(!v||!b)return null;if(o)return S.createElement(o,{connectionLineType:r,connectionLineStyle:n,fromNode:a,fromHandle:p,fromX:g,fromY:y,toX:l,toY:c,fromPosition:v,toPosition:b,connectionStatus:i});let w="";const x={sourceX:g,sourceY:y,sourcePosition:v,targetX:l,targetY:c,targetPosition:b};return r===Zo.Bezier?[w]=pi(x):r===Zo.Step?[w]=si({...x,borderRadius:0}):r===Zo.SmoothStep?[w]=si(x):r===Zo.SimpleBezier?[w]=ni(x):w=`M${g},${y} ${l},${c}`,S.createElement("path",{d:w,fill:"none",className:"react-flow__connection-path",style:n})};Ms.displayName="ConnectionLine";const Ts=e=>({nodeId:e.connectionNodeId,handleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,connectionStatus:e.connectionStatus,width:e.width,height:e.height});function Ds({containerStyle:e,style:t,type:n,component:r}){const{nodeId:o,handleType:i,nodesConnectable:a,width:s,height:l,connectionStatus:c}=xo(Ts,ye);return!!(o&&i&&s&&a)?S.createElement("svg",{style:e,width:s,height:l,className:"react-flow__edges react-flow__connectionline react-flow__container"},S.createElement("g",{className:de(["react-flow__connection",c])},S.createElement(Ms,{nodeId:o,handleType:i,style:t,type:n,CustomComponent:r,connectionStatus:c}))):null}function Is(e,t){k.useRef(null),ko();return k.useMemo((()=>t(e)),[e])}const Ls=({nodeTypes:e,edgeTypes:t,onMove:n,onMoveStart:r,onMoveEnd:o,onInit:i,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:l,onEdgeDoubleClick:c,onNodeMouseEnter:u,onNodeMouseMove:d,onNodeMouseLeave:f,onNodeContextMenu:p,onSelectionContextMenu:h,onSelectionStart:m,onSelectionEnd:g,connectionLineType:y,connectionLineStyle:v,connectionLineComponent:b,connectionLineContainerStyle:w,selectionKeyCode:x,selectionOnDrag:E,selectionMode:_,multiSelectionKeyCode:C,panActivationKeyCode:O,zoomActivationKeyCode:N,deleteKeyCode:P,onlyRenderVisibleElements:R,elementsSelectable:A,selectNodesOnDrag:M,defaultViewport:T,translateExtent:D,minZoom:I,maxZoom:L,preventScrolling:z,defaultMarkerColor:F,zoomOnScroll:j,zoomOnPinch:B,panOnScroll:$,panOnScrollSpeed:V,panOnScrollMode:U,zoomOnDoubleClick:H,panOnDrag:W,onPaneClick:q,onPaneMouseEnter:Y,onPaneMouseMove:X,onPaneMouseLeave:K,onPaneScroll:G,onPaneContextMenu:Q,onEdgeContextMenu:Z,onEdgeMouseEnter:J,onEdgeMouseMove:ee,onEdgeMouseLeave:te,onReconnect:ne,onReconnectStart:re,onReconnectEnd:oe,reconnectRadius:ie,noDragClassName:ae,noWheelClassName:se,noPanClassName:le,elevateEdgesOnSelect:ce,disableKeyboardA11y:ue,nodeOrigin:de,nodeExtent:fe,rfId:pe})=>{const he=Is(e,as),me=Is(t,gs);return function(e){const t=ka(),n=k.useRef(!1);k.useEffect((()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout((()=>e(t)),1),n.current=!0)}),[e,t.viewportInitialized])}(i),S.createElement(is,{onPaneClick:q,onPaneMouseEnter:Y,onPaneMouseMove:X,onPaneMouseLeave:K,onPaneContextMenu:Q,onPaneScroll:G,deleteKeyCode:P,selectionKeyCode:x,selectionOnDrag:E,selectionMode:_,onSelectionStart:m,onSelectionEnd:g,multiSelectionKeyCode:C,panActivationKeyCode:O,zoomActivationKeyCode:N,elementsSelectable:A,onMove:n,onMoveStart:r,onMoveEnd:o,zoomOnScroll:j,zoomOnPinch:B,zoomOnDoubleClick:H,panOnScroll:$,panOnScrollSpeed:V,panOnScrollMode:U,panOnDrag:W,defaultViewport:T,translateExtent:D,minZoom:I,maxZoom:L,onSelectionContextMenu:h,preventScrolling:z,noDragClassName:ae,noWheelClassName:se,noPanClassName:le,disableKeyboardA11y:ue},S.createElement(Rs,null,S.createElement(Ns,{edgeTypes:me,onEdgeClick:s,onEdgeDoubleClick:c,onlyRenderVisibleElements:R,onEdgeContextMenu:Z,onEdgeMouseEnter:J,onEdgeMouseMove:ee,onEdgeMouseLeave:te,onReconnect:ne,onReconnectStart:re,onReconnectEnd:oe,reconnectRadius:ie,defaultMarkerColor:F,noPanClassName:le,elevateEdgesOnSelect:!!ce,disableKeyboardA11y:ue,rfId:pe},S.createElement(Ds,{style:v,type:y,component:b,containerStyle:w})),S.createElement("div",{className:"react-flow__edgelabel-renderer"}),S.createElement(cs,{nodeTypes:he,onNodeClick:a,onNodeDoubleClick:l,onNodeMouseEnter:u,onNodeMouseMove:d,onNodeMouseLeave:f,onNodeContextMenu:p,selectNodesOnDrag:M,onlyRenderVisibleElements:R,noPanClassName:le,noDragClassName:ae,disableKeyboardA11y:ue,nodeOrigin:de,nodeExtent:fe,rfId:pe})))};Ls.displayName="GraphView";var zs=k.memo(Ls);const Fs=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],js={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:Fs,nodeExtent:Fs,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:Ko.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],nodeDragThreshold:0,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesUpdatable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,onSelectionChange:[],multiSelectionActive:!1,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,connectionRadius:20,onError:(e,t)=>{},isValidConnection:void 0},Bs=()=>((e,t)=>e?ge(e,t):ge)(((e,t)=>({...js,setNodes:n=>{const{nodeInternals:r,nodeOrigin:o,elevateNodesOnSelect:i}=t();e({nodeInternals:ha(n,r,o,i)})},getNodes:()=>Array.from(t().nodeInternals.values()),setEdges:n=>{const{defaultEdgeOptions:r={}}=t();e({edges:n.map((e=>({...r,...e})))})},setDefaultNodesAndEdges:(n,r)=>{const o=void 0!==n,i=void 0!==r,a=o?ha(n,new Map,t().nodeOrigin,t().elevateNodesOnSelect):new Map;e({nodeInternals:a,edges:i?r:[],hasDefaultNodes:o,hasDefaultEdges:i})},updateNodeDimensions:n=>{const{onNodesChange:r,nodeInternals:o,fitViewOnInit:i,fitViewOnInitDone:a,fitViewOnInitOptions:s,domNode:l,nodeOrigin:c}=t(),u=l?.querySelector(".react-flow__viewport");if(!u)return;const d=window.getComputedStyle(u),{m22:f}=new window.DOMMatrixReadOnly(d.transform),p=n.reduce(((e,t)=>{const n=o.get(t.id);if(n?.hidden)o.set(n.id,{...n,[jo]:{...n[jo],handleBounds:void 0}});else if(n){const r=Oo(t.nodeElement);!(!r.width||!r.height||n.width===r.width&&n.height===r.height&&!t.forceUpdate)&&(o.set(n.id,{...n,[jo]:{...n[jo],handleBounds:{source:Ya(".source",t.nodeElement,f,c),target:Ya(".target",t.nodeElement,f,c)}},...r}),e.push({id:n.id,type:"dimensions",dimensions:r}))}return e}),[]);pa(o,c);const h=a||i&&!a&&ma(t,{initial:!0,...s});e({nodeInternals:new Map(o),fitViewOnInitDone:h}),p?.length>0&&r?.(p)},updateNodePositions:(e,n=!0,r=!1)=>{const{triggerNodeChanges:o}=t(),i=e.map((e=>{const t={id:e.id,type:"position",dragging:r};return n&&(t.positionAbsolute=e.positionAbsolute,t.position=e.position),t}));o(i)},triggerNodeChanges:n=>{const{onNodesChange:r,nodeInternals:o,hasDefaultNodes:i,nodeOrigin:a,getNodes:s,elevateNodesOnSelect:l}=t();if(n?.length){if(i){const t=ha(Ia(n,s()),o,a,l);e({nodeInternals:t})}r?.(n)}},addSelectedNodes:n=>{const{multiSelectionActive:r,edges:o,getNodes:i}=t();let a,s=null;r?a=n.map((e=>za(e,!0))):(a=Fa(i(),n),s=Fa(o,[])),va({changedNodes:a,changedEdges:s,get:t,set:e})},addSelectedEdges:n=>{const{multiSelectionActive:r,edges:o,getNodes:i}=t();let a,s=null;r?a=n.map((e=>za(e,!0))):(a=Fa(o,n),s=Fa(i(),[])),va({changedNodes:s,changedEdges:a,get:t,set:e})},unselectNodesAndEdges:({nodes:n,edges:r}={})=>{const{edges:o,getNodes:i}=t(),a=r||o;va({changedNodes:(n||i()).map((e=>(e.selected=!1,za(e.id,!1)))),changedEdges:a.map((e=>za(e.id,!1))),get:t,set:e})},setMinZoom:n=>{const{d3Zoom:r,maxZoom:o}=t();r?.scaleExtent([n,o]),e({minZoom:n})},setMaxZoom:n=>{const{d3Zoom:r,minZoom:o}=t();r?.scaleExtent([o,n]),e({maxZoom:n})},setTranslateExtent:n=>{t().d3Zoom?.translateExtent(n),e({translateExtent:n})},resetSelectedElements:()=>{const{edges:n,getNodes:r}=t();va({changedNodes:r().filter((e=>e.selected)).map((e=>za(e.id,!1))),changedEdges:n.filter((e=>e.selected)).map((e=>za(e.id,!1))),get:t,set:e})},setNodeExtent:n=>{const{nodeInternals:r}=t();r.forEach((e=>{e.positionAbsolute=Po(e.position,n)})),e({nodeExtent:n,nodeInternals:new Map(r)})},panBy:e=>{const{transform:n,width:r,height:o,d3Zoom:i,d3Selection:a,translateExtent:s}=t();if(!i||!a||!e.x&&!e.y)return!1;const l=Wr.translate(n[0]+e.x,n[1]+e.y).scale(n[2]),c=[[0,0],[r,o]],u=i?.constrain()(l,c,s);i.transform(a,u);return n[0]!==u.x||n[1]!==u.y||n[2]!==u.k},cancelConnection:()=>e({connectionNodeId:js.connectionNodeId,connectionHandleId:js.connectionHandleId,connectionHandleType:js.connectionHandleType,connectionStatus:js.connectionStatus,connectionStartHandle:js.connectionStartHandle,connectionEndHandle:js.connectionEndHandle}),reset:()=>e({...js})})),Object.is),$s=({children:e})=>{const t=k.useRef(null);return t.current||(t.current=Bs()),S.createElement(uo,{value:t.current},e)};$s.displayName="ReactFlowProvider";const Vs=({children:e})=>k.useContext(co)?S.createElement(S.Fragment,null,e):S.createElement($s,null,e);Vs.displayName="ReactFlowWrapper";const Us={input:Vi,default:Bi,output:Hi,group:Wi},Hs={default:hi,straight:ui,step:ci,smoothstep:li,simplebezier:ri},Ws=[0,0],qs=[15,15],Ys={x:0,y:0,zoom:1},Xs={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},Ks=k.forwardRef((({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:o,nodeTypes:i=Us,edgeTypes:a=Hs,onNodeClick:s,onEdgeClick:l,onInit:c,onMove:u,onMoveStart:d,onMoveEnd:f,onConnect:p,onConnectStart:h,onConnectEnd:m,onClickConnectStart:g,onClickConnectEnd:y,onNodeMouseEnter:v,onNodeMouseMove:b,onNodeMouseLeave:w,onNodeContextMenu:x,onNodeDoubleClick:k,onNodeDragStart:E,onNodeDrag:_,onNodeDragStop:C,onNodesDelete:O,onEdgesDelete:N,onSelectionChange:P,onSelectionDragStart:R,onSelectionDrag:A,onSelectionDragStop:M,onSelectionContextMenu:T,onSelectionStart:D,onSelectionEnd:I,connectionMode:L=Ko.Strict,connectionLineType:z=Zo.Bezier,connectionLineStyle:F,connectionLineComponent:j,connectionLineContainerStyle:B,deleteKeyCode:$="Backspace",selectionKeyCode:V="Shift",selectionOnDrag:U=!1,selectionMode:H=Qo.Full,panActivationKeyCode:W="Space",multiSelectionKeyCode:q=(Ho()?"Meta":"Control"),zoomActivationKeyCode:Y=(Ho()?"Meta":"Control"),snapToGrid:X=!1,snapGrid:K=qs,onlyRenderVisibleElements:G=!1,selectNodesOnDrag:Q=!0,nodesDraggable:Z,nodesConnectable:J,nodesFocusable:ee,nodeOrigin:te=Ws,edgesFocusable:ne,edgesUpdatable:re,elementsSelectable:oe,defaultViewport:ie=Ys,minZoom:ae=.5,maxZoom:se=2,translateExtent:le=Fs,preventScrolling:ce=!0,nodeExtent:ue,defaultMarkerColor:fe="#b1b1b7",zoomOnScroll:pe=!0,zoomOnPinch:he=!0,panOnScroll:me=!1,panOnScrollSpeed:ge=.5,panOnScrollMode:ye=Go.Free,zoomOnDoubleClick:ve=!0,panOnDrag:be=!0,onPaneClick:we,onPaneMouseEnter:xe,onPaneMouseMove:ke,onPaneMouseLeave:Se,onPaneScroll:Ee,onPaneContextMenu:_e,children:Ce,onEdgeContextMenu:Oe,onEdgeDoubleClick:Ne,onEdgeMouseEnter:Pe,onEdgeMouseMove:Re,onEdgeMouseLeave:Ae,onEdgeUpdate:Me,onEdgeUpdateStart:Te,onEdgeUpdateEnd:De,onReconnect:Ie,onReconnectStart:Le,onReconnectEnd:ze,reconnectRadius:Fe=10,edgeUpdaterRadius:je=10,onNodesChange:Be,onEdgesChange:$e,noDragClassName:Ve="nodrag",noWheelClassName:Ue="nowheel",noPanClassName:He="nopan",fitView:We=!1,fitViewOptions:qe,connectOnClick:Ye=!0,attributionPosition:Xe,proOptions:Ke,defaultEdgeOptions:Ge,elevateNodesOnSelect:Qe=!0,elevateEdgesOnSelect:Ze=!1,disableKeyboardA11y:Je=!1,autoPanOnConnect:et=!0,autoPanOnNodeDrag:tt=!0,connectionRadius:nt=20,isValidConnection:rt,onError:ot,style:it,id:at,nodeDragThreshold:st,...lt},ct)=>{const ut=at||"1";return S.createElement("div",{...lt,style:{...it,...Xs},ref:ct,className:de(["react-flow",o]),"data-testid":"rf__wrapper",id:at},S.createElement(Vs,null,S.createElement(zs,{onInit:c,onMove:u,onMoveStart:d,onMoveEnd:f,onNodeClick:s,onEdgeClick:l,onNodeMouseEnter:v,onNodeMouseMove:b,onNodeMouseLeave:w,onNodeContextMenu:x,onNodeDoubleClick:k,nodeTypes:i,edgeTypes:a,connectionLineType:z,connectionLineStyle:F,connectionLineComponent:j,connectionLineContainerStyle:B,selectionKeyCode:V,selectionOnDrag:U,selectionMode:H,deleteKeyCode:$,multiSelectionKeyCode:q,panActivationKeyCode:W,zoomActivationKeyCode:Y,onlyRenderVisibleElements:G,selectNodesOnDrag:Q,defaultViewport:ie,translateExtent:le,minZoom:ae,maxZoom:se,preventScrolling:ce,zoomOnScroll:pe,zoomOnPinch:he,zoomOnDoubleClick:ve,panOnScroll:me,panOnScrollSpeed:ge,panOnScrollMode:ye,panOnDrag:be,onPaneClick:we,onPaneMouseEnter:xe,onPaneMouseMove:ke,onPaneMouseLeave:Se,onPaneScroll:Ee,onPaneContextMenu:_e,onSelectionContextMenu:T,onSelectionStart:D,onSelectionEnd:I,onEdgeContextMenu:Oe,onEdgeDoubleClick:Ne,onEdgeMouseEnter:Pe,onEdgeMouseMove:Re,onEdgeMouseLeave:Ae,onReconnect:Ie??Me,onReconnectStart:Le??Te,onReconnectEnd:ze??De,reconnectRadius:Fe??je,defaultMarkerColor:fe,noDragClassName:Ve,noWheelClassName:Ue,noPanClassName:He,elevateEdgesOnSelect:Ze,rfId:ut,disableKeyboardA11y:Je,nodeOrigin:te,nodeExtent:ue}),S.createElement(ta,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:p,onConnectStart:h,onConnectEnd:m,onClickConnectStart:g,onClickConnectEnd:y,nodesDraggable:Z,nodesConnectable:J,nodesFocusable:ee,edgesFocusable:ne,edgesUpdatable:re,elementsSelectable:oe,elevateNodesOnSelect:Qe,minZoom:ae,maxZoom:se,nodeExtent:ue,onNodesChange:Be,onEdgesChange:$e,snapToGrid:X,snapGrid:K,connectionMode:L,translateExtent:le,connectOnClick:Ye,defaultEdgeOptions:Ge,fitView:We,fitViewOptions:qe,onNodesDelete:O,onEdgesDelete:N,onNodeDragStart:E,onNodeDrag:_,onNodeDragStop:C,onSelectionDrag:A,onSelectionDragStart:R,onSelectionDragStop:M,noPanClassName:He,nodeOrigin:te,rfId:ut,autoPanOnConnect:et,autoPanOnNodeDrag:tt,onError:ot,connectionRadius:nt,isValidConnection:rt,nodeDragThreshold:st}),S.createElement(Qi,{onSelectionChange:P}),Ce,S.createElement(_o,{proOptions:Ke,position:Xe}),S.createElement(la,{rfId:ut,disableKeyboardA11y:Je})))}));Ks.displayName="ReactFlow";const Gs=e=>e.getNodes();const Qs=e=>e.edges;const Zs=({id:e,x:t,y:n,width:r,height:o,style:i,color:a,strokeColor:s,strokeWidth:l,className:c,borderRadius:u,shapeRendering:d,onClick:f,selected:p})=>{const{background:h,backgroundColor:m}=i||{},g=a||h||m;return S.createElement("rect",{className:de(["react-flow__minimap-node",{selected:p},c]),x:t,y:n,rx:u,ry:u,width:r,height:o,fill:g,stroke:s,strokeWidth:l,shapeRendering:d,onClick:f?t=>f(t,e):void 0})};Zs.displayName="MiniMapNode";var Js=k.memo(Zs);const el=e=>e.nodeOrigin,tl=e=>e.getNodes().filter((e=>!e.hidden&&e.width&&e.height)),nl=e=>e instanceof Function?e:()=>e;var rl=k.memo((function({nodeStrokeColor:e="transparent",nodeColor:t="#e2e2e2",nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:o=2,nodeComponent:i=Js,onClick:a}){const s=xo(tl,ye),l=xo(el),c=nl(t),u=nl(e),d=nl(n),f="undefined"==typeof window||window.chrome?"crispEdges":"geometricPrecision";return S.createElement(S.Fragment,null,s.map((e=>{const{x:t,y:n}=xi(e,l).positionAbsolute;return S.createElement(i,{key:e.id,x:t,y:n,width:e.width,height:e.height,style:e.style,selected:e.selected,className:d(e),color:c(e),borderRadius:r,strokeColor:u(e),strokeWidth:o,shapeRendering:f,onClick:a,id:e.id})})))}));const ol=e=>{const t=e.getNodes(),n={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:n,boundingRect:t.length>0?(r=ki(t,e.nodeOrigin),o=n,Io(To(Do(r),Do(o)))):n,rfId:e.rfId};var r,o};function il({style:e,className:t,nodeStrokeColor:n="transparent",nodeColor:r="#e2e2e2",nodeClassName:o="",nodeBorderRadius:i=5,nodeStrokeWidth:a=2,nodeComponent:s,maskColor:l="rgb(240, 240, 240, 0.6)",maskStrokeColor:c="none",maskStrokeWidth:u=1,position:d="bottom-right",onClick:f,onNodeClick:p,pannable:h=!1,zoomable:m=!1,ariaLabel:g="React Flow mini map",inversePan:y=!1,zoomStep:v=10,offsetScale:b=5}){const w=ko(),x=k.useRef(null),{boundingRect:E,viewBB:_,rfId:C}=xo(ol,ye),O=e?.width??200,N=e?.height??150,P=E.width/O,R=E.height/N,A=Math.max(P,R),M=A*O,T=A*N,D=b*A,I=E.x-(M-E.width)/2-D,L=E.y-(T-E.height)/2-D,z=M+2*D,F=T+2*D,j=`react-flow__minimap-desc-${C}`,B=k.useRef(0);B.current=A,k.useEffect((()=>{if(x.current){const e=It(x.current),t=e=>{const{transform:t,d3Selection:n,d3Zoom:r}=w.getState();if("wheel"!==e.sourceEvent.type||!n||!r)return;const o=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*v,i=t[2]*Math.pow(2,o);r.scaleTo(n,i)},n=e=>{const{transform:t,d3Selection:n,d3Zoom:r,translateExtent:o,width:i,height:a}=w.getState();if("mousemove"!==e.sourceEvent.type||!n||!r)return;const s=B.current*Math.max(1,t[2])*(y?-1:1),l={x:t[0]-e.sourceEvent.movementX*s,y:t[1]-e.sourceEvent.movementY*s},c=[[0,0],[i,a]],u=Wr.translate(l.x,l.y).scale(t[2]),d=r.constrain()(u,c,o);r.transform(n,d)},r=eo().on("zoom",h?n:null).on("zoom.wheel",m?t:null);return e.call(r),()=>{e.on("zoom",null)}}}),[h,m,y,v]);const $=f?e=>{const t=Lt(e);f(e,{x:t[0],y:t[1]})}:void 0,V=p?(e,t)=>{const n=w.getState().nodeInternals.get(t);p(e,n)}:void 0;return S.createElement(Eo,{position:d,style:e,className:de(["react-flow__minimap",t]),"data-testid":"rf__minimap"},S.createElement("svg",{width:O,height:N,viewBox:`${I} ${L} ${z} ${F}`,role:"img","aria-labelledby":j,ref:x,onClick:$},g&&S.createElement("title",{id:j},g),S.createElement(rl,{onClick:V,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:o,nodeStrokeWidth:a,nodeComponent:s}),S.createElement("path",{className:"react-flow__minimap-mask",d:`M${I-D},${L-D}h${z+2*D}v${F+2*D}h${-z-2*D}z\n M${_.x},${_.y}h${_.width}v${_.height}h${-_.width}z`,fill:l,fillRule:"evenodd",stroke:c,strokeWidth:u,pointerEvents:"none"})))}il.displayName="MiniMap";var al,sl=k.memo(il);function ll({color:e,dimensions:t,lineWidth:n}){return S.createElement("path",{stroke:e,strokeWidth:n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})}function cl({color:e,radius:t}){return S.createElement("circle",{cx:t,cy:t,r:t,fill:e})}!function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"}(al||(al={}));const ul={[al.Dots]:"#91919a",[al.Lines]:"#eee",[al.Cross]:"#e2e2e2"},dl={[al.Dots]:1,[al.Lines]:1,[al.Cross]:6},fl=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function pl({id:e,variant:t=al.Dots,gap:n=20,size:r,lineWidth:o=1,offset:i=2,color:a,style:s,className:l}){const c=k.useRef(null),{transform:u,patternId:d}=xo(fl,ye),f=a||ul[t],p=r||dl[t],h=t===al.Dots,m=t===al.Cross,g=Array.isArray(n)?n:[n,n],y=[g[0]*u[2]||1,g[1]*u[2]||1],v=p*u[2],b=m?[v,v]:y,w=h?[v/i,v/i]:[b[0]/i,b[1]/i];return S.createElement("svg",{className:de(["react-flow__background",l]),style:{...s,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:c,"data-testid":"rf__background"},S.createElement("pattern",{id:d+e,x:u[0]%y[0],y:u[1]%y[1],width:y[0],height:y[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${w[0]},-${w[1]})`},h?S.createElement(cl,{color:f,radius:v/i}):S.createElement(ll,{dimensions:b,color:f,lineWidth:o})),S.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${d+e})`}))}pl.displayName="Background";var hl=k.memo(pl);const ml=({src_nid:e,src_ioid:t,trg_nid:n,trg_ioid:r})=>[`${e}:${t}`,`${n}:${r}`].sort().join("--");function gl(e){console.error("Unhandled case: "+e)}class yl{constructor(e){this.iostore=e}get connected(){return this.iostore.getState().connected}set connected(e){this.iostore.setState({connected:e})}get does_trigger(){return this.iostore.getState().does_trigger}set does_trigger(e){this.iostore.setState({does_trigger:e})}get full_id(){return this.iostore.getState().full_id}set full_id(e){this.iostore.setState({full_id:e})}get id(){return this.iostore.getState().id}set id(e){this.iostore.setState({id:e})}get is_input(){return this.iostore.getState().is_input}set is_input(e){this.iostore.setState({is_input:e})}get name(){return this.iostore.getState().name}set name(e){this.iostore.setState({name:e})}get node(){return this.iostore.getState().node}set node(e){this.iostore.setState({node:e})}get type(){return this.iostore.getState().type}set type(e){this.iostore.setState({type:e})}get value(){return this.iostore.valuestore.getState().preview}set value(e){this.iostore.updateValueStore({preview:e})}get fullvalue(){return this.iostore.valuestore.getState().full}set fullvalue(e){this.iostore.updateValueStore({full:e})}get render_options(){return this.iostore.getState().render_options}set render_options(e){this.iostore.setState({render_options:e})}get hidden(){return this.iostore.getState().hidden}set hidden(e){this.iostore.setState({hidden:e})}get try_get_full_value(){return this.iostore.getState().try_get_full_value}get set_hidden(){return this.iostore.getState().set_hidden}}const vl=e=>t=>{const{iostore:n,...r}=t,o=new yl(n);return e({...r,io:o})},bl=e=>{const t=e.v?Number(e.v):0;if(t>1)throw new Error("Plugin version is too new");if(1===t)return e;const n=(e=>{const t=e.v?Number(e.v):0;if(t>0)throw new Error("Plugin version is too new");return e})(e);return{...n,renderpluginfactory:e=>{const t=n.renderpluginfactory?.(e)||{},r=n.RendererPlugin||{},o=Object.keys({...r,...t}),i={};for(const e of o)switch(e){case"input_renderers":const t={};for(const[e,n]of Object.entries(r.input_renderers||{}))void 0!==n&&(t[e]=vl(n));i.input_renderers=t;break;case"output_renderers":const n={};for(const[e,t]of Object.entries(r.output_renderers||{}))void 0!==t&&(n[e]=vl(t));i.output_renderers=n;break;case"handle_preview_renderers":const o={};for(const[e,t]of Object.entries(r.handle_preview_renderers||{}))void 0!==t&&(o[e]=vl(t));i.handle_preview_renderers=o;break;case"data_overlay_renderers":const a={};for(const[e,t]of Object.entries(r.data_overlay_renderers||{}))void 0!==t&&(a[e]=vl(t));i.data_overlay_renderers=a;break;case"data_preview_renderers":const s={};for(const[e,t]of Object.entries(r.data_preview_renderers||{}))void 0!==t&&(s[e]=vl(t));i.data_preview_renderers=s;break;case"data_view_renderers":const l={};for(const[e,t]of Object.entries(r.data_view_renderers||{}))void 0!==t&&(l[e]=vl(t));i.data_view_renderers=l;break;default:gl(e)}return i},v:1}},wl=0,xl=10,kl=20,Sl=30,El=xl,_l=e=>"string"==typeof e?e:e===wl?"DEBUG":e===xl?"INFO":e===kl?"WARN":e===Sl?"ERROR":"UNKNOWN";class Cl{constructor(e,t=xl){this.name=e,this.level=(e=>{if("number"==typeof e)return e;const t=e.toLowerCase();if("debug"===t)return wl;if("info"===t)return xl;if("warn"===t||"warning"===t)return kl;if("error"===t)return Sl;throw new Error(`Unknown log level: ${e}`)})(t),this._level_name=_l(t)}set_level(e){this.level=e,this._level_name=_l(e)}_fomat_message(e,...t){return`[${this.name}] ${this._level_name}: ${e} ${t.map((e=>JSON.stringify(e,function(){const e=[];return function(t,n){if("object"!=typeof n||null===n)return n;for(;e.length>0&&e.at(-1)!==this;)e.pop();return e.includes(n)?"[Circular]":(e.push(n),n)}}()))).join(" ")}`}debug(e,...t){this.level<=wl&&console.debug(this._fomat_message(e,...t))}info(e,...t){this.level<=xl&&console.info(this._fomat_message(e,...t))}warn(e,...t){this.level<=kl&&console.warn(this._fomat_message(e,...t))}error(e,...t){this.level<=Sl&&console.error(this._fomat_message(e,...t))}}const Ol=(e,t)=>{const n=e.getState();if(((e,t)=>{const n=e.properties||{};n["frontend:size"]||(n["frontend:size"]=[200,100]);const r=n["frontend:pos"];if(!r||2!==r.length||isNaN(r[0])||null===r[0]||isNaN(r[1])||null===r[1])if(t&&t.rf_instance&&null!==t.reactflowRef){const e=t.reactflowRef.getBoundingClientRect(),r=e.left+e.width/2,o=e.top+e.height/2,i=t.rf_instance.screenToFlowPosition({x:r,y:o});n["frontend:pos"]=[i.x-n["frontend:size"][0]/2,i.y-n["frontend:size"][0]/2]}else n["frontend:pos"]=[0,0];n["frontend:collapsed"]||(n["frontend:collapsed"]=!1),e.properties=n})(n,t),void 0===n.id)throw new Error("Node must have an id");const r={nodestore:e};return{position:{x:n.properties["frontend:pos"][0],y:n.properties["frontend:pos"][1]},data:r,type:"default",...n}},Nl=e=>{const t={...e},n=e=>{switch(e.type){case"add":(e=>{const t=r.getState();if(e.from_remote){let n=o.get_node(e.node.id,!1);if(!n)try{n=ue(a,e.node),o.nodesstates.set(e.node.id,n)}catch(e){return void a.logger.error(`Failed to create node store ${e}`)}const i=n.getState();a.logger.info("Add node",i.id,i.name);const s=[...t.nodes,Ol(n,a)];r.setState({nodes:s});for(const t in e.node.io){const n=e.node.io[t].id;void 0!==n&&a.worker?.get_io_value({nid:e.node.id,ioid:n})}setTimeout((()=>{a.worker?.call_hooks("node_added",{node:i.id})}),0)}})(e);break;case"update":(e=>{if(e.node.in_trigger&&(e.node.error=void 0),e.from_remote){const t=o.get_node(e.id,!1);if(!t)return void console.error("Node not found to update",e.id);t.update(e.node)}else a.worker&&a.worker.locally_update_node(e)})(e);break;case"delete":(e=>{a.logger.info("Deleting node",e.id),e.from_remote?r.getState().onNodesChange([{type:"remove",id:e.id}]):a.worker?.remove_node(e.id)})(e);break;case"error":(e=>{a.logger.error("Error",e),n({type:"update",id:e.id,node:{in_trigger:!1,error:e.error},from_remote:!0})})(e);break;case"trigger":(e=>{e.from_remote?n({type:"update",id:e.id,node:{in_trigger:!0,error:void 0},from_remote:!0}):a.worker?.trigger_node(e.id)})(e);break;default:a.logger.error("Unknown node action",e)}},r=(({on_node_change:e,on_edge_change:t,on_connect:n})=>{const r=e||(e=>{}),o=n||(e=>{}),i=U(((e,t)=>({nodes:[],edges:[],onNodesChange:n=>{e({nodes:Ia(n,t().nodes)}),r(n)},onEdgesChange:n=>{e({edges:La(n,t().edges)})},onConnect:e=>{null!=e.source&&null!=e.target&&o(e)}})));return i})({on_node_change:e=>{for(const t of e)switch(t.type){case"position":t.position&&n({type:"update",id:t.id,node:{properties:{"frontend:pos":[t.position.x,t.position.y]}},from_remote:!1});break;case"dimensions":t.dimensions&&n({type:"update",id:t.id,node:{properties:{"frontend:size":[t.dimensions.width,t.dimensions.height]}},from_remote:!1})}},on_edge_change:e=>{},on_connect:e=>{null!==e.source&&null!==e.target&&null!==e.sourceHandle&&null!==e.targetHandle&&a.worker&&a.worker.add_edge({src_nid:e.source,src_ioid:e.sourceHandle,trg_nid:e.target,trg_ioid:e.targetHandle,replace:!0})}}),o=(({})=>{const e=new Map;return{nodesstates:e,get_node:(t,n=!0)=>{const r=e.get(t);if(!r&&n){const n=e.keys();throw new Error(`Node ${t} not found, available nodes: ${Array.from(n)}`)}return r}}})({}),i={libstate:U(((e,t)=>({lib:{shelves:[]},external_worker:[],set:t=>e((e=>({...e,...t}))),get_lib:()=>t().lib,get_external_worker:()=>t().external_worker})))},a={local_settings:U(((e,t)=>({view_settings:{},update_view_settings:e=>{const t=a.local_settings.getState().view_settings,{new_obj:n,change:r}=q(t,e);r&&a.local_settings.setState((e=>({...e,view_settings:n})))}}))),local_state:U(((e,t)=>({selected_nodes:[],selected_edges:[],funcnodescontainerRef:null}))),options:t,lib:i,workermanager:void 0,workers:U(((e,t)=>({}))),workerstate:U(((e,t)=>({is_open:!1}))),render_options:U(((e,t)=>({}))),progress_state:U(((e,t)=>({message:"please select worker",status:"info",progress:0,blocking:!1}))),update_render_options:e=>{const t=a.render_options.getState(),{new_obj:n,change:r}=q(t,e);r&&a.render_options.setState(n)},worker:void 0,_unsubscribeFromWorker:void 0,set_worker:e=>{e!==a.worker&&(a._unsubscribeFromWorker&&(a._unsubscribeFromWorker(),a._unsubscribeFromWorker=void 0),e&&(a._unsubscribeFromWorker=e.state.subscribe((e=>{a.workerstate.setState(e)})),a.workerstate.setState(e.state.getState())),a.worker=e,e?.set_zustand(a))},nodespace:o,useReactFlowStore:r,on_node_action:n,on_edge_action:e=>{const t=r.getState();switch(e.type){case"add":if(e.from_remote){const n=t.edges,o=ml(e);if(n.some((e=>e.id===o)))return;const i={id:o,source:e.src_nid,target:e.trg_nid,sourceHandle:e.src_ioid,targetHandle:e.trg_ioid,className:"funcnodes-edge animated"};a.logger.info("Adding edge",i),r.setState({edges:[...n,i]}),a.worker?.get_remote_node_state(e.src_nid),a.worker?.get_remote_node_state(e.trg_nid)}break;case"delete":if(e.from_remote){const n=t.edges,o=ml(e);a.logger.info("Deleting edge",o);const i=n.filter((e=>e.id!==o));r.setState({edges:i}),a.worker?.get_remote_node_state(e.src_nid),a.worker?.get_remote_node_state(e.trg_nid)}break;default:a.logger.error("Unknown edge action",e)}},reactflowRef:null,clear_all:()=>{a.worker?.disconnect(),a.set_worker(void 0),a.workermanager?.setWorker(void 0),a.lib.libstate.getState().set({lib:{shelves:[]},external_worker:[]}),a.nodespace.nodesstates.clear(),a.useReactFlowStore.setState({nodes:[],edges:[]}),a.auto_progress()},center_node:e=>{if(!a.rf_instance)return;e=Array.isArray(e)?e:[e];const t=a.useReactFlowStore.getState().nodes.filter((t=>e.includes(t.id)));t.length>0&&a.rf_instance?.fitView({padding:.2,nodes:t})},center_all:()=>{console.log("center all",a.rf_instance),a.rf_instance?.fitView({padding:.2})},set_progress:e=>{if(""===e.message)return a.auto_progress();const t=a.progress_state.getState(),{new_obj:n,change:r}=q(t,e);r&&a.progress_state.setState(n)},auto_progress:()=>void 0===a.workermanager||a.workermanager.open?void 0===a.worker?a.set_progress({progress:0,message:"please select worker",status:"error",blocking:!1}):a.worker.is_open?void a.set_progress({progress:1,message:"running",status:"info",blocking:!1}):a.set_progress({progress:0,message:"connecting to worker",status:"info",blocking:!0}):a.set_progress({progress:0,message:"connecting to worker manager",status:"error",blocking:!1}),plugins:U(((e,t)=>({}))),add_plugin:(e,t)=>{if(void 0===t)return;const n=(e=>bl(e))(t);a.plugins.setState((t=>({...t,[e]:n})))},dev_settings:{debug:!0},logger:new Cl("fn",El)};return a};function Pl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rl}=Object.prototype,{getPrototypeOf:Al}=Object,Ml=(e=>t=>{const n=Rl.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Tl=e=>(e=e.toLowerCase(),t=>Ml(t)===e),Dl=e=>t=>typeof t===e,{isArray:Il}=Array,Ll=Dl("undefined");const zl=Tl("ArrayBuffer");const Fl=Dl("string"),jl=Dl("function"),Bl=Dl("number"),$l=e=>null!==e&&"object"==typeof e,Vl=e=>{if("object"!==Ml(e))return!1;const t=Al(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Ul=Tl("Date"),Hl=Tl("File"),Wl=Tl("Blob"),ql=Tl("FileList"),Yl=Tl("URLSearchParams"),[Xl,Kl,Gl,Ql]=["ReadableStream","Request","Response","Headers"].map(Tl);function Zl(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Il(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Jl(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const ec="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:n,tc=e=>!Ll(e)&&e!==ec;const nc=(rc="undefined"!=typeof Uint8Array&&Al(Uint8Array),e=>rc&&e instanceof rc);var rc;const oc=Tl("HTMLFormElement"),ic=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ac=Tl("RegExp"),sc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Zl(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const lc=Tl("AsyncFunction"),cc=(uc="function"==typeof setImmediate,dc=jl(ec.postMessage),uc?setImmediate:dc?((e,t)=>(ec.addEventListener("message",(({source:n,data:r})=>{n===ec&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),ec.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var uc,dc;const fc="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ec):y.nextTick||cc;var pc={isArray:Il,isArrayBuffer:zl,isBuffer:function(e){return null!==e&&!Ll(e)&&null!==e.constructor&&!Ll(e.constructor)&&jl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||jl(e.append)&&("formdata"===(t=Ml(e))||"object"===t&&jl(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&zl(e.buffer),t},isString:Fl,isNumber:Bl,isBoolean:e=>!0===e||!1===e,isObject:$l,isPlainObject:Vl,isReadableStream:Xl,isRequest:Kl,isResponse:Gl,isHeaders:Ql,isUndefined:Ll,isDate:Ul,isFile:Hl,isBlob:Wl,isRegExp:ac,isFunction:jl,isStream:e=>$l(e)&&jl(e.pipe),isURLSearchParams:Yl,isTypedArray:nc,isFileList:ql,forEach:Zl,merge:function e(){const{caseless:t}=tc(this)&&this||{},n={},r=(r,o)=>{const i=t&&Jl(n,o)||o;Vl(n[i])&&Vl(r)?n[i]=e(n[i],r):Vl(r)?n[i]=e({},r):Il(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Zl(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Zl(t,((t,r)=>{n&&jl(t)?e[r]=Pl(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Al(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ml,kindOfTest:Tl,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Il(e))return e;let t=e.length;if(!Bl(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:oc,hasOwnProperty:ic,hasOwnProp:ic,reduceDescriptors:sc,freezeMethods:e=>{sc(e,((t,n)=>{if(jl(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];jl(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Il(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Jl,window:ec,isContextDefined:tc,isSpecCompliantForm:function(e){return!!(e&&jl(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if($l(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Il(e)?[]:{};return Zl(e,((e,t)=>{const i=n(e,r+1);!Ll(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:lc,isThenable:e=>e&&($l(e)||jl(e))&&jl(e.then)&&jl(e.catch),setImmediate:cc,asap:fc},hc=[],mc=[],gc="undefined"!=typeof Uint8Array?Uint8Array:Array,yc=!1;function vc(){yc=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)hc[t]=e[t],mc[e.charCodeAt(t)]=t;mc["-".charCodeAt(0)]=62,mc["_".charCodeAt(0)]=63}function bc(e,t,n){for(var r,o,i=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(hc[(o=r)>>18&63]+hc[o>>12&63]+hc[o>>6&63]+hc[63&o]);return i.join("")}function wc(e){var t;yc||vc();for(var n=e.length,r=n%3,o="",i=[],a=16383,s=0,l=n-r;s<l;s+=a)i.push(bc(e,s,s+a>l?l:s+a));return 1===r?(t=e[n-1],o+=hc[t>>2],o+=hc[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=hc[t>>10],o+=hc[t>>4&63],o+=hc[t<<2&63],o+="="),i.push(o),i.join("")}function xc(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)}function kc(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}var Sc={}.toString,Ec=Array.isArray||function(e){return"[object Array]"==Sc.call(e)};function _c(){return Oc.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Cc(e,t){if(_c()<t)throw new RangeError("Invalid typed array length");return Oc.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Oc.prototype:(null===e&&(e=new Oc(t)),e.length=t),e}function Oc(e,t,n){if(!(Oc.TYPED_ARRAY_SUPPORT||this instanceof Oc))return new Oc(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Rc(this,e)}return Nc(this,e,t,n)}function Nc(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);Oc.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Oc.prototype:e=Ac(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!Oc.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Dc(t,n);e=Cc(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(Tc(t)){var n=0|Mc(t.length);return 0===(e=Cc(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?Cc(e,0):Ac(e,t);if("Buffer"===t.type&&Ec(t.data))return Ac(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Pc(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Rc(e,t){if(Pc(t),e=Cc(e,t<0?0:0|Mc(t)),!Oc.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Ac(e,t){var n=t.length<0?0:0|Mc(t.length);e=Cc(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Mc(e){if(e>=_c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_c().toString(16)+" bytes");return 0|e}function Tc(e){return!(null==e||!e._isBuffer)}function Dc(e,t){if(Tc(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return su(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return lu(e).length;default:if(r)return su(e).length;t=(""+t).toLowerCase(),r=!0}}function Ic(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Gc(this,t,n);case"utf8":case"utf-8":return qc(this,t,n);case"ascii":return Xc(this,t,n);case"latin1":case"binary":return Kc(this,t,n);case"base64":return Wc(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qc(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Lc(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function zc(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=Oc.from(t,r)),Tc(t))return 0===t.length?-1:Fc(e,t,n,r,o);if("number"==typeof t)return t&=255,Oc.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Fc(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Fc(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(c(e,i+f)!==c(t,f)){d=!1;break}if(d)return i}return-1}function jc(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function Bc(e,t,n,r){return cu(su(t,e.length-n),e,n,r)}function $c(e,t,n,r){return cu(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Vc(e,t,n,r){return $c(e,t,n,r)}function Uc(e,t,n,r){return cu(lu(t),e,n,r)}function Hc(e,t,n,r){return cu(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function Wc(e,t,n){return 0===t&&n===e.length?wc(e):wc(e.slice(t,n))}function qc(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=Yc)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Yc));return n}(r)}Oc.TYPED_ARRAY_SUPPORT=void 0===global.TYPED_ARRAY_SUPPORT||global.TYPED_ARRAY_SUPPORT,_c(),Oc.poolSize=8192,Oc._augment=function(e){return e.__proto__=Oc.prototype,e},Oc.from=function(e,t,n){return Nc(null,e,t,n)},Oc.TYPED_ARRAY_SUPPORT&&(Oc.prototype.__proto__=Uint8Array.prototype,Oc.__proto__=Uint8Array),Oc.alloc=function(e,t,n){return function(e,t,n,r){return Pc(t),t<=0?Cc(e,t):void 0!==n?"string"==typeof r?Cc(e,t).fill(n,r):Cc(e,t).fill(n):Cc(e,t)}(null,e,t,n)},Oc.allocUnsafe=function(e){return Rc(null,e)},Oc.allocUnsafeSlow=function(e){return Rc(null,e)},Oc.isBuffer=function(e){return null!=e&&(!!e._isBuffer||uu(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&uu(e.slice(0,0))}(e))},Oc.compare=function(e,t){if(!Tc(e)||!Tc(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},Oc.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Oc.concat=function(e,t){if(!Ec(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Oc.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Oc.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!Tc(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},Oc.byteLength=Dc,Oc.prototype._isBuffer=!0,Oc.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Lc(this,t,t+1);return this},Oc.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Lc(this,t,t+3),Lc(this,t+1,t+2);return this},Oc.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Lc(this,t,t+7),Lc(this,t+1,t+6),Lc(this,t+2,t+5),Lc(this,t+3,t+4);return this},Oc.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?qc(this,0,e):Ic.apply(this,arguments)},Oc.prototype.equals=function(e){if(!Tc(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Oc.compare(this,e)},Oc.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Oc.prototype.compare=function(e,t,n,r,o){if(!Tc(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(r,o),c=e.slice(t,n),u=0;u<s;++u)if(l[u]!==c[u]){i=l[u],a=c[u];break}return i<a?-1:a<i?1:0},Oc.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Oc.prototype.indexOf=function(e,t,n){return zc(this,e,t,n,!0)},Oc.prototype.lastIndexOf=function(e,t,n){return zc(this,e,t,n,!1)},Oc.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return jc(this,e,t,n);case"utf8":case"utf-8":return Bc(this,e,t,n);case"ascii":return $c(this,e,t,n);case"latin1":case"binary":return Vc(this,e,t,n);case"base64":return Uc(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Hc(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Oc.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Yc=4096;function Xc(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function Kc(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function Gc(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=au(e[i]);return o}function Qc(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function Zc(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Jc(e,t,n,r,o,i){if(!Tc(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function eu(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function tu(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function nu(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ru(e,t,n,r,o){return o||nu(e,0,n,4),kc(e,t,n,r,23,4),n+4}function ou(e,t,n,r,o){return o||nu(e,0,n,8),kc(e,t,n,r,52,8),n+8}Oc.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),Oc.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Oc.prototype;else{var o=t-e;n=new Oc(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},Oc.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Zc(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},Oc.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Zc(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},Oc.prototype.readUInt8=function(e,t){return t||Zc(e,1,this.length),this[e]},Oc.prototype.readUInt16LE=function(e,t){return t||Zc(e,2,this.length),this[e]|this[e+1]<<8},Oc.prototype.readUInt16BE=function(e,t){return t||Zc(e,2,this.length),this[e]<<8|this[e+1]},Oc.prototype.readUInt32LE=function(e,t){return t||Zc(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Oc.prototype.readUInt32BE=function(e,t){return t||Zc(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Oc.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Zc(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},Oc.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Zc(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Oc.prototype.readInt8=function(e,t){return t||Zc(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Oc.prototype.readInt16LE=function(e,t){t||Zc(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Oc.prototype.readInt16BE=function(e,t){t||Zc(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Oc.prototype.readInt32LE=function(e,t){return t||Zc(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Oc.prototype.readInt32BE=function(e,t){return t||Zc(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Oc.prototype.readFloatLE=function(e,t){return t||Zc(e,4,this.length),xc(this,e,!0,23,4)},Oc.prototype.readFloatBE=function(e,t){return t||Zc(e,4,this.length),xc(this,e,!1,23,4)},Oc.prototype.readDoubleLE=function(e,t){return t||Zc(e,8,this.length),xc(this,e,!0,52,8)},Oc.prototype.readDoubleBE=function(e,t){return t||Zc(e,8,this.length),xc(this,e,!1,52,8)},Oc.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Jc(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},Oc.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Jc(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Oc.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Jc(this,e,t,1,255,0),Oc.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Oc.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Jc(this,e,t,2,65535,0),Oc.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):eu(this,e,t,!0),t+2},Oc.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Jc(this,e,t,2,65535,0),Oc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):eu(this,e,t,!1),t+2},Oc.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Jc(this,e,t,4,4294967295,0),Oc.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):tu(this,e,t,!0),t+4},Oc.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Jc(this,e,t,4,4294967295,0),Oc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):tu(this,e,t,!1),t+4},Oc.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Jc(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},Oc.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Jc(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},Oc.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Jc(this,e,t,1,127,-128),Oc.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Oc.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Jc(this,e,t,2,32767,-32768),Oc.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):eu(this,e,t,!0),t+2},Oc.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Jc(this,e,t,2,32767,-32768),Oc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):eu(this,e,t,!1),t+2},Oc.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Jc(this,e,t,4,2147483647,-2147483648),Oc.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):tu(this,e,t,!0),t+4},Oc.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Jc(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Oc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):tu(this,e,t,!1),t+4},Oc.prototype.writeFloatLE=function(e,t,n){return ru(this,e,t,!0,n)},Oc.prototype.writeFloatBE=function(e,t,n){return ru(this,e,t,!1,n)},Oc.prototype.writeDoubleLE=function(e,t,n){return ou(this,e,t,!0,n)},Oc.prototype.writeDoubleBE=function(e,t,n){return ou(this,e,t,!1,n)},Oc.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!Oc.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},Oc.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Oc.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=Tc(e)?e:su(new Oc(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var iu=/[^+\/0-9A-Za-z-_]/g;function au(e){return e<16?"0"+e.toString(16):e.toString(16)}function su(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function lu(e){return function(e){var t,n,r,o,i,a;yc||vc();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new gc(3*s/4-i),r=i>0?s-4:s;var l=0;for(t=0,n=0;t<r;t+=4,n+=3)o=mc[e.charCodeAt(t)]<<18|mc[e.charCodeAt(t+1)]<<12|mc[e.charCodeAt(t+2)]<<6|mc[e.charCodeAt(t+3)],a[l++]=o>>16&255,a[l++]=o>>8&255,a[l++]=255&o;return 2===i?(o=mc[e.charCodeAt(t)]<<2|mc[e.charCodeAt(t+1)]>>4,a[l++]=255&o):1===i&&(o=mc[e.charCodeAt(t)]<<10|mc[e.charCodeAt(t+1)]<<4|mc[e.charCodeAt(t+2)]>>2,a[l++]=o>>8&255,a[l++]=255&o),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(iu,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function cu(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function uu(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function du(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}pc.inherits(du,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pc.toJSONObject(this.config),code:this.code,status:this.status}}});const fu=du.prototype,pu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{pu[e]={value:e}})),Object.defineProperties(du,pu),Object.defineProperty(fu,"isAxiosError",{value:!0}),du.from=(e,t,n,r,o,i)=>{const a=Object.create(fu);return pc.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),du.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function hu(e){return pc.isPlainObject(e)||pc.isArray(e)}function mu(e){return pc.endsWith(e,"[]")?e.slice(0,-2):e}function gu(e,t,n){return e?e.concat(t).map((function(e,t){return e=mu(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const yu=pc.toFlatObject(pc,{},null,(function(e){return/^is[A-Z]/.test(e)}));function vu(e,t,n){if(!pc.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=pc.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!pc.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&pc.isSpecCompliantForm(t);if(!pc.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(pc.isDate(e))return e.toISOString();if(!s&&pc.isBlob(e))throw new du("Blob is not supported. Use a Buffer instead.");return pc.isArrayBuffer(e)||pc.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Oc.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(pc.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(pc.isArray(e)&&function(e){return pc.isArray(e)&&!e.some(hu)}(e)||(pc.isFileList(e)||pc.endsWith(n,"[]"))&&(s=pc.toArray(e)))return n=mu(n),s.forEach((function(e,r){!pc.isUndefined(e)&&null!==e&&t.append(!0===a?gu([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!hu(e)||(t.append(gu(o,n,i),l(e)),!1)}const u=[],d=Object.assign(yu,{defaultVisitor:c,convertValue:l,isVisitable:hu});if(!pc.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!pc.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),pc.forEach(n,(function(n,i){!0===(!(pc.isUndefined(n)||null===n)&&o.call(t,n,pc.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function bu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function wu(e,t){this._pairs=[],e&&vu(e,this,t)}const xu=wu.prototype;function ku(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Su(e,t,n){if(!t)return e;const r=n&&n.encode||ku;pc.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):pc.isURLSearchParams(t)?t.toString():new wu(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}xu.append=function(e,t){this._pairs.push([e,t])},xu.toString=function(e){const t=e?function(t){return e.call(this,t,bu)}:bu;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Eu{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pc.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var _u={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cu={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:wu,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ou="undefined"!=typeof window&&"undefined"!=typeof document,Nu="object"==typeof navigator&&navigator||void 0,Pu=Ou&&(!Nu||["ReactNative","NativeScript","NS"].indexOf(Nu.product)<0),Ru="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Au=Ou&&window.location.href||"http://localhost";var Mu={...Object.freeze({__proto__:null,hasBrowserEnv:Ou,hasStandardBrowserEnv:Pu,hasStandardBrowserWebWorkerEnv:Ru,navigator:Nu,origin:Au}),...Cu};function Tu(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&pc.isArray(r)?r.length:i,s)return pc.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&pc.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&pc.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(pc.isFormData(e)&&pc.isFunction(e.entries)){const n={};return pc.forEachEntry(e,((e,r)=>{t(function(e){return pc.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Du={transitional:_u,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=pc.isObject(e);o&&pc.isHTMLForm(e)&&(e=new FormData(e));if(pc.isFormData(e))return r?JSON.stringify(Tu(e)):e;if(pc.isArrayBuffer(e)||pc.isBuffer(e)||pc.isStream(e)||pc.isFile(e)||pc.isBlob(e)||pc.isReadableStream(e))return e;if(pc.isArrayBufferView(e))return e.buffer;if(pc.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return vu(e,new Mu.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Mu.isNode&&pc.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=pc.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return vu(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(pc.isString(e))try{return(t||JSON.parse)(e),pc.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Du.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(pc.isResponse(e)||pc.isReadableStream(e))return e;if(e&&pc.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw du.from(e,du.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mu.classes.FormData,Blob:Mu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pc.forEach(["delete","get","head","post","put","patch"],(e=>{Du.headers[e]={}}));const Iu=pc.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Lu=Symbol("internals");function zu(e){return e&&String(e).trim().toLowerCase()}function Fu(e){return!1===e||null==e?e:pc.isArray(e)?e.map(Fu):String(e)}function ju(e,t,n,r,o){return pc.isFunction(r)?r.call(this,t,n):(o&&(t=n),pc.isString(t)?pc.isString(r)?-1!==t.indexOf(r):pc.isRegExp(r)?r.test(t):void 0:void 0)}let Bu=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=zu(t);if(!o)throw new Error("header name must be a non-empty string");const i=pc.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Fu(e))}const i=(e,t)=>pc.forEach(e,((e,n)=>o(e,n,t)));if(pc.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(pc.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Iu[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(pc.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=zu(e)){const n=pc.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(pc.isFunction(t))return t.call(this,e,n);if(pc.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=zu(e)){const n=pc.findKey(this,e);return!(!n||void 0===this[n]||t&&!ju(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=zu(e)){const o=pc.findKey(n,e);!o||t&&!ju(0,n[o],o,t)||(delete n[o],r=!0)}}return pc.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ju(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return pc.forEach(this,((r,o)=>{const i=pc.findKey(n,o);if(i)return t[i]=Fu(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Fu(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return pc.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&pc.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Lu]=this[Lu]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=zu(e);t[r]||(!function(e,t){const n=pc.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return pc.isArray(e)?e.forEach(r):r(e),this}};function $u(e,t){const n=this||Du,r=t||n,o=Bu.from(r.headers);let i=r.data;return pc.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Vu(e){return!(!e||!e.__CANCEL__)}function Uu(e,t,n){du.call(this,null==e?"canceled":e,du.ERR_CANCELED,t,n),this.name="CanceledError"}function Hu(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new du("Request failed with status code "+n.status,[du.ERR_BAD_REQUEST,du.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Bu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pc.reduceDescriptors(Bu.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),pc.freezeMethods(Bu),pc.inherits(Uu,du,{__CANCEL__:!0});const Wu=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},qu=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Yu=e=>(...t)=>pc.asap((()=>e(...t)));var Xu=Mu.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Mu.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Mu.origin),Mu.navigator&&/(msie|trident)/i.test(Mu.navigator.userAgent)):()=>!0,Ku=Mu.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];pc.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),pc.isString(r)&&a.push("path="+r),pc.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Gu(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Qu=e=>e instanceof Bu?{...e}:e;function Zu(e,t){t=t||{};const n={};function r(e,t,n,r){return pc.isPlainObject(e)&&pc.isPlainObject(t)?pc.merge.call({caseless:r},e,t):pc.isPlainObject(t)?pc.merge({},t):pc.isArray(t)?t.slice():t}function o(e,t,n,o){return pc.isUndefined(t)?pc.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!pc.isUndefined(t))return r(void 0,t)}function a(e,t){return pc.isUndefined(t)?pc.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Qu(e),Qu(t),0,!0)};return pc.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);pc.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Ju=e=>{const t=Zu({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Bu.from(s),t.url=Su(Gu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),pc.isFormData(r))if(Mu.hasStandardBrowserEnv||Mu.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Mu.hasStandardBrowserEnv&&(o&&pc.isFunction(o)&&(o=o(t)),o||!1!==o&&Xu(t.url))){const e=i&&a&&Ku.read(a);e&&s.set(i,e)}return t};var ed="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Ju(e);let o=r.data;const i=Bu.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Bu.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Hu((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new du("Request aborted",du.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new du("Network Error",du.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||_u;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new du(t,o.clarifyTimeoutError?du.ETIMEDOUT:du.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&pc.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),pc.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=Wu(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Wu(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Uu(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===Mu.protocols.indexOf(y)?n(new du("Unsupported protocol "+y+":",du.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const td=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof du?t:new Uu(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new du(`timeout ${t} of ms exceeded`,du.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>pc.asap(a),s}},nd=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},rd=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},od=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of rd(e))yield*nd(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},id="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ad=id&&"function"==typeof ReadableStream,sd=id&&("function"==typeof TextEncoder?(ld=new TextEncoder,e=>ld.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ld;const cd=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ud=ad&&cd((()=>{let e=!1;const t=new Request(Mu.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),dd=ad&&cd((()=>pc.isReadableStream(new Response("").body))),fd={stream:dd&&(e=>e.body)};var pd;id&&(pd=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!fd[e]&&(fd[e]=pc.isFunction(pd[e])?t=>t[e]():(t,n)=>{throw new du(`Response type '${e}' is not supported`,du.ERR_NOT_SUPPORT,n)})})));const hd=async(e,t)=>{const n=pc.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(pc.isBlob(e))return e.size;if(pc.isSpecCompliantForm(e)){const t=new Request(Mu.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return pc.isArrayBufferView(e)||pc.isArrayBuffer(e)?e.byteLength:(pc.isURLSearchParams(e)&&(e+=""),pc.isString(e)?(await sd(e)).byteLength:void 0)})(t):n};var md=id&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Ju(e);c=c?(c+"").toLowerCase():"text";let p,h=td([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&ud&&"get"!==n&&"head"!==n&&0!==(g=await hd(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(pc.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=qu(g,Wu(Yu(l)));r=od(n.body,65536,e,t)}}pc.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(p);const a=dd&&("stream"===c||"response"===c);if(dd&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=pc.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&qu(t,Wu(Yu(s),!0))||[];i=new Response(od(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let y=await fd[pc.findKey(fd,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{Hu(t,n,{data:y,headers:Bu.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new du("Network Error",du.ERR_NETWORK,e,p),{cause:t.cause||t});throw du.from(t,t&&t.code,e,p)}});const gd={http:null,xhr:ed,fetch:md};pc.forEach(gd,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const yd=e=>`- ${e}`,vd=e=>pc.isFunction(e)||null===e||!1===e;var bd=e=>{e=pc.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!vd(n)&&(r=gd[(t=String(n)).toLowerCase()],void 0===r))throw new du(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new du("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(yd).join("\n"):" "+yd(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function wd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Uu(null,e)}function xd(e){wd(e),e.headers=Bu.from(e.headers),e.data=$u.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return bd(e.adapter||Du.adapter)(e).then((function(t){return wd(e),t.data=$u.call(e,e.transformResponse,t),t.headers=Bu.from(t.headers),t}),(function(t){return Vu(t)||(wd(e),t&&t.response&&(t.response.data=$u.call(e,e.transformResponse,t.response),t.response.headers=Bu.from(t.response.headers))),Promise.reject(t)}))}const kd="1.8.4",Sd={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Sd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ed={};Sd.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new du(r(o," has been removed"+(t?" in "+t:"")),du.ERR_DEPRECATED);return t&&!Ed[o]&&(Ed[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Sd.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var _d={assertOptions:function(e,t,n){if("object"!=typeof e)throw new du("options must be an object",du.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new du("option "+i+" must be "+n,du.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new du("Unknown option "+i,du.ERR_BAD_OPTION)}},validators:Sd};const Cd=_d.validators;let Od=class{constructor(e){this.defaults=e,this.interceptors={request:new Eu,response:new Eu}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Zu(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&_d.assertOptions(n,{silentJSONParsing:Cd.transitional(Cd.boolean),forcedJSONParsing:Cd.transitional(Cd.boolean),clarifyTimeoutError:Cd.transitional(Cd.boolean)},!1),null!=r&&(pc.isFunction(r)?t.paramsSerializer={serialize:r}:_d.assertOptions(r,{encode:Cd.function,serialize:Cd.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),_d.assertOptions(t,{baseUrl:Cd.spelling("baseURL"),withXsrfToken:Cd.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&pc.merge(o.common,o[t.method]);o&&pc.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Bu.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[xd.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=xd.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Su(Gu((e=Zu(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};pc.forEach(["delete","get","head","options"],(function(e){Od.prototype[e]=function(t,n){return this.request(Zu(n||{},{method:e,url:t,data:(n||{}).data}))}})),pc.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Zu(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Od.prototype[e]=t(),Od.prototype[e+"Form"]=t(!0)}));const Nd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nd).forEach((([e,t])=>{Nd[t]=e}));const Pd=function e(t){const n=new Od(t),r=Pl(Od.prototype.request,n);return pc.extend(r,Od.prototype,n,{allOwnKeys:!0}),pc.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Zu(t,n))},r}(Du);Pd.Axios=Od,Pd.CanceledError=Uu,Pd.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Uu(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}},Pd.isCancel=Vu,Pd.VERSION=kd,Pd.toFormData=vu,Pd.AxiosError=du,Pd.Cancel=Pd.CanceledError,Pd.all=function(e){return Promise.all(e)},Pd.spread=function(e){return function(t){return e.apply(null,t)}},Pd.isAxiosError=function(e){return pc.isObject(e)&&!0===e.isAxiosError},Pd.mergeConfig=Zu,Pd.AxiosHeaders=Bu,Pd.formToJSON=e=>Tu(pc.isHTMLForm(e)?new FormData(e):e),Pd.getAdapter=bd,Pd.HttpStatusCode=Nd,Pd.default=Pd;const{Axios:Rd,AxiosError:Ad,CanceledError:Md,isCancel:Td,CancelToken:Dd,VERSION:Id,all:Ld,Cancel:zd,isAxiosError:Fd,spread:jd,toFormData:Bd,AxiosHeaders:$d,HttpStatusCode:Vd,formToJSON:Ud,getAdapter:Hd,mergeConfig:Wd}=Pd;let qd;const Yd=new Uint8Array(16);function Xd(){if(!qd&&(qd="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qd(Yd)}const Kd=[];for(let e=0;e<256;++e)Kd.push((e+256).toString(16).slice(1));var Gd={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Qd(e,t,n){if(Gd.randomUUID&&!e)return Gd.randomUUID();const r=(e=e||{}).random||(e.rng||Xd)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return Kd[e[t+0]]+Kd[e[t+1]]+Kd[e[t+2]]+Kd[e[t+3]]+"-"+Kd[e[t+4]]+Kd[e[t+5]]+"-"+Kd[e[t+6]]+Kd[e[t+7]]+"-"+Kd[e[t+8]]+Kd[e[t+9]]+"-"+Kd[e[t+10]]+Kd[e[t+11]]+Kd[e[t+12]]+Kd[e[t+13]]+Kd[e[t+14]]+Kd[e[t+15]]}(r)}class Zd{constructor(e){this.CHUNK_TIMEOUT=1e4,this.PONGDELAY=2e3,this.blobChunks={},this._hooks=new Map,this._ns_event_intercepts=new Map,this._unique_cmd_outs={},this.uuid=e.uuid,this.on_error=e.on_error||(e=>{this._zustand?.logger.error(e)}),this.messagePromises=new Map,this._local_nodeupdates=new Map,this._nodeupdatetimer=setTimeout((()=>{this.sync_local_node_updates()}),5e3),this.state=U(((e,t)=>({is_open:!1}))),e.zustand&&this.set_zustand(e.zustand),e.on_sync_complete?this.on_sync_complete=e.on_sync_complete:this.on_sync_complete=async()=>{},this._responsive=!1,this._last_pong=Date.now()-100*this.PONGDELAY,setInterval((()=>{this.is_open&&this.send({type:"ping"})}),this.PONGDELAY),setInterval((()=>{Date.now()-this._last_pong>3*this.PONGDELAY?this._responsive=!1:this._responsive=!0}),2*this.PONGDELAY);setInterval((()=>{const e=Date.now();for(const t in this.blobChunks)e-this.blobChunks[t].timestamp>this.CHUNK_TIMEOUT&&delete this.blobChunks[t]}),this.CHUNK_TIMEOUT/2)}_receive_pong(){this._last_pong=Date.now(),this._responsive=!0}set_zustand(e){e!==this._zustand&&(this._zustand=e,e.set_worker(this),this._zustand.auto_progress(),this.stepwise_fullsync())}add_hook(e,t){const n=this._hooks.get(e)||[];n.push(t),this._hooks.set(e,n);return()=>{const n=this._hooks.get(e)||[],r=n.indexOf(t);r>=0&&n.splice(r,1)}}async call_hooks(e,t){const n=[];for(const r of this._hooks.get(e)||[]){const e=r({worker:this,data:t});e instanceof Promise&&n.push(e)}await Promise.all(n)}add_ns_event_intercept(e,t){const n=this._ns_event_intercepts.get(e)||[];n.push(t),this._ns_event_intercepts.set(e,n);return()=>{const n=this._ns_event_intercepts.get(e)||[],r=n.indexOf(t);r>=0&&n.splice(r,1)}}async intercept_ns_event(e){let t=e;for(const n of this._ns_event_intercepts.get(e.event)||[])t=await n(t);return t}get is_open(){return this.state.getState().is_open}set is_open(e){this.state.setState({is_open:e})}async stepwise_fullsync(){this._zustand&&this.is_open&&(await this.sync_lib(),await this.sync_external_worker(),await this.sync_funcnodes_plugins(),await this.sync_nodespace(),await this.sync_view_state(),await this.on_sync_complete(this))}async sync_lib(){if(!this._zustand)return;if(!this.is_open)return;const e=await this._send_cmd({cmd:"get_library",wait_for_response:!0,retries:2,unique:!0});this._zustand.lib.libstate.getState().set({lib:e})}async sync_external_worker(){if(!this._zustand)return;if(!this.is_open)return;const e=await this._send_cmd({cmd:"get_worker_dependencies",wait_for_response:!0,unique:!0});this._zustand.lib.libstate.getState().set({external_worker:e})}async sync_funcnodes_plugins(){if(!this._zustand)return;if(!this.is_open)return;const e=await this._send_cmd({cmd:"get_plugin_keys",wait_for_response:!0,unique:!0,kwargs:{type:"react"}});for(const t of e){const e=await this._send_cmd({cmd:"get_plugin",wait_for_response:!0,kwargs:{key:t,type:"react"},unique:!0});if(e.js)for(const t of e.js){const e=document.createElement("script");e.text=atob(t),document.body.appendChild(e)}if(e.css)for(const t of e.css){const e=document.createElement("style");e.innerHTML=atob(t),document.head.appendChild(e)}if(void 0!==e.module){const n=atob(e.module),r=n.length,o=new Uint8Array(r);for(let e=0;e<r;e++)o[e]=n.charCodeAt(e);const i=new Blob([o],{type:"application/javascript"}),a=URL.createObjectURL(i),s=await import(a);URL.revokeObjectURL(a),this._zustand.add_plugin(t,s.default)}}}async sync_view_state(){if(!this._zustand)return;if(!this.is_open)return;const e=await this._send_cmd({cmd:"view_state",wait_for_response:!0,unique:!0});e.renderoptions&&this._zustand.update_render_options(e.renderoptions);const t=e.nodes;if(t)for(const e in t){const n={};Q(n,t[e]),this._zustand.on_node_action({type:"update",node:n,id:e,from_remote:!0})}}async sync_nodespace(){if(!this._zustand)return;if(!this.is_open)return;const e=await this._send_cmd({cmd:"get_nodes",kwargs:{with_frontend:!0},wait_for_response:!0,unique:!0});for(const t of e)this._receive_node_added(t);const t=await this._send_cmd({cmd:"get_edges",wait_for_response:!0,unique:!0});for(const e of t)this._receive_edge_added(...e)}async fullsync(){if(!this._zustand)return;if(!this.is_open)return;let e;for(;;)try{e=await this._send_cmd({cmd:"full_state",unique:!0});break}catch(e){this._zustand.logger.error("Error in fullsync",e)}this._zustand.logger.debug("Full state",e),this._zustand.lib.libstate.getState().set({lib:e.backend.lib,external_worker:e.worker_dependencies}),e.view.renderoptions&&this._zustand.update_render_options(e.view.renderoptions);const t=e.view.nodes;for(const n of e.backend.nodes){const e=t[n.id];void 0!==e&&Q(n,e),this._receive_node_added(n)}for(const t of e.backend.edges)this._receive_edge_added(...t)}async _receive_edge_added(e,t,n,r){this._zustand&&this._zustand.on_edge_action({type:"add",from_remote:!0,src_nid:e,src_ioid:t,trg_nid:n,trg_ioid:r})}async trigger_node(e){await this._send_cmd({cmd:"trigger_node",kwargs:{nid:e},wait_for_response:!1})}async add_node(e){const t=await this._send_cmd({cmd:"add_node",kwargs:{id:e}});this._receive_node_added(t)}async remove_node(e){await this._send_cmd({cmd:"remove_node",kwargs:{id:e}})}async _receive_node_added(e){this._zustand&&this._zustand.on_node_action({type:"add",node:e,id:e.id,from_remote:!0})}add_edge({src_nid:e,src_ioid:t,trg_nid:n,trg_ioid:r,replace:o=!1}){return this._send_cmd({cmd:"add_edge",kwargs:{src_nid:e,src_ioid:t,trg_nid:n,trg_ioid:r,replace:o}})}remove_edge({src_nid:e,src_ioid:t,trg_nid:n,trg_ioid:r}){return this._send_cmd({cmd:"remove_edge",kwargs:{src_nid:e,src_ioid:t,trg_nid:n,trg_ioid:r}})}async add_external_worker({module:e,cls_module:t,cls_name:n}){return await this._send_cmd({cmd:"add_external_worker",kwargs:{module:e,cls_module:t,cls_name:n}})}sync_local_node_updates(){clearTimeout(this._nodeupdatetimer),this._local_nodeupdates.forEach((async(e,t)=>{const n=await this._send_cmd({cmd:"update_node",kwargs:{nid:t,data:e},wait_for_response:!0});this._zustand&&this._zustand.on_node_action({type:"update",node:n,id:t,from_remote:!0})})),this._local_nodeupdates.clear(),this._nodeupdatetimer=setTimeout((()=>{this.sync_local_node_updates()}),200)}locally_update_node(e){const t=this._local_nodeupdates.get(e.id);if(t){const{new_obj:n,change:r}=q(t,e.node);r&&this._local_nodeupdates.set(e.id,n)}else this._local_nodeupdates.set(e.id,e.node);e.immediate&&this.sync_local_node_updates()}async get_remote_node_state(e){const t=await this._send_cmd({cmd:"get_node_state",kwargs:{nid:e},wait_for_response:!0});this._zustand&&this._zustand.on_node_action({type:"update",node:t,id:t.id,from_remote:!0})}set_io_value({nid:e,ioid:t,value:n,set_default:r=!1}){return this._send_cmd({cmd:"set_io_value",kwargs:{nid:e,ioid:t,value:n,set_default:r},wait_for_response:!0})}clear(){return this._send_cmd({cmd:"clear",unique:!0})}save(){return this._send_cmd({cmd:"save",wait_for_response:!0,unique:!0})}load(e){return this._send_cmd({cmd:"load_data",kwargs:{data:e},wait_for_response:!0}).then((()=>{this.stepwise_fullsync()}))}async get_io_value({nid:e,ioid:t}){const n=await this._send_cmd({cmd:"get_io_value",kwargs:{nid:e,ioid:t},wait_for_response:!0});return this._zustand?(this._zustand.on_node_action({type:"update",node:{io:{[t]:{value:n}}},id:e,from_remote:!0}),n):n}async get_ios_values({nid:e}){const t=await this._send_cmd({cmd:"get_ios_values",kwargs:{nid:e},wait_for_response:!0});if(!this._zustand)return t;const n={};for(const e in t)n[e]={value:t[e]};return this._zustand.on_node_action({type:"update",node:{io:n},id:e,from_remote:!0}),t}async get_runstate(){return await this._send_cmd({cmd:"get_runstate",wait_for_response:!0,unique:!0})}async _send_cmd({cmd:e,kwargs:t,as_bytes:n=!1,wait_for_response:r=!0,response_timeout:o=5e3,retries:i=2,unique:a=!1}){const s={type:"cmd",as_bytes:n,cmd:e,kwargs:t||{}};if(await new Promise((async e=>{if(this._responsive)return e();const t=setInterval((()=>{this._responsive&&(clearInterval(t),e())}),100)})),r){if(a&&void 0!==this._unique_cmd_outs[s.cmd])return this._unique_cmd_outs[s.cmd];i<0&&(i=0);const t=async()=>{let t;for(;i>=0;){const n=s.id||Qd();s.id=n;const r=new Promise(((t,r)=>{const i=setTimeout((()=>{r("Timeout@wait_for_response for "+e)}),o);this.messagePromises.set(n,{resolve:e=>{clearTimeout(i),t(e),this.messagePromises.delete(n)},reject:e=>{clearTimeout(i),r(e),this.messagePromises.delete(n)}})}));await this.send(s);try{t=await r;break}catch(e){if(0===i)throw delete this._unique_cmd_outs[s.cmd],e;i-=1;continue}}return delete this._unique_cmd_outs[s.cmd],t},n=t();return a&&(this._unique_cmd_outs[s.cmd]=n),n}return this.send(s)}async send(e){throw new Error("async send(data: any) not implemented")}async upload_file({files:e,onProgressCallback:t,root:n}){throw new Error("upload_file not implemented ")}async handle_large_message_hint({}){throw new Error("async handle_large_message_hint({}: LargeMessageHint) not implemented ")}async receive_workerevent({event:e,data:t}){switch(e){case"worker_error":if(!this._zustand)return;return this._zustand.logger.error(t.error);case"update_worker_dependencies":if(!this._zustand)return;return this._zustand.lib.libstate.getState().set({external_worker:t.worker_dependencies});case"lib_update":return void await this.sync_lib();case"fullsync":return void await this.stepwise_fullsync();case"external_worker_update":return await this.sync_lib(),void await this.sync_external_worker();case"starting":return void this.call_hooks("starting");case"stopping":return void this.call_hooks("stopping");default:console.warn("Unhandled worker event",e,t)}}async receive_nodespace_event(e){const{event:t,data:n}=await this.intercept_ns_event(e);switch(t){case"after_set_value":if(!this._zustand)return;return this._zustand.on_node_action({type:"update",node:{id:n.node,io:{[n.io]:{value:n.result}}},id:n.node,from_remote:!0});case"after_update_value_options":if(!this._zustand)return;return this._zustand.on_node_action({type:"update",node:{id:n.node,io:{[n.io]:{value_options:n.result}}},id:n.node,from_remote:!0});case"triggerstart":if(!this._zustand)return;return this._zustand.on_node_action({type:"update",node:{id:n.node,in_trigger:!0},id:n.node,from_remote:!0});case"triggerdone":if(!this._zustand)return;return this._zustand.on_node_action({type:"update",node:{id:n.node,in_trigger:!1},id:n.node,from_remote:!0});case"triggerfast":if(!this._zustand)return;return this._zustand.on_node_action({type:"update",node:{id:n.node,in_trigger:!0},id:n.node,from_remote:!0}),void setTimeout((()=>{this._zustand&&this._zustand.on_node_action({type:"update",node:{id:n.node,in_trigger:!1},id:n.node,from_remote:!0})}),50);case"node_trigger_error":if(!this._zustand)return;return this._zustand.on_node_action({type:"error",errortype:"trigger",error:n.error,id:n.node,tb:n.tb,from_remote:!0});case"node_removed":if(!this._zustand)return;return this._zustand.on_node_action({type:"delete",id:n.node,from_remote:!0}),void this.call_hooks("node_removed",{node:n.node});case"node_added":return void this._receive_node_added(n.node);case"after_disconnect":case"after_unforward":if(!n.result)return;if(!Array.isArray(n.result))return;if(4!==n.result.length)return;if(!this._zustand)return;return this._zustand.on_edge_action({type:"delete",from_remote:!0,src_nid:n.result[0],src_ioid:n.result[1],trg_nid:n.result[2],trg_ioid:n.result[3]});case"after_connect":case"after_forward":if(!n.result)return;if(!Array.isArray(n.result))return;if(4!==n.result.length)return;return this._receive_edge_added(...n.result);case"after_add_shelf":case"after_remove_shelf":if(!n.result)return;if(!this._zustand)return;return this._zustand.lib.libstate.getState().set({lib:n.result});case"progress":if(!this._zustand)return;if(n.node)return this._zustand.on_node_action({type:"update",node:{id:n.node,progress:n.info},id:n.node,from_remote:!0});console.warn("Unhandled nodepsace event",t,n);break;default:console.warn("Unhandled nodepsace event",t,n)}}async add_lib(e,t){return await this._send_cmd({cmd:"add_package_dependency",kwargs:{name:e,version:t},wait_for_response:!1})}async remove_lib(e){return await this._send_cmd({cmd:"remove_package_dependency",kwargs:{name:e},wait_for_response:!1})}async receive(e){let t;switch(this._last_pong=Date.now(),this._responsive=!0,e.type){case"pong":return void this._receive_pong();case"nsevent":return await this.receive_nodespace_event(e);case"result":if(t=e.id&&this.messagePromises.get(e.id),t)return t.resolve(e.result);break;case"error":if(this.on_error(e.tb+"\n"+e.error),t=e.id&&this.messagePromises.get(e.id),t)return t.reject(e.error);break;case"progress":if(!this._zustand)return;this._zustand.set_progress(e);break;case"workerevent":return await this.receive_workerevent(e);case"large_message":return await this.handle_large_message_hint(e);default:console.warn("Unhandled message",e)}}async onbytes(e){try{const t=new TextDecoder("utf-8").decode(e),n=t.indexOf("\r\n\r\n");if(-1===n)return void console.error("Header terminator not found for:\n",t);const r=t.substring(0,n+4),o=e.slice(n+4),i=r.split(";"),a={};if(i.forEach((e=>{const[t,n]=e.split("=");a[t.trim()]=n.trim()})),!a.chunk||!a.msgid)return void console.error("Header missing required fields chunk or msgid",a);const[s,l]=a.chunk.split("/"),c=a.msgid;if("1"===s&&"1"===l)return this.recieve_bytes(a,o);if(this.blobChunks[c]||(this.blobChunks[c]={chunks:Array.from({length:parseInt(l)},(()=>null)),timestamp:Date.now()}),this.blobChunks[c].chunks.length!==parseInt(l))return void console.error("Total chunks mismatch");if(this.blobChunks[c].chunks[parseInt(s)-1]=e,this.blobChunks[c].chunks.every((e=>null!==e))){const e=new Uint8Array(this.blobChunks[c].chunks.reduce(((e,t)=>e.concat(Array.from(t))),[]));this.recieve_bytes(a,e),delete this.blobChunks[c]}}catch(t){return void console.error("Websocketworker: onbytes error",t,e)}}async recieve_bytes(e,t){const{type:n}=e;if("io_value"===n){if(!this._zustand)return;const{node:n,io:r,preview:o,mime:i}=e,a=o?"value":"fullvalue";n&&r||console.error("Invalid io_value message",e);const s=ie({data:t,mime:i||"application/octet-stream"});this._zustand.on_node_action({type:"update",node:{id:n,io:{[r]:{[a]:s}}},id:n,from_remote:!0})}else if("result"==n){const n=e.id&&this.messagePromises.get(e.id);n&&n.resolve({bytes:t,header:e})}else console.warn("Unhandled bytes message",e)}disconnect(){}onclose(){this.is_open=!1,this._zustand&&this._zustand.auto_progress()}async reconnect(){}async stop(){await this._send_cmd({cmd:"stop_worker",wait_for_response:!1});const e=this.onclose.bind(this);this.onclose=()=>{e(),this._zustand&&(this._zustand.worker===this&&this._zustand.clear_all(),this.onclose=e)}}async get_io_full_value({nid:e,ioid:t}){const n=await this._send_cmd({cmd:"get_io_full_value",kwargs:{nid:e,ioid:t},wait_for_response:!0,as_bytes:!0});if(!this._zustand)return n;if(!this._zustand)return;const{header:r,bytes:o}=n,{mime:i}=r,a=ie({data:o,mime:i||"application/octet-stream"});return this._zustand.on_node_action({type:"update",node:{id:e,io:{[t]:{fullvalue:a}}},id:e,from_remote:!0}),n}async update_io_options({nid:e,ioid:t,options:n}){const r=await this._send_cmd({cmd:"update_io_options",kwargs:{nid:e,ioid:t,...n},wait_for_response:!0});if(!this._zustand)return r;this._zustand.on_node_action({type:"update",node:{io:{[t]:{...n}}},id:e,from_remote:!0})}async get_node_status(e){return await this._send_cmd({cmd:"get_node_state",kwargs:{nid:e},wait_for_response:!0})}async get_available_modules(){return await this._send_cmd({cmd:"get_available_modules",wait_for_response:!0,unique:!0})}async update_external_worker(e,t,n){return await this._send_cmd({cmd:"update_external_worker",kwargs:{worker_id:e,class_id:t,...n},wait_for_response:!0})}async remove_external_worker(e,t){return await this._send_cmd({cmd:"remove_external_worker",kwargs:{worker_id:e,class_id:t},wait_for_response:!0})}async export({withFiles:e=!1}){return await this._send_cmd({cmd:"export_worker",wait_for_response:!0,kwargs:{with_files:e}})}async update_from_export(e){const t=this.add_hook("node_added",(async({})=>{this._zustand?.center_all()}));try{const t=await this._send_cmd({cmd:"update_from_export",kwargs:{data:e},wait_for_response:!0,response_timeout:6e5,unique:!0});return await new Promise((e=>{setTimeout((()=>{e()}),1e3)})),await this.stepwise_fullsync(),t}finally{t()}}}class Jd extends Zd{constructor(e){super(e),this._websocket=null,this.reconnectAttempts=0,this.maxReconnectAttempts=999,this.initialTimeout=200,this.maxTimeout=5e3,this._reconnect=!0,this._url=e.url,new Promise((e=>{this.connect(),e(null)})),this._zustand&&this._zustand.auto_progress()}connect(){this._zustand?.logger.info("Connecting to websocket"),this.is_open=!1,this._websocket=new WebSocket(this._url),this._websocket.onopen=()=>{this.onopen()},this._websocket.onclose=()=>{this.onclose()},this._websocket.onerror=()=>{this.on_ws_error()},this._websocket.onmessage=e=>{"string"==typeof e.data?this.onmessage(e.data):e.data instanceof Blob&&e.data.arrayBuffer().then((e=>{const t=new Uint8Array(e);this.onbytes(t)}))}}calculateReconnectTimeout(){return Math.min(this.initialTimeout*Math.pow(2,this.reconnectAttempts),this.maxTimeout)}auto_reconnect(){if(this.reconnectAttempts<this.maxReconnectAttempts){let e=this.calculateReconnectTimeout();this._zustand?.logger.info(`Attempting to reconnect in ${e} ms`),setTimeout((()=>{this._websocket&&this._websocket.readyState===WebSocket.OPEN||(this.reconnectAttempts++,this.connect())}),e)}else this._zustand?.logger.warn("Maximum reconnect attempts reached. Giving up.")}async onmessage(e){try{const t=JSON.parse(e);this._zustand?.logger.debug(`Recieved data of length: ${e.length} and data"`,t),await this.receive(t)}catch(t){return void console.error("Websocketworker: onmessage JSON.parse error",t,e)}}get http_protocol(){return this.secure_url?"https":"http"}get secure_url(){return this._url.startsWith("wss")}get url_wo_protocol(){return this._url.substring(this.secure_url?6:5)}get http_url(){var e=this.http_protocol+"://"+this.url_wo_protocol;return"/"!==e[e.length-1]&&(e+="/"),e}get_io_subscription_url({node_id:e,io_id:t,stream:n}){let r=this.http_url+`node/${e}/io/${t}/value`;return n&&(r+="/stream"),r}async upload_file({files:e,onProgressCallback:t,root:n}){const r=`${this.http_url}upload/`,o=new FormData,i=Array.isArray(e)?e:Array.from(e);for(const e of i){const t=e.webkitRelativePath||e.name,r=n?`${n}/${t}`:t;o.append("file",e,r)}try{return(await Pd.post(r,o,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:e=>{t&&t(e.loaded,e.total)}})).data.file}catch(e){throw new Error("Failed to upload file")}}async handle_large_message_hint({msg_id:e}){const t=this.http_url+"message/"+e,n=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}}),r=await n.json();this.receive(r)}onopen(){this._zustand?.logger.info("Websocket opened"),this.is_open=!0,this._zustand&&this._zustand.auto_progress(),this.reconnectAttempts=0,this.stepwise_fullsync()}onclose(){this._zustand?.logger.info("Websocket closed"),super.onclose(),this._reconnect&&(this._zustand?.logger.info("Websocket closed,reconnecting"),this.auto_reconnect())}on_ws_error(){this._zustand?.logger.warn("Websocket error"),this._websocket?this._websocket.close():this.auto_reconnect()}async send_large_message(e){const t=`${this.http_url}message/`;await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:e})}async send(e){if(!this._websocket||this._websocket.readyState!==WebSocket.OPEN)return void this._zustand?.logger.warn("Websocket not connected");const t=JSON.stringify(e);if(new Blob([t]).size>1e6)return this._zustand?.logger.info("Data too large, sending via http"),await this.send_large_message(t);this._zustand?.logger.debug("Sending data",e),this._websocket.send(t)}async stop(){await super.stop(),this._reconnect=!1}close(){this._websocket&&this._websocket.close()}disconnect(){super.disconnect(),this._reconnect=!1,this.close()}async reconnect(){await super.reconnect(),this._reconnect=!0,!this._websocket||(this._zustand?.logger.info("Reconnecting"),this._websocket.readyState!==WebSocket.OPEN&&this._websocket.readyState!==WebSocket.CONNECTING||(this._websocket.readyState===WebSocket.CONNECTING&&await new Promise(((e,t)=>{if(null===this._websocket)return;let n=setTimeout((()=>{t("Timeout@reconnect")}),2e3);this._websocket.addEventListener("open",(()=>{clearTimeout(n),e(null)}),{once:!0}),this._websocket.readyState===WebSocket.OPEN&&(clearTimeout(n),e(null))})),this._websocket.readyState!==WebSocket.OPEN))?this.connect():this.stepwise_fullsync()}}class ef{constructor(e,t){this.ws=null,this.reconnectAttempts=0,this.maxReconnectAttempts=999,this.initialTimeout=200,this.maxTimeout=2e3,this.wsuri=e,this.zustand=t,this.workers={},this.on_setWorker=e=>{this.zustand.set_worker(e)},this.connect()}get open(){return this.ws?.readyState===WebSocket.OPEN}connect(){this.zustand.set_progress({progress:0,message:"connecting to worker manager",status:"info",blocking:!0}),this.zustand.logger.info("Connecting to websocket:",this.wsuri),this.ws=new WebSocket(this.wsuri),this.ws.onopen=()=>{this.onopen()},this.ws.onclose=()=>{this.onclose()},this.ws.onerror=()=>{this.on_ws_error()},this.ws.onmessage=e=>{"string"==typeof e.data?this.onmessage(e.data):console.error("WorkerManager: onmessage event.data is not a string",typeof e.data)},this.connectionTimeout=setTimeout((()=>{this.ws?.readyState!==WebSocket.OPEN&&this.on_ws_error()}),5e3)}on_ws_error(){console.warn("Websocket error"),this.ws?this.ws.close():this.reconnect()}onopen(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=void 0),this.zustand.auto_progress(),this.ws&&this.ws.send("worker_status");const e=window.localStorage.getItem("funcnodes__active_worker");e&&this.set_active(e)}onmessage(e){try{let t=JSON.parse(e);if("worker_status"===t.type){const e={};for(let n of t.active)n.active=!0,e[n.uuid]=n;for(let n of t.inactive)n.active=!1,e[n.uuid]=n;return void this.zustand.workers.setState(e)}if("set_worker"===t.type){if("WSWorker"===t.data.type){let e="ws"+(t.data.ssl?"s":"")+"://"+t.data.host+":"+t.data.port;this.setWorker(this.workers[t.data.uuid]||new Jd({url:e,zustand:this.zustand,uuid:t.data.uuid,on_sync_complete:this.zustand.options.on_sync_complete}))}else this.zustand.logger.error("WorkerManager: unknown worker type",t);return}if("progress"===t.type)return void this.zustand.set_progress(t);this.zustand.logger.error("WorkerManager: unknown message",t)}catch(t){return void console.error("WorkerManager: onmessage JSON.parse error",t,e)}}setWorker(e){for(let t in this.workers)t!==e?.uuid&&this.workers[t].disconnect();void 0!==e&&(this.workers[e.uuid]=e,e.reconnect()),window.localStorage.setItem("funcnodes__active_worker",e?.uuid||""),void 0!==this.zustand.worker&&this.zustand.clear_all(),this.zustand.set_worker(e),this.on_setWorker(e)}async restart_worker(e){this.ws?.send(JSON.stringify({type:"restart_worker",workerid:e}))}calculateReconnectTimeout(){return Math.min(this.initialTimeout*Math.pow(2,this.reconnectAttempts),this.maxTimeout)}reconnect(){if(this.reconnectAttempts<this.maxReconnectAttempts){let e=this.calculateReconnectTimeout();this.zustand.logger.info(`Attempting to reconnect in ${e} ms`),setTimeout((()=>{this.ws&&this.ws.readyState===WebSocket.OPEN||(this.reconnectAttempts++,this.connect())}),e)}else this.zustand.logger.warn("Maximum reconnect attempts reached. Giving up.")}onclose(){this.zustand.logger.warn("WorkerManager: onclose"),this.reconnect()}set_active(e){this.ws&&this.ws.send(JSON.stringify({type:"set_active",workerid:e}))}new_worker({name:e,reference:t,copyLib:n,copyNS:r}){e||(e=void 0),n||(n=!1),r||(r=!1),t||(t=void 0,n=!1,r=!1),this.ws&&this.ws.send(JSON.stringify({type:"new_worker",kwargs:{name:e,reference:t,copyLib:n,copyNS:r}}))}}function tf(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function nf(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function rf(...e){return t=>{let n=!1;const r=e.map((e=>{const r=nf(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():nf(e[t],null)}}}}function of(...e){return k.useCallback(rf(...e),e)}var af,sf,lf={exports:{}},cf={};var uf=(sf||(sf=1,lf.exports=function(){if(af)return cf;af=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return cf.Fragment=t,cf.jsx=n,cf.jsxs=n,cf}()),lf.exports);function df(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>k.createContext(e)));return function(n){const r=n?.[e]||t;return k.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=k.createContext(r),i=n.length;n=[...n,r];const a=t=>{const{scope:n,children:r,...a}=t,s=n?.[e]?.[i]||o,l=k.useMemo((()=>a),Object.values(a));return uf.jsx(s.Provider,{value:l,children:r})};return a.displayName=t+"Provider",[a,function(n,a){const s=a?.[e]?.[i]||o,l=k.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},ff(r,...t)]}function ff(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return k.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var pf=Boolean(globalThis?.document)?k.useLayoutEffect:()=>{},hf=E["useId".toString()]||(()=>{}),mf=0;function gf(e){const[t,n]=k.useState(hf());return pf((()=>{n((e=>e??String(mf++)))}),[e]),e||(t?`radix-${t}`:"")}function yf(e){const t=k.useRef(e);return k.useEffect((()=>{t.current=e})),k.useMemo((()=>(...e)=>t.current?.(...e)),[])}function vf({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=function({defaultProp:e,onChange:t}){const n=k.useState(e),[r]=n,o=k.useRef(r),i=yf(t);return k.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=yf(n);return[a,k.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}var bf=k.forwardRef(((e,t)=>{const{children:n,...r}=e,o=k.Children.toArray(n),i=o.find(kf);if(i){const e=i.props.children,n=o.map((t=>t===i?k.Children.count(e)>1?k.Children.only(null):k.isValidElement(e)?e.props.children:null:t));return uf.jsx(wf,{...r,ref:t,children:k.isValidElement(e)?k.cloneElement(e,void 0,n):null})}return uf.jsx(wf,{...r,ref:t,children:n})}));bf.displayName="Slot";var wf=k.forwardRef(((e,t)=>{const{children:n,...r}=e;if(k.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==k.Fragment&&(o.ref=t?rf(t,e):e),k.cloneElement(n,o)}return k.Children.count(n)>1?k.Children.only(null):null}));wf.displayName="SlotClone";var xf=({children:e})=>uf.jsx(uf.Fragment,{children:e});function kf(e){return k.isValidElement(e)&&e.type===xf}var Sf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=k.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?bf:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),uf.jsx(i,{...o,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Ef(e,t){e&&so.flushSync((()=>e.dispatchEvent(t)))}var _f,Cf="dismissableLayer.update",Of="dismissableLayer.pointerDownOutside",Nf="dismissableLayer.focusOutside",Pf=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rf=k.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=k.useContext(Pf),[u,d]=k.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=k.useState({}),h=of(t,(e=>d(e))),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),v=u?m.indexOf(u):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,w=v>=y,x=function(e,t=globalThis?.document){const n=yf(e),r=k.useRef(!1),o=k.useRef((()=>{}));return k.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Tf(Of,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));w&&!n&&(o?.(e),a?.(e),e.defaultPrevented||s?.())}),f),S=function(e,t=globalThis?.document){const n=yf(e),r=k.useRef(!1);return k.useEffect((()=>{const e=e=>{if(e.target&&!r.current){Tf(Nf,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(i?.(e),a?.(e),e.defaultPrevented||s?.())}),f);return function(e,t=globalThis?.document){const n=yf(e);k.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{v===c.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),k.useEffect((()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(_f=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Mf(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=_f)}}),[u,f,n,c]),k.useEffect((()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Mf())}),[u,c]),k.useEffect((()=>{const e=()=>p({});return document.addEventListener(Cf,e),()=>document.removeEventListener(Cf,e)}),[]),uf.jsx(Sf.div,{...l,ref:h,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:tf(e.onFocusCapture,S.onFocusCapture),onBlurCapture:tf(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:tf(e.onPointerDownCapture,x.onPointerDownCapture)})}));Rf.displayName="DismissableLayer";var Af=k.forwardRef(((e,t)=>{const n=k.useContext(Pf),r=k.useRef(null),o=of(t,r);return k.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),uf.jsx(Sf.div,{...e,ref:o})}));function Mf(){const e=new CustomEvent(Cf);document.dispatchEvent(e)}function Tf(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ef(o,i):o.dispatchEvent(i)}Af.displayName="DismissableLayerBranch";var Df="focusScope.autoFocusOnMount",If="focusScope.autoFocusOnUnmount",Lf={bubbles:!1,cancelable:!0},zf=k.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=k.useState(null),c=yf(o),u=yf(i),d=k.useRef(null),f=of(t,(e=>l(e))),p=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:$f(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||$f(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&$f(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),k.useEffect((()=>{if(s){Vf.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Df,Lf);s.addEventListener(Df,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if($f(r,{select:t}),document.activeElement!==n)return}((e=Ff(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&$f(s))}return()=>{s.removeEventListener(Df,c),setTimeout((()=>{const e=new CustomEvent(If,Lf);s.addEventListener(If,u),s.dispatchEvent(e),e.defaultPrevented||$f(t??document.body,{select:!0}),s.removeEventListener(If,u),Vf.remove(p)}),0)}}var e}),[s,c,u,p]);const h=k.useCallback((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Ff(e),n=jf(t,e),r=jf(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&$f(i,{select:!0})):(e.preventDefault(),n&&$f(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return uf.jsx(Sf.div,{tabIndex:-1,...a,ref:f,onKeyDown:h})}));function Ff(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jf(e,t){for(const n of e)if(!Bf(n,{upTo:t}))return n}function Bf(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function $f(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}zf.displayName="FocusScope";var Vf=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Uf(e,t),e.unshift(t)},remove(t){e=Uf(e,t),e[0]?.resume()}}}();function Uf(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Hf=k.forwardRef(((e,t)=>{const{container:n,...r}=e,[o,i]=k.useState(!1);pf((()=>i(!0)),[]);const a=n||o&&globalThis?.document?.body;return a?lo.createPortal(uf.jsx(Sf.div,{...r,ref:t}),a):null}));Hf.displayName="Portal";var Wf=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=k.useState(),r=k.useRef({}),o=k.useRef(e),i=k.useRef("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return k.useReducer(((e,n)=>t[e][n]??e),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect((()=>{const e=qf(r.current);i.current="mounted"===s?e:"none"}),[s]),pf((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=qf(t);if(e)l("MOUNT");else if("none"===a||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),pf((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=qf(r.current).includes(i.animationName);if(i.target===t&&a&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(i.current=qf(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:k.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):k.Children.only(n),i=of(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?k.cloneElement(o,{ref:i}):null};function qf(e){return e?.animationName||"none"}Wf.displayName="Presence";var Yf=0;function Xf(){k.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Kf()),document.body.insertAdjacentElement("beforeend",e[1]??Kf()),Yf++,()=>{1===Yf&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Yf--}}),[])}function Kf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Gf=function(){return Gf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gf.apply(this,arguments)};function Qf(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Zf(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Jf="right-scroll-bar-position",ep="width-before-scroll-bar";function tp(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var np="undefined"!=typeof window?k.useLayoutEffect:k.useEffect,rp=new WeakMap;function op(e,t){var n,r,o,i=(n=null,r=function(t){return e.forEach((function(e){return tp(e,t)}))},(o=k.useState((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade);return np((function(){var t=rp.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach((function(e){r.has(e)||tp(e,null)})),r.forEach((function(e){n.has(e)||tp(e,o)}))}rp.set(i,e)}),[e]),i}function ip(e){return e}var ap=function(e){var t=e.sideCar,n=Qf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return k.createElement(r,Gf({},n))};ap.isSideCarExport=!0;var sp=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ip);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Gf({async:!0,ssr:!1},e),t}(),lp=function(){},cp=k.forwardRef((function(e,t){var n=k.useRef(null),r=k.useState({onScrollCapture:lp,onWheelCapture:lp,onTouchMoveCapture:lp}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,v=e.gapMode,b=Qf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,x=op([n,t]),S=Gf(Gf({},b),o);return k.createElement(k.Fragment,null,u&&k.createElement(w,{sideCar:sp,removeScrollBar:c,shards:d,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:v}),a?k.cloneElement(k.Children.only(s),Gf(Gf({},S),{ref:x})):k.createElement(y,Gf({},S,{className:l,ref:x}),s))}));cp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cp.classNames={fullWidth:ep,zeroRight:Jf};function up(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var dp=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=up())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fp=function(){var e,t=(e=dp(),function(t,n){k.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},pp={left:0,top:0,right:0,gap:0},hp=function(e){return parseInt(e||"",10)||0},mp=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return pp;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[hp(n),hp(r),hp(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},gp=fp(),yp="data-scroll-locked",vp=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(yp,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Jf," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(ep," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Jf," .").concat(Jf," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ep," .").concat(ep," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(yp,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},bp=function(){var e=parseInt(document.body.getAttribute(yp)||"0",10);return isFinite(e)?e:0},wp=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;k.useEffect((function(){return document.body.setAttribute(yp,(bp()+1).toString()),function(){var e=bp()-1;e<=0?document.body.removeAttribute(yp):document.body.setAttribute(yp,e.toString())}}),[]);var i=k.useMemo((function(){return mp(o)}),[o]);return k.createElement(gp,{styles:vp(i,!t,o,n?"":"!important")})},xp=!1;if("undefined"!=typeof window)try{var kp=Object.defineProperty({},"passive",{get:function(){return xp=!0,!0}});window.addEventListener("test",kp,kp),window.removeEventListener("test",kp,kp)}catch(e){xp=!1}var Sp=!!xp&&{passive:!1},Ep=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},_p=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Cp(e,r)){var o=Op(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Cp=function(e,t){return"v"===e?function(e){return Ep(e,"overflowY")}(t):function(e){return Ep(e,"overflowX")}(t)},Op=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Np=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pp=function(e){return[e.deltaX,e.deltaY]},Rp=function(e){return e&&"current"in e?e.current:e},Ap=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Mp=0,Tp=[];function Dp(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ip,Lp=(Ip=function(e){var t=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),o=k.useState(Mp++)[0],i=k.useState(fp)[0],a=k.useRef(e);k.useEffect((function(){a.current=e}),[e]),k.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Zf([e.lockRef.current],(e.shards||[]).map(Rp),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=k.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=Np(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=_p(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=_p(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),l=!1,c=i>0,u=0,d=0;do{var f=Op(e,a),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&Cp(e,a)&&(u+=h,d+=p),a=a instanceof ShadowRoot?a.host:a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&Math.abs(u)<1||!c&&Math.abs(d)<1)&&(l=!0),l}(p,t,e,"h"===p?l:c)}),[]),l=k.useCallback((function(e){var n=e;if(Tp.length&&Tp[Tp.length-1]===i){var r="deltaY"in n?Pp(n):Np(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(Rp).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=k.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:Dp(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),u=k.useCallback((function(e){n.current=Np(e),r.current=void 0}),[]),d=k.useCallback((function(t){c(t.type,Pp(t),t.target,s(t,e.lockRef.current))}),[]),f=k.useCallback((function(t){c(t.type,Np(t),t.target,s(t,e.lockRef.current))}),[]);k.useEffect((function(){return Tp.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Sp),document.addEventListener("touchmove",l,Sp),document.addEventListener("touchstart",u,Sp),function(){Tp=Tp.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,Sp),document.removeEventListener("touchmove",l,Sp),document.removeEventListener("touchstart",u,Sp)}}),[]);var p=e.removeScrollBar,h=e.inert;return k.createElement(k.Fragment,null,h?k.createElement(i,{styles:Ap(o)}):null,p?k.createElement(wp,{gapMode:e.gapMode}):null)},sp.useMedium(Ip),ap),zp=k.forwardRef((function(e,t){return k.createElement(cp,Gf({},e,{ref:t,sideCar:Lp}))}));zp.classNames=cp.classNames;var Fp=new WeakMap,jp=new WeakMap,Bp={},$p=0,Vp=function(e){return e&&(e.host||Vp(e.parentNode))},Up=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Vp(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Bp[n]||(Bp[n]=new WeakMap);var i=Bp[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Fp.get(e)||0)+1,c=(i.get(e)||0)+1;Fp.set(e,l),i.set(e,c),a.push(e),1===l&&o&&jp.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),s.clear(),$p++,function(){a.forEach((function(e){var t=Fp.get(e)-1,o=i.get(e)-1;Fp.set(e,t),i.set(e,o),t||(jp.has(e)||e.removeAttribute(r),jp.delete(e)),o||e.removeAttribute(n)})),--$p||(Fp=new WeakMap,Fp=new WeakMap,jp=new WeakMap,Bp={})}},Hp=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Up(r,o,n,"aria-hidden")):function(){return null}},Wp="Dialog",[qp,Yp]=df(Wp),[Xp,Kp]=qp(Wp),Gp=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=k.useRef(null),l=k.useRef(null),[c=!1,u]=vf({prop:r,defaultProp:o,onChange:i});return uf.jsx(Xp,{scope:t,triggerRef:s,contentRef:l,contentId:gf(),titleId:gf(),descriptionId:gf(),open:c,onOpenChange:u,onOpenToggle:k.useCallback((()=>u((e=>!e))),[u]),modal:a,children:n})};Gp.displayName=Wp;var Qp="DialogTrigger",Zp=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kp(Qp,n),i=of(t,o.triggerRef);return uf.jsx(Sf.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yh(o.open),...r,ref:i,onClick:tf(e.onClick,o.onOpenToggle)})}));Zp.displayName=Qp;var Jp="DialogPortal",[eh,th]=qp(Jp,{forceMount:void 0}),nh=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Kp(Jp,t);return uf.jsx(eh,{scope:t,forceMount:n,children:k.Children.map(r,(e=>uf.jsx(Wf,{present:n||i.open,children:uf.jsx(Hf,{asChild:!0,container:o,children:e})})))})};nh.displayName=Jp;var rh="DialogOverlay",oh=k.forwardRef(((e,t)=>{const n=th(rh,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Kp(rh,e.__scopeDialog);return i.modal?uf.jsx(Wf,{present:r||i.open,children:uf.jsx(ih,{...o,ref:t})}):null}));oh.displayName=rh;var ih=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kp(rh,n);return uf.jsx(zp,{as:bf,allowPinchZoom:!0,shards:[o.contentRef],children:uf.jsx(Sf.div,{"data-state":yh(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),ah="DialogContent",sh=k.forwardRef(((e,t)=>{const n=th(ah,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Kp(ah,e.__scopeDialog);return uf.jsx(Wf,{present:r||i.open,children:i.modal?uf.jsx(lh,{...o,ref:t}):uf.jsx(ch,{...o,ref:t})})}));sh.displayName=ah;var lh=k.forwardRef(((e,t)=>{const n=Kp(ah,e.__scopeDialog),r=k.useRef(null),o=of(t,n.contentRef,r);return k.useEffect((()=>{const e=r.current;if(e)return Hp(e)}),[]),uf.jsx(uh,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:tf(e.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:tf(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:tf(e.onFocusOutside,(e=>e.preventDefault()))})})),ch=k.forwardRef(((e,t)=>{const n=Kp(ah,e.__scopeDialog),r=k.useRef(!1),o=k.useRef(!1);return uf.jsx(uh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const i=t.target,a=n.triggerRef.current?.contains(i);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),uh=k.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Kp(ah,n),l=k.useRef(null),c=of(t,l);return Xf(),uf.jsxs(uf.Fragment,{children:[uf.jsx(zf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:uf.jsx(Rf,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":yh(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),uf.jsxs(uf.Fragment,{children:[uf.jsx(xh,{titleId:s.titleId}),uf.jsx(kh,{contentRef:l,descriptionId:s.descriptionId})]})]})})),dh="DialogTitle",fh=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kp(dh,n);return uf.jsx(Sf.h2,{id:o.titleId,...r,ref:t})}));fh.displayName=dh;var ph="DialogDescription",hh=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kp(ph,n);return uf.jsx(Sf.p,{id:o.descriptionId,...r,ref:t})}));hh.displayName=ph;var mh="DialogClose",gh=k.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kp(mh,n);return uf.jsx(Sf.button,{type:"button",...r,ref:t,onClick:tf(e.onClick,(()=>o.onOpenChange(!1)))})}));function yh(e){return e?"open":"closed"}gh.displayName=mh;var vh="DialogTitleWarning",[bh,wh]=function(e,t){const n=k.createContext(t),r=e=>{const{children:t,...r}=e,o=k.useMemo((()=>r),Object.values(r));return uf.jsx(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){const o=k.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(vh,{contentName:ah,titleName:dh,docsSlug:"dialog"}),xh=({titleId:e})=>{const t=wh(vh),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect((()=>{if(e){document.getElementById(e)||console.error(n)}}),[n,e]),null},kh=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${wh("DialogDescriptionWarning").contentName}}.`;return k.useEffect((()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)||console.warn(n)}}),[n,e,t]),null},Sh=Gp,Eh=Zp,_h=nh,Ch=oh,Oh=sh,Nh=fh,Ph=hh,Rh=gh;
11
- /*!
12
- * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
13
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
14
- * Copyright 2024 Fonticons, Inc.
15
- */
16
- function Ah(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!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:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mh(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 Th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mh(Object(n),!0).forEach((function(t){Ah(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Dh=()=>{};let Ih={},Lh={},zh=null,Fh={mark:Dh,measure:Dh};try{"undefined"!=typeof window&&(Ih=window),"undefined"!=typeof document&&(Lh=document),"undefined"!=typeof MutationObserver&&(zh=MutationObserver),"undefined"!=typeof performance&&(Fh=performance)}catch(e){}const{userAgent:jh=""}=Ih.navigator||{},Bh=Ih,$h=Lh,Vh=zh,Uh=Fh;Bh.document;const Hh=!!$h.documentElement&&!!$h.head&&"function"==typeof $h.addEventListener&&"function"==typeof $h.createElement,Wh=~jh.indexOf("MSIE")||~jh.indexOf("Trident/");var qh={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Yh=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Xh="classic",Kh="duotone",Gh=[Xh,Kh,"sharp","sharp-duotone"],Qh=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),Zh=["fak","fa-kit","fakd","fa-kit-duotone"],Jh={fak:"kit","fa-kit":"kit"},em={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},tm=["fak","fakd"],nm={kit:"fak"},rm={"kit-duotone":"fakd"},om={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},im=["fak","fa-kit","fakd","fa-kit-duotone"],am={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},sm=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],lm=[1,2,3,4,5,6,7,8,9,10],cm=lm.concat([11,12,13,14,15,16,17,18,19,20]),um=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",om.GROUP,om.SWAP_OPACITY,om.PRIMARY,om.SECONDARY].concat(lm.map((e=>"".concat(e,"x")))).concat(cm.map((e=>"w-".concat(e))));const dm="___FONT_AWESOME___",fm=16,pm="svg-inline--fa",hm="data-fa-i2svg",mm="data-fa-pseudo-element",gm="data-prefix",ym="data-icon",vm="fontawesome-i2svg",bm=["HTML","HEAD","STYLE","SCRIPT"],wm=(()=>{try{return!0}catch(e){return!1}})();function xm(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[Xh]})}const km=Th({},qh);km[Xh]=Th(Th(Th(Th({},{"fa-duotone":"duotone"}),qh[Xh]),Jh),em);const Sm=xm(km),Em=Th({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});Em[Xh]=Th(Th(Th(Th({},{duotone:"fad"}),Em[Xh]),nm),rm);const _m=xm(Em),Cm=Th({},am);Cm[Xh]=Th(Th({},Cm[Xh]),{fak:"fa-kit"});const Om=xm(Cm),Nm=Th({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});Nm[Xh]=Th(Th({},Nm[Xh]),{"fa-kit":"fak"}),xm(Nm);const Pm=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Rm="fa-layers-text",Am=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;xm(Th({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}}));const Mm=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Tm={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Dm=["kit",...um],Im=Bh.FontAwesomeConfig||{};if($h&&"function"==typeof $h.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,n]=e;const r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=$h.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(Im[n]=r)}))}const Lm={styleDefault:"solid",familyDefault:Xh,cssPrefix:"fa",replacementClass:pm,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Im.familyPrefix&&(Im.cssPrefix=Im.familyPrefix);const zm=Th(Th({},Lm),Im);zm.autoReplaceSvg||(zm.observeMutations=!1);const Fm={};Object.keys(Lm).forEach((e=>{Object.defineProperty(Fm,e,{enumerable:!0,set:function(t){zm[e]=t,jm.forEach((e=>e(Fm)))},get:function(){return zm[e]}})})),Object.defineProperty(Fm,"familyPrefix",{enumerable:!0,set:function(e){zm.cssPrefix=e,jm.forEach((e=>e(Fm)))},get:function(){return zm.cssPrefix}}),Bh.FontAwesomeConfig=Fm;const jm=[];const Bm=fm,$m={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Vm(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Um(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Hm(e){return e.classList?Um(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function Wm(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qm(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function Ym(e){return e.size!==$m.size||e.x!==$m.x||e.y!==$m.y||e.rotate!==$m.rotate||e.flipX||e.flipY}function Xm(){const e="fa",t=pm,n=Fm.cssPrefix,r=Fm.replacementClass;let o=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}let Km=!1;function Gm(){Fm.autoAddCss&&!Km&&(!function(e){if(!e||!Hh)return;const t=$h.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=$h.head.childNodes;let r=null;for(let e=n.length-1;e>-1;e--){const t=n[e],o=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=t)}$h.head.insertBefore(t,r)}(Xm()),Km=!0)}var Qm={mixout:()=>({dom:{css:Xm,insertCss:Gm}}),hooks:()=>({beforeDOMElementCreation(){Gm()},beforeI2svg(){Gm()}})};const Zm=Bh||{};Zm[dm]||(Zm[dm]={}),Zm[dm].styles||(Zm[dm].styles={}),Zm[dm].hooks||(Zm[dm].hooks={}),Zm[dm].shims||(Zm[dm].shims=[]);var Jm=Zm[dm];const eg=[],tg=function(){$h.removeEventListener("DOMContentLoaded",tg),ng=1,eg.map((e=>e()))};let ng=!1;function rg(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?Wm(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(Wm(e[n]),'" ')),"").trim()}(n),">").concat(r.map(rg).join(""),"</").concat(t,">")}function og(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Hh&&(ng=($h.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($h.readyState),ng||$h.addEventListener("DOMContentLoaded",tg));var ig=function(e,t,n,r){var o,i,a,s=Object.keys(e),l=s.length,c=t;for(void 0===n?(o=1,a=e[s[0]]):(o=0,a=n);o<l;o++)a=c(a,e[i=s[o]],i,e);return a};function ag(e){const t=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);return 1===t.length?t[0].toString(16):null}function sg(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function lg(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,o=sg(t);"function"!=typeof Jm.hooks.addPack||r?Jm.styles[e]=Th(Th({},Jm.styles[e]||{}),o):Jm.hooks.addPack(e,sg(t)),"fas"===e&&lg("fa",t)}const{styles:cg,shims:ug}=Jm,dg=Object.keys(Om),fg=dg.reduce(((e,t)=>(e[t]=Object.keys(Om[t]),e)),{});let pg=null,hg={},mg={},gg={},yg={},vg={};function bg(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r!==e||""===o||function(e){return~Dm.indexOf(e)}(o)?null:o}const wg=()=>{const e=e=>ig(cg,((t,n,r)=>(t[r]=ig(n,e,{}),t)),{});hg=e(((e,t,n)=>{if(t[3]&&(e[t[3]]=n),t[2]){t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=n}))}return e})),mg=e(((e,t,n)=>{if(e[n]=n,t[2]){t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n}))}return e})),vg=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in cg||Fm.autoFetchSvg,n=ig(ug,((e,n)=>{const r=n[0];let o=n[1];const i=n[2];return"far"!==o||t||(o="fas"),"string"==typeof r&&(e.names[r]={prefix:o,iconName:i}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:o,iconName:i}),e}),{names:{},unicodes:{}});gg=n.names,yg=n.unicodes,pg=Cg(Fm.styleDefault,{family:Fm.familyDefault})};var xg;function kg(e,t){return(hg[e]||{})[t]}function Sg(e,t){return(vg[e]||{})[t]}function Eg(e){return gg[e]||{prefix:null,iconName:null}}function _g(){return pg}xg=e=>{pg=Cg(e.styleDefault,{family:Fm.familyDefault})},jm.push(xg),wg();function Cg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=Xh}=t,r=Sm[n][e];if(n===Kh&&!e)return"fad";const o=_m[n][e]||_m[n][r],i=e in Jm.styles?e:null;return o||i||null}function Og(e){return e.sort().filter(((e,t,n)=>n.indexOf(e)===t))}function Ng(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=sm.concat(im),i=Og(e.filter((e=>o.includes(e)))),a=Og(e.filter((e=>!sm.includes(e)))),s=i.filter((e=>(r=e,!Yh.includes(e)))),[l=null]=s,c=function(e){let t=Xh;const n=dg.reduce(((e,t)=>(e[t]="".concat(Fm.cssPrefix,"-").concat(t),e)),{});return Gh.forEach((r=>{(e.includes(n[r])||e.some((e=>fg[r].includes(e))))&&(t=r)})),t}(i),u=Th(Th({},function(e){let t=[],n=null;return e.forEach((e=>{const r=bg(Fm.cssPrefix,e);r?n=r:e&&t.push(e)})),{iconName:n,rest:t}}(a)),{},{prefix:Cg(l,{family:c})});return Th(Th(Th({},u),function(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:a={}}=e,s=n===Kh,l=t.includes("fa-duotone")||t.includes("fad"),c="duotone"===a.familyDefault,u="fad"===r.prefix||"fa-duotone"===r.prefix;!s&&(l||c||u)&&(r.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab");if(!r.prefix&&Pg.includes(n)){if(Object.keys(i).find((e=>Rg.includes(e)))||a.autoFetchSvg){const e=Qh.get(n).defaultShortPrefixId;r.prefix=e,r.iconName=Sg(r.prefix,r.iconName)||r.iconName}}"fa"!==r.prefix&&"fa"!==o||(r.prefix=_g()||"fas");return r}({values:e,family:c,styles:cg,config:Fm,canonical:u,givenPrefix:r})),function(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i="fa"===t?Eg(o):{},a=Sg(r,o);o=i.iconName||a||o,r=i.prefix||r,"far"!==r||cg.far||!cg.fas||Fm.autoFetchSvg||(r="fas");return{prefix:r,iconName:o}}(n,r,u))}const Pg=Gh.filter((e=>e!==Xh||e!==Kh)),Rg=Object.keys(am).filter((e=>e!==Xh)).map((e=>Object.keys(am[e]))).flat();let Ag=[],Mg={};const Tg={},Dg=Object.keys(Tg);function Ig(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(Mg[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function Lg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Mg[e]||[]).forEach((e=>{e.apply(null,n)}))}function zg(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Tg[e]?Tg[e].apply(null,t):void 0}function Fg(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||_g();if(t)return t=Sg(n,t)||t,og(jg.definitions,n,t)||og(Jm.styles,n,t)}const jg=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(this._pullDefinitions,{});Object.keys(r).forEach((e=>{this.definitions[e]=Th(Th({},this.definitions[e]||{}),r[e]),lg(e,r[e]);const t=Om[Xh][e];t&&lg(t,r[e]),wg()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:r,iconName:o,icon:i}=n[t],a=i[2];e[r]||(e[r]={}),a.length>0&&a.forEach((t=>{"string"==typeof t&&(e[r][t]=i)})),e[r][o]=i})),e}},Bg={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Hh?(Lg("beforeI2svg",e),zg("pseudoElements2svg",e),zg("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===Fm.autoReplaceSvg&&(Fm.autoReplaceSvg=!0),Fm.observeMutations=!0,n=()=>{Ug({autoReplaceSvgRoot:t}),Lg("watch",e)},Hh&&(ng?setTimeout(n,0):eg.push(n))}},$g={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Sg(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Cg(e[0]);return{prefix:n,iconName:Sg(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Fm.cssPrefix,"-"))>-1||e.match(Pm))){const t=Ng(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||_g(),iconName:Sg(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=_g();return{prefix:t,iconName:Sg(t,e)||e}}}},Vg={noAuto:()=>{Fm.autoReplaceSvg=!1,Fm.observeMutations=!1,Lg("noAuto")},config:Fm,dom:Bg,parse:$g,library:jg,findIconDefinition:Fg,toHtml:rg},Ug=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=$h}=e;(Object.keys(Jm.styles).length>0||Fm.autoFetchSvg)&&Hh&&Fm.autoReplaceSvg&&Vg.dom.i2svg({node:t})};function Hg(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>rg(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!Hh)return;const t=$h.createElement("div");return t.innerHTML=e.html,t.children}}),e}function Wg(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:a,title:s,maskId:l,titleId:c,extra:u,watchable:d=!1}=e,{width:f,height:p}=n.found?n:t,h=tm.includes(r),m=[Fm.replacementClass,o?"".concat(Fm.cssPrefix,"-").concat(o):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let g={children:[],attributes:Th(Th({},u.attributes),{},{"data-prefix":r,"data-icon":o,class:m,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(p)})};const y=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/p*16*.0625,"em")}:{};d&&(g.attributes[hm]=""),s&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(c||Vm())},children:[s]}),delete g.attributes.title);const v=Th(Th({},g),{},{prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:a,styles:Th(Th({},y),u.styles)}),{children:b,attributes:w}=n.found&&t.found?zg("generateAbstractMask",v)||{children:[],attributes:{}}:zg("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=b,v.attributes=w,a?function(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const a=!0===i?"".concat(t,"-").concat(Fm.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Th(Th({},o),{},{id:a}),children:r}]}]}(v):function(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:a}=e;if(Ym(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};o.style=qm(Th(Th({},i),{},{"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(v)}function qg(e){const{content:t,width:n,height:r,transform:o,title:i,extra:a,watchable:s=!1}=e,l=Th(Th(Th({},a.attributes),i?{title:i}:{}),{},{class:a.classes.join(" ")});s&&(l[hm]="");const c=Th({},a.styles);Ym(o)&&(c.transform=function(e){let{transform:t,width:n=fm,height:r=fm,startCentered:o=!1}=e,i="";return i+=o&&Wh?"translate(".concat(t.x/Bm-n/2,"em, ").concat(t.y/Bm-r/2,"em) "):o?"translate(calc(-50% + ".concat(t.x/Bm,"em), calc(-50% + ").concat(t.y/Bm,"em)) "):"translate(".concat(t.x/Bm,"em, ").concat(t.y/Bm,"em) "),i+="scale(".concat(t.size/Bm*(t.flipX?-1:1),", ").concat(t.size/Bm*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}({transform:o,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=qm(c);u.length>0&&(l.style=u);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}const{styles:Yg}=Jm;function Xg(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return o=Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Fm.cssPrefix,"-").concat(Tm.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Fm.cssPrefix,"-").concat(Tm.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Fm.cssPrefix,"-").concat(Tm.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const Kg={found:!1,width:512,height:512};function Gg(e,t){let n=t;return"fa"===t&&null!==Fm.styleDefault&&(t=_g()),new Promise(((r,o)=>{if("fa"===n){const n=Eg(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&Yg[t]&&Yg[t][e]){return r(Xg(Yg[t][e]))}!function(e,t){wm||Fm.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Th(Th({},Kg),{},{icon:Fm.showMissingIcons&&e&&zg("missingIconAbstract")||{}}))}))}const Qg=()=>{},Zg=Fm.measurePerformance&&Uh&&Uh.mark&&Uh.measure?Uh:{mark:Qg,measure:Qg},Jg='FA "6.7.2"',ey=e=>{Zg.mark("".concat(Jg," ").concat(e," ends")),Zg.measure("".concat(Jg," ").concat(e),"".concat(Jg," ").concat(e," begins"),"".concat(Jg," ").concat(e," ends"))};var ty=e=>(Zg.mark("".concat(Jg," ").concat(e," begins")),()=>ey(e));const ny=()=>{};function ry(e){return"string"==typeof(e.getAttribute?e.getAttribute(hm):null)}function oy(e){return $h.createElementNS("http://www.w3.org/2000/svg",e)}function iy(e){return $h.createElement(e)}function ay(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?oy:iy)}=t;if("string"==typeof e)return $h.createTextNode(e);const r=n(e.tag);Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])}));return(e.children||[]).forEach((function(e){r.appendChild(ay(e,{ceFn:n}))})),r}const sy={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(ay(e),t)})),null===t.getAttribute(hm)&&Fm.keepOriginalSource){let e=$h.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Hm(t).indexOf(Fm.replacementClass))return sy.replace(e);const r=new RegExp("".concat(Fm.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===Fm.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const o=n.map((e=>rg(e))).join("\n");t.setAttribute(hm,""),t.innerHTML=o}};function ly(e){e()}function cy(e,t){const n="function"==typeof t?t:ny;if(0===e.length)n();else{let t=ly;"async"===Fm.mutateApproach&&(t=Bh.requestAnimationFrame||ly),t((()=>{const t=!0===Fm.autoReplaceSvg?sy.replace:sy[Fm.autoReplaceSvg]||sy.replace,r=ty("mutate");e.map(t),r(),n()}))}}let uy=!1;function dy(){uy=!0}function fy(){uy=!1}let py=null;function hy(e){if(!Vh)return;if(!Fm.observeMutations)return;const{treeCallback:t=ny,nodeCallback:n=ny,pseudoElementsCallback:r=ny,observeMutationsRoot:o=$h}=e;py=new Vh((e=>{if(uy)return;const o=_g();Um(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!ry(e.addedNodes[0])&&(Fm.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&Fm.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&ry(e.target)&&~Mm.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(gm):null,n=e.getAttribute?e.getAttribute(ym):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=Ng(Hm(e.target));e.target.setAttribute(gm,t||o),n&&e.target.setAttribute(ym,n)}else(function(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Fm.replacementClass)})(e.target)&&n(e.target)}))})),Hh&&py.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function my(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let o=Ng(Hm(e));return o.prefix||(o.prefix=_g()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=function(e,t){return(mg[e]||{})[t]}(o.prefix,e.innerText)||kg(o.prefix,ag(e.innerText))),!o.iconName&&Fm.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function gy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=my(e),i=function(e){const t=Um(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Fm.autoA11y&&(n?t["aria-labelledby"]="".concat(Fm.replacementClass,"-title-").concat(r||Vm()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=Ig("parseNodeAttributes",{},e);let s=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),r=n[0],o=n.slice(1);return r&&o.length>0&&(e[r]=o.join(":").trim()),e}),{})),n}(e):[];return Th({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:$m,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i}},a)}const{styles:yy}=Jm;function vy(e){const t="nest"===Fm.autoReplaceSvg?gy(e,{styleParser:!1}):gy(e);return~t.extra.classes.indexOf(Rm)?zg("generateLayersText",e,t):zg("generateSvgReplacementMutation",e,t)}function by(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Hh)return Promise.resolve();const n=$h.documentElement.classList,r=e=>n.add("".concat(vm,"-").concat(e)),o=e=>n.remove("".concat(vm,"-").concat(e)),i=Fm.autoFetchSvg?[...Zh,...sm]:Yh.concat(Object.keys(yy));i.includes("fa")||i.push("fa");const a=[".".concat(Rm,":not([").concat(hm,"])")].concat(i.map((e=>".".concat(e,":not([").concat(hm,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=Um(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),o("complete");const l=ty("onTree"),c=s.reduce(((e,t)=>{try{const n=vy(t);n&&e.push(n)}catch(e){wm||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{cy(n,(()=>{r("active"),r("complete"),o("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function wy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;vy(e).then((e=>{e&&cy([e],t)}))}function xy(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:Fg(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:Fg(o||{})),e(r,Th(Th({},n),{},{mask:o}))}}const ky=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=$m,symbol:r=!1,mask:o=null,maskId:i=null,title:a=null,titleId:s=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:p}=e;return Hg(Th({type:"icon"},e),(()=>(Lg("beforeDOMElementCreation",{iconDefinition:e,params:t}),Fm.autoA11y&&(a?c["aria-labelledby"]="".concat(Fm.replacementClass,"-title-").concat(s||Vm()):(c["aria-hidden"]="true",c.focusable="false")),Wg({icons:{main:Xg(p),mask:o?Xg(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:Th(Th({},$m),n),symbol:r,title:a,maskId:i,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var Sy={mixout:()=>({icon:xy(ky)}),hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=by,e.nodeCallback=wy,e)}),provides(e){e.i2svg=function(e){const{node:t=$h,callback:n=()=>{}}=e;return by(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:r,titleId:o,prefix:i,transform:a,symbol:s,mask:l,maskId:c,extra:u}=t;return new Promise(((t,d)=>{Promise.all([Gg(n,i),l.iconName?Gg(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,Wg({icons:{main:d,mask:f},prefix:i,iconName:n,transform:a,symbol:s,maskId:c,title:r,titleId:o,extra:u,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:r,transform:o,styles:i}=e;const a=qm(i);let s;return a.length>0&&(n.style=a),Ym(o)&&(s=zg("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},Ey={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return Hg({type:"layer"},(()=>{Lg("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e((e=>{Array.isArray(e)?e.map((e=>{r=r.concat(e.abstract)})):r=r.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Fm.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},_y={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return Hg({type:"counter",content:e},(()=>(Lg("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,o=Th(Th(Th({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=qm(r.styles);i.length>0&&(o.style=i);const a=[];return a.push({tag:"span",attributes:o,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(Fm.cssPrefix,"-layers-counter"),...r]}}))))}})},Cy={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=$m,title:r=null,classes:o=[],attributes:i={},styles:a={}}=t;return Hg({type:"text",content:e},(()=>(Lg("beforeDOMElementCreation",{content:e,params:t}),qg({content:e,transform:Th(Th({},$m),n),title:r,extra:{attributes:i,styles:a,classes:["".concat(Fm.cssPrefix,"-layers-text"),...o]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:r,extra:o}=t;let i=null,a=null;if(Wh){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();i=n.width/t,a=n.height/t}return Fm.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,qg({content:e.innerHTML,width:i,height:a,transform:r,title:n,extra:o,watchable:!0})])}}};const Oy=new RegExp('"',"ug"),Ny=[1105920,1112319],Py=Th(Th(Th(Th({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),Ry=Object.keys(Py).reduce(((e,t)=>(e[t.toLowerCase()]=Py[t],e)),{}),Ay=Object.keys(Ry).reduce(((e,t)=>{const n=Ry[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function My(e,t){const n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(((r,o)=>{if(null!==e.getAttribute(n))return r();const i=Um(e.children).filter((e=>e.getAttribute(mm)===t))[0],a=Bh.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(Am),c=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(i&&!l)return e.removeChild(i),r();if(l&&"none"!==u&&""!==u){const u=a.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(Ry[n]||{})[o]||Ay[n]}(s,c);const{value:f,isSecondary:p}=function(e){const t=e.replace(Oy,""),n=function(e,t){const n=e.length;let r,o=e.charCodeAt(t);return o>=55296&&o<=56319&&n>t+1&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?1024*(o-55296)+r-56320+65536:o}(t,0),r=n>=Ny[0]&&n<=Ny[1],o=2===t.length&&t[0]===t[1];return{value:ag(o?t[0]:t),isSecondary:r||o}}(u),h=l[0].startsWith("FontAwesome");let m=kg(d,f),g=m;if(h){const e=function(e){const t=yg[e],n=kg("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(f);e.iconName&&e.prefix&&(m=e.iconName,d=e.prefix)}if(!m||p||i&&i.getAttribute(gm)===d&&i.getAttribute(ym)===g)r();else{e.setAttribute(n,g),i&&e.removeChild(i);const a={iconName:null,title:null,titleId:null,prefix:null,transform:$m,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[mm]=t,Gg(m,d).then((o=>{const i=Wg(Th(Th({},a),{},{icons:{main:o,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:g,extra:s,watchable:!0})),l=$h.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=i.map((e=>rg(e))).join("\n"),e.removeAttribute(n),r()})).catch(o)}}else r()}))}function Ty(e){return Promise.all([My(e,"::before"),My(e,"::after")])}function Dy(e){return!(e.parentNode===document.head||~bm.indexOf(e.tagName.toUpperCase())||e.getAttribute(mm)||e.parentNode&&"svg"===e.parentNode.tagName)}function Iy(e){if(Hh)return new Promise(((t,n)=>{const r=Um(e.querySelectorAll("*")).filter(Dy).map(Ty),o=ty("searchPseudoElements");dy(),Promise.all(r).then((()=>{o(),fy(),t()})).catch((()=>{o(),fy(),n()}))}))}var Ly={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Iy,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=$h}=e;Fm.searchPseudoElements&&Iy(t)}}};let zy=!1;var Fy={mixout:()=>({dom:{unwatch(){dy(),zy=!0}}}),hooks:()=>({bootstrap(){hy(Ig("mutationObserverCallbacks",{}))},noAuto(){py&&py.disconnect()},watch(e){const{observeMutationsRoot:t}=e;zy?fy():hy(Ig("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const jy=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),r=n[0];let o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var By={mixout:()=>({parse:{transform:e=>jy(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=jy(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:o}=e;const i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={outer:i,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:Th({},c.outer),children:[{tag:"g",attributes:Th({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Th(Th({},t.icon.attributes),c.path)}]}]}}}};const $y={x:0,y:0,width:"100%",height:"100%"};function Vy(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var Uy={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Ng(n.split(" ").map((e=>e.trim()))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=_g()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:r,mask:o,maskId:i,transform:a}=e;const{width:s,icon:l}=r,{width:c,icon:u}=o,d=function(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:a,containerWidth:c,iconWidth:s}),f={tag:"rect",attributes:Th(Th({},$y),{},{fill:"white"})},p=l.children?{children:l.children.map(Vy)}:{},h={tag:"g",attributes:Th({},d.inner),children:[Vy(Th({tag:l.tag,attributes:Th(Th({},l.attributes),d.path)},p))]},m={tag:"g",attributes:Th({},d.outer),children:[h]},g="mask-".concat(i||Vm()),y="clip-".concat(i||Vm()),v={tag:"mask",attributes:Th(Th({},$y),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,m]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(w=u,"g"===w.tag?w.children:[w])},v]};var w;return t.push(b,{tag:"rect",attributes:Th({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},$y)}),{children:t,attributes:n}}}},Hy={provides(e){let t=!1;Bh.matchMedia&&(t=Bh.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Th(Th({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=Th(Th({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:Th(Th({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:Th(Th({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Th(Th({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:Th(Th({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Th(Th({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Th(Th({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Th(Th({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},Wy={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}})};!function(e,t){let{mixoutsTo:n}=t;Ag=e,Mg={},Object.keys(Tg).forEach((e=>{-1===Dg.indexOf(e)&&delete Tg[e]})),Ag.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((r=>{n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{Mg[e]||(Mg[e]=[]),Mg[e].push(t[e])}))}e.provides&&e.provides(Tg)}))}([Qm,Sy,Ey,_y,Cy,Ly,Fy,By,Uy,Hy,Wy],{mixoutsTo:Vg});const qy=Vg.config,Yy=Vg.parse,Xy=Vg.icon;var Ky,Gy,Qy,Zy,Jy,ev,tv,nv={exports:{}},rv={exports:{}},ov={};function iv(){return Gy||(Gy=1,rv.exports=function(){if(Ky)return ov;Ky=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function w(e){return b(e)===c}return ov.AsyncMode=l,ov.ConcurrentMode=c,ov.ContextConsumer=s,ov.ContextProvider=a,ov.Element=t,ov.ForwardRef=u,ov.Fragment=r,ov.Lazy=h,ov.Memo=p,ov.Portal=n,ov.Profiler=i,ov.StrictMode=o,ov.Suspense=d,ov.isAsyncMode=function(e){return w(e)||b(e)===l},ov.isConcurrentMode=w,ov.isContextConsumer=function(e){return b(e)===s},ov.isContextProvider=function(e){return b(e)===a},ov.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ov.isForwardRef=function(e){return b(e)===u},ov.isFragment=function(e){return b(e)===r},ov.isLazy=function(e){return b(e)===h},ov.isMemo=function(e){return b(e)===p},ov.isPortal=function(e){return b(e)===n},ov.isProfiler=function(e){return b(e)===i},ov.isStrictMode=function(e){return b(e)===o},ov.isSuspense=function(e){return b(e)===d},ov.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},ov.typeOf=b,ov}()),rv.exports}function av(){if(Zy)return Qy;Zy=1;return Qy="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function sv(){if(ev)return Jy;ev=1;var e=av();function t(){}function n(){}return n.resetWarningCache=t,Jy=function(){function r(t,n,r,o,i,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Jy}function lv(){return tv||(tv=1,nv.exports=sv()()),nv.exports}var cv=lv(),uv=t(cv);function dv(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 fv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dv(Object(n),!0).forEach((function(t){hv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pv(e){return pv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pv(e)}function hv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gv(e){return function(e){if(Array.isArray(e))return yv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return yv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yv(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yv(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 vv(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var bv=["style"];var wv=!1;try{wv=!0}catch(e){}function xv(e){return e&&"object"===pv(e)&&e.prefix&&e.iconName&&e.icon?e:Yy.icon?Yy.icon(e):null===e?null:e&&"object"===pv(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function kv(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?hv({},e,t):{}}var Sv={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ev=S.forwardRef((function(e,t){var n=fv(fv({},Sv),e),r=n.icon,o=n.mask,i=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,u=xv(r),d=kv("classes",[].concat(gv(function(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,d=e.pulse,f=e.fixedWidth,p=e.inverse,h=e.border,m=e.listItem,g=e.flip,y=e.size,v=e.rotation,b=e.pull,w=(hv(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":f,"fa-inverse":p,"fa-border":h,"fa-li":m,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(y),null!=y),hv(t,"fa-rotate-".concat(v),null!=v&&0!==v),hv(t,"fa-pull-".concat(b),null!=b),hv(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(n)),gv((a||"").split(" ")))),f=kv("transform","string"==typeof n.transform?Yy.transform(n.transform):n.transform),p=kv("mask",xv(o)),h=Xy(u,fv(fv(fv(fv({},d),f),p),{},{symbol:i,title:s,titleId:l,maskId:c}));if(!h)return function(){var e;!wv&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var m=h.abstract,g={ref:t};return Object.keys(n).forEach((function(e){Sv.hasOwnProperty(e)||(g[e]=n[e])})),_v(m[0],g)}));Ev.displayName="FontAwesomeIcon",Ev.propTypes={beat:uv.bool,border:uv.bool,beatFade:uv.bool,bounce:uv.bool,className:uv.string,fade:uv.bool,flash:uv.bool,mask:uv.oneOfType([uv.object,uv.array,uv.string]),maskId:uv.string,fixedWidth:uv.bool,inverse:uv.bool,flip:uv.oneOf([!0,!1,"horizontal","vertical","both"]),icon:uv.oneOfType([uv.object,uv.array,uv.string]),listItem:uv.bool,pull:uv.oneOf(["right","left"]),pulse:uv.bool,rotation:uv.oneOf([0,90,180,270]),shake:uv.bool,size:uv.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:uv.bool,spinPulse:uv.bool,spinReverse:uv.bool,symbol:uv.oneOfType([uv.bool,uv.string]),title:uv.string,titleId:uv.string,transform:uv.oneOfType([uv.string,uv.object]),swapOpacity:uv.bool};var _v=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=function(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),o=vv(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e}),{})}(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[vv(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=mv(r,bv);return i.attrs.style=fv(fv({},i.attrs.style),s),t.apply(void 0,[n.tag,fv(fv({},i.attrs),l)].concat(gv(o)))}.bind(null,S.createElement);
17
- /*!
18
- * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
19
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
20
- * Copyright 2024 Fonticons, Inc.
21
- */const Cv={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},Ov={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},Nv={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},Pv={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},Rv={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},Av={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},Mv={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},Tv={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64l128 0 0 64-128 0 0-64zM240 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l48 0 0 32L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 256 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-256 0 0-32 48 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48L240 0zM96 448l0-64 128 0 0 64L96 448zm320-64l128 0 0 64-128 0 0-64z"]},Dv={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Iv={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},Lv={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},zv={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Fv={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},jv={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Bv={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]};qy.autoAddCss=!1;const $v=e=>{const{style:t,...n}=e;return k.createElement("span",{style:{marginLeft:"5px",...t}},k.createElement(Ev,{...n}))},Vv=e=>k.createElement($v,{...e,icon:Ov}),Uv=e=>k.createElement($v,{...e,icon:jv}),Hv=e=>k.createElement($v,{...e,icon:Fv}),Wv=e=>k.createElement($v,{...e,icon:Lv}),qv=e=>k.createElement($v,{...e,icon:Nv}),Yv=e=>k.createElement($v,{...e,icon:Cv}),Xv=e=>k.createElement($v,{...e,icon:Bv}),Kv=e=>k.createElement($v,{...e,icon:Iv}),Gv=e=>k.createElement($v,{...e,icon:Rv}),Qv=Gv,Zv=e=>k.createElement($v,{...e,icon:zv}),Jv=e=>k.createElement($v,{...e,icon:Mv}),eb=e=>k.createElement($v,{...e,icon:Pv}),tb=e=>k.createElement($v,{...e,icon:Tv}),nb=e=>k.createElement($v,{...e,icon:Av}),rb=e=>k.createElement($v,{...e,icon:Dv}),ob=({trigger:e,title:t,description:n,children:r,closebutton:o=!0,onOpenChange:i,buttons:a=[],open:s,setOpen:l,modal:c=!0})=>{const u=k.useContext(wV).local_state((e=>e.funcnodescontainerRef)),d=k.createElement(Oh,{asChild:!0},k.createElement("div",{className:"dialogconent funcnodescontainer"},t&&k.createElement(Nh,{className:"dialogtitle"},t),k.createElement(Ph,{className:"dialogdescription"},n),k.createElement("div",{className:"dialogchildren"},r),k.createElement("div",{style:{display:"flex",marginTop:25,justifyContent:"flex-end"}},(a||[]).map(((e,t)=>k.createElement(Rh,{asChild:!0,key:t},k.createElement("button",{className:"dialogsendbutton",onClick:e.onClick},e.text))))),o&&k.createElement(Rh,{asChild:!0},k.createElement("button",{className:"dialogclosebutton","aria-label":"Close"},k.createElement(Zv,null)))));return k.createElement(Sh,{open:s,onOpenChange:e=>{l&&l(e),i&&i(e)},modal:c},e&&k.createElement(Eh,{asChild:!0},e),k.createElement(_h,{container:u},k.createElement(Ch,{className:"dialogoverlay funcnodescontainer"}),d))};function ib(e){const t=e+"CollectionProvider",[n,r]=df(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,r=S.useRef(null),i=S.useRef(new Map).current;return uf.jsx(o,{scope:t,itemMap:i,collectionRef:r,children:n})};a.displayName=t;const s=e+"CollectionSlot",l=S.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=of(t,i(s,n).collectionRef);return uf.jsx(bf,{ref:o,children:r})}));l.displayName=s;const c=e+"CollectionItemSlot",u="data-radix-collection-item",d=S.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=S.useRef(null),s=of(t,a),l=i(c,n);return S.useEffect((()=>(l.itemMap.set(a,{ref:a,...o}),()=>{l.itemMap.delete(a)}))),uf.jsx(bf,{[u]:"",ref:s,children:r})}));return d.displayName=c,[{Provider:a,Slot:l,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t);return S.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}var ab=k.createContext(void 0);function sb(e){const t=k.useContext(ab);return e||t||"ltr"}const lb=["top","right","bottom","left"],cb=Math.min,ub=Math.max,db=Math.round,fb=Math.floor,pb=e=>({x:e,y:e}),hb={left:"right",right:"left",bottom:"top",top:"bottom"},mb={start:"end",end:"start"};function gb(e,t,n){return ub(e,cb(t,n))}function yb(e,t){return"function"==typeof e?e(t):e}function vb(e){return e.split("-")[0]}function bb(e){return e.split("-")[1]}function wb(e){return"x"===e?"y":"x"}function xb(e){return"y"===e?"height":"width"}function kb(e){return["top","bottom"].includes(vb(e))?"y":"x"}function Sb(e){return wb(kb(e))}function Eb(e){return e.replace(/start|end/g,(e=>mb[e]))}function _b(e){return e.replace(/left|right|bottom|top/g,(e=>hb[e]))}function Cb(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ob(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Nb(e,t,n){let{reference:r,floating:o}=e;const i=kb(t),a=Sb(t),s=xb(a),l=vb(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(bb(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function Pb(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=yb(t,e),h=Cb(p),m=s[f?"floating"===d?"reference":"floating":d],g=Ob(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Ob(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}function Rb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ab(e){return lb.some((t=>e[t]>=0))}function Mb(){return"undefined"!=typeof window}function Tb(e){return Lb(e)?(e.nodeName||"").toLowerCase():"#document"}function Db(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ib(e){var t;return null==(t=(Lb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Lb(e){return!!Mb()&&(e instanceof Node||e instanceof Db(e).Node)}function zb(e){return!!Mb()&&(e instanceof Element||e instanceof Db(e).Element)}function Fb(e){return!!Mb()&&(e instanceof HTMLElement||e instanceof Db(e).HTMLElement)}function jb(e){return!(!Mb()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Db(e).ShadowRoot)}function Bb(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=qb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function $b(e){return["table","td","th"].includes(Tb(e))}function Vb(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Ub(e){const t=Hb(),n=zb(e)?qb(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Hb(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Wb(e){return["html","body","#document"].includes(Tb(e))}function qb(e){return Db(e).getComputedStyle(e)}function Yb(e){return zb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xb(e){if("html"===Tb(e))return e;const t=e.assignedSlot||e.parentNode||jb(e)&&e.host||Ib(e);return jb(t)?t.host:t}function Kb(e){const t=Xb(e);return Wb(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fb(t)&&Bb(t)?t:Kb(t)}function Gb(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Kb(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Db(o);if(i){const e=Qb(a);return t.concat(a,a.visualViewport||[],Bb(o)?o:[],e&&n?Gb(e):[])}return t.concat(o,Gb(o,[],n))}function Qb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zb(e){const t=qb(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Fb(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=db(n)!==i||db(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Jb(e){return zb(e)?e:e.contextElement}function ew(e){const t=Jb(e);if(!Fb(t))return pb(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Zb(t);let a=(i?db(n.width):n.width)/r,s=(i?db(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const tw=pb(0);function nw(e){const t=Db(e);return Hb()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tw}function rw(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Jb(e);let a=pb(1);t&&(r?zb(r)&&(a=ew(r)):a=ew(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Db(e))&&t}(i,n,r)?nw(i):pb(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Db(i),t=r&&zb(r)?Db(r):r;let n=e,o=Qb(n);for(;o&&r&&t!==n;){const e=ew(o),t=o.getBoundingClientRect(),r=qb(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Db(o),o=Qb(n)}}return Ob({width:u,height:d,x:l,y:c})}function ow(e,t){const n=Yb(e).scrollLeft;return t?t.left+n:rw(Ib(e)).left+n}function iw(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ow(e,r)),y:r.top+t.scrollTop}}function aw(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Db(e),r=Ib(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Hb();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Ib(e),n=Yb(e),r=e.ownerDocument.body,o=ub(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ub(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ow(e);const s=-n.scrollTop;return"rtl"===qb(r).direction&&(a+=ub(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Ib(e));else if(zb(t))r=function(e,t){const n=rw(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Fb(e)?ew(e):pb(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=nw(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ob(r)}function sw(e,t){const n=Xb(e);return!(n===t||!zb(n)||Wb(n))&&("fixed"===qb(n).position||sw(n,t))}function lw(e,t,n){const r=Fb(t),o=Ib(t),i="fixed"===n,a=rw(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=pb(0);if(r||!r&&!i)if(("body"!==Tb(t)||Bb(o))&&(s=Yb(t)),r){const e=rw(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=ow(o));const c=!o||r||i?pb(0):iw(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function cw(e){return"static"===qb(e).position}function uw(e,t){if(!Fb(e)||"fixed"===qb(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ib(e)===n&&(n=n.ownerDocument.body),n}function dw(e,t){const n=Db(e);if(Vb(e))return n;if(!Fb(e)){let t=Xb(e);for(;t&&!Wb(t);){if(zb(t)&&!cw(t))return t;t=Xb(t)}return n}let r=uw(e,t);for(;r&&$b(r)&&cw(r);)r=uw(r,t);return r&&Wb(r)&&cw(r)&&!Ub(r)?n:r||function(e){let t=Xb(e);for(;Fb(t)&&!Wb(t);){if(Ub(t))return t;if(Vb(t))return null;t=Xb(t)}return null}(e)||n}const fw={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Ib(r),s=!!t&&Vb(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=pb(1);const u=pb(0),d=Fb(r);if((d||!d&&!i)&&(("body"!==Tb(r)||Bb(a))&&(l=Yb(r)),Fb(r))){const e=rw(r);c=ew(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?pb(0):iw(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Ib,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Vb(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Gb(e,[],!1).filter((e=>zb(e)&&"body"!==Tb(e))),o=null;const i="fixed"===qb(e).position;let a=i?Xb(e):e;for(;zb(a)&&!Wb(a);){const t=qb(a),n=Ub(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Bb(a)&&!n&&sw(e,a))?r=r.filter((e=>e!==a)):o=t,a=Xb(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=aw(t,n,o);return e.top=ub(r.top,e.top),e.right=cb(r.right,e.right),e.bottom=cb(r.bottom,e.bottom),e.left=ub(r.left,e.left),e}),aw(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:dw,getElementRects:async function(e){const t=this.getOffsetParent||dw,n=this.getDimensions,r=await n(e.floating);return{reference:lw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Zb(e);return{width:t,height:n}},getScale:ew,isElement:zb,isRTL:function(e){return"rtl"===qb(e).direction}};function pw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hw(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Jb(e),u=o||i?[...c?Gb(c):[],...Gb(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=Ib(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const h={rootMargin:-fb(d)+"px "+-fb(o.clientWidth-(u+f))+"px "+-fb(o.clientHeight-(d+p))+"px "+-fb(u)+"px",threshold:ub(0,cb(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||pw(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?rw(e):null;return l&&function t(){const r=rw(e);m&&!pw(m,r)&&n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const mw=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=vb(n),s=bb(n),l="y"===kb(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=yb(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},gw=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=yb(e,t),c={x:n,y:r},u=await Pb(t,l),d=kb(vb(o)),f=wb(d);let p=c[f],h=c[d];if(i){const e="y"===f?"bottom":"right";p=gb(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=gb(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}},yw=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=yb(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=vb(o),v=kb(s),b=vb(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!m?[_b(s)]:function(e){const t=_b(e);return[Eb(e),t,Eb(t)]}(s)),k="none"!==h;!f&&k&&x.push(...function(e,t,n,r){const o=bb(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(vb(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Eb)))),i}(s,m,h,w));const S=[s,...x],E=await Pb(t,g),_=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(E[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=bb(e),o=Sb(e),i=xb(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=_b(a)),[a,_b(a)]}(o,a,w);_.push(E[e[0]],E[e[1]])}if(C=[...C,{placement:o,overflows:_}],!_.every((e=>e<=0))){var O,N;const e=((null==(O=i.flip)?void 0:O.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(N=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=C.filter((e=>{if(k){const t=kb(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},vw=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=yb(e,t),u=await Pb(t,c),d=vb(o),f=bb(o),p="y"===kb(o),{width:h,height:m}=i.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===f?"top":"bottom");const v=m-u.top-u.bottom,b=h-u.left-u.right,w=cb(m-u[g],v),x=cb(h-u[y],b),k=!t.middlewareData.shift;let S=w,E=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),k&&!f){const e=ub(u.left,0),t=ub(u.right,0),n=ub(u.top,0),r=ub(u.bottom,0);p?E=h-2*(0!==e||0!==t?e+t:ub(u.left,u.right)):S=m-2*(0!==n||0!==r?n+r:ub(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:S});const _=await a.getDimensions(s.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}},bw=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=yb(e,t);switch(r){case"referenceHidden":{const e=Rb(await Pb(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ab(e)}}}case"escaped":{const e=Rb(await Pb(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ab(e)}}}default:return{}}}}},ww=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=yb(e,t)||{};if(null==c)return{};const d=Cb(u),f={x:n,y:r},p=Sb(o),h=xb(p),m=await a.getDimensions(c),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let S=k?k[b]:0;S&&await(null==a.isElement?void 0:a.isElement(k))||(S=s.floating[b]||i.floating[h]);const E=w/2-x/2,_=S/2-m[h]/2-1,C=cb(d[y],_),O=cb(d[v],_),N=C,P=S-m[h]-O,R=S/2-m[h]/2+E,A=gb(N,R,P),M=!l.arrow&&null!=bb(o)&&R!==A&&i.reference[h]/2-(R<N?C:O)-m[h]/2<0,T=M?R<N?R-N:R-P:0;return{[p]:f[p]+T,data:{[p]:A,centerOffset:R-A-T,...M&&{alignmentOffset:T}},reset:M}}}),xw=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=yb(e,t),u={x:n,y:r},d=kb(o),f=wb(d);let p=u[f],h=u[d];const m=yb(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var y,v;const e="y"===f?"width":"height",t=["top","left"].includes(vb(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},kw=(e,t,n)=>{const r=new Map,o={platform:fw,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Nb(c,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:y,data:v,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,p={...p,[i]:{...p[i],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=Nb(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Sw="undefined"!=typeof document?k.useLayoutEffect:k.useEffect;function Ew(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ew(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Ew(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function _w(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cw(e,t){const n=_w(e);return Math.round(t*n)/n}function Ow(e){const t=k.useRef(e);return Sw((()=>{t.current=e})),t}const Nw=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?ww({element:n.current,padding:r}).fn(t):{}:n?ww({element:n,padding:r}).fn(t):{};var o}}),Pw=(e,t)=>({...mw(e),options:[e,t]}),Rw=(e,t)=>({...gw(e),options:[e,t]}),Aw=(e,t)=>({...xw(e),options:[e,t]}),Mw=(e,t)=>({...yw(e),options:[e,t]}),Tw=(e,t)=>({...vw(e),options:[e,t]}),Dw=(e,t)=>({...bw(e),options:[e,t]}),Iw=(e,t)=>({...Nw(e),options:[e,t]});var Lw=k.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return uf.jsx(Sf.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:uf.jsx("polygon",{points:"0,0 30,0 15,10"})})}));Lw.displayName="Arrow";var zw=Lw;function Fw(e){const[t,n]=k.useState(void 0);return pf((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}var jw="Popper",[Bw,$w]=df(jw),[Vw,Uw]=Bw(jw),Hw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=k.useState(null);return uf.jsx(Vw,{scope:t,anchor:r,onAnchorChange:o,children:n})};Hw.displayName=jw;var Ww="PopperAnchor",qw=k.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Uw(Ww,n),a=k.useRef(null),s=of(t,a);return k.useEffect((()=>{i.onAnchorChange(r?.current||a.current)})),r?null:uf.jsx(Sf.div,{...o,ref:s})}));qw.displayName=Ww;var Yw="PopperContent",[Xw,Kw]=Bw(Yw),Gw=k.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:h,...m}=e,g=Uw(Yw,n),[y,v]=k.useState(null),b=of(t,(e=>v(e))),[w,x]=k.useState(null),S=Fw(w),E=S?.width??0,_=S?.height??0,C=r+("center"!==i?"-"+i:""),O="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},N=Array.isArray(c)?c:[c],P=N.length>0,R={padding:O,boundary:N.filter(ex),altBoundary:P},{refs:A,floatingStyles:M,placement:T,isPositioned:D,middlewareData:I}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=k.useState(r);Ew(f,r)||p(r);const[h,m]=k.useState(null),[g,y]=k.useState(null),v=k.useCallback((e=>{e!==S.current&&(S.current=e,m(e))}),[]),b=k.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),w=i||h,x=a||g,S=k.useRef(null),E=k.useRef(null),_=k.useRef(u),C=null!=l,O=Ow(l),N=Ow(o),P=Ow(c),R=k.useCallback((()=>{if(!S.current||!E.current)return;const e={placement:t,strategy:n,middleware:f};N.current&&(e.platform=N.current),kw(S.current,E.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};A.current&&!Ew(_.current,t)&&(_.current=t,so.flushSync((()=>{d(t)})))}))}),[f,t,n,N,P]);Sw((()=>{!1===c&&_.current.isPositioned&&(_.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const A=k.useRef(!1);Sw((()=>(A.current=!0,()=>{A.current=!1})),[]),Sw((()=>{if(w&&(S.current=w),x&&(E.current=x),w&&x){if(O.current)return O.current(w,x,R);R()}}),[w,x,R,O,C]);const M=k.useMemo((()=>({reference:S,floating:E,setReference:v,setFloating:b})),[v,b]),T=k.useMemo((()=>({reference:w,floating:x})),[w,x]),D=k.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=Cw(T.floating,u.x),r=Cw(T.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",..._w(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,T.floating,u.x,u.y]);return k.useMemo((()=>({...u,update:R,refs:M,elements:T,floatingStyles:D})),[u,R,M,T,D])}({strategy:"fixed",placement:C,whileElementsMounted:(...e)=>hw(...e,{animationFrame:"always"===p}),elements:{reference:g.anchor},middleware:[Pw({mainAxis:o+_,alignmentAxis:a}),l&&Rw({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?Aw():void 0,...R}),l&&Mw({...R}),Tw({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),w&&Iw({element:w,padding:s}),tx({arrowWidth:E,arrowHeight:_}),f&&Dw({strategy:"referenceHidden",...R})]}),[L,z]=nx(T),F=yf(h);pf((()=>{D&&F?.()}),[D,F]);const j=I.arrow?.x,B=I.arrow?.y,$=0!==I.arrow?.centerOffset,[V,U]=k.useState();return pf((()=>{y&&U(window.getComputedStyle(y).zIndex)}),[y]),uf.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:D?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:V,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:uf.jsx(Xw,{scope:n,placedSide:L,onArrowChange:x,arrowX:j,arrowY:B,shouldHideArrow:$,children:uf.jsx(Sf.div,{"data-side":L,"data-align":z,...m,ref:b,style:{...m.style,animation:D?void 0:"none"}})})})}));Gw.displayName=Yw;var Qw="PopperArrow",Zw={top:"bottom",right:"left",bottom:"top",left:"right"},Jw=k.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=Kw(Qw,n),i=Zw[o.placedSide];return uf.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:uf.jsx(zw,{...r,ref:t,style:{...r.style,display:"block"}})})}));function ex(e){return null!==e}Jw.displayName=Qw;var tx=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=nx(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",h="";return"bottom"===l?(p=i?u:`${d}px`,h=-s+"px"):"top"===l?(p=i?u:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=i?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}});function nx(e){const[t,n="center"]=e.split("-");return[t,n]}var rx=Hw,ox=qw,ix=Gw,ax=Jw,sx="rovingFocusGroup.onEntryFocus",lx={bubbles:!1,cancelable:!0},cx="RovingFocusGroup",[ux,dx,fx]=ib(cx),[px,hx]=df(cx,[fx]),[mx,gx]=px(cx),yx=k.forwardRef(((e,t)=>uf.jsx(ux.Provider,{scope:e.__scopeRovingFocusGroup,children:uf.jsx(ux.Slot,{scope:e.__scopeRovingFocusGroup,children:uf.jsx(vx,{...e,ref:t})})})));yx.displayName=cx;var vx=k.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,f=k.useRef(null),p=of(t,f),h=sb(i),[m=null,g]=vf({prop:a,defaultProp:s,onChange:l}),[y,v]=k.useState(!1),b=yf(c),w=dx(n),x=k.useRef(!1),[S,E]=k.useState(0);return k.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(sx,b),()=>e.removeEventListener(sx,b)}),[b]),uf.jsx(mx,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:m,onItemFocus:k.useCallback((e=>g(e)),[g]),onItemShiftTab:k.useCallback((()=>v(!0)),[]),onFocusableItemAdd:k.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:k.useCallback((()=>E((e=>e-1))),[]),children:uf.jsx(Sf.div,{tabIndex:y||0===S?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:tf(e.onMouseDown,(()=>{x.current=!0})),onFocus:tf(e.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(sx,lx);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable));kx([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)),u)}}x.current=!1})),onBlur:tf(e.onBlur,(()=>v(!1)))})})})),bx="RovingFocusGroupItem",wx=k.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=gf(),l=i||s,c=gx(bx,n),u=c.currentTabStopId===l,d=dx(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=c;return k.useEffect((()=>{if(r)return f(),()=>p()}),[r,f,p]),uf.jsx(ux.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:uf.jsx(Sf.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...a,ref:t,onMouseDown:tf(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:tf(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:tf(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:xx[r]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=c.loop?function(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}(n,r+1):n.slice(r+1)}setTimeout((()=>kx(n)))}}))})})}));wx.displayName=bx;var xx={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function kx(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Sx=yx,Ex=wx,_x=["Enter"," "],Cx=["ArrowUp","PageDown","End"],Ox=["ArrowDown","PageUp","Home",...Cx],Nx={ltr:[..._x,"ArrowRight"],rtl:[..._x,"ArrowLeft"]},Px={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Rx="Menu",[Ax,Mx,Tx]=ib(Rx),[Dx,Ix]=df(Rx,[Tx,$w,hx]),Lx=$w(),zx=hx(),[Fx,jx]=Dx(Rx),[Bx,$x]=Dx(Rx),Vx=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=Lx(t),[l,c]=k.useState(null),u=k.useRef(!1),d=yf(i),f=sb(o);return k.useEffect((()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),uf.jsx(rx,{...s,children:uf.jsx(Fx,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:uf.jsx(Bx,{scope:t,onClose:k.useCallback((()=>d(!1)),[d]),isUsingKeyboardRef:u,dir:f,modal:a,children:r})})})};Vx.displayName=Rx;var Ux=k.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Lx(n);return uf.jsx(ox,{...o,...r,ref:t})}));Ux.displayName="MenuAnchor";var[Hx,Wx]=Dx("MenuPortal",{forceMount:void 0}),qx="MenuContent",[Yx,Xx]=Dx(qx),Kx=k.forwardRef(((e,t)=>{const n=Wx(qx,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=jx(qx,e.__scopeMenu),a=$x(qx,e.__scopeMenu);return uf.jsx(Ax.Provider,{scope:e.__scopeMenu,children:uf.jsx(Wf,{present:r||i.open,children:uf.jsx(Ax.Slot,{scope:e.__scopeMenu,children:a.modal?uf.jsx(Gx,{...o,ref:t}):uf.jsx(Qx,{...o,ref:t})})})})})),Gx=k.forwardRef(((e,t)=>{const n=jx(qx,e.__scopeMenu),r=k.useRef(null),o=of(t,r);return k.useEffect((()=>{const e=r.current;if(e)return Hp(e)}),[]),uf.jsx(Zx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:tf(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),Qx=k.forwardRef(((e,t)=>{const n=jx(qx,e.__scopeMenu);return uf.jsx(Zx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),Zx=k.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...m}=e,g=jx(qx,n),y=$x(qx,n),v=Lx(n),b=zx(n),w=Mx(n),[x,S]=k.useState(null),E=k.useRef(null),_=of(t,E,g.onContentChange),C=k.useRef(0),O=k.useRef(""),N=k.useRef(0),P=k.useRef(null),R=k.useRef("right"),A=k.useRef(0),M=h?zp:k.Fragment,T=h?{as:bf,allowPinchZoom:!0}:void 0,D=e=>{const t=O.current+e,n=w().filter((e=>!e.disabled)),r=document.activeElement,o=n.find((e=>e.ref.current===r))?.textValue,i=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=function(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}(e,Math.max(i,0));1===o.length&&(a=a.filter((e=>e!==n)));const s=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return s!==n?s:void 0}(n.map((e=>e.textValue)),t,o),a=n.find((e=>e.textValue===i))?.ref.current;!function e(t){O.current=t,window.clearTimeout(C.current),""!==t&&(C.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))};k.useEffect((()=>()=>window.clearTimeout(C.current)),[]),Xf();const I=k.useCallback((e=>R.current===P.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,t)}(e,P.current?.area)),[]);return uf.jsx(Yx,{scope:n,searchRef:O,onItemEnter:k.useCallback((e=>{I(e)&&e.preventDefault()}),[I]),onItemLeave:k.useCallback((e=>{I(e)||(E.current?.focus(),S(null))}),[I]),onTriggerLeave:k.useCallback((e=>{I(e)&&e.preventDefault()}),[I]),pointerGraceTimerRef:N,onPointerGraceIntentChange:k.useCallback((e=>{P.current=e}),[]),children:uf.jsx(M,{...T,children:uf.jsx(zf,{asChild:!0,trapped:o,onMountAutoFocus:tf(i,(e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:a,children:uf.jsx(Rf,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:uf.jsx(Sx,{asChild:!0,...b,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:tf(l,(e=>{y.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:uf.jsx(ix,{role:"menu","aria-orientation":"vertical","data-state":Ck(g.open),"data-radix-menu-content":"",dir:y.dir,...v,...m,ref:_,style:{outline:"none",...m.style},onKeyDown:tf(m.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&D(e.key));const o=E.current;if(e.target!==o)return;if(!Ox.includes(e.key))return;e.preventDefault();const i=w().filter((e=>!e.disabled)).map((e=>e.ref.current));Cx.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:tf(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),O.current="")})),onPointerMove:tf(e.onPointerMove,Pk((e=>{const t=e.target,n=A.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>A.current?"right":"left";R.current=t,A.current=e.clientX}})))})})})})})})}));Kx.displayName=qx;var Jx=k.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return uf.jsx(Sf.div,{role:"group",...r,ref:t})}));Jx.displayName="MenuGroup";var ek=k.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return uf.jsx(Sf.div,{...r,ref:t})}));ek.displayName="MenuLabel";var tk="MenuItem",nk="menu.itemSelect",rk=k.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=k.useRef(null),a=$x(tk,e.__scopeMenu),s=Xx(tk,e.__scopeMenu),l=of(t,i),c=k.useRef(!1);return uf.jsx(ok,{...o,ref:l,disabled:n,onClick:tf(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(nk,{bubbles:!0,cancelable:!0});e.addEventListener(nk,(e=>r?.(e)),{once:!0}),Ef(e,t),t.defaultPrevented?c.current=!1:a.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),c.current=!0},onPointerUp:tf(e.onPointerUp,(e=>{c.current||e.currentTarget?.click()})),onKeyDown:tf(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||_x.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));rk.displayName=tk;var ok=k.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=Xx(tk,n),s=zx(n),l=k.useRef(null),c=of(t,l),[u,d]=k.useState(!1),[f,p]=k.useState("");return k.useEffect((()=>{const e=l.current;e&&p((e.textContent??"").trim())}),[i.children]),uf.jsx(Ax.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:uf.jsx(Ex,{asChild:!0,...s,focusable:!r,children:uf.jsx(Sf.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:c,onPointerMove:tf(e.onPointerMove,Pk((e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:tf(e.onPointerLeave,Pk((e=>a.onItemLeave(e)))),onFocus:tf(e.onFocus,(()=>d(!0))),onBlur:tf(e.onBlur,(()=>d(!1)))})})})})),ik=k.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return uf.jsx(pk,{scope:e.__scopeMenu,checked:n,children:uf.jsx(rk,{role:"menuitemcheckbox","aria-checked":Ok(n)?"mixed":n,...o,ref:t,"data-state":Nk(n),onSelect:tf(o.onSelect,(()=>r?.(!!Ok(n)||!n)),{checkForDefaultPrevented:!1})})})}));ik.displayName="MenuCheckboxItem";var ak="MenuRadioGroup",[sk,lk]=Dx(ak,{value:void 0,onValueChange:()=>{}}),ck=k.forwardRef(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=yf(r);return uf.jsx(sk,{scope:e.__scopeMenu,value:n,onValueChange:i,children:uf.jsx(Jx,{...o,ref:t})})}));ck.displayName=ak;var uk="MenuRadioItem",dk=k.forwardRef(((e,t)=>{const{value:n,...r}=e,o=lk(uk,e.__scopeMenu),i=n===o.value;return uf.jsx(pk,{scope:e.__scopeMenu,checked:i,children:uf.jsx(rk,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Nk(i),onSelect:tf(r.onSelect,(()=>o.onValueChange?.(n)),{checkForDefaultPrevented:!1})})})}));dk.displayName=uk;var fk="MenuItemIndicator",[pk,hk]=Dx(fk,{checked:!1}),mk=k.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=hk(fk,n);return uf.jsx(Wf,{present:r||Ok(i.checked)||!0===i.checked,children:uf.jsx(Sf.span,{...o,ref:t,"data-state":Nk(i.checked)})})}));mk.displayName=fk;var gk=k.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return uf.jsx(Sf.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})}));gk.displayName="MenuSeparator";var yk=k.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Lx(n);return uf.jsx(ax,{...o,...r,ref:t})}));yk.displayName="MenuArrow";var vk="MenuSub",[bk,wk]=Dx(vk),xk=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=jx(vk,t),a=Lx(t),[s,l]=k.useState(null),[c,u]=k.useState(null),d=yf(o);return k.useEffect((()=>(!1===i.open&&d(!1),()=>d(!1))),[i.open,d]),uf.jsx(rx,{...a,children:uf.jsx(Fx,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:u,children:uf.jsx(bk,{scope:t,contentId:gf(),triggerId:gf(),trigger:s,onTriggerChange:l,children:n})})})};xk.displayName=vk;var kk="MenuSubTrigger",Sk=k.forwardRef(((e,t)=>{const n=jx(kk,e.__scopeMenu),r=$x(kk,e.__scopeMenu),o=wk(kk,e.__scopeMenu),i=Xx(kk,e.__scopeMenu),a=k.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=k.useCallback((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return k.useEffect((()=>u),[u]),k.useEffect((()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}}),[s,l]),uf.jsx(Ux,{asChild:!0,...c,children:uf.jsx(ok,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ck(n.open),...e,ref:rf(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:tf(e.onPointerMove,Pk((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:tf(e.onPointerLeave,Pk((e=>{u();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,a=o?-5:5,l=t[o?"left":"right"],c=t[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:l,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:l,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:tf(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;e.disabled||o&&" "===t.key||Nx[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())}))})})}));Sk.displayName=kk;var Ek="MenuSubContent",_k=k.forwardRef(((e,t)=>{const n=Wx(qx,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=jx(qx,e.__scopeMenu),a=$x(qx,e.__scopeMenu),s=wk(Ek,e.__scopeMenu),l=k.useRef(null),c=of(t,l);return uf.jsx(Ax.Provider,{scope:e.__scopeMenu,children:uf.jsx(Wf,{present:r||i.open,children:uf.jsx(Ax.Slot,{scope:e.__scopeMenu,children:uf.jsx(Zx,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:c,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{a.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:tf(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:tf(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:tf(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=Px[a.dir].includes(e.key);t&&n&&(i.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())}))})})})})}));function Ck(e){return e?"open":"closed"}function Ok(e){return"indeterminate"===e}function Nk(e){return Ok(e)?"indeterminate":e?"checked":"unchecked"}function Pk(e){return t=>"mouse"===t.pointerType?e(t):void 0}_k.displayName=Ek;var Rk=Vx,Ak=Ux,Mk=Kx,Tk=Jx,Dk=ek,Ik=rk,Lk=ik,zk=ck,Fk=dk,jk=mk,Bk=gk,$k=yk,Vk=xk,Uk=Sk,Hk=_k,Wk="DropdownMenu",[qk,Yk]=df(Wk,[Ix]),Xk=Ix(),[Kk,Gk]=qk(Wk),Qk=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=Xk(t),c=k.useRef(null),[u=!1,d]=vf({prop:o,defaultProp:i,onChange:a});return uf.jsx(Kk,{scope:t,triggerId:gf(),triggerRef:c,contentId:gf(),open:u,onOpenChange:d,onOpenToggle:k.useCallback((()=>d((e=>!e))),[d]),modal:s,children:uf.jsx(Rk,{...l,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};Qk.displayName=Wk;var Zk="DropdownMenuTrigger",Jk=k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Gk(Zk,n),a=Xk(n);return uf.jsx(Ak,{asChild:!0,...a,children:uf.jsx(Sf.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:rf(t,i.triggerRef),onPointerDown:tf(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:tf(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));Jk.displayName=Zk;var eS="DropdownMenuContent",tS=k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gk(eS,n),i=Xk(n),a=k.useRef(!1);return uf.jsx(Mk,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:tf(e.onCloseAutoFocus,(e=>{a.current||o.triggerRef.current?.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:tf(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));tS.displayName=eS;var nS=k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xk(n);return uf.jsx(Tk,{...o,...r,ref:t})}));nS.displayName="DropdownMenuGroup";k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xk(n);return uf.jsx(Dk,{...o,...r,ref:t})})).displayName="DropdownMenuLabel";var rS=k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xk(n);return uf.jsx(Ik,{...o,...r,ref:t})}));rS.displayName="DropdownMenuItem";k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xk(n);return uf.jsx(Lk,{...o,...r,ref:t})})).displayName="DropdownMenuCheckboxItem";var oS=k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xk(n);return uf.jsx(zk,{...o,...r,ref:t})}));oS.displayName="DropdownMenuRadioGroup";var iS=k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xk(n);return uf.jsx(Fk,{...o,...r,ref:t})}));iS.displayName="DropdownMenuRadioItem";k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xk(n);return uf.jsx(jk,{...o,...r,ref:t})})).displayName="DropdownMenuItemIndicator";k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xk(n);return uf.jsx(Bk,{...o,...r,ref:t})})).displayName="DropdownMenuSeparator";k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xk(n);return uf.jsx($k,{...o,...r,ref:t})})).displayName="DropdownMenuArrow";var aS=k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xk(n);return uf.jsx(Uk,{...o,...r,ref:t})}));aS.displayName="DropdownMenuSubTrigger";var sS=k.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Xk(n);return uf.jsx(Hk,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));sS.displayName="DropdownMenuSubContent";var lS=Qk,cS=Jk,uS=tS,dS=nS,fS=rS,pS=oS,hS=iS,mS=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=Xk(t),[s=!1,l]=vf({prop:r,defaultProp:i,onChange:o});return uf.jsx(Vk,{...a,open:s,onOpenChange:l,children:n})},gS=aS,yS=sS;function vS(e,t){return function(e,t){return new Blob([e],{type:t})}(function(e){const t=window.atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r}(e),t)}function bS(e,t=!0){return new Promise((n=>{const r=new FileReader;r.onload=()=>{const e=r.result;t&&n(e.split(",")[1]),n(e)},r.readAsDataURL(e)}))}function wS(e){return function(e){return new Promise((t=>{const n=document.createElement("input");n.type="file",n.accept=e,n.onchange=()=>{const e=n.files?.[0];e&&t(e)},n.click()}))}(e).then(bS)}const xS=!1,kS={xxs:0,xs:320,s:480,m:768,l:960,xl:1280,xxl:1920},SS=k.createContext(void 0),ES=k.forwardRef(((e,t)=>{const{className:n,children:r,...o}=e,[i,a]=k.useState("m"),[s,l]=k.useState(0),[c,u]=k.useState(0),d=k.useRef(null);k.useImperativeHandle(t,(()=>d.current),[]);const f=k.useCallback((e=>{const t=e.width,n=e.height;let r="xxs";Object.entries(kS).forEach((([e,n])=>{t>=n&&(r=e)})),a((e=>e!==r?r:e)),l(t),u(n)}),[]);return k.useEffect((()=>{const e=d.current;if(!e)return;const t=new ResizeObserver((e=>{for(let t of e)f(t.contentRect)}));return t.observe(e),f(e.getBoundingClientRect()),()=>{t.disconnect()}}),[]),k.createElement(SS.Provider,{value:{wKey:i,w:s,h:c}},k.createElement("div",{ref:d,className:`size-context w-${i} ${n||""}`.trim(),...o},r))})),_S=e=>((e,t)=>e!=t&&(""==e||kS[e]<kS[t]))((()=>{const e=k.useContext(SS);if(!e)throw new Error("useSizeContext must be used within a SizeContextContainerContext");return e})().wKey,e),CS=({direction:e,className:t="",children:n,wrap:r=!1,grow:o=!1,...i})=>{let a="";"string"==typeof e?a=`direction-${e} `:"object"==typeof e&&null!==e&&Object.entries(e).forEach((([e,t])=>{a+=""===e?`direction-${t} `:`${e}-direction-${t} `}));let s="";"boolean"==typeof o?s=o?"grow ":"":"object"==typeof o&&null!==o&&Object.entries(o).forEach((([e,t])=>{s+=""===e?t?"grow ":"no-grow":t?`${e}-grow `:`${e}-no-grow`})),a+=s,r&&(a+="flex-wrap "),a=a.trim();const l=`float-container ${a} ${t}`.trim();return k.createElement("div",{className:l,...i},n)},OS=({direction:e,expanded:t=!0,children:n,className:r,maxSize:o,expanderSize:i="40px",containerStyle:a,style:s,containerClassName:l,onExpandChange:c,...u})=>{const d={up:Gv,down:Kv,left:Hv,right:Uv}[e],f={up:Kv,down:Gv,left:Uv,right:Hv}[e],[p,h]=k.useState(t),m=`${e} ${p?"expanded":"collapsed"}`,g="right"===e||"left"===e?{width:p?o:i}:{height:p?o:i},y="right"===e||"left"===e?{width:p?o:0}:{height:p?o:0},v="right"===e||"left"===e?{width:i}:{height:i},b=k.createElement("div",{className:`expanding_container_content ${m} ${r||""}`.trim(),style:{...s,...y},...u},n),w=k.createElement("div",{className:`expanding_container_expander ${m}`,onClick:()=>(e=>{p!==e&&(h(e),c&&c(e))})(!p),style:v},p?k.createElement(f,null):k.createElement(d,null)),x="right"===e||"down"===e?b:w,S="left"===e||"up"===e?b:w;return k.createElement("div",{className:`expanding_container ${m} ${l||""}`,style:{...a,...g}},x,S)},NS=({trigger:e,setOpen:t,open:n})=>{const[r,o]=k.useState(""),i=k.useContext(wV);return i.options.useWorkerManager?k.createElement(ob,{setOpen:t,open:n,trigger:e,title:"New Worker",description:"Create a new worker"},k.createElement("div",null,"Name:",k.createElement("br",null),k.createElement("input",{className:"styledinput",onChange:e=>{o(e.currentTarget.value)},value:r})),k.createElement("div",null,r&&k.createElement("div",null,k.createElement("button",{className:"styledbtn",onClick:()=>{i.workermanager?.new_worker({name:r}),t(!1)}},"Create")))):null},PS=({trigger:e,setOpen:t,open:n})=>{const r=k.useContext(wV),[o,i]=k.useState(!1),a=r.workers(),s=r.worker?.uuid,l=(s?a[s]?.name:void 0)||s||"worker";return k.createElement(ob,{setOpen:t,open:n,trigger:e,title:"Export Worker",description:"Export the worker as a .fnw file"},k.createElement("div",null,k.createElement("div",null,k.createElement("input",{type:"checkbox",className:"styledcheckbox",checked:o,onChange:e=>{i(e.currentTarget.checked)}}),"Include Files"),k.createElement("button",{className:"styledbtn",onClick:async()=>{if(!r.worker)return;!function(e,t,n){const r=vS(e,n),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=t,i.click(),URL.revokeObjectURL(o),i.remove()}(await r.worker.export({withFiles:o}),l+".fnw","application/zip"),t(!1)}},"Export")))},RS=()=>{const e=k.useContext(wV).progress_state();return k.createElement("div",{className:"statusbar"},k.createElement("span",{className:"statusbar-progressbar",style:{width:Math.min(100,100*e.progress)+"%"}}),k.createElement("span",{className:"statusbar-message"},e.message))},AS=()=>{const e=k.useContext(wV),t=e.workers(),[n,r]=k.useState(!1),[o,i]=k.useState(!1),a=e.options.useWorkerManager&&e.workermanager&&e.workermanager.open||xS,s=a&&Object.keys(t).length>0,l=e.worker&&e.worker.is_open,c=l&&a;return a||l?k.createElement(k.Fragment,null,k.createElement(lS,null,k.createElement(cS,{asChild:!0},k.createElement("button",{className:"styledbtn"},k.createElement(CS,{direction:"row"},"Worker ",k.createElement(Vv,null)))),k.createElement(uS,{className:"headermenucontent funcnodescontainer"},k.createElement(dS,null,s&&k.createElement(mS,null,k.createElement(gS,{className:"headermenuitem submenuitem"},k.createElement(CS,{direction:"row"},"Select",k.createElement(Uv,null))),k.createElement(yS,{className:"headermenucontent funcnodescontainer",sideOffset:2,alignOffset:-5},k.createElement(pS,{value:e.worker?.uuid,onValueChange:n=>{(n=>{if("__select__"!==n&&e.workers&&e.workermanager&&t[n]){if(!t[n].active&&!window.confirm("this is an inactive worker, selecting it will start it, continue?"))return;e.workermanager.set_active(n)}})(n)}},Object.keys(t).sort(((e,n)=>{if(t[e].active&&!t[n].active)return-1;if(!t[e].active&&t[n].active)return 1;const r=t[e].name||e,o=t[n].name||n;return r.localeCompare(o)})).map((n=>k.createElement(hS,{className:"headermenuitem workerselectoption"+(t[n]?.active?" active":" inactive")+" headermenuitem",key:n,value:n,disabled:n===e.worker?.uuid},t[n]?.name||n)))))),l&&k.createElement(k.Fragment,null,c&&k.createElement(fS,{className:"headermenuitem",onClick:()=>{if(e.worker)return e.workermanager?void e.workermanager?.restart_worker(e.worker.uuid):e.logger.error("no workermanager")}},"Restart"),k.createElement(fS,{className:"headermenuitem",onClick:()=>{e.worker&&e.worker.stop()}},"Stop"),k.createElement(fS,{className:"headermenuitem",onClick:()=>i(!0)},"Export"),k.createElement(fS,{className:"headermenuitem",onClick:async()=>{if(!e.worker)return;if(!window.confirm("Updateing the worker might replace the current nodespace, continue?"))return;const t=await wS(".fnw");e.worker.update_from_export(t)}},"Update")),a&&k.createElement(k.Fragment,null,k.createElement(fS,{className:"headermenuitem",onClick:()=>r(!0)},"New"))))),k.createElement(NS,{open:n,setOpen:r}),k.createElement(PS,{open:o,setOpen:i})):null},MS=()=>{const e=k.useContext(wV);return k.createElement(k.Fragment,null,k.createElement(lS,null,k.createElement(cS,{asChild:!0},k.createElement("button",{className:"styledbtn"},k.createElement(CS,{direction:"row"},"Nodespace ",k.createElement(Vv,null)))),k.createElement(uS,{className:"headermenucontent funcnodescontainer"},k.createElement(dS,null,k.createElement(fS,{className:"headermenuitem",onClick:()=>{window.confirm("Are you sure you want to start a new flow?")&&e.worker?.clear()}},"New"),k.createElement(fS,{className:"headermenuitem",onClick:async()=>{const t=await(e.worker?.save());if(!t)return;const n=new Blob([JSON.stringify(t)],{type:"application/json"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download="flow.json",o.click(),URL.revokeObjectURL(r),o.remove()}},"Save"),k.createElement(fS,{className:"headermenuitem",onClick:async()=>{const t=document.createElement("input");t.type="file",t.accept=".json",t.onchange=async t=>{const n=t.target.files?.[0];if(!n)return;const r=new FileReader;r.onload=async t=>{const n=t.target?.result;if(!n)return;const r=JSON.parse(n);await(e.worker?.load(r))},r.readAsText(n)},t.click()}},"Load")))))},TS=({...e})=>{const t=k.useContext(wV),n=t.workerstate();return Object.keys(e).length>0&&t.logger.debug("headerprops",e),k.createElement(CS,{className:"funcnodesreactflowheader",direction:"row",wrap:!0},k.createElement(CS,{className:"headerelement m-w-6",grow:{"":!0,m:!1}},k.createElement(RS,null)),e.showmenu?k.createElement(CS,{direction:"row",wrap:!0},k.createElement("div",{className:"headerelement"},k.createElement(AS,null)),t.worker&&n.is_open?k.createElement("div",{className:"headerelement"},k.createElement(MS,null)):xS):xS)};const DS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,IS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,LS={};function zS(e,t){return(LS.jsx?IS:DS).test(e)}const FS=/[ \t\n\f\r]/g;function jS(e){return""===e.replace(FS,"")}class BS{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function $S(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new BS(n,r,t)}function VS(e){return e.toLowerCase()}BS.prototype.normal={},BS.prototype.property={},BS.prototype.space=void 0;class US{constructor(e,t){this.attribute=t,this.property=e}}US.prototype.attribute="",US.prototype.booleanish=!1,US.prototype.boolean=!1,US.prototype.commaOrSpaceSeparated=!1,US.prototype.commaSeparated=!1,US.prototype.defined=!1,US.prototype.mustUseProperty=!1,US.prototype.number=!1,US.prototype.overloadedBoolean=!1,US.prototype.property="",US.prototype.spaceSeparated=!1,US.prototype.space=void 0;let HS=0;const WS=ZS(),qS=ZS(),YS=ZS(),XS=ZS(),KS=ZS(),GS=ZS(),QS=ZS();function ZS(){return 2**++HS}var JS=Object.freeze({__proto__:null,boolean:WS,booleanish:qS,commaOrSpaceSeparated:QS,commaSeparated:GS,number:XS,overloadedBoolean:YS,spaceSeparated:KS});const eE=Object.keys(JS);class tE extends US{constructor(e,t,n,r){let o=-1;if(super(e,t),nE(this,"space",r),"number"==typeof n)for(;++o<eE.length;){const e=eE[o];nE(this,eE[o],(n&JS[e])===JS[e])}}}function nE(e,t,n){n&&(e[t]=n)}function rE(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new tE(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[VS(r)]=r,n[VS(i.attribute)]=r}return new BS(t,n,e.space)}tE.prototype.defined=!0;const oE=rE({properties:{ariaActiveDescendant:null,ariaAtomic:qS,ariaAutoComplete:null,ariaBusy:qS,ariaChecked:qS,ariaColCount:XS,ariaColIndex:XS,ariaColSpan:XS,ariaControls:KS,ariaCurrent:null,ariaDescribedBy:KS,ariaDetails:null,ariaDisabled:qS,ariaDropEffect:KS,ariaErrorMessage:null,ariaExpanded:qS,ariaFlowTo:KS,ariaGrabbed:qS,ariaHasPopup:null,ariaHidden:qS,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:KS,ariaLevel:XS,ariaLive:null,ariaModal:qS,ariaMultiLine:qS,ariaMultiSelectable:qS,ariaOrientation:null,ariaOwns:KS,ariaPlaceholder:null,ariaPosInSet:XS,ariaPressed:qS,ariaReadOnly:qS,ariaRelevant:null,ariaRequired:qS,ariaRoleDescription:KS,ariaRowCount:XS,ariaRowIndex:XS,ariaRowSpan:XS,ariaSelected:qS,ariaSetSize:XS,ariaSort:null,ariaValueMax:XS,ariaValueMin:XS,ariaValueNow:XS,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function iE(e,t){return t in e?e[t]:t}function aE(e,t){return iE(e,t.toLowerCase())}const sE=rE({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:GS,acceptCharset:KS,accessKey:KS,action:null,allow:null,allowFullScreen:WS,allowPaymentRequest:WS,allowUserMedia:WS,alt:null,as:null,async:WS,autoCapitalize:null,autoComplete:KS,autoFocus:WS,autoPlay:WS,blocking:KS,capture:null,charSet:null,checked:WS,cite:null,className:KS,cols:XS,colSpan:null,content:null,contentEditable:qS,controls:WS,controlsList:KS,coords:XS|GS,crossOrigin:null,data:null,dateTime:null,decoding:null,default:WS,defer:WS,dir:null,dirName:null,disabled:WS,download:YS,draggable:qS,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:WS,formTarget:null,headers:KS,height:XS,hidden:WS,high:XS,href:null,hrefLang:null,htmlFor:KS,httpEquiv:KS,id:null,imageSizes:null,imageSrcSet:null,inert:WS,inputMode:null,integrity:null,is:null,isMap:WS,itemId:null,itemProp:KS,itemRef:KS,itemScope:WS,itemType:KS,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:WS,low:XS,manifest:null,max:null,maxLength:XS,media:null,method:null,min:null,minLength:XS,multiple:WS,muted:WS,name:null,nonce:null,noModule:WS,noValidate:WS,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:WS,optimum:XS,pattern:null,ping:KS,placeholder:null,playsInline:WS,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:WS,referrerPolicy:null,rel:KS,required:WS,reversed:WS,rows:XS,rowSpan:XS,sandbox:KS,scope:null,scoped:WS,seamless:WS,selected:WS,shadowRootClonable:WS,shadowRootDelegatesFocus:WS,shadowRootMode:null,shape:null,size:XS,sizes:null,slot:null,span:XS,spellCheck:qS,src:null,srcDoc:null,srcLang:null,srcSet:null,start:XS,step:null,style:null,tabIndex:XS,target:null,title:null,translate:null,type:null,typeMustMatch:WS,useMap:null,value:qS,width:XS,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:KS,axis:null,background:null,bgColor:null,border:XS,borderColor:null,bottomMargin:XS,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:WS,declare:WS,event:null,face:null,frame:null,frameBorder:null,hSpace:XS,leftMargin:XS,link:null,longDesc:null,lowSrc:null,marginHeight:XS,marginWidth:XS,noResize:WS,noHref:WS,noShade:WS,noWrap:WS,object:null,profile:null,prompt:null,rev:null,rightMargin:XS,rules:null,scheme:null,scrolling:qS,standby:null,summary:null,text:null,topMargin:XS,valueType:null,version:null,vAlign:null,vLink:null,vSpace:XS,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:WS,disableRemotePlayback:WS,prefix:null,property:null,results:XS,security:null,unselectable:null},space:"html",transform:aE}),lE=rE({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:QS,accentHeight:XS,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:XS,amplitude:XS,arabicForm:null,ascent:XS,attributeName:null,attributeType:null,azimuth:XS,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:XS,by:null,calcMode:null,capHeight:XS,className:KS,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:XS,diffuseConstant:XS,direction:null,display:null,dur:null,divisor:XS,dominantBaseline:null,download:WS,dx:null,dy:null,edgeMode:null,editable:null,elevation:XS,enableBackground:null,end:null,event:null,exponent:XS,externalResourcesRequired:null,fill:null,fillOpacity:XS,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:GS,g2:GS,glyphName:GS,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:XS,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:XS,horizOriginX:XS,horizOriginY:XS,id:null,ideographic:XS,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:XS,k:XS,k1:XS,k2:XS,k3:XS,k4:XS,kernelMatrix:QS,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:XS,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:XS,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:XS,overlineThickness:XS,paintOrder:null,panose1:null,path:null,pathLength:XS,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:KS,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:XS,pointsAtY:XS,pointsAtZ:XS,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:QS,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:QS,rev:QS,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:QS,requiredFeatures:QS,requiredFonts:QS,requiredFormats:QS,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:XS,specularExponent:XS,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:XS,strikethroughThickness:XS,string:null,stroke:null,strokeDashArray:QS,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:XS,strokeOpacity:XS,strokeWidth:null,style:null,surfaceScale:XS,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:QS,tabIndex:XS,tableValues:null,target:null,targetX:XS,targetY:XS,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:QS,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:XS,underlineThickness:XS,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:XS,values:null,vAlphabetic:XS,vMathematical:XS,vectorEffect:null,vHanging:XS,vIdeographic:XS,version:null,vertAdvY:XS,vertOriginX:XS,vertOriginY:XS,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:XS,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:iE}),cE=rE({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),uE=rE({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:aE}),dE=rE({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),fE={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},pE=/[A-Z]/g,hE=/-[a-z]/g,mE=/^data[-\w.:]+$/i;function gE(e){return"-"+e.toLowerCase()}function yE(e){return e.charAt(1).toUpperCase()}const vE=$S([oE,sE,cE,uE,dE],"html"),bE=$S([oE,lE,cE,uE,dE],"svg");var wE,xE,kE,SE={};function EE(){if(kE)return SE;kE=1;var e=SE&&SE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(SE,"__esModule",{value:!0}),SE.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var o=(0,t.default)(e),i="function"==typeof n;return o.forEach((function(e){if("declaration"===e.type){var t=e.property,o=e.value;i?n(t,o,e):o&&((r=r||{})[t]=o)}})),r};var t=e(function(){if(xE)return wE;xE=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(s,l):l}return wE=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var d=1,f=1;function p(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=u.source}function g(e){var t=new Error(u.source+":"+d+":"+f+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=f,t.source=s,!u.silent)throw t}function y(e){var t=e.exec(s);if(t){var n=t[0];return p(n),s=s.slice(n.length),t}}function v(){y(n)}function b(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var e=h();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;l!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,l===s.charAt(t-1))return g("End of comment missing");var n=s.slice(2,t-2);return f+=2,p(n),s=s.slice(t),f+=2,e({type:"comment",comment:n})}}function x(){var t=h(),n=y(r);if(n){if(w(),!y(o))return g("property missing ':'");var s=y(i),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:s?c(s[0].replace(e,l)):l});return y(a),u}}return m.prototype.content=s,v(),function(){var e,t=[];for(b(t);e=x();)!1!==e&&(t.push(e),b(t));return t}()},wE}());return SE}var _E,CE,OE,NE={};function PE(){if(_E)return NE;_E=1,Object.defineProperty(NE,"__esModule",{value:!0}),NE.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(e,t){return t.toUpperCase()},a=function(e,t){return"".concat(t,"-")};return NE.camelCase=function(s,l){return void 0===l&&(l={}),function(t){return!t||n.test(t)||e.test(t)}(s)?s:(s=s.toLowerCase(),(s=l.reactCompat?s.replace(o,a):s.replace(r,a)).replace(t,i))},NE}var RE=function(){if(OE)return CE;OE=1;var e=(CE&&CE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(EE()),t=PE();function n(n,r){var o={};return n&&"string"==typeof n?((0,e.default)(n,(function(e,n){e&&n&&(o[(0,t.camelCase)(e,r)]=n)})),o):o}return n.default=n,CE=n}(),AE=t(RE);const ME=DE("end"),TE=DE("start");function DE(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function IE(e){return e&&"object"==typeof e?"position"in e||"type"in e?zE(e.position):"start"in e||"end"in e?zE(e):"line"in e||"column"in e?LE(e):"":""}function LE(e){return FE(e&&e.line)+":"+FE(e&&e.column)}function zE(e){return LE(e&&e.start)+"-"+LE(e&&e.end)}function FE(e){return e&&"number"==typeof e?e:1}class jE extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=IE(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}jE.prototype.file="",jE.prototype.name="",jE.prototype.reason="",jE.prototype.message="",jE.prototype.stack="",jE.prototype.column=void 0,jE.prototype.line=void 0,jE.prototype.ancestors=void 0,jE.prototype.cause=void 0,jE.prototype.fatal=void 0,jE.prototype.place=void 0,jE.prototype.ruleId=void 0,jE.prototype.source=void 0;const BE={}.hasOwnProperty,$E=new Map,VE=/[A-Z]/g,UE=new Set(["table","tbody","thead","tfoot","tr"]),HE=new Set(["td","th"]),WE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function qE(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),s=TE(n);return t(r,o,i,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?bE:vE,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=YE(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function YE(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=bE,e.schema=o);e.ancestors.push(t);const i=ZE(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&BE.call(t.properties,o)){const i=QE(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&HE.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=GE(e,t);UE.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&jS(t.value):jS(t));var t})));return XE(e,a,i,t),KE(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}JE(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=bE,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:ZE(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else JE(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else JE(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=GE(e,t);return XE(e,a,i,t),KE(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);JE(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return KE(r,GE(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function XE(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function KE(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function GE(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:$E;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const s=YE(e,i,a);void 0!==s&&n.push(s)}return n}function QE(e,t,n){const r=function(e,t){const n=VS(t);let r=t,o=US;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&mE.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(hE,yE);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!hE.test(e)){let n=e.replace(pE,gE);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=tE}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return AE(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new jE("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=WE+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)BE.call(e,n)&&(t[e_(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?fE[r.property]||r.property:r.attribute,n]}}function ZE(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=zS(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=zS(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return BE.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);JE(e)}function JE(e,t){const n=new jE("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=WE+"#cannot-handle-mdx-estrees-without-createevaluater",n}function e_(e){let t=e.replace(VE,t_);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function t_(e){return"-"+e.toLowerCase()}const n_={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},r_={};function o_(e,t){return i_(e,"boolean"!=typeof r_.includeImageAlt||r_.includeImageAlt,"boolean"!=typeof r_.includeHtml||r_.includeHtml)}function i_(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return a_(e.children,t,n)}return Array.isArray(e)?a_(e,t,n):""}function a_(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=i_(e[o],t,n);return r.join("")}const s_=document.createElement("i");function l_(e){const t="&"+e+";";s_.innerHTML=t;const n=s_.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function c_(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function u_(e,t){return e.length>0?(c_(e,e.length,0,t),e):t}const d_={}.hasOwnProperty;function f_(e){const t={};let n=-1;for(;++n<e.length;)p_(t,e[n]);return t}function p_(e,t){let n;for(n in t){const r=(d_.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){d_.call(r,i)||(r[i]=[]);const e=o[i];h_(r[i],Array.isArray(e)?e:e?[e]:[])}}}function h_(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);c_(e,0,0,r)}function m_(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function g_(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const y_=P_(/[A-Za-z]/),v_=P_(/[\dA-Za-z]/),b_=P_(/[#-'*+\--9=?A-Z^-~]/);function w_(e){return null!==e&&(e<32||127===e)}const x_=P_(/\d/),k_=P_(/[\dA-Fa-f]/),S_=P_(/[!-/:-@[-`{-~]/);function E_(e){return null!==e&&e<-2}function __(e){return null!==e&&(e<0||32===e)}function C_(e){return-2===e||-1===e||32===e}const O_=P_(/\p{P}|\p{S}/u),N_=P_(/\s/);function P_(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function R_(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&v_(e.charCodeAt(n+1))&&v_(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function A_(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(C_(r))return e.enter(n),a(r);return t(r)};function a(r){return C_(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const M_={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),A_(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):E_(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const T_={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return c_(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(D_,u,d)(o)}function u(e){return r&&v(),y(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(D_,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):E_(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;c_(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},D_={tokenize:function(e,t,n){return A_(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function I_(e){return null===e||__(e)||N_(e)?1:O_(e)?2:void 0}function L_(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const z_={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[u][1].start};F_(d,-s),F_(f,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=u_(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=u_(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=u_(l,L_(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=u_(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=u_(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,c_(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=I_(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),c=I_(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(o||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}}};function F_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const j_={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return y_(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||v_(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||v_(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||w_(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):b_(t)?(e.consume(t),l):n(t)}function c(e){return v_(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||v_(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const B_={partial:!0,tokenize:function(e,t,n){return function(t){return C_(t)?A_(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||E_(e)?t(e):n(e)}}};const $_={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(C_(t))return A_(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt($_,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return C_(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const V_={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return S_(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const U_={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=v_,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=k_,c):(e.enter("characterReferenceValue"),o=7,i=x_,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==v_||l_(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),c):n(s)}}};const H_={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},W_={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),C_(t)?A_(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),C_(t)?A_(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||E_(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),C_(t)?A_(e,c,"whitespace")(t):c(t))}function c(n){return null===n||E_(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(H_,p,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||E_(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):C_(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),A_(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||E_(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||E_(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&C_(t)?A_(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||E_(t)?e.check(H_,p,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||E_(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}}};const q_={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),A_(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):E_(t)?e.attempt(Y_,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||E_(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},Y_={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):E_(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):A_(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):E_(e)?o(e):n(e)}}};const X_={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):E_(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||E_(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}}};class K_{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&G_(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),G_(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),G_(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);G_(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);G_(this.left,t.reverse())}}}function G_(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Q_(e){const t={};let n,r,o,i,a,s,l,c=-1;const u=new K_(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Z_(u,c)),c=t[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return c_(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Z_(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let u,d,f=-1,p=n,h=0,m=0;const g=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const t=s.slice(g[f],g[f+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),f=-1;++f<l.length;)c[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return c}const J_={resolve:function(e){return Q_(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):E_(t)?e.check(eC,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eC={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A_(e,o,"linePrefix")};function o(o){if(null===o||E_(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function tC(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||w_(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||E_(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return u||null!==o&&41!==o&&!__(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||w_(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function nC(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):E_(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||E_(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!C_(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function rC(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):E_(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A_(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||E_(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function oC(e,t){let n;return function r(o){if(E_(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(C_(o))return A_(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const iC={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return nC.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=g_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return __(t)?oC(e,s)(t):s(t)}function s(t){return tC(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(aC,c,c)(t)}function c(t){return C_(t)?A_(e,u,"whitespace")(t):u(t)}function u(i){return null===i||E_(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},aC={partial:!0,tokenize:function(e,t,n){return function(t){return __(t)?oC(e,r)(t):n(t)};function r(t){return rC(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return C_(t)?A_(e,i,"whitespace")(t):i(t)}function i(e){return null===e||E_(e)?t(e):n(e)}}};const sC={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return E_(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const lC={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},c_(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||__(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||E_(n)?(e.exit("atxHeading"),t(n)):C_(n)?A_(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||__(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const cC=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],uC=["pre","script","style","textarea"],dC={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,p):63===s?(e.consume(s),o=3,r.interrupt?t:D):y_(s)?(e.consume(s),a=String.fromCharCode(s),h):n(s)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,f):y_(i)?(e.consume(i),o=4,r.interrupt?t:D):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:D):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:C:f):n(o)}function p(t){return y_(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||__(s)){const l=47===s,c=a.toLowerCase();return l||i||!uC.includes(c)?cC.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):r.interrupt?t(s):C(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):C(s))}return 45===s||v_(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:C):n(o)}function g(t){return C_(t)?(e.consume(t),g):E(t)}function y(t){return 47===t?(e.consume(t),E):58===t||95===t||y_(t)?(e.consume(t),v):C_(t)?(e.consume(t),y):E(t)}function v(t){return 45===t||46===t||58===t||95===t||v_(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),w):C_(t)?(e.consume(t),b):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):C_(t)?(e.consume(t),w):k(t)}function x(t){return t===l?(e.consume(t),l=null,S):null===t||E_(t)?n(t):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||__(t)?b(t):(e.consume(t),k)}function S(e){return 47===e||62===e||C_(e)?y(e):n(e)}function E(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||E_(t)?C(t):C_(t)?(e.consume(t),_):n(t)}function C(t){return 45===t&&2===o?(e.consume(t),R):60===t&&1===o?(e.consume(t),A):62===t&&4===o?(e.consume(t),I):63===t&&3===o?(e.consume(t),D):93===t&&5===o?(e.consume(t),T):!E_(t)||6!==o&&7!==o?null===t||E_(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(fC,L,O)(t))}function O(t){return e.check(pC,N,L)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||E_(t)?O(t):(e.enter("htmlFlowData"),C(t))}function R(t){return 45===t?(e.consume(t),D):C(t)}function A(t){return 47===t?(e.consume(t),a="",M):C(t)}function M(t){if(62===t){const n=a.toLowerCase();return uC.includes(n)?(e.consume(t),I):C(t)}return y_(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),M):C(t)}function T(t){return 93===t?(e.consume(t),D):C(t)}function D(t){return 62===t?(e.consume(t),I):45===t&&2===o?(e.consume(t),D):C(t)}function I(t){return null===t||E_(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),I)}function L(n){return e.exit("htmlFlow"),t(n)}}},fC={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(B_,t,n)}}},pC={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(E_(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const hC={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),v):y_(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):y_(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):E_(t)?(a=u,M(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?A(e):45===e?d(e):u(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):E_(t)?(a=h,M(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?A(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?A(t):E_(t)?(a=y,M(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):E_(t)?(a=v,M(t)):(e.consume(t),v)}function b(e){return 62===e?A(e):v(e)}function w(t){return y_(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||v_(t)?(e.consume(t),x):k(t)}function k(t){return E_(t)?(a=k,M(t)):C_(t)?(e.consume(t),k):A(t)}function S(t){return 45===t||v_(t)?(e.consume(t),S):47===t||62===t||__(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),A):58===t||95===t||y_(t)?(e.consume(t),_):E_(t)?(a=E,M(t)):C_(t)?(e.consume(t),E):A(t)}function _(t){return 45===t||46===t||58===t||95===t||v_(t)?(e.consume(t),_):C(t)}function C(t){return 61===t?(e.consume(t),O):E_(t)?(a=C,M(t)):C_(t)?(e.consume(t),C):E(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,N):E_(t)?(a=O,M(t)):C_(t)?(e.consume(t),O):(e.consume(t),P)}function N(t){return t===o?(e.consume(t),o=void 0,R):null===t?n(t):E_(t)?(a=N,M(t)):(e.consume(t),N)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||__(t)?E(t):(e.consume(t),P)}function R(e){return 47===e||62===e||__(e)?E(e):n(e)}function A(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return C_(t)?A_(e,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),a(t)}}};const mC={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&c_(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",l,t],["enter",c,t]],i=u_(i,e.slice(r+1,r+s+3)),i=u_(i,[["enter",u,t]]),i=u_(i,L_(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=u_(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=u_(i,e.slice(o+1)),i=u_(i,[["exit",l,t]]),c_(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(g_(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(gC,c,i?c:u)(t):91===t?e.attempt(yC,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(vC,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},gC={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return __(t)?oC(e,o)(t):o(t)}function o(t){return 41===t?c(t):tC(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return __(t)?oC(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?rC(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return __(t)?oC(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},yC={tokenize:function(e,t,n){const r=this;return function(t){return nC.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(g_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},vC={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const bC={name:"labelStartImage",resolveAll:mC.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const wC={name:"labelStartLink",resolveAll:mC.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const xC={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),A_(e,t,"linePrefix")}}};const kC={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||E_(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),C_(t)?A_(e,i,"whitespace")(t):i(t))}}};const SC={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(B_,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,A_(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!C_(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(_C,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,A_(e,e.attempt(SC,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:x_(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(kC,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return x_(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(B_,r.interrupt?n:c,e.attempt(EC,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return C_(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},EC={partial:!0,tokenize:function(e,t,n){const r=this;return A_(e,(function(e){const o=r.events[r.events.length-1];return!C_(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},_C={partial:!0,tokenize:function(e,t,n){const r=this;return A_(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const CC={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),C_(t)?A_(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||E_(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const OC={tokenize:function(e){const t=this,n=e.attempt(B_,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,A_(e,e.attempt(this.parser.constructs.flow,r,e.attempt(J_,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const NC={resolveAll:MC()},PC=AC("string"),RC=AC("text");function AC(e){return{resolveAll:MC("text"===e?TC:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function MC(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function TC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const DC={42:SC,43:SC,45:SC,48:SC,49:SC,50:SC,51:SC,52:SC,53:SC,54:SC,55:SC,56:SC,57:SC,62:$_},IC={91:iC},LC={[-2]:q_,[-1]:q_,32:q_},zC={35:lC,42:kC,45:[CC,kC],60:dC,61:CC,95:kC,96:W_,126:W_},FC={38:U_,92:V_},jC={[-5]:xC,[-4]:xC,[-3]:xC,33:bC,38:U_,42:z_,60:[j_,hC],91:wC,92:[sC,V_],93:mC,95:z_,96:X_},BC={null:[z_,NC]};var $C=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:IC,disable:{null:[]},document:DC,flow:zC,flowInitial:LC,insideSpan:BC,string:FC,text:jC});function VC(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],s=[];const l={attempt:g((function(e,t){y(e,t.from)})),check:g(m),consume:function(e){E_(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=f(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=u_(a,e),p(),null!==a[a.length-1])return[];return y(t,0),c.events=L_(i,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function p(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,p;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){p=function(){const e=f(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s);return{from:o,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,v()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,y)(n)}}function g(t){return e(d,p),o}function y(e){return p.restore(),++u<a.length?m(a[u]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&c_(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const UC=/[\0\t\n\r]/g;const HC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function WC(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return m_(n.slice(t?2:1),t?16:10)}return l_(n)||e}const qC={}.hasOwnProperty;function YC(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:_,autolinkEmail:_,atxHeading:i(Q),blockQuote:i(q),characterEscape:_,characterReference:_,codeFenced:i(Y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Y,a),codeText:i(X,a),codeTextData:_,data:_,codeFlowValue:_,definition:i(K),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(G),hardBreakEscape:i(Z),hardBreakTrailing:i(Z),htmlFlow:i(J,a),htmlFlowData:_,htmlText:i(J,a),htmlTextData:_,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:j,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(Q),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:W,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:$,characterReferenceMarkerNumeric:$,characterReferenceValue:V,characterReference:U,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:C,codeIndented:l(y),codeText:l(A),codeTextData:C,data:C,definition:l(),definitionDestinationString:w,definitionLabelString:v,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(N),hardBreakTrailing:l(N),htmlFlow:l(P),htmlFlowData:C,htmlText:l(R),htmlTextData:C,image:l(T),label:I,labelText:D,lineEnding:O,link:l(M),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:B,resourceDestinationString:L,resourceTitleString:z,resource:F,setextHeading:l(E),setextHeadingLineSequence:S,setextHeadingText:k,strong:l(),thematicBreak:l()}};KC(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];qC.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||QC).call(i,void 0,e[0])}for(r.position={start:XC(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:XC(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:XC(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+IE({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||QC).call(this,e,r[0])}n.position.end=XC(e.end)}function u(){return o_(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=g_(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function S(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function _(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:XC(e.start),end:void 0},t.push(n)),this.stack.push(n)}function C(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=XC(e.end)}function O(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=XC(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(_.call(this,e),C.call(this,e))}function N(){this.data.atHardBreak=!0}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function A(){const e=this.resume();this.stack[this.stack.length-1].value=e}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function T(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function D(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(HC,WC)}(t),n.identifier=g_(t).toLowerCase()}function I(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function L(){const e=this.resume();this.stack[this.stack.length-1].url=e}function z(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function B(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=g_(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function $(e){this.data.characterReferenceType=e.type}function V(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=m_(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=l_(t)}this.stack[this.stack.length-1].value+=r}function U(e){this.stack.pop().position.end=XC(e.end)}function H(e){C.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){C.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function q(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function X(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function Q(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Q_(e););return e}(function(e){const t={constructs:f_([$C,...(e||{}).extensions||[]]),content:n(M_),defined:[],document:n(T_),flow:n(OC),lazy:{},string:n(PC),text:n(RC)};return t;function n(e){return function(n){return VC(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,c,u,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(UC.lastIndex=u,l=UC.exec(o),d=l&&void 0!==l.index?l.index:o.length,f=o.charCodeAt(d),!l){n=o.slice(u);break}if(10===f&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),f){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function XC(e){return{line:e.line,column:e.column,offset:e.offset}}function KC(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?KC(e,r):GC(e,r)}}function GC(e,t){let n;for(n in t)if(qC.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function QC(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+IE({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+IE({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+IE({start:t.start,end:t.end})+") is still open")}function ZC(e){const t=this;t.parser=function(n){return YC(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function JC(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function eO(e){const t=e.spread;return null==t?e.children.length>1:t}function tO(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(nO(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(nO(t.slice(o),o>0,!1)),i.join("")}function nO(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const rO={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=R_(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return JC(e,t);const o={src:R_(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:R_(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return JC(e,t);const o={href:R_(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:R_(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=eO(n[r])}return t}(n):eO(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=TE(t.children[1]),a=ME(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:tO(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:oO,yaml:oO,definition:oO,footnoteDefinition:oO};function oO(){}const iO="object"==typeof self?self:globalThis,aO=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new iO[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new iO[i](a),o)};return r})(new Map,e)(0),sO="",{toString:lO}={},{keys:cO}=Object,uO=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=lO.call(e).slice(8,-1);switch(n){case"Array":return[1,sO];case"Object":return[2,sO];case"Date":return[3,sO];case"RegExp":return[4,sO];case"Map":return[5,sO];case"Set":return[6,sO];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},dO=([e,t])=>0===e&&("function"===t||"symbol"===t),fO=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,s]=uO(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),o([s,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,r.toString()],r);case"Boolean":case"Number":case"String":return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=o([a,n],r);for(const t of cO(r))!e&&dO(uO(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!dO(uO(n))&&!dO(uO(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&dO(uO(n))||t.push(i(n));return n}}const{message:l}=r;return o([a,{name:s,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var pO="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?aO(fO(e,t)):structuredClone(e):(e,t)=>aO(fO(e,t));function hO(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function mO(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const gO=function(e){if(null==e)return vO;if("function"==typeof e)return yO(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=gO(e[n]);return yO(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return yO(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return yO(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function yO(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function vO(){return!0}const bO=[],wO=!0,xO=!1;function kO(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=gO(o),a=r?-1:1;!function e(o,s,l){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=bO;if((!t||i(o,s,l[l.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[wO,e];return null==e?bO:[e]}(n(o,l)),f[0]===xO))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===xO)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}function SO(e,t,n,r){let o,i,a;"function"==typeof t?(i=void 0,a=t,o=n):(i=t,a=n,o=r),kO(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}const EO={}.hasOwnProperty,_O={};function CO(e,t){e.position&&(t.position=function(e){const t=TE(e),n=ME(e);if(t&&n)return{start:t,end:n}}(e))}function OO(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,pO(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function NO(e,t){const n=t.data||{},r=!("value"in t)||EO.call(n,"hProperties")||EO.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function PO(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function RO(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function AO(e,t){const n=function(e,t){const n=t||_O,r=new Map,o=new Map,i=new Map,a={...rO,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=s.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=RO(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=RO(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:OO,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(EO.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=pO(n);return r.children=s.all(e),r}return pO(e)}return(s.options.unknownHandler||NO)(s,e,t)},options:n,patch:CO,wrap:PO};return SO(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||hO,r=e.options.footnoteBackLabel||mO,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=R_(a.toLowerCase());let u=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++u<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...pO(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function MO(e,t){return e&&"run"in e?async function(n,r){const o=AO(n,{file:r,...t});await e.run(o,r)}:function(n,r){return AO(n,{file:r,...e||t})}}function TO(e){if(e)throw e}var DO,IO;var LO=function(){if(IO)return DO;IO=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return DO=function e(){var t,n,r,l,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},DO}(),zO=t(LO);function FO(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function jO(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(s,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const BO={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');$O(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if($O(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){$O(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)$O(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){$O(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function $O(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const VO={cwd:function(){return"/"}};function UO(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function HO(e){if("string"==typeof e)e=new URL(e);else if(!UO(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const WO=["history","path","basename","stem","extname","dirname"];class qO{constructor(e){let t;t=e?UO(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":VO.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<WO.length;){const e=WO[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)WO.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?BO.basename(this.path):void 0}set basename(e){XO(e,"basename"),YO(e,"basename"),this.path=BO.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?BO.dirname(this.path):void 0}set dirname(e){KO(this.basename,"dirname"),this.path=BO.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?BO.extname(this.path):void 0}set extname(e){if(YO(e,"extname"),KO(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=BO.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){UO(e)&&(e=HO(e)),XO(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?BO.basename(this.path,this.extname):void 0}set stem(e){XO(e,"stem"),YO(e,"stem"),this.path=BO.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new jE(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function YO(e,t){if(e&&e.includes(BO.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+BO.sep+"`")}function XO(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function KO(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const GO=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},QO={}.hasOwnProperty;class ZO extends GO{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=jO()}copy(){const e=new ZO;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(zO(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(nN("data",this.frozen),this.namespace[e]=t,this):QO.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nN("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=iN(e),n=this.parser||this.Parser;return eN("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),eN("process",this.parser||this.Parser),tN("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=iN(e),a=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,s(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),eN("processSync",this.parser||this.Parser),tN("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,TO(e),t=r})),oN("processSync","process",n),t}run(e,t,n){rN(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=iN(t);r.run(e,a,(function(t,r,a){const s=r||e;t?i(t):o?o(s):n(void 0,s,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){TO(e),n=t,r=!0})),oN("runSync","run",r),n}stringify(e,t){this.freeze();const n=iN(t),r=this.compiler||this.Compiler;return tN("stringify",r),rN(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(nN("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=zO(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function s(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];FO(a)&&FO(r)&&(r=zO(!0,a,r)),n[o]=[e,r,...i]}}}}const JO=(new ZO).freeze();function eN(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function tN(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function nN(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function rN(e){if(!FO(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function oN(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function iN(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new qO(e)}const aN=[],sN={allowDangerousHtml:!0},lN=/^(https?|ircs?|mailto|xmpp)$/i,cN=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function uN(e){const t=function(e){const t=e.rehypePlugins||aN,n=e.remarkPlugins||aN,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...sN}:sN,o=JO().use(ZC).use(n).use(MO,r).use(t);return o}(e),n=function(e){const t=e.children||"",n=new qO;"string"==typeof t&&(n.value=t);return n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||dN;for(const e of cN)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]});return SO(e,c),qE(e,{Fragment:uf.Fragment,components:o,ignoreInvalidStyle:!0,jsx:uf.jsx,jsxs:uf.jsxs,passKeys:!0,passNode:!0});function c(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return a?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in n_)if(Object.hasOwn(n_,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=n_[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,o)),a&&o&&"number"==typeof t)return s&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}}(t.runSync(t.parse(n),n),e)}function dN(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||lN.test(e.slice(0,t))?e:""}function fN(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function pN(e,t,n){const r=gO((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([hN(e[0]),mN(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)kO(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),s=n+d[0].length,c=!0),!r.window)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function hN(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function mN(e){return"function"==typeof e?e:function(){return e}}const gN="phrasing",yN=["autolink","link","image","label"];function vN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function bN(e){this.config.enter.autolinkProtocol.call(this,e)}function wN(e){this.config.exit.autolinkProtocol.call(this,e)}function xN(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function kN(e){this.config.exit.autolinkEmail.call(this,e)}function SN(e){this.exit(e)}function EN(e){pN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_N],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,CN]],{ignore:["link","linkReference"]})}function _N(e,t,n,r,o){let i="";if(!ON(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=fN(e,"(");let i=fN(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function CN(e,t,n,r){return!(!ON(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ON(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||N_(n)||O_(n))&&(!t||47!==n)}function NN(){this.buffer()}function PN(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function RN(){this.buffer()}function AN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function MN(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=g_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function TN(e){this.exit(e)}function DN(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=g_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function IN(e){this.exit(e)}function LN(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),a(),i+=o.move("]"),i}function zN(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?jN:FN)));return s(),a},footnoteReference:LN},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function FN(e,t,n){return 0===t?e:jN(e,t,n)}function jN(e,t,n){return(n?"":" ")+e}LN.peek=function(){return"["};const BN=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function $N(e){this.enter({type:"delete",children:[]},e)}function VN(e){this.exit(e)}function UN(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function HN(e){return e.length}function WN(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function qN(e,t,n){return">"+(n?"":" ")+e}function YN(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function XN(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&(i=n.stack,a=n.unsafe[o],YN(i,a.inConstruct,!0)&&!YN(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function KN(e,t,n){return(n?"":" ")+e}function GN(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function QN(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ZN(e,t,n){const r=I_(e),o=I_(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function JN(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),s=a.move(o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const c=l.charCodeAt(0),u=ZN(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=QN(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=ZN(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+QN(d));const p=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}function eP(e){return e.value||""}function tP(e,t,n,r){const o=GN(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function nP(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function rP(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function oP(e,t){const n=o_(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function iP(e,t,n,r){const o=GN(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(oP(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),l()),c+=a.move(")"),s(),c}function aP(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function sP(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function lP(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}UN.peek=function(){return"~"},JN.peek=function(e,t,n){return n.options.emphasis||"*"},eP.peek=function(){return"<"},tP.peek=function(){return"!"},nP.peek=function(){return"!"},rP.peek=function(){return"`"},iP.peek=function(e,t,n){return oP(e,n)?"<":"["},aP.peek=function(){return"["};const cP=gO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function uP(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),s=a.move(o+o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const c=l.charCodeAt(0),u=ZN(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=QN(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=ZN(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+QN(d));const p=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}uP.peek=function(e,t,n){return n.options.strong||"*"};const dP={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),qN);return o(),a},break:XN,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,KN);return e(),t}const s=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const o=GN(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),s()),a(),c},emphasis:JN,hardBreak:XN,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return SO(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,xO})),Boolean((!e.depth||e.depth<3)&&o_(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=QN(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:eP,image:tP,imageReference:nP,inlineCode:rP,link:iP,linkReference:aP,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):sP(n);const s=e.ordered?"."===a?")":".":function(e){const t=sP(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),lP(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||sP(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return l(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){return cP(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:uP,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(lP(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function fP(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function pP(e){this.exit(e),this.data.inTable=void 0}function hP(e){this.enter({type:"tableRow",children:[]},e)}function mP(e){this.exit(e)}function gP(e){this.enter({type:"tableCell",children:[]},e)}function yP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,vP));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function vP(e,t){return"|"===t?t:e}function bP(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=dP.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=l(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=l(e,n,r),i=s([o]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||HN,i=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const a=null==(d=e[u][i])?"":String(d);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(a)}a[u]=t,s[u]=r}var d;let f=-1;if("object"==typeof r&&"length"in r)for(;++f<c;)i[f]=WN(r[f]);else{const e=WN(r);for(;++f<c;)i[f]=e}f=-1;const p=[],h=[];for(;++f<c;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,l[f]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>l[f]&&(l[f]=o),h[f]=o),p[f]=a}a.splice(1,0,p),s.splice(1,0,h),u=-1;const m=[];for(;++u<a.length;){const e=a[u],t=s[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[f]-(t[f]||0),n=i[f];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function l(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return s(),i}}function wP(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function xP(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function kP(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let l=dP.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}const SP={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},EP={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(CP,l,s)(t):null===t||__(t)||N_(t)||45!==t&&O_(t)?l(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function l(e){return o||r||!i?n(e):t(e)}},partial:!0},_P={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(CP,t,i)(a):null===a||__(a)||N_(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},CP={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||__(a)||N_(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||__(e)||N_(e)?t(e):r(e)}function i(e){return y_(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):y_(t)?(e.consume(t),a):n(t)}},partial:!0},OP={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return v_(e)?n(e):t(e)}},partial:!0},NP={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!TP.call(r,r.previous)||zP(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(SP,e.attempt(EP,e.attempt(_P,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:TP},PP={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&DP.call(r,r.previous)&&!zP(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(y_(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||w_(t)||__(t)||N_(t)||O_(t)?n(t):e.attempt(EP,e.attempt(_P,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:DP},RP={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!LP(t)||!IP.call(r,r.previous)||zP(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return LP(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(OP,c,l)(t):45===t||95===t||v_(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),o=!0,s}function c(a){return i&&o&&y_(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:IP},AP={};let MP=48;for(;MP<123;)AP[MP]=RP,MP++,58===MP?MP=65:91===MP&&(MP=97);function TP(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||__(e)}function DP(e){return!y_(e)}function IP(e){return!(47===e||LP(e))}function LP(e){return 43===e||45===e||46===e||95===e||v_(e)}function zP(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}AP[43]=RP,AP[45]=RP,AP[46]=RP,AP[95]=RP,AP[72]=[RP,PP],AP[104]=[RP,PP],AP[87]=[RP,NP],AP[119]=[RP,NP];const FP={tokenize:function(e,t,n){const r=this;return A_(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function jP(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const s=g_(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function BP(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function $P(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!i||null===s||91===s||__(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(g_(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return __(s)||(i=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function VP(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||__(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=g_(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return __(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),A_(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function UP(e,t,n){return e.check(B_,t,e.attempt(FP,t,n))}function HP(e){e.exit("gfmFootnoteDefinition")}function WP(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=I_(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=I_(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&c_(a,a.length,0,L_(s,e.slice(r+1,n),t)),c_(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),c_(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class qP{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function YP(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function XP(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?w:s;if(i===w&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return o=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):E_(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):C_(t)?A_(e,l,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||__(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,C_(t)?A_(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return C_(t)?A_(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||E_(t)?v(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return C_(t)?A_(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?f(n):(null===n||E_(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function w(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||E_(n)?(e.exit("tableRow"),t(n)):C_(n)?A_(e,x,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||__(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?S:k)}function S(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function KP(e,t){let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const f=new qP;for(;++i<e.length;){const p=e[i],h=p[1];"enter"===p[0]?"tableHead"===h.type?(u=!1,0!==d&&(QP(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],o=GP(f,t,l,s,void 0,o)),l=c,c=[l[1],i,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],o=GP(f,t,l,s,void 0,o),l=[0,0,0,0]),c[2]=i)):"tableHead"===h.type?(u=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==l[1]?(c[0]=c[1],o=GP(f,t,l,s,i,o)):0!==c[1]&&(o=GP(f,t,c,s,i,o)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==d&&QP(f,t,d,n,r),f.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=YP(t.events,i))}return e}function GP(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},ZP(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=ZP(t.events,n[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=ZP(t.events,n[2]),i=ZP(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},ZP(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function QP(e,t,n,r,o){const i=[],a=ZP(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function ZP(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const JP={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return __(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return E_(r)?t(r):C_(r)?e.check({tokenize:eR},t,n)(r):n(r)}}};function eR(e,t,n){return A_(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const tR={};function nR(e){const t=e||tR,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return f_([{text:AP},{document:{91:{name:"gfmFootnoteDefinition",tokenize:VP,continuation:{tokenize:UP},exit:HP}},text:{91:{name:"gfmFootnoteCall",tokenize:$P},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:jP,resolveTo:BP}}},WP(e),{flow:{null:{name:"table",tokenize:XP,resolveAll:KP}}},{text:{91:JP}}])}(t)),o.push([{transforms:[EN],enter:{literalAutolink:vN,literalAutolinkEmail:bN,literalAutolinkHttp:bN,literalAutolinkWww:bN},exit:{literalAutolink:SN,literalAutolinkEmail:kN,literalAutolinkHttp:wN,literalAutolinkWww:xN}},{enter:{gfmFootnoteCallString:NN,gfmFootnoteCall:PN,gfmFootnoteDefinitionLabelString:RN,gfmFootnoteDefinition:AN},exit:{gfmFootnoteCallString:MN,gfmFootnoteCall:TN,gfmFootnoteDefinitionLabelString:DN,gfmFootnoteDefinition:IN}},{canContainEols:["delete"],enter:{strikethrough:$N},exit:{strikethrough:VN}},{enter:{table:fP,tableData:gP,tableHeader:gP,tableRow:hP},exit:{codeText:yP,table:pP,tableData:mP,tableHeader:mP,tableRow:mP}},{exit:{taskListCheckValueChecked:wP,taskListCheckValueUnchecked:wP,paragraph:xP}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gN,notInConstruct:yN},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gN,notInConstruct:yN},{character:":",before:"[ps]",after:"\\/",inConstruct:gN,notInConstruct:yN}]},zN(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:BN}],handlers:{delete:UN}},bP(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:kP}}]}}(t))}const rR=({item:e})=>{const t=k.useContext(wV);return k.createElement("div",{className:"libnodeentry",onClick:n=>{2===n.detail&&t.worker?.add_node(e.node_id)},title:e.description},e.node_name||e.node_id)},oR=(e,t)=>{const n=e.nodes?.some((e=>e.node_id.toLowerCase().includes(t.toLowerCase())))??!1,r=e.subshelves?.some((e=>oR(e,t)))??!1;return n||r},iR=({item:e,filter:t,parentkey:n})=>{const[r,o]=k.useState(!1),i=e.nodes?.filter((e=>e.node_id.toLowerCase().includes(t.toLowerCase()))),a=r||t.length>0;return oR(e,t)?k.createElement("div",{className:"shelfcontainer"},k.createElement("div",{className:"shelftitle",onClick:()=>o(!r),style:{cursor:"pointer"},title:e.description},k.createElement("div",{className:"shelftitle_text"},e.name),k.createElement("div",{className:"expandicon "+(a?"open":"close")},k.createElement(Qv,null))),k.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},k.createElement("div",{className:"libnodecontainer_inner"},i&&k.createElement(k.Fragment,null,i.map((e=>k.createElement(rR,{key:e.node_id,item:e})))),e.subshelves&&k.createElement(k.Fragment,null,e.subshelves.map((e=>k.createElement(iR,{key:n+e.name,item:e,filter:t,parentkey:n+e.name})))))),k.createElement("hr",null)):k.createElement(k.Fragment,null)},aR=({filter:e,setFilter:t})=>k.createElement("div",{className:"libfilter"},k.createElement(rb,{fontSize:"inherit"}),k.createElement("input",{type:"text",placeholder:"Filter",value:e,onChange:e=>{t(e.target.value)}}),e&&k.createElement(Zv,{fontSize:"inherit",onClick:()=>{t("")}})),sR=[">=","==","<=","<",">"],lR=">=",cR=({availableModule:e})=>k.createElement("div",{className:"module-links"},e.homepage&&k.createElement(k.Fragment,null,k.createElement("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer"},"Homepage")),e.source&&e.homepage&&" | ",e.source&&k.createElement(k.Fragment,null,k.createElement("a",{href:e.source,target:"_blank",rel:"noopener noreferrer"},"Source"))),uR=({availableModule:e})=>{const[t,n]=k.useState(!1),r=e.description.length>150?e.description.substring(0,150)+"...":e.description;return k.createElement("div",{className:"module-description"},k.createElement(uN,{remarkPlugins:[nR]},t?e.description.replace(/\\n/g," \n"):r.replace(/\\n/g," \n")),e.description.length>150&&k.createElement("button",{onClick:()=>n(!t),className:"toggle-description"},t?"Show less":"Show more"))},dR=({availableModule:e,on_change:t})=>{const[n,r]=k.useState(e.version||"latest"),[o,i]=k.useState(lR);return e.releases&&!e.releases.includes(n)&&e.releases.unshift(n),k.createElement(k.Fragment,null,k.createElement("select",{value:o,onChange:e=>{e.target.value!==o&&sR.includes(e.target.value)&&(i(e.target.value),"latest"!==n&&t(e.target.value+n))}},sR.map((e=>k.createElement("option",{key:e,value:e},e)))),k.createElement("select",{onChange:e=>{const n=e.target.value;r(n),t("latest"!==n?o+n:n)},value:n},e.releases&&e.releases.map((e=>k.createElement("option",{key:e,value:e},e)))))},fR=({availableModule:e,on_remove:t,on_update:n})=>{const[r,o]=k.useState(lR+e.version||"latest");return k.createElement("div",{className:"addable-module"},k.createElement("div",{className:"module-name"},e.name+(e.version?` (${e.version})`:"")),k.createElement(cR,{availableModule:e}),k.createElement(uR,{availableModule:e}),k.createElement("div",null,k.createElement(dR,{availableModule:e,on_change:o}),k.createElement("button",{className:"update-button",disabled:r===e.version,onClick:()=>{n(e,r)}},"Update"),k.createElement("button",{className:"remove-button",onClick:()=>{t(e)}},"Remove")))},pR=({availableModule:e,on_add:t})=>{const[n,r]=k.useState(lR+e.version||"latest");return k.createElement("div",{className:"addable-module"},k.createElement("div",{className:"module-name"},e.name+(e.version?` (${e.version})`:"")),k.createElement(cR,{availableModule:e}),k.createElement(uR,{availableModule:e}),k.createElement("div",null,k.createElement(dR,{availableModule:e,on_change:r}),k.createElement("button",{className:"add-button",onClick:()=>{t(e,n)}},"Add")))},hR=({availableModule:e,on_add:t})=>{const[n,r]=k.useState(lR+e.version||"latest");return k.createElement("div",{className:"addable-module"},k.createElement("div",{className:"module-name"},e.name),k.createElement(cR,{availableModule:e}),k.createElement(uR,{availableModule:e}),k.createElement("div",null,k.createElement(dR,{availableModule:e,on_change:r}),k.createElement("button",{className:"add-button",onClick:()=>{t(e,n)}},"Add")))},mR=({children:e})=>{const[t,n]=k.useState(""),r=k.useContext(wV),[o,i]=k.useState(!0),[a,s]=k.useState(!0),[l,c]=k.useState(!0),[u,d]=k.useState({installed:[],available:[],active:[]}),[f,p]=k.useState(!1);if(!r.worker)return k.createElement(k.Fragment,null);const h=(e,t)=>{p(!1),void 0!==r.worker&&r.worker.add_lib(e.name,t)},m=(e,t)=>{p(!1),void 0!==r.worker&&r.worker.add_lib(e.name,t)},g=e=>{p(!1),void 0!==r.worker&&r.worker.remove_lib(e.name)},y=(e,t)=>{p(!1),void 0!==r.worker&&r.worker.add_lib(e.name,t)},v=e=>e.filter((e=>e.name.toLowerCase().includes(t.toLowerCase())||e.description.toLowerCase().includes(t.toLowerCase()))),b=v(u.available),w=v(u.installed),x=v(u.active);return k.createElement(ob,{title:"Manage Library",trigger:e,description:"Add or remove libraries to the current worker.",onOpenChange:e=>{e&&void 0!==r.worker&&r.worker.is_open&&r.worker.get_available_modules().then((e=>{d(e)}))},open:f,setOpen:p},k.createElement("input",{className:"filter-input styledinput",type:"text",placeholder:"Filter modules...",value:t,onChange:e=>n(e.target.value)}),k.createElement("div",{className:"packagelist",style:{maxHeight:"70%",overflow:"auto"}},w.length>0&&k.createElement("h3",{onClick:()=>{c(!l)}},"Installed"),l&&w.map((e=>k.createElement(pR,{key:e.name+e.source,availableModule:e,on_add:h}))),b.length>0&&k.createElement("h3",{onClick:()=>{s(!a)}},"Available"),a&&b.map((e=>k.createElement(hR,{key:e.name+e.source,availableModule:e,on_add:m}))),x.length>0&&k.createElement("h3",{onClick:()=>{i(!o)}},"Active"),o&&x.map((e=>k.createElement(fR,{key:e.name+e.source,availableModule:e,on_remove:g,on_update:y})))))},gR=({ins:e})=>{const[t,n]=k.useState(e.name),r=k.useContext(wV);return k.createElement(k.Fragment,null,k.createElement(ob,{title:e.name,description:"Settings for"+e.name,trigger:k.createElement("div",null,"Settings"),buttons:[{text:"Save",onClick:()=>{r.worker&&(r.worker.update_external_worker(e.uuid,e.nodeclassid,{name:t}),e.name=t)},close:!0},{text:"Delete",onClick:()=>{r.worker&&r.worker.remove_external_worker(e.uuid,e.nodeclassid)},close:!0}]},k.createElement("div",null,k.createElement("div",null,k.createElement("label",{htmlFor:"name"},"Name: "),k.createElement("input",{type:"text",name:"name",value:t,onChange:e=>n(e.target.value),className:"styledinput"})))))},yR=({ins:e,lib:t,filter:n="",parentkey:r})=>{const[o,i]=k.useState(!1),a=t?.nodes?.filter((e=>e.node_id.toLowerCase().includes(n.toLowerCase())));return k.createElement("div",{className:"shelfcontainer"},k.createElement("div",{className:"shelftitle",onClick:()=>i(!o),style:{cursor:"pointer"},title:e.name},k.createElement("div",{className:"shelftitle_text"},e.name),k.createElement("div",{className:"expandicon "+(o?"open":"close")},k.createElement(Qv,null))),k.createElement("div",{className:"libnodecontainer "+(o?"open":"close")},k.createElement("div",{className:"libnodecontainer_inner"},o&&k.createElement(k.Fragment,null,k.createElement("div",{className:"libnodeentry",title:e.uuid},k.createElement(gR,{ins:e})),t&&k.createElement(k.Fragment,null,a&&k.createElement(k.Fragment,null,a.map((e=>k.createElement(rR,{key:r+e.node_id,item:e})))),t.subshelves.map((e=>k.createElement(iR,{key:r+e.name,item:e,filter:n,parentkey:r+e.name}))))))))},vR=({item:e,mod:t,lib:n})=>{const r=k.useContext(wV),[o,i]=k.useState(!1),a=e.name||e.module+"."+e.class_name;return k.createElement("div",{className:"shelfcontainer"},k.createElement("div",{className:"shelftitle",onClick:()=>i(!o),style:{cursor:"pointer"},title:a},k.createElement("div",{className:"shelftitle_text"},a),k.createElement("div",{className:"expandicon "+(o?"open":"close")},k.createElement(Qv,null))),k.createElement("div",{className:"libnodecontainer "+(o?"open":"close")},k.createElement("div",{className:"libnodecontainer_inner"},o&&k.createElement(k.Fragment,null,k.createElement("div",{className:"libnodeentry",onClick:n=>{2===n.detail&&r.worker?.add_external_worker({module:t,cls_module:e.module,cls_name:e.class_name})},title:e.name},"New Instance"),e.instances.map((e=>k.createElement(yR,{key:e.uuid,ins:e,lib:n?.subshelves.find((t=>t.name===e.uuid)),parentkey:e.uuid})))))))},bR=({externalworkermod:e,lib:t})=>{const[n,r]=k.useState(!1),o=n;return k.createElement("div",{className:"shelfcontainer"},k.createElement("div",{className:"shelftitle",onClick:()=>r(!n),style:{cursor:"pointer"},title:e.module},k.createElement("div",{className:"shelftitle_text"},e.module),k.createElement("div",{className:"expandicon "+(o?"open":"close")},k.createElement(Qv,null))),k.createElement("div",{className:"libnodecontainer "+(o?"open":"close")},k.createElement("div",{className:"libnodecontainer_inner"},e.worker_classes.map((n=>k.createElement(vR,{key:n.module+n.class_name,item:n,mod:e.module,lib:t}))))),k.createElement("hr",null))},wR=()=>{const e=k.useContext(wV),t=e.lib.libstate(),n=k.useContext(wV),r=n.local_settings((e=>e.view_settings.expand_lib)),o=n.local_settings((e=>e.update_view_settings)),i=_S("m"),[a,s]=k.useState(""),l=e.worker?.state((e=>e.is_open))??!1;return k.createElement(OS,{maxSize:i?"100%":"300px",direction:i?"down":"right",containerClassName:"pos-left pos-top bg1 h-12",onExpandChange:e=>{o({expand_lib:e})},expanded:void 0===r||r},k.createElement("div",{className:"libcontainer"},k.createElement("div",{className:"library"},k.createElement("div",{className:"libtitle"},"Lib"),k.createElement("hr",{className:"hr_prominent"}),k.createElement(aR,{filter:a,setFilter:s}),k.createElement("div",{className:"vscrollcontainer"},t.lib.shelves.filter((e=>"_external_worker"!==e.name)).map((e=>k.createElement(iR,{key:e.name,item:e,filter:a,parentkey:e.name})))),k.createElement("hr",null),k.createElement("div",{className:"libtitle"},"External Worker"),k.createElement("hr",{className:"hr_prominent"}),k.createElement("div",{className:"vscrollcontainer"},t.external_worker?.map((e=>k.createElement(bR,{key:e.module,externalworkermod:e,lib:t.lib.shelves.find((e=>"_external_worker"===e.name))})))),k.createElement("hr",null)),k.createElement("div",{style:{paddingTop:"0.5rem"}}),l&&k.createElement("div",{className:"addlib"},k.createElement(mR,null,k.createElement("button",null,"Manage Libraries")))))};const{useRef:xR}=S;function kR(e){const t=xR();return n=>{const r=e(n);return function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}(t.current,r)?t.current:t.current=r}}var SR="Popover",[ER,_R]=df(SR,[$w]),CR=$w(),[OR,NR]=ER(SR),PR=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=CR(t),l=k.useRef(null),[c,u]=k.useState(!1),[d=!1,f]=vf({prop:r,defaultProp:o,onChange:i});return uf.jsx(rx,{...s,children:uf.jsx(OR,{scope:t,contentId:gf(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:k.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:c,onCustomAnchorAdd:k.useCallback((()=>u(!0)),[]),onCustomAnchorRemove:k.useCallback((()=>u(!1)),[]),modal:a,children:n})})};PR.displayName=SR;var RR="PopoverAnchor";k.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=NR(RR,n),i=CR(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return k.useEffect((()=>(a(),()=>s())),[a,s]),uf.jsx(ox,{...i,...r,ref:t})})).displayName=RR;var AR="PopoverTrigger",MR=k.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=NR(AR,n),i=CR(n),a=of(t,o.triggerRef),s=uf.jsx(Sf.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":HR(o.open),...r,ref:a,onClick:tf(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:uf.jsx(ox,{asChild:!0,...i,children:s})}));MR.displayName=AR;var TR="PopoverPortal",[DR,IR]=ER(TR,{forceMount:void 0}),LR=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=NR(TR,t);return uf.jsx(DR,{scope:t,forceMount:n,children:uf.jsx(Wf,{present:n||i.open,children:uf.jsx(Hf,{asChild:!0,container:o,children:r})})})};LR.displayName=TR;var zR="PopoverContent",FR=k.forwardRef(((e,t)=>{const n=IR(zR,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=NR(zR,e.__scopePopover);return uf.jsx(Wf,{present:r||i.open,children:i.modal?uf.jsx(jR,{...o,ref:t}):uf.jsx(BR,{...o,ref:t})})}));FR.displayName=zR;var jR=k.forwardRef(((e,t)=>{const n=NR(zR,e.__scopePopover),r=k.useRef(null),o=of(t,r),i=k.useRef(!1);return k.useEffect((()=>{const e=r.current;if(e)return Hp(e)}),[]),uf.jsx(zp,{as:bf,allowPinchZoom:!0,children:uf.jsx($R,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:tf(e.onCloseAutoFocus,(e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()})),onPointerDownOutside:tf(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:tf(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),BR=k.forwardRef(((e,t)=>{const n=NR(zR,e.__scopePopover),r=k.useRef(!1),o=k.useRef(!1);return uf.jsx($R,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const i=t.target,a=n.triggerRef.current?.contains(i);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),$R=k.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=NR(zR,n),p=CR(n);return Xf(),uf.jsx(zf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:uf.jsx(Rf,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:uf.jsx(ix,{"data-state":HR(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),VR="PopoverClose";k.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=NR(VR,n);return uf.jsx(Sf.button,{type:"button",...r,ref:t,onClick:tf(e.onClick,(()=>o.onOpenChange(!1)))})})).displayName=VR;var UR=k.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=CR(n);return uf.jsx(ax,{...o,...r,ref:t})}));function HR(e){return e?"open":"closed"}UR.displayName="PopoverArrow";var WR=PR,qR=MR,YR=LR,XR=FR,KR=UR;const GR={bytes:({iostore:e})=>{const{full:t,preview:n}=e.valuestore(),r=JSON.stringify(t?.value||n?.value)||"";return`Bytes(${Math.round(3*r.length/4)})`}},QR=e=>!!e&&e instanceof Date,ZR=e=>!!e&&e instanceof Object&&"function"==typeof e;function JR(e,t){return void 0===t&&(t=!1),!e||t?`"${e}"`:e}function eA(e){let{field:t,value:n,data:r,lastElement:o,openBracket:i,closeBracket:a,level:s,style:l,shouldExpandNode:c,clickToExpandNode:u,outerRef:d,beforeExpandChange:f}=e;const p=k.useRef(!1),[h,m]=k.useState((()=>c(s,n,t))),g=k.useRef(null);k.useEffect((()=>{p.current?m(c(s,n,t)):p.current=!0}),[c]);const y=k.useId();if(0===r.length)return function(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:i}=e;return k.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&k.createElement("span",{className:i.label},JR(t,i.quotesForFieldNames),":"),k.createElement("span",{className:i.punctuation},n),k.createElement("span",{className:i.punctuation},r),!o&&k.createElement("span",{className:i.punctuation},","))}({field:t,openBracket:i,closeBracket:a,lastElement:o,style:l});const v=h?l.collapseIcon:l.expandIcon,b=h?l.ariaLables.collapseJson:l.ariaLables.expandJson,w=s+1,x=r.length-1,S=e=>{h===e||f&&!f({level:s,value:n,field:t,newExpandValue:e})||m(e)},E=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),S("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const t="ArrowUp"===e.key?-1:1;if(!d.current)return;const n=d.current.querySelectorAll("[role=button]");let r=-1;for(let e=0;e<n.length;e++)if(0===n[e].tabIndex){r=e;break}if(r<0)return;const o=(r+t+n.length)%n.length;n[r].tabIndex=-1,n[o].tabIndex=0,n[o].focus()}},_=()=>{var e;S(!h);const t=g.current;if(!t)return;const n=null===(e=d.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');n&&(n.tabIndex=-1),t.tabIndex=0,t.focus()};return k.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-expanded":h,"aria-selected":void 0},k.createElement("span",{className:v,onClick:_,onKeyDown:E,role:"button","aria-label":b,"aria-expanded":h,"aria-controls":h?y:void 0,ref:g,tabIndex:0===s?0:-1}),(t||""===t)&&(u?k.createElement("span",{className:l.clickableLabel,onClick:_,onKeyDown:E},JR(t,l.quotesForFieldNames),":"):k.createElement("span",{className:l.label},JR(t,l.quotesForFieldNames),":")),k.createElement("span",{className:l.punctuation},i),h?k.createElement("ul",{id:y,role:"group",className:l.childFieldsContainer},r.map(((e,t)=>k.createElement(oA,{key:e[0]||t,field:e[0],value:e[1],style:l,lastElement:t===x,level:w,shouldExpandNode:c,clickToExpandNode:u,outerRef:d})))):k.createElement("span",{className:l.collapsedContent,onClick:_,onKeyDown:E}),k.createElement("span",{className:l.punctuation},a),!o&&k.createElement("span",{className:l.punctuation},","))}function tA(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:a,level:s,outerRef:l,beforeExpandChange:c}=e;return eA({field:t,value:n,lastElement:o||!1,level:s,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:i,clickToExpandNode:a,data:Object.keys(n).map((e=>[e,n[e]])),outerRef:l,beforeExpandChange:c})}function nA(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:a,clickToExpandNode:s,outerRef:l,beforeExpandChange:c}=e;return eA({field:t,value:n,lastElement:o||!1,level:i,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:a,clickToExpandNode:s,data:n.map((e=>[void 0,e])),outerRef:l,beforeExpandChange:c})}function rA(e){let t,{field:n,value:r,style:o,lastElement:i}=e,a=o.otherValue;var s;return null===r?(t="null",a=o.nullValue):void 0===r?(t="undefined",a=o.undefinedValue):"string"==typeof(s=r)||s instanceof String?(t=function(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}(r,!o.noQuotesForStringValues,o.stringifyStringValues),a=o.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(r)?(t=r?"true":"false",a=o.booleanValue):(e=>"number"==typeof e||e instanceof Number)(r)?(t=r.toString(),a=o.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(r)?(t=`${r.toString()}n`,a=o.numberValue):t=QR(r)?r.toISOString():ZR(r)?"function() { }":r.toString(),k.createElement("div",{className:o.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&k.createElement("span",{className:o.label},JR(n,o.quotesForFieldNames),":"),k.createElement("span",{className:a},t),!i&&k.createElement("span",{className:o.punctuation},","))}function oA(e){const t=e.value;return n=t,Array.isArray(n)?k.createElement(nA,Object.assign({},e)):!(e=>"object"==typeof e&&null!==e)(t)||QR(t)||ZR(t)?k.createElement(rA,Object.assign({},e)):k.createElement(tA,Object.assign({},e));var n}var iA="_2bkNM",aA="_1BXBN";const sA={collapseJson:"collapse JSON",expandJson:"expand JSON"},lA={container:"_2IvMF _GzYRV",basicChildStyle:iA,childFieldsContainer:aA,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:sA,stringifyStringValues:!1},cA={container:"_11RoI _GzYRV",basicChildStyle:iA,childFieldsContainer:aA,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:sA,stringifyStringValues:!1},uA=()=>!0,dA=e=>e<1,fA=e=>{let{data:t,style:n=lA,shouldExpandNode:r=uA,clickToExpandNode:o=!1,beforeExpandChange:i,...a}=e;const s=k.useRef(null);return k.createElement("div",Object.assign({"aria-label":"JSON view"},a,{className:n.container,ref:s,role:"tree"}),k.createElement(oA,{value:t,style:{...lA,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:s,beforeExpandChange:i}))};function pA(e){if(null==e)return!1;if("object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype)&&function(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}(e)}const hA=({data:e})=>k.createElement(fA,{data:pA(e)?"":e,style:cA,shouldExpandNode:dA});function mA(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=mA(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gA(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=mA(e))&&(r&&(r+=" "),r+=t);return r}function yA(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}const vA=k.createContext();function bA(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>n.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${n} for the full message.`}function wA(e){if("string"!=typeof e)throw new Error(bA(7));return e.charAt(0).toUpperCase()+e.slice(1)}var xA,kA,SA={exports:{}},EA={};function _A(){if(xA)return EA;xA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),p=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var p=f.$$typeof;switch(p){case e:switch(f=f.type){case n:case o:case r:case l:case c:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case u:case i:return f;default:return p}}case t:return p}}}return EA.ContextConsumer=i,EA.ContextProvider=a,EA.Element=e,EA.ForwardRef=s,EA.Fragment=n,EA.Lazy=d,EA.Memo=u,EA.Portal=t,EA.Profiler=o,EA.StrictMode=r,EA.Suspense=l,EA.SuspenseList=c,EA.isContextConsumer=function(e){return h(e)===i},EA.isContextProvider=function(e){return h(e)===a},EA.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},EA.isForwardRef=function(e){return h(e)===s},EA.isFragment=function(e){return h(e)===n},EA.isLazy=function(e){return h(e)===d},EA.isMemo=function(e){return h(e)===u},EA.isPortal=function(e){return h(e)===t},EA.isProfiler=function(e){return h(e)===o},EA.isStrictMode=function(e){return h(e)===r},EA.isSuspense=function(e){return h(e)===l},EA.isSuspenseList=function(e){return h(e)===c},EA.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},EA.typeOf=h,EA}function CA(){return kA||(kA=1,SA.exports=_A()),SA.exports}var OA=CA();function NA(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function PA(e){if(k.isValidElement(e)||OA.isValidElementType(e)||!NA(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=PA(e[n])})),t}function RA(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return NA(e)&&NA(t)&&Object.keys(t).forEach((o=>{k.isValidElement(t[o])||OA.isValidElementType(t[o])?r[o]=t[o]:NA(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&NA(e[o])?r[o]=RA(e[o],t[o],n):n.clone?r[o]=NA(t[o])?PA(t[o]):t[o]:r[o]=t[o]})),r}function AA(e,t){return t?RA(e,t,{clone:!1}):e}const MA={xs:0,sm:600,md:900,lg:1200,xl:1536},TA={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${MA[e]}px)`},DA={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:MA[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function IA(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||TA;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||TA;return Object.keys(t).reduce(((o,i)=>{if(a=e.keys,"@"===(s=i)||s.startsWith("@")&&(a.some((e=>s.startsWith(`@${e}`)))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:DA,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||MA).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,s;return o}),{})}return n(t)}function LA(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function zA(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:LA(e,n)||r,t&&(o=t(o,r,e)),o}function FA(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=LA(e.theme,r)||{};return IA(e,i,(e=>{let r=zA(a,o,e);return e===r&&"string"==typeof e&&(r=zA(a,o,`${t}${"default"===e?"":wA(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const jA={m:"margin",p:"padding"},BA={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$A={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},VA=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!$A[e])return[e];e=$A[e]}const[t,n]=e.split(""),r=jA[t],o=BA[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),UA=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],HA=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function WA(e,t,n,r){const o=LA(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:`-${n}`}:"function"==typeof o?o:()=>{}}function qA(e){return WA(e,"spacing",8)}function YA(e,t){return"string"==typeof t||null==t?t:e(t)}function XA(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=YA(t,n),e)),{})}(VA(n),r);return IA(e,e[n],o)}function KA(e,t){const n=qA(e.theme);return Object.keys(e).map((r=>XA(e,t,r,n))).reduce(AA,{})}function GA(e){return KA(e,UA)}function QA(e){return KA(e,HA)}function ZA(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?AA(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function JA(e){return"number"!=typeof e?e:`${e}px solid`}function eM(e,t){return FA({prop:e,themeKey:"borders",transform:t})}GA.propTypes={},GA.filterProps=UA,QA.propTypes={},QA.filterProps=HA;const tM=eM("border",JA),nM=eM("borderTop",JA),rM=eM("borderRight",JA),oM=eM("borderBottom",JA),iM=eM("borderLeft",JA),aM=eM("borderColor"),sM=eM("borderTopColor"),lM=eM("borderRightColor"),cM=eM("borderBottomColor"),uM=eM("borderLeftColor"),dM=eM("outline",JA),fM=eM("outlineColor"),pM=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=WA(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:YA(t,e)});return IA(e,e.borderRadius,n)}return null};pM.propTypes={},pM.filterProps=["borderRadius"],ZA(tM,nM,rM,oM,iM,aM,sM,lM,cM,uM,pM,dM,fM);const hM=e=>{if(void 0!==e.gap&&null!==e.gap){const t=WA(e.theme,"spacing",8),n=e=>({gap:YA(t,e)});return IA(e,e.gap,n)}return null};hM.propTypes={},hM.filterProps=["gap"];const mM=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=WA(e.theme,"spacing",8),n=e=>({columnGap:YA(t,e)});return IA(e,e.columnGap,n)}return null};mM.propTypes={},mM.filterProps=["columnGap"];const gM=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=WA(e.theme,"spacing",8),n=e=>({rowGap:YA(t,e)});return IA(e,e.rowGap,n)}return null};gM.propTypes={},gM.filterProps=["rowGap"];function yM(e,t){return"grey"===t?t:e}ZA(hM,mM,gM,FA({prop:"gridColumn"}),FA({prop:"gridRow"}),FA({prop:"gridAutoFlow"}),FA({prop:"gridAutoColumns"}),FA({prop:"gridAutoRows"}),FA({prop:"gridTemplateColumns"}),FA({prop:"gridTemplateRows"}),FA({prop:"gridTemplateAreas"}),FA({prop:"gridArea"}));function vM(e){return e<=1&&0!==e?100*e+"%":e}ZA(FA({prop:"color",themeKey:"palette",transform:yM}),FA({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yM}),FA({prop:"backgroundColor",themeKey:"palette",transform:yM}));const bM=FA({prop:"width",transform:vM}),wM=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||MA[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:vM(t)}};return IA(e,e.maxWidth,t)}return null};wM.filterProps=["maxWidth"];const xM=FA({prop:"minWidth",transform:vM}),kM=FA({prop:"height",transform:vM}),SM=FA({prop:"maxHeight",transform:vM}),EM=FA({prop:"minHeight",transform:vM});FA({prop:"size",cssProperty:"width",transform:vM}),FA({prop:"size",cssProperty:"height",transform:vM});ZA(bM,wM,xM,kM,SM,EM,FA({prop:"boxSizing"}));const _M={border:{themeKey:"borders",transform:JA},borderTop:{themeKey:"borders",transform:JA},borderRight:{themeKey:"borders",transform:JA},borderBottom:{themeKey:"borders",transform:JA},borderLeft:{themeKey:"borders",transform:JA},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:JA},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:pM},color:{themeKey:"palette",transform:yM},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yM},backgroundColor:{themeKey:"palette",transform:yM},p:{style:QA},pt:{style:QA},pr:{style:QA},pb:{style:QA},pl:{style:QA},px:{style:QA},py:{style:QA},padding:{style:QA},paddingTop:{style:QA},paddingRight:{style:QA},paddingBottom:{style:QA},paddingLeft:{style:QA},paddingX:{style:QA},paddingY:{style:QA},paddingInline:{style:QA},paddingInlineStart:{style:QA},paddingInlineEnd:{style:QA},paddingBlock:{style:QA},paddingBlockStart:{style:QA},paddingBlockEnd:{style:QA},m:{style:GA},mt:{style:GA},mr:{style:GA},mb:{style:GA},ml:{style:GA},mx:{style:GA},my:{style:GA},margin:{style:GA},marginTop:{style:GA},marginRight:{style:GA},marginBottom:{style:GA},marginLeft:{style:GA},marginX:{style:GA},marginY:{style:GA},marginInline:{style:GA},marginInlineStart:{style:GA},marginInlineEnd:{style:GA},marginBlock:{style:GA},marginBlockStart:{style:GA},marginBlockEnd:{style:GA},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:hM},rowGap:{style:gM},columnGap:{style:mM},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vM},maxWidth:{style:wM},minWidth:{transform:vM},height:{transform:vM},maxHeight:{transform:vM},minHeight:{transform:vM},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const CM=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=LA(n,s)||{};if(c)return c(o);return IA(o,t,(t=>{let n=zA(u,l,t);return t===n&&"string"==typeof t&&(n=zA(u,l,`${e}${"default"===t?"":wA(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??_M;function a(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const a=function(e={}){const t=e.keys?.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return t||{}}(o.breakpoints),s=Object.keys(a);let l=a;return Object.keys(r).forEach((n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=a)if("object"==typeof a)if(i[n])l=AA(l,e(n,a,o,i));else{const e=IA({theme:o},a,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,a)?l=AA(l,e):l[n]=t({sx:a,theme:o})}else l=AA(l,e(n,a,o,i))})),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)}));return n.length?n.reduce(((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e}),{...t}):t}(o,function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l))}return Array.isArray(r)?r.map(a):a(r)}}();function OM(){return OM=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},OM.apply(null,arguments)}CM.filterProps=["sx"];var NM=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),PM="-ms-",RM="-moz-",AM="-webkit-",MM="comm",TM="rule",DM="decl",IM="@keyframes",LM=Math.abs,zM=String.fromCharCode,FM=Object.assign;function jM(e){return e.trim()}function BM(e,t,n){return e.replace(t,n)}function $M(e,t){return e.indexOf(t)}function VM(e,t){return 0|e.charCodeAt(t)}function UM(e,t,n){return e.slice(t,n)}function HM(e){return e.length}function WM(e){return e.length}function qM(e,t){return t.push(e),e}var YM=1,XM=1,KM=0,GM=0,QM=0,ZM="";function JM(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:YM,column:XM,length:a,return:""}}function eT(e,t){return FM(JM("",null,null,"",null,null,0),e,{length:-e.length},t)}function tT(){return QM=GM>0?VM(ZM,--GM):0,XM--,10===QM&&(XM=1,YM--),QM}function nT(){return QM=GM<KM?VM(ZM,GM++):0,XM++,10===QM&&(XM=1,YM++),QM}function rT(){return VM(ZM,GM)}function oT(){return GM}function iT(e,t){return UM(ZM,e,t)}function aT(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sT(e){return YM=XM=1,KM=HM(ZM=e),GM=0,[]}function lT(e){return ZM="",e}function cT(e){return jM(iT(GM-1,fT(91===e?e+2:40===e?e+1:e)))}function uT(e){for(;(QM=rT())&&QM<33;)nT();return aT(e)>2||aT(QM)>3?"":" "}function dT(e,t){for(;--t&&nT()&&!(QM<48||QM>102||QM>57&&QM<65||QM>70&&QM<97););return iT(e,oT()+(t<6&&32==rT()&&32==nT()))}function fT(e){for(;nT();)switch(QM){case e:return GM;case 34:case 39:34!==e&&39!==e&&fT(QM);break;case 40:41===e&&fT(e);break;case 92:nT()}return GM}function pT(e,t){for(;nT()&&e+QM!==57&&(e+QM!==84||47!==rT()););return"/*"+iT(t,GM-1)+"*"+zM(47===e?e:nT())}function hT(e){for(;!aT(rT());)nT();return iT(e,GM)}function mT(e){return lT(gT("",null,null,null,[""],e=sT(e),0,[0],e))}function gT(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,y=1,v=0,b="",w=o,x=i,k=r,S=b;g;)switch(h=v,v=nT()){case 40:if(108!=h&&58==VM(S,d-1)){-1!=$M(S+=BM(cT(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=cT(v);break;case 9:case 10:case 13:case 32:S+=uT(h);break;case 92:S+=dT(oT()-1,7);continue;case 47:switch(rT()){case 42:case 47:qM(vT(pT(nT(),oT()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=HM(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(S=BM(S,/\f/g,"")),p>0&&HM(S)-d&&qM(p>32?bT(S+";",r,n,d-1):bT(BM(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(qM(k=yT(S,t,n,c,u,o,s,b,w=[],x=[],d),i),123===v)if(0===u)gT(S,t,k,k,w,i,d,s,x);else switch(99===f&&110===VM(S,3)?100:f){case 100:case 108:case 109:case 115:gT(e,k,k,r&&qM(yT(e,k,k,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:gT(S,k,k,k,[""],x,0,s,x)}}c=u=p=0,m=y=1,b=S="",d=a;break;case 58:d=1+HM(S),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==tT())continue;switch(S+=zM(v),v*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(HM(S)-1)*y,y=1;break;case 64:45===rT()&&(S+=cT(nT())),f=rT(),u=d=HM(b=S+=hT(oT())),v++;break;case 45:45===h&&2==HM(S)&&(m=0)}}return i}function yT(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=WM(f),h=0,m=0,g=0;h<r;++h)for(var y=0,v=UM(e,d+1,d=LM(m=a[h])),b=e;y<p;++y)(b=jM(m>0?f[y]+" "+v:BM(v,/&\f/g,f[y])))&&(l[g++]=b);return JM(e,t,n,0===o?TM:s,l,c,u)}function vT(e,t,n){return JM(e,t,n,MM,zM(QM),UM(e,2,-2),0)}function bT(e,t,n,r){return JM(e,t,n,DM,UM(e,0,r),UM(e,r+1,-1),r)}function wT(e,t){for(var n="",r=WM(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function xT(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case DM:return e.return=e.return||e.value;case MM:return"";case IM:return e.return=e.value+"{"+wT(e.children,r)+"}";case TM:e.value=e.props.join(",")}return HM(n=wT(e.children,r))?e.return=e.value+"{"+n+"}":""}function kT(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ST=function(e,t,n){for(var r=0,o=0;r=o,o=rT(),38===r&&12===o&&(t[n]=1),!aT(o);)nT();return iT(e,GM)},ET=function(e,t){return lT(function(e,t){var n=-1,r=44;do{switch(aT(r)){case 0:38===r&&12===rT()&&(t[n]=1),e[n]+=ST(GM-1,t,n);break;case 2:e[n]+=cT(r);break;case 4:if(44===r){e[++n]=58===rT()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=zM(r)}}while(r=nT());return e}(sT(e),t))},_T=new WeakMap,CT=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||_T.get(n))&&!r){_T.set(e,!0);for(var o=[],i=ET(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},OT=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function NT(e,t){switch(function(e,t){return 45^VM(e,0)?(((t<<2^VM(e,0))<<2^VM(e,1))<<2^VM(e,2))<<2^VM(e,3):0}(e,t)){case 5103:return AM+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return AM+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return AM+e+RM+e+PM+e+e;case 6828:case 4268:return AM+e+PM+e+e;case 6165:return AM+e+PM+"flex-"+e+e;case 5187:return AM+e+BM(e,/(\w+).+(:[^]+)/,AM+"box-$1$2"+PM+"flex-$1$2")+e;case 5443:return AM+e+PM+"flex-item-"+BM(e,/flex-|-self/,"")+e;case 4675:return AM+e+PM+"flex-line-pack"+BM(e,/align-content|flex-|-self/,"")+e;case 5548:return AM+e+PM+BM(e,"shrink","negative")+e;case 5292:return AM+e+PM+BM(e,"basis","preferred-size")+e;case 6060:return AM+"box-"+BM(e,"-grow","")+AM+e+PM+BM(e,"grow","positive")+e;case 4554:return AM+BM(e,/([^-])(transform)/g,"$1"+AM+"$2")+e;case 6187:return BM(BM(BM(e,/(zoom-|grab)/,AM+"$1"),/(image-set)/,AM+"$1"),e,"")+e;case 5495:case 3959:return BM(e,/(image-set\([^]*)/,AM+"$1$`$1");case 4968:return BM(BM(e,/(.+:)(flex-)?(.*)/,AM+"box-pack:$3"+PM+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+AM+e+e;case 4095:case 3583:case 4068:case 2532:return BM(e,/(.+)-inline(.+)/,AM+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(HM(e)-1-t>6)switch(VM(e,t+1)){case 109:if(45!==VM(e,t+4))break;case 102:return BM(e,/(.+:)(.+)-([^]+)/,"$1"+AM+"$2-$3$1"+RM+(108==VM(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$M(e,"stretch")?NT(BM(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==VM(e,t+1))break;case 6444:switch(VM(e,HM(e)-3-(~$M(e,"!important")&&10))){case 107:return BM(e,":",":"+AM)+e;case 101:return BM(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+AM+(45===VM(e,14)?"inline-":"")+"box$3$1"+AM+"$2$3$1"+PM+"$2box$3")+e}break;case 5936:switch(VM(e,t+11)){case 114:return AM+e+PM+BM(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return AM+e+PM+BM(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return AM+e+PM+BM(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return AM+e+PM+e+e}return e}var PT,RT,AT=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case DM:e.return=NT(e.value,e.length);break;case IM:return wT([eT(e,{value:BM(e.value,"@","@"+AM)})],r);case TM:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wT([eT(e,{props:[BM(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return wT([eT(e,{props:[BM(t,/:(plac\w+)/,":"+AM+"input-$1")]}),eT(e,{props:[BM(t,/:(plac\w+)/,":-moz-$1")]}),eT(e,{props:[BM(t,/:(plac\w+)/,PM+"input-$1")]})],r)}return""}))}}],MT=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||AT,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[xT,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=WM(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([CT,OT].concat(i,u));o=function(e,t,n,r){l=n,function(e){wT(mT(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new NM({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return f.sheet.hydrate(s),f};!function(){if(RT)return PT;RT=1;var e=iv(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;PT=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||o&&o[y]||m&&m[y]||h&&h[y])){var v=c(r,y);try{a(t,y,v)}catch(e){}}}}return t}}();function TT(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var DT=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},IT=function(e,t,n){DT(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var LT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},zT=/[A-Z]|^ms/g,FT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jT=function(e){return 45===e.charCodeAt(1)},BT=function(e){return null!=e&&"boolean"!=typeof e},$T=kT((function(e){return jT(e)?e:e.replace(zT,"-$&").toLowerCase()})),VT=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(FT,(function(e,t,n){return HT={name:t,styles:n,next:HT},t}))}return 1===LT[e]||jT(e)||"number"!=typeof t||0===t?t:t+"px"};function UT(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return HT={name:o.name,styles:o.styles,next:HT},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)HT={name:a.name,styles:a.styles,next:HT},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=UT(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":BT(s)&&(r+=$T(i)+":"+VT(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=UT(e,t,a);switch(i){case"animation":case"animationName":r+=$T(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)BT(a[c])&&(r+=$T(i)+":"+VT(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=HT,l=n(e);return HT=s,UT(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var HT,WT=/label:\s*([^\s;{]+)\s*(;|$)/g;function qT(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";HT=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=UT(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=UT(n,t,e[a]),r)o+=i[a]}WT.lastIndex=0;for(var s,l="";null!==(s=WT.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:HT}}var YT=!!E.useInsertionEffect&&E.useInsertionEffect||function(e){return e()},XT=k.createContext("undefined"!=typeof HTMLElement?MT({key:"css"}):null);XT.Provider;var KT,GT,QT=function(e){return k.forwardRef((function(t,n){var r=k.useContext(XT);return e(t,r,n)}))},ZT=k.createContext({}),JT={}.hasOwnProperty,eD="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",tD=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return DT(t,n,r),YT((function(){return IT(t,n,r)})),null},nD=QT((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[eD],i=[r],a="";"string"==typeof e.className?a=TT(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=qT(i,void 0,k.useContext(ZT));a+=t.key+"-"+s.name;var l={};for(var c in e)JT.call(e,c)&&"css"!==c&&c!==eD&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),k.createElement(k.Fragment,null,k.createElement(tD,{cache:t,serialized:s,isStringTag:"string"==typeof o}),k.createElement(o,l))})),rD=nD,oD=function(e,t){var n=arguments;if(null==t||!JT.call(t,"css"))return k.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=rD,o[1]=function(e,t){var n={};for(var r in t)JT.call(t,r)&&(n[r]=t[r]);return n[eD]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return k.createElement.apply(null,o)};function iD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return qT(t)}function aD(){var e=iD.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}KT=oD||(oD={}),GT||(GT=KT.JSX||(KT.JSX={}));var sD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,lD=kT((function(e){return sD.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),cD=function(e){return"theme"!==e},uD=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?lD:cD},dD=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},fD=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return DT(t,n,r),YT((function(){return IT(t,n,r)})),null},pD=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=dD(t,n,i),l=s||uD(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var m=QT((function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=k.useContext(ZT)}"string"==typeof e.className?i=TT(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=qT(d.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?uD(r):l,g={};for(var y in e)c&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=i,n&&(g.ref=n),k.createElement(k.Fragment,null,k.createElement(fD,{cache:t,serialized:h,isStringTag:"string"==typeof r}),k.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,OM({},n,r,{shouldForwardProp:dD(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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","marquee","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"].forEach((function(e){pD[e]=pD(e)}));const hD=[];function mD(e){return hD[0]=e,qT(hD)}function gD(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const yD={borderRadius:4};function vD(e=8,t=qA({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}function bD(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function wD(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=RA({breakpoints:gD(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:vD(o),shape:{...yD,...i}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=bD,s=t.reduce(((e,t)=>RA(e,t)),s),s.unstable_sxConfig={..._M,...a?.unstable_sxConfig},s.unstable_sx=function(e){return CM({sx:e,theme:this})},s}const xD=e=>e,kD=(()=>{let e=xD;return{configure(t){e=t},generate:t=>e(t),reset(){e=xD}}})(),SD={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ED(e,t,n="Mui"){const r=SD[t];return r?`${n}-${r}`:`${kD.generate(e)}-${t}`}function _D(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=ED(e,t,n)})),r}function CD(e){const{variants:t,...n}=e,r={variants:t,style:mD(n),isProcessed:!0};return r.style===n||t&&t.forEach((e=>{"function"!=typeof e.style&&(e.style=mD(e.style))})),r}const OD=wD();function ND(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function PD(e){return e?(t,n)=>n[e]:null}function RD(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap((t=>RD(e,t)));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return AD(e,n.variants,[t])}return n?.isProcessed?n.style:n}function AD(e,t,n=[]){let r;e:for(let o=0;o<t.length;o+=1){const i=t[o];if("function"==typeof i.props){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(r))continue}else for(const t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(r))):n.push(i.style)}return n}function MD(e,t){}function TD(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function DD(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if("components"===o||"slots"===o)n[o]={...e[o],...n[o]};else if("componentsProps"===o||"slotProps"===o){const r=e[o],i=t[o];if(i)if(r){n[o]={...i};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[o][t]=DD(r[t],i[t])}}else n[o]=i;else n[o]=r||{}}else void 0===n[o]&&(n[o]=e[o])}return n}const ID="undefined"!=typeof window?k.useLayoutEffect:k.useEffect;function LD(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function zD(e){if(e.type)return e;if("#"===e.charAt(0))return zD(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(bA(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(bA(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const FD=(e,t)=>{try{return(e=>{const t=zD(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(t){return e}};function jD(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function BD(e){e=zD(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),jD({type:s,values:l})}function $D(e){let t="hsl"===(e=zD(e)).type||"hsla"===e.type?zD(BD(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function VD(e,t){return e=zD(e),t=LD(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,jD(e)}function UD(e,t,n){try{return VD(e,t)}catch(t){return e}}function HD(e,t){if(e=zD(e),t=LD(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return jD(e)}function WD(e,t,n){try{return HD(e,t)}catch(t){return e}}function qD(e,t){if(e=zD(e),t=LD(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return jD(e)}function YD(e,t,n){try{return qD(e,t)}catch(t){return e}}function XD(e,t,n){try{return function(e,t=.15){return $D(e)>.5?HD(e,t):qD(e,t)}(e,t)}catch(t){return e}}function KD(e){const t=k.useRef(e);return ID((()=>{t.current=e})),k.useRef(((...e)=>(0,t.current)(...e))).current}function GD(...e){return k.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const QD={};function ZD(e,t){const n=k.useRef(QD);return n.current===QD&&(n.current=e(t)),n}const JD=[];class eI{static create(){return new eI}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function tI(){const e=ZD(eI.create).current;var t;return t=e.disposeEffect,k.useEffect(t,JD),e}function nI(e){try{return e.matches(":focus-visible")}catch(e){}return!1}function rI(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function oI(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=gA(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}({...o,...r}),s=rI(r),l=rI(o),c=t(a),u=gA(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const iI=k.createContext(void 0);function aI({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?DD(o.defaultProps,r):o.styleOverrides||o.variants?r:DD(o,r)}({props:e,name:t,theme:{components:k.useContext(iI)}})}const sI={theme:void 0};function lI(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const cI=(e,t,n,r=[])=>{let o=e;t.forEach(((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])}))};function uI(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t)))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),cI(i,e,`var(${r})`,s),cI(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach((([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))}))}(e),{css:o,vars:i,varsWithDefaults:a}}const dI={black:"#000",white:"#fff"},fI={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},pI="#f3e5f5",hI="#ce93d8",mI="#ba68c8",gI="#ab47bc",yI="#9c27b0",vI="#7b1fa2",bI="#e57373",wI="#ef5350",xI="#f44336",kI="#d32f2f",SI="#c62828",EI="#ffb74d",_I="#ffa726",CI="#ff9800",OI="#f57c00",NI="#e65100",PI="#e3f2fd",RI="#90caf9",AI="#42a5f5",MI="#1976d2",TI="#1565c0",DI="#4fc3f7",II="#29b6f6",LI="#03a9f4",zI="#0288d1",FI="#01579b",jI="#81c784",BI="#66bb6a",$I="#4caf50",VI="#388e3c",UI="#2e7d32",HI="#1b5e20";function WI(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:dI.white,default:dI.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const qI=WI();function YI(){return{text:{primary:dI.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:dI.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const XI=YI();function KI(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=qD(e.main,o):"dark"===t&&(e.dark=HD(e.main,i)))}function GI(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||function(e="light"){return"dark"===e?{main:RI,light:PI,dark:AI}:{main:MI,light:AI,dark:TI}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:hI,light:pI,dark:gI}:{main:yI,light:mI,dark:vI}}(t),s=e.error||function(e="light"){return"dark"===e?{main:xI,light:bI,dark:kI}:{main:kI,light:wI,dark:SI}}(t),l=e.info||function(e="light"){return"dark"===e?{main:II,light:DI,dark:zI}:{main:zI,light:LI,dark:FI}}(t),c=e.success||function(e="light"){return"dark"===e?{main:BI,light:jI,dark:VI}:{main:UI,light:$I,dark:HI}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:_I,light:EI,dark:OI}:{main:"#ed6c02",light:CI,dark:NI}}(t);function d(e){const t=function(e,t){const n=$D(e),r=$D(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,XI.text.primary)>=n?XI.text.primary:qI.text.primary;return t}const f=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(bA(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(bA(12,t?` (${t})`:"",JSON.stringify(e.main)));return KI(e,"light",o,r),KI(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e};let p;"light"===t?p=WI():"dark"===t&&(p=YI());return RA({common:{...dI},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:fI,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...p},o)}function QI(e){const t={};return Object.entries(e).forEach((e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)})),t}const ZI={textTransform:"uppercase"},JI='"Roboto", "Helvetica", "Arial", sans-serif';function eL(e,t){const{fontFamily:n=JI,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,f=r/14,p=u||(e=>e/l*f+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===JI?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,ZI),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,ZI),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return RA({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}function tL(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const nL=["none",tL(0,2,1,-1,0,1,1,0,0,1,3,0),tL(0,3,1,-2,0,2,2,0,0,1,5,0),tL(0,3,3,-2,0,3,4,0,0,1,8,0),tL(0,2,4,-1,0,4,5,0,0,1,10,0),tL(0,3,5,-1,0,5,8,0,0,1,14,0),tL(0,3,5,-1,0,6,10,0,0,1,18,0),tL(0,4,5,-2,0,7,10,1,0,2,16,1),tL(0,5,5,-3,0,8,10,1,0,3,14,2),tL(0,5,6,-3,0,9,12,1,0,3,16,2),tL(0,6,6,-3,0,10,14,1,0,4,18,3),tL(0,6,7,-4,0,11,15,1,0,4,20,3),tL(0,7,8,-4,0,12,17,2,0,5,22,4),tL(0,7,8,-4,0,13,19,2,0,5,24,4),tL(0,7,9,-4,0,14,21,2,0,5,26,4),tL(0,8,9,-5,0,15,22,2,0,6,28,5),tL(0,8,10,-5,0,16,24,2,0,6,30,5),tL(0,8,11,-5,0,17,26,2,0,6,32,5),tL(0,9,11,-5,0,18,28,2,0,7,34,6),tL(0,9,12,-6,0,19,29,2,0,7,36,6),tL(0,10,13,-6,0,20,31,3,0,8,38,7),tL(0,10,13,-6,0,21,33,3,0,8,40,7),tL(0,10,14,-6,0,22,35,3,0,8,42,7),tL(0,11,14,-7,0,23,36,3,0,9,44,8),tL(0,11,15,-7,0,24,38,3,0,9,46,8)],rL={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},oL={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function iL(e){return`${Math.round(e)}ms`}function aL(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function sL(e){const t={...rL,...e.easing},n={...oL,...e.duration};return{getAutoHeightDuration:aL,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:iL(o)} ${i} ${"string"==typeof a?a:iL(a)}`)).join(",")},...e,easing:t,duration:n}}const lL={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function cL(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let o=0;o<n.length;o++){const[i,a]=n[o];!NA(r=a)&&void 0!==r&&"string"!=typeof r&&"boolean"!=typeof r&&"number"!=typeof r&&!Array.isArray(r)||i.startsWith("unstable_")?delete t[i]:NA(a)&&(t[i]={...a},e(t[i]))}var r}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function uL(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(bA(20));const u=GI(i),d=wD(e);let f=RA(d,{mixins:(p=d.breakpoints,h=r,{toolbar:{minHeight:56,[p.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[p.up("sm")]:{minHeight:64}},...h}),palette:u,shadows:nL.slice(),typography:eL(u,s),transitions:sL(a),zIndex:{...lL}});var p,h;return f=RA(f,c),f=t.reduce(((e,t)=>RA(e,t)),f),f.unstable_sxConfig={..._M,...c?.unstable_sxConfig},f.unstable_sx=function(e){return CM({sx:e,theme:this})},f.toRuntimeSource=cL,f}const dL=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function fL(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function pL(e){return"dark"===e?dL:[]}function hL(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var mL=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map(((e,t)=>`--${a?`${a}-`:""}overlays-${t}`)),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach((e=>{o[e]=n[e],delete n[e]})),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function gL(e,t,n){!e[t]&&n&&(e[t]=n)}function yL(e){return"string"==typeof e&&e.startsWith("hsl")?BD(e):e}function vL(e,t){`${t}Channel`in e||(e[`${t}Channel`]=FD(yL(e[t])))}const bL=e=>{try{return e()}catch(e){}};function wL(e,t,n,r){if(!t)return;t=!0===t?{}:t;const o="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=GI(t);return{palette:i,opacity:{...fL(i.mode),...n},overlays:r||pL(i.mode),...o}}({...t,palette:{mode:o,...t?.palette}}));const{palette:i,...a}=uL({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:i,opacity:{...fL(o),...t?.opacity},overlays:t?.overlays||pL(o)},a}function xL(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=hL,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&"light"!==u?"light":u),f=((e="mui")=>lI(e))(i),{[d]:p,light:h,dark:m,...g}=n,y={...g};let v=p;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(v=!0),!v)throw new Error(bA(21,d));const b=wL(y,v,c,d);h&&!y.light&&wL(y,h,void 0,"light"),m&&!y.dark&&wL(y,m,void 0,"dark");let w={defaultColorScheme:d,...b,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:y,font:{...QI(b.typography),...b.font},spacing:(x=c.spacing,"number"==typeof x?`${x}px`:"string"==typeof x||"function"==typeof x||Array.isArray(x)?x:"8px")};var x;Object.keys(w.colorSchemes).forEach((e=>{const t=w.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return f(e,t[r][o])};if("light"===t.mode&&(gL(t.common,"background","#fff"),gL(t.common,"onBackground","#000")),"dark"===t.mode&&(gL(t.common,"background","#000"),gL(t.common,"onBackground","#fff")),function(e,t){t.forEach((t=>{e[t]||(e[t]={})}))}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){gL(t.Alert,"errorColor",WD(t.error.light,.6)),gL(t.Alert,"infoColor",WD(t.info.light,.6)),gL(t.Alert,"successColor",WD(t.success.light,.6)),gL(t.Alert,"warningColor",WD(t.warning.light,.6)),gL(t.Alert,"errorFilledBg",n("palette-error-main")),gL(t.Alert,"infoFilledBg",n("palette-info-main")),gL(t.Alert,"successFilledBg",n("palette-success-main")),gL(t.Alert,"warningFilledBg",n("palette-warning-main")),gL(t.Alert,"errorFilledColor",bL((()=>t.getContrastText(t.error.main)))),gL(t.Alert,"infoFilledColor",bL((()=>t.getContrastText(t.info.main)))),gL(t.Alert,"successFilledColor",bL((()=>t.getContrastText(t.success.main)))),gL(t.Alert,"warningFilledColor",bL((()=>t.getContrastText(t.warning.main)))),gL(t.Alert,"errorStandardBg",YD(t.error.light,.9)),gL(t.Alert,"infoStandardBg",YD(t.info.light,.9)),gL(t.Alert,"successStandardBg",YD(t.success.light,.9)),gL(t.Alert,"warningStandardBg",YD(t.warning.light,.9)),gL(t.Alert,"errorIconColor",n("palette-error-main")),gL(t.Alert,"infoIconColor",n("palette-info-main")),gL(t.Alert,"successIconColor",n("palette-success-main")),gL(t.Alert,"warningIconColor",n("palette-warning-main")),gL(t.AppBar,"defaultBg",n("palette-grey-100")),gL(t.Avatar,"defaultBg",n("palette-grey-400")),gL(t.Button,"inheritContainedBg",n("palette-grey-300")),gL(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),gL(t.Chip,"defaultBorder",n("palette-grey-400")),gL(t.Chip,"defaultAvatarColor",n("palette-grey-700")),gL(t.Chip,"defaultIconColor",n("palette-grey-700")),gL(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),gL(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),gL(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),gL(t.LinearProgress,"primaryBg",YD(t.primary.main,.62)),gL(t.LinearProgress,"secondaryBg",YD(t.secondary.main,.62)),gL(t.LinearProgress,"errorBg",YD(t.error.main,.62)),gL(t.LinearProgress,"infoBg",YD(t.info.main,.62)),gL(t.LinearProgress,"successBg",YD(t.success.main,.62)),gL(t.LinearProgress,"warningBg",YD(t.warning.main,.62)),gL(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),gL(t.Slider,"primaryTrack",YD(t.primary.main,.62)),gL(t.Slider,"secondaryTrack",YD(t.secondary.main,.62)),gL(t.Slider,"errorTrack",YD(t.error.main,.62)),gL(t.Slider,"infoTrack",YD(t.info.main,.62)),gL(t.Slider,"successTrack",YD(t.success.main,.62)),gL(t.Slider,"warningTrack",YD(t.warning.main,.62));const e=XD(t.background.default,.8);gL(t.SnackbarContent,"bg",e),gL(t.SnackbarContent,"color",bL((()=>t.getContrastText(e)))),gL(t.SpeedDialAction,"fabHoverBg",XD(t.background.paper,.15)),gL(t.StepConnector,"border",n("palette-grey-400")),gL(t.StepContent,"border",n("palette-grey-400")),gL(t.Switch,"defaultColor",n("palette-common-white")),gL(t.Switch,"defaultDisabledColor",n("palette-grey-100")),gL(t.Switch,"primaryDisabledColor",YD(t.primary.main,.62)),gL(t.Switch,"secondaryDisabledColor",YD(t.secondary.main,.62)),gL(t.Switch,"errorDisabledColor",YD(t.error.main,.62)),gL(t.Switch,"infoDisabledColor",YD(t.info.main,.62)),gL(t.Switch,"successDisabledColor",YD(t.success.main,.62)),gL(t.Switch,"warningDisabledColor",YD(t.warning.main,.62)),gL(t.TableCell,"border",YD(UD(t.divider,1),.88)),gL(t.Tooltip,"bg",UD(t.grey[700],.92))}if("dark"===t.mode){gL(t.Alert,"errorColor",YD(t.error.light,.6)),gL(t.Alert,"infoColor",YD(t.info.light,.6)),gL(t.Alert,"successColor",YD(t.success.light,.6)),gL(t.Alert,"warningColor",YD(t.warning.light,.6)),gL(t.Alert,"errorFilledBg",n("palette-error-dark")),gL(t.Alert,"infoFilledBg",n("palette-info-dark")),gL(t.Alert,"successFilledBg",n("palette-success-dark")),gL(t.Alert,"warningFilledBg",n("palette-warning-dark")),gL(t.Alert,"errorFilledColor",bL((()=>t.getContrastText(t.error.dark)))),gL(t.Alert,"infoFilledColor",bL((()=>t.getContrastText(t.info.dark)))),gL(t.Alert,"successFilledColor",bL((()=>t.getContrastText(t.success.dark)))),gL(t.Alert,"warningFilledColor",bL((()=>t.getContrastText(t.warning.dark)))),gL(t.Alert,"errorStandardBg",WD(t.error.light,.9)),gL(t.Alert,"infoStandardBg",WD(t.info.light,.9)),gL(t.Alert,"successStandardBg",WD(t.success.light,.9)),gL(t.Alert,"warningStandardBg",WD(t.warning.light,.9)),gL(t.Alert,"errorIconColor",n("palette-error-main")),gL(t.Alert,"infoIconColor",n("palette-info-main")),gL(t.Alert,"successIconColor",n("palette-success-main")),gL(t.Alert,"warningIconColor",n("palette-warning-main")),gL(t.AppBar,"defaultBg",n("palette-grey-900")),gL(t.AppBar,"darkBg",n("palette-background-paper")),gL(t.AppBar,"darkColor",n("palette-text-primary")),gL(t.Avatar,"defaultBg",n("palette-grey-600")),gL(t.Button,"inheritContainedBg",n("palette-grey-800")),gL(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),gL(t.Chip,"defaultBorder",n("palette-grey-700")),gL(t.Chip,"defaultAvatarColor",n("palette-grey-300")),gL(t.Chip,"defaultIconColor",n("palette-grey-300")),gL(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),gL(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),gL(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),gL(t.LinearProgress,"primaryBg",WD(t.primary.main,.5)),gL(t.LinearProgress,"secondaryBg",WD(t.secondary.main,.5)),gL(t.LinearProgress,"errorBg",WD(t.error.main,.5)),gL(t.LinearProgress,"infoBg",WD(t.info.main,.5)),gL(t.LinearProgress,"successBg",WD(t.success.main,.5)),gL(t.LinearProgress,"warningBg",WD(t.warning.main,.5)),gL(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),gL(t.Slider,"primaryTrack",WD(t.primary.main,.5)),gL(t.Slider,"secondaryTrack",WD(t.secondary.main,.5)),gL(t.Slider,"errorTrack",WD(t.error.main,.5)),gL(t.Slider,"infoTrack",WD(t.info.main,.5)),gL(t.Slider,"successTrack",WD(t.success.main,.5)),gL(t.Slider,"warningTrack",WD(t.warning.main,.5));const e=XD(t.background.default,.98);gL(t.SnackbarContent,"bg",e),gL(t.SnackbarContent,"color",bL((()=>t.getContrastText(e)))),gL(t.SpeedDialAction,"fabHoverBg",XD(t.background.paper,.15)),gL(t.StepConnector,"border",n("palette-grey-600")),gL(t.StepContent,"border",n("palette-grey-600")),gL(t.Switch,"defaultColor",n("palette-grey-300")),gL(t.Switch,"defaultDisabledColor",n("palette-grey-600")),gL(t.Switch,"primaryDisabledColor",WD(t.primary.main,.55)),gL(t.Switch,"secondaryDisabledColor",WD(t.secondary.main,.55)),gL(t.Switch,"errorDisabledColor",WD(t.error.main,.55)),gL(t.Switch,"infoDisabledColor",WD(t.info.main,.55)),gL(t.Switch,"successDisabledColor",WD(t.success.main,.55)),gL(t.Switch,"warningDisabledColor",WD(t.warning.main,.55)),gL(t.TableCell,"border",WD(UD(t.divider,1),.68)),gL(t.Tooltip,"bg",UD(t.grey[700],.92))}vL(t.background,"default"),vL(t.background,"paper"),vL(t.common,"background"),vL(t.common,"onBackground"),vL(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&gL(t[e],"mainChannel",FD(yL(n.main))),n.light&&gL(t[e],"lightChannel",FD(yL(n.light))),n.dark&&gL(t[e],"darkChannel",FD(yL(n.dark))),n.contrastText&&gL(t[e],"contrastTextChannel",FD(yL(n.contrastText))),"text"===e&&(vL(t[e],"primary"),vL(t[e],"secondary")),"action"===e&&(n.active&&vL(t[e],"active"),n.selected&&vL(t[e],"selected")))}))})),w=t.reduce(((e,t)=>RA(e,t)),w);const k={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:mL(w)},{vars:S,generateThemeVars:E,generateStyleSheets:_}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=uI(l,t);let f=d;const p={},{[s]:h,...m}=i;if(Object.entries(m||{}).forEach((([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=uI(n,t);f=RA(f,i),p[e]={css:o,vars:r}})),h){const{css:e,vars:n,varsWithDefaults:r}=uI(h,t);f=RA(f,r),p[s]={css:e,vars:n}}function g(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:f,generateThemeVars:()=>{let e={...c};return Object.entries(p).forEach((([,{vars:t}])=>{e=RA(e,t)})),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function a(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}a(n(void 0,{...u}),u);const{[o]:s,...l}=p;if(s){const{css:e}=s,t=i[o]?.palette?.mode,l=!r&&t?{colorScheme:t,...e}:{...e};a(n(o,{...l}),l)}return Object.entries(l).forEach((([e,{css:t}])=>{const o=i[e]?.palette?.mode,s=!r&&o?{colorScheme:o,...t}:{...t};a(n(e,{...s}),s)})),t}}}(w,k);return w.vars=S,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach((([e,t])=>{w[e]=t})),w.generateThemeVars=E,w.generateStyleSheets=_,w.generateSpacing=function(){return vD(c.spacing,qA(this))},w.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=a,w.unstable_sxConfig={..._M,...c?.unstable_sxConfig},w.unstable_sx=function(e){return CM({sx:e,theme:this})},w.toRuntimeSource=cL,w}function kL(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:GI({...!0===n?{}:n.palette,mode:t})})}const SL=function(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return uL(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=uL({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},kL(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},kL(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),xL({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}();const EL=function(e={}){const{themeId:t,defaultTheme:n=OD,rootShouldForwardProp:r=ND,slotShouldForwardProp:o=ND}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,(e=>e.filter((e=>e!==CM))));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=PD(TD(a)),...u}=t,d=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,f=l||!1;let p=ND;"Root"===a||"root"===a?p=r:a?p=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(p=void 0);const h=function(e,t){return pD(e,t)}(e,{shouldForwardProp:p,label:MD(),...u}),m=e=>{if("function"==typeof e&&e.__emotion_real!==e)return function(t){return RD(t,e)};if(NA(e)){const t=CD(e);return t.variants?function(e){return RD(e,t)}:t.style}return e},g=(...t)=>{const r=[],o=t.map(m),a=[];if(r.push(i),n&&c&&a.push((function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=RD(e,r[t]);return c(e,o)})),n&&!d&&a.push((function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?AD(e,r):null})),f||a.push(CM),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const s=[...r,...o,...a],l=h(...s);return e.muiName&&(l.muiName=e.muiName),l};return h.withConfig&&(g.withConfig=h.withConfig),g}}({themeId:"$$material",defaultTheme:SL,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),_L=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(sI.theme=r.theme,o=CD(e(sI)),t=o,n=r.theme),o}};function CL(e){return aI(e)}function OL(e){return ED("MuiTable",e)}_D("MuiTable",["root","stickyHeader"]);const NL=EL("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(_L((({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]})))),PL="table",RL=k.forwardRef((function(e,t){const n=CL({props:e,name:"MuiTable"}),{className:r,component:o=PL,padding:i="normal",size:a="medium",stickyHeader:s=!1,...l}=n,c={...n,component:o,padding:i,size:a,stickyHeader:s},u=(e=>{const{classes:t,stickyHeader:n}=e;return yA({root:["root",n&&"stickyHeader"]},OL,t)})(c),d=k.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return uf.jsx(vA.Provider,{value:d,children:uf.jsx(NL,{as:o,role:o===PL?null:"table",ref:t,className:gA(u.root,r),ownerState:c,...l})})})),AL=k.createContext();function ML(e){return ED("MuiTableBody",e)}_D("MuiTableBody",["root"]);const TL=EL("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),DL={variant:"body"},IL="tbody",LL=k.forwardRef((function(e,t){const n=CL({props:e,name:"MuiTableBody"}),{className:r,component:o=IL,...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return yA({root:["root"]},ML,t)})(a);return uf.jsx(AL.Provider,{value:DL,children:uf.jsx(TL,{className:gA(s.root,r),as:o,ref:t,role:o===IL?null:"rowgroup",ownerState:a,...i})})}));function zL(e){return ED("MuiTableCell",e)}const FL=_D("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),jL=EL("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${wA(n.size)}`],"normal"!==n.padding&&t[`padding${wA(n.padding)}`],"inherit"!==n.align&&t[`align${wA(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(_L((({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?qD(VD(e.palette.divider,1),.88):HD(VD(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${FL.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]})))),BL=k.forwardRef((function(e,t){const n=CL({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:c,variant:u,...d}=n,f=k.useContext(vA),p=k.useContext(AL),h=p&&"head"===p.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const y=u||p&&p.variant,v={...n,align:r,component:m,padding:a||(f&&f.padding?f.padding:"normal"),size:l||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:"head"===y&&f&&f.stickyHeader,variant:y},b=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return yA({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${wA(r)}`,"normal"!==o&&`padding${wA(o)}`,`size${wA(i)}`]},zL,t)})(v);let w=null;return c&&(w="asc"===c?"ascending":"descending"),uf.jsx(jL,{as:m,ref:t,className:gA(b.root,o),"aria-sort":w,scope:g,ownerState:v,...d})}));function $L(e){return ED("MuiTableContainer",e)}_D("MuiTableContainer",["root"]);const VL=EL("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),UL=k.forwardRef((function(e,t){const n=CL({props:e,name:"MuiTableContainer"}),{className:r,component:o="div",...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return yA({root:["root"]},$L,t)})(a);return uf.jsx(VL,{ref:t,as:o,className:gA(s.root,r),ownerState:a,...i})}));function HL(e){return ED("MuiTableHead",e)}_D("MuiTableHead",["root"]);const WL=EL("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),qL={variant:"head"},YL="thead",XL=k.forwardRef((function(e,t){const n=CL({props:e,name:"MuiTableHead"}),{className:r,component:o=YL,...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return yA({root:["root"]},HL,t)})(a);return uf.jsx(AL.Provider,{value:qL,children:uf.jsx(WL,{as:o,className:gA(s.root,r),ref:t,role:o===YL?null:"rowgroup",ownerState:a,...i})})}));function KL(e){return ED("MuiTableRow",e)}const GL=_D("MuiTableRow",["root","selected","hover","head","footer"]),QL=EL("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(_L((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${GL.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${GL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:VD(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:VD(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})))),ZL="tr",JL=k.forwardRef((function(e,t){const n=CL({props:e,name:"MuiTableRow"}),{className:r,component:o=ZL,hover:i=!1,selected:a=!1,...s}=n,l=k.useContext(AL),c={...n,component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant},u=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return yA({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},KL,t)})(c);return uf.jsx(QL,{as:o,ref:t,className:gA(u.root,r),role:o===ZL?null:"row",ownerState:c,...s})}));class ez{static create(){return new ez}static use(){const e=ZD(ez.create).current,[t,n]=k.useState(!1);return e.shouldMount=t,e.setShouldMount=n,k.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then((()=>this.ref.current?.start(...e)))}stop(...e){this.mount().then((()=>this.ref.current?.stop(...e)))}pulsate(...e){this.mount().then((()=>this.ref.current?.pulsate(...e)))}}function tz(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}function nz(e,t){return nz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nz(e,t)}function rz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nz(e,t)}var oz=S.createContext(null);function iz(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function az(e,t){var n=Object.create(null);return e&&k.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&k.isValidElement(e)?t(e):e}(e)})),n}function sz(e,t,n){return null!=n[t]?n[t]:e.props[t]}function lz(e,t,n){var r=az(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(k.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=k.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&k.isValidElement(c)&&(o[i]=k.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:sz(a,"exit",e),enter:sz(a,"enter",e)})):o[i]=k.cloneElement(a,{in:!1}):o[i]=k.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:sz(a,"exit",e),enter:sz(a,"enter",e)})}})),o}var cz=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},uz=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(iz(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}rz(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,az(n.children,(function(e){return k.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:sz(e,"appear",n),enter:sz(e,"enter",n),exit:sz(e,"exit",n)})}))):lz(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=az(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=OM({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=tz(e,["component","childFactory"]),o=this.state.contextValue,i=cz(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?S.createElement(oz.Provider,{value:o},i):S.createElement(oz.Provider,{value:o},S.createElement(t,r,i))},t}(S.Component);uz.propTypes={},uz.defaultProps={component:"div",childFactory:function(e){return e}};const dz=_D("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fz=aD`
22
- 0% {
23
- transform: scale(0);
24
- opacity: 0.1;
25
- }
26
-
27
- 100% {
28
- transform: scale(1);
29
- opacity: 0.3;
30
- }
31
- `,pz=aD`
32
- 0% {
33
- opacity: 1;
34
- }
35
-
36
- 100% {
37
- opacity: 0;
38
- }
39
- `,hz=aD`
40
- 0% {
41
- transform: scale(1);
42
- }
43
-
44
- 50% {
45
- transform: scale(0.92);
46
- }
47
-
48
- 100% {
49
- transform: scale(1);
50
- }
51
- `,mz=EL("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),gz=EL((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=k.useState(!1),f=gA(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+i,left:-a/2+o},h=gA(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),k.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),uf.jsx("span",{className:f,style:p,children:uf.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})`
52
- opacity: 0;
53
- position: absolute;
54
-
55
- &.${dz.rippleVisible} {
56
- opacity: 0.3;
57
- transform: scale(1);
58
- animation-name: ${fz};
59
- animation-duration: ${550}ms;
60
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
61
- }
62
-
63
- &.${dz.ripplePulsate} {
64
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
65
- }
66
-
67
- & .${dz.child} {
68
- opacity: 1;
69
- display: block;
70
- width: 100%;
71
- height: 100%;
72
- border-radius: 50%;
73
- background-color: currentColor;
74
- }
75
-
76
- & .${dz.childLeaving} {
77
- opacity: 0;
78
- animation-name: ${pz};
79
- animation-duration: ${550}ms;
80
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
81
- }
82
-
83
- & .${dz.childPulsate} {
84
- position: absolute;
85
- /* @noflip */
86
- left: 0px;
87
- top: 0;
88
- animation-name: ${hz};
89
- animation-duration: 2500ms;
90
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
91
- animation-iteration-count: infinite;
92
- animation-delay: 200ms;
93
- }
94
- `,yz=k.forwardRef((function(e,t){const n=CL({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...a}=n,[s,l]=k.useState([]),c=k.useRef(0),u=k.useRef(null);k.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=k.useRef(!1),f=tI(),p=k.useRef(null),h=k.useRef(null),m=k.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,uf.jsx(gz,{classes:{ripple:gA(o.ripple,dz.ripple),rippleVisible:gA(o.rippleVisible,dz.rippleVisible),ripplePulsate:gA(o.ripplePulsate,dz.ripplePulsate),child:gA(o.child,dz.child),childLeaving:gA(o.childLeaving,dz.childLeaving),childPulsate:gA(o.childPulsate,dz.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=k.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&d.current)return void(d.current=!1);"touchstart"===e?.type&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}e?.touches?null===p.current&&(p.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=k.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=k.useCallback(((e,t)=>{if(f.clear(),"touchend"===e?.type&&p.current)return p.current(),p.current=null,void f.start(0,(()=>{v(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return k.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),uf.jsx(mz,{className:gA(dz.root,o.root,i),ref:h,...a,children:uf.jsx(uz,{component:null,exit:!0,children:s})})}));function vz(e){return ED("MuiButtonBase",e)}const bz=_D("MuiButtonBase",["root","disabled","focusVisible"]),wz=EL("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bz.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xz=k.forwardRef((function(e,t){const n=CL({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:y,onFocus:v,onFocusVisible:b,onKeyDown:w,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:_,onTouchEnd:C,onTouchMove:O,onTouchStart:N,tabIndex:P=0,TouchRippleProps:R,touchRippleRef:A,type:M,...T}=n,D=k.useRef(null),I=ez.use(),L=GD(I.ref,A),[z,F]=k.useState(!1);l&&z&&F(!1),k.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),D.current.focus()}})),[]);const j=I.shouldMount&&!c&&!l;k.useEffect((()=>{z&&d&&!c&&I.pulsate()}),[c,d,z,I]);const B=kz(I,"start",S,u),$=kz(I,"stop",g,u),V=kz(I,"stop",y,u),U=kz(I,"stop",_,u),H=kz(I,"stop",(e=>{z&&e.preventDefault(),E&&E(e)}),u),W=kz(I,"start",N,u),q=kz(I,"stop",C,u),Y=kz(I,"stop",O,u),X=kz(I,"stop",(e=>{nI(e.target)||F(!1),h&&h(e)}),!1),K=KD((e=>{D.current||(D.current=e.currentTarget),nI(e.target)&&(F(!0),b&&b(e)),v&&v(e)})),G=()=>{const e=D.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},Q=KD((e=>{d&&!e.repeat&&z&&" "===e.key&&I.stop(e,(()=>{I.start(e)})),e.target===e.currentTarget&&G()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&G()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),Z=KD((e=>{d&&" "===e.key&&z&&!e.defaultPrevented&&I.stop(e,(()=>{I.pulsate(e)})),x&&x(e),m&&e.target===e.currentTarget&&G()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let J=s;"button"===J&&(T.href||T.to)&&(J=p);const ee={};"button"===J?(ee.type=void 0===M?"button":M,ee.disabled=l):(T.href||T.to||(ee.role="button"),l&&(ee["aria-disabled"]=l));const te=GD(t,D),ne={...n,centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:P,focusVisible:z},re=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=yA({root:["root",t&&"disabled",n&&"focusVisible"]},vz,o);return n&&r&&(i.root+=` ${r}`),i})(ne);return uf.jsxs(wz,{as:J,className:gA(re.root,a),ownerState:ne,onBlur:X,onClick:m,onContextMenu:$,onFocus:K,onKeyDown:Q,onKeyUp:Z,onMouseDown:B,onMouseLeave:H,onMouseUp:U,onDragLeave:V,onTouchEnd:q,onTouchMove:Y,onTouchStart:W,ref:te,tabIndex:l?-1:P,type:M,...ee,...T,children:[i,j?uf.jsx(yz,{ref:L,center:o,...R}):null]})}));function kz(e,t,n,r=!1){return KD((o=>(n&&n(o),r||e[t](o),!0)))}function Sz(e){return ED("MuiSvgIcon",e)}_D("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ez=EL("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${wA(n.color)}`],t[`fontSize${wA(n.fontSize)}`]]}})(_L((({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}}))),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]})))),_z=k.forwardRef((function(e,t){const n=CL({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24",...f}=n,p=k.isValidElement(r)&&"svg"===r.type,h={...n,color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p},m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return yA({root:["root","inherit"!==t&&`color${wA(t)}`,`fontSize${wA(n)}`]},Sz,r)})(h);return uf.jsxs(Ez,{as:a,className:gA(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t,...m,...f,...p&&r.props,ownerState:h,children:[p?r.props.children:r,u?uf.jsx("title",{children:u}):null]})}));_z.muiName="SvgIcon";var Cz=function(e,t){function n(n,r){return uf.jsx(_z,{"data-testid":`${t}Icon`,ref:r,...n,children:e})}return n.muiName=_z.muiName,k.memo(k.forwardRef(n))}(uf.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function Oz(e){return ED("MuiTableSortLabel",e)}const Nz=_D("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]);function Pz(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=u[e]||r,h=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:m,...g},internalRef:y}=oI({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),v=GD(y,h?.ref,t.ref),b="root"===e?m||c:m,w=function(e,t,n){return void 0===e||function(e){return"string"==typeof e}(e)?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...b&&!s&&{as:b},...b&&s&&{component:b},ref:v},o);return[p,w]}const Rz=EL(xz,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(_L((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Nz.icon}`]:{opacity:.5}},[`&.${Nz.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Nz.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})))),Az=EL("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${wA(n.direction)}`]]}})(_L((({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]})))),Mz=k.forwardRef((function(e,t){const n=CL({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:o,className:i,direction:a="asc",hideSortIcon:s=!1,IconComponent:l=Cz,slots:c={},slotProps:u={},...d}=n,f={...n,active:r,direction:a,hideSortIcon:s,IconComponent:l},p=(e=>{const{classes:t,direction:n,active:r}=e;return yA({root:["root",r&&"active",`direction${wA(n)}`],icon:["icon",`iconDirection${wA(n)}`]},Oz,t)})(f),h={slots:c,slotProps:u},[m,g]=Pz("root",{elementType:Rz,externalForwardedProps:h,ownerState:f,className:gA(p.root,i),ref:t}),[y,v]=Pz("icon",{elementType:Az,externalForwardedProps:h,ownerState:f,className:p.icon});return uf.jsxs(m,{disableRipple:!0,component:"span",...g,...d,children:[o,s&&!r?null:uf.jsx(y,{as:l,...v})]})})),Tz=({tabledata:e})=>{const t=k.useMemo((()=>(e=>{const t=[];if(void 0===e)return{header:[],rows:[]};void 0===e.data&&(e.data=[]),void 0===e.columns&&(0===e.data.length?e.columns=[]:e.columns=e.data[0].map(((e,t)=>`col${t}`))),void 0===e.index&&(e.index=e.data.map(((e,t)=>`row${t}`)));for(let n=0;n<e.index.length;n++){const r=[e.index[n]];for(let t=0;t<e.columns.length;t++)r.push(e.data[n][t]);t.push(r)}return{header:["index",...e.columns],rows:t}})(e)),[e]),[n,r]=k.useState("asc"),[o,i]=k.useState("index");let a=t.header.indexOf(o);-1===a&&(a=0);const s=((e,t)=>{const n=e.map(((e,t)=>[e,t]));return n.sort(((e,n)=>t(e[0],n[0]))),n.map((e=>e[0]))})(t.rows,(e=>"desc"===e?(e,t)=>t[a]<e[a]?-1:1:(e,t)=>e[a]<t[a]?-1:1)(n));return k.createElement(UL,{className:"tablecontainer"},k.createElement(RL,{size:"small"},k.createElement(XL,{className:"tableHead"},k.createElement(JL,{className:"tableheadercolor"},t.header.map((e=>k.createElement(BL,{key:e,sortDirection:o===e&&n,className:"tableheadercolor"},k.createElement(Mz,{active:o===e,direction:o===e?n:"asc",onClick:()=>(e=>{r(o===e&&"asc"===n?"desc":"asc"),i(e)})(e),className:"tableheadercolor",sx:{"& .MuiTableSortLabel-icon":{color:"inherit !important"}}},e)))))),k.createElement(LL,null,s.map(((t,n)=>k.createElement(JL,{key:e.index[n]},t.map(((e,t)=>k.createElement(BL,{key:t,className:0==t?"indexcol":"datacol"},e)))))))))};var Dz,Iz={};
95
- /*!
96
- * content-type
97
- * Copyright(c) 2015 Douglas Christopher Wilson
98
- * MIT Licensed
99
- */var Lz=function(){if(Dz)return Iz;Dz=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,o=/([\\"])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function a(e){var r=String(e);if(n.test(r))return r;if(r.length>0&&!t.test(r))throw new TypeError("invalid parameter value");return'"'+r.replace(o,"\\$1")+'"'}function s(e){this.parameters=Object.create(null),this.type=e}return Iz.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,r=e.type;if(!r||!i.test(r))throw new TypeError("invalid type");var o=r;if(t&&"object"==typeof t)for(var s,l=Object.keys(t).sort(),c=0;c<l.length;c++){if(s=l[c],!n.test(s))throw new TypeError("invalid parameter name");o+="; "+s+"="+a(t[s])}return o},Iz.parse=function(t){if(!t)throw new TypeError("argument string is required");var n="object"==typeof t?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(t):t;if("string"!=typeof n)throw new TypeError("argument string is required to be a string");var o=n.indexOf(";"),a=-1!==o?n.slice(0,o).trim():n.trim();if(!i.test(a))throw new TypeError("invalid media type");var l=new s(a.toLowerCase());if(-1!==o){var c,u,d;for(e.lastIndex=o;u=e.exec(n);){if(u.index!==o)throw new TypeError("invalid parameter format");o+=u[0].length,c=u[1].toLowerCase(),34===(d=u[2]).charCodeAt(0)&&-1!==(d=d.slice(1,-1)).indexOf("\\")&&(d=d.replace(r,"$1")),l.parameters[c]=d}if(o!==n.length)throw new TypeError("invalid parameter format")}return l},Iz}(),zz=new Map,Fz=function(e){return e.cloneNode(!0)},jz=function(){return"file:"===window.location.protocol},Bz=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var o=Lz.parse(t).type;if("image/svg+xml"!==o&&"text/plain"!==o)throw new Error("Invalid content type: ".concat(o))}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(jz()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||jz()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(e){if(r.abort(),!(e instanceof Error))throw e;n(e,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},$z={},Vz=function(e,t){$z[e]=$z[e]||[],$z[e].push(t)},Uz=function(e,t,n){if(zz.has(e)){var r=zz.get(e);if(void 0===r)return void Vz(e,n);if(r instanceof SVGSVGElement)return void n(null,Fz(r))}zz.set(e,void 0),Vz(e,n),Bz(e,t,(function(t,n){var r;t?zz.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&zz.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray($z[e])){var n=zz.get(e),r=$z[e][t];n instanceof SVGSVGElement&&r(null,Fz(n)),n instanceof Error&&r(n),t===$z[e].length-1&&delete $z[e]}}),0)},n=0,r=$z[e].length;n<r;n++)t(n)}(e)}))},Hz=function(e,t,n){Bz(e,t,(function(e,t){var r;e?n(e):(null===(r=t.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},Wz=0,qz=[],Yz={},Xz="http://www.w3.org/1999/xlink",Kz=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==qz.indexOf(e))return qz.splice(qz.indexOf(e),1),void(e=null);qz.push(e),e.setAttribute("src",""),(r?Uz:Hz)(s,o,(function(r,o){if(!o)return qz.splice(qz.indexOf(e),1),e=null,void a(r);var l=e.getAttribute("id");l&&o.setAttribute("id",l);var c=e.getAttribute("title");c&&o.setAttribute("title",c);var u=e.getAttribute("width");u&&o.setAttribute("width",u);var d=e.getAttribute("height");d&&o.setAttribute("height",d);var f=Array.from(new Set(Zf(Zf(Zf([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",f);var p=e.getAttribute("style");p&&o.setAttribute("style",p),o.setAttribute("data-src",s);var h=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(h,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var m,g,y,v,b,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){m=e,y=w[e];for(var t=function(e,t){var n;v=g[e].id,b=v+"-"+ ++Wz,Array.prototype.forEach.call(y,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+v+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+v+'"?\\)'))||n[t].setAttribute(e,"url(#"+b+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(Xz,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(Xz,"href","#"+b);g[e].id=b},n=0,r=(g=o.querySelectorAll(m+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var x,k,S=o.querySelectorAll("script"),E=[],_=0,C=S.length;_<C;_++)(k=S[_].getAttribute("type"))&&"application/ecmascript"!==k&&"application/javascript"!==k&&"text/javascript"!==k||((x=S[_].innerText||S[_].textContent)&&E.push(x),o.removeChild(S[_]));if(E.length>0&&("always"===t||"once"===t&&!Yz[s])){for(var O=0,N=E.length;O<N;O++)new Function(E[O])(window);Yz[s]=!0}var P=o.querySelectorAll("style");if(Array.prototype.forEach.call(P,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",Xz),i(o),!e.parentNode)return qz.splice(qz.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),qz.splice(qz.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},Gz=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Qz="http://www.w3.org/2000/svg",Zz="http://www.w3.org/1999/xlink",Jz=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}rz(t,e);var n=t.prototype;return n.renderSVG=function(){var e=this;if(this.reactWrapper instanceof function(e){return((null==e?void 0:e.ownerDocument)||document).defaultView||window}(this.reactWrapper).Node){var t,n,r=this.props,o=r.desc,i=r.evalScripts,a=r.httpRequestWithCredentials,s=r.renumerateIRIElements,l=r.src,c=r.title,u=r.useRequestCache,d=this.props.onError,f=this.props.beforeInjection,p=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((t=document.createElementNS(Qz,h)).setAttribute("xmlns",Qz),t.setAttribute("xmlns:xlink",Zz),n=document.createElementNS(Qz,h)):(t=document.createElement(h),n=document.createElement(h)),t.appendChild(n),n.dataset.src=l,this.nonReactWrapper=this.reactWrapper.appendChild(t);var m=function(t){e.removeSVG(),e._isMounted?e.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){d(t)})):d(t)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,u=void 0===c||c,d=n.evalScripts,f=void 0===d?"never":d,p=n.httpRequestWithCredentials,h=void 0!==p&&p,m=n.renumerateIRIElements,g=void 0===m||m;if(e&&"length"in e)for(var y=0,v=0,b=e.length;v<b;v++)Kz(e[v],f,g,u,h,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?Kz(e,f,g,u,h,l,(function(t,n){a(t,n),o(1),e=null})):o(0)}(n,{afterEach:function(t,n){t?m(t):e._isMounted&&e.setState((function(){return{isLoading:!1}}),(function(){try{p(n)}catch(e){m(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),o){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=o,e.prepend(n)}if(c){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var i=document.createElement("title");i.innerHTML=c,e.prepend(i)}try{f(e)}catch(e){m(e)}},cacheRequests:u,evalScripts:i,httpRequestWithCredentials:a,renumerateIRIElements:s})}},n.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1})(OM({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,o=tz(e,Gz),i=r;return k.createElement(i,OM({},o,{ref:this.refCallback},"svg"===r?{xmlns:Qz,xmlnsXlink:Zz}:{}),this.state.isLoading&&n&&k.createElement(n,null),this.state.hasError&&t&&k.createElement(t,null))},t}(k.Component);Jz.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Jz.propTypes={afterInjection:cv.func,beforeInjection:cv.func,desc:cv.string,evalScripts:cv.oneOf(["always","once","never"]),fallback:cv.oneOfType([cv.func,cv.object,cv.string]),httpRequestWithCredentials:cv.bool,loading:cv.oneOfType([cv.func,cv.object,cv.string]),onError:cv.func,renumerateIRIElements:cv.bool,src:cv.string.isRequired,title:cv.string,useRequestCache:cv.bool,wrapper:cv.oneOf(["div","span","svg"])};const eF=({value:e})=>k.createElement(Jz,{src:`data:image/svg+xml;base64,${btoa(e)}`,style:{maxWidth:"100%",maxHeight:"100%"},beforeInjection:e=>{e.classList.add("svg-class-name"),e.setAttribute("style","max-width: 100%; max-height: 100%;"),e.setAttribute("width","100%"),e.setAttribute("height","100%")}}),tF=({value:e,preValue:t,onLoaded:n})=>{const[r,o]=k.useState(t||e);return k.useEffect((()=>{if(e===t)return;const r=new Image;return r.onload=()=>{n?.(),o(e)},r.src=e,()=>{r.onload=null}}),[e,t,n]),void 0===r?k.createElement(k.Fragment,null):"string"!=typeof r?(console.error("Base64ImageOutput: value is not a string",r),k.createElement(k.Fragment,null)):k.createElement("img",{src:r,style:{maxWidth:"100%",maxHeight:"100%"}})},nF=({value:e})=>k.createElement(eF,{value:e}),rF=({value:e})=>{let t="";try{t=JSON.stringify(e)}catch(e){}return k.createElement("div",null,k.createElement("pre",null,t))},oF=({value:e})=>{if("string"!=typeof e||e.length%4!=0)return k.createElement("div",null,e);const t=Math.round(3*e.length/4);return k.createElement("div",null,k.createElement("pre",null,"Bytes(",t,")"))},iF=({value:e})=>k.createElement(Tz,{tabledata:e||{columns:[],index:[],data:[]}}),aF=({value:e})=>k.createElement(hA,{data:e}),sF=aF,lF={string:rF,table:iF,image:tF,svg:nF,dict:aF,bytes:oF};function cF(e,[t,n]){return Math.min(n,Math.max(t,e))}var uF=["PageUp","PageDown"],dF=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fF={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},pF="Slider",[hF,mF,gF]=ib(pF),[yF,vF]=df(pF,[gF]),[bF,wF]=yF(pF),xF=k.forwardRef(((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:u,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:h,...m}=e,g=k.useRef(new Set),y=k.useRef(0),v="horizontal"===a?EF:_F,[b=[],w]=vf({prop:u,defaultProp:c,onChange:e=>{const t=[...g.current];t[y.current]?.focus(),d(e)}}),x=k.useRef(b);function S(e,t,{commit:n}={commit:!1}){const a=function(e){return(String(e).split(".")[1]||"").length}(i),s=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/i)*i+r,a),c=cF(s,[r,o]);w(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,c,t);if(function(e,t){if(t>0){const n=function(e){return e.slice(0,-1).map(((t,n)=>e[n+1]-t))}(e);return Math.min(...n)>=t}return!0}(r,l*i)){y.current=r.indexOf(c);const t=String(r)!==String(e);return t&&n&&f(r),t?r:e}return e}))}return uf.jsx(bF,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:y,thumbs:g.current,values:b,orientation:a,form:h,children:uf.jsx(hF.Provider,{scope:e.__scopeSlider,children:uf.jsx(hF.Slot,{scope:e.__scopeSlider,children:uf.jsx(v,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:t,onPointerDown:tf(m.onPointerDown,(()=>{s||(x.current=b)})),min:r,max:o,inverted:p,onSlideStart:s?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const n=e.map((e=>Math.abs(e-t))),r=Math.min(...n);return n.indexOf(r)}(b,e);S(e,t)},onSlideMove:s?void 0:function(e){S(e,y.current)},onSlideEnd:s?void 0:function(){const e=x.current[y.current];b[y.current]!==e&&f(b)},onHomeKeyDown:()=>!s&&S(r,0,{commit:!0}),onEndKeyDown:()=>!s&&S(o,b.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){const n=uF.includes(e.key)||e.shiftKey&&dF.includes(e.key)?10:1,r=y.current;S(b[r]+i*n*t,r,{commit:!0})}}})})})})}));xF.displayName=pF;var[kF,SF]=yF(pF,{startEdge:"left",endEdge:"right",size:"width",direction:1}),EF=k.forwardRef(((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,[d,f]=k.useState(null),p=of(t,(e=>f(e))),h=k.useRef(void 0),m=sb(o),g="ltr"===m,y=g&&!i||!g&&i;function v(e){const t=h.current||d.getBoundingClientRect(),o=LF([0,t.width],y?[n,r]:[r,n]);return h.current=t,o(e-t.left)}return uf.jsx(kF,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:uf.jsx(CF,{dir:m,"data-orientation":"horizontal",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=v(e.clientX);a?.(t)},onSlideMove:e=>{const t=v(e.clientX);s?.(t)},onSlideEnd:()=>{h.current=void 0,l?.()},onStepKeyDown:e=>{const t=fF[y?"from-left":"from-right"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})})),_F=k.forwardRef(((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=e,u=k.useRef(null),d=of(t,u),f=k.useRef(void 0),p=!o;function h(e){const t=f.current||u.current.getBoundingClientRect(),o=LF([0,t.height],p?[r,n]:[n,r]);return f.current=t,o(e-t.top)}return uf.jsx(kF,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:uf.jsx(CF,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=h(e.clientY);i?.(t)},onSlideMove:e=>{const t=h(e.clientY);a?.(t)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:e=>{const t=fF[p?"from-bottom":"from-top"].includes(e.key);l?.({event:e,direction:t?-1:1})}})})})),CF=k.forwardRef(((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=wF(pF,n);return uf.jsx(Sf.span,{...c,ref:t,onKeyDown:tf(e.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):uF.concat(dF).includes(e.key)&&(l(e),e.preventDefault())})),onPointerDown:tf(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)})),onPointerMove:tf(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:tf(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))}))})})),OF="SliderTrack",NF=k.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=wF(OF,n);return uf.jsx(Sf.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})}));NF.displayName=OF;var PF="SliderRange",RF=k.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=wF(PF,n),i=SF(PF,n),a=of(t,k.useRef(null)),s=o.values.length,l=o.values.map((e=>IF(e,o.min,o.max))),c=s>1?Math.min(...l):0,u=100-Math.max(...l);return uf.jsx(Sf.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[i.startEdge]:c+"%",[i.endEdge]:u+"%"}})}));RF.displayName=PF;var AF="SliderThumb",MF=k.forwardRef(((e,t)=>{const n=mF(e.__scopeSlider),[r,o]=k.useState(null),i=of(t,(e=>o(e))),a=k.useMemo((()=>r?n().findIndex((e=>e.ref.current===r)):-1),[n,r]);return uf.jsx(TF,{...e,ref:i,index:a})})),TF=k.forwardRef(((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,a=wF(AF,n),s=SF(AF,n),[l,c]=k.useState(null),u=of(t,(e=>c(e))),d=!l||(a.form||!!l.closest("form")),f=Fw(l),p=a.values[r],h=void 0===p?0:IF(p,a.min,a.max),m=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,a.values.length),g=f?.[s.size],y=g?function(e,t,n){const r=e/2,o=LF([0,50],[0,r]);return(r-o(t)*n)*n}(g,h,s.direction):0;return k.useEffect((()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}}),[l,a.thumbs]),uf.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${h}% + ${y}px)`},children:[uf.jsx(hF.ItemSlot,{scope:e.__scopeSlider,children:uf.jsx(Sf.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":p,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:u,style:void 0===p?{display:"none"}:e.style,onFocus:tf(e.onFocus,(()=>{a.valueIndexToChangeRef.current=r}))})}),d&&uf.jsx(DF,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:p},r)]})}));MF.displayName=AF;var DF=e=>{const{value:t,...n}=e,r=k.useRef(null),o=function(e){const t=k.useRef({value:e,previous:e});return k.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(t);return k.useEffect((()=>{const e=r.current,n=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(n,"value").set;if(o!==t&&i){const n=new Event("input",{bubbles:!0});i.call(e,t),e.dispatchEvent(n)}}),[o,t]),uf.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function IF(e,t,n){return cF(100/(n-t)*(e-t),[0,100])}function LF(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var zF,FF,jF,BF,$F,VF,UF,HF,WF=xF,qF=NF,YF=RF,XF=MF;function KF(){if(BF)return jF;BF=1;const e=FF?zF:(FF=1,zF={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(const n of Object.keys(e))t[e[n]]=n;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};jF=n;for(const e of Object.keys(n)){if(!("channels"in n[e]))throw new Error("missing channels property: "+e);if(!("labels"in n[e]))throw new Error("missing channel labels property: "+e);if(n[e].labels.length!==n[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=n[e];delete n[e].channels,delete n[e].labels,Object.defineProperty(n[e],"channels",{value:t}),Object.defineProperty(n[e],"labels",{value:r})}function r(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}return n.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let s,l;i===o?s=0:t===i?s=(n-r)/a:n===i?s=2+(r-t)/a:r===i&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(o+i)/2;return l=i===o?0:c<=.5?a/(i+o):a/(2-i-o),[s,100*l,100*c]},n.rgb.hsv=function(e){let t,n,r,o,i;const a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,i=0):(i=u/c,t=d(a),n=d(s),r=d(l),a===c?o=r-n:s===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},n.rgb.hwb=function(e){const t=e[0],r=e[1];let o=e[2];const i=n.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,o));return o=1-1/255*Math.max(t,Math.max(r,o)),[i,100*a,100*o]},n.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},n.rgb.keyword=function(n){const o=t[n];if(o)return o;let i,a=1/0;for(const t of Object.keys(e)){const o=r(n,e[t]);o<a&&(a=o,i=t)}return i},n.keyword.rgb=function(t){return e[t]},n.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},n.rgb.lab=function(e){const t=n.rgb.xyz(e);let r=t[0],o=t[1],i=t[2];r/=95.047,o/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*o-16,500*(r-o),200*(o-i)]},n.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,a;if(0===n)return a=255*r,[a,a,a];o=r<.5?r*(1+n):r+n-r*n;const s=2*r-o,l=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,l[e]=255*a;return l},n.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;return[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},n.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},n.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-n)*r;const s=(2-n)*o;return i=n*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,100*i,100*a]},n.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const a=Math.floor(6*t),s=1-r;i=6*t-a,1&a&&(i=1-i);const l=n+i*(s-n);let c,u,d;switch(a){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l}return[255*c,255*u,255*d]},n.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},n.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,a;return o=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},n.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},n.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,i=t**3,a=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},n.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(n*n+r*r),o]},n.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},n.rgb.ansi16=function(e,t=null){const[r,o,i]=e;let a=null===t?n.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(i/255)<<2|Math.round(o/255)<<1|Math.round(r/255));return 2===a&&(s+=60),s},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},n.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},n.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},n.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},n.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;let s,l;return s=a<1?i/(1-a):0,l=a<=0?0:o===t?(n-r)/a%6:o===n?2+(r-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},n.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},n.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},n.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},n.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},n.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},n.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},n.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=function(e){return[0,0,e[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},jF}function GF(){if(VF)return $F;VF=1;const e=KF();function t(t){const n=function(){const t={},n=Object.keys(e);for(let e=n.length,r=0;r<e;r++)t[n[r]]={distance:-1,parent:null};return t}(),r=[t];for(n[t].distance=0;r.length;){const t=r.pop(),o=Object.keys(e[t]);for(let e=o.length,i=0;i<e;i++){const e=o[i],a=n[e];-1===a.distance&&(a.distance=n[t].distance+1,a.parent=t,r.unshift(e))}}return n}function n(e,t){return function(n){return t(e(n))}}function r(t,r){const o=[r[t].parent,t];let i=e[r[t].parent][t],a=r[t].parent;for(;r[a].parent;)o.unshift(r[a].parent),i=n(e[r[a].parent][a],i),a=r[a].parent;return i.conversion=o,i}return $F=function(e){const n=t(e),o={},i=Object.keys(n);for(let e=i.length,t=0;t<e;t++){const e=i[t];null!==n[e].parent&&(o[e]=r(e,n))}return o},$F}var QF=function(){if(HF)return UF;HF=1;const e=KF(),t=GF(),n={};return Object.keys(e).forEach((r=>{n[r]={},Object.defineProperty(n[r],"channels",{value:e[r].channels}),Object.defineProperty(n[r],"labels",{value:e[r].labels});const o=t(r);Object.keys(o).forEach((e=>{const t=o[e];n[r][e]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(t),n[r][e].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(t)}))})),UF=n}(),ZF=e({__proto__:null,default:t(QF)},[QF]);const JF=(e,t)=>{const n=Array.isArray(t)?t:[t];if(void 0===n[0]||null===n[0])return JF("rgb",[0,0,0]);const r=ZF[e];if(!r)throw new Error("Unsupported color type: "+e);r[e]=()=>n;const o=e=>{const t=e(...n);return Array.isArray(t)?null!=t[0]:t};if(!o(r.rgb)||!o(r.hsl))return JF("rgb",[0,0,0]);const i={};return Object.keys(r).forEach((t=>{const o=r[t];"function"==typeof o&&(i[t]=()=>t===e?n:o(...n))})),i},ej=({onChange:e,colorconverter:t,allow_null:n=!1})=>{if(null===t&&!n)throw new Error("Color converter is null");const[r,o]=k.useState(t),[i,a]=k.useState([0,0,0]),[s,l]=k.useState([0,0,0]),[c,u]=k.useState([0,0,0]),[d,f]=k.useState("000");k.useEffect((()=>{if(!r){if(!n)throw new Error("Color converter is null");return l([0,0,0]),a([0,0,0]),u([0,0,0]),void f("")}a(r.hsl()),l(r.rgb()),u(r.hsv()),f(r.hex())}),[r]);const p={backgroundColor:`hsl(${i[0]}, ${i[1]}%, ${i[2]}%)`,padding:"10px",margin:"10px 0"};return k.createElement("div",{style:{backgroundColor:"white"}},k.createElement("div",{style:p},"Color Preview"),k.createElement("div",{className:"colorspace"},k.createElement("div",{className:"colorspace_title"},"RGB"),k.createElement("div",null),k.createElement("label",null,"Red"),k.createElement("input",{type:"range",min:"0",max:"255",value:s[0],onChange:t=>{const n=[parseInt(t.target.value),s[1],s[2]],r=JF("rgb",n);o(r),e(r)},style:{background:"linear-gradient(to right, #000, #f00)"}}),k.createElement("label",null,"Green"),k.createElement("input",{type:"range",min:"0",max:"255",value:s[1],onChange:t=>{const n=[s[0],parseInt(t.target.value),s[2]],r=JF("rgb",n);o(r),e(r)},style:{background:"linear-gradient(to right, #000, #0f0)"}}),k.createElement("label",null,"Blue"),k.createElement("input",{type:"range",min:"0",max:"255",value:s[2],onChange:t=>{const n=[s[0],s[1],parseInt(t.target.value)],r=JF("rgb",n);o(r),e(r)},style:{background:"linear-gradient(to right, #000, #00f)"}})),k.createElement("div",{className:"colorspace"},k.createElement("div",{className:"colorspace_title"},"HSL"),k.createElement("div",null),k.createElement("label",null,"Hue"),k.createElement("input",{type:"range",min:"0",max:"360",value:i[0],onChange:t=>{const n=[parseInt(t.target.value),i[1],i[2]],r=JF("hsl",n);o(r),e(r)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),k.createElement("label",null,"Saturation"),k.createElement("input",{type:"range",min:"0",max:"100",value:i[1],onChange:t=>{const n=[i[0],parseInt(t.target.value),i[2]],r=JF("hsl",n);o(r),e(r)},style:{background:`linear-gradient(to right, #fff, hsl(${i[0]}, 100%, 50%))`}}),k.createElement("label",null,"Lightness"),k.createElement("input",{type:"range",min:"0",max:"100",value:i[2],onChange:t=>{const n=[i[0],i[1],parseInt(t.target.value)],r=JF("hsl",n);o(r),e(r)},style:{background:`linear-gradient(to right, #000, hsl(${i[0]}, 100%, 50%), #fff)`}})),k.createElement("div",{className:"colorspace"},k.createElement("div",{className:"colorspace_title"},"HSV"),k.createElement("div",null),k.createElement("label",null,"Hue"),k.createElement("input",{type:"range",min:"0",max:"360",value:c[0],onChange:t=>{const n=[parseInt(t.target.value),c[1],c[2]],r=JF("hsv",n);o(r),e(r)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),k.createElement("label",null,"Saturation"),k.createElement("input",{type:"range",min:"0",max:"100",value:c[1],onChange:t=>{const n=[c[0],parseInt(t.target.value),c[2]],r=JF("hsv",n);o(r),e(r)},style:{background:`linear-gradient(to right, #fff, hsl(${i[0]}, 100%, 50%))`}}),k.createElement("label",null,"Value"),k.createElement("input",{type:"range",min:"0",max:"100",value:c[2],onChange:t=>{const n=[c[0],c[1],parseInt(t.target.value)],r=JF("hsv",n);o(r),e(r)},style:{background:`linear-gradient(to right, #000, hsl(${i[0]}, 100%, 50%))`}})),k.createElement("div",{className:"colorspace"},k.createElement("div",{className:"colorspace_title"},"HEX"),k.createElement("div",null),k.createElement("input",{type:"text",value:d,onChange:t=>{const n=""===t.target.value?null:JF("hex",[t.target.value]);o(n),e(n)}})))},tj=({inicolordata:e,inicolorspace:t,allow_null:n=!1,delay:r=1e3,onChange:o})=>{const i=void 0!==e?e:[0,0,0],a=void 0===e?"rgb":t||"hex",s=Array.isArray(i)?i:[i],l=k.useMemo((()=>{let e=JF(a,s);return void 0===e.rgb()&&(e=JF("rgb",[0,0,0])),e}),[a,s]),[c,u]=k.useState(l);k.useEffect((()=>{const n=void 0!==e?e:[0,0,0],r=void 0===e?"rgb":t||"hex",o=Array.isArray(n)?n:[n];let i=JF(r,o);void 0===i.rgb()&&(i=JF("rgb",[0,0,0])),u(i)}),[JSON.stringify(e),t]);const d=k.useContext(wV),f=d.local_state((()=>d.reactflowRef)),p=k.useRef(null),h=k.useCallback((e=>{if(null===e&&!n)throw new Error("Color is null");null!==e&&u(e),p.current&&clearTimeout(p.current),o&&(p.current=setTimeout((()=>{o(e),p.current=null}),r))}),[n,o,r]);k.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=k.useMemo((()=>({background:"#"+c.hex(),borderRadius:"0.3rem",width:"2rem",height:"1rem"})),[c]);return k.createElement(WR,null,k.createElement(qR,{asChild:!0},k.createElement("button",{style:m})),k.createElement(YR,{container:f},k.createElement(XR,{side:"left",className:"iotooltipcontent"},k.createElement(ej,{onChange:h,colorconverter:c,allow_null:n}))))};function nj(e){return nj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nj(e)}function rj(e){var t=function(e,t){if("object"!=nj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=nj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nj(t)?t:t+""}function oj(e,t,n){return(t=rj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ij(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 aj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ij(Object(n),!0).forEach((function(t){oj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ij(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lj(e,t){if(e){if("string"==typeof e)return sj(e,t);var n={}.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)?sj(e,t):void 0}}function cj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||lj(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uj(e,t){if(null==e)return{};var n,r,o=tz(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var dj=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function fj(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,rj(r.key),r)}}function pj(e){return pj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pj(e)}function hj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hj=function(){return!!e})()}function mj(e){var t=hj();return function(){var n,r=pj(e);if(t){var o=pj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==nj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return iz(e)}(this,n)}}function gj(e){return function(e){if(Array.isArray(e))return sj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lj(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var yj=k.useLayoutEffect,vj=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],bj=function(){};function wj(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function xj(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(wj(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var kj=function(e){return function(e){return Array.isArray(e)}(e)?e.filter(Boolean):"object"===nj(e)&&null!==e?[e]:[]},Sj=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,aj({},uj(e,vj))},Ej=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function _j(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Cj(e){return _j(e)?window.pageYOffset:e.scrollTop}function Oj(e,t){_j(e)?window.scrollTo(0,t):e.scrollTop=t}function Nj(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:bj,o=Cj(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Oj(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function Pj(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Oj(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Oj(e,Math.max(t.offsetTop-o,0))}function Rj(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Aj=!1,Mj={get passive(){return Aj=!0}},Tj="undefined"!=typeof window?window:{};Tj.addEventListener&&Tj.removeEventListener&&(Tj.addEventListener("p",bj,Mj),Tj.removeEventListener("p",bj,!1));var Dj=Aj;function Ij(e){return null!=e}function Lj(e,t,n){return e?t:n}var zj=["children","innerProps"],Fj=["children","innerProps"];function jj(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,y=a?window.innerHeight:_j(u=l)?window.innerHeight:u.clientHeight,v=Cj(l),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,k=y-m,S=x+v,E=d-v-m,_=p-y+v+b,C=v+m-w,O=160;switch(o){case"auto":case"bottom":if(k>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&Nj(l,_,O),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&k>=r)return i&&Nj(l,_,O),{placement:"bottom",maxHeight:a?k-b:E-b};if("auto"===o||a){var N=t,P=a?x:S;return P>=r&&(N=Math.min(P-b-s,t)),{placement:"top",maxHeight:N}}if("bottom"===o)return i&&Oj(l,_),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&Nj(l,C,O),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&x>=r){var R=t;return(!a&&S>=r||a&&x>=r)&&(R=a?x-w:S-w),i&&Nj(l,C,O),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Bj,$j=function(e){return"auto"===e?"bottom":e},Vj=k.createContext(null),Uj=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=(k.useContext(Vj)||{}).setPortalPlacement,c=k.useRef(null),u=cj(k.useState(r),2),d=u[0],f=u[1],p=cj(k.useState(null),2),h=p[0],m=p[1],g=s.spacing.controlHeight;return yj((function(){var e=c.current;if(e){var t="fixed"===i,s=jj({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:g});f(s.maxHeight),m(s.placement),null==l||l(s.placement)}}),[r,o,i,a,n,l,g]),t({ref:c,placerProps:aj(aj({},e),{},{placement:h||$j(o),maxHeight:d})})},Hj=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return oD("div",OM({},Ej(e,"menu",{menu:!0}),{ref:n},r),t)},Wj=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return aj({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},qj=Wj,Yj=Wj,Xj=["size"],Kj=["innerProps","isRtl","size"],Gj={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Qj=function(e){var t=e.size,n=uj(e,Xj);return oD("svg",OM({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Gj},n))},Zj=function(e){return oD(Qj,OM({size:20},e),oD("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Jj=function(e){return oD(Qj,OM({size:20},e),oD("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},eB=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return aj({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},tB=eB,nB=eB,rB=aD(Bj||(Bj=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),oB=function(e){var t=e.delay,n=e.offset;return oD("span",{css:iD({animation:"".concat(rB," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},iB=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return oD("div",OM({ref:o},Ej(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},aB=["data"],sB=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return oD("div",OM({},Ej(e,"group",{group:!0}),s),oD(i,OM({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),oD("div",null,t))},lB=["innerRef","isDisabled","isHidden","inputClassName"],cB={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},uB={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":aj({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},cB)},dB=function(e){return aj({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},cB)},fB=function(e){var t=e.cx,n=e.value,r=Sj(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=uj(r,lB);return oD("div",OM({},Ej(e,"input",{"input-container":!0}),{"data-value":n||""}),oD("input",OM({className:t({input:!0},s),ref:o,style:dB(a),disabled:i},l)))},pB=function(e){var t=e.children,n=e.innerProps;return oD("div",n,t)};var hB=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return oD(l,{data:r,innerProps:aj(aj({},Ej(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},oD(c,{data:r,innerProps:aj({},Ej(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),oD(u,{data:r,innerProps:aj(aj({},Ej(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},mB=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return oD("div",OM({},Ej(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},gB=function(e){var t=e.children,n=e.innerProps;return oD("div",OM({},Ej(e,"placeholder",{placeholder:!0}),n),t)},yB=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return oD("div",OM({},Ej(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},vB={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return oD("div",OM({},Ej(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||oD(Zj,null))},Control:iB,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return oD("div",OM({},Ej(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||oD(Jj,null))},DownChevron:Jj,CrossIcon:Zj,Group:sB,GroupHeading:function(e){var t=Sj(e);t.data;var n=uj(t,aB);return oD("div",OM({},Ej(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return oD("div",OM({},Ej(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return oD("span",OM({},t,Ej(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:fB,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=uj(e,Kj);return oD("div",OM({},Ej(aj(aj({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),oD(oB,{delay:0,offset:n}),oD(oB,{delay:160,offset:!0}),oD(oB,{delay:320,offset:!n}))},Menu:Hj,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return oD("div",OM({},Ej(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=k.useRef(null),l=k.useRef(null),c=cj(k.useState($j(i)),2),u=c[0],d=c[1],f=k.useMemo((function(){return{setPortalPlacement:d}}),[]),p=cj(k.useState(null),2),h=p[0],m=p[1],g=k.useCallback((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[u]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,a,u,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);yj((function(){g()}),[g]);var y=k.useCallback((function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&s.current&&(l.current=hw(r,s.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);yj((function(){y()}),[y]);var v=k.useCallback((function(e){s.current=e,y()}),[y]);if(!t&&"fixed"!==a||!h)return null;var b=oD("div",OM({ref:v},Ej(aj(aj({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return oD(Vj.Provider,{value:f},t?so.createPortal(b,t):b)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=uj(e,Fj);return oD("div",OM({},Ej(aj(aj({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=uj(e,zj);return oD("div",OM({},Ej(aj(aj({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:hB,MultiValueContainer:pB,MultiValueLabel:pB,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return oD("div",OM({role:"button"},n),t||oD(Zj,{size:14}))},Option:mB,Placeholder:gB,SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return oD("div",OM({},Ej(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:yB,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return oD("div",OM({},Ej(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},bB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function wB(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||bB(r)&&bB(o)))return!1;var r,o;return!0}for(var xB={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},kB=function(e){return oD("span",OM({css:xB},e))},SB={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},EB=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,g=s.menuIsOpen,y=s.options,v=s.screenReaderStatus,b=s.tabSelectsValue,w=s.isLoading,x=s["aria-label"],S=s["aria-live"],E=k.useMemo((function(){return aj(aj({},SB),u||{})}),[u]),_=k.useMemo((function(){var e,n="";if(t&&E.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,l=t.value,c=i||r||(e=l,Array.isArray(e)?null:e),u=c?d(c):"",f=o||s||void 0,p=f?f.map(d):[],m=aj({isDisabled:c&&h(c,a),label:u,labels:p},t);n=E.onChange(m)}return n}),[t,E,h,a,d]),C=k.useMemo((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&E.onFocus){var s={focused:t,label:d(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=E.onFocus(s)}return e}),[n,r,d,h,E,o,a,c]),O=k.useMemo((function(){var e="";if(g&&y.length&&!w&&E.onFilter){var t=v({count:o.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,g,E,y,v,w]),N="initial-input-focus"===(null==t?void 0:t.action),P=k.useMemo((function(){var e="";if(E.guidance){var t=r?"value":g?"menu":"input";e=E.guidance({"aria-label":x,context:t,isDisabled:n&&h(n,a),isMulti:p,isSearchable:m,tabSelectsValue:b,isInitialFocus:N})}return e}),[x,n,r,p,h,m,g,E,a,b,N]),R=oD(k.Fragment,null,oD("span",{id:"aria-selection"},_),oD("span",{id:"aria-focused"},C),oD("span",{id:"aria-results"},O),oD("span",{id:"aria-guidance"},P));return oD(k.Fragment,null,oD(kB,{id:l},N&&R),oD(kB,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!N&&R))},_B=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],CB=new RegExp("["+_B.map((function(e){return e.letters})).join("")+"]","g"),OB={},NB=0;NB<_B.length;NB++)for(var PB=_B[NB],RB=0;RB<PB.letters.length;RB++)OB[PB.letters[RB]]=PB.base;var AB=function(e){return e.replace(CB,(function(e){return OB[e]}))},MB=function(e,t){void 0===t&&(t=wB);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(AB),TB=function(e){return e.replace(/^\s+|\s+$/g,"")},DB=function(e){return"".concat(e.label," ").concat(e.value)},IB=["innerRef"];function LB(e){var t=e.innerRef,n=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];var o=Object.entries(e).filter((function(e){var t=cj(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=cj(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(uj(e,IB),"onExited","in","enter","exit","appear");return oD("input",OM({ref:t},n,{css:iD({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var zB=["boxSizing","height","overflow","paddingRight","position"],FB={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function jB(e){e.cancelable&&e.preventDefault()}function BB(e){e.stopPropagation()}function $B(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function VB(){return"ontouchstart"in window||navigator.maxTouchPoints}var UB=!("undefined"==typeof window||!window.document||!window.document.createElement),HB=0,WB={capture:!1,passive:!1};var qB=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},YB={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function XB(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=k.useRef(!1),s=k.useRef(!1),l=k.useRef(0),c=k.useRef(null),u=k.useCallback((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,f=l.clientHeight,p=c.current,h=t>0,m=d-f-u,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>u&&(o&&!s.current&&o(e),p.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),d=k.useCallback((function(e){u(e,e.deltaY)}),[u]),f=k.useCallback((function(e){l.current=e.changedTouches[0].clientY}),[]),p=k.useCallback((function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)}),[u]),h=k.useCallback((function(e){if(e){var t=!!Dj&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),m=k.useCallback((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return k.useEffect((function(){if(t){var e=c.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=k.useRef({}),i=k.useRef(null),a=k.useCallback((function(e){if(UB){var t=document.body,n=t&&t.style;if(r&&zB.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&HB<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(FB).forEach((function(e){var t=FB[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&VB()&&(t.addEventListener("touchmove",jB,WB),e&&(e.addEventListener("touchstart",$B,WB),e.addEventListener("touchmove",BB,WB))),HB+=1}}),[r]),s=k.useCallback((function(e){if(UB){var t=document.body,n=t&&t.style;HB=Math.max(HB-1,0),r&&HB<1&&zB.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&VB()&&(t.removeEventListener("touchmove",jB,WB),e&&(e.removeEventListener("touchstart",$B,WB),e.removeEventListener("touchmove",BB,WB)))}}),[r]);return k.useEffect((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return oD(k.Fragment,null,n&&oD("div",{onClick:qB,css:YB}),t((function(e){o(e),i(e)})))}var KB={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},GB=function(e){var t=e.name,n=e.onFocus;return oD("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:KB,value:"",onChange:function(){}})};function QB(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ZB(){return QB(/^Mac/i)}function JB(){return QB(/^iPhone/i)||QB(/^iPad/i)||ZB()&&navigator.maxTouchPoints>1}var e$={clearIndicator:nB,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return aj({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:tB,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return aj({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return aj({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return aj(aj({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},uB),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return aj({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Yj,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return aj((oj(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),oj(n,"position","absolute"),oj(n,"width","100%"),oj(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return aj({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return aj({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return aj({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return aj({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:qj,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return aj({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return aj({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return aj({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return aj({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},t$={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},n$={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Rj(),captureMenuScroll:!Rj(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=aj({ignoreCase:!0,ignoreAccents:!0,stringify:DB,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?TB(n):n,u=s?TB(a(t)):a(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=MB(c),u=AB(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function r$(e,t,n,r){return{type:"option",data:t,isDisabled:d$(e,t,n),isSelected:f$(e,t,n),label:c$(e,t),value:u$(e,t),index:r}}function o$(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return r$(e,n,t,r)})).filter((function(t){return s$(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=r$(e,n,t,r);return s$(e,i)?i:void 0})).filter(Ij)}function i$(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,gj(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function a$(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,gj(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function s$(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!h$(e)||!i)&&p$(e,{label:a,value:s,data:o},r)}var l$=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},c$=function(e,t){return e.getOptionLabel(t)},u$=function(e,t){return e.getOptionValue(t)};function d$(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function f$(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=u$(e,t);return n.some((function(t){return u$(e,t)===r}))}function p$(e,t,n){return!e.filterOption||e.filterOption(t,n)}var h$=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},m$=1,g$=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nz(e,t)}(n,e);var t=mj(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=ZB()||JB(),r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(gj(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=Lj(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Lj(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Lj(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return l$(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return a$(o$(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xj.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return c$(r.props,e)},r.getOptionValue=function(e){return u$(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=e$[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,aj(aj({},vB),e.components);var e},r.buildCategorizedOptions=function(){return o$(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return i$(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:aj({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&_j(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return h$(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!h||f&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++m$),r.state.selectValue=kj(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=l$(o,i[a])}return r}return function(e,t,n){t&&fj(e.prototype,t),n&&fj(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Pj(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Pj(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(t$):aj(aj({},t$),this.props.theme):t$}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return d$(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return f$(this.props,e,t)}},{key:"filterOption",value:function(e,t){return p$(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,c=this.getComponents().Input,u=this.state,d=u.inputIsHidden,f=u.ariaSelection,p=this.commonProps,h=r||this.getElementId("input"),m=aj(aj(aj({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?k.createElement(c,OM({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):k.createElement(LB,OM({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:bj,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,d=c.isDisabled,f=c.isMulti,p=c.inputValue,h=c.placeholder,m=this.state,g=m.selectValue,y=m.focusedValue,v=m.isFocused;if(!this.hasValue()||!u)return p?null:k.createElement(s,OM({},l,{key:"placeholder",isDisabled:d,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,a){var s=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return k.createElement(n,OM({},l,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:d,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var b=g[0];return k.createElement(a,OM({},l,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(e,OM({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return k.createElement(e,OM({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return k.createElement(n,OM({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(e,OM({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,d=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,g=f.loadingMessage,y=f.minMenuHeight,v=f.maxMenuHeight,b=f.menuIsOpen,w=f.menuPlacement,x=f.menuPosition,S=f.menuPortalTarget,E=f.menuShouldBlockScroll,_=f.menuShouldScrollIntoView,C=f.noOptionsMessage,O=f.onMenuScrollToTop,N=f.onMenuScrollToBottom;if(!b)return null;var P,R=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,f=d===o,p=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return k.createElement(c,OM({},u,{innerProps:g,data:o,isDisabled:i,isSelected:a,key:m,label:s,type:r,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return k.createElement(n,OM({},u,{key:s,data:o,options:i,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(m){var A=g({inputValue:h});if(null===A)return null;P=k.createElement(s,u,A)}else{var M=C({inputValue:h});if(null===M)return null;P=k.createElement(l,u,M)}var T={minMenuHeight:y,maxMenuHeight:v,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:_},D=k.createElement(Uj,OM({},u,T),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return k.createElement(o,OM({},u,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),k.createElement(XB,{captureEnabled:p,onTopArrive:O,onBottomArrive:N,lockEnabled:E},(function(t){return k.createElement(i,OM({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:d}),P)})))}));return S||"fixed"===x?k.createElement(a,OM({},u,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return k.createElement(GB,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return k.createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map((function(t,n){return k.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):k.createElement("input",{name:i,type:"hidden",value:""});return k.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return k.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return k.createElement(EB,OM({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,c=i.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return k.createElement(r,OM({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),k.createElement(t,OM({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),k.createElement(o,OM({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(n,OM({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=kj(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return i$(o$(e,t))}(e,h):[],y=d?a$(o$(e,h),"".concat(l,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:b,focusedOptionId:l$(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,k=a&&s;return a&&!k&&(x={value:Lj(p,h,h[0]||null),options:h,action:"initial-input-focus"},k=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),aj(aj(aj({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:k})}}]),n}(k.Component);g$.defaultProps=n$;var y$=k.forwardRef((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=uj(e,dj),m=cj(k.useState(void 0!==s?s:n),2),g=m[0],y=m[1],v=cj(k.useState(void 0!==l?l:o),2),b=v[0],w=v[1],x=cj(k.useState(void 0!==p?p:a),2),S=x[0],E=x[1],_=k.useCallback((function(e,t){"function"==typeof c&&c(e,t),E(e)}),[c]),C=k.useCallback((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),y(void 0!==n?n:e)}),[u]),O=k.useCallback((function(){"function"==typeof f&&f(),w(!0)}),[f]),N=k.useCallback((function(){"function"==typeof d&&d(),w(!1)}),[d]),P=void 0!==s?s:g,R=void 0!==l?l:b,A=void 0!==p?p:S;return aj(aj({},h),{},{inputValue:P,menuIsOpen:R,onChange:_,onInputChange:C,onMenuClose:N,onMenuOpen:O,value:A})}(e);return k.createElement(g$,OM({ref:t},n))})),v$=y$;const b$=({options:e,items_per_page:t,className:n,defaultValue:r,onChange:o})=>{const[i,a]=k.useState(""),[s,l]=k.useState(0),c=e.filter((e=>e.label.toLowerCase().includes(i)||e.value.toLowerCase().includes(i)));var u;u=void 0!==t?c.slice(s*t,(s+1)*t):c;const d={control:e=>({...e,minHeight:void 0})};return k.createElement(v$,{options:u,onInputChange:e=>{a(e.toLowerCase()),l(0)},onChange:o,inputValue:i,isSearchable:!0,placeholder:"Select an option...",className:n,unstyled:!0,styles:d,classNamePrefix:"styled-select",defaultValue:r,value:r})};const w$=({iostore:e,inputconverter:t,parser:n=e=>parseFloat(e)})=>{const r=k.useContext(wV),{preview:o}=e.valuestore(),i=e.use(),[a,s]=k.useState(t[1](o?.value));k.useEffect((()=>{s(t[1](o?.value))}),[o]);const l=e=>{var o;e=n(parseFloat(e.toString()).toString()),isNaN(e)?(e="<NoValue>",s("")):(void 0!==i.value_options?.min&&e<i.value_options.min&&(e=i.value_options.min),void 0!==i.value_options?.max&&e>i.value_options.max&&(e=i.value_options.max),e=0===(o=e)?0:Math.abs(o)<1e-12?o:Number(o.toPrecision(12)),s(e.toString()));try{e=t[0](e)}catch(e){}r.worker?.set_io_value({nid:i.node,ioid:i.id,value:e,set_default:i.render_options.set_default})};let c=i.connected?t[1](o?.value):a;void 0===c&&(c=i.value_options?.min),void 0===c&&(c=i.value_options?.max),void 0===c&&(c=""),null===c&&(c="");let u=null,d=1;return void 0!==i.value_options?.step?d=i.value_options.step:void 0!==i.value_options?.max&&void 0!==i.value_options?.min&&(d=(i.value_options?.max-i.value_options?.min)/1e3),void 0===i.value_options?.max||void 0===i.value_options?.min||i.connected||(u=k.createElement("div",{style:{minWidth:"100px"},className:"SliderContainer"},k.createElement(WF,{className:"SliderRoot",value:[void 0===c?i.value_options?.min:c],min:i.value_options?.min,max:i.value_options?.max,step:d,disabled:i.connected,onValueCommit:e=>{isNaN(e[0])||l(e[0])},onValueChange:e=>{isNaN(e[0])||s(e[0].toString())}},k.createElement(qF,{className:"SliderTrack"},k.createElement(YF,{className:"SliderRange"})),k.createElement(XF,{className:"SliderThumb"})))),k.createElement(k.Fragment,null,u,k.createElement("input",{type:"text",className:"nodedatainput styledinput numberinput",value:c,onChange:e=>s(e.target.value),onBlur:e=>{l(e.target.value)},onKeyDown:e=>{if(!e.ctrlKey&&!e.metaKey)if("ArrowUp"!==e.key)if("ArrowDown"!==e.key)/^[0-9.eE+-]$/.test(e.key)||["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(e.key)||e.preventDefault();else{e.shiftKey&&(d*=10);let t=(parseFloat(c)||0)-d;l(t)}else{e.shiftKey&&(d*=10);let t=(parseFloat(c)||0)+d;l(t)}},disabled:i.connected,step:i.value_options?.step,min:i.value_options?.min,max:i.value_options?.max}))},x$=({iostore:e,inputconverter:t})=>{const n=k.useContext(wV),{preview:r,full:o}=e.valuestore(),i=e.use(),a=void 0===o?r?.value:o?.value,[s,l]=k.useState(t[1](a));k.useEffect((()=>{l(t[1](a))}),[a]);let c=i.connected?t[1](a):s;return null==c&&(c=""),k.createElement("input",{className:"nodedatainput styledinput stringinput",value:c,onChange:e=>l(e.target.value),onBlur:e=>{let r=e.target.value;r||(r="<NoValue>");try{r=t[0](r)}catch(e){}n.worker?.set_io_value({nid:i.node,ioid:i.id,value:r,set_default:i.render_options.set_default})},disabled:i.connected})},k$=e=>e,S$=e=>parseFloat(e),E$=e=>!!e,_$=e=>"null"===e?null:e,C$=({iostore:e,inputconverter:t,parser:n})=>{const r=e.use(),{preview:o,full:i}=e.valuestore(),a=void 0===i?o?.value:i.value;let s=r.value_options?.options||[];Array.isArray(s)&&(s={type:"enum",values:s,keys:s.map((e=>null===e?"None":e.toString())),nullable:!1}),"enum"!==s.type&&(s={type:"enum",values:Object.values(s),keys:Object.keys(s),nullable:!1}),!s.nullable||s.values.includes(null)||s.keys.includes("None")||(s.values.unshift(null),s.keys.unshift("None"));const l=[];for(let e=0;e<s.values.length;e++){const t=null===s.values[e]||void 0===s.values[e]?"undefined":typeof s.values[e];let n=s.values[e];null===n&&(n="null"),void 0===n&&(n="undefined"),l.push([s.keys[e],n.toString(),t])}const c=k.useContext(wV),u=({value:e,datatype:o})=>{const i=n||(e=>"nuinputconvertermber"===e?S$:"boolean"===e?E$:"undefined"===e?_$:k$)(o);let a=i(e);try{a=t[0](e)}catch(e){}c.worker?.set_io_value({nid:r.node,ioid:r.id,value:a,set_default:r.render_options.set_default})};let d=a;null===d&&(d="null"),void 0===d&&(d="undefined");const f=l.find((e=>e[1]===d.toString()));let p;void 0!==f&&(p={value:f[1],label:f[0],datatype:f[2]});const h=l.map((e=>({value:e[1],label:e[0],datatype:e[2]})));return k.createElement(b$,{className:"nodedatainput styleddropdown",options:h,defaultValue:p,onChange:e=>{u(null!==e?e:{value:"<NoValue>",datatype:"string"})}})},O$={float:({iostore:e,inputconverter:t})=>w$({iostore:e,inputconverter:t,parser:parseFloat}),int:({iostore:e,inputconverter:t})=>w$({iostore:e,inputconverter:t,parser:parseInt}),bool:({iostore:e,inputconverter:t})=>{const n=k.useContext(wV),{preview:r}=e.valuestore(),o=e.use(),i=void 0===r?.value,a=k.useRef(null);k.useEffect((()=>{a.current&&(a.current.indeterminate=i)}),[a,i]);return k.createElement("input",{ref:a,type:"checkbox",className:"styledcheckbox booleaninput",checked:!!t[1](r?.value),onChange:e=>{let r=e.target.checked;try{r=t[0](e.target.checked)}catch(e){}n.worker?.set_io_value({nid:o.node,ioid:o.id,value:r,set_default:o.render_options.set_default})},disabled:o.connected})},string:x$,str:x$,color:({iostore:e})=>{const t=k.useContext(wV),n=e.use(),{preview:r,full:o}=e.valuestore(),i=void 0===o?r?.value:o.value,a=n.value_options?.colorspace||"hex";let s=!1;return"string"!=typeof n.type&&"anyOf"in n.type&&void 0!==n.type.anyOf&&(s=n.type.anyOf.some((e=>"None"===e))),k.createElement(tj,{onChange:e=>{let r="<NoValue>";e&&(r=e[a]?e[a]():e.hex()),null===e&&(r=null),t.worker?.set_io_value({nid:n.node,ioid:n.id,value:r,set_default:n.render_options.set_default})},inicolordata:i,allow_null:s,inicolorspace:a})},select:C$,enum:C$,bytes:((e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=void 0===r?o:r,a=i?.value||t;return k.createElement(e,{iostore:n,value:a})})(oF,"")},N$=({iostore:e,typestring:t})=>{const{InLineRenderer:n}=k.useContext(L$),{preview:r,full:o}=e.valuestore();if(t&&n[t])return k.createElement("div",null,n[t]({iostore:e}));let i=(JSON.stringify(o||r)||"").replace(/\\n/g,"\n");return i.length>63&&(i=i.slice(0,60)+"..."),k.createElement("div",null,i)},P$=(e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=void 0===r?o:r,a=i?.value||t;return k.createElement(e,{iostore:n,value:a})},R$={string:P$(rF),table:P$(iF),image:P$(tF),svg:P$(nF,""),dict:P$(aF,"{}"),bytes:P$(oF,"")},A$=e=>({iostore:t,value:n,preValue:r,onLoaded:o})=>k.createElement(e,{iostore:t,value:n,preValue:r,onLoaded:o}),M$=A$(aF),T$={Inputrenderer:O$,Outputrenderer:{},HandlePreviewRenderer:{},DataOverlayRenderer:{},DataPreviewViewRenderer:R$,DataViewRenderer:lF,InLineRenderer:GR,NodeContextExtenders:{},NodeRenderer:{},NodeHooks:{}},D$=(e,t)=>{const n=t.options||{},r=void 0===n.overwrite||n.overwrite;switch(t.type){case"EXTEND_INPUT_RENDER":return!r&&e.Inputrenderer[t.payload.type]?e:{...e,Inputrenderer:{...e.Inputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_OUTPUT_RENDER":return!r&&e.Outputrenderer[t.payload.type]?e:{...e,Outputrenderer:{...e.Outputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_HANDLE_PREVIEW_RENDER":return!r&&e.HandlePreviewRenderer[t.payload.type]?e:{...e,HandlePreviewRenderer:{...e.HandlePreviewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_OVERLAY_RENDER":return!r&&e.DataOverlayRenderer[t.payload.type]?e:{...e,DataOverlayRenderer:{...e.DataOverlayRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_PREVIEW_RENDER":return!r&&e.DataPreviewViewRenderer[t.payload.type]?e:{...e,DataPreviewViewRenderer:{...e.DataPreviewViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_VIEW_RENDER":return!r&&e.DataViewRenderer[t.payload.type]?e:{...e,DataViewRenderer:{...e.DataViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_CONTEXT_EXTENDER":return!r&&e.NodeContextExtenders[t.payload.type]?e:{...e,NodeContextExtenders:{...e.NodeContextExtenders,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_RENDERER":return!r&&e.NodeRenderer[t.payload.type]?e:{...e,NodeRenderer:{...e.NodeRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_HOOKS":return!r&&e.NodeHooks[t.payload.type]?e:{...e,NodeHooks:{...e.NodeHooks,[t.payload.type]:t.payload.component}};case"EXTEND_FROM_PLUGIN":let n=!1;const o=[[t.payload.plugin.input_renderers||{},e.Inputrenderer],[t.payload.plugin.output_renderers||{},e.Outputrenderer],[t.payload.plugin.handle_preview_renderers||{},e.HandlePreviewRenderer],[t.payload.plugin.data_overlay_renderers||{},e.DataOverlayRenderer],[t.payload.plugin.data_preview_renderers||{},e.DataPreviewViewRenderer],[t.payload.plugin.data_view_renderers||{},e.DataViewRenderer],[t.payload.plugin.node_context_extenders||{},e.NodeContextExtenders],[t.payload.plugin.node_renderers||{},e.NodeRenderer],[t.payload.plugin.node_hooks||{},e.NodeHooks]];for(const[e,t]of o){if(Object.keys(e).length>0)if(r)n=!0;else for(const r in e)if(!t[r]){n=!0;break}if(n)break}if(!n)return e;for(const[e,t]of o)for(const n in e)!r&&t[n]||(t[n]=e[n]);return{...e};default:return e}},I$=({children:e,plugins:t,fnrf_zst:n})=>{const[r,o]=k.useReducer(D$,T$),i=(e,t)=>{o({type:"EXTEND_FROM_PLUGIN",payload:{plugin:e},options:t})};return k.useEffect((()=>{for(const e in t){const r=t[e];if(!r)continue;const o=r.renderpluginfactory;o&&i(o({React:E,fnrf_zst:n,NodeContext:eV}))}}),[t]),k.createElement(L$.Provider,{value:{Inputrenderer:r.Inputrenderer,Outputrenderer:r.Outputrenderer,HandlePreviewRenderer:r.HandlePreviewRenderer,DataOverlayRenderer:r.DataOverlayRenderer,DataPreviewViewRenderer:r.DataPreviewViewRenderer,DataViewRenderer:r.DataViewRenderer,InLineRenderer:r.InLineRenderer,NodeContextExtenders:r.NodeContextExtenders,NodeRenderer:r.NodeRenderer,NodeHooks:r.NodeHooks,extendInputRenderMapping:(e,t,n)=>{o({type:"EXTEND_INPUT_RENDER",payload:{type:e,component:t},options:n})},extendOutputRenderMapping:(e,t,n)=>{o({type:"EXTEND_OUTPUT_RENDER",payload:{type:e,component:t},options:n})},extendHandlePreviewRenderMapping:(e,t,n)=>{o({type:"EXTEND_HANDLE_PREVIEW_RENDER",payload:{type:e,component:t},options:n})},extendDataOverlayRenderMapping:(e,t,n)=>{o({type:"EXTEND_DATA_OVERLAY_RENDER",payload:{type:e,component:t},options:n})},extendDataPreviewRenderMapping:(e,t,n)=>{o({type:"EXTEND_DATA_PREVIEW_RENDER",payload:{type:e,component:t},options:n})},extendDataViewRenderMapping:(e,t,n)=>{o({type:"EXTEND_DATA_VIEW_RENDER",payload:{type:e,component:t},options:n})},extendNodeContextExtender:(e,t,n)=>{o({type:"EXTEND_NODE_CONTEXT_EXTENDER",payload:{type:e,component:t},options:n})},extendNodeRenderer:(e,t,n)=>{o({type:"EXTEND_NODE_RENDERER",payload:{type:e,component:t},options:n})},extendNodeHooks:(e,t,n)=>{o({type:"EXTEND_NODE_HOOKS",payload:{type:e,component:t},options:n})},extendFromPlugin:i}},e)},L$=k.createContext({Inputrenderer:T$.Inputrenderer,Outputrenderer:T$.Outputrenderer,HandlePreviewRenderer:T$.HandlePreviewRenderer,DataOverlayRenderer:T$.DataOverlayRenderer,DataPreviewViewRenderer:T$.DataPreviewViewRenderer,DataViewRenderer:T$.DataViewRenderer,InLineRenderer:T$.InLineRenderer,NodeContextExtenders:T$.NodeContextExtenders,NodeRenderer:T$.NodeRenderer,NodeHooks:T$.NodeHooks,extendInputRenderMapping:(e,t,n)=>{},extendOutputRenderMapping:(e,t,n)=>{},extendHandlePreviewRenderMapping:(e,t,n)=>{},extendDataOverlayRenderMapping:(e,t,n)=>{},extendDataPreviewRenderMapping:(e,t,n)=>{},extendDataViewRenderMapping:(e,t,n)=>{},extendNodeContextExtender:(e,t,n)=>{},extendNodeRenderer:(e,t,n)=>{},extendNodeHooks:(e,t,n)=>{},extendFromPlugin:(e,t)=>{}}),z$=e=>{const t=k.useContext(wV),{DataOverlayRenderer:n,DataViewRenderer:r}=k.useContext(L$);if(void 0===e)return;const o=t.render_options(),[i]=B$(e.type,o.typemap||{});return i?n[i]?n[i]:r[i]?A$(r[i]):M$:M$},F$=({iostore:e,Component:t})=>{const[n,r]=k.useState(void 0),[o,i]=k.useState(void 0),{full:a}=e.valuestore();k.useEffect((()=>{void 0===a?e.getState().try_get_full_value():i(a.value)}),[a]);return k.createElement(t,{iostore:e,value:o,preValue:n,onLoaded:()=>{void 0!==o&&r(o)}})},j$=({iostore:e,Component:t})=>k.createElement(t,{iostore:e}),B$=(e,t)=>{if("string"==typeof e)return e in t?[t[e],e]:[e,e];if("allOf"in e&&void 0!==e.allOf)return[void 0,void 0];if("anyOf"in e&&void 0!==e.anyOf){const n=e.anyOf.map((e=>B$(e,t)));for(const e of n)switch(e[0]){case"bool":return["bool",e[1]];case"enum":return["enum",e[1]];case"float":return["float",e[1]];case"int":return["int",e[1]];case"string":case"str":return["string",e[1]]}return[void 0,void 0]}return"type"in e&&void 0!==e.type&&"enum"===e.type?["enum","enum"]:[void 0,void 0]},$$=({iostore:e,typestring:t,preview:n,...r})=>{const[o,i]=k.useState(!1),[a,s]=k.useState(!1),l=k.useContext(wV),c=e.use(),[u,d]=(e=>{const t=k.useContext(wV).render_options(),{HandlePreviewRenderer:n,DataPreviewViewRenderer:r}=k.useContext(L$),o=z$(e);let i;if(e){const[o]=B$(e.type,t.typemap||{});i=o?n[o]?n[o]:r[o]?r[o]:P$(sF):P$(sF)}return[i,o]})(c),f=l.local_state((()=>l.reactflowRef));return k.createElement(WR,{open:o||a,onOpenChange:s},k.createElement(qR,{asChild:!0},k.createElement(Fi,{id:c.id,"data-type":t,...r})),k.createElement(YR,{container:f},k.createElement(XR,{className:"iotooltipcontent",sideOffset:5},k.createElement("div",{className:"iotooltip_container"},k.createElement("div",{className:"iotooltip_header"},o?k.createElement(eb,{onClick:()=>i(!1)}):k.createElement(Jv,{onClick:()=>i(!0)}),d&&k.createElement(ob,{title:c.full_id,trigger:k.createElement(Wv,null),onOpenChange:e=>{e&&c.try_get_full_value&&c.try_get_full_value(),i(e)}},k.createElement(F$,{Component:d,iostore:e}))),u?k.createElement(j$,{Component:u,iostore:e}):`no preview available for "${t}"`),k.createElement(KR,{className:"iotooltipcontentarrow"}))))},V$={"":[e=>e,e=>e],str_to_json:[e=>JSON.parse(e),e=>"string"==typeof e?e:JSON.stringify(e)],str_to_list:[e=>{try{const t=JSON.parse(e);return Array.isArray(t)?t:[t]}catch(t){try{return JSON.parse("["+e+"]")}catch(e){}}throw new Error("Invalid list")},e=>JSON.stringify(e)]},U$=({iostore:e})=>{const t=k.useContext(wV).render_options(),n=e.use(),[r,o]=B$(n.render_options.type,t.typemap||{}),{Inputrenderer:i}=k.useContext(L$),a=r?n.value_options?.options?C$:i[r]:void 0,s=V$[(o&&t.inputconverter?.[o])??""]||V$[""];return n.hidden?null:k.createElement("div",{className:"nodeinput","data-type":r},k.createElement($$,{iostore:e,typestring:r,position:ei.Left,type:"target"}),a&&k.createElement("div",{className:"iovaluefield nodrag","data-type":r},k.createElement(a,{iostore:e,inputconverter:s})),k.createElement("div",{className:"ioname"},n.name),k.createElement($$,{iostore:e,typestring:r,position:ei.Right,type:"source"}))},H$=({iostore:e})=>{const t=k.useContext(wV).render_options(),n=e.use(),[r]=B$(n.type,t.typemap||{}),{Outputrenderer:o}=k.useContext(L$),i=r?o[r]:void 0;return n.hidden?null:k.createElement("div",{className:"nodeoutput","data-type":r},k.createElement($$,{iostore:e,typestring:r,position:ei.Right,type:"source"}),k.createElement("div",{className:"ioname"},n.name),i?k.createElement("div",{className:"iovaluefield nodrag"},k.createElement(i,{iostore:e})):k.createElement("div",{className:"iovaluefield"},k.createElement(N$,{iostore:e,typestring:r})))};function W$(e){return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,"0")}`}function q$(e,t){const n=["","K","M","G","T"];let r=0;for(;e>=t&&r<n.length-1;)e/=t,r++;return[e.toFixed(2),n[r]]}const Y$=({state:e,className:t="reacttqdm",...n})=>{const r=k.useRef(null),o=k.useRef(null);k.useEffect((()=>{const e=()=>{r.current&&o.current&&function(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:i=.9}=n;if(!e||!t)return;if(i>=1||i<=0)throw new Error("decrementFactor must be between 0 and 1");const a=e.getBoundingClientRect(),s=a.width,l=a.height;let c=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=c+"px";let u=t.getBoundingClientRect();for(;(u.width>s||u.height>l)&&c>o;)c*=i,t.style.fontSize=c+"px",u=t.getBoundingClientRect()}(r.current,o.current,{maxFontSize:12,decrementFactor:.9})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[e]);const i=e.total?e.n/e.total*100:0;return k.createElement("div",{ref:r,className:t,...n},k.createElement("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},k.createElement("div",{className:t+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"}},k.createElement("div",{className:t+"-progress",style:{width:`${i}%`,height:"100%"}})),k.createElement("div",{className:t+"-text",ref:o},function(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n:n,unit_scale:r,elapsed:o,unit:i,unit_divisor:a,prefix:s="",rate:l,postfix:c=null,initial:u=0}=e;null!==t&&n>=t+.5&&(t=null);let d=n,f=t,p=l;r&&!0!==r&&1!==r&&(null!==t&&(f=t*r),d=n*r,void 0!==l&&(p=l*r));const h=W$(o);void 0===p&&o>0&&(p=(d-u)/o);const m=p?1/p:void 0,[g,y]=p?q$(p,a):[void 0,""],[v,b]=m?q$(m,1e3):[void 0,""],w=m&&m>1?v?`${v}${b}s/`+i:"?":(g||"?")+`${y}${i}/s`,x=r?q$(d,a).join(""):d.toString(),k=r&&null!==f?q$(f,a).join(""):f?.toString()??"?",S=p?W$(p&&null!==f?(f-d)/p:0):"?",E=s?`${s}: `:"";if(null!==t){const e=` ${x}/${k} [${h} < ${S}, ${w}${c??""}]`;return`${E}${(d/t*100).toFixed(0)}%${e}`}return`${E}${x}${i} [${h}, ${w}${c??""}]`}(e))))},X$=k.memo((({node_data:e})=>{const t=k.useContext(wV);return k.createElement("div",{className:"nodeheader",title:e.description||e.node_name},k.createElement("div",{className:"nodeheader_element"},k.createElement(nb,{fontSize:"inherit",className:"triggerbutton",onClick:()=>{t.on_node_action({type:"trigger",from_remote:!1,id:e.id})}}),k.createElement(tb,{fontSize:"inherit",onClick:async()=>{console.log("nodestatus",await(t.worker?.get_node_status(e.id)))}})),k.createElement("div",{className:"nodeheader_element nodeheader_title"},k.createElement("div",{className:"nodeheader_title_text"},e.node_name)),k.createElement("div",{className:"nodeheader_element"},k.createElement(Qv,{fontSize:"inherit"})))})),K$=({iostore:e,node_data:t})=>{const n=e.use(),[r,o]=(e=>{const t=k.useContext(wV),n=z$(e),{DataPreviewViewRenderer:r,DataViewRenderer:o}=k.useContext(L$),i=t.render_options();if(void 0===e)return[void 0,n];const[a]=B$(e.type,i.typemap||{});return a?r[a]?[r[a],n]:o[a]?[P$(o[a]),n]:[P$(sF),n]:[P$(sF),n]})(n);return k.createElement("div",{className:"nodrag nodedatabody","data-src":t.render_options?.data?.src||""},r&&n&&k.createElement(ob,{title:n.full_id,trigger:k.createElement("div",{className:"nodedatabutton"},k.createElement(j$,{Component:r,iostore:e})),onOpenChange:e=>{e&&n?.try_get_full_value&&n?.try_get_full_value()}},o&&k.createElement(F$,{Component:o,iostore:e})))},G$=k.memo((({node_data:e})=>{const t=e.render_options?.data?.src?e.io[e.render_options?.data?.src]:void 0;return k.createElement("div",{className:"nodebody"},e.outputs.map((t=>k.createElement(H$,{key:t,iostore:e.io[t]}))),t&&k.createElement(K$,{node_data:e,iostore:t}),e.inputs.map((t=>k.createElement(U$,{key:t,iostore:e.io[t]}))))})),Q$=k.memo((({node_data:e})=>{const[t,n]=k.useState(e.name);k.useEffect((()=>{n(e.name)}),[e]);const r=k.useContext(wV);return k.createElement("input",{className:"nodename_input",value:t,onChange:e=>{n(e.target.value)},onBlur:t=>{const n=t.target.value;r.on_node_action({type:"update",from_remote:!1,id:e.id,node:{name:n}})}})})),Z$=({node_data:e})=>{if(!e.progress)return null;const t=e.progress();return k.createElement(Y$,{state:t,className:"nodeprogress"})},J$=k.memo((({node_data:e})=>k.createElement("div",{className:"nodefooter"},e.error&&k.createElement("div",{className:"nodeerror"},e.error),k.createElement(Z$,{node_data:e})))),eV=k.createContext(null),tV=({iostore:e})=>{const t=k.useContext(wV).render_options(),n=e.use(),[r,o]=B$(n.render_options.type,t.typemap||{}),{Inputrenderer:i}=k.useContext(L$),a=r?n.value_options?.options?C$:i[r]:void 0,s=V$[(o&&t.inputconverter?.[o])??""]||V$[""];return k.createElement("div",{className:"nodesettings_component"},k.createElement("div",null,n.name),a&&k.createElement(a,{iostore:e,inputconverter:s}),k.createElement("div",null,k.createElement("label",null,"hidden:",k.createElement("input",{className:"styledcheckbox",type:"checkbox",disabled:n.connected,onChange:e=>{n.set_hidden?.(e.target.checked)},checked:n.hidden}))))},nV=({iostore:e})=>{const t=e.use();return k.createElement("div",{className:"nodesettings_component"},k.createElement("div",null,t.name),k.createElement("div",null,k.createElement("label",null,"hidden:",k.createElement("input",{className:"styledcheckbox",type:"checkbox",disabled:t.connected,onChange:e=>{t.set_hidden?.(e.target.checked)},checked:t.hidden}))))},rV=({nodestore:e})=>{const t=e.use();return k.createElement("div",{className:"nodesettings_content"},k.createElement("div",{className:"nodesettings_section"},k.createElement("div",{className:"nodesettings_component"},k.createElement("div",null,"Name"),k.createElement("div",null,k.createElement(Q$,{node_data:t})))),k.createElement("div",{className:"nodesettings_section"},k.createElement("div",null,"Inputs"),t.inputs.map((e=>k.createElement(tV,{iostore:t.io[e],key:e})))),k.createElement("div",{className:"nodesettings_section"},k.createElement("div",null,"Outputs"),t.outputs.map((e=>k.createElement(nV,{iostore:t.io[e],key:e})))))},oV=()=>{const e=k.useContext(wV),t=e.local_state((e=>e.selected_nodes));if(0===t.length)return k.createElement("div",null,"Node Settings");if(t.length>1)return k.createElement("div",null,"Multiple Nodes Selected");const n=e.nodespace.get_node(t[0]);return n?k.createElement(rV,{nodestore:n}):k.createElement("div",null,"Node not found")},iV=()=>{const e=k.useContext(wV),t=e.local_settings((e=>e.view_settings.expand_node_props)),n=e.local_settings((e=>e.update_view_settings));return k.createElement(OS,{maxSize:"300px",direction:"left",expanded:void 0!==t&&t,containerClassName:"pos-right pos-top bg1 h-12",className:"nodesettings_content",onExpandChange:e=>{n({expand_node_props:e})}},k.createElement(oV,null))},aV=e=>({nodes:e.nodes,edges:e.edges,onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange,onConnect:e.onConnect}),sV={default:({data:e})=>{const t=e.nodestore.use(),n=t.properties["frontend:collapsed"]||!1,{visualTrigger:r,nodecontext:o}=(e=>{const t=k.useContext(wV),[n,r]=k.useState(!1),o=e.in_trigger(),i=k.useContext(L$),a=i.NodeContextExtenders[e.node_id],s=k.useMemo((()=>a?.({node_data:e})||{}),[a,e]),l=k.useMemo((()=>({...s,node_data:e})),[s,e]),c=i.NodeHooks[e.node_id];for(const e of c||[])e({nodecontext:l});return k.useEffect((()=>{t.worker?.call_hooks("node_mounted",e.id)}),[t.worker,e.id]),k.useEffect((()=>{let e;return o&&!n?r(!0):n&&(e=setTimeout((()=>r(!1)),200)),()=>clearTimeout(e)}),[o,n]),{visualTrigger:n,nodecontext:l}})(t);return k.createElement(eV.Provider,{value:o},k.createElement("div",{className:"innernode"+(r?" intrigger":"")+(t.error?" error":"")},k.createElement(X$,{node_data:t}),k.createElement(Q$,{node_data:t}),n?null:k.createElement(G$,{node_data:t}),k.createElement(J$,{node_data:t})))}},lV={default:({id:e,sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:i,targetPosition:a,data:s,...l})=>{const[c]=pi({sourceX:t,sourceY:n,sourcePosition:i,targetX:r,targetY:o,targetPosition:a});return k.createElement(k.Fragment,null,k.createElement(Wo,{id:e,path:c,...l}))}},cV=()=>{const e=ka();return k.useContext(wV).rf_instance=e,k.createElement(k.Fragment,null)},uV=()=>{const e=k.useContext(wV),t=ca("Delete"),n=xo(Qs,ye),r=xo(Gs,ye);if(t){for(const t of n)if(t.selected){if(!e.worker)return k.createElement(k.Fragment,null);if(!t.source||!t.target)return k.createElement(k.Fragment,null);if(!t.sourceHandle||!t.targetHandle)return k.createElement(k.Fragment,null);e.worker.remove_edge({src_nid:t.source,src_ioid:t.sourceHandle,trg_nid:t.target,trg_ioid:t.targetHandle})}for(const t of r)if(t.selected){if(!e.worker)return k.createElement(k.Fragment,null);e.worker.remove_node(t.id)}}return k.createElement(k.Fragment,null)},dV=({id:e,top:t,left:n,right:r,bottom:o,...i})=>{const{getNode:a,setNodes:s,addNodes:l,setEdges:c}=ka(),u=k.useContext(wV),d=k.useCallback((()=>{const t=a(e);if(!t)return;const n={x:t.position.x+50,y:t.position.y+50};l({...t,id:`${t.id}-copy`,position:n})}),[e,a,l]),f=k.useCallback((()=>{u.on_node_action({type:"delete",id:e,from_remote:!1})}),[e,s,c]),p=u.nodespace.get_node(e,!1);if(!p)return k.createElement(k.Fragment,null," ");const h=p.use();return k.createElement("div",{style:{top:t,left:n,right:r,bottom:o},className:"context-menu",...i},k.createElement("p",{style:{fontWeight:"bold"}},k.createElement("small",null,h.name)),k.createElement("button",{onClick:d},"duplicate"),k.createElement("button",{onClick:f},"delete"))},fV=e=>{const t=k.useContext(wV),n=k.useRef(null);k.useEffect((()=>{t.reactflowRef=n.current}),[n]);const[r,o]=k.useState(null),i=k.useCallback((()=>o(null)),[o]),{nodes:a,edges:s,onNodesChange:l,onEdgesChange:c,onConnect:u}=t.useReactFlowStore(kR(aV));return k.createElement("div",{className:"reactflowlayer"},k.createElement(Ks,{nodes:a,edges:s,onNodesChange:l,onEdgesChange:c,onConnect:u,nodeTypes:sV,edgeTypes:lV,minZoom:e.minZoom,maxZoom:e.maxZoom,fitView:!0,onSelectionChange:({nodes:e,edges:n})=>{const r=t.local_state.getState();t.local_state.setState({...r,selected_nodes:e.map((e=>e.id)),selected_edges:n.map((e=>e.id))})},ref:n,onPaneClick:i,panOnDrag:!e.static},k.createElement(cV,null),k.createElement(uV,null),k.createElement(hl,{color:"#888",gap:16,size:1}),e.minimap&&k.createElement(sl,{nodeStrokeWidth:3,pannable:!e.static,zoomable:!e.static,zoomStep:3}),r&&k.createElement(dV,{onClick:i,...r})))},pV=k.createContext(void 0),hV=k.forwardRef(((e,t)=>{const{asChild:n,children:r,className:o,style:i,...a}=e,[s,l]=k.useState(!1),c=k.useRef(null),[u,d]=k.useState(null),[f,p]=k.useState({}),h=e.htime||300,m=e.vtime||300,g=e.hdelay||0,y=e.vdelay||200;k.useImperativeHandle(t,(()=>c.current),[]);let v;if(n&&k.isValidElement(r)){const e=r,t=[e.props.className,o,"smooth-expand",s?"smooth-expand-expanded":""].filter(Boolean).join(" "),n={...e.props.style,...i,...f};v=k.cloneElement(e,{ref:c,className:t,style:n,...a})}else v=k.createElement("div",{ref:c,...a,className:`smooth-expand ${s?"smooth-expand-expanded":""} ${o||""}`,style:{...i,...f}},r);const b=k.createElement(pV.Provider,{value:{isExpanded:s,toggleExpand:async()=>{c.current&&(s?await(async()=>{if(!c.current)return;if(!u)return;const e={transitionProperty:"width, left, height, top",transitionDuration:`${h}ms, ${h}ms, ${m}ms, ${m}ms`};p((t=>({...t,...e})));const[t,n,r,o]=u,i=new Promise((e=>{setTimeout((()=>{p((e=>({...e,left:`${t}px`,width:`${r}px`}))),e()}),y)})),a=new Promise((e=>{setTimeout((()=>{p((e=>({...e,top:`${n}px`,height:`${o}px`}))),e()}),g)})),s=Math.max(h+g,m+y),d=new Promise((e=>{setTimeout((()=>{e()}),s)}));await Promise.all([i,a,d]),c.current.style.transition="",p({}),l(!1)})():await(async()=>{if(!c.current)return;c.current.style.transition="none",c.current.style.position="",c.current.style.top="",c.current.style.left="",c.current.style.width="",c.current.style.height="";const e=c.current.getBoundingClientRect();d([e.left,e.top,e.width,e.height]),c.current.style.transition="none",p({position:"absolute",top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`}),p((e=>({...e,transitionProperty:"width, left, height, top",transitionDuration:`${h}ms, ${h}ms, ${m}ms, ${m}ms`}))),l(!0);const t=new Promise((e=>{setTimeout((()=>{p((e=>({...e,left:"0px",width:"100vw"}))),e()}),g)})),n=new Promise((e=>{setTimeout((()=>{p((e=>({...e,top:"0px",height:"100vh"}))),e()}),y)})),r=Math.max(h+g,m+y),o=new Promise((e=>{setTimeout((()=>{e()}),r)}));await Promise.all([t,n,o])})())}}},v);return s?so.createPortal(b,document.body):b}));hV.Trigger=function({children:e}){const t=k.useContext(pV);if(!t)throw new Error("SmoothExpandComponent.Trigger must be used within a SmoothExpandComponent");return k.createElement("div",{style:{cursor:"pointer"},onClick:t.toggleExpand},e)},hV.Expanded=function({children:e}){const t=k.useContext(pV);if(!t)throw new Error("SmoothExpandComponent.Expanded must be used within a SmoothExpandComponent");return t.isExpanded?k.createElement(k.Fragment,null,e):null},hV.Collapsed=function({children:e}){const t=k.useContext(pV);if(!t)throw new Error("SmoothExpandComponent.Collapsed must be used within a SmoothExpandComponent");return t.isExpanded?null:k.createElement(k.Fragment,null,e)};const mV=k.createContext(void 0),gV=k.forwardRef(((e,t)=>{const{asChild:n,children:r,className:o,style:i,...a}=e,s=k.useRef(null);k.useImperativeHandle(t,(()=>s.current),[]);const[l,c]=k.useState(!1),u=k.useCallback((async()=>{try{const e=s.current;if(!e)return;if(l){const e=document;e.exitFullscreen?await e.exitFullscreen():e.mozCancelFullScreen?await e.mozCancelFullScreen():e.webkitExitFullscreen?await e.webkitExitFullscreen():e.msExitFullscreen&&await e.msExitFullscreen(),c(!1)}else e.requestFullscreen?await e.requestFullscreen():e.mozRequestFullScreen?await e.mozRequestFullScreen():e.webkitRequestFullscreen?await e.webkitRequestFullscreen():e.msRequestFullscreen&&await e.msRequestFullscreen(),c(!0)}catch(e){console.error("Error toggling fullscreen",e)}}),[l]);let d;if(k.useEffect((()=>{const e=()=>{const e=document.fullscreenElement;c(!!e)};return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}),[]),n&&k.isValidElement(r)){const e=r,t=[e.props.className,o].filter(Boolean).join(" "),n={...e.props.style,...i};d=k.cloneElement(e,{ref:s,className:t,style:n,...a})}else d=k.createElement("div",{ref:s,...a,className:o,style:i},r);return k.createElement(mV.Provider,{value:{isFullScreen:l,toggleFullscreen:u}},d)}));gV.Trigger=function({children:e}){const t=k.useContext(mV);if(!t)throw new Error("FullScreenComponent.Trigger must be used within a FullScreenComponent");return k.createElement("div",{style:{cursor:"pointer"},onClick:t.toggleFullscreen},e)},gV.InFullScreen=function({children:e}){const t=k.useContext(mV);if(!t)throw new Error("FullScreenComponent.Expanded must be used within a FullScreenComponent");return t.isFullScreen?k.createElement(k.Fragment,null,e):null},gV.OutFullScreen=function({children:e}){const t=k.useContext(mV);if(!t)throw new Error("FullScreenComponent.Collapsed must be used within a FullScreenComponent");return t.isFullScreen?null:k.createElement(k.Fragment,null,e)};const yV=({fnrf_zst:e,header:t,flow:n,library:r})=>{const[o,i]=k.useState(e.options.worker),a=k.useRef(null);e.workermanager&&(e.workermanager.on_setWorker=i),e.set_worker(o),k.useEffect((()=>{e.auto_progress()}),[]),k.useEffect((()=>{e.local_state.setState({funcnodescontainerRef:a.current})}),[a]);const s=e.plugins();return k.createElement(I$,{plugins:s,fnrf_zst:e},k.createElement(wV.Provider,{value:e},k.createElement(hV,{asChild:!0},k.createElement(gV,{asChild:!0},k.createElement(ES,{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",flex:1}},k.createElement("div",{ref:a,className:"funcnodesreactflowcontainer funcnodescontainer"},t.show&&k.createElement(TS,{...t}),k.createElement("div",{className:"funcnodesreactflowbody"},k.createElement(fV,{...n}),o&&r.show&&k.createElement(wR,null),o&&n.showNodeSettings&&k.createElement(iV,null)),k.createElement("div",{className:"funcnodesflaotingmenu"},k.createElement(gV.OutFullScreen,null,n.allowExpand&&k.createElement(hV.Trigger,null,k.createElement(hV.Expanded,null,k.createElement(Yv,{size:"xl",style:{padding:"4px"}})),k.createElement(hV.Collapsed,null,k.createElement(Xv,{size:"xl",style:{padding:"4px"}})))),n.allowFullScreen&&k.createElement(gV.Trigger,null,k.createElement(gV.OutFullScreen,null,k.createElement(Wv,{size:"xl",style:{padding:"4px"}})),k.createElement(gV.InFullScreen,null,k.createElement(qv,{size:"xl",style:{padding:"4px"}}))))))))))},vV={},bV={id:"",debug:!1,useWorkerManager:!0,show_library:!0,header:{show:!0,showmenu:!0},flow:{minimap:!0,static:!1,minZoom:.1,maxZoom:5,allowFullScreen:!0,allowExpand:!0,showNodeSettings:!0},library:{show:!0}},wV=k.createContext(Nl(bV)),xV=e=>{let t=Y(e,{...bV,id:Qd()}).new_obj;if(!t.useWorkerManager&&void 0===t.worker)return k.createElement("div",null,"Error: If you don't use a worker manager, you must provide a default worker.");if(e.useWorkerManager&&void 0===e.workermanager_url)return k.createElement("div",null,"Error: If you use a worker manager, you must provide a worker manager url.");void 0===window.fnrf_zst&&(window.fnrf_zst=vV);let n=vV[t.id];if(void 0===n&&(n=Nl(t),vV[t.id]=n),t.worker&&t.worker.set_zustand(n),n.options.debug=t.debug,t.useWorkerManager){const e=new ef(t.workermanager_url,n);n.workermanager=e}return k.createElement(yV,{fnrf_zst:n,header:t.header,library:t.library,flow:t.flow})},kV=e=>{const t=new Cl("FuncNodes",e.debug?"debug":"info");t.debug("Initalizing FuncNodes with props:",e);let n=Y(e,{...bV,id:Qd()}).new_obj;if(void 0===e.worker&&void 0!==e.worker_url&&(n.useWorkerManager=!1,n.worker=new Jd({url:e.worker_url,uuid:n.id,on_sync_complete:n.on_sync_complete})),void 0!==n.worker){const e=Nl(n);n.worker.set_zustand(e)}if(void 0!==e.fnw_url){if(void 0===n.worker)throw new Error("defining fnw_url requires a worker to be defined");const t=async function(e,t=!0){try{const n=await fetch(e);if(!n.ok)throw new Error(`Failed to fetch from URL: ${n.status} ${n.statusText}`);const r=await n.blob();return await new Promise(((e,n)=>{const o=new FileReader;o.onload=()=>{const r=o.result;"string"!=typeof r&&(n("Failed to convert URL to Base64: No result from FileReader"),n(o.error)),e(t?r.split(",")[1]:r)},o.onerror=()=>n(o.error),o.readAsDataURL(r)}))}catch(e){throw console.error("Error converting URL to Base64:",e),e}}(e.fnw_url),r=n.worker.on_sync_complete,o=async e=>{const n=await t;e.on_sync_complete=r,await e.update_from_export(n)};n.worker.on_sync_complete=o}return t.debug("Initalizing FuncnodesReactFlow with props:",n),k.createElement("div",{className:"FuncnodesApp"},k.createElement(xV,{...n}))};var SV,EV,_V,CV,OV={exports:{}},NV={},PV={exports:{}},RV={};function AV(){return EV||(EV=1,PV.exports=(SV||(SV=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function w(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,R();else{var t=n(c);null!==t&&A(w,t.startTime-e)}}var x,k=!1,S=-1,E=5,_=-1;function C(){return!(e.unstable_now()-_<E)}function O(){if(k){var t=e.unstable_now();_=t;var o=!0;try{e:{h=!1,m&&(m=!1,y(S),S=-1),p=!0;var i=f;try{t:{for(b(t),d=n(l);null!==d&&!(d.expirationTime>t&&C());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,b(t),o=!0;break t}d===n(l)&&r(l),b(t)}else r(l);d=n(l)}if(null!==d)o=!0;else{var u=n(c);null!==u&&A(w,u.startTime-t),o=!1}}break e}finally{d=null,f=i,p=!1}o=void 0}}finally{o?x():k=!1}}}if("function"==typeof v)x=function(){v(O)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,P=N.port2;N.port1.onmessage=O,x=function(){P.postMessage(null)}}else x=function(){g(O,0)};function R(){k||(k=!0,x())}function A(t,n){S=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,R())},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(m?(y(S),S=-1):m=!0,A(w,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,R())),r},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(RV)),RV)),PV.exports}function MV(){if(_V)return NV;_V=1;var e=AV(),t=x(),n=ao();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}var i=Symbol.for("react.element"),a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),k=Symbol.for("react.memo_cache_sentinel"),S=Symbol.iterator;function E(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=S&&e[S]||e["@@iterator"])?e:null}var _=Symbol.for("react.client.reference");function C(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===_?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case l:return"Fragment";case s:return"Portal";case u:return"Profiler";case c:return"StrictMode";case m:return"Suspense";case g:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case p:return(e.displayName||"Context")+".Provider";case f:return(e._context.displayName||"Context")+".Consumer";case h:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case v:return null!==(t=e.displayName||null)?t:C(e.type)||"Memo";case b:t=e._payload,e=e._init;try{return C(e(t))}catch(e){}}return null}var O,N,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Object.assign;function A(e){if(void 0===O)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);O=t&&t[1]||"",N=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+O+e+N}var M=!1;function T(e,t){if(!e||M)return"";M=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===c.length)for(r=l.length-1,o=c.length-1;1<=r&&0<=o&&l[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==c[o]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{M=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?A(n):""}function D(e){switch(e.tag){case 26:case 27:case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 15:return e=T(e.type,!1);case 11:return e=T(e.type.render,!1);case 1:return e=T(e.type,!0);default:return""}}function I(e){try{var t="";do{t+=D(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function L(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function z(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function F(e){if(L(e)!==e)throw Error(r(188))}function j(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=j(e)))return t;e=e.sibling}return null}var B=Array.isArray,$=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},U=[],H=-1;function W(e){return{current:e}}function q(e){0>H||(e.current=U[H],U[H]=null,H--)}function Y(e,t){H++,U[H]=e.current,e.current=t}var X=W(null),K=W(null),G=W(null),Q=W(null);function Z(e,t){switch(Y(G,t),Y(K,e),Y(X,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Gu(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Qu(e=Gu(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(X),Y(X,t)}function J(){q(X),q(K),q(G)}function ee(e){null!==e.memoizedState&&Y(Q,e);var t=X.current,n=Qu(t,e.type);t!==n&&(Y(K,e),Y(X,n))}function te(e){K.current===e&&(q(X),q(K)),Q.current===e&&(q(Q),Ld._currentValue=V)}var ne=Object.prototype.hasOwnProperty,re=e.unstable_scheduleCallback,oe=e.unstable_cancelCallback,ie=e.unstable_shouldYield,ae=e.unstable_requestPaint,se=e.unstable_now,le=e.unstable_getCurrentPriorityLevel,ce=e.unstable_ImmediatePriority,ue=e.unstable_UserBlockingPriority,de=e.unstable_NormalPriority,fe=e.unstable_LowPriority,pe=e.unstable_IdlePriority,he=e.log,me=e.unstable_setDisableYieldValue,ge=null,ye=null;function ve(e){if("function"==typeof he&&me(e),ye&&"function"==typeof ye.setStrictMode)try{ye.setStrictMode(ge,e)}catch(e){}}var be=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(we(e)/xe|0)|0},we=Math.log,xe=Math.LN2;var ke=128,Se=4194304;function Ee(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _e(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=e.warmLanes;e=0!==e.finishedLanes;var s=134217727&n;return 0!==s?0!==(n=s&~o)?r=Ee(n):0!==(i&=s)?r=Ee(i):e||0!==(a=s&~a)&&(r=Ee(a)):0!==(s=n&~o)?r=Ee(s):0!==i?r=Ee(i):e||0!==(a=n&~a)&&(r=Ee(a)),0===r?0:0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(a=t&-t)||32===o&&4194176&a)?t:r}function Ce(e,t){return!(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Oe(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ne(){var e=ke;return!(4194176&(ke<<=1))&&(ke=128),e}function Pe(){var e=Se;return!(62914560&(Se<<=1))&&(Se=4194304),e}function Re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ae(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Me(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-be(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function Te(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-be(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function De(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Ie(){var e=$.p;return 0!==e?e:void 0===(e=window.event)?32:Qd(e.type)}var Le=Math.random().toString(36).slice(2),ze="__reactFiber$"+Le,Fe="__reactProps$"+Le,je="__reactContainer$"+Le,Be="__reactEvents$"+Le,$e="__reactListeners$"+Le,Ve="__reactHandles$"+Le,Ue="__reactResources$"+Le,He="__reactMarker$"+Le;function We(e){delete e[ze],delete e[Fe],delete e[Be],delete e[$e],delete e[Ve]}function qe(e){var t=e[ze];if(t)return t;for(var n=e.parentNode;n;){if(t=n[je]||n[ze]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ld(e);null!==e;){if(n=e[ze])return n;e=ld(e)}return t}n=(e=n).parentNode}return null}function Ye(e){if(e=e[ze]||e[je]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Xe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function Ke(e){var t=e[Ue];return t||(t=e[Ue]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ge(e){e[He]=!0}var Qe=new Set,Ze={};function Je(e,t){et(e,t),et(e+"Capture",t)}function et(e,t){for(Ze[e]=t,e=0;e<t.length;e++)Qe.add(t[e])}var tt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),nt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),rt={},ot={};function it(e,t,n){if(o=t,ne.call(ot,o)||!ne.call(rt,o)&&(nt.test(o)?ot[o]=!0:(rt[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function at(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function st(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ct(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ut(e){e._valueTracker||(e._valueTracker=function(e){var t=ct(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function dt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ct(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ft(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var pt=/[\n"\\]/g;function ht(e){return e.replace(pt,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function mt(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+lt(t)):e.value!==""+lt(t)&&(e.value=""+lt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?yt(e,a,lt(t)):null!=n?yt(e,a,lt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+lt(s):e.removeAttribute("name")}function gt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return;n=null!=n?""+lt(n):"",t=null!=t?""+lt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a)}function yt(e,t,n){"number"===t&&ft(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function vt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+lt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function bt(e,t,n){null==t||((t=""+lt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+lt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function wt(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(B(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=lt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o)}function xt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var kt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function St(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||kt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Et(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&n[i]!==o&&St(e,i,o)}else for(var a in t)t.hasOwnProperty(a)&&St(e,a,t[a])}function _t(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ct=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ot=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nt(e){return Ot.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Pt=null;function Rt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var At=null,Mt=null;function Tt(e){var t=Ye(e);if(t&&(e=t.stateNode)){var n=e[Fe]||null;e:switch(e=t.stateNode,t.type){case"input":if(mt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+ht(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[Fe]||null;if(!i)throw Error(r(90));mt(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&dt(o)}break e;case"textarea":bt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&vt(e,!!n.multiple,t,!1)}}}var Dt=!1;function It(e,t,n){if(Dt)return e(t,n);Dt=!0;try{return e(t)}finally{if(Dt=!1,(null!==At||null!==Mt)&&(Fc(),At&&(t=At,e=Mt,Mt=At=null,Tt(t),e)))for(t=0;t<e.length;t++)Tt(e[t])}}function Lt(e,t){var n=e.stateNode;if(null===n)return null;var o=n[Fe]||null;if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var zt=!1;if(tt)try{var Ft={};Object.defineProperty(Ft,"passive",{get:function(){zt=!0}}),window.addEventListener("test",Ft,Ft),window.removeEventListener("test",Ft,Ft)}catch(e){zt=!1}var jt=null,Bt=null,$t=null;function Vt(){if($t)return $t;var e,t,n=Bt,r=n.length,o="value"in jt?jt.value:jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return $t=o.slice(e,1<t?1-t:void 0)}function Ut(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Ht(){return!0}function Wt(){return!1}function qt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Ht:Wt,this.isPropagationStopped=Wt,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ht)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ht)},persist:function(){},isPersistent:Ht}),t}var Yt,Xt,Kt,Gt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qt=qt(Gt),Zt=R({},Gt,{view:0,detail:0}),Jt=qt(Zt),en=R({},Zt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kt&&(Kt&&"mousemove"===e.type?(Yt=e.screenX-Kt.screenX,Xt=e.screenY-Kt.screenY):Xt=Yt=0,Kt=e),Yt)},movementY:function(e){return"movementY"in e?e.movementY:Xt}}),tn=qt(en),nn=qt(R({},en,{dataTransfer:0})),rn=qt(R({},Zt,{relatedTarget:0})),on=qt(R({},Gt,{animationName:0,elapsedTime:0,pseudoElement:0})),an=qt(R({},Gt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),sn=qt(R({},Gt,{data:0})),ln={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},un={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=un[e])&&!!t[e]}function fn(){return dn}var pn=qt(R({},Zt,{key:function(e){if(e.key){var t=ln[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ut(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fn,charCode:function(e){return"keypress"===e.type?Ut(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ut(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),hn=qt(R({},en,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),mn=qt(R({},Zt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fn})),gn=qt(R({},Gt,{propertyName:0,elapsedTime:0,pseudoElement:0})),yn=qt(R({},en,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),vn=qt(R({},Gt,{newState:0,oldState:0})),bn=[9,13,27,32],wn=tt&&"CompositionEvent"in window,xn=null;tt&&"documentMode"in document&&(xn=document.documentMode);var kn=tt&&"TextEvent"in window&&!xn,Sn=tt&&(!wn||xn&&8<xn&&11>=xn),En=String.fromCharCode(32),_n=!1;function Cn(e,t){switch(e){case"keyup":return-1!==bn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function On(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Nn=!1;var Pn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Pn[e.type]:"textarea"===t}function An(e,t,n,r){At?Mt?Mt.push(r):Mt=[r]:At=r,0<(t=Lu(t,"onChange")).length&&(n=new Qt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Mn=null,Tn=null;function Dn(e){Nu(e,0)}function In(e){if(dt(Xe(e)))return e}function Ln(e,t){if("change"===e)return t}var zn=!1;if(tt){var Fn;if(tt){var jn="oninput"in document;if(!jn){var Bn=document.createElement("div");Bn.setAttribute("oninput","return;"),jn="function"==typeof Bn.oninput}Fn=jn}else Fn=!1;zn=Fn&&(!document.documentMode||9<document.documentMode)}function $n(){Mn&&(Mn.detachEvent("onpropertychange",Vn),Tn=Mn=null)}function Vn(e){if("value"===e.propertyName&&In(Tn)){var t=[];An(t,Tn,e,Rt(e)),It(Dn,t)}}function Un(e,t,n){"focusin"===e?($n(),Tn=n,(Mn=t).attachEvent("onpropertychange",Vn)):"focusout"===e&&$n()}function Hn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return In(Tn)}function Wn(e,t){if("click"===e)return In(t)}function qn(e,t){if("input"===e||"change"===e)return In(t)}var Yn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Xn(e,t){if(Yn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ne.call(t,o)||!Yn(e[o],t[o]))return!1}return!0}function Kn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gn(e,t){var n,r=Kn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Kn(r)}}function Qn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Qn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Zn(e){for(var t=ft((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ft((e=t.contentWindow).document)}return t}function Jn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function er(e,t){var n=Zn(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Qn(t.ownerDocument.documentElement,t)){if(null!==r&&Jn(t))if(e=r.start,void 0===(n=r.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var o=t.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!n.extend&&i>r&&(o=r,r=i,i=o),o=Gn(t,i);var a=Gn(t,r);o&&a&&(1!==n.rangeCount||n.anchorNode!==o.node||n.anchorOffset!==o.offset||n.focusNode!==a.node||n.focusOffset!==a.offset)&&((e=e.createRange()).setStart(o.node,o.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t<e.length;t++)(n=e[t]).element.scrollLeft=n.left,n.element.scrollTop=n.top}}var tr=tt&&"documentMode"in document&&11>=document.documentMode,nr=null,rr=null,or=null,ir=!1;function ar(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ir||null==nr||nr!==ft(r)||("selectionStart"in(r=nr)&&Jn(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},or&&Xn(or,r)||(or=r,0<(r=Lu(rr,"onSelect")).length&&(t=new Qt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nr)))}function sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var lr={animationend:sr("Animation","AnimationEnd"),animationiteration:sr("Animation","AnimationIteration"),animationstart:sr("Animation","AnimationStart"),transitionrun:sr("Transition","TransitionRun"),transitionstart:sr("Transition","TransitionStart"),transitioncancel:sr("Transition","TransitionCancel"),transitionend:sr("Transition","TransitionEnd")},cr={},ur={};function dr(e){if(cr[e])return cr[e];if(!lr[e])return e;var t,n=lr[e];for(t in n)if(n.hasOwnProperty(t)&&t in ur)return cr[e]=n[t];return e}tt&&(ur=document.createElement("div").style,"AnimationEvent"in window||(delete lr.animationend.animation,delete lr.animationiteration.animation,delete lr.animationstart.animation),"TransitionEvent"in window||delete lr.transitionend.transition);var fr=dr("animationend"),pr=dr("animationiteration"),hr=dr("animationstart"),mr=dr("transitionrun"),gr=dr("transitionstart"),yr=dr("transitioncancel"),vr=dr("transitionend"),br=new Map,wr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function xr(e,t){br.set(e,t),Je(t,[e])}var kr=[],Sr=0,Er=0;function _r(){for(var e=Sr,t=Er=Sr=0;t<e;){var n=kr[t];kr[t++]=null;var r=kr[t];kr[t++]=null;var o=kr[t];kr[t++]=null;var i=kr[t];if(kr[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Pr(n,o,i)}}function Cr(e,t,n,r){kr[Sr++]=e,kr[Sr++]=t,kr[Sr++]=n,kr[Sr++]=r,Er|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Or(e,t,n,r){return Cr(e,t,n,r),Rr(e)}function Nr(e,t){return Cr(e,null,null,t),Rr(e)}function Pr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;o&&null!==t&&3===e.tag&&(i=e.stateNode,o=31-be(n),null===(e=(i=i.hiddenUpdates)[o])?i[o]=[t]:e.push(t),t.lane=536870912|n)}function Rr(e){if(50<Nc)throw Nc=0,Pc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Ar={},Mr=new WeakMap;function Tr(e,t){if("object"==typeof e&&null!==e){var n=Mr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:I(t)},Mr.set(e,t),t)}return{value:e,source:t,stack:I(t)}}var Dr=[],Ir=0,Lr=null,zr=0,Fr=[],jr=0,Br=null,$r=1,Vr="";function Ur(e,t){Dr[Ir++]=zr,Dr[Ir++]=Lr,Lr=e,zr=t}function Hr(e,t,n){Fr[jr++]=$r,Fr[jr++]=Vr,Fr[jr++]=Br,Br=e;var r=$r;e=Vr;var o=32-be(r)-1;r&=~(1<<o),n+=1;var i=32-be(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,$r=1<<32-be(t)+o|n<<o|r,Vr=i+e}else $r=1<<i|n<<o|r,Vr=e}function Wr(e){null!==e.return&&(Ur(e,1),Hr(e,1,0))}function qr(e){for(;e===Lr;)Lr=Dr[--Ir],Dr[Ir]=null,zr=Dr[--Ir],Dr[Ir]=null;for(;e===Br;)Br=Fr[--jr],Fr[jr]=null,Vr=Fr[--jr],Fr[jr]=null,$r=Fr[--jr],Fr[jr]=null}var Yr=null,Xr=null,Kr=!1,Gr=null,Qr=!1,Zr=Error(r(519));function Jr(e){throw oo(Tr(Error(r(418,"")),e)),Zr}function eo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ze]=e,t[Fe]=r,n){case"dialog":Pu("cancel",t),Pu("close",t);break;case"iframe":case"object":case"embed":Pu("load",t);break;case"video":case"audio":for(n=0;n<Cu.length;n++)Pu(Cu[n],t);break;case"source":Pu("error",t);break;case"img":case"image":case"link":Pu("error",t),Pu("load",t);break;case"details":Pu("toggle",t);break;case"input":Pu("invalid",t),gt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),ut(t);break;case"select":Pu("invalid",t);break;case"textarea":Pu("invalid",t),wt(t,r.value,r.defaultValue,r.children),ut(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Vu(t.textContent,n)?(null!=r.popover&&(Pu("beforetoggle",t),Pu("toggle",t)),null!=r.onScroll&&Pu("scroll",t),null!=r.onScrollEnd&&Pu("scrollend",t),null!=r.onClick&&(t.onclick=Uu),t=!0):t=!1,t||Jr(e)}function to(e){for(Yr=e.return;Yr;)switch(Yr.tag){case 3:case 27:return void(Qr=!0);case 5:case 13:return void(Qr=!1);default:Yr=Yr.return}}function no(e){if(e!==Yr)return!1;if(!Kr)return to(e),Kr=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Zu(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&Xr&&Jr(e),to(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){Xr=sd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}Xr=null}}else Xr=Yr?sd(e.stateNode.nextSibling):null;return!0}function ro(){Xr=Yr=null,Kr=!1}function oo(e){null===Gr?Gr=[e]:Gr.push(e)}var io=Error(r(460)),so=Error(r(474)),lo={then:function(){}};function co(e){return"fulfilled"===(e=e.status)||"rejected"===e}function uo(){}function fo(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(uo,uo),t=n),t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===io)throw Error(r(483));throw e;default:if("string"==typeof t.status)t.then(uo,uo);else{if(null!==(e=tc)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))}switch(t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===io)throw Error(r(483));throw e}throw po=t,io}}var po=null;function ho(){if(null===po)throw Error(r(459));var e=po;return po=null,e}var mo=null,go=0;function yo(e){var t=go;return go+=1,null===mo&&(mo=[]),fo(mo,e,t)}function vo(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function bo(e,t){if(t.$$typeof===i)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wo(e){return(0,e._init)(e._payload)}function xo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=zl(e,t)).index=0,e.sibling=null,e}function c(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=33554434,n):r:(t.flags|=33554434,n):(t.flags|=1048576,n)}function u(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function d(e,t,n,r){return null===t||6!==t.tag?((t=Vl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n,r){var o=n.type;return o===l?m(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===b&&wo(o)===t.type)?(vo(t=i(t,n.props),n),t.return=e,t):(vo(t=jl(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function h(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ul(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function m(e,t,n,r,o){return null===t||7!==t.tag?((t=Bl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function g(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Vl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case a:return vo(n=jl(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case s:return(t=Ul(t,e.mode,n)).return=e,t;case b:return g(e,t=(0,t._init)(t._payload),n)}if(B(t)||E(t))return(t=Bl(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return g(e,yo(t),n);if(t.$$typeof===p)return g(e,Cs(e,t),n);bo(e,t)}return null}function y(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:d(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case a:return n.key===o?f(e,t,n,r):null;case s:return n.key===o?h(e,t,n,r):null;case b:return y(e,t,n=(o=n._init)(n._payload),r)}if(B(n)||E(n))return null!==o?null:m(e,t,n,r,null);if("function"==typeof n.then)return y(e,t,yo(n),r);if(n.$$typeof===p)return y(e,t,Cs(e,n),r);bo(e,n)}return null}function v(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return d(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case a:return f(t,e=e.get(null===r.key?n:r.key)||null,r,o);case s:return h(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return v(e,t,n,r=(0,r._init)(r._payload),o)}if(B(r)||E(r))return m(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return v(e,t,n,yo(r),o);if(r.$$typeof===p)return v(e,t,n,Cs(t,r),o);bo(t,r)}return null}function w(d,f,h,m){if("object"==typeof h&&null!==h&&h.type===l&&null===h.key&&(h=h.props.children),"object"==typeof h&&null!==h){switch(h.$$typeof){case a:e:{for(var x=h.key;null!==f;){if(f.key===x){if((x=h.type)===l){if(7===f.tag){n(d,f.sibling),(m=i(f,h.props.children)).return=d,d=m;break e}}else if(f.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===b&&wo(x)===f.type){n(d,f.sibling),vo(m=i(f,h.props),h),m.return=d,d=m;break e}n(d,f);break}t(d,f),f=f.sibling}h.type===l?((m=Bl(h.props.children,d.mode,m,h.key)).return=d,d=m):(vo(m=jl(h.type,h.key,h.props,null,d.mode,m),h),m.return=d,d=m)}return u(d);case s:e:{for(x=h.key;null!==f;){if(f.key===x){if(4===f.tag&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(d,f.sibling),(m=i(f,h.children||[])).return=d,d=m;break e}n(d,f);break}t(d,f),f=f.sibling}(m=Ul(h,d.mode,m)).return=d,d=m}return u(d);case b:return w(d,f,h=(x=h._init)(h._payload),m)}if(B(h))return function(r,i,a,s){for(var l=null,u=null,d=i,f=i=0,p=null;null!==d&&f<a.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var h=y(r,d,a[f],s);if(null===h){null===d&&(d=p);break}e&&d&&null===h.alternate&&t(r,d),i=c(h,i,f),null===u?l=h:u.sibling=h,u=h,d=p}if(f===a.length)return n(r,d),Kr&&Ur(r,f),l;if(null===d){for(;f<a.length;f++)null!==(d=g(r,a[f],s))&&(i=c(d,i,f),null===u?l=d:u.sibling=d,u=d);return Kr&&Ur(r,f),l}for(d=o(d);f<a.length;f++)null!==(p=v(d,r,f,a[f],s))&&(e&&null!==p.alternate&&d.delete(null===p.key?f:p.key),i=c(p,i,f),null===u?l=p:u.sibling=p,u=p);return e&&d.forEach((function(e){return t(r,e)})),Kr&&Ur(r,f),l}(d,f,h,m);if(E(h)){if("function"!=typeof(x=E(h)))throw Error(r(150));return function(i,a,s,l){if(null==s)throw Error(r(151));for(var u=null,d=null,f=a,p=a=0,h=null,m=s.next();null!==f&&!m.done;p++,m=s.next()){f.index>p?(h=f,f=null):h=f.sibling;var b=y(i,f,m.value,l);if(null===b){null===f&&(f=h);break}e&&f&&null===b.alternate&&t(i,f),a=c(b,a,p),null===d?u=b:d.sibling=b,d=b,f=h}if(m.done)return n(i,f),Kr&&Ur(i,p),u;if(null===f){for(;!m.done;p++,m=s.next())null!==(m=g(i,m.value,l))&&(a=c(m,a,p),null===d?u=m:d.sibling=m,d=m);return Kr&&Ur(i,p),u}for(f=o(f);!m.done;p++,m=s.next())null!==(m=v(f,i,p,m.value,l))&&(e&&null!==m.alternate&&f.delete(null===m.key?p:m.key),a=c(m,a,p),null===d?u=m:d.sibling=m,d=m);return e&&f.forEach((function(e){return t(i,e)})),Kr&&Ur(i,p),u}(d,f,h=x.call(h),m)}if("function"==typeof h.then)return w(d,f,yo(h),m);if(h.$$typeof===p)return w(d,f,Cs(d,h),m);bo(d,h)}return"string"==typeof h&&""!==h||"number"==typeof h||"bigint"==typeof h?(h=""+h,null!==f&&6===f.tag?(n(d,f.sibling),(m=i(f,h)).return=d,d=m):(n(d,f),(m=Vl(h,d.mode,m)).return=d,d=m),u(d)):n(d,f)}return function(e,t,n,r){try{go=0;var o=w(e,t,n,r);return mo=null,o}catch(t){if(t===io)throw t;var i=Il(29,t,null,e.mode);return i.lanes=r,i.return=e,i}}}var ko=xo(!0),So=xo(!1),Eo=W(null),_o=W(0);function Co(e,t){Y(_o,e=cc),Y(Eo,t),cc=e|t.baseLanes}function Oo(){Y(_o,cc),Y(Eo,Eo.current)}function No(){cc=_o.current,q(Eo),q(_o)}var Po=W(null),Ro=null;function Ao(e){var t=e.alternate;Y(Io,1&Io.current),Y(Po,e),null===Ro&&(null===t||null!==Eo.current||null!==t.memoizedState)&&(Ro=e)}function Mo(e){if(22===e.tag){if(Y(Io,Io.current),Y(Po,e),null===Ro){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Ro=e)}}else To()}function To(){Y(Io,Io.current),Y(Po,Po.current)}function Do(e){q(Po),Ro===e&&(Ro=null),q(Io)}var Io=W(0);function Lo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zo="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},Fo=e.unstable_scheduleCallback,jo=e.unstable_NormalPriority,Bo={$$typeof:p,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $o(){return{controller:new zo,data:new Map,refCount:0}}function Vo(e){e.refCount--,0===e.refCount&&Fo(jo,(function(){e.controller.abort()}))}var Uo=null,Ho=0,Wo=0,qo=null;function Yo(){if(0==--Ho&&null!==Uo){null!==qo&&(qo.status="fulfilled");var e=Uo;Uo=null,Wo=0,qo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Xo=P.S;P.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Uo){var n=Uo=[];Ho=0,Wo=xu(),qo={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ho++,t.then(Yo,Yo)}(0,t),null!==Xo&&Xo(e,t)};var Ko=W(null);function Go(){var e=Ko.current;return null!==e?e:tc.pooledCache}function Qo(e,t){Y(Ko,null===t?Ko.current:t.pool)}function Zo(){var e=Go();return null===e?null:{parent:Bo._currentValue,pool:e}}var Jo=0,ei=null,ti=null,ni=null,ri=!1,oi=!1,ii=!1,ai=0,si=0,li=null,ci=0;function ui(){throw Error(r(321))}function di(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Yn(e[n],t[n]))return!1;return!0}function fi(e,t,n,r,o,i){return Jo=i,ei=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=null===e||null===e.memoizedState?Ca:Oa,ii=!1,i=n(r,o),ii=!1,oi&&(i=hi(t,n,r,o)),pi(e),i}function pi(e){P.H=_a;var t=null!==ti&&null!==ti.next;if(Jo=0,ni=ti=ei=null,ri=!1,si=0,li=null,t)throw Error(r(300));null===e||Ha||null!==(e=e.dependencies)&&Ss(e)&&(Ha=!0)}function hi(e,t,n,o){ei=e;var i=0;do{if(oi&&(li=null),si=0,oi=!1,25<=i)throw Error(r(301));if(i+=1,ni=ti=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}P.H=Na,a=t(n,o)}while(oi);return a}function mi(){var e=P.H,t=e.useState()[0];return t="function"==typeof t.then?xi(t):t,e=e.useState()[0],(null!==ti?ti.memoizedState:null)!==e&&(ei.flags|=1024),t}function gi(){var e=0!==ai;return ai=0,e}function yi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function vi(e){if(ri){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ri=!1}Jo=0,ni=ti=ei=null,oi=!1,si=ai=0,li=null}function bi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ni?ei.memoizedState=ni=e:ni=ni.next=e,ni}function wi(){if(null===ti){var e=ei.alternate;e=null!==e?e.memoizedState:null}else e=ti.next;var t=null===ni?ei.memoizedState:ni.next;if(null!==t)ni=t,ti=e;else{if(null===e){if(null===ei.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(ti=e).memoizedState,baseState:ti.baseState,baseQueue:ti.baseQueue,queue:ti.queue,next:null},null===ni?ei.memoizedState=ni=e:ni=ni.next=e}return ni}function xi(e){var t=si;return si+=1,null===li&&(li=[]),e=fo(li,e,t),t=ei,null===(null===ni?t.memoizedState:ni.next)&&(t=t.alternate,P.H=null===t||null===t.memoizedState?Ca:Oa),e}function ki(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return xi(e);if(e.$$typeof===p)return _s(e)}throw Error(r(438,String(e)))}function Si(e){var t=null,n=ei.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=ei.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map((function(e){return e.slice()})),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},ei.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=k;return t.index++,n}function Ei(e,t){return"function"==typeof t?t(e):t}function _i(e){return Ci(wi(),ti,e)}function Ci(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,a=o.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,o.pending=null}if(a=e.baseState,null===i)e.memoizedState=a;else{var l=s=null,c=null,u=t=i.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(rc&f)===f:(Jo&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Wo&&(d=!0);else{if((Jo&p)===p){u=u.next,p===Wo&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=a):c=c.next=f,ei.lanes|=p,dc|=p}f=u.action,ii&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=a):c=c.next=p,ei.lanes|=f,dc|=f;u=u.next}while(null!==u&&u!==t);if(null===c?s=a:c.next=l,!Yn(a,e.memoizedState)&&(Ha=!0,d&&null!==(n=qo)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=c,o.lastRenderedState=a}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Oi(e){var t=wi(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);Yn(a,t.memoizedState)||(Ha=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function Ni(e,t,n){var o=ei,i=wi(),a=Kr;if(a){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!Yn((ti||i).memoizedState,n);if(s&&(i.memoizedState=n,Ha=!0),i=i.queue,Ji(Ai.bind(null,o,i,e),[e]),i.getSnapshot!==t||s||null!==ni&&1&ni.memoizedState.tag){if(o.flags|=2048,Xi(9,Ri.bind(null,o,i,n,t),{destroy:void 0},null),null===tc)throw Error(r(349));a||60&Jo||Pi(o,t,n)}return n}function Pi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ei.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},ei.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ri(e,t,n,r){t.value=n,t.getSnapshot=r,Mi(t)&&Ti(e)}function Ai(e,t,n){return n((function(){Mi(t)&&Ti(e)}))}function Mi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yn(e,n)}catch(e){return!0}}function Ti(e){var t=Nr(e,2);null!==t&&Mc(t,e,2)}function Di(e){var t=bi();if("function"==typeof e){var n=e;if(e=n(),ii){ve(!0);try{n()}finally{ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:e},t}function Ii(e,t,n,r){return e.baseState=n,Ci(e,ti,"function"==typeof r?r:Ei)}function Li(e,t,n,o,i){if(ka(e))throw Error(r(485));if(null!==(e=t.action)){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==P.T?n(!0):a.isTransition=!1,o(a),null===(n=t.pending)?(a.next=t.pending=a,zi(t,a)):(a.next=n.next,t.pending=n.next=a)}}function zi(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=P.T,a={};P.T=a;try{var s=n(o,r),l=P.S;null!==l&&l(a,s),Fi(e,t,s)}catch(n){Bi(e,t,n)}finally{P.T=i}}else try{Fi(e,t,i=n(o,r))}catch(n){Bi(e,t,n)}}function Fi(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then((function(n){ji(e,t,n)}),(function(n){return Bi(e,t,n)})):ji(e,t,n)}function ji(e,t,n){t.status="fulfilled",t.value=n,$i(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,zi(e,n)))}function Bi(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,$i(t),t=t.next}while(t!==r)}e.action=null}function $i(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vi(e,t){return t}function Ui(e,t){if(Kr){var n=tc.formState;if(null!==n){e:{var r=ei;if(Kr){if(Xr){t:{for(var o=Xr,i=Qr;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=sd(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){Xr=sd(o.nextSibling),r="F!"===o.data;break e}}Jr(r)}r=!1}r&&(t=n[0])}}return(n=bi()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vi,lastRenderedState:t},n.queue=r,n=ba.bind(null,ei,r),r.dispatch=n,r=Di(!1),i=xa.bind(null,ei,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=bi()).queue=o,n=Li.bind(null,ei,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Hi(e){return Wi(wi(),ti,e)}function Wi(e,t,n){t=Ci(e,t,Vi)[0],e=_i(Ei)[0],t="object"==typeof t&&null!==t&&"function"==typeof t.then?xi(t):t;var r=wi(),o=r.queue,i=o.dispatch;return n!==r.memoizedState&&(ei.flags|=2048,Xi(9,qi.bind(null,o,n),{destroy:void 0},null)),[t,i,e]}function qi(e,t){e.action=t}function Yi(e){var t=wi(),n=ti;if(null!==n)return Wi(t,n,e);wi(),t=t.memoizedState;var r=(n=wi()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Xi(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},null===(t=ei.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},ei.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ki(){return wi().memoizedState}function Gi(e,t,n,r){var o=bi();ei.flags|=e,o.memoizedState=Xi(1|t,n,{destroy:void 0},void 0===r?null:r)}function Qi(e,t,n,r){var o=wi();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==ti&&null!==r&&di(r,ti.memoizedState.deps)?o.memoizedState=Xi(t,n,i,r):(ei.flags|=e,o.memoizedState=Xi(1|t,n,i,r))}function Zi(e,t){Gi(8390656,8,e,t)}function Ji(e,t){Qi(2048,8,e,t)}function ea(e,t){return Qi(4,2,e,t)}function ta(e,t){return Qi(4,4,e,t)}function na(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function ra(e,t,n){n=null!=n?n.concat([e]):null,Qi(4,4,na.bind(null,t,e),n)}function oa(){}function ia(e,t){var n=wi();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&di(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function aa(e,t){var n=wi();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&di(t,r[1]))return r[0];if(r=e(),ii){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r}function sa(e,t,n){return void 0===n||1073741824&Jo?e.memoizedState=t:(e.memoizedState=n,e=Ac(),ei.lanes|=e,dc|=e,n)}function la(e,t,n,r){return Yn(n,t)?n:null!==Eo.current?(e=sa(e,n,r),Yn(e,t)||(Ha=!0),e):42&Jo?(e=Ac(),ei.lanes|=e,dc|=e,t):(Ha=!0,e.memoizedState=n)}function ca(e,t,n,r,o){var i=$.p;$.p=0!==i&&8>i?i:8;var a,s,l,c=P.T,u={};P.T=u,xa(e,!1,t,n);try{var d=o(),f=P.S;if(null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then){var p=(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then((function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)}),(function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)})),l);wa(e,t,p,Rc())}else wa(e,t,r,Rc())}catch(n){wa(e,t,{then:function(){},status:"rejected",reason:n},Rc())}finally{$.p=i,P.T=c}}function ua(){}function da(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=fa(e).queue;ca(e,i,t,V,null===n?ua:function(){return pa(e),n(o)})}function fa(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:V},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function pa(e){wa(e,fa(e).next.queue,{},Rc())}function ha(){return _s(Ld)}function ma(){return wi().memoizedState}function ga(){return wi().memoizedState}function ya(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Rc(),r=Ms(t,e=As(n),n);return null!==r&&(Mc(r,t,n),Ts(r,t,n)),t={cache:$o()},void(e.payload=t)}t=t.return}}function va(e,t,n){var r=Rc();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ka(e)?Sa(t,n):null!==(n=Or(e,t,n,r))&&(Mc(n,e,r),Ea(n,t,r))}function ba(e,t,n){wa(e,t,n,Rc())}function wa(e,t,n,r){var o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ka(e))Sa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Yn(s,a))return Cr(e,t,o,0),null===tc&&_r(),!1}catch(e){}if(null!==(n=Or(e,t,o,r)))return Mc(n,e,r),Ea(n,t,r),!0}return!1}function xa(e,t,n,o){if(o={lane:2,revertLane:xu(),action:o,hasEagerState:!1,eagerState:null,next:null},ka(e)){if(t)throw Error(r(479))}else null!==(t=Or(e,n,o,2))&&Mc(t,e,2)}function ka(e){var t=e.alternate;return e===ei||null!==t&&t===ei}function Sa(e,t){oi=ri=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ea(e,t,n){if(4194176&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Te(e,n)}}var _a={readContext:_s,use:ki,useCallback:ui,useContext:ui,useEffect:ui,useImperativeHandle:ui,useLayoutEffect:ui,useInsertionEffect:ui,useMemo:ui,useReducer:ui,useRef:ui,useState:ui,useDebugValue:ui,useDeferredValue:ui,useTransition:ui,useSyncExternalStore:ui,useId:ui};_a.useCacheRefresh=ui,_a.useMemoCache=ui,_a.useHostTransitionStatus=ui,_a.useFormState=ui,_a.useActionState=ui,_a.useOptimistic=ui;var Ca={readContext:_s,use:ki,useCallback:function(e,t){return bi().memoizedState=[e,void 0===t?null:t],e},useContext:_s,useEffect:Zi,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Gi(4194308,4,na.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gi(4194308,4,e,t)},useInsertionEffect:function(e,t){Gi(4,2,e,t)},useMemo:function(e,t){var n=bi();t=void 0===t?null:t;var r=e();if(ii){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=bi();if(void 0!==n){var o=n(t);if(ii){ve(!0);try{n(t)}finally{ve(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=va.bind(null,ei,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bi().memoizedState=e},useState:function(e){var t=(e=Di(e)).queue,n=ba.bind(null,ei,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:oa,useDeferredValue:function(e,t){return sa(bi(),e,t)},useTransition:function(){var e=Di(!1);return e=ca.bind(null,ei,e.queue,!0,!1),bi().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=ei,i=bi();if(Kr){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===tc)throw Error(r(349));60&rc||Pi(o,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Zi(Ai.bind(null,o,a,e),[e]),o.flags|=2048,Xi(9,Ri.bind(null,o,a,n,t),{destroy:void 0},null),n},useId:function(){var e=bi(),t=tc.identifierPrefix;if(Kr){var n=Vr;t=":"+t+"R"+(n=($r&~(1<<32-be($r)-1)).toString(32)+n),0<(n=ai++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ci++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return bi().memoizedState=ya.bind(null,ei)}};Ca.useMemoCache=Si,Ca.useHostTransitionStatus=ha,Ca.useFormState=Ui,Ca.useActionState=Ui,Ca.useOptimistic=function(e){var t=bi();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=xa.bind(null,ei,!0,n),n.dispatch=t,[e,t]};var Oa={readContext:_s,use:ki,useCallback:ia,useContext:_s,useEffect:Ji,useImperativeHandle:ra,useInsertionEffect:ea,useLayoutEffect:ta,useMemo:aa,useReducer:_i,useRef:Ki,useState:function(){return _i(Ei)},useDebugValue:oa,useDeferredValue:function(e,t){return la(wi(),ti.memoizedState,e,t)},useTransition:function(){var e=_i(Ei)[0],t=wi().memoizedState;return["boolean"==typeof e?e:xi(e),t]},useSyncExternalStore:Ni,useId:ma};Oa.useCacheRefresh=ga,Oa.useMemoCache=Si,Oa.useHostTransitionStatus=ha,Oa.useFormState=Hi,Oa.useActionState=Hi,Oa.useOptimistic=function(e,t){return Ii(wi(),0,e,t)};var Na={readContext:_s,use:ki,useCallback:ia,useContext:_s,useEffect:Ji,useImperativeHandle:ra,useInsertionEffect:ea,useLayoutEffect:ta,useMemo:aa,useReducer:Oi,useRef:Ki,useState:function(){return Oi(Ei)},useDebugValue:oa,useDeferredValue:function(e,t){var n=wi();return null===ti?sa(n,e,t):la(n,ti.memoizedState,e,t)},useTransition:function(){var e=Oi(Ei)[0],t=wi().memoizedState;return["boolean"==typeof e?e:xi(e),t]},useSyncExternalStore:Ni,useId:ma};function Pa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}Na.useCacheRefresh=ga,Na.useMemoCache=Si,Na.useHostTransitionStatus=ha,Na.useFormState=Yi,Na.useActionState=Yi,Na.useOptimistic=function(e,t){var n=wi();return null!==ti?Ii(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])};var Ra={isMounted:function(e){return!!(e=e._reactInternals)&&L(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Rc(),o=As(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Ms(e,o,r))&&(Mc(t,e,r),Ts(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Rc(),o=As(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Ms(e,o,r))&&(Mc(t,e,r),Ts(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rc(),r=As(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Ms(e,r,n))&&(Mc(t,e,n),Ts(t,e,n))}};function Aa(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Xn(n,r)||!Xn(o,i))}function Ma(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ra.enqueueReplaceState(t,t.state,null)}function Ta(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=R({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}var Da="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("function"==typeof y.emit)return;console.error(e)};function Ia(e){Da(e)}function La(e){console.error(e)}function za(e){Da(e)}function Fa(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout((function(){throw e}))}}function ja(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout((function(){throw e}))}}function Ba(e,t,n){return(n=As(n)).tag=3,n.payload={element:null},n.callback=function(){Fa(e,t)},n}function $a(e){return(e=As(e)).tag=3,e}function Va(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){ja(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){ja(t,n,r),"function"!=typeof o&&(null===kc?kc=new Set([this]):kc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ua=Error(r(461)),Ha=!1;function Wa(e,t,n,r){t.child=null===e?So(t,null,n,r):ko(t,e.child,n,r)}function qa(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Es(t),r=fi(e,t,n,a,i,o),s=gi(),null===e||Ha?(Kr&&s&&Wr(t),t.flags|=1,Wa(e,t,r,o),t.child):(yi(e,t,o),fs(e,t,o))}function Ya(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ll(i)||void 0!==i.defaultProps||null!==n.compare?((e=jl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Xa(e,t,i,r,o))}if(i=e.child,!ps(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Xn)(a,r)&&e.ref===t.ref)return fs(e,t,o)}return t.flags|=1,(e=zl(i,r)).ref=t.ref,e.return=t,t.child=e}function Xa(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Xn(i,r)&&e.ref===t.ref){if(Ha=!1,t.pendingProps=r=i,!ps(e,o))return t.lanes=e.lanes,fs(e,t,o);131072&e.flags&&(Ha=!0)}}return Za(e,t,n,r,o)}function Ka(e,t,n){var r=t.pendingProps,o=r.children,i=!!(2&t.stateNode._pendingVisibility),a=null!==e?e.memoizedState:null;if(Qa(e,t),"hidden"===r.mode||i){if(128&t.flags){if(r=null!==a?a.baseLanes|n:n,null!==e){for(o=t.child=e.child,i=0;null!==o;)i=i|o.lanes|o.childLanes,o=o.sibling;t.childLanes=i&~r}else t.childLanes=0,t.child=null;return Ga(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Ga(e,t,null!==a?a.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Qo(0,null!==a?a.cachePool:null),null!==a?Co(t,a):Oo(),Mo(t)}else null!==a?(Qo(0,a.cachePool),Co(t,a),To(),t.memoizedState=null):(null!==e&&Qo(0,null),Oo(),To());return Wa(e,t,o,n),t.child}function Ga(e,t,n,r){var o=Go();return o=null===o?null:{parent:Bo._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Qo(0,null),Oo(),Mo(t),null!==e&&ks(e,t,r,!0),null}function Qa(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=2097664);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=2097664)}}function Za(e,t,n,r,o){return Es(t),n=fi(e,t,n,r,void 0,o),r=gi(),null===e||Ha?(Kr&&r&&Wr(t),t.flags|=1,Wa(e,t,n,o),t.child):(yi(e,t,o),fs(e,t,o))}function Ja(e,t,n,r,o,i){return Es(t),t.updateQueue=null,n=hi(t,r,n,o),pi(e),r=gi(),null===e||Ha?(Kr&&r&&Wr(t),t.flags|=1,Wa(e,t,n,i),t.child):(yi(e,t,i),fs(e,t,i))}function es(e,t,n,r,o){if(Es(t),null===t.stateNode){var i=Ar,a=n.contextType;"object"==typeof a&&null!==a&&(i=_s(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Ra,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},Ps(t),a=n.contextType,i.context="object"==typeof a&&null!==a?_s(a):Ar,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(Pa(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&Ra.enqueueReplaceState(i,i.state,null),zs(t,r,i,o),Ls(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=Ta(n,s);i.props=l;var c=i.context,u=n.contextType;a=Ar,"object"==typeof u&&null!==u&&(a=_s(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||c!==a)&&Ma(t,i,r,a),Ns=!1;var f=t.memoizedState;i.state=f,zs(t,r,i,o),Ls(),c=t.memoizedState,s||f!==c||Ns?("function"==typeof d&&(Pa(t,n,d,r),c=t.memoizedState),(l=Ns||Aa(t,n,l,r,f,c,a))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Rs(e,t),u=Ta(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,f=i.context,c=n.contextType,l=Ar,"object"==typeof c&&null!==c&&(l=_s(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||f!==l)&&Ma(t,i,r,l),Ns=!1,f=t.memoizedState,i.state=f,zs(t,r,i,o),Ls();var p=t.memoizedState;a!==d||f!==p||Ns||null!==e&&null!==e.dependencies&&Ss(e.dependencies)?("function"==typeof s&&(Pa(t,n,s,r),p=t.memoizedState),(u=Ns||Aa(t,n,u,r,f,p,l)||null!==e&&null!==e.dependencies&&Ss(e.dependencies))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Qa(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=ko(t,e.child,null,o),t.child=ko(t,null,n,o)):Wa(e,t,n,o),t.memoizedState=i.state,e=t.child):e=fs(e,t,o),e}function ts(e,t,n,r){return ro(),t.flags|=256,Wa(e,t,n,r),t.child}var ns={dehydrated:null,treeContext:null,retryLane:0};function rs(e){return{baseLanes:e,cachePool:Zo()}}function os(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=hc),e}function is(e,t,n){var o,i=t.pendingProps,a=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&Io.current)),o&&(a=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(Kr){if(a?Ao(t):To(),Kr){var l,c=Xr;if(l=c){e:{for(l=c,c=Qr;8!==l.nodeType;){if(!c){c=null;break e}if(null===(l=sd(l.nextSibling))){c=null;break e}}c=l}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Br?{id:$r,overflow:Vr}:null,retryLane:536870912},(l=Il(18,null,null,0)).stateNode=c,l.return=t,t.child=l,Yr=t,Xr=null,l=!0):l=!1}l||Jr(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return"$!"===c.data?t.lanes=16:t.lanes=536870912,null;Do(t)}return c=i.children,i=i.fallback,a?(To(),c=ss({mode:"hidden",children:c},a=t.mode),i=Bl(i,a,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,(a=t.child).memoizedState=rs(n),a.childLanes=os(e,o,n),t.memoizedState=ns,i):(Ao(t),as(t,c))}if(null!==(l=e.memoizedState)&&null!==(c=l.dehydrated)){if(s)256&t.flags?(Ao(t),t.flags&=-257,t=ls(e,t,n)):null!==t.memoizedState?(To(),t.child=e.child,t.flags|=128,t=null):(To(),a=i.fallback,c=t.mode,i=ss({mode:"visible",children:i.children},c),(a=Bl(a,c,n,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,ko(t,e.child,null,n),(i=t.child).memoizedState=rs(n),i.childLanes=os(e,o,n),t.memoizedState=ns,t=a);else if(Ao(t),"$!"===c.data){if(o=c.nextSibling&&c.nextSibling.dataset)var u=o.dgst;o=u,(i=Error(r(419))).stack="",i.digest=o,oo({value:i,source:null,stack:null}),t=ls(e,t,n)}else if(Ha||ks(e,t,n,!1),o=!!(n&e.childLanes),Ha||o){if(null!==(o=tc)){if(42&(i=n&-n))i=1;else switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=64;break;case 268435456:i=134217728;break;default:i=0}if(0!==(i=i&(o.suspendedLanes|n)?0:i)&&i!==l.retryLane)throw l.retryLane=i,Nr(e,i),Mc(o,e,i),Ua}"$?"===c.data||Hc(),t=ls(e,t,n)}else"$?"===c.data?(t.flags|=128,t.child=e.child,t=su.bind(null,e),c._reactRetry=t,t=null):(e=l.treeContext,Xr=sd(c.nextSibling),Yr=t,Kr=!0,Gr=null,Qr=!1,null!==e&&(Fr[jr++]=$r,Fr[jr++]=Vr,Fr[jr++]=Br,$r=e.id,Vr=e.overflow,Br=t),(t=as(t,i.children)).flags|=4096);return t}return a?(To(),a=i.fallback,c=t.mode,u=(l=e.child).sibling,(i=zl(l,{mode:"hidden",children:i.children})).subtreeFlags=31457280&l.subtreeFlags,null!==u?a=zl(u,a):(a=Bl(a,c,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,null===(c=e.child.memoizedState)?c=rs(n):(null!==(l=c.cachePool)?(u=Bo._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=Zo(),c={baseLanes:c.baseLanes|n,cachePool:l}),a.memoizedState=c,a.childLanes=os(e,o,n),t.memoizedState=ns,i):(Ao(t),e=(n=e.child).sibling,(n=zl(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function as(e,t){return(t=ss({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ss(e,t){return $l(e,t,0,null)}function ls(e,t,n){return ko(t,e.child,null,n),(e=as(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function cs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ws(e.return,t,n)}function us(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function ds(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Wa(e,t,r.children,n),2&(r=Io.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&cs(e,n,t);else if(19===e.tag)cs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(Y(Io,r),o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Lo(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),us(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Lo(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}us(t,!0,n,null,i);break;case"together":us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),dc|=t.lanes,!(n&t.childLanes)){if(null===e)return null;if(ks(e,t,n,!1),!(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=zl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ps(e,t){return!!(e.lanes&t)||!(null===(e=e.dependencies)||!Ss(e))}function hs(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ha=!0;else{if(!(ps(e,n)||128&t.flags))return Ha=!1,function(e,t,n){switch(t.tag){case 3:Z(t,t.stateNode.containerInfo),vs(t,Bo,e.memoizedState.cache),ro();break;case 27:case 5:ee(t);break;case 4:Z(t,t.stateNode.containerInfo);break;case 10:vs(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Ao(t),t.flags|=128,null):n&t.child.childLanes?is(e,t,n):(Ao(t),null!==(e=fs(e,t,n))?e.sibling:null);Ao(t);break;case 19:var o=!!(128&e.flags);if((r=!!(n&t.childLanes))||(ks(e,t,n,!1),r=!!(n&t.childLanes)),o){if(r)return ds(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(Io,Io.current),r)break;return null;case 22:case 23:return t.lanes=0,Ka(e,t,n);case 24:vs(t,Bo,e.memoizedState.cache)}return fs(e,t,n)}(e,t,n);Ha=!!(131072&e.flags)}else Ha=!1,Kr&&1048576&t.flags&&Hr(t,zr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,i=o._init;if(o=i(o._payload),t.type=o,"function"!=typeof o){if(null!=o){if((i=o.$$typeof)===h){t.tag=11,t=qa(null,t,o,e,n);break e}if(i===v){t.tag=14,t=Ya(null,t,o,e,n);break e}}throw t=C(o)||o,Error(r(306,t,""))}Ll(o)?(e=Ta(o,e),t.tag=1,t=es(null,t,o,e,n)):(t.tag=0,t=Za(null,t,o,e,n))}return t;case 0:return Za(e,t,t.type,t.pendingProps,n);case 1:return es(e,t,o=t.type,i=Ta(o,t.pendingProps),n);case 3:e:{if(Z(t,t.stateNode.containerInfo),null===e)throw Error(r(387));var a=t.pendingProps;o=(i=t.memoizedState).element,Rs(e,t),zs(t,a,null,n);var s=t.memoizedState;if(a=s.cache,vs(t,Bo,a),a!==i.cache&&xs(t,[Bo],n,!0),Ls(),a=s.element,i.isDehydrated){if(i={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=ts(e,t,a,n);break e}if(a!==o){oo(o=Tr(Error(r(424)),t)),t=ts(e,t,a,n);break e}for(Xr=sd(t.stateNode.containerInfo.firstChild),Yr=t,Kr=!0,Gr=null,Qr=!0,n=So(t,null,a,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ro(),a===o){t=fs(e,t,n);break e}Wa(e,t,a,n)}t=t.child}return t;case 26:return Qa(e,t),null===e?(n=gd(t.type,null,t.pendingProps,null))?t.memoizedState=n:Kr||(n=t.type,e=t.pendingProps,(o=Ku(G.current).createElement(n))[ze]=t,o[Fe]=e,qu(o,n,e),Ge(o),t.stateNode=o):t.memoizedState=gd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ee(t),null===e&&Kr&&(o=t.stateNode=cd(t.type,t.pendingProps,G.current),Yr=t,Qr=!0,Xr=sd(o.firstChild)),o=t.pendingProps.children,null!==e||Kr?Wa(e,t,o,n):t.child=ko(t,null,o,n),Qa(e,t),t.child;case 5:return null===e&&Kr&&((i=o=Xr)&&(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[He])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=sd(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,Qr),null!==o?(t.stateNode=o,Yr=t,Xr=sd(o.firstChild),Qr=!1,i=!0):i=!1),i||Jr(t)),ee(t),i=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,o=a.children,Zu(i,a)?o=null:null!==s&&Zu(i,s)&&(t.flags|=32),null!==t.memoizedState&&(i=fi(e,t,mi,null,null,n),Ld._currentValue=i),Qa(e,t),Wa(e,t,o,n),t.child;case 6:return null===e&&Kr&&((e=n=Xr)&&(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=sd(e.nextSibling)))return null}return e}(n,t.pendingProps,Qr),null!==n?(t.stateNode=n,Yr=t,Xr=null,e=!0):e=!1),e||Jr(t)),null;case 13:return is(e,t,n);case 4:return Z(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=ko(t,null,o,n):Wa(e,t,o,n),t.child;case 11:return qa(e,t,t.type,t.pendingProps,n);case 7:return Wa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Wa(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,vs(t,t.type,o.value),Wa(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,Es(t),o=o(i=_s(i)),t.flags|=1,Wa(e,t,o,n),t.child;case 14:return Ya(e,t,t.type,t.pendingProps,n);case 15:return Xa(e,t,t.type,t.pendingProps,n);case 19:return ds(e,t,n);case 22:return Ka(e,t,n);case 24:return Es(t),o=_s(Bo),null===e?(null===(i=Go())&&(i=tc,a=$o(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:o,cache:i},Ps(t),vs(t,Bo,i)):(!!(e.lanes&n)&&(Rs(e,t),zs(t,null,null,n),Ls()),i=e.memoizedState,a=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),vs(t,Bo,o)):(o=a.cache,vs(t,Bo,o),o!==i.cache&&xs(t,[Bo],n,!0))),Wa(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}var ms=W(null),gs=null,ys=null;function vs(e,t,n){Y(ms,t._currentValue),t._currentValue=n}function bs(e){e._currentValue=ms.current,q(ms)}function ws(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xs(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var a=i.dependencies;if(null!==a){var s=i.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),ws(a.return,n,e),o||(s=null);break e}a=l.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(r(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),ws(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function ks(e,t,n,o){e=null;for(var i=t,a=!1;null!==i;){if(!a)if(524288&i.flags)a=!0;else if(262144&i.flags)break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=i.type;Yn(i.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(i===Q.current){if(null===(s=i.alternate))throw Error(r(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(Ld):e=[Ld])}i=i.return}null!==e&&xs(t,e,n,o),t.flags|=262144}function Ss(e){for(e=e.firstContext;null!==e;){if(!Yn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Es(e){gs=e,ys=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function _s(e){return Os(gs,e)}function Cs(e,t){return null===gs&&Es(e),Os(e,t)}function Os(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===ys){if(null===e)throw Error(r(308));ys=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ys=ys.next=t;return n}var Ns=!1;function Ps(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function As(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ms(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ec){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Rr(e),Pr(e,null,n),t}return Cr(e,r,t,n),Rr(e)}function Ts(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194176&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Te(e,n)}}function Ds(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Is=!1;function Ls(){if(Is){if(null!==qo)throw qo}}function zs(e,t,n,r){Is=!1;var o=e.updateQueue;Ns=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=-536870913&s.lane,p=f!==s.lane;if(p?(rc&f)===f:(r&f)===f){0!==f&&f===Wo&&(Is=!0),null!==u&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var h=e,m=s;f=t;var g=n;switch(m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(g,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(g,d,f):h))break e;d=R({},d,f);break e;case 2:Ns=!0}}null!==(f=s.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=o.callbacks)?o.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null===i&&(o.shared.lanes=0),dc|=a,e.lanes=a,e.memoizedState=d}}function Fs(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function js(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Fs(n[e],t)}function Bs(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(e){ru(t,t.return,e)}}function $s(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n;try{s()}catch(e){ru(o,l,e)}}}r=r.next}while(r!==i)}}catch(e){ru(t,t.return,e)}}function Vs(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{js(t,n)}catch(t){ru(e,e.return,t)}}}function Us(e,t,n){n.props=Ta(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){ru(e,t,n)}}function Hs(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var o=r;break;default:o=r}"function"==typeof n?e.refCleanup=n(o):n.current=o}}catch(n){ru(e,t,n)}}function Ws(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){ru(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){ru(e,t,n)}else n.current=null}function qs(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){ru(e,e.return,t)}}function Ys(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,l=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:o.hasOwnProperty(h)||Hu(e,t,h,null,o,f)}}for(var p in o){var h=o[p];if(f=n[p],o.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&Hu(e,t,p,h,o,f)}}return void mt(e,s,l,c,u,d,a,i);case"select":for(a in h=s=l=p=null,n)if(c=n[a],n.hasOwnProperty(a)&&null!=c)switch(a){case"value":break;case"multiple":h=c;default:o.hasOwnProperty(a)||Hu(e,t,a,null,o,c)}for(i in o)if(a=o[i],c=n[i],o.hasOwnProperty(i)&&(null!=a||null!=c))switch(i){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==c&&Hu(e,t,i,a,o,c)}return t=l,n=s,o=h,void(null!=p?vt(e,!!n,p,!1):!!o!=!!n&&(null!=t?vt(e,!!n,t,!0):vt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!o.hasOwnProperty(l))switch(l){case"value":case"children":break;default:Hu(e,t,l,null,o,i)}for(s in o)if(i=o[s],a=n[s],o.hasOwnProperty(s)&&(null!=i||null!=a))switch(s){case"value":p=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==a&&Hu(e,t,s,i,o,a)}return void bt(e,p,h);case"option":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m))if("selected"===m)e.selected=!1;else Hu(e,t,m,null,o,p);for(c in o)if(p=o[c],h=n[c],o.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))if("selected"===c)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else Hu(e,t,c,p,o,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g)&&Hu(e,t,g,null,o,p);for(u in o)if(p=o[u],h=n[u],o.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:Hu(e,t,u,p,o,h)}return;default:if(_t(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&Wu(e,t,y,void 0,o,p);for(d in o)p=o[d],h=n[d],!o.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||Wu(e,t,d,p,o,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!o.hasOwnProperty(v)&&Hu(e,t,v,null,o,p);for(f in o)p=o[f],h=n[f],!o.hasOwnProperty(f)||p===h||null==p&&null==h||Hu(e,t,f,p,o,h)}(o,e.type,n,t),o[Fe]=t}catch(t){ru(e,e.return,t)}}function Xs(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function Ks(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Xs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Gs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Uu));else if(4!==r&&27!==r&&null!==(e=e.child))for(Gs(e,t,n),e=e.sibling;null!==e;)Gs(e,t,n),e=e.sibling}function Qs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&27!==r&&null!==(e=e.child))for(Qs(e,t,n),e=e.sibling;null!==e;)Qs(e,t,n),e=e.sibling}var Zs=!1,Js=!1,el=!1,tl="function"==typeof WeakSet?WeakSet:Set,nl=null,rl=!1;function ol(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:yl(e,n),4&r&&Bs(5,n);break;case 1:if(yl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){ru(n,n.return,e)}else{var o=Ta(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ru(n,n.return,e)}}64&r&&Vs(n),512&r&&Hs(n,n.return);break;case 3:if(yl(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{js(r,e)}catch(e){ru(n,n.return,e)}}break;case 26:yl(e,n),512&r&&Hs(n,n.return);break;case 27:case 5:yl(e,n),null===t&&4&r&&qs(n),512&r&&Hs(n,n.return);break;case 12:default:yl(e,n);break;case 13:yl(e,n),4&r&&ul(e,n);break;case 22:if(!(o=null!==n.memoizedState||Zs)){t=null!==t&&null!==t.memoizedState||Js;var i=Zs,a=Js;Zs=o,(Js=t)&&!a?bl(e,n,!!(8772&n.subtreeFlags)):yl(e,n),Zs=i,Js=a}512&r&&("manual"===n.memoizedProps.mode?Hs(n,n.return):Ws(n,n.return))}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&We(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var al=null,sl=!1;function ll(e,t,n){for(n=n.child;null!==n;)cl(e,t,n),n=n.sibling}function cl(e,t,n){if(ye&&"function"==typeof ye.onCommitFiberUnmount)try{ye.onCommitFiberUnmount(ge,n)}catch(e){}switch(n.tag){case 26:Js||Ws(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Js||Ws(n,t);var r=al,o=sl;for(al=n.stateNode,ll(e,t,n),t=(n=n.stateNode).attributes;t.length;)n.removeAttributeNode(t[0]);We(n),al=r,sl=o;break;case 5:Js||Ws(n,t);case 6:o=al;var i=sl;if(al=null,ll(e,t,n),sl=i,null!==(al=o))if(sl)try{e=al,r=n.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)}catch(e){ru(n,t,e)}else try{al.removeChild(n.stateNode)}catch(e){ru(n,t,e)}break;case 18:null!==al&&(sl?(t=al,n=n.stateNode,8===t.nodeType?id(t.parentNode,n):1===t.nodeType&&id(t,n),gf(t)):id(al,n.stateNode));break;case 4:r=al,o=sl,al=n.stateNode.containerInfo,sl=!0,ll(e,t,n),al=r,sl=o;break;case 0:case 11:case 14:case 15:Js||$s(2,n,t),Js||$s(4,n,t),ll(e,t,n);break;case 1:Js||(Ws(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&Us(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:Js||Ws(n,t),Js=(r=Js)||null!==n.memoizedState,ll(e,t,n),Js=r;break;default:ll(e,t,n)}}function ul(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{gf(e)}catch(e){ru(t,t.return,e)}}function dl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new tl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new tl),t;default:throw Error(r(435,e.tag))}}(e);t.forEach((function(t){var r=lu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}function fl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:case 5:al=l.stateNode,sl=!1;break e;case 3:case 4:al=l.stateNode.containerInfo,sl=!0;break e}l=l.return}if(null===al)throw Error(r(160));cl(a,s,i),al=null,sl=!1,null!==(a=i.alternate)&&(a.return=null),i.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)hl(t,e),t=t.sibling}var pl=null;function hl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:fl(t,e),ml(e),4&o&&($s(3,e,e.return),Bs(3,e),$s(5,e,e.return));break;case 1:fl(t,e),ml(e),512&o&&(Js||null===n||Ws(n,n.return)),64&o&&Zs&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var i=pl;if(fl(t,e),ml(e),512&o&&(Js||null===n||Ws(n,n.return)),4&o){var a=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":(!(a=i.getElementsByTagName("title")[0])||a[He]||a[ze]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=i.createElement(o),i.head.insertBefore(a,i.querySelector("head > title"))),qu(a,o,n),a[ze]=e,Ge(a),o=a;break e;case"link":var s=Od("link","href",i).get(o+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}qu(a=i.createElement(o),o,n),i.head.appendChild(a);break;case"meta":if(s=Od("meta","content",i).get(o+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}qu(a=i.createElement(o),o,n),i.head.appendChild(a);break;default:throw Error(r(468,o))}a[ze]=e,Ge(a),o=a}e.stateNode=o}else Nd(i,e.type,e.stateNode);else e.stateNode=kd(i,o,e.memoizedProps);else a!==o?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===o?Nd(i,e.type,e.stateNode):kd(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&Ys(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(4&o&&null===e.alternate){i=e.stateNode,a=e.memoizedProps;try{for(var c=i.firstChild;c;){var u=c.nextSibling,d=c.nodeName;c[He]||"HEAD"===d||"BODY"===d||"SCRIPT"===d||"STYLE"===d||"LINK"===d&&"stylesheet"===c.rel.toLowerCase()||i.removeChild(c),c=u}for(var f=e.type,p=i.attributes;p.length;)i.removeAttributeNode(p[0]);qu(i,f,a),i[ze]=e,i[Fe]=a}catch(t){ru(e,e.return,t)}}case 5:if(fl(t,e),ml(e),512&o&&(Js||null===n||Ws(n,n.return)),32&e.flags){i=e.stateNode;try{xt(i,"")}catch(t){ru(e,e.return,t)}}4&o&&null!=e.stateNode&&Ys(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(el=!0);break;case 6:if(fl(t,e),ml(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(t){ru(e,e.return,t)}}break;case 3:if(Cd=null,i=pl,pl=fd(t.containerInfo),fl(t,e),pl=i,ml(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{gf(t.containerInfo)}catch(t){ru(e,e.return,t)}el&&(el=!1,gl(e));break;case 4:o=pl,pl=fd(e.stateNode.containerInfo),fl(t,e),ml(e),pl=o;break;case 12:fl(t,e),ml(e);break;case 13:fl(t,e),ml(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(bc=se()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,dl(e,o)));break;case 22:if(512&o&&(Js||null===n||Ws(n,n.return)),c=null!==e.memoizedState,u=null!==n&&null!==n.memoizedState,Zs=(d=Zs)||c,Js=(f=Js)||u,fl(t,e),Js=f,Zs=d,ml(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&o&&(t._visibility=c?-2&t._visibility:1|t._visibility,c&&(t=Zs||Js,null===n||u||t||vl(e)),null===e.memoizedProps||"manual"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){u=n=t;try{if(i=u.stateNode,c)"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none";else{s=u.stateNode;var h=null!=(l=u.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null;s.style.display=null==h||"boolean"==typeof h?"":(""+h).trim()}}catch(e){ru(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=c?"":u.memoizedProps}catch(e){ru(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,dl(e,n))));break;case 19:fl(t,e),ml(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,dl(e,o)));break;case 21:break;default:fl(t,e),ml(e)}}function ml(e){var t=e.flags;if(2&t){try{if(27!==e.tag){e:{for(var n=e.return;null!==n;){if(Xs(n)){var o=n;break e}n=n.return}throw Error(r(160))}switch(o.tag){case 27:var i=o.stateNode;Qs(e,Ks(e),i);break;case 5:var a=o.stateNode;32&o.flags&&(xt(a,""),o.flags&=-33),Qs(e,Ks(e),a);break;case 3:case 4:var s=o.stateNode.containerInfo;Gs(e,Ks(e),s);break;default:throw Error(r(161))}}}catch(t){ru(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;gl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function yl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)ol(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$s(4,t,t.return),vl(t);break;case 1:Ws(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&Us(t,t.return,n),vl(t);break;case 26:case 27:case 5:Ws(t,t.return),vl(t);break;case 22:Ws(t,t.return),null===t.memoizedState&&vl(t);break;default:vl(t)}e=e.sibling}}function bl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:bl(o,i,n),Bs(4,i);break;case 1:if(bl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){ru(r,r.return,e)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)Fs(l[o],s)}catch(e){ru(r,r.return,e)}}n&&64&a&&Vs(i),Hs(i,i.return);break;case 26:case 27:case 5:bl(o,i,n),n&&null===r&&4&a&&qs(i),Hs(i,i.return);break;case 12:default:bl(o,i,n);break;case 13:bl(o,i,n),n&&4&a&&ul(o,i);break;case 22:null===i.memoizedState&&bl(o,i,n),Hs(i,i.return)}t=t.sibling}}function wl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Vo(n))}function xl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Vo(e))}function kl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Sl(e,t,n,r),t=t.sibling}function Sl(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:kl(e,t,n,r),2048&o&&Bs(9,t);break;case 3:kl(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Vo(e)));break;case 12:if(2048&o){kl(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){ru(t,t.return,e)}}else kl(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,null!==t.memoizedState?4&i._visibility?kl(e,t,n,r):_l(e,t):4&i._visibility?kl(e,t,n,r):(i._visibility|=4,El(e,t,n,r,!!(10256&t.subtreeFlags))),2048&o&&wl(t.alternate,t);break;case 24:kl(e,t,n,r),2048&o&&xl(t.alternate,t);break;default:kl(e,t,n,r)}}function El(e,t,n,r,o){for(o=o&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:El(i,a,s,l,o),Bs(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?4&u._visibility?El(i,a,s,l,o):_l(i,a):(u._visibility|=4,El(i,a,s,l,o)),o&&2048&c&&wl(a.alternate,a);break;case 24:El(i,a,s,l,o),o&&2048&c&&xl(a.alternate,a);break;default:El(i,a,s,l,o)}t=t.sibling}}function _l(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:_l(n,r),2048&o&&wl(r.alternate,r);break;case 24:_l(n,r),2048&o&&xl(r.alternate,r);break;default:_l(n,r)}t=t.sibling}}var Cl=8192;function Ol(e){if(e.subtreeFlags&Cl)for(e=e.child;null!==e;)Nl(e),e=e.sibling}function Nl(e){switch(e.tag){case 26:Ol(e),e.flags&Cl&&null!==e.memoizedState&&function(e,t,n){if(null===Rd)throw Error(r(475));var o=Rd;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var i=yd(n.href),a=e.querySelector(vd(i));if(a)return null!==(e=a._p)&&"object"==typeof e&&"function"==typeof e.then&&(o.count++,o=Md.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=a,void Ge(a);a=e.ownerDocument||e,n=bd(n),(i=ud.get(i))&&Ed(n,i),Ge(a=a.createElement("link"));var s=a;s._p=new Promise((function(e,t){s.onload=e,s.onerror=t})),qu(a,"link",n),t.instance=a}null===o.stylesheets&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(o.count++,t=Md.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}(pl,e.memoizedState,e.memoizedProps);break;case 5:default:Ol(e);break;case 3:case 4:var t=pl;pl=fd(e.stateNode.containerInfo),Ol(e),pl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Cl,Cl=16777216,Ol(e),Cl=t):Ol(e))}}function Pl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Rl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Tl(r,e)}Pl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Al(e),e=e.sibling}function Al(e){switch(e.tag){case 0:case 11:case 15:Rl(e),2048&e.flags&&$s(9,e,e.return);break;case 3:case 12:default:Rl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,Ml(e)):Rl(e)}}function Ml(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Tl(r,e)}Pl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:$s(8,t,t.return),Ml(t);break;case 22:4&(n=t.stateNode)._visibility&&(n._visibility&=-5,Ml(t));break;default:Ml(t)}e=e.sibling}}function Tl(e,t){for(;null!==nl;){var n=nl;switch(n.tag){case 0:case 11:case 15:$s(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Vo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,nl=r;else e:for(n=e;null!==nl;){var o=(r=nl).sibling,i=r.return;if(il(r),r===n){nl=null;break e}if(null!==o){o.return=i,nl=o;break e}nl=i}}}function Dl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Il(e,t,n,r){return new Dl(e,t,n,r)}function Ll(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zl(e,t){var n=e.alternate;return null===n?((n=Il(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Fl(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function jl(e,t,n,o,i,a){var s=0;if(o=e,"function"==typeof e)Ll(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,X.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case l:return Bl(n.children,i,a,t);case c:s=8,i|=24;break;case u:return(e=Il(12,n,t,2|i)).elementType=u,e.lanes=a,e;case m:return(e=Il(13,n,t,i)).elementType=m,e.lanes=a,e;case g:return(e=Il(19,n,t,i)).elementType=g,e.lanes=a,e;case w:return $l(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case d:case p:s=10;break e;case f:s=9;break e;case h:s=11;break e;case v:s=14;break e;case b:s=16,o=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=Il(s,n,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Bl(e,t,n,r){return(e=Il(7,e,r,t)).lanes=n,e}function $l(e,t,n,o){(e=Il(22,e,o,t)).elementType=w,e.lanes=n;var i={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=i._current;if(null===e)throw Error(r(456));if(!(2&i._pendingVisibility)){var t=Nr(e,2);null!==t&&(i._pendingVisibility|=2,Mc(t,e,2))}},attach:function(){var e=i._current;if(null===e)throw Error(r(456));if(2&i._pendingVisibility){var t=Nr(e,2);null!==t&&(i._pendingVisibility&=-3,Mc(t,e,2))}}};return e.stateNode=i,e}function Vl(e,t,n){return(e=Il(6,e,null,t)).lanes=n,e}function Ul(e,t,n){return(t=Il(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hl(e){e.flags|=4}function Wl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Pd(t)){if(null!==(t=Po.current)&&((4194176&rc)===rc?null!==Ro:(62914560&rc)!==rc&&!(536870912&rc)||t!==Ro))throw po=lo,so;e.flags|=8192}}function ql(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Pe():536870912,e.lanes|=t,mc|=t)}function Yl(e,t){if(!Kr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=31457280&o.subtreeFlags,r|=31457280&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kl(e,t,n){var o=t.pendingProps;switch(qr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return Xl(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),bs(Bo),J(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(no(t)?Hl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Gr&&(Dc(Gr),Gr=null))),Xl(t),null;case 26:return n=t.memoizedState,null===e?(Hl(t),null!==n?(Xl(t),Wl(t,n)):(Xl(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Hl(t),Xl(t),Wl(t,n)):(Xl(t),t.flags&=-16777217):(e.memoizedProps!==o&&Hl(t),Xl(t),t.flags&=-16777217),null;case 27:te(t),n=G.current;var i=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==o&&Hl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return Xl(t),null}e=X.current,no(t)?eo(t):(e=cd(i,o,n),t.stateNode=e,Hl(t))}return Xl(t),null;case 5:if(te(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&Hl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return Xl(t),null}if(e=X.current,no(t))eo(t);else{switch(i=Ku(G.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof o.is?i.createElement("select",{is:o.is}):i.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e="string"==typeof o.is?i.createElement(n,{is:o.is}):i.createElement(n)}}e[ze]=t,e[Fe]=o;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)e.appendChild(i.stateNode);else if(4!==i.tag&&27!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(qu(e,n,o),n){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Hl(t)}}return Xl(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&Hl(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=G.current,no(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=Yr))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[ze]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||Vu(e.nodeValue,n)))||Jr(t)}else(e=Ku(e).createTextNode(o))[ze]=t,t.stateNode=e}return Xl(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=no(t),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[ze]=t}else ro(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Xl(t),i=!1}else null!==Gr&&(Dc(Gr),Gr=null),i=!0;if(!i)return 256&t.flags?(Do(t),t):(Do(t),null)}if(Do(t),128&t.flags)return t.lanes=n,t;if(n=null!==o,e=null!==e&&null!==e.memoizedState,n){i=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool);var a=null;null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(a=o.memoizedState.cachePool.pool),a!==i&&(o.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),ql(t,t.updateQueue),Xl(t),null;case 4:return J(),null===e&&Mu(t.stateNode.containerInfo),Xl(t),null;case 10:return bs(t.type),Xl(t),null;case 19:if(q(Io),null===(i=t.memoizedState))return Xl(t),null;if(o=!!(128&t.flags),null===(a=i.rendering))if(o)Yl(i,!1);else{if(0!==uc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Lo(e))){for(t.flags|=128,Yl(i,!1),e=a.updateQueue,t.updateQueue=e,ql(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Fl(n,e),n=n.sibling;return Y(Io,1&Io.current|2),t.child}e=e.sibling}null!==i.tail&&se()>wc&&(t.flags|=128,o=!0,Yl(i,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=Lo(a))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ql(t,e),Yl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!Kr)return Xl(t),null}else 2*se()-i.renderingStartTime>wc&&536870912!==n&&(t.flags|=128,o=!0,Yl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=i.last)?e.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=se(),t.sibling=null,e=Io.current,Y(Io,o?1&e|2:1&e),t):(Xl(t),null);case 22:case 23:return Do(t),No(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(Xl(t),6&t.subtreeFlags&&(t.flags|=8192)):Xl(t),null!==(n=t.updateQueue)&&ql(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&q(Ko),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bs(Bo),Xl(t),null;case 25:return null}throw Error(r(156,t.tag))}function Gl(e,t){switch(qr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return bs(Bo),J(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return te(t),null;case 13:if(Do(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));ro()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return q(Io),null;case 4:return J(),null;case 10:return bs(t.type),null;case 22:case 23:return Do(t),No(),null!==e&&q(Ko),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return bs(Bo),null;default:return null}}function Ql(e,t){switch(qr(t),t.tag){case 3:bs(Bo),J();break;case 26:case 27:case 5:te(t);break;case 4:J();break;case 13:Do(t);break;case 19:q(Io);break;case 10:bs(t.type);break;case 22:case 23:Do(t),No(),null!==e&&q(Ko);break;case 24:bs(Bo)}}var Zl={getCacheForType:function(e){var t=_s(Bo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},Jl="function"==typeof WeakMap?WeakMap:Map,ec=0,tc=null,nc=null,rc=0,oc=0,ic=null,ac=!1,sc=!1,lc=!1,cc=0,uc=0,dc=0,fc=0,pc=0,hc=0,mc=0,gc=null,yc=null,vc=!1,bc=0,wc=1/0,xc=null,kc=null,Sc=!1,Ec=null,_c=0,Cc=0,Oc=null,Nc=0,Pc=null;function Rc(){if(2&ec&&0!==rc)return rc&-rc;if(null!==P.T){return 0!==Wo?Wo:xu()}return Ie()}function Ac(){0===hc&&(hc=536870912&rc&&!Kr?536870912:Ne());var e=Po.current;return null!==e&&(e.flags|=32),hc}function Mc(e,t,n){(e===tc&&2===oc||null!==e.cancelPendingCommit)&&(Bc(e,0),zc(e,rc,hc,!1)),Ae(e,n),2&ec&&e===tc||(e===tc&&(!(2&ec)&&(fc|=n),4===uc&&zc(e,rc,hc,!1)),mu(e))}function Tc(e,t,n){if(6&ec)throw Error(r(327));for(var o=!n&&!(60&t)&&!(t&e.expiredLanes)||Ce(e,t),i=o?function(e,t){var n=ec;ec|=2;var o=Vc(),i=Uc();tc!==e||rc!==t?(xc=null,wc=se()+500,Bc(e,t)):sc=Ce(e,t);e:for(;;)try{if(0!==oc&&null!==nc){t=nc;var a=ic;t:switch(oc){case 1:oc=0,ic=null,Gc(e,t,a,1);break;case 2:if(co(a)){oc=0,ic=null,Kc(t);break}t=function(){2===oc&&tc===e&&(oc=7),mu(e)},a.then(t,t);break e;case 3:oc=7;break e;case 4:oc=5;break e;case 7:co(a)?(oc=0,ic=null,Kc(t)):(oc=0,ic=null,Gc(e,t,a,7));break;case 5:var s=null;switch(nc.tag){case 26:s=nc.memoizedState;case 5:case 27:var l=nc;if(!s||Pd(s)){oc=0,ic=null;var c=l.sibling;if(null!==c)nc=c;else{var u=l.return;null!==u?(nc=u,Qc(u)):nc=null}break t}}oc=0,ic=null,Gc(e,t,a,5);break;case 6:oc=0,ic=null,Gc(e,t,a,6);break;case 8:jc(),uc=6;break e;default:throw Error(r(462))}}Yc();break}catch(t){$c(e,t)}return ys=gs=null,P.H=o,P.A=i,ec=n,null!==nc?0:(tc=null,rc=0,_r(),uc)}(e,t):Wc(e,t,!0),a=o;;){if(0===i){sc&&!o&&zc(e,t,0,!1);break}if(6===i)zc(e,t,0,!ac);else{if(n=e.current.alternate,a&&!Lc(n)){i=Wc(e,t,!1),a=!1;continue}if(2===i){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;i=gc;var c=l.current.memoizedState.isDehydrated;if(c&&(Bc(l,s).flags|=256),2!==(s=Wc(l,s,!1))){if(lc&&!c){l.errorRecoveryDisabledLanes|=a,fc|=a,i=4;break e}a=yc,yc=i,null!==a&&Dc(a)}i=s}if(a=!1,2!==i)continue}}if(1===i){Bc(e,0),zc(e,t,0,!0);break}e:{switch(o=e,i){case 0:case 1:throw Error(r(345));case 4:if((4194176&t)===t){zc(o,t,hc,!ac);break e}break;case 2:yc=null;break;case 3:case 5:break;default:throw Error(r(329))}if(o.finishedWork=n,o.finishedLanes=t,(62914560&t)===t&&10<(a=bc+300-se())){if(zc(o,t,hc,!ac),0!==_e(o,0))break e;o.timeoutHandle=ed(Ic.bind(null,o,n,yc,xc,vc,t,hc,fc,mc,ac,2,-0,0),a)}else Ic(o,n,yc,xc,vc,t,hc,fc,mc,ac,0,-0,0)}}break}mu(e)}function Dc(e){null===yc?yc=e:yc.push.apply(yc,e)}function Ic(e,t,n,o,i,a,s,l,c,u,d,f,p){var h=t.subtreeFlags;if((8192&h||!(16785408&~h))&&(Rd={stylesheets:null,count:0,unsuspend:Ad},Nl(t),null!==(t=function(){if(null===Rd)throw Error(r(475));var e=Rd;return e.stylesheets&&0===e.count&&Dd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout((function(){if(e.stylesheets&&Dd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}),6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=t(Jc.bind(null,e,n,o,i,s,l,c,1,f,p)),void zc(e,a,s,!u);Jc(e,n,o,i,s,l,c,d,f,p)}function Lc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Yn(i(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zc(e,t,n,r){t&=~pc,t&=~fc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-be(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Me(e,n,t)}function Fc(){return!!(6&ec)||(gu(0),!1)}function jc(){if(null!==nc){if(0===oc)var e=nc.return;else ys=gs=null,vi(e=nc),mo=null,go=0,e=nc;for(;null!==e;)Ql(e.alternate,e),e=e.return;nc=null}}function Bc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,td(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),jc(),tc=e,nc=n=zl(e.current,null),rc=t,oc=0,ic=null,ac=!1,sc=Ce(e,t),lc=!1,mc=hc=pc=fc=dc=uc=0,yc=gc=null,vc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-be(r),i=1<<o;t|=e[o],r&=~i}return cc=t,_r(),n}function $c(e,t){ei=null,P.H=_a,t===io?(t=ho(),oc=3):t===so?(t=ho(),oc=4):oc=t===Ua?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,ic=t,null===nc&&(uc=1,Fa(e,Tr(t,e.current)))}function Vc(){var e=P.H;return P.H=_a,null===e?_a:e}function Uc(){var e=P.A;return P.A=Zl,e}function Hc(){uc=4,ac||(4194176&rc)!==rc&&null!==Po.current||(sc=!0),!(134217727&dc)&&!(134217727&fc)||null===tc||zc(tc,rc,hc,!1)}function Wc(e,t,n){var r=ec;ec|=2;var o=Vc(),i=Uc();tc===e&&rc===t||(xc=null,Bc(e,t)),t=!1;var a=uc;e:for(;;)try{if(0!==oc&&null!==nc){var s=nc,l=ic;switch(oc){case 8:jc(),a=6;break e;case 3:case 2:case 6:null===Po.current&&(t=!0);var c=oc;if(oc=0,ic=null,Gc(e,s,l,c),n&&sc){a=0;break e}break;default:c=oc,oc=0,ic=null,Gc(e,s,l,c)}}qc(),a=uc;break}catch(t){$c(e,t)}return t&&e.shellSuspendCounter++,ys=gs=null,ec=r,P.H=o,P.A=i,null===nc&&(tc=null,rc=0,_r()),a}function qc(){for(;null!==nc;)Xc(nc)}function Yc(){for(;null!==nc&&!ie();)Xc(nc)}function Xc(e){var t=hs(e.alternate,e,cc);e.memoizedProps=e.pendingProps,null===t?Qc(e):nc=t}function Kc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ja(n,t,t.pendingProps,t.type,void 0,rc);break;case 11:t=Ja(n,t,t.pendingProps,t.type.render,t.ref,rc);break;case 5:vi(t);default:Ql(n,t),t=hs(n,t=nc=Fl(t,cc),cc)}e.memoizedProps=e.pendingProps,null===t?Qc(e):nc=t}function Gc(e,t,n,o){ys=gs=null,vi(t),mo=null,go=0;var i=t.return;try{if(function(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&ks(t,n,i,!0),null!==(n=Po.current)){switch(n.tag){case 13:return null===Ro?Hc():null===n.alternate&&0===uc&&(uc=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===lo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),ou(e,o,i)),!1;case 22:return n.flags|=65536,o===lo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),ou(e,o,i)),!1}throw Error(r(435,n.tag))}return ou(e,o,i),Hc(),!1}if(Kr)return null!==(t=Po.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==Zr&&oo(Tr(e=Error(r(422),{cause:o}),n))):(o!==Zr&&oo(Tr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Tr(o,n),Ds(e,i=Ba(e.stateNode,o,i)),4!==uc&&(uc=2)),!1;var a=Error(r(520),{cause:o});if(a=Tr(a,n),null===gc?gc=[a]:gc.push(a),4!==uc&&(uc=2),null===t)return!0;o=Tr(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Ds(n,e=Ba(n.stateNode,o,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==kc&&kc.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,Va(i=$a(i),e,n,o),Ds(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,rc))return uc=1,Fa(e,Tr(n,e.current)),void(nc=null)}catch(t){if(null!==i)throw nc=i,t;return uc=1,Fa(e,Tr(n,e.current)),void(nc=null)}32768&t.flags?(Kr||1===o?e=!0:sc||536870912&rc?e=!1:(ac=e=!0,(2===o||3===o||6===o)&&(null!==(o=Po.current)&&13===o.tag&&(o.flags|=16384))),Zc(t,e)):Qc(t)}function Qc(e){var t=e;do{if(32768&t.flags)return void Zc(t,ac);e=t.return;var n=Kl(t.alternate,t,cc);if(null!==n)return void(nc=n);if(null!==(t=t.sibling))return void(nc=t);nc=t=e}while(null!==t);0===uc&&(uc=5)}function Zc(e,t){do{var n=Gl(e.alternate,e);if(null!==n)return n.flags&=32767,void(nc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(nc=e);nc=e=n}while(null!==e);uc=6,nc=null}function Jc(e,t,n,o,i,a,s,l,c,u){var d=P.T,f=$.p;try{$.p=2,P.T=null,function(e,t,n,o,i,a,s,l){do{tu()}while(null!==Ec);if(6&ec)throw Error(r(327));var c=e.finishedWork;if(o=e.finishedLanes,null===c)return null;if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var u=c.lanes|c.childLanes;if(function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-be(n),d=1<<u;s[u]=0,l[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Me(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,o,u|=Er,a,s,l),e===tc&&(nc=tc=null,rc=0),!(10256&c.subtreeFlags)&&!(10256&c.flags)||Sc||(Sc=!0,Cc=u,Oc=n,function(e,t){re(e,t)}(de,(function(){return tu(),null}))),n=!!(15990&c.flags),15990&c.subtreeFlags||n?(n=P.T,P.T=null,a=$.p,$.p=2,s=ec,ec|=4,function(e,t){if(e=e.containerInfo,Yu=Hd,Jn(e=Zn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(c=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===o&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xu={focusedElem:e,selectionRange:n},Hd=!1,nl=t;null!==nl;)if(e=(t=nl).child,1028&t.subtreeFlags&&null!==e)e.return=t,nl=e;else for(;null!==nl;){switch(a=(t=nl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,o=n.stateNode;try{var m=Ta(n.type,i,(n.elementType,n.type));e=o.getSnapshotBeforeUpdate(m,a),o.__reactInternalSnapshotBeforeUpdate=e}catch(e){ru(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))ad(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ad(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,nl=e;break}nl=t.return}m=rl,rl=!1}(e,c),hl(c,e),er(Xu,e.containerInfo),Hd=!!Yu,Xu=Yu=null,e.current=c,ol(e,c.alternate,c),ae(),ec=s,$.p=a,P.T=n):e.current=c,Sc?(Sc=!1,Ec=e,_c=o):eu(e,u),u=e.pendingLanes,0===u&&(kc=null),function(e){if(ye&&"function"==typeof ye.onCommitFiberRoot)try{ye.onCommitFiberRoot(ge,e,void 0,!(128&~e.current.flags))}catch(e){}}(c.stateNode),mu(e),null!==t)for(i=e.onRecoverableError,c=0;c<t.length;c++)u=t[c],i(u.value,{componentStack:u.stack});!!(3&_c)&&tu(),u=e.pendingLanes,4194218&o&&42&u?e===Pc?Nc++:(Nc=0,Pc=e):Nc=0,gu(0)}(e,t,n,o,f,i,a,s)}finally{P.T=d,$.p=f}}function eu(e,t){0==(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Vo(t)))}function tu(){if(null!==Ec){var e=Ec,t=Cc;Cc=0;var n=De(_c),o=P.T,i=$.p;try{if($.p=32>n?32:n,P.T=null,null===Ec)var a=!1;else{n=Oc,Oc=null;var s=Ec,l=_c;if(Ec=null,_c=0,6&ec)throw Error(r(331));var c=ec;if(ec|=4,Al(s.current),Sl(s,s.current,l,n),ec=c,gu(0,!1),ye&&"function"==typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(ge,s)}catch(e){}a=!0}return a}finally{$.p=i,P.T=o,eu(e,t)}}return!1}function nu(e,t,n){t=Tr(n,t),null!==(e=Ms(e,t=Ba(e.stateNode,t,2),2))&&(Ae(e,2),mu(e))}function ru(e,t,n){if(3===e.tag)nu(e,e,n);else for(;null!==t;){if(3===t.tag){nu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===kc||!kc.has(r))){e=Tr(n,e),null!==(r=Ms(t,n=$a(2),2))&&(Va(n,r,t,e),Ae(r,2),mu(r));break}}t=t.return}}function ou(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Jl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(lc=!0,o.add(n),e=iu.bind(null,e,t,n),t.then(e,e))}function iu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tc===e&&(rc&n)===n&&(4===uc||3===uc&&(62914560&rc)===rc&&300>se()-bc?!(2&ec)&&Bc(e,0):pc|=n,mc===rc&&(mc=0)),mu(e)}function au(e,t){0===t&&(t=Pe()),null!==(e=Nr(e,t))&&(Ae(e,t),mu(e))}function su(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),au(e,n)}function lu(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),au(e,n)}var cu=null,uu=null,du=!1,fu=!1,pu=!1,hu=0;function mu(e){e!==uu&&null===e.next&&(null===uu?cu=uu=e:uu=uu.next=e),fu=!0,du||(du=!0,function(e){rd((function(){6&ec?re(ce,e):e()}))}(yu))}function gu(e,t){if(!pu&&fu){pu=!0;do{for(var n=!1,r=cu;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-be(42|e)+1)-1,i=201326677&(i&=o&~(a&~s))?201326677&i|1:i?2|i:0}0!==i&&(n=!0,wu(r,i))}else i=rc,!(3&(i=_e(r,r===tc?i:0)))||Ce(r,i)||(n=!0,wu(r,i));r=r.next}}while(n);pu=!1}}function yu(){fu=du=!1;var e=0;0!==hu&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Ju&&(Ju=e,!0);return Ju=null,!1}()&&(e=hu),hu=0);for(var t=se(),n=null,r=cu;null!==r;){var o=r.next,i=vu(r,t);0===i?(r.next=null,null===n?cu=o:n.next=o,null===o&&(uu=n)):(n=r,(0!==e||3&i)&&(fu=!0)),r=o}gu(e)}function vu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-be(i),s=1<<a,l=o[a];-1===l?s&n&&!(s&r)||(o[a]=Oe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=rc,n=_e(e,e===(t=tc)?n:0),r=e.callbackNode,0===n||e===t&&2===oc||null!==e.cancelPendingCommit)return null!==r&&null!==r&&oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ce(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&oe(r),De(n)){case 2:case 8:n=ue;break;case 32:default:n=de;break;case 268435456:n=pe}return r=bu.bind(null,e),n=re(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&oe(r),e.callbackPriority=2,e.callbackNode=null,2}function bu(e,t){var n=e.callbackNode;if(tu()&&e.callbackNode!==n)return null;var r=rc;return 0===(r=_e(e,e===tc?r:0))?null:(Tc(e,r,t),vu(e,se()),null!=e.callbackNode&&e.callbackNode===n?bu.bind(null,e):null)}function wu(e,t){if(tu())return null;Tc(e,t,!0)}function xu(){return 0===hu&&(hu=Ne()),hu}function ku(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Nt(""+e)}function Su(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Eu=0;Eu<wr.length;Eu++){var _u=wr[Eu];xr(_u.toLowerCase(),"on"+(_u[0].toUpperCase()+_u.slice(1)))}xr(fr,"onAnimationEnd"),xr(pr,"onAnimationIteration"),xr(hr,"onAnimationStart"),xr("dblclick","onDoubleClick"),xr("focusin","onFocus"),xr("focusout","onBlur"),xr(mr,"onTransitionRun"),xr(gr,"onTransitionStart"),xr(yr,"onTransitionCancel"),xr(vr,"onTransitionEnd"),et("onMouseEnter",["mouseout","mouseover"]),et("onMouseLeave",["mouseout","mouseover"]),et("onPointerEnter",["pointerout","pointerover"]),et("onPointerLeave",["pointerout","pointerover"]),Je("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Je("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Je("onBeforeInput",["compositionend","keypress","textInput","paste"]),Je("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Je("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Je("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ou=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cu));function Nu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(e){Da(e)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(e){Da(e)}o.currentTarget=null,i=l}}}}function Pu(e,t){var n=t[Be];void 0===n&&(n=t[Be]=new Set);var r=e+"__bubble";n.has(r)||(Tu(t,e,2,!1),n.add(r))}function Ru(e,t,n){var r=0;t&&(r|=4),Tu(n,e,r,t)}var Au="_reactListening"+Math.random().toString(36).slice(2);function Mu(e){if(!e[Au]){e[Au]=!0,Qe.forEach((function(t){"selectionchange"!==t&&(Ou.has(t)||Ru(t,!1,e),Ru(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Au]||(t[Au]=!0,Ru("selectionchange",!1,t))}}function Tu(e,t,n,r){switch(Qd(t)){case 2:var o=Wd;break;case 8:o=qd;break;default:o=Yd}n=o.bind(null,t,n,e),o=void 0,!zt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Du(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=qe(s)))return;if(5===(l=a.tag)||6===l||26===l||27===l){r=i=a;continue e}s=s.parentNode}}r=r.return}It((function(){var r=i,o=Rt(n),a=[];e:{var s=br.get(e);if(void 0!==s){var l=Qt,c=e;switch(e){case"keypress":if(0===Ut(n))break e;case"keydown":case"keyup":l=pn;break;case"focusin":c="focus",l=rn;break;case"focusout":c="blur",l=rn;break;case"beforeblur":case"afterblur":l=rn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=tn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=nn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=mn;break;case fr:case pr:case hr:l=on;break;case vr:l=gn;break;case"scroll":case"scrollend":l=Jt;break;case"wheel":l=yn;break;case"copy":case"cut":case"paste":l=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=hn;break;case"toggle":case"beforetoggle":l=vn}var u=!!(4&t),d=!u&&("scroll"===e||"scrollend"===e),f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=h;if(p=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===p||null===f||null!=(m=Lt(h,f))&&u.push(Iu(h,m,p)),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Pt||!(c=n.relatedTarget||n.fromElement)||!qe(c)&&!c[je])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?qe(c):null)&&(d=L(c),u=c.tag,c!==d||5!==u&&27!==u&&6!==u)&&(c=null)):(l=null,c=r),l!==c)){if(u=tn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=hn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:Xe(l),p=null==c?s:Xe(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,qe(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=zu(p))h++;for(p=0,m=f;m;m=zu(m))p++;for(;0<h-p;)u=zu(u),h--;for(;0<p-h;)f=zu(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=zu(u),f=zu(f)}u=null}else u=null;null!==l&&Fu(a,s,l,u,!1),null!==c&&null!==d&&Fu(a,d,c,u,!0)}if("select"===(l=(s=r?Xe(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Ln;else if(Rn(s))if(zn)g=qn;else{g=Hn;var y=Un}else!(l=s.nodeName)||"input"!==l.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&_t(r.elementType)&&(g=Ln):g=Wn;switch(g&&(g=g(e,r))?An(a,g,n,o):(y&&y(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&yt(s,"number",s.value)),y=r?Xe(r):window,e){case"focusin":(Rn(y)||"true"===y.contentEditable)&&(nr=y,rr=r,or=null);break;case"focusout":or=rr=nr=null;break;case"mousedown":ir=!0;break;case"contextmenu":case"mouseup":case"dragend":ir=!1,ar(a,n,o);break;case"selectionchange":if(tr)break;case"keydown":case"keyup":ar(a,n,o)}var v;if(wn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Nn?Cn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Sn&&"ko"!==n.locale&&(Nn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Nn&&(v=Vt()):(Bt="value"in(jt=o)?jt.value:jt.textContent,Nn=!0)),0<(y=Lu(r,b)).length&&(b=new sn(b,e,null,n,o),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=On(n))&&(b.data=v))),(v=kn?function(e,t){switch(e){case"compositionend":return On(t);case"keypress":return 32!==t.which?null:(_n=!0,En);case"textInput":return(e=t.data)===En&&_n?null:e;default:return null}}(e,n):function(e,t){if(Nn)return"compositionend"===e||!wn&&Cn(e,t)?(e=Vt(),$t=Bt=jt=null,Nn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(b=Lu(r,"onBeforeInput")).length&&(y=new sn("onBeforeInput","beforeinput",null,n,o),a.push({event:y,listeners:b}),y.data=v)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=ku((o[Fe]||null).action),a=r.submitter;a&&null!==(t=(t=a[Fe]||null)?ku(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new Qt("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==hu){var e=a?Su(o,a):new FormData(o);da(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(s.preventDefault(),e=a?Su(o,a):new FormData(o),da(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(a,e,r,n,o)}Nu(a,t)}))}function Iu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lu(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Lt(e,n))&&r.unshift(Iu(e,o,i)),null!=(o=Lt(e,t))&&r.push(Iu(e,o,i))),e=e.return}return r}function zu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Fu(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,o?null!=(c=Lt(n,i))&&a.unshift(Iu(n,c,l)):o||null!=(c=Lt(n,i))&&a.push(Iu(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ju=/\r\n?/g,Bu=/\u0000|\uFFFD/g;function $u(e){return("string"==typeof e?e:""+e).replace(ju,"\n").replace(Bu,"")}function Vu(e,t){return t=$u(t),$u(e)===t}function Uu(){}function Hu(e,t,n,o,i,a){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||xt(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&xt(e,""+o);break;case"className":at(e,"class",o);break;case"tabIndex":at(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":at(e,n,o);break;case"style":Et(e,o,a);break;case"data":if("object"!==t){at(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Nt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof a&&("formAction"===n?("input"!==t&&Hu(e,t,"name",i.name,i,null),Hu(e,t,"formEncType",i.formEncType,i,null),Hu(e,t,"formMethod",i.formMethod,i,null),Hu(e,t,"formTarget",i.formTarget,i,null)):(Hu(e,t,"encType",i.encType,i,null),Hu(e,t,"method",i.method,i,null),Hu(e,t,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Nt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=Uu);break;case"onScroll":null!=o&&Pu("scroll",e);break;case"onScrollEnd":null!=o&&Pu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Nt(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":Pu("beforetoggle",e),Pu("toggle",e),it(e,"popover",o);break;case"xlinkActuate":st(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":st(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":st(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":st(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":st(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":st(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":st(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":st(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":st(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":it(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&it(e,n=Ct.get(n)||n,o)}}function Wu(e,t,n,o,i,a){switch(n){case"style":Et(e,o,a);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?xt(e,o):("number"==typeof o||"bigint"==typeof o)&&xt(e,""+o);break;case"onScroll":null!=o&&Pu("scroll",e);break;case"onScrollEnd":null!=o&&Pu("scrollend",e);break;case"onClick":null!=o&&(e.onclick=Uu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ze.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(a=null!=(a=e[Fe]||null)?a[n]:null)&&e.removeEventListener(t,a,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):it(e,n,o):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function qu(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pu("error",e),Pu("load",e);var o,i=!1,a=!1;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(null!=s)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Hu(e,t,o,s,n,null)}}return a&&Hu(e,t,"srcSet",n.srcSet,n,null),void(i&&Hu(e,t,"src",n.src,n,null));case"input":Pu("invalid",e);var l=o=s=a=null,c=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":a=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:Hu(e,t,i,d,n,null)}}return gt(e,o,l,c,u,s,a,!1),void ut(e);case"select":for(a in Pu("invalid",e),i=s=o=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":o=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:Hu(e,t,a,l,n,null)}return t=o,n=s,e.multiple=!!i,void(null!=t?vt(e,!!i,t,!1):null!=n&&vt(e,!!i,n,!0));case"textarea":for(s in Pu("invalid",e),o=a=i=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":i=l;break;case"defaultValue":a=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:Hu(e,t,s,l,n,null)}return wt(e,i,a,o),void ut(e);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))if("selected"===c)e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i;else Hu(e,t,c,i,n,null);return;case"dialog":Pu("cancel",e),Pu("close",e);break;case"iframe":case"object":Pu("load",e);break;case"video":case"audio":for(i=0;i<Cu.length;i++)Pu(Cu[i],e);break;case"image":Pu("error",e),Pu("load",e);break;case"details":Pu("toggle",e);break;case"embed":case"source":case"link":Pu("error",e),Pu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Hu(e,t,u,i,n,null)}return;default:if(_t(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&Wu(e,t,d,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&Hu(e,t,l,i,n,null))}var Yu=null,Xu=null;function Ku(e){return 9===e.nodeType?e:e.ownerDocument}function Gu(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qu(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function Zu(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ju=null;var ed="function"==typeof setTimeout?setTimeout:void 0,td="function"==typeof clearTimeout?clearTimeout:void 0,nd="function"==typeof Promise?Promise:void 0,rd="function"==typeof queueMicrotask?queueMicrotask:void 0!==nd?function(e){return nd.resolve(null).then(e).catch(od)}:ed;function od(e){setTimeout((function(){throw e}))}function id(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void gf(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);gf(t)}function ad(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ad(n),We(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function sd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}function ld(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function cd(e,t,n){switch(t=Ku(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}var ud=new Map,dd=new Set;function fd(e){return"function"==typeof e.getRootNode?e.getRootNode():e.ownerDocument}var pd=$.d;$.d={f:function(){var e=pd.f(),t=Fc();return e||t},r:function(e){var t=Ye(e);null!==t&&5===t.tag&&"form"===t.type?pa(t):pd.r(e)},D:function(e){pd.D(e),md("dns-prefetch",e,null)},C:function(e,t){pd.C(e,t),md("preconnect",e,t)},L:function(e,t,n){pd.L(e,t,n);var r=hd;if(r&&e&&t){var o='link[rel="preload"][as="'+ht(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+ht(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+ht(n.imageSizes)+'"]')):o+='[href="'+ht(e)+'"]';var i=o;switch(t){case"style":i=yd(e);break;case"script":i=wd(e)}ud.has(i)||(e=R({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),ud.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(vd(i))||"script"===t&&r.querySelector(xd(i))||(qu(t=r.createElement("link"),"link",e),Ge(t),r.head.appendChild(t)))}},m:function(e,t){pd.m(e,t);var n=hd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+ht(r)+'"][href="'+ht(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=wd(e)}if(!ud.has(i)&&(e=R({rel:"modulepreload",href:e},t),ud.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(xd(i)))return}qu(r=n.createElement("link"),"link",e),Ge(r),n.head.appendChild(r)}}},X:function(e,t){pd.X(e,t);var n=hd;if(n&&e){var r=Ke(n).hoistableScripts,o=wd(e),i=r.get(o);i||((i=n.querySelector(xd(o)))||(e=R({src:e,async:!0},t),(t=ud.get(o))&&_d(e,t),Ge(i=n.createElement("script")),qu(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){pd.S(e,t,n);var r=hd;if(r&&e){var o=Ke(r).hoistableStyles,i=yd(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(vd(i)))s.loading=5;else{e=R({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ud.get(i))&&Ed(e,n);var l=a=r.createElement("link");Ge(l),qu(l,"link",e),l._p=new Promise((function(e,t){l.onload=e,l.onerror=t})),l.addEventListener("load",(function(){s.loading|=1})),l.addEventListener("error",(function(){s.loading|=2})),s.loading|=4,Sd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){pd.M(e,t);var n=hd;if(n&&e){var r=Ke(n).hoistableScripts,o=wd(e),i=r.get(o);i||((i=n.querySelector(xd(o)))||(e=R({src:e,async:!0,type:"module"},t),(t=ud.get(o))&&_d(e,t),Ge(i=n.createElement("script")),qu(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var hd="undefined"==typeof document?null:document;function md(e,t,n){var r=hd;if(r&&"string"==typeof t&&t){var o=ht(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),dd.has(o)||(dd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(qu(t=r.createElement("link"),"link",e),Ge(t),r.head.appendChild(t)))}}function gd(e,t,n,o){var i,a,s,l,c=(c=G.current)?fd(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=yd(n.href),(o=(n=Ke(c).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=yd(n.href);var u=Ke(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(vd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),ud.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ud.set(e,n),u||(i=c,a=e,s=n,l=d.state,i.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=i.createElement("link"),l.preload=a,a.addEventListener("load",(function(){return l.loading|=1})),a.addEventListener("error",(function(){return l.loading|=2})),qu(a,"link",s),Ge(a),i.head.appendChild(a))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=wd(n),(o=(n=Ke(c).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function yd(e){return'href="'+ht(e)+'"'}function vd(e){return'link[rel="stylesheet"]['+e+"]"}function bd(e){return R({},e,{"data-precedence":e.precedence,precedence:null})}function wd(e){return'[src="'+ht(e)+'"]'}function xd(e){return"script[async]"+e}function kd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+ht(n.href)+'"]');if(o)return t.instance=o,Ge(o),o;var i=R({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ge(o=(e.ownerDocument||e).createElement("style")),qu(o,"style",i),Sd(o,n.precedence,e),t.instance=o;case"stylesheet":i=yd(n.href);var a=e.querySelector(vd(i));if(a)return t.state.loading|=4,t.instance=a,Ge(a),a;o=bd(n),(i=ud.get(i))&&Ed(o,i),Ge(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise((function(e,t){s.onload=e,s.onerror=t})),qu(a,"link",o),t.state.loading|=4,Sd(a,n.precedence,e),t.instance=a;case"script":return a=wd(n.src),(i=e.querySelector(xd(a)))?(t.instance=i,Ge(i),i):(o=n,(i=ud.get(a))&&_d(o=R({},n),i),Ge(i=(e=e.ownerDocument||e).createElement("script")),qu(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,Sd(o,n.precedence,e));return t.instance}function Sd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Ed(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function _d(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Cd=null;function Od(e,t,n){if(null===Cd){var r=new Map,o=Cd=new Map;o.set(n,r)}else(r=(o=Cd).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[He]||i[ze]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function Nd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Pd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Rd=null;function Ad(){}function Md(){if(this.count--,0===this.count)if(this.stylesheets)Dd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Td=null;function Dd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Td=new Map,t.forEach(Id,e),Td=null,Md.call(e))}function Id(e,t){if(!(4&t.state.loading)){var n=Td.get(e);if(n)var r=n.get(null);else{n=new Map,Td.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=Md.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var Ld={$$typeof:p,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function zd(e,t,n,r,o,i,a,s){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Fd(e,t,n,r,o,i,a,s,l,c,u,d){return e=new zd(e,t,n,a,s,l,c,d),t=1,!0===i&&(t|=24),i=Il(3,null,null,t),e.current=i,i.stateNode=e,(t=$o()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},Ps(i),e}function jd(e){return e?e=Ar:Ar}function Bd(e,t,n,r,o,i){o=jd(o),null===r.context?r.context=o:r.pendingContext=o,(r=As(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=Ms(e,r,t))&&(Mc(n,0,t),Ts(n,e,t))}function $d(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vd(e,t){$d(e,t),(e=e.alternate)&&$d(e,t)}function Ud(e){if(13===e.tag){var t=Nr(e,67108864);null!==t&&Mc(t,0,67108864),Vd(e,67108864)}}var Hd=!0;function Wd(e,t,n,r){var o=P.T;P.T=null;var i=$.p;try{$.p=2,Yd(e,t,n,r)}finally{$.p=i,P.T=o}}function qd(e,t,n,r){var o=P.T;P.T=null;var i=$.p;try{$.p=8,Yd(e,t,n,r)}finally{$.p=i,P.T=o}}function Yd(e,t,n,r){if(Hd){var o=Xd(r);if(null===o)Du(e,t,r,Kd,n),sf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Jd=lf(Jd,e,t,n,r,o),!0;case"dragenter":return ef=lf(ef,e,t,n,r,o),!0;case"mouseover":return tf=lf(tf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return nf.set(i,lf(nf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,rf.set(i,lf(rf.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(sf(e,r),4&t&&-1<af.indexOf(e)){for(;null!==o;){var i=Ye(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Ee(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-be(a);s.entanglements[1]|=l,a&=~l}mu(i),!(6&ec)&&(wc=se()+500,gu(0))}}break;case 13:null!==(s=Nr(i,2))&&Mc(s,0,2),Fc(),Vd(i,2)}if(null===(i=Xd(r))&&Du(e,t,r,Kd,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Du(e,t,r,null,n)}}function Xd(e){return Gd(e=Rt(e))}var Kd=null;function Gd(e){if(Kd=null,null!==(e=qe(e))){var t=L(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=z(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Kd=e,null}function Qd(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(le()){case ce:return 2;case ue:return 8;case de:case fe:return 32;case pe:return 268435456;default:return 32}default:return 32}}var Zd=!1,Jd=null,ef=null,tf=null,nf=new Map,rf=new Map,of=[],af="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function sf(e,t){switch(e){case"focusin":case"focusout":Jd=null;break;case"dragenter":case"dragleave":ef=null;break;case"mouseover":case"mouseout":tf=null;break;case"pointerover":case"pointerout":nf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rf.delete(t.pointerId)}}function lf(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Ye(t))&&Ud(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function cf(e){var t=qe(e.target);if(null!==t){var n=L(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=z(n)))return e.blockedOn=t,void function(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}(e.priority,(function(){if(13===n.tag){var e=Rc(),t=Nr(n,e);null!==t&&Mc(t,0,e),Vd(n,e)}}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function uf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xd(e.nativeEvent);if(null!==n)return null!==(t=Ye(n))&&Ud(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Pt=r,n.target.dispatchEvent(r),Pt=null,t.shift()}return!0}function df(e,t,n){uf(e)&&n.delete(t)}function ff(){Zd=!1,null!==Jd&&uf(Jd)&&(Jd=null),null!==ef&&uf(ef)&&(ef=null),null!==tf&&uf(tf)&&(tf=null),nf.forEach(df),rf.forEach(df)}function pf(t,n){t.blockedOn===n&&(t.blockedOn=null,Zd||(Zd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,ff)))}var hf=null;function mf(t){hf!==t&&(hf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,(function(){hf===t&&(hf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===Gd(r||n))continue;break}var i=Ye(n);null!==i&&(t.splice(e,3),e-=3,da(i,{pending:!0,data:o,method:n.method,action:r},r,o))}})))}function gf(e){function t(t){return pf(t,e)}null!==Jd&&pf(Jd,e),null!==ef&&pf(ef,e),null!==tf&&pf(tf,e),nf.forEach(t),rf.forEach(t);for(var n=0;n<of.length;n++){var r=of[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<of.length&&null===(n=of[0]).blockedOn;)cf(n),null===n.blockedOn&&of.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[Fe]||null;if("function"==typeof i)a||mf(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[Fe]||null)s=a.formAction;else if(null!==Gd(o))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),mf(n)}}}function yf(e){this._internalRoot=e}function vf(e){this._internalRoot=e}vf.prototype.render=yf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));Bd(t.current,Rc(),e,t,null,null)},vf.prototype.unmount=yf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;0===e.tag&&tu(),Bd(e.current,2,null,e,null,null),Fc(),t[je]=null}},vf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ie();e={blockedOn:null,target:e,priority:t};for(var n=0;n<of.length&&0!==t&&t<of[n].priority;n++);of.splice(n,0,e),0===n&&cf(e)}};var bf=t.version;if("19.0.0"!==bf)throw Error(r(527,bf,"19.0.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=L(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){n=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return F(i),e;if(a===o)return F(i),t;a=a.sibling}throw Error(r(188))}if(n.return!==o.return)n=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,o=a;break}if(l===o){s=!0,o=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,o=i;break}if(l===o){s=!0,o=a,n=i;break}l=l.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?j(e):null)?null:e.stateNode};var wf={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:P,findFiberByHostInstance:qe,reconcilerVersion:"19.0.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var xf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xf.isDisabled&&xf.supportsFiber)try{ge=xf.inject(wf),ye=xf}catch(e){}}return NV.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",a=Ia,s=La,l=za;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Fd(e,1,!1,null,0,n,i,a,s,l,0,null),e[je]=t.current,Mu(8===e.nodeType?e.parentNode:e),new yf(t)},NV.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,a="",s=Ia,l=La,c=za,u=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(u=n.formState)),(t=Fd(e,1,!0,t,0,i,a,s,l,c,0,u)).context=jd(null),n=t.current,(a=As(i=Rc())).callback=null,Ms(n,a,i),t.current.lanes=i,Ae(t,i),mu(t),e[je]=t.current,Mu(e),new vf(t)},NV.version="19.0.0",NV}var TV=(CV||(CV=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),OV.exports=MV()),OV.exports);const DV=(e,t)=>{void 0===t&&(t={});const{element:n,eleid:r}="string"==typeof e?{element:document.getElementById(e),eleid:e}:{element:e,eleid:e.id};TV.createRoot(n).render(k.createElement(k.StrictMode,null,k.createElement(kV,{...t,id:t.id||r})))};window.FuncNodes=DV}();
100
- //# sourceMappingURL=index.js.map