@linkdlab/funcnodes_react_flow 0.3.22 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.esm.mjs +18 -70
- package/dist/esm/index.esm.mjs.map +1 -1
- package/dist/index.d.ts +559 -192
- package/dist/style.css +1 -1
- package/dist/umd/index.umd.js +18 -70
- package/dist/umd/index.umd.js.map +1 -1
- package/package.json +9 -4
package/dist/umd/index.umd.js
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-dom");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}function r(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)}var o=n(e),i=n(t);const a=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},s=e=>e?a(e):a;function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* use-sync-external-store-shim.development.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
|
-
*/function b(){return m||(m=1,"production"===process.env.NODE_ENV?f.exports=function(){if(c)return p;c=1;var t=e,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.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),l=r({inst:{value:n,getSnapshot:t}}),c=l[0].inst,u=l[1];return i((function(){c.value=n,c.getSnapshot=t,s(c)&&u({inst:c})}),[e,n,t]),o((function(){return s(c)&&u({inst:c}),e((function(){s(c)&&u({inst:c})}))}),[e]),a(n),n};return p.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,p}():f.exports=(h||(h=1,"production"!==process.env.NODE_ENV&&function(){function t(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=e,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,i=n.useEffect,a=n.useLayoutEffect,s=n.useDebugValue,l=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,u){l||void 0===n.startTransition||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=u();if(!c){var f=u();r(d,f)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var p=(f=o({inst:{value:d,getSnapshot:u}}))[0].inst,h=f[1];return a((function(){p.value=d,p.getSnapshot=u,t(p)&&h({inst:p})}),[e,d,u]),i((function(){return t(p)&&h({inst:p}),e((function(){t(p)&&h({inst:p})}))}),[e]),s(d),d};y.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),y)),f.exports}
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-dom");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}function r(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)}var o=n(e),i=n(t);const a=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},s=e=>e?a(e):a;function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function u(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}var f=u,p=d;function h(e){if(f===setTimeout)return setTimeout(e,0);if((f===u||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}"function"==typeof c.setTimeout&&(f=setTimeout),"function"==typeof c.clearTimeout&&(p=clearTimeout);var m,g=[],y=!1,b=-1;function v(){y&&m&&(y=!1,m.length?g=m.concat(g):b=-1,g.length&&w())}function w(){if(!y){var e=h(v);y=!0;for(var t=g.length;t;){for(m=g,g=[];++b<t;)m&&m[b].run();b=-1,t=g.length}m=null,y=!1,function(e){if(p===clearTimeout)return clearTimeout(e);if((p===d||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}(e)}}function x(e,t){this.fun=e,this.array=t}x.prototype.run=function(){this.fun.apply(null,this.array)};function E(){}var C=E,k=E,S=E,_=E,I=E,A=E,N=E;var R=c.performance||{},O=R.now||R.mozNow||R.msNow||R.oNow||R.webkitNow||function(){return(new Date).getTime()};var T=new Date;var M,P={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];g.push(new x(e,t)),1!==g.length||y||h(w)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:C,addListener:k,once:S,off:_,removeListener:I,removeAllListeners:A,emit:N,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*O.call(R),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-T)/1e3}},D={exports:{}},j={},B={exports:{}},L={};var F,z,V,G={};function W(){return z||(z=1,"production"===P.env.NODE_ENV?B.exports=function(){if(M)return L;M=1;var t=e,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.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),l=r({inst:{value:n,getSnapshot:t}}),c=l[0].inst,u=l[1];return i((function(){c.value=n,c.getSnapshot=t,s(c)&&u({inst:c})}),[e,n,t]),o((function(){return s(c)&&u({inst:c}),e((function(){s(c)&&u({inst:c})}))}),[e]),a(n),n};return L.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,L}():B.exports=(F||(F=1,"production"!==P.env.NODE_ENV&&function(){function t(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=e,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,i=n.useEffect,a=n.useLayoutEffect,s=n.useDebugValue,l=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,u){l||void 0===n.startTransition||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=u();if(!c){var f=u();r(d,f)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var p=(f=o({inst:{value:d,getSnapshot:u}}))[0].inst,h=f[1];return a((function(){p.value=d,p.getSnapshot=u,t(p)&&h({inst:p})}),[e,d,u]),i((function(){return t(p)&&h({inst:p}),e((function(){t(p)&&h({inst:p})}))}),[e]),s(d),d};G.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),G)),B.exports}
|
|
11
2
|
/**
|
|
12
3
|
* @license React
|
|
13
4
|
* use-sync-external-store-shim/with-selector.production.js
|
|
@@ -16,66 +7,23 @@ Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=
|
|
|
16
7
|
*
|
|
17
8
|
* This source code is licensed under the MIT license found in the
|
|
18
9
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var v,w,x={};
|
|
20
|
-
/**
|
|
21
|
-
* @license React
|
|
22
|
-
* use-sync-external-store-shim/with-selector.development.js
|
|
23
|
-
*
|
|
24
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the MIT license found in the
|
|
27
|
-
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var C=(w||(w=1,"production"===process.env.NODE_ENV?u.exports=function(){if(g)return d;g=1;var t=e,n=b(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;return d.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!a){if(a=!0,o=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return i=t}return i=e}if(t=i,r(o,e))return t;var n=c(e);return void 0!==u&&u(t,n)?(o=e,t):(o=e,i=n)}var o,i,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,c,u]);var p=o(e,d[0],d[1]);return a((function(){f.hasValue=!0,f.value=p}),[p]),l(p),p},d}():u.exports=(v||(v=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=e,n=b(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;x.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!a){if(a=!0,o=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return i=t}return i=e}if(t=i,r(o,e))return t;var n=c(e);return void 0!==u&&u(t,n)?(o=e,t):(o=e,i=n)}var o,i,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,c,u]);var p=o(e,d[0],d[1]);return a((function(){f.hasValue=!0,f.value=p}),[p]),l(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),x)),u.exports),k=l(C);const{useDebugValue:E}=e,{useSyncExternalStoreWithSelector:S}=k;let I=!1;const _=e=>e;const A=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?s(e):e,n=(e,n)=>function(e,t=_,n){n&&!I&&(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"),I=!0);const r=S(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return E(r),r}(t,e,n);return Object.assign(n,t),n},N=e=>e?A(e):A;function O(e){return"[object Object]"===Object.prototype.toString.call(e)}function R(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(!R(e[o],t[o]))return!1}}return!(e instanceof Date&&t instanceof Date)||e.getTime()===t.getTime()}const M=(e,t)=>{let n=!1;if(!O(e))throw new Error("Target must be a plain object");if(!O(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(O(i)&&O(a)){const{new_obj:e,change:t}=M(a,i);t&&(n=!0,r[o]=e)}else R(a,i)||(n=!0,r[o]=i)})),{new_obj:r,change:n}},T=(e,t)=>{let n=!1;if(!O(e))throw new Error("Target must be a plain object");if(!O(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(O(i)&&O(a)){const{new_obj:e,change:t}=T(a,i);t&&(n=!0,r[o]=e)}}})),{new_obj:r,change:n}},P={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,try_get_full_value:void 0,render_options:{set_default:!0,type:"any"},set_hidden:void 0,hidden:!1},D=e=>{if(!e.id)throw new Error("IO must have an id but is missing for "+JSON.stringify(e));void 0===e.name&&(e.name=e.id);const{new_obj:t}=T(e,P);return"any"!==t.render_options.type&&void 0!==t.render_options.type||(t.render_options.type=t.type),t},j={id:"dummy",node_name:"dummy",properties:{"frontend:size":[200,100],"frontend:pos":[NaN,NaN],"frontend:collapsed":!1},io:{},name:"dummy",in_trigger:!1,io_order:[],progress:{ascii:!1,elapsed:0,initial:0,n:0,prefix:"idle",unit:"it",unit_divisor:1e3,unit_scale:!1}},F=(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)},L=JSON.stringify(j),z=e=>{if(!e.id)throw new Error("Node must have an id");const t=JSON.parse(L),{new_obj:n}=T(e,t);for(const e in n.io){if(void 0===n.io[e])continue;void 0===n.io[e].id&&(n.io[e].id=e);const t=D(n.io[e]);n.io[e]=t}return n},B=e=>{if(void 0===e.io&&(e.io={}),void 0===e.io_order)if(Array.isArray(e.io)){e.io_order=e.io.map((e=>e.id));const t={};for(const n of e.io)t[n.id]=n;e.io=t}else e.io_order=Object.keys(e.io);else if(Array.isArray(e.io)){const t={};for(const n of e.io)t[n.id]=n,e.io_order.includes(n.id)||e.io_order.push(n.id);e.io=t}else for(const t in e.io)e.io_order.includes(t)||e.io_order.push(t);return e};function V(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=V(e[r]))&&(t+=(t&&" ")+n);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}const{useDebugValue:G}=e,{useSyncExternalStoreWithSelector:W}=k,H=e=>e;function X(e,t=H,n){const r=W(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return G(r),r}const $=(e,t)=>{const n=s(e),r=(e,r=t)=>X(n,e,r);return Object.assign(r,n),r};function Z(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 Y={value:()=>{}};function U(){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 J(r)}function J(e){this._=e}function K(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function q(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=Y,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}J.prototype=U.prototype={constructor:J,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]=q(r[n],e.name,t);else if(null==t)for(n in r)r[n]=q(r[n],e.name,null);return this}for(;++i<a;)if((n=(e=o[i]).type)&&(n=K(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new J(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 Q="http://www.w3.org/1999/xhtml",ee={svg:"http://www.w3.org/2000/svg",xhtml:Q,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function te(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 ne(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Q&&t.documentElement.namespaceURI===Q?t.createElement(e):t.createElementNS(n,e)}}function re(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function oe(e){var t=te(e);return(t.local?re:ne)(t)}function ie(){}function ae(e){return null==e?ie:function(){return this.querySelector(e)}}function se(){return[]}function le(e){return null==e?se:function(){return this.querySelectorAll(e)}}function ce(e){return function(){return function(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}(e.apply(this,arguments))}}function ue(e){return function(){return this.matches(e)}}function de(e){return function(t){return t.matches(e)}}var fe=Array.prototype.find;function pe(){return this.firstElementChild}var he=Array.prototype.filter;function me(){return Array.from(this.children)}function ge(e){return new Array(e.length)}function ye(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function be(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 ye(e,i[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function ve(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 ye(e,i[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(p[s])===l&&(o[s]=l)}function we(e){return e.__data__}function xe(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Ce(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ke(e){return function(){this.removeAttribute(e)}}function Ee(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Se(e,t){return function(){this.setAttribute(e,t)}}function Ie(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function _e(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Ae(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 Ne(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Oe(e){return function(){this.style.removeProperty(e)}}function Re(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Me(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Te(e,t){return e.style.getPropertyValue(t)||Ne(e).getComputedStyle(e,null).getPropertyValue(t)}function Pe(e){return function(){delete this[e]}}function De(e,t){return function(){this[e]=t}}function je(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Fe(e){return e.trim().split(/^|\s+/)}function Le(e){return e.classList||new ze(e)}function ze(e){this._node=e,this._names=Fe(e.getAttribute("class")||"")}function Be(e,t){for(var n=Le(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function Ve(e,t){for(var n=Le(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function Ge(e){return function(){Be(this,e)}}function We(e){return function(){Ve(this,e)}}function He(e,t){return function(){(t.apply(this,arguments)?Be:Ve)(this,e)}}function Xe(){this.textContent=""}function $e(e){return function(){this.textContent=e}}function Ze(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Ye(){this.innerHTML=""}function Ue(e){return function(){this.innerHTML=e}}function Je(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Ke(){this.nextSibling&&this.parentNode.appendChild(this)}function qe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qe(){return null}function et(){var e=this.parentNode;e&&e.removeChild(this)}function tt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rt(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 ot(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 it(e,t,n){var r=Ne(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 at(e,t){return function(){return it(this,e,t)}}function st(e,t){return function(){return it(this,e,t.apply(this,arguments))}}ye.prototype={constructor:ye,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)}},ze.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 lt=[null];function ct(e,t){this._groups=e,this._parents=t}function ut(){return new ct([[document.documentElement]],lt)}function dt(e){return"string"==typeof e?new ct([[document.querySelector(e)]],[document.documentElement]):new ct([[e]],lt)}function ft(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]}ct.prototype=ut.prototype={constructor:ct,select:function(e){"function"!=typeof e&&(e=ae(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 ct(r,this._parents)},selectAll:function(e){e="function"==typeof e?ce(e):le(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 ct(r,o)},selectChild:function(e){return this.select(null==e?pe:function(e){return function(){return fe.call(this.children,e)}}("function"==typeof e?e:de(e)))},selectChildren:function(e){return this.selectAll(null==e?me:function(e){return function(){return he.call(this.children,e)}}("function"==typeof e?e:de(e)))},filter:function(e){"function"!=typeof e&&(e=ue(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 ct(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,we);var n=t?ve:be,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=xe(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,b,v=0,w=0;v<h;++v)if(y=m[v]){for(v>=w&&(w=v+1);!(b=g[w])&&++w<h;);y._next=b||null}}return(a=new ct(a,r))._enter=s,a._exit=l,a},enter:function(){return new ct(this._enter||this._groups.map(ge),this._parents)},exit:function(){return new ct(this._exit||this._groups.map(ge),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 ct(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=Ce);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 ct(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=te(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?Ee:ke:"function"==typeof t?n.local?Ae:_e:n.local?Ie:Se)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Oe:"function"==typeof t?Me:Re)(e,t,null==n?"":n)):Te(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Pe:"function"==typeof t?je:De)(e,t)):this.node()[e]},classed:function(e,t){var n=Fe(e+"");if(arguments.length<2){for(var r=Le(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?He:t?Ge:We)(n,t))},text:function(e){return arguments.length?this.each(null==e?Xe:("function"==typeof e?Ze:$e)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Ye:("function"==typeof e?Je:Ue)(e)):this.node().innerHTML},raise:function(){return this.each(Ke)},lower:function(){return this.each(qe)},append:function(e){var t="function"==typeof e?e:oe(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:oe(e),r=null==t?Qe:"function"==typeof t?t:ae(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?nt:tt)},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?ot:rt,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?st:at)(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 pt={passive:!1},ht={capture:!0,passive:!1};function mt(e){e.stopImmediatePropagation()}function gt(e){e.preventDefault(),e.stopImmediatePropagation()}function yt(e){var t=e.document.documentElement,n=dt(e).on("dragstart.drag",gt,ht);"onselectstart"in t?n.on("selectstart.drag",gt,ht):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function bt(e,t){var n=e.document.documentElement,r=dt(e).on("dragstart.drag",null);t&&(r.on("click.drag",gt,ht),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 vt=e=>()=>e;function wt(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 xt(e){return!e.ctrlKey&&!e.button}function Ct(){return this.parentNode}function kt(e,t){return null==t?{x:e.x,y:e.y}:t}function Et(){return navigator.maxTouchPoints||"ontouchstart"in this}function St(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function It(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function _t(){}wt.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var At=.7,Nt=1/At,Ot="\\s*([+-]?\\d+)\\s*",Rt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tt=/^#([0-9a-f]{3,8})$/,Pt=new RegExp(`^rgb\\(${Ot},${Ot},${Ot}\\)$`),Dt=new RegExp(`^rgb\\(${Mt},${Mt},${Mt}\\)$`),jt=new RegExp(`^rgba\\(${Ot},${Ot},${Ot},${Rt}\\)$`),Ft=new RegExp(`^rgba\\(${Mt},${Mt},${Mt},${Rt}\\)$`),Lt=new RegExp(`^hsl\\(${Rt},${Mt},${Mt}\\)$`),zt=new RegExp(`^hsla\\(${Rt},${Mt},${Mt},${Rt}\\)$`),Bt={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 Vt(){return this.rgb().formatHex()}function Gt(){return this.rgb().formatRgb()}function Wt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Tt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ht(t):3===n?new Zt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Xt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Xt(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=Pt.exec(e))?new Zt(t[1],t[2],t[3],1):(t=Dt.exec(e))?new Zt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jt.exec(e))?Xt(t[1],t[2],t[3],t[4]):(t=Ft.exec(e))?Xt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Lt.exec(e))?Qt(t[1],t[2]/100,t[3]/100,1):(t=zt.exec(e))?Qt(t[1],t[2]/100,t[3]/100,t[4]):Bt.hasOwnProperty(e)?Ht(Bt[e]):"transparent"===e?new Zt(NaN,NaN,NaN,0):null}function Ht(e){return new Zt(e>>16&255,e>>8&255,255&e,1)}function Xt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Zt(e,t,n,r)}function $t(e,t,n,r){return 1===arguments.length?function(e){return e instanceof _t||(e=Wt(e)),e?new Zt((e=e.rgb()).r,e.g,e.b,e.opacity):new Zt}(e):new Zt(e,t,n,null==r?1:r)}function Zt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Yt(){return`#${qt(this.r)}${qt(this.g)}${qt(this.b)}`}function Ut(){const e=Jt(this.opacity);return`${1===e?"rgb(":"rgba("}${Kt(this.r)}, ${Kt(this.g)}, ${Kt(this.b)}${1===e?")":`, ${e})`}`}function Jt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qt(e){return((e=Kt(e))<16?"0":"")+e.toString(16)}function Qt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tn(e,t,n,r)}function en(e){if(e instanceof tn)return new tn(e.h,e.s,e.l,e.opacity);if(e instanceof _t||(e=Wt(e)),!e)return new tn;if(e instanceof tn)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 tn(a,s,l,e.opacity)}function tn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function nn(e){return(e=(e||0)%360)<0?e+360:e}function rn(e){return Math.max(0,Math.min(1,e||0))}function on(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}St(_t,Wt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Vt,formatHex:Vt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return en(this).formatHsl()},formatRgb:Gt,toString:Gt}),St(Zt,$t,It(_t,{brighter(e){return e=null==e?Nt:Math.pow(Nt,e),new Zt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?At:Math.pow(At,e),new Zt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zt(Kt(this.r),Kt(this.g),Kt(this.b),Jt(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:Yt,formatHex:Yt,formatHex8:function(){return`#${qt(this.r)}${qt(this.g)}${qt(this.b)}${qt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ut,toString:Ut})),St(tn,(function(e,t,n,r){return 1===arguments.length?en(e):new tn(e,t,n,null==r?1:r)}),It(_t,{brighter(e){return e=null==e?Nt:Math.pow(Nt,e),new tn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?At:Math.pow(At,e),new tn(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 Zt(on(e>=240?e-240:e+120,o,r),on(e,o,r),on(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new tn(nn(this.h),rn(this.s),rn(this.l),Jt(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=Jt(this.opacity);return`${1===e?"hsl(":"hsla("}${nn(this.h)}, ${100*rn(this.s)}%, ${100*rn(this.l)}%${1===e?")":`, ${e})`}`}}));var an=e=>()=>e;function sn(e){return 1==(e=+e)?ln: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):an(isNaN(t)?n:t)}}function ln(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):an(isNaN(e)?t:e)}var cn=function e(t){var n=sn(t);function r(e,t){var r=n((e=$t(e)).r,(t=$t(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ln(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 un(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var dn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fn=new RegExp(dn.source,"g");function pn(e,t){var n,r,o,i=dn.lastIndex=fn.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=dn.exec(e))&&(r=fn.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:un(n,r)})),i=fn.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 hn,mn=180/Math.PI,gn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function yn(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)*mn,skewX:Math.atan(l)*mn,scaleX:a,scaleY:s}}function bn(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:un(e,o)},{i:l-2,x:un(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:un(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:un(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:un(e,n)},{i:s-2,x:un(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 vn=bn((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?gn:yn(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),wn=bn((function(e){return null==e?gn:(hn||(hn=document.createElementNS("http://www.w3.org/2000/svg","g")),hn.setAttribute("transform",e),(e=hn.transform.baseVal.consolidate())?yn((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):gn)}),", ",")",")");function xn(e){return((e=Math.exp(e))+1/e)/2}var Cn,kn,En=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),b=(f*f-c*c-r*m)/(2*f*n*g),v=Math.log(Math.sqrt(y*y+1)-y),w=Math.log(Math.sqrt(b*b+1)-b);a=(w-v)/t,i=function(e){var r=e*a,o=xn(v),i=c/(n*g)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+v)-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[s+i*p,l+i*h,c*o/xn(t*r+v)]}}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),Sn=0,In=0,_n=0,An=0,Nn=0,On=0,Rn="object"==typeof performance&&performance.now?performance:Date,Mn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Tn(){return Nn||(Mn(Pn),Nn=Rn.now()+On)}function Pn(){Nn=0}function Dn(){this._call=this._time=this._next=null}function jn(e,t,n){var r=new Dn;return r.restart(e,t,n),r}function Fn(){Nn=(An=Rn.now())+On,Sn=In=0;try{!function(){Tn(),++Sn;for(var e,t=Cn;t;)(e=Nn-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Sn}()}finally{Sn=0,function(){var e,t,n=Cn,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:Cn=t);kn=e,zn(r)}(),Nn=0}}function Ln(){var e=Rn.now(),t=e-An;t>1e3&&(On-=t,An=e)}function zn(e){Sn||(In&&(In=clearTimeout(In)),e-Nn>24?(e<1/0&&(In=setTimeout(Fn,e-Rn.now()-On)),_n&&(_n=clearInterval(_n))):(_n||(An=Rn.now(),_n=setInterval(Ln,1e3)),Sn=1,Mn(Fn)))}function Bn(e,t,n){var r=new Dn;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}Dn.prototype=jn.prototype={constructor:Dn,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Tn():+n)+(null==t?0:+t),this._next||kn===this||(kn?kn._next=this:Cn=this,kn=this),this._call=e,this._time=n,zn()},stop:function(){this._call&&(this._call=null,this._time=1/0,zn())}};var Vn=U("start","end","cancel","interrupt"),Gn=[];function Wn(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 Bn(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(Bn((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=jn(i,0,n.time)}(e,n,{name:t,index:r,group:o,on:Vn,tween:Gn,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function Hn(e,t){var n=$n(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Xn(e,t){var n=$n(e,t);if(n.state>3)throw new Error("too late; already running");return n}function $n(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Zn(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 Yn(e,t){var n,r;return function(){var o=Xn(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 Un(e,t,n){var r,o;if("function"!=typeof n)throw new Error;return function(){var i=Xn(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 Jn(e,t,n){var r=e._id;return e.each((function(){var e=Xn(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return $n(e,r).value[t]}}function Kn(e,t){var n;return("number"==typeof t?un:t instanceof Wt?cn:(n=Wt(t))?(t=n,cn):pn)(e,t)}function qn(e){return function(){this.removeAttribute(e)}}function Qn(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 tr(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 nr(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 rr(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 or(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 ir(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 ar(e,t){return function(){Hn(this,e).delay=+t.apply(this,arguments)}}function sr(e,t){return t=+t,function(){Hn(this,e).delay=t}}function lr(e,t){return function(){Xn(this,e).duration=+t.apply(this,arguments)}}function cr(e,t){return t=+t,function(){Xn(this,e).duration=t}}var ur=ut.prototype.constructor;function dr(e){return function(){this.style.removeProperty(e)}}var fr=0;function pr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function hr(){return++fr}var mr=ut.prototype;pr.prototype={constructor:pr,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=ae(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,Wn(d[f],t,n,f,d,$n(s,n)));return new pr(i,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=le(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=$n(l,n),m=0,g=p.length;m<g;++m)(f=p[m])&&Wn(f,t,n,m,p,h);i.push(p),a.push(l)}return new pr(i,a,t,n)},selectChild:mr.selectChild,selectChildren:mr.selectChildren,filter:function(e){"function"!=typeof e&&(e=ue(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 pr(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 pr(a,this._parents,this._name,this._id)},selection:function(){return new ur(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=hr(),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=$n(a,t);Wn(a,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new pr(r,this._parents,e,n)},call:mr.call,nodes:mr.nodes,node:mr.node,size:mr.size,empty:mr.empty,each:mr.each,on:function(e,t){var n=this._id;return arguments.length<2?$n(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)?Hn:Xn;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=te(e),r="transform"===n?wn:Kn;return this.attrTween(e,"function"==typeof t?(n.local?rr:nr)(n,r,Jn(this,"attr."+e,t)):null==t?(n.local?Qn:qn)(n):(n.local?tr: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=te(e);return this.tween(n,(r.local?or:ir)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?vn:Kn;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=Te(this,e),a=(this.style.removeProperty(e),Te(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,dr(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=Te(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=Te(this,e)),a===l?null:a===r&&l===o?i:(o=l,i=t(r=a,s))}}(e,r,Jn(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,s="end."+a;return function(){var l=Xn(this,e),c=l.on,u=null==l.value[a]?i||(i=dr(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=Te(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}}(Jn(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=$n(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?Yn:Un)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?ar:sr)(t,e)):$n(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?lr:cr)(t,e)):$n(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(){Xn(this,e).ease=t}}(t,e)):$n(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;Xn(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=Xn(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]:mr[Symbol.iterator]};var gr={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function yr(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}ut.prototype.interrupt=function(e){return this.each((function(){Zn(this,e)}))},ut.prototype.transition=function(e){var t,n;e instanceof pr?(t=e._id,e=e._name):(t=hr(),(n=gr).time=Tn(),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])&&Wn(a,e,t,c,s,n||yr(a,t));return new pr(r,this._parents,e,t)};var br=e=>()=>e;function vr(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 wr(e,t,n){this.k=e,this.x=t,this.y=n}wr.prototype={constructor:wr,scale:function(e){return 1===e?this:new wr(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new wr(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 xr=new wr(1,0,0);function Cr(e){e.stopImmediatePropagation()}function kr(e){e.preventDefault(),e.stopImmediatePropagation()}function Er(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Sr(){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 Ir(){return this.__zoom||xr}function _r(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ar(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nr(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 Or(){var e,t,n,r=Er,o=Sr,i=Nr,a=_r,s=Ar,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=En,f=U("start","zoom","end"),p=0,h=10;function m(e){e.property("__zoom",Ir).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",E).filter(s).on("touchstart.zoom",S).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",_).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 wr(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 wr(e.k,r,o)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function v(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?b(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 wr(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 C(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=ft(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)],Zn(this),n.start()}kr(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 k(e,...t){if(!n&&r.apply(this,arguments)){var o=e.currentTarget,a=w(this,t,!0).event(e),s=dt(e.view).on("mousemove.zoom",(function(e){if(kr(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]=ft(e,o),a.mouse[1]),a.extent,c))}),!0).on("mouseup.zoom",(function(e){s.on("mousemove.zoom mouseup.zoom",null),bt(e.view,a.moved),kr(e),a.event(e).end()}),!0),l=ft(e,o),u=e.clientX,d=e.clientY;yt(e.view),Cr(e),a.mouse=[l,this.__zoom.invert(l)],Zn(this),a.start()}}function E(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,a=ft(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);kr(e),u>0?dt(this).transition().duration(u).call(v,d,a,e):dt(this).call(m.transform,d,a,e)}}function S(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(Cr(n),a=0;a<u;++a)l=[l=ft(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)),Zn(this),d.start())}}function I(e,...t){if(this.__zooming){var n,r,o,a,s=w(this,t).event(e),l=e.changedTouches,u=l.length;for(kr(e),n=0;n<u;++n)o=ft(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,b=(b=h[0]-f[0])*b+(b=h[1]-f[1])*b;r=g(r,Math.sqrt(m/b)),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 _(e,...r){if(this.__zooming){var o,i,a=w(this,r).event(e),s=e.changedTouches,l=s.length;for(Cr(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=ft(i,this),Math.hypot(t[0]-i[0],t[1]-i[1])<h)){var c=dt(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",Ir),e!==o?v(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?b(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?b(e):"function"==typeof r?r.apply(this,arguments):r;return i(xr.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=dt(this.that).datum();f.call(e,this.that,new vr(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:br(+e),m):a},m.filter=function(e){return arguments.length?(r="function"==typeof e?e:br(!!e),m):r},m.touchable=function(e){return arguments.length?(s="function"==typeof e?e:br(!!e),m):s},m.extent=function(e){return arguments.length?(o="function"==typeof e?e:br([[+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}wr.prototype;const Rr=e.createContext(null),Mr=Rr.Provider,Tr=()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",Pr=e=>`Node type "${e}" not found. Using fallback type "default".`,Dr=()=>"The React Flow parent container needs a width and a height to render the graph.",jr=()=>"Only child nodes can use a parent extent.",Fr=()=>"Can't create edge. An edge needs a source and a target.",Lr=e=>`Marker type "${e}" doesn't exist.`,zr=(e,t)=>`Couldn't create edge for ${e?"target":"source"} handle id: "${e?t.targetHandle:t.sourceHandle}", edge id: ${t.id}.`,Br=()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",Vr=e=>`Edge type "${e}" not found. Using fallback type "default".`,Gr=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.`,Wr=(()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001")();function Hr(t,n){const r=e.useContext(Rr);if(null===r)throw new Error(Wr);return X(r,t,n)}const Xr=()=>{const t=e.useContext(Rr);if(null===t)throw new Error(Wr);return e.useMemo((()=>({getState:t.getState,setState:t.setState,subscribe:t.subscribe,destroy:t.destroy})),[t])},$r=e=>e.userSelectionActive?"none":"all";function Zr({position:t,children:n,className:r,style:o,...i}){const a=Hr($r),s=`${t}`.split("-");return e.createElement("div",{className:V(["react-flow__panel",r,...s]),style:{...o,pointerEvents:a},...i},n)}function Yr({proOptions:t,position:n="bottom-right"}){return t?.hideAttribution?null:e.createElement(Zr,{position:n,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro"},e.createElement("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution"},"React Flow"))}var Ur=e.memo((({x:t,y:n,label:r,labelStyle:o={},labelShowBg:i=!0,labelBgStyle:a={},labelBgPadding:s=[2,4],labelBgBorderRadius:l=2,children:c,className:u,...d})=>{const f=e.useRef(null),[p,h]=e.useState({x:0,y:0,width:0,height:0}),m=V(["react-flow__edge-textwrapper",u]);return e.useEffect((()=>{if(f.current){const e=f.current.getBBox();h({x:e.x,y:e.y,width:e.width,height:e.height})}}),[r]),void 0!==r&&r?e.createElement("g",{transform:`translate(${t-p.width/2} ${n-p.height/2})`,className:m,visibility:p.width?"visible":"hidden",...d},i&&e.createElement("rect",{width:p.width+2*s[0],x:-s[0],y:-s[1],height:p.height+2*s[1],className:"react-flow__edge-textbg",style:a,rx:l,ry:l}),e.createElement("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:f,style:o},r),c):null}));const Jr=e=>({width:e.offsetWidth,height:e.offsetHeight}),Kr=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),qr=(e={x:0,y:0},t)=>({x:Kr(e.x,t[0][0],t[1][0]),y:Kr(e.y,t[0][1],t[1][1])}),Qr=(e,t,n)=>e<t?Kr(Math.abs(e-t),1,50)/50:e>n?-Kr(Math.abs(e-n),1,50)/50:0,eo=(e,t)=>[20*Qr(e.x,35,t.width-35),20*Qr(e.y,35,t.height-35)],to=e=>e.getRootNode?.()||window?.document,no=(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)}),ro=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),oo=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),io=e=>({...e.positionAbsolute||{x:0,y:0},width:e.width||0,height:e.height||0}),ao=(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)},so=e=>!isNaN(e)&&isFinite(e),lo=Symbol.for("internals"),co=["Enter"," ","Escape"],uo=(e,t)=>{"development"===process.env.NODE_ENV&&console.warn(`[React Flow]: ${t} Help: https://reactflow.dev/error#${e}`)};function fo(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 po=e=>"clientX"in e,ho=(e,t)=>{const n=po(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)}},mo=()=>"undefined"!=typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0,go=({id:t,path:n,labelX:r,labelY:o,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:f,markerStart:p,interactionWidth:h=20})=>e.createElement(e.Fragment,null,e.createElement("path",{id:t,style:d,d:n,fill:"none",className:"react-flow__edge-path",markerEnd:f,markerStart:p}),h&&e.createElement("path",{d:n,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}),i&&so(r)&&so(o)?e.createElement(Ur,{x:r,y:o,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u}):null);function yo(e,t,n){return void 0===n?n:r=>{const o=t().edges.find((t=>t.id===e));o&&n(r,{...o})}}function bo({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 vo({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 wo,xo,Co,ko,Eo,So;function Io({pos:e,x1:t,y1:n,x2:r,y2:o}){return e===So.Left||e===So.Right?[.5*(t+r),n]:[t,.5*(n+o)]}function _o({sourceX:e,sourceY:t,sourcePosition:n=So.Bottom,targetX:r,targetY:o,targetPosition:i=So.Top}){const[a,s]=Io({pos:n,x1:e,y1:t,x2:r,y2:o}),[l,c]=Io({pos:i,x1:r,y1:o,x2:e,y2:t}),[u,d,f,p]=vo({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]}go.displayName="BaseEdge",function(e){e.Strict="strict",e.Loose="loose"}(wo||(wo={})),function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"}(xo||(xo={})),function(e){e.Partial="partial",e.Full="full"}(Co||(Co={})),function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"}(ko||(ko={})),function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"}(Eo||(Eo={})),function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"}(So||(So={}));const Ao=e.memo((({sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:i=So.Bottom,targetPosition:a=So.Top,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:m,interactionWidth:g})=>{const[y,b,v]=_o({sourceX:t,sourceY:n,sourcePosition:i,targetX:r,targetY:o,targetPosition:a});return e.createElement(go,{path:y,labelX:b,labelY:v,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:m,interactionWidth:g})}));Ao.displayName="SimpleBezierEdge";const No={[So.Left]:{x:-1,y:0},[So.Right]:{x:1,y:0},[So.Top]:{x:0,y:-1},[So.Bottom]:{x:0,y:1}},Oo=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function Ro({source:e,sourcePosition:t=So.Bottom,target:n,targetPosition:r=So.Top,center:o,offset:i}){const a=No[t],s=No[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=So.Bottom,target:n})=>t===So.Left||t===So.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},[b,v,w,x]=bo({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(a[d]*s[d]==-1){p=o.x??b,h=o.y??v;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 b={x:l.x+g.x,y:l.y+g.y},v={x:c.x+y.x,y:c.y+y.y};Math.max(Math.abs(b.x-m[0].x),Math.abs(v.x-m[0].x))>=Math.max(Math.abs(b.y-m[0].y),Math.abs(v.y-m[0].y))?(p=(b.x+v.x)/2,h=m[0].y):(p=m[0].x,h=(b.y+v.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 Mo({sourceX:e,sourceY:t,sourcePosition:n=So.Bottom,targetX:r,targetY:o,targetPosition:i=So.Top,borderRadius:a=5,centerX:s,centerY:l,offset:c=20}){const[u,d,f,p,h]=Ro({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(Oo(e,t)/2,Oo(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 To=e.memo((({sourceX:t,sourceY:n,targetX:r,targetY:o,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,sourcePosition:f=So.Bottom,targetPosition:p=So.Top,markerEnd:h,markerStart:m,pathOptions:g,interactionWidth:y})=>{const[b,v,w]=Mo({sourceX:t,sourceY:n,sourcePosition:f,targetX:r,targetY:o,targetPosition:p,borderRadius:g?.borderRadius,offset:g?.offset});return e.createElement(go,{path:b,labelX:v,labelY:w,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:h,markerStart:m,interactionWidth:y})}));To.displayName="SmoothStepEdge";const Po=e.memo((t=>e.createElement(To,{...t,pathOptions:e.useMemo((()=>({borderRadius:0,offset:t.pathOptions?.offset})),[t.pathOptions?.offset])})));Po.displayName="StepEdge";const Do=e.memo((({sourceX:t,sourceY:n,targetX:r,targetY:o,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:f,markerStart:p,interactionWidth:h})=>{const[m,g,y]=function({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,a,s]=bo({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,a,s]}({sourceX:t,sourceY:n,targetX:r,targetY:o});return e.createElement(go,{path:m,labelX:g,labelY:y,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:f,markerStart:p,interactionWidth:h})}));function jo(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function Fo({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case So.Left:return[t-jo(t-r,i),n];case So.Right:return[t+jo(r-t,i),n];case So.Top:return[t,n-jo(n-o,i)];case So.Bottom:return[t,n+jo(o-n,i)]}}function Lo({sourceX:e,sourceY:t,sourcePosition:n=So.Bottom,targetX:r,targetY:o,targetPosition:i=So.Top,curvature:a=.25}){const[s,l]=Fo({pos:n,x1:e,y1:t,x2:r,y2:o,c:a}),[c,u]=Fo({pos:i,x1:r,y1:o,x2:e,y2:t,c:a}),[d,f,p,h]=vo({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]}Do.displayName="StraightEdge";const zo=e.memo((({sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:i=So.Bottom,targetPosition:a=So.Top,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:m,pathOptions:g,interactionWidth:y})=>{const[b,v,w]=Lo({sourceX:t,sourceY:n,sourcePosition:i,targetX:r,targetY:o,targetPosition:a,curvature:g?.curvature});return e.createElement(go,{path:b,labelX:v,labelY:w,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:m,interactionWidth:y})}));zo.displayName="BezierEdge";const Bo=e.createContext(null),Vo=Bo.Provider;Bo.Consumer;const Go=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`reactflow__edge-${e}${t||""}-${n}${r||""}`,Wo=(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("&")}`},Ho=({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},Xo=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r}),$o=(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}},Zo=(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}=$o(n,t).positionAbsolute;return no(e,ro({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 oo(n)},Yo=(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}=$o(e,s),d={x:u.x,y:u.y,width:t||0,height:n||0},f=ao(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},Uo=(e,t)=>{const n=e.map((e=>e.id));return t.filter((e=>n.includes(e.source)||n.includes(e.target)))},Jo=(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=Kr(l,r,o);return{x:t/2-(e.x+e.width/2)*c,y:n/2-(e.y+e.height/2)*c,zoom:c}},Ko=(e,t=0)=>e.transition().duration(t);function qo(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 Qo={source:null,target:null,sourceHandle:null,targetHandle:null},ei=()=>({handleDomNode:null,isValid:!1,connection:Qo,endHandle:null});function ti(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={...ei(),handleDomNode:l};if(l){const e=ni(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===wo.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 ni(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function ri(e){e?.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function oi(e,t){let n=null;return t?n="valid":e&&!t&&(n="invalid"),n}function ii({event:e,handleId:t,nodeId:n,onConnect:r,isTarget:o,getState:i,setState:a,isValidConnection:s,edgeUpdaterType:l,onReconnectEnd:c}){const u=to(e.target),{connectionMode:d,domNode:f,autoPanOnConnect:p,connectionRadius:h,onConnectStart:m,panBy:g,getNodes:y,cancelConnection:b}=i();let v,w=0;const{x:x,y:C}=ho(e),k=u?.elementFromPoint(x,C),E=ni(l,k),S=f?.getBoundingClientRect();if(!S||!E)return;let I,_=ho(e,S),A=!1,N=null,O=!1,R=null;const M=function({nodes:e,nodeId:t,handleId:n,handleType:r}){return e.reduce(((e,o)=>{if(o[lo]){const{handleBounds:i}=o[lo];let a=[],s=[];i&&(a=qo(o,i,"source",`${t}-${n}-${r}`),s=qo(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]=eo(_,S);g({x:e,y:t}),w=requestAnimationFrame(T)};function P(e){const{transform:r}=i();_=ho(e,S);const{handle:l,validHandleResult:c}=function(e,t,n,r,o,i){const{x:a,y:s}=ho(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=ni(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:ei()};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,Ho(_,r,!1,[1,1]),h,M,(e=>ti(e,d,n,t,o?"target":"source",s,u)));if(v=l,A||(T(),A=!0),R=c.handleDomNode,N=c.connection,O=c.isValid,a({connectionPosition:v&&O?Xo({x:v.x,y:v.y},r):_,connectionStatus:oi(!!v,O),connectionEndHandle:c.endHandle}),!v&&!O&&!R)return ri(I);N.source!==N.target&&R&&(ri(I),I=R,R.classList.add("connecting","react-flow__handle-connecting"),R.classList.toggle("valid",O),R.classList.toggle("react-flow__handle-valid",O))}function D(e){(v||R)&&N&&O&&r?.(N),i().onConnectEnd?.(e),l&&c?.(e),ri(I),b(),cancelAnimationFrame(w),A=!1,O=!1,N=null,R=null,u.removeEventListener("mousemove",P),u.removeEventListener("mouseup",D),u.removeEventListener("touchmove",P),u.removeEventListener("touchend",D)}a({connectionPosition:_,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",P),u.addEventListener("mouseup",D),u.addEventListener("touchmove",P),u.addEventListener("touchend",D)}const ai=()=>!0,si=e=>({connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName}),li=e.forwardRef((({type:t="source",position:n=So.Top,isValidConnection:r,isConnectable:o=!0,isConnectableStart:i=!0,isConnectableEnd:a=!0,id:s,onConnect:l,children:c,className:u,onMouseDown:d,onTouchStart:f,...p},h)=>{const m=s||null,g="target"===t,y=Xr(),b=e.useContext(Bo),{connectOnClick:v,noPanClassName:w}=Hr(si,Z),{connecting:x,clickConnecting:C}=Hr(((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}})(b,m,t),Z);b||y.getState().onError?.("010",Br());const k=e=>{const{defaultEdgeOptions:t,onConnect:n,hasDefaultEdges:r}=y.getState(),o={...t,...e};if(r){const{edges:e,setEdges:t}=y.getState();t(((e,t)=>{if(!e.source||!e.target)return uo("006",Fr()),t;let n;return n=(e=>"id"in e&&"source"in e&&"target"in e)(e)?{...e}:{...e,id:Go(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),l?.(o)},E=e=>{if(!b)return;const t=po(e);i&&(t&&0===e.button||!t)&&ii({event:e,handleId:m,nodeId:b,onConnect:k,isTarget:g,getState:y.getState,setState:y.setState,isValidConnection:r||y.getState().isValidConnection||ai}),t?d?.(e):f?.(e)};return e.createElement("div",{"data-handleid":m,"data-nodeid":b,"data-handlepos":n,"data-id":`${b}-${m}-${t}`,className:V(["react-flow__handle",`react-flow__handle-${n}`,"nodrag",w,u,{source:!g,target:g,connectable:o,connectablestart:i,connectableend:a,connecting:C,connectionindicator:o&&(i&&!x||a&&x)}]),onMouseDown:E,onTouchStart:E,onClick:v?e=>{const{onClickConnectStart:n,onClickConnectEnd:o,connectionClickStartHandle:a,connectionMode:s,isValidConnection:l}=y.getState();if(!b||!a&&!i)return;if(!a)return n?.(e,{nodeId:b,handleId:m,handleType:t}),void y.setState({connectionClickStartHandle:{nodeId:b,type:t,handleId:m}});const c=to(e.target),u=r||l||ai,{connection:d,isValid:f}=ti({nodeId:b,id:m,type:t},s,a.nodeId,a.handleId||null,a.type,u,c);f&&k(d),o?.(e),y.setState({connectionClickStartHandle:null})}:void 0,ref:h,...p},c)}));li.displayName="Handle";var ci=e.memo(li);const ui=({data:t,isConnectable:n,targetPosition:r=So.Top,sourcePosition:o=So.Bottom})=>e.createElement(e.Fragment,null,e.createElement(ci,{type:"target",position:r,isConnectable:n}),t?.label,e.createElement(ci,{type:"source",position:o,isConnectable:n}));ui.displayName="DefaultNode";var di=e.memo(ui);const fi=({data:t,isConnectable:n,sourcePosition:r=So.Bottom})=>e.createElement(e.Fragment,null,t?.label,e.createElement(ci,{type:"source",position:r,isConnectable:n}));fi.displayName="InputNode";var pi=e.memo(fi);const hi=({data:t,isConnectable:n,targetPosition:r=So.Top})=>e.createElement(e.Fragment,null,e.createElement(ci,{type:"target",position:r,isConnectable:n}),t?.label);hi.displayName="OutputNode";var mi=e.memo(hi);const gi=()=>null;gi.displayName="GroupNode";const yi=e=>({selectedNodes:e.getNodes().filter((e=>e.selected)),selectedEdges:e.edges.filter((e=>e.selected)).map((e=>({...e})))}),bi=e=>e.id;function vi(e,t){return Z(e.selectedNodes.map(bi),t.selectedNodes.map(bi))&&Z(e.selectedEdges.map(bi),t.selectedEdges.map(bi))}const wi=e.memo((({onSelectionChange:t})=>{const n=Xr(),{selectedNodes:r,selectedEdges:o}=Hr(yi,vi);return e.useEffect((()=>{const e={nodes:r,edges:o};t?.(e),n.getState().onSelectionChange.forEach((t=>t(e)))}),[r,o,t]),null}));wi.displayName="SelectionListener";const xi=e=>!!e.onSelectionChange;function Ci({onSelectionChange:t}){const n=Hr(xi);return t||n?e.createElement(wi,{onSelectionChange:t}):null}const ki=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 Ei(t,n){e.useEffect((()=>{void 0!==t&&n(t)}),[t])}function Si(t,n,r){e.useEffect((()=>{void 0!==n&&r({[t]:n})}),[n])}const Ii=({nodes:t,edges:n,defaultNodes:r,defaultEdges:o,onConnect:i,onConnectStart:a,onConnectEnd:s,onClickConnectStart:l,onClickConnectEnd:c,nodesDraggable:u,nodesConnectable:d,nodesFocusable:f,edgesFocusable:p,edgesUpdatable:h,elevateNodesOnSelect:m,minZoom:g,maxZoom:y,nodeExtent:b,onNodesChange:v,onEdgesChange:w,elementsSelectable:x,connectionMode:C,snapGrid:k,snapToGrid:E,translateExtent:S,connectOnClick:I,defaultEdgeOptions:_,fitView:A,fitViewOptions:N,onNodesDelete:O,onEdgesDelete:R,onNodeDrag:M,onNodeDragStart:T,onNodeDragStop:P,onSelectionDrag:D,onSelectionDragStart:j,onSelectionDragStop:F,noPanClassName:L,nodeOrigin:z,rfId:B,autoPanOnConnect:V,autoPanOnNodeDrag:G,onError:W,connectionRadius:H,isValidConnection:X,nodeDragThreshold:$})=>{const{setNodes:Y,setEdges:U,setDefaultNodesAndEdges:J,setMinZoom:K,setMaxZoom:q,setTranslateExtent:Q,setNodeExtent:ee,reset:te}=Hr(ki,Z),ne=Xr();return e.useEffect((()=>{const e=o?.map((e=>({...e,..._})));return J(r,e),()=>{te()}}),[]),Si("defaultEdgeOptions",_,ne.setState),Si("connectionMode",C,ne.setState),Si("onConnect",i,ne.setState),Si("onConnectStart",a,ne.setState),Si("onConnectEnd",s,ne.setState),Si("onClickConnectStart",l,ne.setState),Si("onClickConnectEnd",c,ne.setState),Si("nodesDraggable",u,ne.setState),Si("nodesConnectable",d,ne.setState),Si("nodesFocusable",f,ne.setState),Si("edgesFocusable",p,ne.setState),Si("edgesUpdatable",h,ne.setState),Si("elementsSelectable",x,ne.setState),Si("elevateNodesOnSelect",m,ne.setState),Si("snapToGrid",E,ne.setState),Si("snapGrid",k,ne.setState),Si("onNodesChange",v,ne.setState),Si("onEdgesChange",w,ne.setState),Si("connectOnClick",I,ne.setState),Si("fitViewOnInit",A,ne.setState),Si("fitViewOnInitOptions",N,ne.setState),Si("onNodesDelete",O,ne.setState),Si("onEdgesDelete",R,ne.setState),Si("onNodeDrag",M,ne.setState),Si("onNodeDragStart",T,ne.setState),Si("onNodeDragStop",P,ne.setState),Si("onSelectionDrag",D,ne.setState),Si("onSelectionDragStart",j,ne.setState),Si("onSelectionDragStop",F,ne.setState),Si("noPanClassName",L,ne.setState),Si("nodeOrigin",z,ne.setState),Si("rfId",B,ne.setState),Si("autoPanOnConnect",V,ne.setState),Si("autoPanOnNodeDrag",G,ne.setState),Si("onError",W,ne.setState),Si("connectionRadius",H,ne.setState),Si("isValidConnection",X,ne.setState),Si("nodeDragThreshold",$,ne.setState),Ei(t,Y),Ei(n,U),Ei(g,K),Ei(y,q),Ei(S,Q),Ei(b,ee),null},_i={display:"none"},Ai={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Ni="react-flow__node-desc",Oi="react-flow__edge-desc",Ri=e=>e.ariaLiveMessage;function Mi({rfId:t}){const n=Hr(Ri);return e.createElement("div",{id:`react-flow__aria-live-${t}`,"aria-live":"assertive","aria-atomic":"true",style:Ai},n)}function Ti({rfId:t,disableKeyboardA11y:n}){return e.createElement(e.Fragment,null,e.createElement("div",{id:`${Ni}-${t}`,style:_i},"Press enter or space to select a node.",!n&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "),e.createElement("div",{id:`${Oi}-${t}`,style:_i},"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."),!n&&e.createElement(Mi,{rfId:t}))}var Pi=(t=null,n={actInsideInputWithModifier:!0})=>{const[r,o]=e.useState(!1),i=e.useRef(!1),a=e.useRef(new Set([])),[s,l]=e.useMemo((()=>{if(null!==t){const e=(Array.isArray(t)?t:[t]).filter((e=>"string"==typeof e)).map((e=>e.split("+"))),n=e.reduce(((e,t)=>e.concat(...t)),[]);return[e,n]}return[[],[]]}),[t]);return e.useEffect((()=>{const e="undefined"!=typeof document?document:null,r=n?.target||e;if(null!==t){const e=e=>{i.current=e.ctrlKey||e.metaKey||e.shiftKey;if((!i.current||i.current&&!n.actInsideInputWithModifier)&&fo(e))return!1;const t=ji(e.code,l);a.current.add(e[t]),Di(s,a.current,!1)&&(e.preventDefault(),o(!0))},t=e=>{if((!i.current||i.current&&!n.actInsideInputWithModifier)&&fo(e))return!1;const t=ji(e.code,l);Di(s,a.current,!0)?(o(!1),a.current.clear()):a.current.delete(e[t]),"Meta"===e.key&&a.current.clear(),i.current=!1},c=()=>{a.current.clear(),o(!1)};return r?.addEventListener("keydown",e),r?.addEventListener("keyup",t),window.addEventListener("blur",c),()=>{r?.removeEventListener("keydown",e),r?.removeEventListener("keyup",t),window.removeEventListener("blur",c)}}}),[t,o]),r};function Di(e,t,n){return e.filter((e=>n||e.length===t.size)).some((e=>e.every((e=>t.has(e)))))}function ji(e,t){return t.includes(e)?"code":"key"}function Fi(e,t,n,r){const o=e.parentNode||e.parentId;if(!o)return n;const i=t.get(o),a=$o(i,r);return Fi(i,t,{x:(n.x??0)+a.x,y:(n.y??0)+a.y,z:(i[lo]?.z??0)>(n.z??0)?i[lo]?.z??0:n.z??0},r)}function Li(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}=Fi(r,e,{...r.position,z:r[lo]?.z??0},t);r.positionAbsolute={x:o,y:i},r[lo].z=a,n?.[r.id]&&(r[lo].isParent=!0)}}))}function zi(e,t,n,r){const o=new Map,i={},a=r?1e3:0;return e.forEach((e=>{const n=(so(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,lo,{enumerable:!1,value:{handleBounds:c?void 0:r?.[lo]?.handleBounds,z:n}}),o.set(e.id,s)})),Li(o,n,i),o}function Bi(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=Zo(e,d),{x:c,y:u,zoom:f}=Jo(n,r,o,t.minZoom??i,t.maxZoom??a,t.padding??.1),p=xr.translate(c,u).scale(f);return"number"==typeof t.duration&&t.duration>0?s.transform(Ko(l,t.duration),p):s.transform(l,p),!0}}return!1}function Vi(e,t){return e.forEach((e=>{const n=t.get(e.id);n&&t.set(n.id,{...n,[lo]:n[lo],selected:e.selected})})),new Map(t)}function Gi(e,t){return t.map((t=>{const n=e.find((e=>e.id===t.id));return n&&(t.selected=n.selected),t}))}function Wi({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:Vi(e,o)}),a?.(e)),t?.length&&(c&&r({edges:Gi(t,i)}),s?.(t))}const Hi=()=>{},Xi={zoomIn:Hi,zoomOut:Hi,zoomTo:Hi,getZoom:()=>1,setViewport:Hi,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:Hi,fitBounds:Hi,project:e=>e,screenToFlowPosition:e=>e,flowToScreenPosition:e=>e,viewportInitialized:!1},$i=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection});function Zi(){const t=(()=>{const t=Xr(),{d3Zoom:n,d3Selection:r}=Hr($i,Z),o=e.useMemo((()=>r&&n?{zoomIn:e=>n.scaleBy(Ko(r,e?.duration),1.2),zoomOut:e=>n.scaleBy(Ko(r,e?.duration),1/1.2),zoomTo:(e,t)=>n.scaleTo(Ko(r,t?.duration),e),getZoom:()=>t.getState().transform[2],setViewport:(e,o)=>{const[i,a,s]=t.getState().transform,l=xr.translate(e.x??i,e.y??a).scale(e.zoom??s);n.transform(Ko(r,o?.duration),l)},getViewport:()=>{const[e,n,r]=t.getState().transform;return{x:e,y:n,zoom:r}},fitView:e=>Bi(t.getState,e),setCenter:(e,o,i)=>{const{width:a,height:s,maxZoom:l}=t.getState(),c=void 0!==i?.zoom?i.zoom:l,u=a/2-e*c,d=s/2-o*c,f=xr.translate(u,d).scale(c);n.transform(Ko(r,i?.duration),f)},fitBounds:(e,o)=>{const{width:i,height:a,minZoom:s,maxZoom:l}=t.getState(),{x:c,y:u,zoom:d}=Jo(e,i,a,s,l,o?.padding??.1),f=xr.translate(c,u).scale(d);n.transform(Ko(r,o?.duration),f)},project:e=>{const{transform:n,snapToGrid:r,snapGrid:o}=t.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"),Ho(e,n,r,o)},screenToFlowPosition:e=>{const{transform:n,snapToGrid:r,snapGrid:o,domNode:i}=t.getState();if(!i)return e;const{x:a,y:s}=i.getBoundingClientRect(),l={x:e.x-a,y:e.y-s};return Ho(l,n,r,o)},flowToScreenPosition:e=>{const{transform:n,domNode:r}=t.getState();if(!r)return e;const{x:o,y:i}=r.getBoundingClientRect(),a=Xo(e,n);return{x:a.x+o,y:a.y+i}},viewportInitialized:!0}:Xi),[n,r]);return o})(),n=Xr(),r=e.useCallback((()=>n.getState().getNodes().map((e=>({...e})))),[]),o=e.useCallback((e=>n.getState().nodeInternals.get(e)),[]),i=e.useCallback((()=>{const{edges:e=[]}=n.getState();return e.map((e=>({...e})))}),[]),a=e.useCallback((e=>{const{edges:t=[]}=n.getState();return t.find((t=>t.id===e))}),[]),s=e.useCallback((e=>{const{getNodes:t,setNodes:r,hasDefaultNodes:o,onNodesChange:i}=n.getState(),a=t(),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)}}),[]),l=e.useCallback((e=>{const{edges:t=[],setEdges:r,hasDefaultEdges:o,onEdgesChange:i}=n.getState(),a="function"==typeof e?e(t):e;if(o)r(a);else if(i){i(0===a.length?t.map((e=>({type:"remove",id:e.id}))):a.map((e=>({item:e,type:"reset"}))))}}),[]),c=e.useCallback((e=>{const t=Array.isArray(e)?e:[e],{getNodes:r,setNodes:o,hasDefaultNodes:i,onNodesChange:a}=n.getState();if(i){o([...r(),...t])}else if(a){const e=t.map((e=>({item:e,type:"add"})));a(e)}}),[]),u=e.useCallback((e=>{const t=Array.isArray(e)?e:[e],{edges:r=[],setEdges:o,hasDefaultEdges:i,onEdgesChange:a}=n.getState();if(i)o([...r,...t]);else if(a){a(t.map((e=>({item:e,type:"add"}))))}}),[]),d=e.useCallback((()=>{const{getNodes:e,edges:t=[],transform:r}=n.getState(),[o,i,a]=r;return{nodes:e().map((e=>({...e}))),edges:t.map((e=>({...e}))),viewport:{x:o,y:i,zoom:a}}}),[]),f=e.useCallback((({nodes:e,edges:t})=>{const{nodeInternals:r,getNodes:o,edges:i,hasDefaultNodes:a,hasDefaultEdges:s,onNodesDelete:l,onEdgesDelete:c,onNodesChange:u,onEdgesChange:d}=n.getState(),f=(e||[]).map((e=>e.id)),p=(t||[]).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=Uo(h,m),t=[...g,...e],o=t.reduce(((e,t)=>(e.includes(t.id)||e.push(t.id),e)),[]);if((s||a)&&(s&&n.setState({edges:i.filter((e=>!o.includes(e.id)))}),a&&(h.forEach((e=>{r.delete(e.id)})),n.setState({nodeInternals:new Map(r)}))),o.length>0&&(c?.(t),d&&d(o.map((e=>({id:e,type:"remove"}))))),h.length>0&&(l?.(h),u)){u(h.map((e=>({id:e.id,type:"remove"}))))}}}),[]),p=e.useCallback((e=>{const t=so((r=e).width)&&so(r.height)&&so(r.x)&&so(r.y);var r;const o=t?null:n.getState().nodeInternals.get(e.id);if(!t&&!o)return[null,null,t];return[t?e:io(o),o,t]}),[]),h=e.useCallback(((e,t=!0,r)=>{const[o,i,a]=p(e);return o?(r||n.getState().getNodes()).filter((e=>{if(!(a||e.id!==i.id&&e.positionAbsolute))return!1;const n=io(e),r=ao(n,o);return t&&r>0||r>=o.width*o.height})):[]}),[]),m=e.useCallback(((e,t,n=!0)=>{const[r]=p(e);if(!r)return!1;const o=ao(r,t);return n&&o>0||o>=r.width*r.height}),[]);return e.useMemo((()=>({...t,getNodes:r,getNode:o,getEdges:i,getEdge:a,setNodes:s,setEdges:l,addNodes:c,addEdges:u,toObject:d,deleteElements:f,getIntersectingNodes:h,isNodeIntersecting:m})),[t,r,o,i,a,s,l,c,u,d,f,h,m])}const Yi={actInsideInputWithModifier:!1};const Ui={position:"absolute",width:"100%",height:"100%",top:0,left:0},Ji=e=>({x:e.x,y:e.y,zoom:e.k}),Ki=(e,t)=>e.target.closest(`.${t}`),qi=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),Qi=e=>{const t=e.ctrlKey&&mo()?10:1;return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t},ea=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler,userSelectionActive:e.userSelectionActive}),ta=({onMove:t,onMoveStart:n,onMoveEnd:r,onPaneContextMenu:o,zoomOnScroll:i=!0,zoomOnPinch:a=!0,panOnScroll:s=!1,panOnScrollSpeed:l=.5,panOnScrollMode:c=xo.Free,zoomOnDoubleClick:u=!0,elementsSelectable:d,panOnDrag:f=!0,defaultViewport:p,translateExtent:h,minZoom:m,maxZoom:g,zoomActivationKeyCode:y,preventScrolling:b=!0,children:v,noWheelClassName:w,noPanClassName:x})=>{const C=e.useRef(),k=Xr(),E=e.useRef(!1),S=e.useRef(!1),I=e.useRef(null),_=e.useRef({x:0,y:0,zoom:0}),{d3Zoom:A,d3Selection:N,d3ZoomHandler:O,userSelectionActive:R}=Hr(ea,Z),M=Pi(y),T=e.useRef(0),P=e.useRef(!1),D=e.useRef();return function(t){const n=Xr();e.useEffect((()=>{let e;const r=()=>{if(!t.current)return;const e=Jr(t.current);0!==e.height&&0!==e.width||n.getState().onError?.("004",Dr()),n.setState({width:e.width||500,height:e.height||500})};return r(),window.addEventListener("resize",r),t.current&&(e=new ResizeObserver((()=>r())),e.observe(t.current)),()=>{window.removeEventListener("resize",r),e&&t.current&&e.unobserve(t.current)}}),[])}(I),e.useEffect((()=>{if(I.current){const e=I.current.getBoundingClientRect(),t=Or().scaleExtent([m,g]).translateExtent(h),n=dt(I.current).call(t),r=xr.translate(p.x,p.y).scale(Kr(p.zoom,m,g)),o=[[0,0],[e.width,e.height]],i=t.constrain()(r,o,h);t.transform(n,i),t.wheelDelta(Qi),k.setState({d3Zoom:t,d3Selection:n,d3ZoomHandler:n.on("wheel.zoom"),transform:[i.x,i.y,i.k],domNode:I.current.closest(".react-flow")})}}),[]),e.useEffect((()=>{N&&A&&(!s||M||R?void 0!==O&&N.on("wheel.zoom",(function(e,t){if(!b&&"wheel"===e.type&&!e.ctrlKey||Ki(e,w))return null;e.preventDefault(),O.call(this,e,t)}),{passive:!1}):N.on("wheel.zoom",(e=>{if(Ki(e,w))return!1;e.preventDefault(),e.stopImmediatePropagation();const o=N.property("__zoom").k||1;if(e.ctrlKey&&a){const t=ft(e),n=Qi(e),r=o*Math.pow(2,n);return void A.scaleTo(N,r,t,e)}const i=1===e.deltaMode?20:1;let s=c===xo.Vertical?0:e.deltaX*i,u=c===xo.Horizontal?0:e.deltaY*i;!mo()&&e.shiftKey&&c!==xo.Vertical&&(s=e.deltaY*i,u=0),A.translateBy(N,-s/o*l,-u/o*l,{internal:!0});const d=Ji(N.property("__zoom")),{onViewportChangeStart:f,onViewportChange:p,onViewportChangeEnd:h}=k.getState();clearTimeout(D.current),P.current||(P.current=!0,n?.(e,d),f?.(d)),P.current&&(t?.(e,d),p?.(d),D.current=setTimeout((()=>{r?.(e,d),h?.(d),P.current=!1}),150))}),{passive:!1}))}),[R,s,c,N,A,O,M,a,b,w,n,t,r]),e.useEffect((()=>{A&&A.on("start",(e=>{if(!e.sourceEvent||e.sourceEvent.internal)return null;T.current=e.sourceEvent?.button;const{onViewportChangeStart:t}=k.getState(),r=Ji(e.transform);E.current=!0,_.current=r,"mousedown"===e.sourceEvent?.type&&k.setState({paneDragging:!0}),t?.(r),n?.(e.sourceEvent,r)}))}),[A,n]),e.useEffect((()=>{A&&(R&&!E.current?A.on("zoom",null):R||A.on("zoom",(e=>{const{onViewportChange:n}=k.getState();if(k.setState({transform:[e.transform.x,e.transform.y,e.transform.k]}),S.current=!(!o||!qi(f,T.current??0)),(t||n)&&!e.sourceEvent?.internal){const r=Ji(e.transform);n?.(r),t?.(e.sourceEvent,r)}})))}),[R,A,t,f,o]),e.useEffect((()=>{A&&A.on("end",(e=>{if(!e.sourceEvent||e.sourceEvent.internal)return null;const{onViewportChangeEnd:t}=k.getState();if(E.current=!1,k.setState({paneDragging:!1}),o&&qi(f,T.current??0)&&!S.current&&o(e.sourceEvent),S.current=!1,(r||t)&&(n=_.current,i=e.transform,n.x!==i.x||n.y!==i.y||n.zoom!==i.k)){const n=Ji(e.transform);_.current=n,clearTimeout(C.current),C.current=setTimeout((()=>{t?.(n),r?.(e.sourceEvent,n)}),s?150:0)}var n,i}))}),[A,s,f,r,o]),e.useEffect((()=>{A&&A.filter((e=>{const t=M||i,n=a&&e.ctrlKey;if((!0===f||Array.isArray(f)&&f.includes(1))&&1===e.button&&"mousedown"===e.type&&(Ki(e,"react-flow__node")||Ki(e,"react-flow__edge")))return!0;if(!(f||t||s||u||a))return!1;if(R)return!1;if(!u&&"dblclick"===e.type)return!1;if(Ki(e,w)&&"wheel"===e.type)return!1;if(Ki(e,x)&&("wheel"!==e.type||s&&"wheel"===e.type&&!M))return!1;if(!a&&e.ctrlKey&&"wheel"===e.type)return!1;if(!t&&!s&&!n&&"wheel"===e.type)return!1;if(!f&&("mousedown"===e.type||"touchstart"===e.type))return!1;if(Array.isArray(f)&&!f.includes(e.button)&&"mousedown"===e.type)return!1;const r=Array.isArray(f)&&f.includes(e.button)||!e.button||e.button<=1;return(!e.ctrlKey||"wheel"===e.type)&&r}))}),[R,A,i,a,s,u,f,d,M]),e.createElement("div",{className:"react-flow__renderer",ref:I,style:Ui},v)},na=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function ra(){const{userSelectionActive:t,userSelectionRect:n}=Hr(na,Z);return t&&n?e.createElement("div",{className:"react-flow__selection react-flow__container",style:{width:n.width,height:n.height,transform:`translate(${n.x}px, ${n.y}px)`}}):null}function oa(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 ia(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&&oa(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&&oa(t,o);break;case"remove":return t}return t.push(o),t}),n)}function aa(e,t){return ia(e,t)}function sa(e,t){return ia(e,t)}const la=(e,t)=>({id:e,type:"select",selected:t});function ca(e,t){return e.reduce(((e,n)=>{const r=t.includes(n.id);return!n.selected&&r?(n.selected=!0,e.push(la(n.id,!0))):n.selected&&!r&&(n.selected=!1,e.push(la(n.id,!1))),e}),[])}const ua=(e,t)=>n=>{n.target===t.current&&e?.(n)},da=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging}),fa=e.memo((({isSelecting:t,selectionMode:n=Co.Full,panOnDrag:r,onSelectionStart:o,onSelectionEnd:i,onPaneClick:a,onPaneContextMenu:s,onPaneScroll:l,onPaneMouseEnter:c,onPaneMouseMove:u,onPaneMouseLeave:d,children:f})=>{const p=e.useRef(null),h=Xr(),m=e.useRef(0),g=e.useRef(0),y=e.useRef(),{userSelectionActive:b,elementsSelectable:v,dragging:w}=Hr(da,Z),x=()=>{h.setState({userSelectionActive:!1,userSelectionRect:null}),m.current=0,g.current=0},C=e=>{a?.(e),h.getState().resetSelectedElements(),h.setState({nodesSelectionActive:!1})},k=l?e=>l(e):void 0,E=v&&(t||b);return e.createElement("div",{className:V(["react-flow__pane",{dragging:w,selection:t}]),onClick:E?void 0:ua(C,p),onContextMenu:ua((e=>{Array.isArray(r)&&r?.includes(2)?e.preventDefault():s?.(e)}),p),onWheel:ua(k,p),onMouseEnter:E?void 0:c,onMouseDown:E?e=>{const{resetSelectedElements:n,domNode:r}=h.getState();if(y.current=r?.getBoundingClientRect(),!v||!t||0!==e.button||e.target!==p.current||!y.current)return;const{x:i,y:a}=ho(e,y.current);n(),h.setState({userSelectionRect:{width:0,height:0,startX:i,startY:a,x:i,y:a}}),o?.(e)}:void 0,onMouseMove:E?e=>{const{userSelectionRect:r,nodeInternals:o,edges:i,transform:a,onNodesChange:s,onEdgesChange:l,nodeOrigin:c,getNodes:u}=h.getState();if(!t||!y.current||!r)return;h.setState({userSelectionActive:!0,nodesSelectionActive:!1});const d=ho(e,y.current),f=r.startX??0,p=r.startY??0,b={...r,x:d.x<f?d.x:f,y:d.y<p?d.y:p,width:Math.abs(d.x-f),height:Math.abs(d.y-p)},v=u(),w=Yo(o,b,a,n===Co.Partial,!0,c),x=Uo(w,i).map((e=>e.id)),C=w.map((e=>e.id));if(m.current!==C.length){m.current=C.length;const e=ca(v,C);e.length&&s?.(e)}if(g.current!==x.length){g.current=x.length;const e=ca(i,x);e.length&&l?.(e)}h.setState({userSelectionRect:b})}:u,onMouseUp:E?e=>{if(0!==e.button)return;const{userSelectionRect:t}=h.getState();!b&&t&&e.target===p.current&&C?.(e),h.setState({nodesSelectionActive:m.current>0}),x(),i?.(e)}:void 0,onMouseLeave:E?e=>{b&&(h.setState({nodesSelectionActive:m.current>0}),i?.(e)),x()}:d,ref:p,style:Ui},f,e.createElement(ra,null))}));function pa(e,t){const n=e.parentNode||e.parentId;if(!n)return!1;const r=t.get(n);return!!r&&(!!r.selected||pa(r,t))}function ha(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 ma(e,t,n,r){return Array.from(e.values()).filter((n=>(n.selected||n.id===r)&&(!n.parentNode||n.parentId||!pa(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 ga(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}=$o(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}=$o(t,o).positionAbsolute;s=t&&so(r)&&so(i)&&so(t.width)&&so(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",jr()),s=a;let c={x:0,y:0};if(l){const e=n.get(l);c=$o(e,o).positionAbsolute}const u=s&&"parent"!==s?qr(t,s):t;return{position:{x:u.x-c.x,y:u.y-c.y},positionAbsolute:u}}function ya({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]}fa.displayName="Pane";const ba=(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,...Jr(e)}}))};function va(e,t,n){return void 0===n?n:r=>{const o=t().nodeInternals.get(e);o&&n(r,{...o})}}function wa({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",Gr(e))}function xa(e){return(t,n,r)=>e?.(t,r)}function Ca({nodeRef:t,disabled:n=!1,noDragClassName:r,handleSelector:o,nodeId:i,isSelectable:a,selectNodesOnDrag:s}){const l=Xr(),[c,u]=e.useState(!1),d=e.useRef([]),f=e.useRef({x:null,y:null}),p=e.useRef(0),h=e.useRef(null),m=e.useRef({x:0,y:0}),g=e.useRef(null),y=e.useRef(!1),b=e.useRef(!1),v=e.useRef(!1),w=function(){const t=Xr(),n=e.useCallback((({sourceEvent:e})=>{const{transform:n,snapGrid:r,snapToGrid:o}=t.getState(),i=e.touches?e.touches[0].clientX:e.clientX,a=e.touches?e.touches[0].clientY:e.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 n}();return e.useEffect((()=>{if(t?.current){const e=dt(t.current),c=({x:e,y:t})=>{const{nodeInternals:n,onNodeDrag:r,onSelectionDrag:o,updateNodePositions:a,nodeExtent:s,snapGrid:c,snapToGrid:p,nodeOrigin:h,onError:m}=l.getState();f.current={x:e,y:t};let y=!1,b={x:0,y:0,x2:0,y2:0};if(d.current.length>1&&s){const e=Zo(d.current,h);b=ro(e)}if(d.current=d.current.map((r=>{const o={x:e-r.distance.x,y:t-r.distance.y};p&&(o.x=c[0]*Math.round(o.x/c[0]),o.y=c[1]*Math.round(o.y/c[1]));const i=[[s[0][0],s[0][1]],[s[1][0],s[1][1]]];d.current.length>1&&s&&!r.extent&&(i[0][0]=r.positionAbsolute.x-b.x+s[0][0],i[1][0]=r.positionAbsolute.x+(r.width??0)-b.x2+s[1][0],i[0][1]=r.positionAbsolute.y-b.y+s[0][1],i[1][1]=r.positionAbsolute.y+(r.height??0)-b.y2+s[1][1]);const a=ga(r,o,n,i,h,m);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(d.current,!0,!0),u(!0);const v=i?r:xa(o);if(v&&g.current){const[e,t]=ya({nodeId:i,dragItems:d.current,nodeInternals:n});v(g.current,e,t)}},x=()=>{if(!h.current)return;const[e,t]=eo(m.current,h.current);if(0!==e||0!==t){const{transform:n,panBy:r}=l.getState();f.current.x=(f.current.x??0)-e/n[2],f.current.y=(f.current.y??0)-t/n[2],r({x:e,y:t})&&c(f.current)}p.current=requestAnimationFrame(x)},C=e=>{const{nodeInternals:n,multiSelectionActive:r,nodesDraggable:o,unselectNodesAndEdges:c,onNodeDragStart:u,onSelectionDragStart:p}=l.getState();b.current=!0;const h=i?u:xa(p);s&&a||r||!i||n.get(i)?.selected||c(),i&&a&&s&&wa({id:i,store:l,nodeRef:t});const m=w(e);if(f.current=m,d.current=ma(n,o,m,i),h&&d.current){const[t,r]=ya({nodeId:i,dragItems:d.current,nodeInternals:n});h(e.sourceEvent,t,r)}};if(!n){const n=function(){var e,t,n,r,o=xt,i=Ct,a=kt,s=Et,l={},c=U("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,pt).on("touchend.drag touchcancel.drag",b).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=v(this,i.call(this,a,s),a,s,"mouse");l&&(dt(a.view).on("mousemove.drag",h,ht).on("mouseup.drag",m,ht),yt(a.view),mt(a),n=!1,e=a.clientX,t=a.clientY,l("start",a))}}function h(r){if(gt(r),!n){var o=r.clientX-e,i=r.clientY-t;n=o*o+i*i>d}l.mouse("drag",r)}function m(e){dt(e.view).on("mousemove.drag mouseup.drag",null),bt(e.view,n),gt(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=v(this,s,e,t,a[n].identifier,a[n]))&&(mt(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])&&(gt(e),n("drag",e,r[t]))}function b(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])&&(mt(e),n("end",e,o[t]))}function v(e,t,n,r,o,i){var s,d,p,h=c.copy(),m=ft(i||n,t);if(null!=(p=a.call(e,new wt("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=ft(c||a,t),g=u}h.call(i,e,new wt(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:vt(!!e),f):o},f.container=function(e){return arguments.length?(i="function"==typeof e?e:vt(e),f):i},f.subject=function(e){return arguments.length?(a="function"==typeof e?e:vt(e),f):a},f.touchable=function(e){return arguments.length?(s="function"==typeof e?e:vt(!!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}=l.getState();0===n&&C(e),v.current=!1;const r=w(e);f.current=r,h.current=t?.getBoundingClientRect()||null,m.current=ho(e.sourceEvent,h.current)})).on("drag",(e=>{const t=w(e),{autoPanOnNodeDrag:n,nodeDragThreshold:r}=l.getState();if("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1&&(v.current=!0),!v.current){if(!y.current&&b.current&&n&&(y.current=!0,x()),!b.current){const n=t.xSnapped-(f?.current?.x??0),o=t.ySnapped-(f?.current?.y??0);Math.sqrt(n*n+o*o)>r&&C(e)}(f.current.x!==t.xSnapped||f.current.y!==t.ySnapped)&&d.current&&b.current&&(g.current=e.sourceEvent,m.current=ho(e.sourceEvent,h.current),c(t))}})).on("end",(e=>{if(b.current&&!v.current&&(u(!1),y.current=!1,b.current=!1,cancelAnimationFrame(p.current),d.current)){const{updateNodePositions:t,nodeInternals:n,onNodeDragStop:r,onSelectionDragStop:o}=l.getState(),a=i?r:xa(o);if(t(d.current,!1,!1),a){const[t,r]=ya({nodeId:i,dragItems:d.current,nodeInternals:n});a(e.sourceEvent,t,r)}}})).filter((e=>{const n=e.target;return!e.button&&(!r||!ha(n,`.${r}`,t))&&(!o||ha(n,o,t))}));return e.call(n),()=>{e.on(".drag",null)}}e.on(".drag",null)}}),[t,n,r,o,a,l,i,s,w]),c}function ka(){const t=Xr(),n=e.useCallback((e=>{const{nodeInternals:n,nodeExtent:r,updateNodePositions:o,getNodes:i,snapToGrid:a,snapGrid:s,onError:l,nodesDraggable:c}=t.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=e.isShiftPressed?4:1,h=e.x*d*p,m=e.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}=ga(e,t,n,r,void 0,l);e.position=i,e.positionAbsolute=o}return e}));o(g,!0,!1)}),[]);return n}const Ea={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};var Sa=t=>{const n=({id:n,type:r,data:o,xPos:i,yPos:a,xPosOrigin:s,yPosOrigin:l,selected:c,onClick:u,onMouseEnter:d,onMouseMove:f,onMouseLeave:p,onContextMenu:h,onDoubleClick:m,style:g,className:y,isDraggable:b,isSelectable:v,isConnectable:w,isFocusable:x,selectNodesOnDrag:C,sourcePosition:k,targetPosition:E,hidden:S,resizeObserver:I,dragHandle:_,zIndex:A,isParent:N,noDragClassName:O,noPanClassName:R,initialized:M,disableKeyboardA11y:T,ariaLabel:P,rfId:D,hasHandleBounds:j})=>{const F=Xr(),L=e.useRef(null),z=e.useRef(null),B=e.useRef(k),G=e.useRef(E),W=e.useRef(r),H=v||b||u||d||f||p,X=ka(),$=va(n,F.getState,d),Z=va(n,F.getState,f),Y=va(n,F.getState,p),U=va(n,F.getState,h),J=va(n,F.getState,m);e.useEffect((()=>()=>{z.current&&(I?.unobserve(z.current),z.current=null)}),[]),e.useEffect((()=>{if(L.current&&!S){const e=L.current;M&&j&&z.current===e||(z.current&&I?.unobserve(z.current),I?.observe(e),z.current=e)}}),[S,M,j]),e.useEffect((()=>{const e=W.current!==r,t=B.current!==k,o=G.current!==E;L.current&&(e||t||o)&&(e&&(W.current=r),t&&(B.current=k),o&&(G.current=E),F.getState().updateNodeDimensions([{id:n,nodeElement:L.current,forceUpdate:!0}]))}),[n,r,k,E]);const K=Ca({nodeRef:L,disabled:S||!b,noDragClassName:O,handleSelector:_,nodeId:n,isSelectable:v,selectNodesOnDrag:C});return S?null:e.createElement("div",{className:V(["react-flow__node",`react-flow__node-${r}`,{[R]:b},y,{selected:c,selectable:v,parent:N,dragging:K}]),ref:L,style:{zIndex:A,transform:`translate(${s}px,${l}px)`,pointerEvents:H?"all":"none",visibility:M?"visible":"hidden",...g},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:$,onMouseMove:Z,onMouseLeave:Y,onContextMenu:U,onClick:e=>{const{nodeDragThreshold:t}=F.getState();if(v&&(!C||!b||t>0)&&wa({id:n,store:F,nodeRef:L}),u){const t=F.getState().nodeInternals.get(n);t&&u(e,{...t})}},onDoubleClick:J,onKeyDown:x?e=>{if(!fo(e)&&!T)if(co.includes(e.key)&&v){const t="Escape"===e.key;wa({id:n,store:F,unselect:t,nodeRef:L})}else b&&c&&Object.prototype.hasOwnProperty.call(Ea,e.key)&&(F.setState({ariaLiveMessage:`Moved selected node ${e.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~i}, y: ${~~a}`}),X({x:Ea[e.key].x,y:Ea[e.key].y,isShiftPressed:e.shiftKey}))}:void 0,tabIndex:x?0:void 0,role:x?"button":void 0,"aria-describedby":T?void 0:`${Ni}-${D}`,"aria-label":P},e.createElement(Vo,{value:n},e.createElement(t,{id:n,data:o,type:r,xPos:i,yPos:a,selected:c,isConnectable:w,sourcePosition:k,targetPosition:E,dragging:K,dragHandle:_,zIndex:A})))};return n.displayName="NodeWrapper",e.memo(n)};const Ia=e=>{const t=e.getNodes().filter((e=>e.selected));return{...Zo(t,e.nodeOrigin),transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`,userSelectionActive:e.userSelectionActive}};var _a=e.memo((function({onSelectionContextMenu:t,noPanClassName:n,disableKeyboardA11y:r}){const o=Xr(),{width:i,height:a,x:s,y:l,transformString:c,userSelectionActive:u}=Hr(Ia,Z),d=ka(),f=e.useRef(null);if(e.useEffect((()=>{r||f.current?.focus({preventScroll:!0})}),[r]),Ca({nodeRef:f}),u||!i||!a)return null;const p=t?e=>{const n=o.getState().getNodes().filter((e=>e.selected));t(e,n)}:void 0;return e.createElement("div",{className:V(["react-flow__nodesselection","react-flow__container",n]),style:{transform:c}},e.createElement("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:r?void 0:-1,onKeyDown:r?void 0:e=>{Object.prototype.hasOwnProperty.call(Ea,e.key)&&d({x:Ea[e.key].x,y:Ea[e.key].y,isShiftPressed:e.shiftKey})},style:{width:i,height:a,top:l,left:s}}))}));const Aa=e=>e.nodesSelectionActive,Na=({children:t,onPaneClick:n,onPaneMouseEnter:r,onPaneMouseMove:o,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:s,deleteKeyCode:l,onMove:c,onMoveStart:u,onMoveEnd:d,selectionKeyCode:f,selectionOnDrag:p,selectionMode:h,onSelectionStart:m,onSelectionEnd:g,multiSelectionKeyCode:y,panActivationKeyCode:b,zoomActivationKeyCode:v,elementsSelectable:w,zoomOnScroll:x,zoomOnPinch:C,panOnScroll:k,panOnScrollSpeed:E,panOnScrollMode:S,zoomOnDoubleClick:I,panOnDrag:_,defaultViewport:A,translateExtent:N,minZoom:O,maxZoom:R,preventScrolling:M,onSelectionContextMenu:T,noWheelClassName:P,noPanClassName:D,disableKeyboardA11y:j})=>{const F=Hr(Aa),L=Pi(f),z=Pi(b),B=z||_,V=z||k,G=L||p&&!0!==B;return(({deleteKeyCode:t,multiSelectionKeyCode:n})=>{const r=Xr(),{deleteElements:o}=Zi(),i=Pi(t,Yi),a=Pi(n);e.useEffect((()=>{if(i){const{edges:e,getNodes:t}=r.getState(),n=t().filter((e=>e.selected)),i=e.filter((e=>e.selected));o({nodes:n,edges:i}),r.setState({nodesSelectionActive:!1})}}),[i]),e.useEffect((()=>{r.setState({multiSelectionActive:a})}),[a])})({deleteKeyCode:l,multiSelectionKeyCode:y}),e.createElement(ta,{onMove:c,onMoveStart:u,onMoveEnd:d,onPaneContextMenu:a,elementsSelectable:w,zoomOnScroll:x,zoomOnPinch:C,panOnScroll:V,panOnScrollSpeed:E,panOnScrollMode:S,zoomOnDoubleClick:I,panOnDrag:!L&&B,defaultViewport:A,translateExtent:N,minZoom:O,maxZoom:R,zoomActivationKeyCode:v,preventScrolling:M,noWheelClassName:P,noPanClassName:D},e.createElement(fa,{onSelectionStart:m,onSelectionEnd:g,onPaneClick:n,onPaneMouseEnter:r,onPaneMouseMove:o,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:s,panOnDrag:B,isSelecting:!!G,selectionMode:h},t,F&&e.createElement(_a,{onSelectionContextMenu:T,noPanClassName:D,disableKeyboardA11y:j})))};Na.displayName="FlowRenderer";var Oa=e.memo(Na);function Ra(e){return{...{input:Sa(e.input||pi),default:Sa(e.default||di),output:Sa(e.output||mi),group:Sa(e.group||gi)},...Object.keys(e).filter((e=>!["input","default","output","group"].includes(e))).reduce(((t,n)=>(t[n]=Sa(e[n]||di),t)),{})}}const Ma=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions,onError:e.onError}),Ta=t=>{const{nodesDraggable:n,nodesConnectable:r,nodesFocusable:o,elementsSelectable:i,updateNodeDimensions:a,onError:s}=Hr(Ma,Z),l=function(t){const n=Hr(e.useCallback((e=>t?Yo(e.nodeInternals,{x:0,y:0,width:e.width,height:e.height},e.transform,!0):e.getNodes()),[t]));return n}(t.onlyRenderVisibleElements),c=e.useRef(),u=e.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})));a(t)}));return c.current=e,e}),[]);return e.useEffect((()=>()=>{c?.current?.disconnect()}),[]),e.createElement("div",{className:"react-flow__nodes",style:Ui},l.map((a=>{let l=a.type||"default";t.nodeTypes[l]||(s?.("003",Pr(l)),l="default");const c=t.nodeTypes[l]||t.nodeTypes.default,d=!!(a.draggable||n&&void 0===a.draggable),f=!!(a.selectable||i&&void 0===a.selectable),p=!!(a.connectable||r&&void 0===a.connectable),h=!!(a.focusable||o&&void 0===a.focusable),m=t.nodeExtent?qr(a.positionAbsolute,t.nodeExtent):a.positionAbsolute,g=m?.x??0,y=m?.y??0,b=(({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:g,y:y,width:a.width??0,height:a.height??0,origin:t.nodeOrigin});return e.createElement(c,{key:a.id,id:a.id,className:a.className,style:a.style,type:l,data:a.data,sourcePosition:a.sourcePosition||So.Bottom,targetPosition:a.targetPosition||So.Top,hidden:a.hidden,xPos:g,yPos:y,xPosOrigin:b.x,yPosOrigin:b.y,selectNodesOnDrag:t.selectNodesOnDrag,onClick:t.onNodeClick,onMouseEnter:t.onNodeMouseEnter,onMouseMove:t.onNodeMouseMove,onMouseLeave:t.onNodeMouseLeave,onContextMenu:t.onNodeContextMenu,onDoubleClick:t.onNodeDoubleClick,selected:!!a.selected,isDraggable:d,isSelectable:f,isConnectable:p,isFocusable:h,resizeObserver:u,dragHandle:a.dragHandle,zIndex:a[lo]?.z??0,isParent:!!a[lo]?.isParent,noDragClassName:t.noDragClassName,noPanClassName:t.noPanClassName,initialized:!!a.width&&!!a.height,rfId:t.rfId,disableKeyboardA11y:t.disableKeyboardA11y,ariaLabel:a.ariaLabel,hasHandleBounds:!!a[lo]?.handleBounds})})))};Ta.displayName="NodeRenderer";var Pa=e.memo(Ta);const Da=(e,t,n)=>n===So.Left?e-t:n===So.Right?e+t:e,ja=(e,t,n)=>n===So.Top?e-t:n===So.Bottom?e+t:e,Fa="react-flow__edgeupdater",La=({position:t,centerX:n,centerY:r,radius:o=10,onMouseDown:i,onMouseEnter:a,onMouseOut:s,type:l})=>e.createElement("circle",{onMouseDown:i,onMouseEnter:a,onMouseOut:s,className:V([Fa,`${Fa}-${l}`]),cx:Da(n,o,t),cy:ja(r,o,t),r:o,stroke:"transparent",fill:"transparent"}),za=()=>!0;var Ba=t=>{const n=({id:n,className:r,type:o,data:i,onClick:a,onEdgeDoubleClick:s,selected:l,animated:c,label:u,labelStyle:d,labelShowBg:f,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:m,style:g,source:y,target:b,sourceX:v,sourceY:w,targetX:x,targetY:C,sourcePosition:k,targetPosition:E,elementsSelectable:S,hidden:I,sourceHandleId:_,targetHandleId:A,onContextMenu:N,onMouseEnter:O,onMouseMove:R,onMouseLeave:M,reconnectRadius:T,onReconnect:P,onReconnectStart:D,onReconnectEnd:j,markerEnd:F,markerStart:L,rfId:z,ariaLabel:B,isFocusable:G,isReconnectable:W,pathOptions:H,interactionWidth:X,disableKeyboardA11y:$})=>{const Z=e.useRef(null),[Y,U]=e.useState(!1),[J,K]=e.useState(!1),q=Xr(),Q=e.useMemo((()=>`url('#${Wo(L,z)}')`),[L,z]),ee=e.useMemo((()=>`url('#${Wo(F,z)}')`),[F,z]);if(I)return null;const te=yo(n,q.getState,s),ne=yo(n,q.getState,N),re=yo(n,q.getState,O),oe=yo(n,q.getState,R),ie=yo(n,q.getState,M),ae=(e,t)=>{if(0!==e.button)return;const{edges:r,isValidConnection:o}=q.getState(),i=t?b:y,a=(t?A:_)||null,s=t?"target":"source",l=o||za,c=t,u=r.find((e=>e.id===n));K(!0),D?.(e,u,s);ii({event:e,handleId:a,nodeId:i,onConnect:e=>P?.(u,e),isTarget:c,getState:q.getState,setState:q.setState,isValidConnection:l,edgeUpdaterType:s,onReconnectEnd:e=>{K(!1),j?.(e,u,s)}})},se=()=>U(!0),le=()=>U(!1),ce=!S&&!a;return e.createElement("g",{className:V(["react-flow__edge",`react-flow__edge-${o}`,r,{selected:l,animated:c,inactive:ce,updating:Y}]),onClick:e=>{const{edges:t,addSelectedEdges:r,unselectNodesAndEdges:o,multiSelectionActive:i}=q.getState(),s=t.find((e=>e.id===n));s&&(S&&(q.setState({nodesSelectionActive:!1}),s.selected&&i?(o({nodes:[],edges:[s]}),Z.current?.blur()):r([n])),a&&a(e,s))},onDoubleClick:te,onContextMenu:ne,onMouseEnter:re,onMouseMove:oe,onMouseLeave:ie,onKeyDown:G?e=>{if(!$&&co.includes(e.key)&&S){const{unselectNodesAndEdges:t,addSelectedEdges:r,edges:o}=q.getState();"Escape"===e.key?(Z.current?.blur(),t({edges:[o.find((e=>e.id===n))]})):r([n])}}:void 0,tabIndex:G?0:void 0,role:G?"button":"img","data-testid":`rf__edge-${n}`,"aria-label":null===B?void 0:B||`Edge from ${y} to ${b}`,"aria-describedby":G?`${Oi}-${z}`:void 0,ref:Z},!J&&e.createElement(t,{id:n,source:y,target:b,selected:l,animated:c,label:u,labelStyle:d,labelShowBg:f,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:m,data:i,style:g,sourceX:v,sourceY:w,targetX:x,targetY:C,sourcePosition:k,targetPosition:E,sourceHandleId:_,targetHandleId:A,markerStart:Q,markerEnd:ee,pathOptions:H,interactionWidth:X}),W&&e.createElement(e.Fragment,null,("source"===W||!0===W)&&e.createElement(La,{position:k,centerX:v,centerY:w,radius:T,onMouseDown:e=>ae(e,!0),onMouseEnter:se,onMouseOut:le,type:"source"}),("target"===W||!0===W)&&e.createElement(La,{position:E,centerX:x,centerY:C,radius:T,onMouseDown:e=>ae(e,!1),onMouseEnter:se,onMouseOut:le,type:"target"})))};return n.displayName="EdgeWrapper",e.memo(n)};function Va(e){return{...{default:Ba(e.default||zo),straight:Ba(e.bezier||Do),step:Ba(e.step||Po),smoothstep:Ba(e.step||To),simplebezier:Ba(e.simplebezier||Ao)},...Object.keys(e).filter((e=>!["default","bezier"].includes(e))).reduce(((t,n)=>(t[n]=Ba(e[n]||zo),t)),{})}}function Ga(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 So.Top:return{x:r+i/2,y:o};case So.Right:return{x:r+i,y:o+a/2};case So.Bottom:return{x:r+i/2,y:o+a};case So.Left:return{x:r,y:o+a/2}}}function Wa(e,t){return e?1!==e.length&&t?t&&e.find((e=>e.id===t))||null:e[0]:null}function Ha(e){const t=e?.[lo]?.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 Xa=[{level:0,isMaxLevel:!0,edges:[]}];function $a(t,n,r){const o=Hr(e.useCallback((e=>t?e.edges.filter((t=>{const r=n.get(t.source),o=n.get(t.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=ro({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:e.width,height:e.height,transform:e.transform})})):e.edges),[t,n]));return function(e,t,n=!1){let r=-1;const o=e.reduce(((e,o)=>{const i=so(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?.[lo]?.z||0,e?.[lo]?.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?Xa:i}(o,n,r)}const Za={[Eo.Arrow]:({color:t="none",strokeWidth:n=1})=>e.createElement("polyline",{style:{stroke:t,strokeWidth:n},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),[Eo.ArrowClosed]:({color:t="none",strokeWidth:n=1})=>e.createElement("polyline",{style:{stroke:t,fill:t,strokeWidth:n},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})};const Ya=({id:t,type:n,color:r,width:o=12.5,height:i=12.5,markerUnits:a="strokeWidth",strokeWidth:s,orient:l="auto-start-reverse"})=>{const c=function(t){const n=Xr();return e.useMemo((()=>Object.prototype.hasOwnProperty.call(Za,t)?Za[t]:(n.getState().onError?.("009",Lr(t)),null)),[t])}(n);return c?e.createElement("marker",{className:"react-flow__arrowhead",id:t,markerWidth:`${o}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:l,refX:"0",refY:"0"},e.createElement(c,{color:r,strokeWidth:s})):null},Ua=({defaultColor:t,rfId:n})=>{const r=Hr(e.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=Wo(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:t,rfId:n}),[t,n]),((e,t)=>!(e.length!==t.length||e.some(((e,n)=>e.id!==t[n].id)))));return e.createElement("defs",null,r.map((t=>e.createElement(Ya,{id:t.id,key:t.id,type:t.type,color:t.color,width:t.width,height:t.height,markerUnits:t.markerUnits,strokeWidth:t.strokeWidth,orient:t.orient}))))};Ua.displayName="MarkerDefinitions";var Ja=e.memo(Ua);const Ka=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}),qa=({defaultMarkerColor:t,onlyRenderVisibleElements:n,elevateEdgesOnSelect:r,rfId:o,edgeTypes:i,noPanClassName:a,onEdgeContextMenu:s,onEdgeMouseEnter:l,onEdgeMouseMove:c,onEdgeMouseLeave:u,onEdgeClick:d,onEdgeDoubleClick:f,onReconnect:p,onReconnectStart:h,onReconnectEnd:m,reconnectRadius:g,children:y,disableKeyboardA11y:b})=>{const{edgesFocusable:v,edgesUpdatable:w,elementsSelectable:x,width:C,height:k,connectionMode:E,nodeInternals:S,onError:I}=Hr(Ka,Z),_=$a(n,S,r);return C?e.createElement(e.Fragment,null,_.map((({level:n,edges:r,isMaxLevel:y})=>e.createElement("svg",{key:n,style:{zIndex:n},width:C,height:k,className:"react-flow__edges react-flow__container"},y&&e.createElement(Ja,{defaultColor:t,rfId:o}),e.createElement("g",null,r.map((t=>{const[n,r,y]=Ha(S.get(t.source)),[C,k,_]=Ha(S.get(t.target));if(!y||!_)return null;let A=t.type||"default";i[A]||(I?.("011",Vr(A)),A="default");const N=i[A]||i.default,O=E===wo.Strict?k.target:(k.target??[]).concat(k.source??[]),R=Wa(r.source,t.sourceHandle),M=Wa(O,t.targetHandle),T=R?.position||So.Bottom,P=M?.position||So.Top,D=!!(t.focusable||v&&void 0===t.focusable),j=t.reconnectable||t.updatable,F=void 0!==p&&(j||w&&void 0===j);if(!R||!M)return I?.("008",zr(R,t)),null;const{sourceX:L,sourceY:z,targetX:B,targetY:G}=((e,t,n,r,o,i)=>{const a=Ga(n,e,t),s=Ga(i,r,o);return{sourceX:a.x,sourceY:a.y,targetX:s.x,targetY:s.y}})(n,R,T,C,M,P);return e.createElement(N,{key:t.id,id:t.id,className:V([t.className,a]),type:A,data:t.data,selected:!!t.selected,animated:!!t.animated,hidden:!!t.hidden,label:t.label,labelStyle:t.labelStyle,labelShowBg:t.labelShowBg,labelBgStyle:t.labelBgStyle,labelBgPadding:t.labelBgPadding,labelBgBorderRadius:t.labelBgBorderRadius,style:t.style,source:t.source,target:t.target,sourceHandleId:t.sourceHandle,targetHandleId:t.targetHandle,markerEnd:t.markerEnd,markerStart:t.markerStart,sourceX:L,sourceY:z,targetX:B,targetY:G,sourcePosition:T,targetPosition:P,elementsSelectable:x,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,onEdgeDoubleClick:f,onReconnect:p,onReconnectStart:h,onReconnectEnd:m,reconnectRadius:g,rfId:o,ariaLabel:t.ariaLabel,isFocusable:D,isReconnectable:F,pathOptions:"pathOptions"in t?t.pathOptions:void 0,interactionWidth:t.interactionWidth,disableKeyboardA11y:b})})))))),y):null};qa.displayName="EdgeRenderer";var Qa=e.memo(qa);const es=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function ts({children:t}){const n=Hr(es);return e.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:n}},t)}const ns={[So.Left]:So.Right,[So.Right]:So.Left,[So.Top]:So.Bottom,[So.Bottom]:So.Top},rs=({nodeId:t,handleType:n,style:r,type:o=ko.Bezier,CustomComponent:i,connectionStatus:a})=>{const{fromNode:s,handleId:l,toX:c,toY:u,connectionMode:d}=Hr(e.useCallback((e=>({fromNode:e.nodeInternals.get(t),handleId:e.connectionHandleId,toX:(e.connectionPosition.x-e.transform[0])/e.transform[2],toY:(e.connectionPosition.y-e.transform[1])/e.transform[2],connectionMode:e.connectionMode})),[t]),Z),f=s?.[lo]?.handleBounds;let p=f?.[n];if(d===wo.Loose&&(p=p||f?.["source"===n?"target":"source"]),!s||!p)return null;const h=l?p.find((e=>e.id===l)):p[0],m=h?h.x+h.width/2:(s.width??0)/2,g=h?h.y+h.height/2:s.height??0,y=(s.positionAbsolute?.x??0)+m,b=(s.positionAbsolute?.y??0)+g,v=h?.position,w=v?ns[v]:null;if(!v||!w)return null;if(i)return e.createElement(i,{connectionLineType:o,connectionLineStyle:r,fromNode:s,fromHandle:h,fromX:y,fromY:b,toX:c,toY:u,fromPosition:v,toPosition:w,connectionStatus:a});let x="";const C={sourceX:y,sourceY:b,sourcePosition:v,targetX:c,targetY:u,targetPosition:w};return o===ko.Bezier?[x]=Lo(C):o===ko.Step?[x]=Mo({...C,borderRadius:0}):o===ko.SmoothStep?[x]=Mo(C):o===ko.SimpleBezier?[x]=_o(C):x=`M${y},${b} ${c},${u}`,e.createElement("path",{d:x,fill:"none",className:"react-flow__connection-path",style:r})};rs.displayName="ConnectionLine";const os=e=>({nodeId:e.connectionNodeId,handleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,connectionStatus:e.connectionStatus,width:e.width,height:e.height});function is({containerStyle:t,style:n,type:r,component:o}){const{nodeId:i,handleType:a,nodesConnectable:s,width:l,height:c,connectionStatus:u}=Hr(os,Z);return!!(i&&a&&l&&s)?e.createElement("svg",{style:t,width:l,height:c,className:"react-flow__edges react-flow__connectionline react-flow__container"},e.createElement("g",{className:V(["react-flow__connection",u])},e.createElement(rs,{nodeId:i,handleType:a,style:n,type:r,CustomComponent:o,connectionStatus:u}))):null}function as(t,n){const r=e.useRef(null),o=Xr();return e.useMemo((()=>{if("development"===process.env.NODE_ENV){const e=Object.keys(t);Z(r.current,e)&&o.getState().onError?.("002",Tr()),r.current=e}return n(t)}),[t])}const ss=({nodeTypes:t,edgeTypes:n,onMove:r,onMoveStart:o,onMoveEnd:i,onInit:a,onNodeClick:s,onEdgeClick:l,onNodeDoubleClick:c,onEdgeDoubleClick:u,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:p,onNodeContextMenu:h,onSelectionContextMenu:m,onSelectionStart:g,onSelectionEnd:y,connectionLineType:b,connectionLineStyle:v,connectionLineComponent:w,connectionLineContainerStyle:x,selectionKeyCode:C,selectionOnDrag:k,selectionMode:E,multiSelectionKeyCode:S,panActivationKeyCode:I,zoomActivationKeyCode:_,deleteKeyCode:A,onlyRenderVisibleElements:N,elementsSelectable:O,selectNodesOnDrag:R,defaultViewport:M,translateExtent:T,minZoom:P,maxZoom:D,preventScrolling:j,defaultMarkerColor:F,zoomOnScroll:L,zoomOnPinch:z,panOnScroll:B,panOnScrollSpeed:V,panOnScrollMode:G,zoomOnDoubleClick:W,panOnDrag:H,onPaneClick:X,onPaneMouseEnter:$,onPaneMouseMove:Z,onPaneMouseLeave:Y,onPaneScroll:U,onPaneContextMenu:J,onEdgeContextMenu:K,onEdgeMouseEnter:q,onEdgeMouseMove:Q,onEdgeMouseLeave:ee,onReconnect:te,onReconnectStart:ne,onReconnectEnd:re,reconnectRadius:oe,noDragClassName:ie,noWheelClassName:ae,noPanClassName:se,elevateEdgesOnSelect:le,disableKeyboardA11y:ce,nodeOrigin:ue,nodeExtent:de,rfId:fe})=>{const pe=as(t,Ra),he=as(n,Va);return function(t){const n=Zi(),r=e.useRef(!1);e.useEffect((()=>{!r.current&&n.viewportInitialized&&t&&(setTimeout((()=>t(n)),1),r.current=!0)}),[t,n.viewportInitialized])}(a),e.createElement(Oa,{onPaneClick:X,onPaneMouseEnter:$,onPaneMouseMove:Z,onPaneMouseLeave:Y,onPaneContextMenu:J,onPaneScroll:U,deleteKeyCode:A,selectionKeyCode:C,selectionOnDrag:k,selectionMode:E,onSelectionStart:g,onSelectionEnd:y,multiSelectionKeyCode:S,panActivationKeyCode:I,zoomActivationKeyCode:_,elementsSelectable:O,onMove:r,onMoveStart:o,onMoveEnd:i,zoomOnScroll:L,zoomOnPinch:z,zoomOnDoubleClick:W,panOnScroll:B,panOnScrollSpeed:V,panOnScrollMode:G,panOnDrag:H,defaultViewport:M,translateExtent:T,minZoom:P,maxZoom:D,onSelectionContextMenu:m,preventScrolling:j,noDragClassName:ie,noWheelClassName:ae,noPanClassName:se,disableKeyboardA11y:ce},e.createElement(ts,null,e.createElement(Qa,{edgeTypes:he,onEdgeClick:l,onEdgeDoubleClick:u,onlyRenderVisibleElements:N,onEdgeContextMenu:K,onEdgeMouseEnter:q,onEdgeMouseMove:Q,onEdgeMouseLeave:ee,onReconnect:te,onReconnectStart:ne,onReconnectEnd:re,reconnectRadius:oe,defaultMarkerColor:F,noPanClassName:se,elevateEdgesOnSelect:!!le,disableKeyboardA11y:ce,rfId:fe},e.createElement(is,{style:v,type:b,component:w,containerStyle:x})),e.createElement("div",{className:"react-flow__edgelabel-renderer"}),e.createElement(Pa,{nodeTypes:pe,onNodeClick:s,onNodeDoubleClick:c,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:p,onNodeContextMenu:h,selectNodesOnDrag:R,onlyRenderVisibleElements:N,noPanClassName:se,noDragClassName:ie,disableKeyboardA11y:ce,nodeOrigin:ue,nodeExtent:de,rfId:fe})))};ss.displayName="GraphView";var ls=e.memo(ss);const cs=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],us={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:cs,nodeExtent:cs,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:wo.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:uo,isValidConnection:void 0},ds=()=>((e,t)=>e?$(e,t):$)(((e,t)=>({...us,setNodes:n=>{const{nodeInternals:r,nodeOrigin:o,elevateNodesOnSelect:i}=t();e({nodeInternals:zi(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?zi(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,[lo]:{...n[lo],handleBounds:void 0}});else if(n){const r=Jr(t.nodeElement);!(!r.width||!r.height||n.width===r.width&&n.height===r.height&&!t.forceUpdate)&&(o.set(n.id,{...n,[lo]:{...n[lo],handleBounds:{source:ba(".source",t.nodeElement,f,c),target:ba(".target",t.nodeElement,f,c)}},...r}),e.push({id:n.id,type:"dimensions",dimensions:r}))}return e}),[]);Li(o,c);const h=a||i&&!a&&Bi(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=zi(aa(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=>la(e,!0))):(a=ca(i(),n),s=ca(o,[])),Wi({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=>la(e,!0))):(a=ca(o,n),s=ca(i(),[])),Wi({changedNodes:s,changedEdges:a,get:t,set:e})},unselectNodesAndEdges:({nodes:n,edges:r}={})=>{const{edges:o,getNodes:i}=t(),a=r||o;Wi({changedNodes:(n||i()).map((e=>(e.selected=!1,la(e.id,!1)))),changedEdges:a.map((e=>la(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();Wi({changedNodes:r().filter((e=>e.selected)).map((e=>la(e.id,!1))),changedEdges:n.filter((e=>e.selected)).map((e=>la(e.id,!1))),get:t,set:e})},setNodeExtent:n=>{const{nodeInternals:r}=t();r.forEach((e=>{e.positionAbsolute=qr(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=xr.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:us.connectionNodeId,connectionHandleId:us.connectionHandleId,connectionHandleType:us.connectionHandleType,connectionStatus:us.connectionStatus,connectionStartHandle:us.connectionStartHandle,connectionEndHandle:us.connectionEndHandle}),reset:()=>e({...us})})),Object.is),fs=({children:t})=>{const n=e.useRef(null);return n.current||(n.current=ds()),e.createElement(Mr,{value:n.current},t)};fs.displayName="ReactFlowProvider";const ps=({children:t})=>e.useContext(Rr)?e.createElement(e.Fragment,null,t):e.createElement(fs,null,t);ps.displayName="ReactFlowWrapper";const hs={input:pi,default:di,output:mi,group:gi},ms={default:zo,straight:Do,step:Po,smoothstep:To,simplebezier:Ao},gs=[0,0],ys=[15,15],bs={x:0,y:0,zoom:1},vs={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},ws=e.forwardRef((({nodes:t,edges:n,defaultNodes:r,defaultEdges:o,className:i,nodeTypes:a=hs,edgeTypes:s=ms,onNodeClick:l,onEdgeClick:c,onInit:u,onMove:d,onMoveStart:f,onMoveEnd:p,onConnect:h,onConnectStart:m,onConnectEnd:g,onClickConnectStart:y,onClickConnectEnd:b,onNodeMouseEnter:v,onNodeMouseMove:w,onNodeMouseLeave:x,onNodeContextMenu:C,onNodeDoubleClick:k,onNodeDragStart:E,onNodeDrag:S,onNodeDragStop:I,onNodesDelete:_,onEdgesDelete:A,onSelectionChange:N,onSelectionDragStart:O,onSelectionDrag:R,onSelectionDragStop:M,onSelectionContextMenu:T,onSelectionStart:P,onSelectionEnd:D,connectionMode:j=wo.Strict,connectionLineType:F=ko.Bezier,connectionLineStyle:L,connectionLineComponent:z,connectionLineContainerStyle:B,deleteKeyCode:G="Backspace",selectionKeyCode:W="Shift",selectionOnDrag:H=!1,selectionMode:X=Co.Full,panActivationKeyCode:$="Space",multiSelectionKeyCode:Z=(mo()?"Meta":"Control"),zoomActivationKeyCode:Y=(mo()?"Meta":"Control"),snapToGrid:U=!1,snapGrid:J=ys,onlyRenderVisibleElements:K=!1,selectNodesOnDrag:q=!0,nodesDraggable:Q,nodesConnectable:ee,nodesFocusable:te,nodeOrigin:ne=gs,edgesFocusable:re,edgesUpdatable:oe,elementsSelectable:ie,defaultViewport:ae=bs,minZoom:se=.5,maxZoom:le=2,translateExtent:ce=cs,preventScrolling:ue=!0,nodeExtent:de,defaultMarkerColor:fe="#b1b1b7",zoomOnScroll:pe=!0,zoomOnPinch:he=!0,panOnScroll:me=!1,panOnScrollSpeed:ge=.5,panOnScrollMode:ye=xo.Free,zoomOnDoubleClick:be=!0,panOnDrag:ve=!0,onPaneClick:we,onPaneMouseEnter:xe,onPaneMouseMove:Ce,onPaneMouseLeave:ke,onPaneScroll:Ee,onPaneContextMenu:Se,children:Ie,onEdgeContextMenu:_e,onEdgeDoubleClick:Ae,onEdgeMouseEnter:Ne,onEdgeMouseMove:Oe,onEdgeMouseLeave:Re,onEdgeUpdate:Me,onEdgeUpdateStart:Te,onEdgeUpdateEnd:Pe,onReconnect:De,onReconnectStart:je,onReconnectEnd:Fe,reconnectRadius:Le=10,edgeUpdaterRadius:ze=10,onNodesChange:Be,onEdgesChange:Ve,noDragClassName:Ge="nodrag",noWheelClassName:We="nowheel",noPanClassName:He="nopan",fitView:Xe=!1,fitViewOptions:$e,connectOnClick:Ze=!0,attributionPosition:Ye,proOptions:Ue,defaultEdgeOptions:Je,elevateNodesOnSelect:Ke=!0,elevateEdgesOnSelect:qe=!1,disableKeyboardA11y:Qe=!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 e.createElement("div",{...lt,style:{...it,...vs},ref:ct,className:V(["react-flow",i]),"data-testid":"rf__wrapper",id:at},e.createElement(ps,null,e.createElement(ls,{onInit:u,onMove:d,onMoveStart:f,onMoveEnd:p,onNodeClick:l,onEdgeClick:c,onNodeMouseEnter:v,onNodeMouseMove:w,onNodeMouseLeave:x,onNodeContextMenu:C,onNodeDoubleClick:k,nodeTypes:a,edgeTypes:s,connectionLineType:F,connectionLineStyle:L,connectionLineComponent:z,connectionLineContainerStyle:B,selectionKeyCode:W,selectionOnDrag:H,selectionMode:X,deleteKeyCode:G,multiSelectionKeyCode:Z,panActivationKeyCode:$,zoomActivationKeyCode:Y,onlyRenderVisibleElements:K,selectNodesOnDrag:q,defaultViewport:ae,translateExtent:ce,minZoom:se,maxZoom:le,preventScrolling:ue,zoomOnScroll:pe,zoomOnPinch:he,zoomOnDoubleClick:be,panOnScroll:me,panOnScrollSpeed:ge,panOnScrollMode:ye,panOnDrag:ve,onPaneClick:we,onPaneMouseEnter:xe,onPaneMouseMove:Ce,onPaneMouseLeave:ke,onPaneScroll:Ee,onPaneContextMenu:Se,onSelectionContextMenu:T,onSelectionStart:P,onSelectionEnd:D,onEdgeContextMenu:_e,onEdgeDoubleClick:Ae,onEdgeMouseEnter:Ne,onEdgeMouseMove:Oe,onEdgeMouseLeave:Re,onReconnect:De??Me,onReconnectStart:je??Te,onReconnectEnd:Fe??Pe,reconnectRadius:Le??ze,defaultMarkerColor:fe,noDragClassName:Ge,noWheelClassName:We,noPanClassName:He,elevateEdgesOnSelect:qe,rfId:ut,disableKeyboardA11y:Qe,nodeOrigin:ne,nodeExtent:de}),e.createElement(Ii,{nodes:t,edges:n,defaultNodes:r,defaultEdges:o,onConnect:h,onConnectStart:m,onConnectEnd:g,onClickConnectStart:y,onClickConnectEnd:b,nodesDraggable:Q,nodesConnectable:ee,nodesFocusable:te,edgesFocusable:re,edgesUpdatable:oe,elementsSelectable:ie,elevateNodesOnSelect:Ke,minZoom:se,maxZoom:le,nodeExtent:de,onNodesChange:Be,onEdgesChange:Ve,snapToGrid:U,snapGrid:J,connectionMode:j,translateExtent:ce,connectOnClick:Ze,defaultEdgeOptions:Je,fitView:Xe,fitViewOptions:$e,onNodesDelete:_,onEdgesDelete:A,onNodeDragStart:E,onNodeDrag:S,onNodeDragStop:I,onSelectionDrag:R,onSelectionDragStart:O,onSelectionDragStop:M,noPanClassName:He,nodeOrigin:ne,rfId:ut,autoPanOnConnect:et,autoPanOnNodeDrag:tt,onError:ot,connectionRadius:nt,isValidConnection:rt,nodeDragThreshold:st}),e.createElement(Ci,{onSelectionChange:N}),Ie,e.createElement(Yr,{proOptions:Ue,position:Ye}),e.createElement(Ti,{rfId:ut,disableKeyboardA11y:Qe})))}));ws.displayName="ReactFlow";const xs=e=>e.getNodes();const Cs=e=>e.edges;const ks=({id:t,x:n,y:r,width:o,height:i,style:a,color:s,strokeColor:l,strokeWidth:c,className:u,borderRadius:d,shapeRendering:f,onClick:p,selected:h})=>{const{background:m,backgroundColor:g}=a||{},y=s||m||g;return e.createElement("rect",{className:V(["react-flow__minimap-node",{selected:h},u]),x:n,y:r,rx:d,ry:d,width:o,height:i,fill:y,stroke:l,strokeWidth:c,shapeRendering:f,onClick:p?e=>p(e,t):void 0})};ks.displayName="MiniMapNode";var Es=e.memo(ks);const Ss=e=>e.nodeOrigin,Is=e=>e.getNodes().filter((e=>!e.hidden&&e.width&&e.height)),_s=e=>e instanceof Function?e:()=>e;var As=e.memo((function({nodeStrokeColor:t="transparent",nodeColor:n="#e2e2e2",nodeClassName:r="",nodeBorderRadius:o=5,nodeStrokeWidth:i=2,nodeComponent:a=Es,onClick:s}){const l=Hr(Is,Z),c=Hr(Ss),u=_s(n),d=_s(t),f=_s(r),p="undefined"==typeof window||window.chrome?"crispEdges":"geometricPrecision";return e.createElement(e.Fragment,null,l.map((t=>{const{x:n,y:r}=$o(t,c).positionAbsolute;return e.createElement(a,{key:t.id,x:n,y:r,width:t.width,height:t.height,style:t.style,selected:t.selected,className:f(t),color:u(t),borderRadius:o,strokeColor:d(t),strokeWidth:i,shapeRendering:p,onClick:s,id:t.id})})))}));const Ns=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=Zo(t,e.nodeOrigin),o=n,oo(no(ro(r),ro(o)))):n,rfId:e.rfId};var r,o};function Os({style:t,className:n,nodeStrokeColor:r="transparent",nodeColor:o="#e2e2e2",nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:s=2,nodeComponent:l,maskColor:c="rgb(240, 240, 240, 0.6)",maskStrokeColor:u="none",maskStrokeWidth:d=1,position:f="bottom-right",onClick:p,onNodeClick:h,pannable:m=!1,zoomable:g=!1,ariaLabel:y="React Flow mini map",inversePan:b=!1,zoomStep:v=10,offsetScale:w=5}){const x=Xr(),C=e.useRef(null),{boundingRect:k,viewBB:E,rfId:S}=Hr(Ns,Z),I=t?.width??200,_=t?.height??150,A=k.width/I,N=k.height/_,O=Math.max(A,N),R=O*I,M=O*_,T=w*O,P=k.x-(R-k.width)/2-T,D=k.y-(M-k.height)/2-T,j=R+2*T,F=M+2*T,L=`react-flow__minimap-desc-${S}`,z=e.useRef(0);z.current=O,e.useEffect((()=>{if(C.current){const e=dt(C.current),t=e=>{const{transform:t,d3Selection:n,d3Zoom:r}=x.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}=x.getState();if("mousemove"!==e.sourceEvent.type||!n||!r)return;const s=z.current*Math.max(1,t[2])*(b?-1:1),l={x:t[0]-e.sourceEvent.movementX*s,y:t[1]-e.sourceEvent.movementY*s},c=[[0,0],[i,a]],u=xr.translate(l.x,l.y).scale(t[2]),d=r.constrain()(u,c,o);r.transform(n,d)},r=Or().on("zoom",m?n:null).on("zoom.wheel",g?t:null);return e.call(r),()=>{e.on("zoom",null)}}}),[m,g,b,v]);const B=p?e=>{const t=ft(e);p(e,{x:t[0],y:t[1]})}:void 0,G=h?(e,t)=>{const n=x.getState().nodeInternals.get(t);h(e,n)}:void 0;return e.createElement(Zr,{position:f,style:t,className:V(["react-flow__minimap",n]),"data-testid":"rf__minimap"},e.createElement("svg",{width:I,height:_,viewBox:`${P} ${D} ${j} ${F}`,role:"img","aria-labelledby":L,ref:C,onClick:B},y&&e.createElement("title",{id:L},y),e.createElement(As,{onClick:G,nodeColor:o,nodeStrokeColor:r,nodeBorderRadius:a,nodeClassName:i,nodeStrokeWidth:s,nodeComponent:l}),e.createElement("path",{className:"react-flow__minimap-mask",d:`M${P-T},${D-T}h${j+2*T}v${F+2*T}h${-j-2*T}z\n M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`,fill:c,fillRule:"evenodd",stroke:u,strokeWidth:d,pointerEvents:"none"})))}Os.displayName="MiniMap";var Rs,Ms=e.memo(Os);function Ts({color:t,dimensions:n,lineWidth:r}){return e.createElement("path",{stroke:t,strokeWidth:r,d:`M${n[0]/2} 0 V${n[1]} M0 ${n[1]/2} H${n[0]}`})}function Ps({color:t,radius:n}){return e.createElement("circle",{cx:n,cy:n,r:n,fill:t})}!function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"}(Rs||(Rs={}));const Ds={[Rs.Dots]:"#91919a",[Rs.Lines]:"#eee",[Rs.Cross]:"#e2e2e2"},js={[Rs.Dots]:1,[Rs.Lines]:1,[Rs.Cross]:6},Fs=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function Ls({id:t,variant:n=Rs.Dots,gap:r=20,size:o,lineWidth:i=1,offset:a=2,color:s,style:l,className:c}){const u=e.useRef(null),{transform:d,patternId:f}=Hr(Fs,Z),p=s||Ds[n],h=o||js[n],m=n===Rs.Dots,g=n===Rs.Cross,y=Array.isArray(r)?r:[r,r],b=[y[0]*d[2]||1,y[1]*d[2]||1],v=h*d[2],w=g?[v,v]:b,x=m?[v/a,v/a]:[w[0]/a,w[1]/a];return e.createElement("svg",{className:V(["react-flow__background",c]),style:{...l,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:u,"data-testid":"rf__background"},e.createElement("pattern",{id:f+t,x:d[0]%b[0],y:d[1]%b[1],width:b[0],height:b[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${x[0]},-${x[1]})`},m?e.createElement(Ps,{color:p,radius:v/a}):e.createElement(Ts,{dimensions:w,color:p,lineWidth:i})),e.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${f+t})`}))}Ls.displayName="Background";var zs=e.memo(Ls);const Bs=({src_nid:e,src_ioid:t,trg_nid:n,trg_ioid:r})=>[`${e}:${t}`,`${n}:${r}`].sort().join("--"),Vs=0,Gs=10,Ws=20,Hs=30,Xs=Gs,$s=e=>"string"==typeof e?e:e===Vs?"DEBUG":e===Gs?"INFO":e===Ws?"WARN":e===Hs?"ERROR":"UNKNOWN";class Zs{constructor(e,t=Gs){this.name=e,this.level=(e=>{if("number"==typeof e)return e;const t=e.toLowerCase();if("debug"===t)return Vs;if("info"===t)return Gs;if("warn"===t||"warning"===t)return Ws;if("error"===t)return Hs;throw new Error(`Unknown log level: ${e}`)})(t),this._level_name=$s(t)}set_level(e){this.level=e,this._level_name=$s(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<=Vs&&console.debug(this._fomat_message(e,...t))}info(e,...t){this.level<=Gs&&console.info(this._fomat_message(e,...t))}warn(e,...t){this.level<=Ws&&console.warn(this._fomat_message(e,...t))}error(e,...t){this.level<=Hs&&console.error(this._fomat_message(e,...t))}}const Ys=(e,t)=>("<NoValue>"===e.value&&(e.value=void 0),"<NoValue>"===e.fullvalue&&(e.fullvalue=void 0),void 0===e.try_get_full_value&&(e.try_get_full_value=()=>{t&&void 0!==e.node&&void 0!==e.id&&t.worker?.get_io_full_value({nid:e.node,ioid:e.id})}),void 0===e.hidden&&(e.hidden=!1),void 0===e.set_hidden&&(e.set_hidden=n=>{t&&void 0!==e.node&&void 0!==e.id&&t.worker?.update_io_options({nid:e.node,ioid:e.id,options:{hidden:n}})}),e),Us=(e,t,n)=>{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})(e,n),void 0===(e=z(e)).id)throw new Error("Node must have an id");for(const t in e.io)e.io[t].node=e.id,Ys(e.io[t],n);return{position:{x:e.properties["frontend:pos"][0],y:e.properties["frontend:pos"][1]},data:{UseNodeStore:t},type:"default",...e}},Js=e=>{const t={...e},n=e=>{const t=o.getState();if(e.from_remote){let n=i.get_node(e.node.id,!1);if(!n)try{n=(e=>N(((t,n)=>z(B(e)))))(e.node),i.nodesstates.set(e.node.id,n)}catch(e){return void s.logger.error(`Failed to create node store ${e}`)}const r=n.getState();s.logger.info("Add node",r.id,r.name);const a=[...t.nodes,Us(r,n,s)];o.setState({nodes:a});for(const t in e.node.io){const n=e.node.io[t].id;void 0!==n&&s.worker?.get_io_value({nid:e.node.id,ioid:n})}setTimeout((()=>{s.worker?.call_hooks("node_added",{node:r.id})}),0)}},r=e=>{switch(e.type){case"add":n(e);break;case"update":(e=>{if(e.node.in_trigger&&(e.node.error=void 0),e.from_remote){const t=i.get_node(e.id,!1);if(!t)return;B(e.node);const n=t.getState(),{new_obj:r,change:o}=M(n,e.node);if(o){if(e.node.io)for(const t in e.node.io){r.io[t].fullvalue=e.node.io[t]?.fullvalue;for(const t in e.node.io){const n=e.node.io[t],o=r.io[t];n.hasOwnProperty("value")&&(void 0===n.value?o.value=null:"<NoValue>"===n.value?o.value=void 0:o.value=n.value)}}Us(r,t,s),s.logger.debug("update_action",r),t.setState(z(r))}}else s.worker&&s.worker.locally_update_node(e)})(e);break;case"delete":(e=>{s.logger.info("Deleting node",e.id),e.from_remote?o.getState().onNodesChange([{type:"remove",id:e.id}]):s.worker?.remove_node(e.id)})(e);break;case"error":(e=>{s.logger.error("Error",e),r({type:"update",id:e.id,node:{in_trigger:!1,error:e.error},from_remote:!0})})(e);break;case"trigger":(e=>{e.from_remote?r({type:"update",id:e.id,node:{in_trigger:!0,error:void 0},from_remote:!0}):s.worker?.trigger_node(e.id)})(e);break;default:s.logger.error("Unknown node action",e)}},o=(({on_node_change:e,on_edge_change:t,on_connect:n})=>{const r=e||(e=>{}),o=n||(e=>{}),i=N(((e,t)=>({nodes:[],edges:[],onNodesChange:n=>{e({nodes:aa(n,t().nodes)}),r(n)},onEdgesChange:n=>{e({edges:sa(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&&r({type:"update",id:t.id,node:{properties:{"frontend:pos":[t.position.x,t.position.y]}},from_remote:!1});break;case"dimensions":t.dimensions&&r({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&&s.worker&&s.worker.add_edge({src_nid:e.source,src_ioid:e.sourceHandle,trg_nid:e.target,trg_ioid:e.targetHandle,replace:!0})}}),i=(({})=>{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}}})({}),a={libstate:N(((e,t)=>({lib:{shelves:[]},external_worker:[],set:t=>e((e=>({...e,...t}))),get_lib:()=>t().lib,get_external_worker:()=>t().external_worker})))},s={local_settings:N(((e,t)=>({view_settings:{},update_view_settings:e=>{const t=s.local_settings.getState().view_settings,{new_obj:n,change:r}=M(t,e);r&&s.local_settings.setState((e=>({...e,view_settings:n})))}}))),local_state:N(((e,t)=>({selected_nodes:[],selected_edges:[],funcnodescontainerRef:null}))),options:t,lib:a,workermanager:void 0,workers:N(((e,t)=>({}))),workerstate:N(((e,t)=>({is_open:!1}))),render_options:N(((e,t)=>({}))),progress_state:N(((e,t)=>({message:"please select worker",status:"info",progress:0,blocking:!1}))),update_render_options:e=>{const t=s.render_options.getState(),{new_obj:n,change:r}=M(t,e);r&&s.render_options.setState(n)},worker:void 0,_unsubscribeFromWorker:void 0,set_worker:e=>{e!==s.worker&&(s._unsubscribeFromWorker&&(s._unsubscribeFromWorker(),s._unsubscribeFromWorker=void 0),e&&(s._unsubscribeFromWorker=e.state.subscribe((e=>{s.workerstate.setState(e)})),s.workerstate.setState(e.state.getState())),s.worker=e,e?.set_zustand(s))},nodespace:i,useReactFlowStore:o,on_node_action:r,on_edge_action:e=>{const t=o.getState();switch(e.type){case"add":if(e.from_remote){const n=t.edges,r=Bs(e);if(n.some((e=>e.id===r)))return;const i={id:r,source:e.src_nid,target:e.trg_nid,sourceHandle:e.src_ioid,targetHandle:e.trg_ioid,className:"funcnodes-edge animated"};s.logger.info("Adding edge",i),o.setState({edges:[...n,i]}),s.worker?.get_remote_node_state(e.src_nid),s.worker?.get_remote_node_state(e.trg_nid)}break;case"delete":if(e.from_remote){const n=t.edges,r=Bs(e);s.logger.info("Deleting edge",r);const i=n.filter((e=>e.id!==r));o.setState({edges:i}),s.worker?.get_remote_node_state(e.src_nid),s.worker?.get_remote_node_state(e.trg_nid)}break;default:s.logger.error("Unknown edge action",e)}},reactflowRef:null,clear_all:()=>{s.worker?.disconnect(),s.set_worker(void 0),s.workermanager?.setWorker(void 0),s.lib.libstate.getState().set({lib:{shelves:[]},external_worker:[]}),s.nodespace.nodesstates.clear(),s.useReactFlowStore.setState({nodes:[],edges:[]}),s.auto_progress()},center_node:e=>{if(!s.rf_instance)return;e=Array.isArray(e)?e:[e];const t=s.useReactFlowStore.getState().nodes.filter((t=>e.includes(t.id)));t.length>0&&s.rf_instance?.fitView({padding:.2,nodes:t})},center_all:()=>{console.log("center all",s.rf_instance),s.rf_instance?.fitView({padding:.2})},set_progress:e=>{if(""===e.message)return s.auto_progress();const t=s.progress_state.getState(),{new_obj:n,change:r}=M(t,e);r&&s.progress_state.setState(n)},auto_progress:()=>void 0===s.workermanager||s.workermanager.open?void 0===s.worker?s.set_progress({progress:0,message:"please select worker",status:"error",blocking:!1}):s.worker.is_open?void s.set_progress({progress:1,message:"running",status:"info",blocking:!1}):s.set_progress({progress:0,message:"connecting to worker",status:"info",blocking:!0}):s.set_progress({progress:0,message:"connecting to worker manager",status:"error",blocking:!1}),plugins:N(((e,t)=>({}))),add_plugin:(e,t)=>{void 0!==t&&s.plugins.setState((n=>({...n,[e]:t})))},dev_settings:{debug:!0},logger:new Zs("fn",Xs)};return s};function Ks(e,t){return function(){return e.apply(t,arguments)}}const{toString:qs}=Object.prototype,{getPrototypeOf:Qs}=Object,el=(e=>t=>{const n=qs.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),tl=e=>(e=e.toLowerCase(),t=>el(t)===e),nl=e=>t=>typeof t===e,{isArray:rl}=Array,ol=nl("undefined");const il=tl("ArrayBuffer");const al=nl("string"),sl=nl("function"),ll=nl("number"),cl=e=>null!==e&&"object"==typeof e,ul=e=>{if("object"!==el(e))return!1;const t=Qs(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},dl=tl("Date"),fl=tl("File"),pl=tl("Blob"),hl=tl("FileList"),ml=tl("URLSearchParams"),[gl,yl,bl,vl]=["ReadableStream","Request","Response","Headers"].map(tl);function wl(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),rl(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 xl(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 Cl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,kl=e=>!ol(e)&&e!==Cl;const El=(Sl="undefined"!=typeof Uint8Array&&Qs(Uint8Array),e=>Sl&&e instanceof Sl);var Sl;const Il=tl("HTMLFormElement"),_l=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Al=tl("RegExp"),Nl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wl(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Ol="abcdefghijklmnopqrstuvwxyz",Rl="0123456789",Ml={DIGIT:Rl,ALPHA:Ol,ALPHA_DIGIT:Ol+Ol.toUpperCase()+Rl};const Tl=tl("AsyncFunction"),Pl=(Dl="function"==typeof setImmediate,jl=sl(Cl.postMessage),Dl?setImmediate:jl?((e,t)=>(Cl.addEventListener("message",(({source:n,data:r})=>{n===Cl&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),Cl.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var Dl,jl;const Fl="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Cl):"undefined"!=typeof process&&process.nextTick||Pl;var Ll={isArray:rl,isArrayBuffer:il,isBuffer:function(e){return null!==e&&!ol(e)&&null!==e.constructor&&!ol(e.constructor)&&sl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||sl(e.append)&&("formdata"===(t=el(e))||"object"===t&&sl(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&il(e.buffer),t},isString:al,isNumber:ll,isBoolean:e=>!0===e||!1===e,isObject:cl,isPlainObject:ul,isReadableStream:gl,isRequest:yl,isResponse:bl,isHeaders:vl,isUndefined:ol,isDate:dl,isFile:fl,isBlob:pl,isRegExp:Al,isFunction:sl,isStream:e=>cl(e)&&sl(e.pipe),isURLSearchParams:ml,isTypedArray:El,isFileList:hl,forEach:wl,merge:function e(){const{caseless:t}=kl(this)&&this||{},n={},r=(r,o)=>{const i=t&&xl(n,o)||o;ul(n[i])&&ul(r)?n[i]=e(n[i],r):ul(r)?n[i]=e({},r):rl(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&wl(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(wl(t,((t,r)=>{n&&sl(t)?e[r]=Ks(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&&Qs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:el,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(rl(e))return e;let t=e.length;if(!ll(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:Il,hasOwnProperty:_l,hasOwnProp:_l,reduceDescriptors:Nl,freezeMethods:e=>{Nl(e,((t,n)=>{if(sl(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];sl(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 rl(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:xl,global:Cl,isContextDefined:kl,ALPHABET:Ml,generateString:(e=16,t=Ml.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&sl(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(cl(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=rl(e)?[]:{};return wl(e,((e,t)=>{const i=n(e,r+1);!ol(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Tl,isThenable:e=>e&&(cl(e)||sl(e))&&sl(e.then)&&sl(e.catch),setImmediate:Pl,asap:Fl};function zl(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)}Ll.inherits(zl,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:Ll.toJSONObject(this.config),code:this.code,status:this.status}}});const Bl=zl.prototype,Vl={};["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=>{Vl[e]={value:e}})),Object.defineProperties(zl,Vl),Object.defineProperty(Bl,"isAxiosError",{value:!0}),zl.from=(e,t,n,r,o,i)=>{const a=Object.create(Bl);return Ll.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),zl.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Gl(e){return Ll.isPlainObject(e)||Ll.isArray(e)}function Wl(e){return Ll.endsWith(e,"[]")?e.slice(0,-2):e}function Hl(e,t,n){return e?e.concat(t).map((function(e,t){return e=Wl(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Xl=Ll.toFlatObject(Ll,{},null,(function(e){return/^is[A-Z]/.test(e)}));function $l(e,t,n){if(!Ll.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ll.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ll.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ll.isSpecCompliantForm(t);if(!Ll.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ll.isDate(e))return e.toISOString();if(!s&&Ll.isBlob(e))throw new zl("Blob is not supported. Use a Buffer instead.");return Ll.isArrayBuffer(e)||Ll.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Ll.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ll.isArray(e)&&function(e){return Ll.isArray(e)&&!e.some(Gl)}(e)||(Ll.isFileList(e)||Ll.endsWith(n,"[]"))&&(s=Ll.toArray(e)))return n=Wl(n),s.forEach((function(e,r){!Ll.isUndefined(e)&&null!==e&&t.append(!0===a?Hl([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Gl(e)||(t.append(Hl(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Xl,{defaultVisitor:c,convertValue:l,isVisitable:Gl});if(!Ll.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ll.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Ll.forEach(n,(function(n,i){!0===(!(Ll.isUndefined(n)||null===n)&&o.call(t,n,Ll.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function Zl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Yl(e,t){this._pairs=[],e&&$l(e,this,t)}const Ul=Yl.prototype;function Jl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kl(e,t,n){if(!t)return e;const r=n&&n.encode||Jl;Ll.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Ll.isURLSearchParams(t)?t.toString():new Yl(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Ul.append=function(e,t){this._pairs.push([e,t])},Ul.toString=function(e){const t=e?function(t){return e.call(this,t,Zl)}:Zl;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ql{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){Ll.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Ql={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ec={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Yl,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const tc="undefined"!=typeof window&&"undefined"!=typeof document,nc="object"==typeof navigator&&navigator||void 0,rc=tc&&(!nc||["ReactNative","NativeScript","NS"].indexOf(nc.product)<0),oc="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ic=tc&&window.location.href||"http://localhost";var ac={...Object.freeze({__proto__:null,hasBrowserEnv:tc,hasStandardBrowserEnv:rc,hasStandardBrowserWebWorkerEnv:oc,navigator:nc,origin:ic}),...ec};function sc(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&&Ll.isArray(r)?r.length:i,s)return Ll.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Ll.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ll.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(Ll.isFormData(e)&&Ll.isFunction(e.entries)){const n={};return Ll.forEachEntry(e,((e,r)=>{t(function(e){return Ll.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const lc={transitional:Ql,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ll.isObject(e);o&&Ll.isHTMLForm(e)&&(e=new FormData(e));if(Ll.isFormData(e))return r?JSON.stringify(sc(e)):e;if(Ll.isArrayBuffer(e)||Ll.isBuffer(e)||Ll.isStream(e)||Ll.isFile(e)||Ll.isBlob(e)||Ll.isReadableStream(e))return e;if(Ll.isArrayBufferView(e))return e.buffer;if(Ll.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 $l(e,new ac.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ac.isNode&&Ll.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ll.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return $l(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ll.isString(e))try{return(t||JSON.parse)(e),Ll.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||lc.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ll.isResponse(e)||Ll.isReadableStream(e))return e;if(e&&Ll.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 zl.from(e,zl.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:ac.classes.FormData,Blob:ac.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ll.forEach(["delete","get","head","post","put","patch"],(e=>{lc.headers[e]={}}));const cc=Ll.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 uc=Symbol("internals");function dc(e){return e&&String(e).trim().toLowerCase()}function fc(e){return!1===e||null==e?e:Ll.isArray(e)?e.map(fc):String(e)}function pc(e,t,n,r,o){return Ll.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ll.isString(t)?Ll.isString(r)?-1!==t.indexOf(r):Ll.isRegExp(r)?r.test(t):void 0:void 0)}let hc=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=dc(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ll.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=fc(e))}const i=(e,t)=>Ll.forEach(e,((e,n)=>o(e,n,t)));if(Ll.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ll.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]&&cc[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(Ll.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=dc(e)){const n=Ll.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(Ll.isFunction(t))return t.call(this,e,n);if(Ll.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=dc(e)){const n=Ll.findKey(this,e);return!(!n||void 0===this[n]||t&&!pc(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=dc(e)){const o=Ll.findKey(n,e);!o||t&&!pc(0,n[o],o,t)||(delete n[o],r=!0)}}return Ll.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&&!pc(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ll.forEach(this,((r,o)=>{const i=Ll.findKey(n,o);if(i)return t[i]=fc(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]=fc(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ll.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ll.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[uc]=this[uc]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=dc(e);t[r]||(!function(e,t){const n=Ll.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 Ll.isArray(e)?e.forEach(r):r(e),this}};function mc(e,t){const n=this||lc,r=t||n,o=hc.from(r.headers);let i=r.data;return Ll.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function gc(e){return!(!e||!e.__CANCEL__)}function yc(e,t,n){zl.call(this,null==e?"canceled":e,zl.ERR_CANCELED,t,n),this.name="CanceledError"}function bc(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new zl("Request failed with status code "+n.status,[zl.ERR_BAD_REQUEST,zl.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}hc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ll.reduceDescriptors(hc.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ll.freezeMethods(hc),Ll.inherits(yc,zl,{__CANCEL__:!0});const vc=(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)},wc=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xc=e=>(...t)=>Ll.asap((()=>e(...t)));var Cc=ac.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ac.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ac.origin),ac.navigator&&/(msie|trident)/i.test(ac.navigator.userAgent)):()=>!0,kc=ac.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ll.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ll.isString(r)&&a.push("path="+r),Ll.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 Ec(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Sc=e=>e instanceof hc?{...e}:e;function Ic(e,t){t=t||{};const n={};function r(e,t,n,r){return Ll.isPlainObject(e)&&Ll.isPlainObject(t)?Ll.merge.call({caseless:r},e,t):Ll.isPlainObject(t)?Ll.merge({},t):Ll.isArray(t)?t.slice():t}function o(e,t,n,o){return Ll.isUndefined(t)?Ll.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Ll.isUndefined(t))return r(void 0,t)}function a(e,t){return Ll.isUndefined(t)?Ll.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(Sc(e),Sc(t),0,!0)};return Ll.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ll.isUndefined(a)&&i!==s||(n[r]=a)})),n}var _c=e=>{const t=Ic({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=hc.from(s),t.url=Kl(Ec(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Ll.isFormData(r))if(ac.hasStandardBrowserEnv||ac.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(ac.hasStandardBrowserEnv&&(o&&Ll.isFunction(o)&&(o=o(t)),o||!1!==o&&Cc(t.url))){const e=i&&a&&kc.read(a);e&&s.set(i,e)}return t};var Ac="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=_c(e);let o=r.data;const i=hc.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=hc.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());bc((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 zl("Request aborted",zl.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new zl("Network Error",zl.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||Ql;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new zl(t,o.clarifyTimeoutError?zl.ETIMEDOUT:zl.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Ll.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),Ll.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=vc(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=vc(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new yc(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===ac.protocols.indexOf(y)?n(new zl("Unsupported protocol "+y+":",zl.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const Nc=(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 zl?t:new yc(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new zl(`timeout ${t} of ms exceeded`,zl.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=()=>Ll.asap(a),s}},Oc=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},Rc=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()}},Mc=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Rc(e))yield*Oc(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})},Tc="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Pc=Tc&&"function"==typeof ReadableStream,Dc=Tc&&("function"==typeof TextEncoder?(jc=new TextEncoder,e=>jc.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var jc;const Fc=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Lc=Pc&&Fc((()=>{let e=!1;const t=new Request(ac.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),zc=Pc&&Fc((()=>Ll.isReadableStream(new Response("").body))),Bc={stream:zc&&(e=>e.body)};var Vc;Tc&&(Vc=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Bc[e]&&(Bc[e]=Ll.isFunction(Vc[e])?t=>t[e]():(t,n)=>{throw new zl(`Response type '${e}' is not supported`,zl.ERR_NOT_SUPPORT,n)})})));const Gc=async(e,t)=>{const n=Ll.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Ll.isBlob(e))return e.size;if(Ll.isSpecCompliantForm(e)){const t=new Request(ac.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ll.isArrayBufferView(e)||Ll.isArrayBuffer(e)?e.byteLength:(Ll.isURLSearchParams(e)&&(e+=""),Ll.isString(e)?(await Dc(e)).byteLength:void 0)})(t):n};var Wc=Tc&&(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}=_c(e);c=c?(c+"").toLowerCase():"text";let p,h=Nc([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Lc&&"get"!==n&&"head"!==n&&0!==(g=await Gc(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Ll.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=wc(g,vc(xc(l)));r=Mc(n.body,65536,e,t)}}Ll.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=zc&&("stream"===c||"response"===c);if(zc&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Ll.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&wc(t,vc(xc(s),!0))||[];i=new Response(Mc(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let y=await Bc[Ll.findKey(Bc,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{bc(t,n,{data:y,headers:hc.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 zl("Network Error",zl.ERR_NETWORK,e,p),{cause:t.cause||t});throw zl.from(t,t&&t.code,e,p)}});const Hc={http:null,xhr:Ac,fetch:Wc};Ll.forEach(Hc,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Xc=e=>`- ${e}`,$c=e=>Ll.isFunction(e)||null===e||!1===e;var Zc=e=>{e=Ll.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,!$c(n)&&(r=Hc[(t=String(n)).toLowerCase()],void 0===r))throw new zl(`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 zl("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xc).join("\n"):" "+Xc(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Yc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yc(null,e)}function Uc(e){Yc(e),e.headers=hc.from(e.headers),e.data=mc.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Zc(e.adapter||lc.adapter)(e).then((function(t){return Yc(e),t.data=mc.call(e,e.transformResponse,t),t.headers=hc.from(t.headers),t}),(function(t){return gc(t)||(Yc(e),t&&t.response&&(t.response.data=mc.call(e,e.transformResponse,t.response),t.response.headers=hc.from(t.response.headers))),Promise.reject(t)}))}const Jc="1.7.9",Kc={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Kc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const qc={};Kc.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new zl(r(o," has been removed"+(t?" in "+t:"")),zl.ERR_DEPRECATED);return t&&!qc[o]&&(qc[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)}},Kc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Qc={assertOptions:function(e,t,n){if("object"!=typeof e)throw new zl("options must be an object",zl.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 zl("option "+i+" must be "+n,zl.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new zl("Unknown option "+i,zl.ERR_BAD_OPTION)}},validators:Kc};const eu=Qc.validators;let tu=class{constructor(e){this.defaults=e,this.interceptors={request:new ql,response:new ql}}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=Ic(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Qc.assertOptions(n,{silentJSONParsing:eu.transitional(eu.boolean),forcedJSONParsing:eu.transitional(eu.boolean),clarifyTimeoutError:eu.transitional(eu.boolean)},!1),null!=r&&(Ll.isFunction(r)?t.paramsSerializer={serialize:r}:Qc.assertOptions(r,{encode:eu.function,serialize:eu.function},!0)),Qc.assertOptions(t,{baseUrl:eu.spelling("baseURL"),withXsrfToken:eu.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ll.merge(o.common,o[t.method]);o&&Ll.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=hc.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=[Uc.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=Uc.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 Kl(Ec((e=Ic(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}};Ll.forEach(["delete","get","head","options"],(function(e){tu.prototype[e]=function(t,n){return this.request(Ic(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ll.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ic(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}tu.prototype[e]=t(),tu.prototype[e+"Form"]=t(!0)}));const nu={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(nu).forEach((([e,t])=>{nu[t]=e}));const ru=function e(t){const n=new tu(t),r=Ks(tu.prototype.request,n);return Ll.extend(r,tu.prototype,n,{allOwnKeys:!0}),Ll.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ic(t,n))},r}(lc);ru.Axios=tu,ru.CanceledError=yc,ru.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 yc(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}}},ru.isCancel=gc,ru.VERSION=Jc,ru.toFormData=$l,ru.AxiosError=zl,ru.Cancel=ru.CanceledError,ru.all=function(e){return Promise.all(e)},ru.spread=function(e){return function(t){return e.apply(null,t)}},ru.isAxiosError=function(e){return Ll.isObject(e)&&!0===e.isAxiosError},ru.mergeConfig=Ic,ru.AxiosHeaders=hc,ru.formToJSON=e=>sc(Ll.isHTMLForm(e)?new FormData(e):e),ru.getAdapter=Zc,ru.HttpStatusCode=nu,ru.default=ru;const{Axios:ou,AxiosError:iu,CanceledError:au,isCancel:su,CancelToken:lu,VERSION:cu,all:uu,Cancel:du,isAxiosError:fu,spread:pu,toFormData:hu,AxiosHeaders:mu,HttpStatusCode:gu,formToJSON:yu,getAdapter:bu,mergeConfig:vu}=ru;let wu;const xu=new Uint8Array(16);function Cu(){if(!wu&&(wu="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!wu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return wu(xu)}const ku=[];for(let e=0;e<256;++e)ku.push((e+256).toString(16).slice(1));var Eu={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Su(e,t,n){if(Eu.randomUUID&&!e)return Eu.randomUUID();const r=(e=e||{}).random||(e.rng||Cu)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return ku[e[t+0]]+ku[e[t+1]]+ku[e[t+2]]+ku[e[t+3]]+"-"+ku[e[t+4]]+ku[e[t+5]]+"-"+ku[e[t+6]]+ku[e[t+7]]+"-"+ku[e[t+8]]+ku[e[t+9]]+"-"+ku[e[t+10]]+ku[e[t+11]]+ku[e[t+12]]+ku[e[t+13]]+ku[e[t+14]]+ku[e[t+15]]}(r)}class Iu{constructor(e){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=N(((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()-36e5,setInterval((()=>{this.is_open&&this.send({type:"ping"})}),1e3),setInterval((()=>{Date.now()-this._last_pong>5e3?this._responsive=!1:this._responsive=!0}),5e3)}_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={};F(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)void 0!==t[n.id]&&F(n,t[n.id]),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}=M(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,wait_for_response:n=!0,response_timeout:r=5e3,retries:o=2,unique:i=!1}){const a={type:"cmd",cmd:e,kwargs:t||{}};if(await new Promise((async e=>{if(this._responsive)return e();const t=setInterval((()=>{this._responsive&&(clearInterval(t),e())}),100)})),n){if(i&&void 0!==this._unique_cmd_outs[a.cmd])return this._unique_cmd_outs[a.cmd];o<0&&(o=0);const t=async()=>{let t;for(;o>=0;){const n=a.id||Su();a.id=n;const i=new Promise(((t,o)=>{const i=setTimeout((()=>{o("Timeout@wait_for_response for "+e)}),r);this.messagePromises.set(n,{resolve:e=>{clearTimeout(i),t(e),this.messagePromises.delete(n)},reject:e=>{clearTimeout(i),o(e),this.messagePromises.delete(n)}})}));await this.send(a);try{t=await i;break}catch(e){if(0===o)throw delete this._unique_cmd_outs[a.cmd],e;o-=1;continue}}return delete this._unique_cmd_outs[a.cmd],t},n=t();return i&&(this._unique_cmd_outs[a.cmd]=n),n}return this.send(a)}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"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)}}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});return this._zustand?(this._zustand.on_node_action({type:"update",node:{io:{[t]:{fullvalue:n}}},id:e,from_remote:!0}),n):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 _u extends Iu{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=>{this.onmessage(e.data)}}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){const t=JSON.parse(e);this._zustand?.logger.debug(`Recieved data of length: ${e.length} and data"`,t),await this.receive(t)}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}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 ru.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 Au{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=>{this.onmessage(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){let t=JSON.parse(e);if("worker_status"!==t.type)if("set_worker"!==t.type)"progress"!==t.type?this.zustand.logger.error("WorkerManager: unknown message",t):this.zustand.set_progress(t);else 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 _u({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);else{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;this.zustand.workers.setState(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 Nu(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Ou(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Ru(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Ou(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():Ou(e[t],null)}}}}function Mu(...e){return o.useCallback(Ru(...e),e)}var Tu,Pu={exports:{}},Du={};var ju,Fu,Lu={};
|
|
29
|
-
/**
|
|
30
|
-
* @license React
|
|
31
|
-
* react-jsx-runtime.development.js
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
34
|
-
*
|
|
35
|
-
* This source code is licensed under the MIT license found in the
|
|
36
|
-
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/function zu(){return ju||(ju=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===j?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case k:return"Portal";case I:return"Profiler";case S:return"StrictMode";case O:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case A:return(e.displayName||"Context")+".Provider";case _:return(e._context.displayName||"Context")+".Consumer";case N:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(n=e.displayName||null)?n:t(e.type)||"Memo";case T:n=e._payload,e=e._init;try{return t(e(n))}catch(e){}}return null}function n(e){return""+e}function r(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),n(e)}}function o(){}function i(e){if(void 0===W)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);W=t&&t[1]||"",H=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+W+e+H}function a(e,t){if(!e||$)return"";var n=Z.get(e);if(void 0!==n)return n;$=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r;r=F.H,F.H=null,function(){if(0===G){h=console.log,m=console.info,g=console.warn,y=console.error,b=console.group,v=console.groupCollapsed,w=console.groupEnd;var e={configurable:!0,enumerable:!0,value:o,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}();try{var a={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]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=a.DetermineComponentFrameRoot(),c=l[0],u=l[1];if(c&&u){var d=c.split("\n"),f=u.split("\n");for(l=s=0;s<d.length&&!d[s].includes("DetermineComponentFrameRoot");)s++;for(;l<f.length&&!f[l].includes("DetermineComponentFrameRoot");)l++;if(s===d.length||l===f.length)for(s=d.length-1,l=f.length-1;1<=s&&0<=l&&d[s]!==f[l];)l--;for(;1<=s&&0<=l;s--,l--)if(d[s]!==f[l]){if(1!==s||1!==l)do{if(s--,0>--l||d[s]!==f[l]){var p="\n"+d[s].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),"function"==typeof e&&Z.set(e,p),p}}while(1<=s&&0<=l);break}}}finally{$=!1,F.H=r,function(){if(0==--G){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:h}),info:z({},e,{value:m}),warn:z({},e,{value:g}),error:z({},e,{value:y}),group:z({},e,{value:b}),groupCollapsed:z({},e,{value:v}),groupEnd:z({},e,{value:w})})}0>G&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}return d=(d=e?e.displayName||e.name:"")?i(d):"","function"==typeof e&&Z.set(e,d),d}function s(e){if(null==e)return"";if("function"==typeof e){var t=e.prototype;return a(e,!(!t||!t.isReactComponent))}if("string"==typeof e)return i(e);switch(e){case O:return i("Suspense");case R:return i("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case N:return e=a(e.render,!1);case M:return s(e.type);case T:t=e._payload,e=e._init;try{return s(e(t))}catch(e){}}return""}function l(){var e=F.A;return null===e?null:e.getOwner()}function c(){var e=t(this.type);return U[e]||(U[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function u(e,n,o,i,a,s){if("string"==typeof e||"function"==typeof e||e===E||e===I||e===S||e===O||e===R||e===P||"object"==typeof e&&null!==e&&(e.$$typeof===T||e.$$typeof===M||e.$$typeof===A||e.$$typeof===_||e.$$typeof===N||e.$$typeof===B||void 0!==e.getModuleId)){var u=n.children;if(void 0!==u)if(i)if(V(u)){for(i=0;i<u.length;i++)d(u[i],e);Object.freeze&&Object.freeze(u)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(u,e)}else u="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e?i="null":V(e)?i="array":void 0!==e&&e.$$typeof===C?(i="<"+(t(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):i=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",i,u);if(L.call(n,"key")){u=t(e);var f=Object.keys(n).filter((function(e){return"key"!==e}));i=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",J[u+i]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,u,f,u),J[u+i]=!0)}if(u=null,void 0!==o&&(r(o),u=""+o),function(e){if(L.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(r(n.key),u=""+n.key),"key"in n)for(var p in o={},n)"key"!==p&&(o[p]=n[p]);else o=n;return u&&function(e,t){function n(){X||(X=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,t,n,r,o,i){return n=i.ref,e={$$typeof:C,type:e,key:t,props:i,_owner:o},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:c}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,u,s,0,l(),o)}function d(e,t){if("object"==typeof e&&e&&e.$$typeof!==Y)if(V(e))for(var n=0;n<e.length;n++){var r=e[n];f(r)&&p(r,t)}else if(f(e))e._store&&(e._store.validated=1);else if(null===e||"object"!=typeof e?n=null:n="function"==typeof(n=D&&e[D]||e["@@iterator"])?n:null,"function"==typeof n&&n!==e.entries&&(n=n.call(e))!==e)for(;!(e=n.next()).done;)f(e.value)&&p(e.value,t)}function f(e){return"object"==typeof e&&null!==e&&e.$$typeof===C}function p(e,n){if(e._store&&!e._store.validated&&null==e.key&&(e._store.validated=1,n=function(e){var n="",r=l();return r&&(r=t(r.type))&&(n="\n\nCheck the render method of `"+r+"`."),n||(e=t(e))&&(n="\n\nCheck the top-level render call using <"+e+">."),n}(n),!K[n])){K[n]=!0;var r="";e&&null!=e._owner&&e._owner!==l()&&(r=null,"number"==typeof e._owner.tag?r=t(e._owner.type):"string"==typeof e._owner.name&&(r=e._owner.name),r=" It was passed a child from "+r+".");var o=F.getCurrentStack;F.getCurrentStack=function(){var t=s(e.type);return o&&(t+=o()||""),t},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,r),F.getCurrentStack=o}}var h,m,g,y,b,v,w,x=e,C=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),A=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),D=Symbol.iterator,j=Symbol.for("react.client.reference"),F=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,z=Object.assign,B=Symbol.for("react.client.reference"),V=Array.isArray,G=0;o.__reactDisabledLog=!0;var W,H,X,$=!1,Z=new("function"==typeof WeakMap?WeakMap:Map),Y=Symbol.for("react.client.reference"),U={},J={},K={};Lu.Fragment=E,Lu.jsx=function(e,t,n,r,o){return u(e,t,n,!1,0,o)},Lu.jsxs=function(e,t,n,r,o){return u(e,t,n,!0,0,o)}}()),Lu}var Bu=(Fu||(Fu=1,"production"===process.env.NODE_ENV?Pu.exports=function(){if(Tu)return Du;Tu=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 Du.Fragment=t,Du.jsx=n,Du.jsxs=n,Du}():Pu.exports=zu()),Pu.exports);function Vu(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>o.createContext(e)));return function(n){const r=n?.[e]||t;return o.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const i=o.createContext(r),a=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,l=n?.[e]?.[a]||i,c=o.useMemo((()=>s),Object.values(s));return Bu.jsx(l.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const l=s?.[e]?.[a]||i,c=o.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Gu(r,...t)]}function Gu(...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 o.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var Wu=Boolean(globalThis?.document)?o.useLayoutEffect:()=>{},Hu=o["useId".toString()]||(()=>{}),Xu=0;function $u(e){const[t,n]=o.useState(Hu());return Wu((()=>{n((e=>e??String(Xu++)))}),[e]),e||(t?`radix-${t}`:"")}function Zu(e){const t=o.useRef(e);return o.useEffect((()=>{t.current=e})),o.useMemo((()=>(...e)=>t.current?.(...e)),[])}function Yu({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=function({defaultProp:e,onChange:t}){const n=o.useState(e),[r]=n,i=o.useRef(r),a=Zu(t);return o.useEffect((()=>{i.current!==r&&(a(r),i.current=r)}),[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:r,l=Zu(n);return[s,o.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[a,e,i,l])]}var Uu=o.forwardRef(((e,t)=>{const{children:n,...r}=e,i=o.Children.toArray(n),a=i.find(qu);if(a){const e=a.props.children,n=i.map((t=>t===a?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t));return Bu.jsx(Ju,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return Bu.jsx(Ju,{...r,ref:t,children:n})}));Uu.displayName="Slot";var Ju=o.forwardRef(((e,t)=>{const{children:n,...r}=e;if(o.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),i=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!==o.Fragment&&(i.ref=t?Ru(t,e):e),o.cloneElement(n,i)}return o.Children.count(n)>1?o.Children.only(null):null}));Ju.displayName="SlotClone";var Ku=({children:e})=>Bu.jsx(Bu.Fragment,{children:e});function qu(e){return o.isValidElement(e)&&e.type===Ku}var Qu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=o.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Uu:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Bu.jsx(i,{...o,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function ed(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}var td,nd="dismissableLayer.update",rd="dismissableLayer.pointerDownOutside",od="dismissableLayer.focusOutside",id=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ad=o.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=o.useContext(id),[d,f]=o.useState(null),p=d?.ownerDocument??globalThis?.document,[,h]=o.useState({}),m=Mu(t,(e=>f(e))),g=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),v=d?g.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=v>=b,C=function(e,t=globalThis?.document){const n=Zu(e),r=o.useRef(!1),i=o.useRef((()=>{}));return o.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){cd(rd,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));x&&!n&&(i?.(e),s?.(e),e.defaultPrevented||l?.())}),p),k=function(e,t=globalThis?.document){const n=Zu(e),r=o.useRef(!1);return o.useEffect((()=>{const e=e=>{if(e.target&&!r.current){cd(od,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;[...u.branches].some((e=>e.contains(t)))||(a?.(e),s?.(e),e.defaultPrevented||l?.())}),p);return function(e,t=globalThis?.document){const n=Zu(e);o.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===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),o.useEffect((()=>{if(d)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(td=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ld(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=td)}}),[d,p,n,u]),o.useEffect((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ld())}),[d,u]),o.useEffect((()=>{const e=()=>h({});return document.addEventListener(nd,e),()=>document.removeEventListener(nd,e)}),[]),Bu.jsx(Qu.div,{...c,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Nu(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Nu(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Nu(e.onPointerDownCapture,C.onPointerDownCapture)})}));ad.displayName="DismissableLayer";var sd=o.forwardRef(((e,t)=>{const n=o.useContext(id),r=o.useRef(null),i=Mu(t,r);return o.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),Bu.jsx(Qu.div,{...e,ref:i})}));function ld(){const e=new CustomEvent(nd);document.dispatchEvent(e)}function cd(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?ed(o,i):o.dispatchEvent(i)}sd.displayName="DismissableLayerBranch";var ud="focusScope.autoFocusOnMount",dd="focusScope.autoFocusOnUnmount",fd={bubbles:!1,cancelable:!0},pd=o.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[l,c]=o.useState(null),u=Zu(i),d=Zu(a),f=o.useRef(null),p=Mu(t,(e=>c(e))),h=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect((()=>{if(r){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:yd(f.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||yd(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&yd(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,l,h.paused]),o.useEffect((()=>{if(l){bd.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(ud,fd);l.addEventListener(ud,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(yd(r,{select:t}),document.activeElement!==n)return}((e=hd(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&yd(l))}return()=>{l.removeEventListener(ud,u),setTimeout((()=>{const e=new CustomEvent(dd,fd);l.addEventListener(dd,d),l.dispatchEvent(e),e.defaultPrevented||yd(t??document.body,{select:!0}),l.removeEventListener(dd,d),bd.remove(h)}),0)}}var e}),[l,u,d,h]);const m=o.useCallback((e=>{if(!n&&!r)return;if(h.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=hd(e),n=md(t,e),r=md(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&yd(i,{select:!0})):(e.preventDefault(),n&&yd(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return Bu.jsx(Qu.div,{tabIndex:-1,...s,ref:p,onKeyDown:m})}));function hd(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 md(e,t){for(const n of e)if(!gd(n,{upTo:t}))return n}function gd(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 yd(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()}}pd.displayName="FocusScope";var bd=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=vd(e,t),e.unshift(t)},remove(t){e=vd(e,t),e[0]?.resume()}}}();function vd(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var wd=o.forwardRef(((e,n)=>{const{container:r,...i}=e,[a,s]=o.useState(!1);Wu((()=>s(!0)),[]);const l=r||a&&globalThis?.document?.body;return l?t.createPortal(Bu.jsx(Qu.div,{...i,ref:n}),l):null}));wd.displayName="Portal";var xd=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=o.useState(),r=o.useRef({}),i=o.useRef(e),a=o.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return o.useReducer(((e,n)=>t[e][n]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect((()=>{const e=Cd(r.current);a.current="mounted"===l?e:"none"}),[l]),Wu((()=>{const t=r.current,n=i.current;if(n!==e){const r=a.current,o=Cd(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),Wu((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,o=o=>{const a=Cd(r.current).includes(o.animationName);if(o.target===t&&a&&(c("ANIMATION_END"),!i.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&&(a.current=Cd(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",o),t.addEventListener("animationend",o),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",o),t.removeEventListener("animationend",o)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:o.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),i="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),a=Mu(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}(i));return"function"==typeof n||r.isPresent?o.cloneElement(i,{ref:a}):null};function Cd(e){return e?.animationName||"none"}xd.displayName="Presence";var kd=0;function Ed(){o.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Sd()),document.body.insertAdjacentElement("beforeend",e[1]??Sd()),kd++,()=>{1===kd&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),kd--}}),[])}function Sd(){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 Id=function(){return Id=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},Id.apply(this,arguments)};function _d(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 Ad(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 Nd="right-scroll-bar-position",Od="width-before-scroll-bar";function Rd(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Md="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,Td=new WeakMap;function Pd(t,n){var r,o,i,a=(r=null,o=function(e){return t.forEach((function(t){return Rd(t,e)}))},(i=e.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade);return Md((function(){var e=Td.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach((function(e){r.has(e)||Rd(e,null)})),r.forEach((function(e){n.has(e)||Rd(e,o)}))}Td.set(a,t)}),[t]),a}function Dd(e){return e}var jd=function(e){var t=e.sideCar,n=_d(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 o.createElement(r,Id({},n))};jd.isSideCarExport=!0;var Fd=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Dd);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=Id({async:!0,ssr:!1},e),t}(),Ld=function(){},zd=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:Ld,onWheelCapture:Ld,onTouchMoveCapture:Ld}),i=r[0],a=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,v=e.gapMode,w=_d(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,C=Pd([n,t]),k=Id(Id({},w),i);return o.createElement(o.Fragment,null,d&&o.createElement(x,{sideCar:Fd,removeScrollBar:u,shards:f,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:v}),s?o.cloneElement(o.Children.only(l),Id(Id({},k),{ref:C})):o.createElement(b,Id({},k,{className:c,ref:C}),l))}));zd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zd.classNames={fullWidth:Od,zeroRight:Nd};function Bd(){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 Vd=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=Bd())&&(!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)}}},Gd=function(){var e,t=(e=Vd(),function(t,n){o.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}},Wd={left:0,top:0,right:0,gap:0},Hd=function(e){return parseInt(e||"",10)||0},Xd=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Wd;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[Hd(n),Hd(r),Hd(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])}},$d=Gd(),Zd="data-scroll-locked",Yd=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(Zd,"] {\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(Nd," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Od," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Nd," .").concat(Nd," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Od," .").concat(Od," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Zd,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Ud=function(){var e=parseInt(document.body.getAttribute(Zd)||"0",10);return isFinite(e)?e:0},Jd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;o.useEffect((function(){return document.body.setAttribute(Zd,(Ud()+1).toString()),function(){var e=Ud()-1;e<=0?document.body.removeAttribute(Zd):document.body.setAttribute(Zd,e.toString())}}),[]);var a=o.useMemo((function(){return Xd(i)}),[i]);return o.createElement($d,{styles:Yd(a,!t,i,n?"":"!important")})},Kd=!1;if("undefined"!=typeof window)try{var qd=Object.defineProperty({},"passive",{get:function(){return Kd=!0,!0}});window.addEventListener("test",qd,qd),window.removeEventListener("test",qd,qd)}catch(e){Kd=!1}var Qd=!!Kd&&{passive:!1},ef=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])},tf=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),nf(e,r)){var o=rf(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},nf=function(e,t){return"v"===e?function(e){return ef(e,"overflowY")}(t):function(e){return ef(e,"overflowX")}(t)},rf=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},of=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},af=function(e){return[e.deltaX,e.deltaY]},sf=function(e){return e&&"current"in e?e.current:e},lf=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},cf=0,uf=[];function df(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ff,pf=(ff=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(cf++)[0],a=o.useState(Gd)[0],s=o.useRef(e);o.useEffect((function(){s.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=Ad([e.lockRef.current],(e.shards||[]).map(sf),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=of(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[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=tf(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=tf(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=rf(e,a),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&nf(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)}),[]),c=o.useCallback((function(e){var n=e;if(uf.length&&uf[uf.length-1]===a){var r="deltaY"in n?af(n):of(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 i=(s.current.shards||[]).map(sf).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?l(n,i[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=o.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:df(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=o.useCallback((function(e){n.current=of(e),r.current=void 0}),[]),f=o.useCallback((function(t){u(t.type,af(t),t.target,l(t,e.lockRef.current))}),[]),p=o.useCallback((function(t){u(t.type,of(t),t.target,l(t,e.lockRef.current))}),[]);o.useEffect((function(){return uf.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Qd),document.addEventListener("touchmove",c,Qd),document.addEventListener("touchstart",d,Qd),function(){uf=uf.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,Qd),document.removeEventListener("touchmove",c,Qd),document.removeEventListener("touchstart",d,Qd)}}),[]);var h=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:lf(i)}):null,h?o.createElement(Jd,{gapMode:e.gapMode}):null)},Fd.useMedium(ff),jd),hf=o.forwardRef((function(e,t){return o.createElement(zd,Id({},e,{ref:t,sideCar:pf}))}));hf.classNames=zd.classNames;var mf=new WeakMap,gf=new WeakMap,yf={},bf=0,vf=function(e){return e&&(e.host||vf(e.parentNode))},wf=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=vf(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]);yf[n]||(yf[n]=new WeakMap);var i=yf[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=(mf.get(e)||0)+1,c=(i.get(e)||0)+1;mf.set(e,l),i.set(e,c),a.push(e),1===l&&o&&gf.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(),bf++,function(){a.forEach((function(e){var t=mf.get(e)-1,o=i.get(e)-1;mf.set(e,t),i.set(e,o),t||(gf.has(e)||e.removeAttribute(r),gf.delete(e)),o||e.removeAttribute(n)})),--bf||(mf=new WeakMap,mf=new WeakMap,gf=new WeakMap,yf={})}},xf=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]"))),wf(r,o,n,"aria-hidden")):function(){return null}},Cf="Dialog",[kf,Ef]=Vu(Cf),[Sf,If]=kf(Cf),_f=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=o.useRef(null),c=o.useRef(null),[u=!1,d]=Yu({prop:r,defaultProp:i,onChange:a});return Bu.jsx(Sf,{scope:t,triggerRef:l,contentRef:c,contentId:$u(),titleId:$u(),descriptionId:$u(),open:u,onOpenChange:d,onOpenToggle:o.useCallback((()=>d((e=>!e))),[d]),modal:s,children:n})};_f.displayName=Cf;var Af="DialogTrigger",Nf=o.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=If(Af,n),i=Mu(t,o.triggerRef);return Bu.jsx(Qu.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Yf(o.open),...r,ref:i,onClick:Nu(e.onClick,o.onOpenToggle)})}));Nf.displayName=Af;var Of="DialogPortal",[Rf,Mf]=kf(Of,{forceMount:void 0}),Tf=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=If(Of,t);return Bu.jsx(Rf,{scope:t,forceMount:n,children:o.Children.map(r,(e=>Bu.jsx(xd,{present:n||a.open,children:Bu.jsx(wd,{asChild:!0,container:i,children:e})})))})};Tf.displayName=Of;var Pf="DialogOverlay",Df=o.forwardRef(((e,t)=>{const n=Mf(Pf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=If(Pf,e.__scopeDialog);return i.modal?Bu.jsx(xd,{present:r||i.open,children:Bu.jsx(jf,{...o,ref:t})}):null}));Df.displayName=Pf;var jf=o.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=If(Pf,n);return Bu.jsx(hf,{as:Uu,allowPinchZoom:!0,shards:[o.contentRef],children:Bu.jsx(Qu.div,{"data-state":Yf(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),Ff="DialogContent",Lf=o.forwardRef(((e,t)=>{const n=Mf(Ff,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=If(Ff,e.__scopeDialog);return Bu.jsx(xd,{present:r||i.open,children:i.modal?Bu.jsx(zf,{...o,ref:t}):Bu.jsx(Bf,{...o,ref:t})})}));Lf.displayName=Ff;var zf=o.forwardRef(((e,t)=>{const n=If(Ff,e.__scopeDialog),r=o.useRef(null),i=Mu(t,n.contentRef,r);return o.useEffect((()=>{const e=r.current;if(e)return xf(e)}),[]),Bu.jsx(Vf,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Nu(e.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:Nu(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Nu(e.onFocusOutside,(e=>e.preventDefault()))})})),Bf=o.forwardRef(((e,t)=>{const n=If(Ff,e.__scopeDialog),r=o.useRef(!1),i=o.useRef(!1);return Bu.jsx(Vf,{...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,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,a=n.triggerRef.current?.contains(o);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})})),Vf=o.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,l=If(Ff,n),c=o.useRef(null),u=Mu(t,c);return Ed(),Bu.jsxs(Bu.Fragment,{children:[Bu.jsx(pd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:Bu.jsx(ad,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Yf(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),Bu.jsxs(Bu.Fragment,{children:[Bu.jsx(qf,{titleId:l.titleId}),Bu.jsx(Qf,{contentRef:c,descriptionId:l.descriptionId})]})]})})),Gf="DialogTitle",Wf=o.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=If(Gf,n);return Bu.jsx(Qu.h2,{id:o.titleId,...r,ref:t})}));Wf.displayName=Gf;var Hf="DialogDescription",Xf=o.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=If(Hf,n);return Bu.jsx(Qu.p,{id:o.descriptionId,...r,ref:t})}));Xf.displayName=Hf;var $f="DialogClose",Zf=o.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=If($f,n);return Bu.jsx(Qu.button,{type:"button",...r,ref:t,onClick:Nu(e.onClick,(()=>o.onOpenChange(!1)))})}));function Yf(e){return e?"open":"closed"}Zf.displayName=$f;var Uf="DialogTitleWarning",[Jf,Kf]=function(e,t){const n=o.createContext(t),r=e=>{const{children:t,...r}=e,i=o.useMemo((()=>r),Object.values(r));return Bu.jsx(n.Provider,{value:i,children:t})};return r.displayName=e+"Provider",[r,function(r){const i=o.useContext(n);if(i)return i;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(Uf,{contentName:Ff,titleName:Gf,docsSlug:"dialog"}),qf=({titleId:e})=>{const t=Kf(Uf),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 o.useEffect((()=>{if(e){document.getElementById(e)||console.error(n)}}),[n,e]),null},Qf=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kf("DialogDescriptionWarning").contentName}}.`;return o.useEffect((()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)||console.warn(n)}}),[n,e,t]),null},ep=_f,tp=Nf,np=Tf,rp=Df,op=Lf,ip=Wf,ap=Xf,sp=Zf;
|
|
10
|
+
*/var H,X,Y={};var $=(X||(X=1,"production"===P.env.NODE_ENV?D.exports=function(){if(V)return j;V=1;var t=e,n=W(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;return j.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!a){if(a=!0,o=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return i=t}return i=e}if(t=i,r(o,e))return t;var n=c(e);return void 0!==u&&u(t,n)?(o=e,t):(o=e,i=n)}var o,i,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,c,u]);var p=o(e,d[0],d[1]);return a((function(){f.hasValue=!0,f.value=p}),[p]),l(p),p},j}():D.exports=(H||(H=1,"production"!==P.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=e,n=W(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;Y.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!a){if(a=!0,o=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return i=t}return i=e}if(t=i,r(o,e))return t;var n=c(e);return void 0!==u&&u(t,n)?(o=e,t):(o=e,i=n)}var o,i,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,c,u]);var p=o(e,d[0],d[1]);return a((function(){f.hasValue=!0,f.value=p}),[p]),l(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Y)),D.exports),Z=l($);const{useDebugValue:U}=e,{useSyncExternalStoreWithSelector:J}=Z;let K=!1;const q=e=>e;const Q=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?s(e):e,n=(e,n)=>function(e,t=q,n){n&&!K&&(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"),K=!0);const r=J(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return U(r),r}(t,e,n);return Object.assign(n,t),n},ee=e=>e?Q(e):Q;function te(e){return"[object Object]"===Object.prototype.toString.call(e)}function ne(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(!ne(e[o],t[o]))return!1}}return!(e instanceof Date&&t instanceof Date)||e.getTime()===t.getTime()}const re=(e,t)=>{let n=!1;if(!te(e))throw new Error("Target must be a plain object not"+typeof e);if(!te(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(te(i)&&te(a)){const{new_obj:e,change:t}=re(a,i);t&&(n=!0,r[o]=e)}else ne(a,i)||(n=!0,r[o]=i)})),{new_obj:r,change:n}},oe=(e,t)=>{let n=!1;if(!te(e))throw new Error("Target must be a plain object");if(!te(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(te(i)&&te(a)){const{new_obj:e,change:t}=oe(a,i);t&&(n=!0,r[o]=e)}}})),{new_obj:r,change:n}},ie=(e,t)=>void 0===t?[e,!1]:[t,e!==t];function ae(e,t){throw new Error("Unhandled case: "+e+" with: "+JSON.stringify(t))}const se=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}},le=(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 ce{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 ue extends ce{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 de=e=>e.buffer?e.buffer:e,fe={x:(e,t)=>null,c:(e,t)=>new DataView(de(e)).getInt8(0),B:(e,t)=>new DataView(de(e)).getUint8(0),"?":(e,t)=>1===new DataView(de(e)).getInt8(0),h:(e,t)=>new DataView(de(e)).getInt16(0,t),H:(e,t)=>new DataView(de(e)).getUint16(0,t),i:(e,t)=>new DataView(de(e)).getInt32(0,t),I:(e,t)=>new DataView(de(e)).getUint32(0,t),l:(e,t)=>new DataView(de(e)).getInt32(0,t),L:(e,t)=>new DataView(de(e)).getUint32(0,t),q:(e,t)=>Number(new DataView(de(e)).getBigInt64(0,t)),Q:(e,t)=>Number(new DataView(de(e)).getBigUint64(0,t)),n:(e,t)=>Number(new DataView(de(e)).getBigInt64(0,t)),N:(e,t)=>Number(new DataView(de(e)).getBigUint64(0,t)),f:(e,t)=>new DataView(de(e)).getFloat32(0,t),d:(e,t)=>new DataView(de(e)).getFloat64(0,t),s:(e,t)=>(new TextDecoder).decode(de(e)),p:(e,t)=>(new TextDecoder).decode(de(e)),P:(e,t)=>Number(new DataView(de(e)).getBigUint64(0,t))};class pe extends ce{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=fe[t](this.data,e),this._value}get value(){return this._value}toString(){return null===this._value?"null":this._value.toString()}}class he extends ce{constructor({data:e,mime:t}){super({data:e,mime:t}),0===e.length?this._json=void 0:(this._json=JSON.parse((new TextDecoder).decode(de(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 he({data:t,mime:"application/json"})}toString(){return JSON.stringify(this._json)}}class me extends ce{constructor({data:e,mime:t}){super({data:e,mime:t}),this._value=(new TextDecoder).decode(de(e))}get value(){return this._value}toString(){return this._value}}const ge=({data:e,mime:t})=>e instanceof ArrayBuffer||e instanceof Uint8Array?t.startsWith("application/fn.struct.")?new pe({data:e,mime:t}):t.startsWith("application/json")?new he({data:e,mime:t}):"text"===t||t.startsWith("text/")?new me({data:e,mime:t}):new ue({data:e,mime:t}):new ce({data:e,mime:t}),ye={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}},be={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},ve=(e,t,n)=>{let r;if(void 0===e)throw new Error("nodestore is undefined");return r={_state:ee(((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}=oe(t,be);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]=ie(n[e],t[e]);i&&(r[e]=o);break}case"id":{const[o,i]=ie(n[e],t[e]);i&&(r[e]=o);break}case"connected":{const[o,i]=ie(n[e],t[e]);i&&(r[e]=o);break}case"does_trigger":{const[o,i]=ie(n[e],t[e]);i&&(r[e]=o);break}case"hidden":{const[o,i]=ie(n[e],t[e]);i&&(r[e]=o);break}case"full_id":{const[o,i]=ie(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}=re(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}=re(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{ae(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:ee(((e,t)=>{let r=n.value;"<NoValue>"===r&&(r=void 0),r instanceof ce||void 0===r||(r=he.fromObject(r));let o=n.fullvalue;return"<NoValue>"===o&&(o=void 0),o instanceof ce||void 0===o||(o=he.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 ce||(e.preview=he.fromObject(e.preview)),void 0===e.full||e.full instanceof ce||(e.full=he.fromObject(e.full)),{...t,...e})))},node:e},r},we=(e,t,n)=>{if(!n.id)throw new Error("Node must have an id");const{new_obj:r}=oe(n,ye),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:ee((()=>!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,ve(e,t,r)]))),io_order:r,progress:ee((()=>n.progress))};return o})(e,t,r);return o},xe=(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=se(t),i=Object.keys(o);for(const e of i)switch(e){case"id":{const[t,i]=ie(n[e],o[e]);i&&(r[e]=t);break}case"node_id":{const[t,i]=ie(n[e],o[e]);i&&(r[e]=t);break}case"node_name":{const[t,i]=ie(n[e],o[e]);i&&(r[e]=t);break}case"name":{const[t,i]=ie(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}=re(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,!ne(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}=re(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}=re(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}=re(e,t);return[n,r]})(n[e],o[e]);i&&(r[e]=t);break}default:try{ae(e,o[e])}catch(e){console.error(e)}}Object.keys(r).length>0&&e.setState(r)})(r._state,e)}},r=n;return r._state=ee(((n,o)=>we(r,e,se(t)))),r};function Ee(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=Ee(e[r]))&&(t+=(t&&" ")+n);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}const{useDebugValue:Ce}=e,{useSyncExternalStoreWithSelector:ke}=Z,Se=e=>e;function _e(e,t=Se,n){const r=ke(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Ce(r),r}const Ie=(e,t)=>{const n=s(e),r=(e,r=t)=>_e(n,e,r);return Object.assign(r,n),r};function Ae(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 Ne={value:()=>{}};function Re(){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 Oe(r)}function Oe(e){this._=e}function Te(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function Me(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=Ne,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Oe.prototype=Re.prototype={constructor:Oe,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]=Me(r[n],e.name,t);else if(null==t)for(n in r)r[n]=Me(r[n],e.name,null);return this}for(;++i<a;)if((n=(e=o[i]).type)&&(n=Te(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Oe(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 Pe="http://www.w3.org/1999/xhtml",De={svg:"http://www.w3.org/2000/svg",xhtml:Pe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function je(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),De.hasOwnProperty(t)?{space:De[t],local:e}:e}function Be(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Pe&&t.documentElement.namespaceURI===Pe?t.createElement(e):t.createElementNS(n,e)}}function Le(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Fe(e){var t=je(e);return(t.local?Le:Be)(t)}function ze(){}function Ve(e){return null==e?ze:function(){return this.querySelector(e)}}function Ge(){return[]}function We(e){return null==e?Ge:function(){return this.querySelectorAll(e)}}function He(e){return function(){return function(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}(e.apply(this,arguments))}}function Xe(e){return function(){return this.matches(e)}}function Ye(e){return function(t){return t.matches(e)}}var $e=Array.prototype.find;function Ze(){return this.firstElementChild}var Ue=Array.prototype.filter;function Je(){return Array.from(this.children)}function Ke(e){return new Array(e.length)}function qe(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Qe(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 qe(e,i[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function et(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 qe(e,i[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(p[s])===l&&(o[s]=l)}function tt(e){return e.__data__}function nt(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function rt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ot(e){return function(){this.removeAttribute(e)}}function it(e){return function(){this.removeAttributeNS(e.space,e.local)}}function at(e,t){return function(){this.setAttribute(e,t)}}function st(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function lt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function ct(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 ut(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function dt(e){return function(){this.style.removeProperty(e)}}function ft(e,t,n){return function(){this.style.setProperty(e,t,n)}}function pt(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ht(e,t){return e.style.getPropertyValue(t)||ut(e).getComputedStyle(e,null).getPropertyValue(t)}function mt(e){return function(){delete this[e]}}function gt(e,t){return function(){this[e]=t}}function yt(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function bt(e){return e.trim().split(/^|\s+/)}function vt(e){return e.classList||new wt(e)}function wt(e){this._node=e,this._names=bt(e.getAttribute("class")||"")}function xt(e,t){for(var n=vt(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function Et(e,t){for(var n=vt(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function Ct(e){return function(){xt(this,e)}}function kt(e){return function(){Et(this,e)}}function St(e,t){return function(){(t.apply(this,arguments)?xt:Et)(this,e)}}function _t(){this.textContent=""}function It(e){return function(){this.textContent=e}}function At(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Nt(){this.innerHTML=""}function Rt(e){return function(){this.innerHTML=e}}function Ot(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Tt(){this.nextSibling&&this.parentNode.appendChild(this)}function Mt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Pt(){return null}function Dt(){var e=this.parentNode;e&&e.removeChild(this)}function jt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Bt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Lt(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 Ft(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 zt(e,t,n){var r=ut(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 Vt(e,t){return function(){return zt(this,e,t)}}function Gt(e,t){return function(){return zt(this,e,t.apply(this,arguments))}}qe.prototype={constructor:qe,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)}},wt.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 Wt=[null];function Ht(e,t){this._groups=e,this._parents=t}function Xt(){return new Ht([[document.documentElement]],Wt)}function Yt(e){return"string"==typeof e?new Ht([[document.querySelector(e)]],[document.documentElement]):new Ht([[e]],Wt)}function $t(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]}Ht.prototype=Xt.prototype={constructor:Ht,select:function(e){"function"!=typeof e&&(e=Ve(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 Ht(r,this._parents)},selectAll:function(e){e="function"==typeof e?He(e):We(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 Ht(r,o)},selectChild:function(e){return this.select(null==e?Ze:function(e){return function(){return $e.call(this.children,e)}}("function"==typeof e?e:Ye(e)))},selectChildren:function(e){return this.selectAll(null==e?Je:function(e){return function(){return Ue.call(this.children,e)}}("function"==typeof e?e:Ye(e)))},filter:function(e){"function"!=typeof e&&(e=Xe(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 Ht(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,tt);var n=t?et:Qe,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=nt(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,b,v=0,w=0;v<h;++v)if(y=m[v]){for(v>=w&&(w=v+1);!(b=g[w])&&++w<h;);y._next=b||null}}return(a=new Ht(a,r))._enter=s,a._exit=l,a},enter:function(){return new Ht(this._enter||this._groups.map(Ke),this._parents)},exit:function(){return new Ht(this._exit||this._groups.map(Ke),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 Ht(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=rt);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 Ht(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=je(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?it:ot:"function"==typeof t?n.local?ct:lt:n.local?st:at)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?dt:"function"==typeof t?pt:ft)(e,t,null==n?"":n)):ht(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?mt:"function"==typeof t?yt:gt)(e,t)):this.node()[e]},classed:function(e,t){var n=bt(e+"");if(arguments.length<2){for(var r=vt(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?St:t?Ct:kt)(n,t))},text:function(e){return arguments.length?this.each(null==e?_t:("function"==typeof e?At:It)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Nt:("function"==typeof e?Ot:Rt)(e)):this.node().innerHTML},raise:function(){return this.each(Tt)},lower:function(){return this.each(Mt)},append:function(e){var t="function"==typeof e?e:Fe(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Fe(e),r=null==t?Pt:"function"==typeof t?t:Ve(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Dt)},clone:function(e){return this.select(e?Bt:jt)},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?Ft:Lt,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?Gt:Vt)(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},Ut={capture:!0,passive:!1};function Jt(e){e.stopImmediatePropagation()}function Kt(e){e.preventDefault(),e.stopImmediatePropagation()}function qt(e){var t=e.document.documentElement,n=Yt(e).on("dragstart.drag",Kt,Ut);"onselectstart"in t?n.on("selectstart.drag",Kt,Ut):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Qt(e,t){var n=e.document.documentElement,r=Yt(e).on("dragstart.drag",null);t&&(r.on("click.drag",Kt,Ut),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 en=e=>()=>e;function tn(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 nn(e){return!e.ctrlKey&&!e.button}function rn(){return this.parentNode}function on(e,t){return null==t?{x:e.x,y:e.y}:t}function an(){return navigator.maxTouchPoints||"ontouchstart"in this}function sn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ln(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function cn(){}tn.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var un=.7,dn=1/un,fn="\\s*([+-]?\\d+)\\s*",pn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",hn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mn=/^#([0-9a-f]{3,8})$/,gn=new RegExp(`^rgb\\(${fn},${fn},${fn}\\)$`),yn=new RegExp(`^rgb\\(${hn},${hn},${hn}\\)$`),bn=new RegExp(`^rgba\\(${fn},${fn},${fn},${pn}\\)$`),vn=new RegExp(`^rgba\\(${hn},${hn},${hn},${pn}\\)$`),wn=new RegExp(`^hsl\\(${pn},${hn},${hn}\\)$`),xn=new RegExp(`^hsla\\(${pn},${hn},${hn},${pn}\\)$`),En={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 Cn(){return this.rgb().formatHex()}function kn(){return this.rgb().formatRgb()}function Sn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=mn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_n(t):3===n?new Nn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?In(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?In(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=gn.exec(e))?new Nn(t[1],t[2],t[3],1):(t=yn.exec(e))?new Nn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=bn.exec(e))?In(t[1],t[2],t[3],t[4]):(t=vn.exec(e))?In(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=wn.exec(e))?Dn(t[1],t[2]/100,t[3]/100,1):(t=xn.exec(e))?Dn(t[1],t[2]/100,t[3]/100,t[4]):En.hasOwnProperty(e)?_n(En[e]):"transparent"===e?new Nn(NaN,NaN,NaN,0):null}function _n(e){return new Nn(e>>16&255,e>>8&255,255&e,1)}function In(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nn(e,t,n,r)}function An(e,t,n,r){return 1===arguments.length?function(e){return e instanceof cn||(e=Sn(e)),e?new Nn((e=e.rgb()).r,e.g,e.b,e.opacity):new Nn}(e):new Nn(e,t,n,null==r?1:r)}function Nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Rn(){return`#${Pn(this.r)}${Pn(this.g)}${Pn(this.b)}`}function On(){const e=Tn(this.opacity);return`${1===e?"rgb(":"rgba("}${Mn(this.r)}, ${Mn(this.g)}, ${Mn(this.b)}${1===e?")":`, ${e})`}`}function Tn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Mn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pn(e){return((e=Mn(e))<16?"0":"")+e.toString(16)}function Dn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Bn(e,t,n,r)}function jn(e){if(e instanceof Bn)return new Bn(e.h,e.s,e.l,e.opacity);if(e instanceof cn||(e=Sn(e)),!e)return new Bn;if(e instanceof Bn)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 Bn(a,s,l,e.opacity)}function Bn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ln(e){return(e=(e||0)%360)<0?e+360:e}function Fn(e){return Math.max(0,Math.min(1,e||0))}function zn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}sn(cn,Sn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Cn,formatHex:Cn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return jn(this).formatHsl()},formatRgb:kn,toString:kn}),sn(Nn,An,ln(cn,{brighter(e){return e=null==e?dn:Math.pow(dn,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?un:Math.pow(un,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nn(Mn(this.r),Mn(this.g),Mn(this.b),Tn(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:Rn,formatHex:Rn,formatHex8:function(){return`#${Pn(this.r)}${Pn(this.g)}${Pn(this.b)}${Pn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:On,toString:On})),sn(Bn,(function(e,t,n,r){return 1===arguments.length?jn(e):new Bn(e,t,n,null==r?1:r)}),ln(cn,{brighter(e){return e=null==e?dn:Math.pow(dn,e),new Bn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?un:Math.pow(un,e),new Bn(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 Nn(zn(e>=240?e-240:e+120,o,r),zn(e,o,r),zn(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Bn(Ln(this.h),Fn(this.s),Fn(this.l),Tn(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=Tn(this.opacity);return`${1===e?"hsl(":"hsla("}${Ln(this.h)}, ${100*Fn(this.s)}%, ${100*Fn(this.l)}%${1===e?")":`, ${e})`}`}}));var Vn=e=>()=>e;function Gn(e){return 1==(e=+e)?Wn: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):Vn(isNaN(t)?n:t)}}function Wn(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Vn(isNaN(e)?t:e)}var Hn=function e(t){var n=Gn(t);function r(e,t){var r=n((e=An(e)).r,(t=An(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Wn(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 Xn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Yn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$n=new RegExp(Yn.source,"g");function Zn(e,t){var n,r,o,i=Yn.lastIndex=$n.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Yn.exec(e))&&(r=$n.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:Xn(n,r)})),i=$n.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 Un,Jn=180/Math.PI,Kn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qn(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 Qn(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:Xn(e,o)},{i:l-2,x:Xn(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:Xn(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:Xn(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:Xn(e,n)},{i:s-2,x:Xn(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 er=Qn((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Kn:qn(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),tr=Qn((function(e){return null==e?Kn:(Un||(Un=document.createElementNS("http://www.w3.org/2000/svg","g")),Un.setAttribute("transform",e),(e=Un.transform.baseVal.consolidate())?qn((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Kn)}),", ",")",")");function nr(e){return((e=Math.exp(e))+1/e)/2}var rr,or,ir=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),b=(f*f-c*c-r*m)/(2*f*n*g),v=Math.log(Math.sqrt(y*y+1)-y),w=Math.log(Math.sqrt(b*b+1)-b);a=(w-v)/t,i=function(e){var r=e*a,o=nr(v),i=c/(n*g)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+v)-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[s+i*p,l+i*h,c*o/nr(t*r+v)]}}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),ar=0,sr=0,lr=0,cr=0,ur=0,dr=0,fr="object"==typeof performance&&performance.now?performance:Date,pr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function hr(){return ur||(pr(mr),ur=fr.now()+dr)}function mr(){ur=0}function gr(){this._call=this._time=this._next=null}function yr(e,t,n){var r=new gr;return r.restart(e,t,n),r}function br(){ur=(cr=fr.now())+dr,ar=sr=0;try{!function(){hr(),++ar;for(var e,t=rr;t;)(e=ur-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ar}()}finally{ar=0,function(){var e,t,n=rr,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:rr=t);or=e,wr(r)}(),ur=0}}function vr(){var e=fr.now(),t=e-cr;t>1e3&&(dr-=t,cr=e)}function wr(e){ar||(sr&&(sr=clearTimeout(sr)),e-ur>24?(e<1/0&&(sr=setTimeout(br,e-fr.now()-dr)),lr&&(lr=clearInterval(lr))):(lr||(cr=fr.now(),lr=setInterval(vr,1e3)),ar=1,pr(br)))}function xr(e,t,n){var r=new gr;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}gr.prototype=yr.prototype={constructor:gr,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?hr():+n)+(null==t?0:+t),this._next||or===this||(or?or._next=this:rr=this,or=this),this._call=e,this._time=n,wr()},stop:function(){this._call&&(this._call=null,this._time=1/0,wr())}};var Er=Re("start","end","cancel","interrupt"),Cr=[];function kr(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 xr(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(xr((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=yr(i,0,n.time)}(e,n,{name:t,index:r,group:o,on:Er,tween:Cr,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function Sr(e,t){var n=Ir(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function _r(e,t){var n=Ir(e,t);if(n.state>3)throw new Error("too late; already running");return n}function Ir(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Ar(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 Nr(e,t){var n,r;return function(){var o=_r(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 Rr(e,t,n){var r,o;if("function"!=typeof n)throw new Error;return function(){var i=_r(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 Or(e,t,n){var r=e._id;return e.each((function(){var e=_r(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return Ir(e,r).value[t]}}function Tr(e,t){var n;return("number"==typeof t?Xn:t instanceof Sn?Hn:(n=Sn(t))?(t=n,Hn):Zn)(e,t)}function Mr(e){return function(){this.removeAttribute(e)}}function Pr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Dr(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 jr(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 Br(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 Lr(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 Fr(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 zr(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 Vr(e,t){return function(){Sr(this,e).delay=+t.apply(this,arguments)}}function Gr(e,t){return t=+t,function(){Sr(this,e).delay=t}}function Wr(e,t){return function(){_r(this,e).duration=+t.apply(this,arguments)}}function Hr(e,t){return t=+t,function(){_r(this,e).duration=t}}var Xr=Xt.prototype.constructor;function Yr(e){return function(){this.style.removeProperty(e)}}var $r=0;function Zr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ur(){return++$r}var Jr=Xt.prototype;Zr.prototype={constructor:Zr,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Ve(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,kr(d[f],t,n,f,d,Ir(s,n)));return new Zr(i,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=We(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=Ir(l,n),m=0,g=p.length;m<g;++m)(f=p[m])&&kr(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=Xe(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 Xr(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Ur(),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=Ir(a,t);kr(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?Ir(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)?Sr:_r;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=je(e),r="transform"===n?tr:Tr;return this.attrTween(e,"function"==typeof t?(n.local?Lr:Br)(n,r,Or(this,"attr."+e,t)):null==t?(n.local?Pr:Mr)(n):(n.local?jr:Dr)(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=je(e);return this.tween(n,(r.local?Fr:zr)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?er:Tr;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=ht(this,e),a=(this.style.removeProperty(e),ht(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,Yr(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=ht(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=ht(this,e)),a===l?null:a===r&&l===o?i:(o=l,i=t(r=a,s))}}(e,r,Or(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,s="end."+a;return function(){var l=_r(this,e),c=l.on,u=null==l.value[a]?i||(i=Yr(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=ht(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}}(Or(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=Ir(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?Nr:Rr)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Vr:Gr)(t,e)):Ir(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Wr:Hr)(t,e)):Ir(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(){_r(this,e).ease=t}}(t,e)):Ir(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;_r(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=_r(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 Kr={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function qr(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}Xt.prototype.interrupt=function(e){return this.each((function(){Ar(this,e)}))},Xt.prototype.transition=function(e){var t,n;e instanceof Zr?(t=e._id,e=e._name):(t=Ur(),(n=Kr).time=hr(),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])&&kr(a,e,t,c,s,n||qr(a,t));return new Zr(r,this._parents,e,t)};var Qr=e=>()=>e;function eo(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 to(e,t,n){this.k=e,this.x=t,this.y=n}to.prototype={constructor:to,scale:function(e){return 1===e?this:new to(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new to(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 no=new to(1,0,0);function ro(e){e.stopImmediatePropagation()}function oo(e){e.preventDefault(),e.stopImmediatePropagation()}function io(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function ao(){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 so(){return this.__zoom||no}function lo(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function co(){return navigator.maxTouchPoints||"ontouchstart"in this}function uo(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 fo(){var e,t,n,r=io,o=ao,i=uo,a=lo,s=co,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=ir,f=Re("start","zoom","end"),p=0,h=10;function m(e){e.property("__zoom",so).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",C).on("dblclick.zoom",k).filter(s).on("touchstart.zoom",S).on("touchmove.zoom",_).on("touchend.zoom touchcancel.zoom",I).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 to(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 to(e.k,r,o)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function v(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?b(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 to(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 E(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=$t(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)],Ar(this),n.start()}oo(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 C(e,...t){if(!n&&r.apply(this,arguments)){var o=e.currentTarget,a=w(this,t,!0).event(e),s=Yt(e.view).on("mousemove.zoom",(function(e){if(oo(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]=$t(e,o),a.mouse[1]),a.extent,c))}),!0).on("mouseup.zoom",(function(e){s.on("mousemove.zoom mouseup.zoom",null),Qt(e.view,a.moved),oo(e),a.event(e).end()}),!0),l=$t(e,o),u=e.clientX,d=e.clientY;qt(e.view),ro(e),a.mouse=[l,this.__zoom.invert(l)],Ar(this),a.start()}}function k(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,a=$t(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);oo(e),u>0?Yt(this).transition().duration(u).call(v,d,a,e):Yt(this).call(m.transform,d,a,e)}}function S(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(ro(n),a=0;a<u;++a)l=[l=$t(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)),Ar(this),d.start())}}function _(e,...t){if(this.__zooming){var n,r,o,a,s=w(this,t).event(e),l=e.changedTouches,u=l.length;for(oo(e),n=0;n<u;++n)o=$t(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,b=(b=h[0]-f[0])*b+(b=h[1]-f[1])*b;r=g(r,Math.sqrt(m/b)),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 I(e,...r){if(this.__zooming){var o,i,a=w(this,r).event(e),s=e.changedTouches,l=s.length;for(ro(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=$t(i,this),Math.hypot(t[0]-i[0],t[1]-i[1])<h)){var c=Yt(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",so),e!==o?v(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?b(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?b(e):"function"==typeof r?r.apply(this,arguments):r;return i(no.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=Yt(this.that).datum();f.call(e,this.that,new eo(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:Qr(+e),m):a},m.filter=function(e){return arguments.length?(r="function"==typeof e?e:Qr(!!e),m):r},m.touchable=function(e){return arguments.length?(s="function"==typeof e?e:Qr(!!e),m):s},m.extent=function(e){return arguments.length?(o="function"==typeof e?e:Qr([[+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}to.prototype;const po=e.createContext(null),ho=po.Provider,mo=()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",go=e=>`Node type "${e}" not found. Using fallback type "default".`,yo=()=>"The React Flow parent container needs a width and a height to render the graph.",bo=()=>"Only child nodes can use a parent extent.",vo=()=>"Can't create edge. An edge needs a source and a target.",wo=e=>`Marker type "${e}" doesn't exist.`,xo=(e,t)=>`Couldn't create edge for ${e?"target":"source"} handle id: "${e?t.targetHandle:t.sourceHandle}", edge id: ${t.id}.`,Eo=()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",Co=e=>`Edge type "${e}" not found. Using fallback type "default".`,ko=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.`,So=(()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001")();function _o(t,n){const r=e.useContext(po);if(null===r)throw new Error(So);return _e(r,t,n)}const Io=()=>{const t=e.useContext(po);if(null===t)throw new Error(So);return e.useMemo((()=>({getState:t.getState,setState:t.setState,subscribe:t.subscribe,destroy:t.destroy})),[t])},Ao=e=>e.userSelectionActive?"none":"all";function No({position:t,children:n,className:r,style:o,...i}){const a=_o(Ao),s=`${t}`.split("-");return e.createElement("div",{className:Ee(["react-flow__panel",r,...s]),style:{...o,pointerEvents:a},...i},n)}function Ro({proOptions:t,position:n="bottom-right"}){return t?.hideAttribution?null:e.createElement(No,{position:n,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro"},e.createElement("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution"},"React Flow"))}var Oo=e.memo((({x:t,y:n,label:r,labelStyle:o={},labelShowBg:i=!0,labelBgStyle:a={},labelBgPadding:s=[2,4],labelBgBorderRadius:l=2,children:c,className:u,...d})=>{const f=e.useRef(null),[p,h]=e.useState({x:0,y:0,width:0,height:0}),m=Ee(["react-flow__edge-textwrapper",u]);return e.useEffect((()=>{if(f.current){const e=f.current.getBBox();h({x:e.x,y:e.y,width:e.width,height:e.height})}}),[r]),void 0!==r&&r?e.createElement("g",{transform:`translate(${t-p.width/2} ${n-p.height/2})`,className:m,visibility:p.width?"visible":"hidden",...d},i&&e.createElement("rect",{width:p.width+2*s[0],x:-s[0],y:-s[1],height:p.height+2*s[1],className:"react-flow__edge-textbg",style:a,rx:l,ry:l}),e.createElement("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:f,style:o},r),c):null}));const To=e=>({width:e.offsetWidth,height:e.offsetHeight}),Mo=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Po=(e={x:0,y:0},t)=>({x:Mo(e.x,t[0][0],t[1][0]),y:Mo(e.y,t[0][1],t[1][1])}),Do=(e,t,n)=>e<t?Mo(Math.abs(e-t),1,50)/50:e>n?-Mo(Math.abs(e-n),1,50)/50:0,jo=(e,t)=>[20*Do(e.x,35,t.width-35),20*Do(e.y,35,t.height-35)],Bo=e=>e.getRootNode?.()||window?.document,Lo=(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)}),Fo=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),zo=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),Vo=e=>({...e.positionAbsolute||{x:0,y:0},width:e.width||0,height:e.height||0}),Go=(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)},Wo=e=>!isNaN(e)&&isFinite(e),Ho=Symbol.for("internals"),Xo=["Enter"," ","Escape"],Yo=(e,t)=>{"development"===process.env.NODE_ENV&&console.warn(`[React Flow]: ${t} Help: https://reactflow.dev/error#${e}`)};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 Zo=e=>"clientX"in e,Uo=(e,t)=>{const n=Zo(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)}},Jo=()=>"undefined"!=typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0,Ko=({id:t,path:n,labelX:r,labelY:o,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:f,markerStart:p,interactionWidth:h=20})=>e.createElement(e.Fragment,null,e.createElement("path",{id:t,style:d,d:n,fill:"none",className:"react-flow__edge-path",markerEnd:f,markerStart:p}),h&&e.createElement("path",{d:n,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}),i&&Wo(r)&&Wo(o)?e.createElement(Oo,{x:r,y:o,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u}):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 Qo({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 ei({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 ti,ni,ri,oi,ii,ai;function si({pos:e,x1:t,y1:n,x2:r,y2:o}){return e===ai.Left||e===ai.Right?[.5*(t+r),n]:[t,.5*(n+o)]}function li({sourceX:e,sourceY:t,sourcePosition:n=ai.Bottom,targetX:r,targetY:o,targetPosition:i=ai.Top}){const[a,s]=si({pos:n,x1:e,y1:t,x2:r,y2:o}),[l,c]=si({pos:i,x1:r,y1:o,x2:e,y2:t}),[u,d,f,p]=ei({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]}Ko.displayName="BaseEdge",function(e){e.Strict="strict",e.Loose="loose"}(ti||(ti={})),function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"}(ni||(ni={})),function(e){e.Partial="partial",e.Full="full"}(ri||(ri={})),function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"}(oi||(oi={})),function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"}(ii||(ii={})),function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"}(ai||(ai={}));const ci=e.memo((({sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:i=ai.Bottom,targetPosition:a=ai.Top,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:m,interactionWidth:g})=>{const[y,b,v]=li({sourceX:t,sourceY:n,sourcePosition:i,targetX:r,targetY:o,targetPosition:a});return e.createElement(Ko,{path:y,labelX:b,labelY:v,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:m,interactionWidth:g})}));ci.displayName="SimpleBezierEdge";const ui={[ai.Left]:{x:-1,y:0},[ai.Right]:{x:1,y:0},[ai.Top]:{x:0,y:-1},[ai.Bottom]:{x:0,y:1}},di=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function fi({source:e,sourcePosition:t=ai.Bottom,target:n,targetPosition:r=ai.Top,center:o,offset:i}){const a=ui[t],s=ui[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=ai.Bottom,target:n})=>t===ai.Left||t===ai.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},[b,v,w,x]=Qo({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(a[d]*s[d]==-1){p=o.x??b,h=o.y??v;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 b={x:l.x+g.x,y:l.y+g.y},v={x:c.x+y.x,y:c.y+y.y};Math.max(Math.abs(b.x-m[0].x),Math.abs(v.x-m[0].x))>=Math.max(Math.abs(b.y-m[0].y),Math.abs(v.y-m[0].y))?(p=(b.x+v.x)/2,h=m[0].y):(p=m[0].x,h=(b.y+v.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 pi({sourceX:e,sourceY:t,sourcePosition:n=ai.Bottom,targetX:r,targetY:o,targetPosition:i=ai.Top,borderRadius:a=5,centerX:s,centerY:l,offset:c=20}){const[u,d,f,p,h]=fi({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(di(e,t)/2,di(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 hi=e.memo((({sourceX:t,sourceY:n,targetX:r,targetY:o,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,sourcePosition:f=ai.Bottom,targetPosition:p=ai.Top,markerEnd:h,markerStart:m,pathOptions:g,interactionWidth:y})=>{const[b,v,w]=pi({sourceX:t,sourceY:n,sourcePosition:f,targetX:r,targetY:o,targetPosition:p,borderRadius:g?.borderRadius,offset:g?.offset});return e.createElement(Ko,{path:b,labelX:v,labelY:w,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:h,markerStart:m,interactionWidth:y})}));hi.displayName="SmoothStepEdge";const mi=e.memo((t=>e.createElement(hi,{...t,pathOptions:e.useMemo((()=>({borderRadius:0,offset:t.pathOptions?.offset})),[t.pathOptions?.offset])})));mi.displayName="StepEdge";const gi=e.memo((({sourceX:t,sourceY:n,targetX:r,targetY:o,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:f,markerStart:p,interactionWidth:h})=>{const[m,g,y]=function({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,a,s]=Qo({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,a,s]}({sourceX:t,sourceY:n,targetX:r,targetY:o});return e.createElement(Ko,{path:m,labelX:g,labelY:y,label:i,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:f,markerStart:p,interactionWidth:h})}));function yi(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function bi({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case ai.Left:return[t-yi(t-r,i),n];case ai.Right:return[t+yi(r-t,i),n];case ai.Top:return[t,n-yi(n-o,i)];case ai.Bottom:return[t,n+yi(o-n,i)]}}function vi({sourceX:e,sourceY:t,sourcePosition:n=ai.Bottom,targetX:r,targetY:o,targetPosition:i=ai.Top,curvature:a=.25}){const[s,l]=bi({pos:n,x1:e,y1:t,x2:r,y2:o,c:a}),[c,u]=bi({pos:i,x1:r,y1:o,x2:e,y2:t,c:a}),[d,f,p,h]=ei({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]}gi.displayName="StraightEdge";const wi=e.memo((({sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:i=ai.Bottom,targetPosition:a=ai.Top,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:m,pathOptions:g,interactionWidth:y})=>{const[b,v,w]=vi({sourceX:t,sourceY:n,sourcePosition:i,targetX:r,targetY:o,targetPosition:a,curvature:g?.curvature});return e.createElement(Ko,{path:b,labelX:v,labelY:w,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:m,interactionWidth:y})}));wi.displayName="BezierEdge";const xi=e.createContext(null),Ei=xi.Provider;xi.Consumer;const Ci=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`reactflow__edge-${e}${t||""}-${n}${r||""}`,ki=(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("&")}`},Si=({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},_i=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r}),Ii=(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}},Ai=(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}=Ii(n,t).positionAbsolute;return Lo(e,Fo({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 zo(n)},Ni=(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}=Ii(e,s),d={x:u.x,y:u.y,width:t||0,height:n||0},f=Go(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},Ri=(e,t)=>{const n=e.map((e=>e.id));return t.filter((e=>n.includes(e.source)||n.includes(e.target)))},Oi=(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=Mo(l,r,o);return{x:t/2-(e.x+e.width/2)*c,y:n/2-(e.y+e.height/2)*c,zoom:c}},Ti=(e,t=0)=>e.transition().duration(t);function Mi(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 Pi={source:null,target:null,sourceHandle:null,targetHandle:null},Di=()=>({handleDomNode:null,isValid:!1,connection:Pi,endHandle:null});function ji(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={...Di(),handleDomNode:l};if(l){const e=Bi(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===ti.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 Bi(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function Li(e){e?.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function Fi(e,t){let n=null;return t?n="valid":e&&!t&&(n="invalid"),n}function zi({event:e,handleId:t,nodeId:n,onConnect:r,isTarget:o,getState:i,setState:a,isValidConnection:s,edgeUpdaterType:l,onReconnectEnd:c}){const u=Bo(e.target),{connectionMode:d,domNode:f,autoPanOnConnect:p,connectionRadius:h,onConnectStart:m,panBy:g,getNodes:y,cancelConnection:b}=i();let v,w=0;const{x:x,y:E}=Uo(e),C=u?.elementFromPoint(x,E),k=Bi(l,C),S=f?.getBoundingClientRect();if(!S||!k)return;let _,I=Uo(e,S),A=!1,N=null,R=!1,O=null;const T=function({nodes:e,nodeId:t,handleId:n,handleType:r}){return e.reduce(((e,o)=>{if(o[Ho]){const{handleBounds:i}=o[Ho];let a=[],s=[];i&&(a=Mi(o,i,"source",`${t}-${n}-${r}`),s=Mi(o,i,"target",`${t}-${n}-${r}`)),e.push(...a,...s)}return e}),[])}({nodes:y(),nodeId:n,handleId:t,handleType:k}),M=()=>{if(!p)return;const[e,t]=jo(I,S);g({x:e,y:t}),w=requestAnimationFrame(M)};function P(e){const{transform:r}=i();I=Uo(e,S);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=Bi(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:Di()};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,Si(I,r,!1,[1,1]),h,T,(e=>ji(e,d,n,t,o?"target":"source",s,u)));if(v=l,A||(M(),A=!0),O=c.handleDomNode,N=c.connection,R=c.isValid,a({connectionPosition:v&&R?_i({x:v.x,y:v.y},r):I,connectionStatus:Fi(!!v,R),connectionEndHandle:c.endHandle}),!v&&!R&&!O)return Li(_);N.source!==N.target&&O&&(Li(_),_=O,O.classList.add("connecting","react-flow__handle-connecting"),O.classList.toggle("valid",R),O.classList.toggle("react-flow__handle-valid",R))}function D(e){(v||O)&&N&&R&&r?.(N),i().onConnectEnd?.(e),l&&c?.(e),Li(_),b(),cancelAnimationFrame(w),A=!1,R=!1,N=null,O=null,u.removeEventListener("mousemove",P),u.removeEventListener("mouseup",D),u.removeEventListener("touchmove",P),u.removeEventListener("touchend",D)}a({connectionPosition:I,connectionStatus:null,connectionNodeId:n,connectionHandleId:t,connectionHandleType:k,connectionStartHandle:{nodeId:n,handleId:t,type:k},connectionEndHandle:null}),m?.(e,{nodeId:n,handleId:t,handleType:k}),u.addEventListener("mousemove",P),u.addEventListener("mouseup",D),u.addEventListener("touchmove",P),u.addEventListener("touchend",D)}const Vi=()=>!0,Gi=e=>({connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName}),Wi=e.forwardRef((({type:t="source",position:n=ai.Top,isValidConnection:r,isConnectable:o=!0,isConnectableStart:i=!0,isConnectableEnd:a=!0,id:s,onConnect:l,children:c,className:u,onMouseDown:d,onTouchStart:f,...p},h)=>{const m=s||null,g="target"===t,y=Io(),b=e.useContext(xi),{connectOnClick:v,noPanClassName:w}=_o(Gi,Ae),{connecting:x,clickConnecting:E}=_o(((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}})(b,m,t),Ae);b||y.getState().onError?.("010",Eo());const C=e=>{const{defaultEdgeOptions:t,onConnect:n,hasDefaultEdges:r}=y.getState(),o={...t,...e};if(r){const{edges:e,setEdges:t}=y.getState();t(((e,t)=>{if(!e.source||!e.target)return Yo("006",vo()),t;let n;return n=(e=>"id"in e&&"source"in e&&"target"in e)(e)?{...e}:{...e,id:Ci(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),l?.(o)},k=e=>{if(!b)return;const t=Zo(e);i&&(t&&0===e.button||!t)&&zi({event:e,handleId:m,nodeId:b,onConnect:C,isTarget:g,getState:y.getState,setState:y.setState,isValidConnection:r||y.getState().isValidConnection||Vi}),t?d?.(e):f?.(e)};return e.createElement("div",{"data-handleid":m,"data-nodeid":b,"data-handlepos":n,"data-id":`${b}-${m}-${t}`,className:Ee(["react-flow__handle",`react-flow__handle-${n}`,"nodrag",w,u,{source:!g,target:g,connectable:o,connectablestart:i,connectableend:a,connecting:E,connectionindicator:o&&(i&&!x||a&&x)}]),onMouseDown:k,onTouchStart:k,onClick:v?e=>{const{onClickConnectStart:n,onClickConnectEnd:o,connectionClickStartHandle:a,connectionMode:s,isValidConnection:l}=y.getState();if(!b||!a&&!i)return;if(!a)return n?.(e,{nodeId:b,handleId:m,handleType:t}),void y.setState({connectionClickStartHandle:{nodeId:b,type:t,handleId:m}});const c=Bo(e.target),u=r||l||Vi,{connection:d,isValid:f}=ji({nodeId:b,id:m,type:t},s,a.nodeId,a.handleId||null,a.type,u,c);f&&C(d),o?.(e),y.setState({connectionClickStartHandle:null})}:void 0,ref:h,...p},c)}));Wi.displayName="Handle";var Hi=e.memo(Wi);const Xi=({data:t,isConnectable:n,targetPosition:r=ai.Top,sourcePosition:o=ai.Bottom})=>e.createElement(e.Fragment,null,e.createElement(Hi,{type:"target",position:r,isConnectable:n}),t?.label,e.createElement(Hi,{type:"source",position:o,isConnectable:n}));Xi.displayName="DefaultNode";var Yi=e.memo(Xi);const $i=({data:t,isConnectable:n,sourcePosition:r=ai.Bottom})=>e.createElement(e.Fragment,null,t?.label,e.createElement(Hi,{type:"source",position:r,isConnectable:n}));$i.displayName="InputNode";var Zi=e.memo($i);const Ui=({data:t,isConnectable:n,targetPosition:r=ai.Top})=>e.createElement(e.Fragment,null,e.createElement(Hi,{type:"target",position:r,isConnectable:n}),t?.label);Ui.displayName="OutputNode";var Ji=e.memo(Ui);const Ki=()=>null;Ki.displayName="GroupNode";const qi=e=>({selectedNodes:e.getNodes().filter((e=>e.selected)),selectedEdges:e.edges.filter((e=>e.selected)).map((e=>({...e})))}),Qi=e=>e.id;function ea(e,t){return Ae(e.selectedNodes.map(Qi),t.selectedNodes.map(Qi))&&Ae(e.selectedEdges.map(Qi),t.selectedEdges.map(Qi))}const ta=e.memo((({onSelectionChange:t})=>{const n=Io(),{selectedNodes:r,selectedEdges:o}=_o(qi,ea);return e.useEffect((()=>{const e={nodes:r,edges:o};t?.(e),n.getState().onSelectionChange.forEach((t=>t(e)))}),[r,o,t]),null}));ta.displayName="SelectionListener";const na=e=>!!e.onSelectionChange;function ra({onSelectionChange:t}){const n=_o(na);return t||n?e.createElement(ta,{onSelectionChange:t}):null}const oa=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 ia(t,n){e.useEffect((()=>{void 0!==t&&n(t)}),[t])}function aa(t,n,r){e.useEffect((()=>{void 0!==n&&r({[t]:n})}),[n])}const sa=({nodes:t,edges:n,defaultNodes:r,defaultEdges:o,onConnect:i,onConnectStart:a,onConnectEnd:s,onClickConnectStart:l,onClickConnectEnd:c,nodesDraggable:u,nodesConnectable:d,nodesFocusable:f,edgesFocusable:p,edgesUpdatable:h,elevateNodesOnSelect:m,minZoom:g,maxZoom:y,nodeExtent:b,onNodesChange:v,onEdgesChange:w,elementsSelectable:x,connectionMode:E,snapGrid:C,snapToGrid:k,translateExtent:S,connectOnClick:_,defaultEdgeOptions:I,fitView:A,fitViewOptions:N,onNodesDelete:R,onEdgesDelete:O,onNodeDrag:T,onNodeDragStart:M,onNodeDragStop:P,onSelectionDrag:D,onSelectionDragStart:j,onSelectionDragStop:B,noPanClassName:L,nodeOrigin:F,rfId:z,autoPanOnConnect:V,autoPanOnNodeDrag:G,onError:W,connectionRadius:H,isValidConnection:X,nodeDragThreshold:Y})=>{const{setNodes:$,setEdges:Z,setDefaultNodesAndEdges:U,setMinZoom:J,setMaxZoom:K,setTranslateExtent:q,setNodeExtent:Q,reset:ee}=_o(oa,Ae),te=Io();return e.useEffect((()=>{const e=o?.map((e=>({...e,...I})));return U(r,e),()=>{ee()}}),[]),aa("defaultEdgeOptions",I,te.setState),aa("connectionMode",E,te.setState),aa("onConnect",i,te.setState),aa("onConnectStart",a,te.setState),aa("onConnectEnd",s,te.setState),aa("onClickConnectStart",l,te.setState),aa("onClickConnectEnd",c,te.setState),aa("nodesDraggable",u,te.setState),aa("nodesConnectable",d,te.setState),aa("nodesFocusable",f,te.setState),aa("edgesFocusable",p,te.setState),aa("edgesUpdatable",h,te.setState),aa("elementsSelectable",x,te.setState),aa("elevateNodesOnSelect",m,te.setState),aa("snapToGrid",k,te.setState),aa("snapGrid",C,te.setState),aa("onNodesChange",v,te.setState),aa("onEdgesChange",w,te.setState),aa("connectOnClick",_,te.setState),aa("fitViewOnInit",A,te.setState),aa("fitViewOnInitOptions",N,te.setState),aa("onNodesDelete",R,te.setState),aa("onEdgesDelete",O,te.setState),aa("onNodeDrag",T,te.setState),aa("onNodeDragStart",M,te.setState),aa("onNodeDragStop",P,te.setState),aa("onSelectionDrag",D,te.setState),aa("onSelectionDragStart",j,te.setState),aa("onSelectionDragStop",B,te.setState),aa("noPanClassName",L,te.setState),aa("nodeOrigin",F,te.setState),aa("rfId",z,te.setState),aa("autoPanOnConnect",V,te.setState),aa("autoPanOnNodeDrag",G,te.setState),aa("onError",W,te.setState),aa("connectionRadius",H,te.setState),aa("isValidConnection",X,te.setState),aa("nodeDragThreshold",Y,te.setState),ia(t,$),ia(n,Z),ia(g,J),ia(y,K),ia(S,q),ia(b,Q),null},la={display:"none"},ca={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},ua="react-flow__node-desc",da="react-flow__edge-desc",fa=e=>e.ariaLiveMessage;function pa({rfId:t}){const n=_o(fa);return e.createElement("div",{id:`react-flow__aria-live-${t}`,"aria-live":"assertive","aria-atomic":"true",style:ca},n)}function ha({rfId:t,disableKeyboardA11y:n}){return e.createElement(e.Fragment,null,e.createElement("div",{id:`${ua}-${t}`,style:la},"Press enter or space to select a node.",!n&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "),e.createElement("div",{id:`${da}-${t}`,style:la},"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."),!n&&e.createElement(pa,{rfId:t}))}var ma=(t=null,n={actInsideInputWithModifier:!0})=>{const[r,o]=e.useState(!1),i=e.useRef(!1),a=e.useRef(new Set([])),[s,l]=e.useMemo((()=>{if(null!==t){const e=(Array.isArray(t)?t:[t]).filter((e=>"string"==typeof e)).map((e=>e.split("+"))),n=e.reduce(((e,t)=>e.concat(...t)),[]);return[e,n]}return[[],[]]}),[t]);return e.useEffect((()=>{const e="undefined"!=typeof document?document:null,r=n?.target||e;if(null!==t){const e=e=>{i.current=e.ctrlKey||e.metaKey||e.shiftKey;if((!i.current||i.current&&!n.actInsideInputWithModifier)&&$o(e))return!1;const t=ya(e.code,l);a.current.add(e[t]),ga(s,a.current,!1)&&(e.preventDefault(),o(!0))},t=e=>{if((!i.current||i.current&&!n.actInsideInputWithModifier)&&$o(e))return!1;const t=ya(e.code,l);ga(s,a.current,!0)?(o(!1),a.current.clear()):a.current.delete(e[t]),"Meta"===e.key&&a.current.clear(),i.current=!1},c=()=>{a.current.clear(),o(!1)};return r?.addEventListener("keydown",e),r?.addEventListener("keyup",t),window.addEventListener("blur",c),()=>{r?.removeEventListener("keydown",e),r?.removeEventListener("keyup",t),window.removeEventListener("blur",c)}}}),[t,o]),r};function ga(e,t,n){return e.filter((e=>n||e.length===t.size)).some((e=>e.every((e=>t.has(e)))))}function ya(e,t){return t.includes(e)?"code":"key"}function ba(e,t,n,r){const o=e.parentNode||e.parentId;if(!o)return n;const i=t.get(o),a=Ii(i,r);return ba(i,t,{x:(n.x??0)+a.x,y:(n.y??0)+a.y,z:(i[Ho]?.z??0)>(n.z??0)?i[Ho]?.z??0:n.z??0},r)}function va(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}=ba(r,e,{...r.position,z:r[Ho]?.z??0},t);r.positionAbsolute={x:o,y:i},r[Ho].z=a,n?.[r.id]&&(r[Ho].isParent=!0)}}))}function wa(e,t,n,r){const o=new Map,i={},a=r?1e3:0;return e.forEach((e=>{const n=(Wo(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,Ho,{enumerable:!1,value:{handleBounds:c?void 0:r?.[Ho]?.handleBounds,z:n}}),o.set(e.id,s)})),va(o,n,i),o}function xa(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=Ai(e,d),{x:c,y:u,zoom:f}=Oi(n,r,o,t.minZoom??i,t.maxZoom??a,t.padding??.1),p=no.translate(c,u).scale(f);return"number"==typeof t.duration&&t.duration>0?s.transform(Ti(l,t.duration),p):s.transform(l,p),!0}}return!1}function Ea(e,t){return e.forEach((e=>{const n=t.get(e.id);n&&t.set(n.id,{...n,[Ho]:n[Ho],selected:e.selected})})),new Map(t)}function Ca(e,t){return t.map((t=>{const n=e.find((e=>e.id===t.id));return n&&(t.selected=n.selected),t}))}function ka({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:Ea(e,o)}),a?.(e)),t?.length&&(c&&r({edges:Ca(t,i)}),s?.(t))}const Sa=()=>{},_a={zoomIn:Sa,zoomOut:Sa,zoomTo:Sa,getZoom:()=>1,setViewport:Sa,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:Sa,fitBounds:Sa,project:e=>e,screenToFlowPosition:e=>e,flowToScreenPosition:e=>e,viewportInitialized:!1},Ia=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection});function Aa(){const t=(()=>{const t=Io(),{d3Zoom:n,d3Selection:r}=_o(Ia,Ae),o=e.useMemo((()=>r&&n?{zoomIn:e=>n.scaleBy(Ti(r,e?.duration),1.2),zoomOut:e=>n.scaleBy(Ti(r,e?.duration),1/1.2),zoomTo:(e,t)=>n.scaleTo(Ti(r,t?.duration),e),getZoom:()=>t.getState().transform[2],setViewport:(e,o)=>{const[i,a,s]=t.getState().transform,l=no.translate(e.x??i,e.y??a).scale(e.zoom??s);n.transform(Ti(r,o?.duration),l)},getViewport:()=>{const[e,n,r]=t.getState().transform;return{x:e,y:n,zoom:r}},fitView:e=>xa(t.getState,e),setCenter:(e,o,i)=>{const{width:a,height:s,maxZoom:l}=t.getState(),c=void 0!==i?.zoom?i.zoom:l,u=a/2-e*c,d=s/2-o*c,f=no.translate(u,d).scale(c);n.transform(Ti(r,i?.duration),f)},fitBounds:(e,o)=>{const{width:i,height:a,minZoom:s,maxZoom:l}=t.getState(),{x:c,y:u,zoom:d}=Oi(e,i,a,s,l,o?.padding??.1),f=no.translate(c,u).scale(d);n.transform(Ti(r,o?.duration),f)},project:e=>{const{transform:n,snapToGrid:r,snapGrid:o}=t.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"),Si(e,n,r,o)},screenToFlowPosition:e=>{const{transform:n,snapToGrid:r,snapGrid:o,domNode:i}=t.getState();if(!i)return e;const{x:a,y:s}=i.getBoundingClientRect(),l={x:e.x-a,y:e.y-s};return Si(l,n,r,o)},flowToScreenPosition:e=>{const{transform:n,domNode:r}=t.getState();if(!r)return e;const{x:o,y:i}=r.getBoundingClientRect(),a=_i(e,n);return{x:a.x+o,y:a.y+i}},viewportInitialized:!0}:_a),[n,r]);return o})(),n=Io(),r=e.useCallback((()=>n.getState().getNodes().map((e=>({...e})))),[]),o=e.useCallback((e=>n.getState().nodeInternals.get(e)),[]),i=e.useCallback((()=>{const{edges:e=[]}=n.getState();return e.map((e=>({...e})))}),[]),a=e.useCallback((e=>{const{edges:t=[]}=n.getState();return t.find((t=>t.id===e))}),[]),s=e.useCallback((e=>{const{getNodes:t,setNodes:r,hasDefaultNodes:o,onNodesChange:i}=n.getState(),a=t(),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)}}),[]),l=e.useCallback((e=>{const{edges:t=[],setEdges:r,hasDefaultEdges:o,onEdgesChange:i}=n.getState(),a="function"==typeof e?e(t):e;if(o)r(a);else if(i){i(0===a.length?t.map((e=>({type:"remove",id:e.id}))):a.map((e=>({item:e,type:"reset"}))))}}),[]),c=e.useCallback((e=>{const t=Array.isArray(e)?e:[e],{getNodes:r,setNodes:o,hasDefaultNodes:i,onNodesChange:a}=n.getState();if(i){o([...r(),...t])}else if(a){const e=t.map((e=>({item:e,type:"add"})));a(e)}}),[]),u=e.useCallback((e=>{const t=Array.isArray(e)?e:[e],{edges:r=[],setEdges:o,hasDefaultEdges:i,onEdgesChange:a}=n.getState();if(i)o([...r,...t]);else if(a){a(t.map((e=>({item:e,type:"add"}))))}}),[]),d=e.useCallback((()=>{const{getNodes:e,edges:t=[],transform:r}=n.getState(),[o,i,a]=r;return{nodes:e().map((e=>({...e}))),edges:t.map((e=>({...e}))),viewport:{x:o,y:i,zoom:a}}}),[]),f=e.useCallback((({nodes:e,edges:t})=>{const{nodeInternals:r,getNodes:o,edges:i,hasDefaultNodes:a,hasDefaultEdges:s,onNodesDelete:l,onEdgesDelete:c,onNodesChange:u,onEdgesChange:d}=n.getState(),f=(e||[]).map((e=>e.id)),p=(t||[]).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=Ri(h,m),t=[...g,...e],o=t.reduce(((e,t)=>(e.includes(t.id)||e.push(t.id),e)),[]);if((s||a)&&(s&&n.setState({edges:i.filter((e=>!o.includes(e.id)))}),a&&(h.forEach((e=>{r.delete(e.id)})),n.setState({nodeInternals:new Map(r)}))),o.length>0&&(c?.(t),d&&d(o.map((e=>({id:e,type:"remove"}))))),h.length>0&&(l?.(h),u)){u(h.map((e=>({id:e.id,type:"remove"}))))}}}),[]),p=e.useCallback((e=>{const t=Wo((r=e).width)&&Wo(r.height)&&Wo(r.x)&&Wo(r.y);var r;const o=t?null:n.getState().nodeInternals.get(e.id);if(!t&&!o)return[null,null,t];return[t?e:Vo(o),o,t]}),[]),h=e.useCallback(((e,t=!0,r)=>{const[o,i,a]=p(e);return o?(r||n.getState().getNodes()).filter((e=>{if(!(a||e.id!==i.id&&e.positionAbsolute))return!1;const n=Vo(e),r=Go(n,o);return t&&r>0||r>=o.width*o.height})):[]}),[]),m=e.useCallback(((e,t,n=!0)=>{const[r]=p(e);if(!r)return!1;const o=Go(r,t);return n&&o>0||o>=r.width*r.height}),[]);return e.useMemo((()=>({...t,getNodes:r,getNode:o,getEdges:i,getEdge:a,setNodes:s,setEdges:l,addNodes:c,addEdges:u,toObject:d,deleteElements:f,getIntersectingNodes:h,isNodeIntersecting:m})),[t,r,o,i,a,s,l,c,u,d,f,h,m])}const Na={actInsideInputWithModifier:!1};const Ra={position:"absolute",width:"100%",height:"100%",top:0,left:0},Oa=e=>({x:e.x,y:e.y,zoom:e.k}),Ta=(e,t)=>e.target.closest(`.${t}`),Ma=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),Pa=e=>{const t=e.ctrlKey&&Jo()?10:1;return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t},Da=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler,userSelectionActive:e.userSelectionActive}),ja=({onMove:t,onMoveStart:n,onMoveEnd:r,onPaneContextMenu:o,zoomOnScroll:i=!0,zoomOnPinch:a=!0,panOnScroll:s=!1,panOnScrollSpeed:l=.5,panOnScrollMode:c=ni.Free,zoomOnDoubleClick:u=!0,elementsSelectable:d,panOnDrag:f=!0,defaultViewport:p,translateExtent:h,minZoom:m,maxZoom:g,zoomActivationKeyCode:y,preventScrolling:b=!0,children:v,noWheelClassName:w,noPanClassName:x})=>{const E=e.useRef(),C=Io(),k=e.useRef(!1),S=e.useRef(!1),_=e.useRef(null),I=e.useRef({x:0,y:0,zoom:0}),{d3Zoom:A,d3Selection:N,d3ZoomHandler:R,userSelectionActive:O}=_o(Da,Ae),T=ma(y),M=e.useRef(0),P=e.useRef(!1),D=e.useRef();return function(t){const n=Io();e.useEffect((()=>{let e;const r=()=>{if(!t.current)return;const e=To(t.current);0!==e.height&&0!==e.width||n.getState().onError?.("004",yo()),n.setState({width:e.width||500,height:e.height||500})};return r(),window.addEventListener("resize",r),t.current&&(e=new ResizeObserver((()=>r())),e.observe(t.current)),()=>{window.removeEventListener("resize",r),e&&t.current&&e.unobserve(t.current)}}),[])}(_),e.useEffect((()=>{if(_.current){const e=_.current.getBoundingClientRect(),t=fo().scaleExtent([m,g]).translateExtent(h),n=Yt(_.current).call(t),r=no.translate(p.x,p.y).scale(Mo(p.zoom,m,g)),o=[[0,0],[e.width,e.height]],i=t.constrain()(r,o,h);t.transform(n,i),t.wheelDelta(Pa),C.setState({d3Zoom:t,d3Selection:n,d3ZoomHandler:n.on("wheel.zoom"),transform:[i.x,i.y,i.k],domNode:_.current.closest(".react-flow")})}}),[]),e.useEffect((()=>{N&&A&&(!s||T||O?void 0!==R&&N.on("wheel.zoom",(function(e,t){if(!b&&"wheel"===e.type&&!e.ctrlKey||Ta(e,w))return null;e.preventDefault(),R.call(this,e,t)}),{passive:!1}):N.on("wheel.zoom",(e=>{if(Ta(e,w))return!1;e.preventDefault(),e.stopImmediatePropagation();const o=N.property("__zoom").k||1;if(e.ctrlKey&&a){const t=$t(e),n=Pa(e),r=o*Math.pow(2,n);return void A.scaleTo(N,r,t,e)}const i=1===e.deltaMode?20:1;let s=c===ni.Vertical?0:e.deltaX*i,u=c===ni.Horizontal?0:e.deltaY*i;!Jo()&&e.shiftKey&&c!==ni.Vertical&&(s=e.deltaY*i,u=0),A.translateBy(N,-s/o*l,-u/o*l,{internal:!0});const d=Oa(N.property("__zoom")),{onViewportChangeStart:f,onViewportChange:p,onViewportChangeEnd:h}=C.getState();clearTimeout(D.current),P.current||(P.current=!0,n?.(e,d),f?.(d)),P.current&&(t?.(e,d),p?.(d),D.current=setTimeout((()=>{r?.(e,d),h?.(d),P.current=!1}),150))}),{passive:!1}))}),[O,s,c,N,A,R,T,a,b,w,n,t,r]),e.useEffect((()=>{A&&A.on("start",(e=>{if(!e.sourceEvent||e.sourceEvent.internal)return null;M.current=e.sourceEvent?.button;const{onViewportChangeStart:t}=C.getState(),r=Oa(e.transform);k.current=!0,I.current=r,"mousedown"===e.sourceEvent?.type&&C.setState({paneDragging:!0}),t?.(r),n?.(e.sourceEvent,r)}))}),[A,n]),e.useEffect((()=>{A&&(O&&!k.current?A.on("zoom",null):O||A.on("zoom",(e=>{const{onViewportChange:n}=C.getState();if(C.setState({transform:[e.transform.x,e.transform.y,e.transform.k]}),S.current=!(!o||!Ma(f,M.current??0)),(t||n)&&!e.sourceEvent?.internal){const r=Oa(e.transform);n?.(r),t?.(e.sourceEvent,r)}})))}),[O,A,t,f,o]),e.useEffect((()=>{A&&A.on("end",(e=>{if(!e.sourceEvent||e.sourceEvent.internal)return null;const{onViewportChangeEnd:t}=C.getState();if(k.current=!1,C.setState({paneDragging:!1}),o&&Ma(f,M.current??0)&&!S.current&&o(e.sourceEvent),S.current=!1,(r||t)&&(n=I.current,i=e.transform,n.x!==i.x||n.y!==i.y||n.zoom!==i.k)){const n=Oa(e.transform);I.current=n,clearTimeout(E.current),E.current=setTimeout((()=>{t?.(n),r?.(e.sourceEvent,n)}),s?150:0)}var n,i}))}),[A,s,f,r,o]),e.useEffect((()=>{A&&A.filter((e=>{const t=T||i,n=a&&e.ctrlKey;if((!0===f||Array.isArray(f)&&f.includes(1))&&1===e.button&&"mousedown"===e.type&&(Ta(e,"react-flow__node")||Ta(e,"react-flow__edge")))return!0;if(!(f||t||s||u||a))return!1;if(O)return!1;if(!u&&"dblclick"===e.type)return!1;if(Ta(e,w)&&"wheel"===e.type)return!1;if(Ta(e,x)&&("wheel"!==e.type||s&&"wheel"===e.type&&!T))return!1;if(!a&&e.ctrlKey&&"wheel"===e.type)return!1;if(!t&&!s&&!n&&"wheel"===e.type)return!1;if(!f&&("mousedown"===e.type||"touchstart"===e.type))return!1;if(Array.isArray(f)&&!f.includes(e.button)&&"mousedown"===e.type)return!1;const r=Array.isArray(f)&&f.includes(e.button)||!e.button||e.button<=1;return(!e.ctrlKey||"wheel"===e.type)&&r}))}),[O,A,i,a,s,u,f,d,T]),e.createElement("div",{className:"react-flow__renderer",ref:_,style:Ra},v)},Ba=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function La(){const{userSelectionActive:t,userSelectionRect:n}=_o(Ba,Ae);return t&&n?e.createElement("div",{className:"react-flow__selection react-flow__container",style:{width:n.width,height:n.height,transform:`translate(${n.x}px, ${n.y}px)`}}):null}function Fa(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 za(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&&Fa(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&&Fa(t,o);break;case"remove":return t}return t.push(o),t}),n)}function Va(e,t){return za(e,t)}function Ga(e,t){return za(e,t)}const Wa=(e,t)=>({id:e,type:"select",selected:t});function Ha(e,t){return e.reduce(((e,n)=>{const r=t.includes(n.id);return!n.selected&&r?(n.selected=!0,e.push(Wa(n.id,!0))):n.selected&&!r&&(n.selected=!1,e.push(Wa(n.id,!1))),e}),[])}const Xa=(e,t)=>n=>{n.target===t.current&&e?.(n)},Ya=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging}),$a=e.memo((({isSelecting:t,selectionMode:n=ri.Full,panOnDrag:r,onSelectionStart:o,onSelectionEnd:i,onPaneClick:a,onPaneContextMenu:s,onPaneScroll:l,onPaneMouseEnter:c,onPaneMouseMove:u,onPaneMouseLeave:d,children:f})=>{const p=e.useRef(null),h=Io(),m=e.useRef(0),g=e.useRef(0),y=e.useRef(),{userSelectionActive:b,elementsSelectable:v,dragging:w}=_o(Ya,Ae),x=()=>{h.setState({userSelectionActive:!1,userSelectionRect:null}),m.current=0,g.current=0},E=e=>{a?.(e),h.getState().resetSelectedElements(),h.setState({nodesSelectionActive:!1})},C=l?e=>l(e):void 0,k=v&&(t||b);return e.createElement("div",{className:Ee(["react-flow__pane",{dragging:w,selection:t}]),onClick:k?void 0:Xa(E,p),onContextMenu:Xa((e=>{Array.isArray(r)&&r?.includes(2)?e.preventDefault():s?.(e)}),p),onWheel:Xa(C,p),onMouseEnter:k?void 0:c,onMouseDown:k?e=>{const{resetSelectedElements:n,domNode:r}=h.getState();if(y.current=r?.getBoundingClientRect(),!v||!t||0!==e.button||e.target!==p.current||!y.current)return;const{x:i,y:a}=Uo(e,y.current);n(),h.setState({userSelectionRect:{width:0,height:0,startX:i,startY:a,x:i,y:a}}),o?.(e)}:void 0,onMouseMove:k?e=>{const{userSelectionRect:r,nodeInternals:o,edges:i,transform:a,onNodesChange:s,onEdgesChange:l,nodeOrigin:c,getNodes:u}=h.getState();if(!t||!y.current||!r)return;h.setState({userSelectionActive:!0,nodesSelectionActive:!1});const d=Uo(e,y.current),f=r.startX??0,p=r.startY??0,b={...r,x:d.x<f?d.x:f,y:d.y<p?d.y:p,width:Math.abs(d.x-f),height:Math.abs(d.y-p)},v=u(),w=Ni(o,b,a,n===ri.Partial,!0,c),x=Ri(w,i).map((e=>e.id)),E=w.map((e=>e.id));if(m.current!==E.length){m.current=E.length;const e=Ha(v,E);e.length&&s?.(e)}if(g.current!==x.length){g.current=x.length;const e=Ha(i,x);e.length&&l?.(e)}h.setState({userSelectionRect:b})}:u,onMouseUp:k?e=>{if(0!==e.button)return;const{userSelectionRect:t}=h.getState();!b&&t&&e.target===p.current&&E?.(e),h.setState({nodesSelectionActive:m.current>0}),x(),i?.(e)}:void 0,onMouseLeave:k?e=>{b&&(h.setState({nodesSelectionActive:m.current>0}),i?.(e)),x()}:d,ref:p,style:Ra},f,e.createElement(La,null))}));function Za(e,t){const n=e.parentNode||e.parentId;if(!n)return!1;const r=t.get(n);return!!r&&(!!r.selected||Za(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 Ja(e,t,n,r){return Array.from(e.values()).filter((n=>(n.selected||n.id===r)&&(!n.parentNode||n.parentId||!Za(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 Ka(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}=Ii(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}=Ii(t,o).positionAbsolute;s=t&&Wo(r)&&Wo(i)&&Wo(t.width)&&Wo(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",bo()),s=a;let c={x:0,y:0};if(l){const e=n.get(l);c=Ii(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 Qa=(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,...To(e)}}))};function es(e,t,n){return void 0===n?n:r=>{const o=t().nodeInternals.get(e);o&&n(r,{...o})}}function ts({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",ko(e))}function ns(e){return(t,n,r)=>e?.(t,r)}function rs({nodeRef:t,disabled:n=!1,noDragClassName:r,handleSelector:o,nodeId:i,isSelectable:a,selectNodesOnDrag:s}){const l=Io(),[c,u]=e.useState(!1),d=e.useRef([]),f=e.useRef({x:null,y:null}),p=e.useRef(0),h=e.useRef(null),m=e.useRef({x:0,y:0}),g=e.useRef(null),y=e.useRef(!1),b=e.useRef(!1),v=e.useRef(!1),w=function(){const t=Io(),n=e.useCallback((({sourceEvent:e})=>{const{transform:n,snapGrid:r,snapToGrid:o}=t.getState(),i=e.touches?e.touches[0].clientX:e.clientX,a=e.touches?e.touches[0].clientY:e.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 n}();return e.useEffect((()=>{if(t?.current){const e=Yt(t.current),c=({x:e,y:t})=>{const{nodeInternals:n,onNodeDrag:r,onSelectionDrag:o,updateNodePositions:a,nodeExtent:s,snapGrid:c,snapToGrid:p,nodeOrigin:h,onError:m}=l.getState();f.current={x:e,y:t};let y=!1,b={x:0,y:0,x2:0,y2:0};if(d.current.length>1&&s){const e=Ai(d.current,h);b=Fo(e)}if(d.current=d.current.map((r=>{const o={x:e-r.distance.x,y:t-r.distance.y};p&&(o.x=c[0]*Math.round(o.x/c[0]),o.y=c[1]*Math.round(o.y/c[1]));const i=[[s[0][0],s[0][1]],[s[1][0],s[1][1]]];d.current.length>1&&s&&!r.extent&&(i[0][0]=r.positionAbsolute.x-b.x+s[0][0],i[1][0]=r.positionAbsolute.x+(r.width??0)-b.x2+s[1][0],i[0][1]=r.positionAbsolute.y-b.y+s[0][1],i[1][1]=r.positionAbsolute.y+(r.height??0)-b.y2+s[1][1]);const a=Ka(r,o,n,i,h,m);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(d.current,!0,!0),u(!0);const v=i?r:ns(o);if(v&&g.current){const[e,t]=qa({nodeId:i,dragItems:d.current,nodeInternals:n});v(g.current,e,t)}},x=()=>{if(!h.current)return;const[e,t]=jo(m.current,h.current);if(0!==e||0!==t){const{transform:n,panBy:r}=l.getState();f.current.x=(f.current.x??0)-e/n[2],f.current.y=(f.current.y??0)-t/n[2],r({x:e,y:t})&&c(f.current)}p.current=requestAnimationFrame(x)},E=e=>{const{nodeInternals:n,multiSelectionActive:r,nodesDraggable:o,unselectNodesAndEdges:c,onNodeDragStart:u,onSelectionDragStart:p}=l.getState();b.current=!0;const h=i?u:ns(p);s&&a||r||!i||n.get(i)?.selected||c(),i&&a&&s&&ts({id:i,store:l,nodeRef:t});const m=w(e);if(f.current=m,d.current=Ja(n,o,m,i),h&&d.current){const[t,r]=qa({nodeId:i,dragItems:d.current,nodeInternals:n});h(e.sourceEvent,t,r)}};if(!n){const n=function(){var e,t,n,r,o=nn,i=rn,a=on,s=an,l={},c=Re("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",b).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=v(this,i.call(this,a,s),a,s,"mouse");l&&(Yt(a.view).on("mousemove.drag",h,Ut).on("mouseup.drag",m,Ut),qt(a.view),Jt(a),n=!1,e=a.clientX,t=a.clientY,l("start",a))}}function h(r){if(Kt(r),!n){var o=r.clientX-e,i=r.clientY-t;n=o*o+i*i>d}l.mouse("drag",r)}function m(e){Yt(e.view).on("mousemove.drag mouseup.drag",null),Qt(e.view,n),Kt(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=v(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])&&(Kt(e),n("drag",e,r[t]))}function b(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 v(e,t,n,r,o,i){var s,d,p,h=c.copy(),m=$t(i||n,t);if(null!=(p=a.call(e,new tn("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=$t(c||a,t),g=u}h.call(i,e,new tn(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:en(!!e),f):o},f.container=function(e){return arguments.length?(i="function"==typeof e?e:en(e),f):i},f.subject=function(e){return arguments.length?(a="function"==typeof e?e:en(e),f):a},f.touchable=function(e){return arguments.length?(s="function"==typeof e?e:en(!!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}=l.getState();0===n&&E(e),v.current=!1;const r=w(e);f.current=r,h.current=t?.getBoundingClientRect()||null,m.current=Uo(e.sourceEvent,h.current)})).on("drag",(e=>{const t=w(e),{autoPanOnNodeDrag:n,nodeDragThreshold:r}=l.getState();if("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1&&(v.current=!0),!v.current){if(!y.current&&b.current&&n&&(y.current=!0,x()),!b.current){const n=t.xSnapped-(f?.current?.x??0),o=t.ySnapped-(f?.current?.y??0);Math.sqrt(n*n+o*o)>r&&E(e)}(f.current.x!==t.xSnapped||f.current.y!==t.ySnapped)&&d.current&&b.current&&(g.current=e.sourceEvent,m.current=Uo(e.sourceEvent,h.current),c(t))}})).on("end",(e=>{if(b.current&&!v.current&&(u(!1),y.current=!1,b.current=!1,cancelAnimationFrame(p.current),d.current)){const{updateNodePositions:t,nodeInternals:n,onNodeDragStop:r,onSelectionDragStop:o}=l.getState(),a=i?r:ns(o);if(t(d.current,!1,!1),a){const[t,r]=qa({nodeId:i,dragItems:d.current,nodeInternals:n});a(e.sourceEvent,t,r)}}})).filter((e=>{const n=e.target;return!e.button&&(!r||!Ua(n,`.${r}`,t))&&(!o||Ua(n,o,t))}));return e.call(n),()=>{e.on(".drag",null)}}e.on(".drag",null)}}),[t,n,r,o,a,l,i,s,w]),c}function os(){const t=Io(),n=e.useCallback((e=>{const{nodeInternals:n,nodeExtent:r,updateNodePositions:o,getNodes:i,snapToGrid:a,snapGrid:s,onError:l,nodesDraggable:c}=t.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=e.isShiftPressed?4:1,h=e.x*d*p,m=e.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}=Ka(e,t,n,r,void 0,l);e.position=i,e.positionAbsolute=o}return e}));o(g,!0,!1)}),[]);return n}const is={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};var as=t=>{const n=({id:n,type:r,data:o,xPos:i,yPos:a,xPosOrigin:s,yPosOrigin:l,selected:c,onClick:u,onMouseEnter:d,onMouseMove:f,onMouseLeave:p,onContextMenu:h,onDoubleClick:m,style:g,className:y,isDraggable:b,isSelectable:v,isConnectable:w,isFocusable:x,selectNodesOnDrag:E,sourcePosition:C,targetPosition:k,hidden:S,resizeObserver:_,dragHandle:I,zIndex:A,isParent:N,noDragClassName:R,noPanClassName:O,initialized:T,disableKeyboardA11y:M,ariaLabel:P,rfId:D,hasHandleBounds:j})=>{const B=Io(),L=e.useRef(null),F=e.useRef(null),z=e.useRef(C),V=e.useRef(k),G=e.useRef(r),W=v||b||u||d||f||p,H=os(),X=es(n,B.getState,d),Y=es(n,B.getState,f),$=es(n,B.getState,p),Z=es(n,B.getState,h),U=es(n,B.getState,m);e.useEffect((()=>()=>{F.current&&(_?.unobserve(F.current),F.current=null)}),[]),e.useEffect((()=>{if(L.current&&!S){const e=L.current;T&&j&&F.current===e||(F.current&&_?.unobserve(F.current),_?.observe(e),F.current=e)}}),[S,T,j]),e.useEffect((()=>{const e=G.current!==r,t=z.current!==C,o=V.current!==k;L.current&&(e||t||o)&&(e&&(G.current=r),t&&(z.current=C),o&&(V.current=k),B.getState().updateNodeDimensions([{id:n,nodeElement:L.current,forceUpdate:!0}]))}),[n,r,C,k]);const J=rs({nodeRef:L,disabled:S||!b,noDragClassName:R,handleSelector:I,nodeId:n,isSelectable:v,selectNodesOnDrag:E});return S?null:e.createElement("div",{className:Ee(["react-flow__node",`react-flow__node-${r}`,{[O]:b},y,{selected:c,selectable:v,parent:N,dragging:J}]),ref:L,style:{zIndex:A,transform:`translate(${s}px,${l}px)`,pointerEvents:W?"all":"none",visibility:T?"visible":"hidden",...g},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:X,onMouseMove:Y,onMouseLeave:$,onContextMenu:Z,onClick:e=>{const{nodeDragThreshold:t}=B.getState();if(v&&(!E||!b||t>0)&&ts({id:n,store:B,nodeRef:L}),u){const t=B.getState().nodeInternals.get(n);t&&u(e,{...t})}},onDoubleClick:U,onKeyDown:x?e=>{if(!$o(e)&&!M)if(Xo.includes(e.key)&&v){const t="Escape"===e.key;ts({id:n,store:B,unselect:t,nodeRef:L})}else b&&c&&Object.prototype.hasOwnProperty.call(is,e.key)&&(B.setState({ariaLiveMessage:`Moved selected node ${e.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~i}, y: ${~~a}`}),H({x:is[e.key].x,y:is[e.key].y,isShiftPressed:e.shiftKey}))}:void 0,tabIndex:x?0:void 0,role:x?"button":void 0,"aria-describedby":M?void 0:`${ua}-${D}`,"aria-label":P},e.createElement(Ei,{value:n},e.createElement(t,{id:n,data:o,type:r,xPos:i,yPos:a,selected:c,isConnectable:w,sourcePosition:C,targetPosition:k,dragging:J,dragHandle:I,zIndex:A})))};return n.displayName="NodeWrapper",e.memo(n)};const ss=e=>{const t=e.getNodes().filter((e=>e.selected));return{...Ai(t,e.nodeOrigin),transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`,userSelectionActive:e.userSelectionActive}};var ls=e.memo((function({onSelectionContextMenu:t,noPanClassName:n,disableKeyboardA11y:r}){const o=Io(),{width:i,height:a,x:s,y:l,transformString:c,userSelectionActive:u}=_o(ss,Ae),d=os(),f=e.useRef(null);if(e.useEffect((()=>{r||f.current?.focus({preventScroll:!0})}),[r]),rs({nodeRef:f}),u||!i||!a)return null;const p=t?e=>{const n=o.getState().getNodes().filter((e=>e.selected));t(e,n)}:void 0;return e.createElement("div",{className:Ee(["react-flow__nodesselection","react-flow__container",n]),style:{transform:c}},e.createElement("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:r?void 0:-1,onKeyDown:r?void 0:e=>{Object.prototype.hasOwnProperty.call(is,e.key)&&d({x:is[e.key].x,y:is[e.key].y,isShiftPressed:e.shiftKey})},style:{width:i,height:a,top:l,left:s}}))}));const cs=e=>e.nodesSelectionActive,us=({children:t,onPaneClick:n,onPaneMouseEnter:r,onPaneMouseMove:o,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:s,deleteKeyCode:l,onMove:c,onMoveStart:u,onMoveEnd:d,selectionKeyCode:f,selectionOnDrag:p,selectionMode:h,onSelectionStart:m,onSelectionEnd:g,multiSelectionKeyCode:y,panActivationKeyCode:b,zoomActivationKeyCode:v,elementsSelectable:w,zoomOnScroll:x,zoomOnPinch:E,panOnScroll:C,panOnScrollSpeed:k,panOnScrollMode:S,zoomOnDoubleClick:_,panOnDrag:I,defaultViewport:A,translateExtent:N,minZoom:R,maxZoom:O,preventScrolling:T,onSelectionContextMenu:M,noWheelClassName:P,noPanClassName:D,disableKeyboardA11y:j})=>{const B=_o(cs),L=ma(f),F=ma(b),z=F||I,V=F||C,G=L||p&&!0!==z;return(({deleteKeyCode:t,multiSelectionKeyCode:n})=>{const r=Io(),{deleteElements:o}=Aa(),i=ma(t,Na),a=ma(n);e.useEffect((()=>{if(i){const{edges:e,getNodes:t}=r.getState(),n=t().filter((e=>e.selected)),i=e.filter((e=>e.selected));o({nodes:n,edges:i}),r.setState({nodesSelectionActive:!1})}}),[i]),e.useEffect((()=>{r.setState({multiSelectionActive:a})}),[a])})({deleteKeyCode:l,multiSelectionKeyCode:y}),e.createElement(ja,{onMove:c,onMoveStart:u,onMoveEnd:d,onPaneContextMenu:a,elementsSelectable:w,zoomOnScroll:x,zoomOnPinch:E,panOnScroll:V,panOnScrollSpeed:k,panOnScrollMode:S,zoomOnDoubleClick:_,panOnDrag:!L&&z,defaultViewport:A,translateExtent:N,minZoom:R,maxZoom:O,zoomActivationKeyCode:v,preventScrolling:T,noWheelClassName:P,noPanClassName:D},e.createElement($a,{onSelectionStart:m,onSelectionEnd:g,onPaneClick:n,onPaneMouseEnter:r,onPaneMouseMove:o,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:s,panOnDrag:z,isSelecting:!!G,selectionMode:h},t,B&&e.createElement(ls,{onSelectionContextMenu:M,noPanClassName:D,disableKeyboardA11y:j})))};us.displayName="FlowRenderer";var ds=e.memo(us);function fs(e){return{...{input:as(e.input||Zi),default:as(e.default||Yi),output:as(e.output||Ji),group:as(e.group||Ki)},...Object.keys(e).filter((e=>!["input","default","output","group"].includes(e))).reduce(((t,n)=>(t[n]=as(e[n]||Yi),t)),{})}}const ps=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions,onError:e.onError}),hs=t=>{const{nodesDraggable:n,nodesConnectable:r,nodesFocusable:o,elementsSelectable:i,updateNodeDimensions:a,onError:s}=_o(ps,Ae),l=function(t){const n=_o(e.useCallback((e=>t?Ni(e.nodeInternals,{x:0,y:0,width:e.width,height:e.height},e.transform,!0):e.getNodes()),[t]));return n}(t.onlyRenderVisibleElements),c=e.useRef(),u=e.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})));a(t)}));return c.current=e,e}),[]);return e.useEffect((()=>()=>{c?.current?.disconnect()}),[]),e.createElement("div",{className:"react-flow__nodes",style:Ra},l.map((a=>{let l=a.type||"default";t.nodeTypes[l]||(s?.("003",go(l)),l="default");const c=t.nodeTypes[l]||t.nodeTypes.default,d=!!(a.draggable||n&&void 0===a.draggable),f=!!(a.selectable||i&&void 0===a.selectable),p=!!(a.connectable||r&&void 0===a.connectable),h=!!(a.focusable||o&&void 0===a.focusable),m=t.nodeExtent?Po(a.positionAbsolute,t.nodeExtent):a.positionAbsolute,g=m?.x??0,y=m?.y??0,b=(({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:g,y:y,width:a.width??0,height:a.height??0,origin:t.nodeOrigin});return e.createElement(c,{key:a.id,id:a.id,className:a.className,style:a.style,type:l,data:a.data,sourcePosition:a.sourcePosition||ai.Bottom,targetPosition:a.targetPosition||ai.Top,hidden:a.hidden,xPos:g,yPos:y,xPosOrigin:b.x,yPosOrigin:b.y,selectNodesOnDrag:t.selectNodesOnDrag,onClick:t.onNodeClick,onMouseEnter:t.onNodeMouseEnter,onMouseMove:t.onNodeMouseMove,onMouseLeave:t.onNodeMouseLeave,onContextMenu:t.onNodeContextMenu,onDoubleClick:t.onNodeDoubleClick,selected:!!a.selected,isDraggable:d,isSelectable:f,isConnectable:p,isFocusable:h,resizeObserver:u,dragHandle:a.dragHandle,zIndex:a[Ho]?.z??0,isParent:!!a[Ho]?.isParent,noDragClassName:t.noDragClassName,noPanClassName:t.noPanClassName,initialized:!!a.width&&!!a.height,rfId:t.rfId,disableKeyboardA11y:t.disableKeyboardA11y,ariaLabel:a.ariaLabel,hasHandleBounds:!!a[Ho]?.handleBounds})})))};hs.displayName="NodeRenderer";var ms=e.memo(hs);const gs=(e,t,n)=>n===ai.Left?e-t:n===ai.Right?e+t:e,ys=(e,t,n)=>n===ai.Top?e-t:n===ai.Bottom?e+t:e,bs="react-flow__edgeupdater",vs=({position:t,centerX:n,centerY:r,radius:o=10,onMouseDown:i,onMouseEnter:a,onMouseOut:s,type:l})=>e.createElement("circle",{onMouseDown:i,onMouseEnter:a,onMouseOut:s,className:Ee([bs,`${bs}-${l}`]),cx:gs(n,o,t),cy:ys(r,o,t),r:o,stroke:"transparent",fill:"transparent"}),ws=()=>!0;var xs=t=>{const n=({id:n,className:r,type:o,data:i,onClick:a,onEdgeDoubleClick:s,selected:l,animated:c,label:u,labelStyle:d,labelShowBg:f,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:m,style:g,source:y,target:b,sourceX:v,sourceY:w,targetX:x,targetY:E,sourcePosition:C,targetPosition:k,elementsSelectable:S,hidden:_,sourceHandleId:I,targetHandleId:A,onContextMenu:N,onMouseEnter:R,onMouseMove:O,onMouseLeave:T,reconnectRadius:M,onReconnect:P,onReconnectStart:D,onReconnectEnd:j,markerEnd:B,markerStart:L,rfId:F,ariaLabel:z,isFocusable:V,isReconnectable:G,pathOptions:W,interactionWidth:H,disableKeyboardA11y:X})=>{const Y=e.useRef(null),[$,Z]=e.useState(!1),[U,J]=e.useState(!1),K=Io(),q=e.useMemo((()=>`url('#${ki(L,F)}')`),[L,F]),Q=e.useMemo((()=>`url('#${ki(B,F)}')`),[B,F]);if(_)return null;const ee=qo(n,K.getState,s),te=qo(n,K.getState,N),ne=qo(n,K.getState,R),re=qo(n,K.getState,O),oe=qo(n,K.getState,T),ie=(e,t)=>{if(0!==e.button)return;const{edges:r,isValidConnection:o}=K.getState(),i=t?b:y,a=(t?A:I)||null,s=t?"target":"source",l=o||ws,c=t,u=r.find((e=>e.id===n));J(!0),D?.(e,u,s);zi({event:e,handleId:a,nodeId:i,onConnect:e=>P?.(u,e),isTarget:c,getState:K.getState,setState:K.setState,isValidConnection:l,edgeUpdaterType:s,onReconnectEnd:e=>{J(!1),j?.(e,u,s)}})},ae=()=>Z(!0),se=()=>Z(!1),le=!S&&!a;return e.createElement("g",{className:Ee(["react-flow__edge",`react-flow__edge-${o}`,r,{selected:l,animated:c,inactive:le,updating:$}]),onClick:e=>{const{edges:t,addSelectedEdges:r,unselectNodesAndEdges:o,multiSelectionActive:i}=K.getState(),s=t.find((e=>e.id===n));s&&(S&&(K.setState({nodesSelectionActive:!1}),s.selected&&i?(o({nodes:[],edges:[s]}),Y.current?.blur()):r([n])),a&&a(e,s))},onDoubleClick:ee,onContextMenu:te,onMouseEnter:ne,onMouseMove:re,onMouseLeave:oe,onKeyDown:V?e=>{if(!X&&Xo.includes(e.key)&&S){const{unselectNodesAndEdges:t,addSelectedEdges:r,edges:o}=K.getState();"Escape"===e.key?(Y.current?.blur(),t({edges:[o.find((e=>e.id===n))]})):r([n])}}:void 0,tabIndex:V?0:void 0,role:V?"button":"img","data-testid":`rf__edge-${n}`,"aria-label":null===z?void 0:z||`Edge from ${y} to ${b}`,"aria-describedby":V?`${da}-${F}`:void 0,ref:Y},!U&&e.createElement(t,{id:n,source:y,target:b,selected:l,animated:c,label:u,labelStyle:d,labelShowBg:f,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:m,data:i,style:g,sourceX:v,sourceY:w,targetX:x,targetY:E,sourcePosition:C,targetPosition:k,sourceHandleId:I,targetHandleId:A,markerStart:q,markerEnd:Q,pathOptions:W,interactionWidth:H}),G&&e.createElement(e.Fragment,null,("source"===G||!0===G)&&e.createElement(vs,{position:C,centerX:v,centerY:w,radius:M,onMouseDown:e=>ie(e,!0),onMouseEnter:ae,onMouseOut:se,type:"source"}),("target"===G||!0===G)&&e.createElement(vs,{position:k,centerX:x,centerY:E,radius:M,onMouseDown:e=>ie(e,!1),onMouseEnter:ae,onMouseOut:se,type:"target"})))};return n.displayName="EdgeWrapper",e.memo(n)};function Es(e){return{...{default:xs(e.default||wi),straight:xs(e.bezier||gi),step:xs(e.step||mi),smoothstep:xs(e.step||hi),simplebezier:xs(e.simplebezier||ci)},...Object.keys(e).filter((e=>!["default","bezier"].includes(e))).reduce(((t,n)=>(t[n]=xs(e[n]||wi),t)),{})}}function Cs(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 ai.Top:return{x:r+i/2,y:o};case ai.Right:return{x:r+i,y:o+a/2};case ai.Bottom:return{x:r+i/2,y:o+a};case ai.Left:return{x:r,y:o+a/2}}}function ks(e,t){return e?1!==e.length&&t?t&&e.find((e=>e.id===t))||null:e[0]:null}function Ss(e){const t=e?.[Ho]?.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 _s=[{level:0,isMaxLevel:!0,edges:[]}];function Is(t,n,r){const o=_o(e.useCallback((e=>t?e.edges.filter((t=>{const r=n.get(t.source),o=n.get(t.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=Fo({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:e.width,height:e.height,transform:e.transform})})):e.edges),[t,n]));return function(e,t,n=!1){let r=-1;const o=e.reduce(((e,o)=>{const i=Wo(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?.[Ho]?.z||0,e?.[Ho]?.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?_s:i}(o,n,r)}const As={[ii.Arrow]:({color:t="none",strokeWidth:n=1})=>e.createElement("polyline",{style:{stroke:t,strokeWidth:n},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),[ii.ArrowClosed]:({color:t="none",strokeWidth:n=1})=>e.createElement("polyline",{style:{stroke:t,fill:t,strokeWidth:n},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})};const Ns=({id:t,type:n,color:r,width:o=12.5,height:i=12.5,markerUnits:a="strokeWidth",strokeWidth:s,orient:l="auto-start-reverse"})=>{const c=function(t){const n=Io();return e.useMemo((()=>Object.prototype.hasOwnProperty.call(As,t)?As[t]:(n.getState().onError?.("009",wo(t)),null)),[t])}(n);return c?e.createElement("marker",{className:"react-flow__arrowhead",id:t,markerWidth:`${o}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:l,refX:"0",refY:"0"},e.createElement(c,{color:r,strokeWidth:s})):null},Rs=({defaultColor:t,rfId:n})=>{const r=_o(e.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=ki(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:t,rfId:n}),[t,n]),((e,t)=>!(e.length!==t.length||e.some(((e,n)=>e.id!==t[n].id)))));return e.createElement("defs",null,r.map((t=>e.createElement(Ns,{id:t.id,key:t.id,type:t.type,color:t.color,width:t.width,height:t.height,markerUnits:t.markerUnits,strokeWidth:t.strokeWidth,orient:t.orient}))))};Rs.displayName="MarkerDefinitions";var Os=e.memo(Rs);const Ts=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}),Ms=({defaultMarkerColor:t,onlyRenderVisibleElements:n,elevateEdgesOnSelect:r,rfId:o,edgeTypes:i,noPanClassName:a,onEdgeContextMenu:s,onEdgeMouseEnter:l,onEdgeMouseMove:c,onEdgeMouseLeave:u,onEdgeClick:d,onEdgeDoubleClick:f,onReconnect:p,onReconnectStart:h,onReconnectEnd:m,reconnectRadius:g,children:y,disableKeyboardA11y:b})=>{const{edgesFocusable:v,edgesUpdatable:w,elementsSelectable:x,width:E,height:C,connectionMode:k,nodeInternals:S,onError:_}=_o(Ts,Ae),I=Is(n,S,r);return E?e.createElement(e.Fragment,null,I.map((({level:n,edges:r,isMaxLevel:y})=>e.createElement("svg",{key:n,style:{zIndex:n},width:E,height:C,className:"react-flow__edges react-flow__container"},y&&e.createElement(Os,{defaultColor:t,rfId:o}),e.createElement("g",null,r.map((t=>{const[n,r,y]=Ss(S.get(t.source)),[E,C,I]=Ss(S.get(t.target));if(!y||!I)return null;let A=t.type||"default";i[A]||(_?.("011",Co(A)),A="default");const N=i[A]||i.default,R=k===ti.Strict?C.target:(C.target??[]).concat(C.source??[]),O=ks(r.source,t.sourceHandle),T=ks(R,t.targetHandle),M=O?.position||ai.Bottom,P=T?.position||ai.Top,D=!!(t.focusable||v&&void 0===t.focusable),j=t.reconnectable||t.updatable,B=void 0!==p&&(j||w&&void 0===j);if(!O||!T)return _?.("008",xo(O,t)),null;const{sourceX:L,sourceY:F,targetX:z,targetY:V}=((e,t,n,r,o,i)=>{const a=Cs(n,e,t),s=Cs(i,r,o);return{sourceX:a.x,sourceY:a.y,targetX:s.x,targetY:s.y}})(n,O,M,E,T,P);return e.createElement(N,{key:t.id,id:t.id,className:Ee([t.className,a]),type:A,data:t.data,selected:!!t.selected,animated:!!t.animated,hidden:!!t.hidden,label:t.label,labelStyle:t.labelStyle,labelShowBg:t.labelShowBg,labelBgStyle:t.labelBgStyle,labelBgPadding:t.labelBgPadding,labelBgBorderRadius:t.labelBgBorderRadius,style:t.style,source:t.source,target:t.target,sourceHandleId:t.sourceHandle,targetHandleId:t.targetHandle,markerEnd:t.markerEnd,markerStart:t.markerStart,sourceX:L,sourceY:F,targetX:z,targetY:V,sourcePosition:M,targetPosition:P,elementsSelectable:x,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,onEdgeDoubleClick:f,onReconnect:p,onReconnectStart:h,onReconnectEnd:m,reconnectRadius:g,rfId:o,ariaLabel:t.ariaLabel,isFocusable:D,isReconnectable:B,pathOptions:"pathOptions"in t?t.pathOptions:void 0,interactionWidth:t.interactionWidth,disableKeyboardA11y:b})})))))),y):null};Ms.displayName="EdgeRenderer";var Ps=e.memo(Ms);const Ds=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function js({children:t}){const n=_o(Ds);return e.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:n}},t)}const Bs={[ai.Left]:ai.Right,[ai.Right]:ai.Left,[ai.Top]:ai.Bottom,[ai.Bottom]:ai.Top},Ls=({nodeId:t,handleType:n,style:r,type:o=oi.Bezier,CustomComponent:i,connectionStatus:a})=>{const{fromNode:s,handleId:l,toX:c,toY:u,connectionMode:d}=_o(e.useCallback((e=>({fromNode:e.nodeInternals.get(t),handleId:e.connectionHandleId,toX:(e.connectionPosition.x-e.transform[0])/e.transform[2],toY:(e.connectionPosition.y-e.transform[1])/e.transform[2],connectionMode:e.connectionMode})),[t]),Ae),f=s?.[Ho]?.handleBounds;let p=f?.[n];if(d===ti.Loose&&(p=p||f?.["source"===n?"target":"source"]),!s||!p)return null;const h=l?p.find((e=>e.id===l)):p[0],m=h?h.x+h.width/2:(s.width??0)/2,g=h?h.y+h.height/2:s.height??0,y=(s.positionAbsolute?.x??0)+m,b=(s.positionAbsolute?.y??0)+g,v=h?.position,w=v?Bs[v]:null;if(!v||!w)return null;if(i)return e.createElement(i,{connectionLineType:o,connectionLineStyle:r,fromNode:s,fromHandle:h,fromX:y,fromY:b,toX:c,toY:u,fromPosition:v,toPosition:w,connectionStatus:a});let x="";const E={sourceX:y,sourceY:b,sourcePosition:v,targetX:c,targetY:u,targetPosition:w};return o===oi.Bezier?[x]=vi(E):o===oi.Step?[x]=pi({...E,borderRadius:0}):o===oi.SmoothStep?[x]=pi(E):o===oi.SimpleBezier?[x]=li(E):x=`M${y},${b} ${c},${u}`,e.createElement("path",{d:x,fill:"none",className:"react-flow__connection-path",style:r})};Ls.displayName="ConnectionLine";const Fs=e=>({nodeId:e.connectionNodeId,handleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,connectionStatus:e.connectionStatus,width:e.width,height:e.height});function zs({containerStyle:t,style:n,type:r,component:o}){const{nodeId:i,handleType:a,nodesConnectable:s,width:l,height:c,connectionStatus:u}=_o(Fs,Ae);return!!(i&&a&&l&&s)?e.createElement("svg",{style:t,width:l,height:c,className:"react-flow__edges react-flow__connectionline react-flow__container"},e.createElement("g",{className:Ee(["react-flow__connection",u])},e.createElement(Ls,{nodeId:i,handleType:a,style:n,type:r,CustomComponent:o,connectionStatus:u}))):null}function Vs(t,n){const r=e.useRef(null),o=Io();return e.useMemo((()=>{if("development"===process.env.NODE_ENV){const e=Object.keys(t);Ae(r.current,e)&&o.getState().onError?.("002",mo()),r.current=e}return n(t)}),[t])}const Gs=({nodeTypes:t,edgeTypes:n,onMove:r,onMoveStart:o,onMoveEnd:i,onInit:a,onNodeClick:s,onEdgeClick:l,onNodeDoubleClick:c,onEdgeDoubleClick:u,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:p,onNodeContextMenu:h,onSelectionContextMenu:m,onSelectionStart:g,onSelectionEnd:y,connectionLineType:b,connectionLineStyle:v,connectionLineComponent:w,connectionLineContainerStyle:x,selectionKeyCode:E,selectionOnDrag:C,selectionMode:k,multiSelectionKeyCode:S,panActivationKeyCode:_,zoomActivationKeyCode:I,deleteKeyCode:A,onlyRenderVisibleElements:N,elementsSelectable:R,selectNodesOnDrag:O,defaultViewport:T,translateExtent:M,minZoom:P,maxZoom:D,preventScrolling:j,defaultMarkerColor:B,zoomOnScroll:L,zoomOnPinch:F,panOnScroll:z,panOnScrollSpeed:V,panOnScrollMode:G,zoomOnDoubleClick:W,panOnDrag:H,onPaneClick:X,onPaneMouseEnter:Y,onPaneMouseMove:$,onPaneMouseLeave:Z,onPaneScroll:U,onPaneContextMenu:J,onEdgeContextMenu:K,onEdgeMouseEnter:q,onEdgeMouseMove:Q,onEdgeMouseLeave:ee,onReconnect:te,onReconnectStart:ne,onReconnectEnd:re,reconnectRadius:oe,noDragClassName:ie,noWheelClassName:ae,noPanClassName:se,elevateEdgesOnSelect:le,disableKeyboardA11y:ce,nodeOrigin:ue,nodeExtent:de,rfId:fe})=>{const pe=Vs(t,fs),he=Vs(n,Es);return function(t){const n=Aa(),r=e.useRef(!1);e.useEffect((()=>{!r.current&&n.viewportInitialized&&t&&(setTimeout((()=>t(n)),1),r.current=!0)}),[t,n.viewportInitialized])}(a),e.createElement(ds,{onPaneClick:X,onPaneMouseEnter:Y,onPaneMouseMove:$,onPaneMouseLeave:Z,onPaneContextMenu:J,onPaneScroll:U,deleteKeyCode:A,selectionKeyCode:E,selectionOnDrag:C,selectionMode:k,onSelectionStart:g,onSelectionEnd:y,multiSelectionKeyCode:S,panActivationKeyCode:_,zoomActivationKeyCode:I,elementsSelectable:R,onMove:r,onMoveStart:o,onMoveEnd:i,zoomOnScroll:L,zoomOnPinch:F,zoomOnDoubleClick:W,panOnScroll:z,panOnScrollSpeed:V,panOnScrollMode:G,panOnDrag:H,defaultViewport:T,translateExtent:M,minZoom:P,maxZoom:D,onSelectionContextMenu:m,preventScrolling:j,noDragClassName:ie,noWheelClassName:ae,noPanClassName:se,disableKeyboardA11y:ce},e.createElement(js,null,e.createElement(Ps,{edgeTypes:he,onEdgeClick:l,onEdgeDoubleClick:u,onlyRenderVisibleElements:N,onEdgeContextMenu:K,onEdgeMouseEnter:q,onEdgeMouseMove:Q,onEdgeMouseLeave:ee,onReconnect:te,onReconnectStart:ne,onReconnectEnd:re,reconnectRadius:oe,defaultMarkerColor:B,noPanClassName:se,elevateEdgesOnSelect:!!le,disableKeyboardA11y:ce,rfId:fe},e.createElement(zs,{style:v,type:b,component:w,containerStyle:x})),e.createElement("div",{className:"react-flow__edgelabel-renderer"}),e.createElement(ms,{nodeTypes:pe,onNodeClick:s,onNodeDoubleClick:c,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:p,onNodeContextMenu:h,selectNodesOnDrag:O,onlyRenderVisibleElements:N,noPanClassName:se,noDragClassName:ie,disableKeyboardA11y:ce,nodeOrigin:ue,nodeExtent:de,rfId:fe})))};Gs.displayName="GraphView";var Ws=e.memo(Gs);const Hs=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Xs={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:Hs,nodeExtent:Hs,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:ti.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:Yo,isValidConnection:void 0},Ys=()=>((e,t)=>e?Ie(e,t):Ie)(((e,t)=>({...Xs,setNodes:n=>{const{nodeInternals:r,nodeOrigin:o,elevateNodesOnSelect:i}=t();e({nodeInternals:wa(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?wa(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,[Ho]:{...n[Ho],handleBounds:void 0}});else if(n){const r=To(t.nodeElement);!(!r.width||!r.height||n.width===r.width&&n.height===r.height&&!t.forceUpdate)&&(o.set(n.id,{...n,[Ho]:{...n[Ho],handleBounds:{source:Qa(".source",t.nodeElement,f,c),target:Qa(".target",t.nodeElement,f,c)}},...r}),e.push({id:n.id,type:"dimensions",dimensions:r}))}return e}),[]);va(o,c);const h=a||i&&!a&&xa(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=wa(Va(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=>Wa(e,!0))):(a=Ha(i(),n),s=Ha(o,[])),ka({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=>Wa(e,!0))):(a=Ha(o,n),s=Ha(i(),[])),ka({changedNodes:s,changedEdges:a,get:t,set:e})},unselectNodesAndEdges:({nodes:n,edges:r}={})=>{const{edges:o,getNodes:i}=t(),a=r||o;ka({changedNodes:(n||i()).map((e=>(e.selected=!1,Wa(e.id,!1)))),changedEdges:a.map((e=>Wa(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();ka({changedNodes:r().filter((e=>e.selected)).map((e=>Wa(e.id,!1))),changedEdges:n.filter((e=>e.selected)).map((e=>Wa(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=no.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:Xs.connectionNodeId,connectionHandleId:Xs.connectionHandleId,connectionHandleType:Xs.connectionHandleType,connectionStatus:Xs.connectionStatus,connectionStartHandle:Xs.connectionStartHandle,connectionEndHandle:Xs.connectionEndHandle}),reset:()=>e({...Xs})})),Object.is),$s=({children:t})=>{const n=e.useRef(null);return n.current||(n.current=Ys()),e.createElement(ho,{value:n.current},t)};$s.displayName="ReactFlowProvider";const Zs=({children:t})=>e.useContext(po)?e.createElement(e.Fragment,null,t):e.createElement($s,null,t);Zs.displayName="ReactFlowWrapper";const Us={input:Zi,default:Yi,output:Ji,group:Ki},Js={default:wi,straight:gi,step:mi,smoothstep:hi,simplebezier:ci},Ks=[0,0],qs=[15,15],Qs={x:0,y:0,zoom:1},el={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},tl=e.forwardRef((({nodes:t,edges:n,defaultNodes:r,defaultEdges:o,className:i,nodeTypes:a=Us,edgeTypes:s=Js,onNodeClick:l,onEdgeClick:c,onInit:u,onMove:d,onMoveStart:f,onMoveEnd:p,onConnect:h,onConnectStart:m,onConnectEnd:g,onClickConnectStart:y,onClickConnectEnd:b,onNodeMouseEnter:v,onNodeMouseMove:w,onNodeMouseLeave:x,onNodeContextMenu:E,onNodeDoubleClick:C,onNodeDragStart:k,onNodeDrag:S,onNodeDragStop:_,onNodesDelete:I,onEdgesDelete:A,onSelectionChange:N,onSelectionDragStart:R,onSelectionDrag:O,onSelectionDragStop:T,onSelectionContextMenu:M,onSelectionStart:P,onSelectionEnd:D,connectionMode:j=ti.Strict,connectionLineType:B=oi.Bezier,connectionLineStyle:L,connectionLineComponent:F,connectionLineContainerStyle:z,deleteKeyCode:V="Backspace",selectionKeyCode:G="Shift",selectionOnDrag:W=!1,selectionMode:H=ri.Full,panActivationKeyCode:X="Space",multiSelectionKeyCode:Y=(Jo()?"Meta":"Control"),zoomActivationKeyCode:$=(Jo()?"Meta":"Control"),snapToGrid:Z=!1,snapGrid:U=qs,onlyRenderVisibleElements:J=!1,selectNodesOnDrag:K=!0,nodesDraggable:q,nodesConnectable:Q,nodesFocusable:ee,nodeOrigin:te=Ks,edgesFocusable:ne,edgesUpdatable:re,elementsSelectable:oe,defaultViewport:ie=Qs,minZoom:ae=.5,maxZoom:se=2,translateExtent:le=Hs,preventScrolling:ce=!0,nodeExtent:ue,defaultMarkerColor:de="#b1b1b7",zoomOnScroll:fe=!0,zoomOnPinch:pe=!0,panOnScroll:he=!1,panOnScrollSpeed:me=.5,panOnScrollMode:ge=ni.Free,zoomOnDoubleClick:ye=!0,panOnDrag:be=!0,onPaneClick:ve,onPaneMouseEnter:we,onPaneMouseMove:xe,onPaneMouseLeave:Ce,onPaneScroll:ke,onPaneContextMenu:Se,children:_e,onEdgeContextMenu:Ie,onEdgeDoubleClick:Ae,onEdgeMouseEnter:Ne,onEdgeMouseMove:Re,onEdgeMouseLeave:Oe,onEdgeUpdate:Te,onEdgeUpdateStart:Me,onEdgeUpdateEnd:Pe,onReconnect:De,onReconnectStart:je,onReconnectEnd:Be,reconnectRadius:Le=10,edgeUpdaterRadius:Fe=10,onNodesChange:ze,onEdgesChange:Ve,noDragClassName:Ge="nodrag",noWheelClassName:We="nowheel",noPanClassName:He="nopan",fitView:Xe=!1,fitViewOptions:Ye,connectOnClick:$e=!0,attributionPosition:Ze,proOptions:Ue,defaultEdgeOptions:Je,elevateNodesOnSelect:Ke=!0,elevateEdgesOnSelect:qe=!1,disableKeyboardA11y:Qe=!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 e.createElement("div",{...lt,style:{...it,...el},ref:ct,className:Ee(["react-flow",i]),"data-testid":"rf__wrapper",id:at},e.createElement(Zs,null,e.createElement(Ws,{onInit:u,onMove:d,onMoveStart:f,onMoveEnd:p,onNodeClick:l,onEdgeClick:c,onNodeMouseEnter:v,onNodeMouseMove:w,onNodeMouseLeave:x,onNodeContextMenu:E,onNodeDoubleClick:C,nodeTypes:a,edgeTypes:s,connectionLineType:B,connectionLineStyle:L,connectionLineComponent:F,connectionLineContainerStyle:z,selectionKeyCode:G,selectionOnDrag:W,selectionMode:H,deleteKeyCode:V,multiSelectionKeyCode:Y,panActivationKeyCode:X,zoomActivationKeyCode:$,onlyRenderVisibleElements:J,selectNodesOnDrag:K,defaultViewport:ie,translateExtent:le,minZoom:ae,maxZoom:se,preventScrolling:ce,zoomOnScroll:fe,zoomOnPinch:pe,zoomOnDoubleClick:ye,panOnScroll:he,panOnScrollSpeed:me,panOnScrollMode:ge,panOnDrag:be,onPaneClick:ve,onPaneMouseEnter:we,onPaneMouseMove:xe,onPaneMouseLeave:Ce,onPaneScroll:ke,onPaneContextMenu:Se,onSelectionContextMenu:M,onSelectionStart:P,onSelectionEnd:D,onEdgeContextMenu:Ie,onEdgeDoubleClick:Ae,onEdgeMouseEnter:Ne,onEdgeMouseMove:Re,onEdgeMouseLeave:Oe,onReconnect:De??Te,onReconnectStart:je??Me,onReconnectEnd:Be??Pe,reconnectRadius:Le??Fe,defaultMarkerColor:de,noDragClassName:Ge,noWheelClassName:We,noPanClassName:He,elevateEdgesOnSelect:qe,rfId:ut,disableKeyboardA11y:Qe,nodeOrigin:te,nodeExtent:ue}),e.createElement(sa,{nodes:t,edges:n,defaultNodes:r,defaultEdges:o,onConnect:h,onConnectStart:m,onConnectEnd:g,onClickConnectStart:y,onClickConnectEnd:b,nodesDraggable:q,nodesConnectable:Q,nodesFocusable:ee,edgesFocusable:ne,edgesUpdatable:re,elementsSelectable:oe,elevateNodesOnSelect:Ke,minZoom:ae,maxZoom:se,nodeExtent:ue,onNodesChange:ze,onEdgesChange:Ve,snapToGrid:Z,snapGrid:U,connectionMode:j,translateExtent:le,connectOnClick:$e,defaultEdgeOptions:Je,fitView:Xe,fitViewOptions:Ye,onNodesDelete:I,onEdgesDelete:A,onNodeDragStart:k,onNodeDrag:S,onNodeDragStop:_,onSelectionDrag:O,onSelectionDragStart:R,onSelectionDragStop:T,noPanClassName:He,nodeOrigin:te,rfId:ut,autoPanOnConnect:et,autoPanOnNodeDrag:tt,onError:ot,connectionRadius:nt,isValidConnection:rt,nodeDragThreshold:st}),e.createElement(ra,{onSelectionChange:N}),_e,e.createElement(Ro,{proOptions:Ue,position:Ze}),e.createElement(ha,{rfId:ut,disableKeyboardA11y:Qe})))}));tl.displayName="ReactFlow";const nl=e=>e.getNodes();const rl=e=>e.edges;const ol=({id:t,x:n,y:r,width:o,height:i,style:a,color:s,strokeColor:l,strokeWidth:c,className:u,borderRadius:d,shapeRendering:f,onClick:p,selected:h})=>{const{background:m,backgroundColor:g}=a||{},y=s||m||g;return e.createElement("rect",{className:Ee(["react-flow__minimap-node",{selected:h},u]),x:n,y:r,rx:d,ry:d,width:o,height:i,fill:y,stroke:l,strokeWidth:c,shapeRendering:f,onClick:p?e=>p(e,t):void 0})};ol.displayName="MiniMapNode";var il=e.memo(ol);const al=e=>e.nodeOrigin,sl=e=>e.getNodes().filter((e=>!e.hidden&&e.width&&e.height)),ll=e=>e instanceof Function?e:()=>e;var cl=e.memo((function({nodeStrokeColor:t="transparent",nodeColor:n="#e2e2e2",nodeClassName:r="",nodeBorderRadius:o=5,nodeStrokeWidth:i=2,nodeComponent:a=il,onClick:s}){const l=_o(sl,Ae),c=_o(al),u=ll(n),d=ll(t),f=ll(r),p="undefined"==typeof window||window.chrome?"crispEdges":"geometricPrecision";return e.createElement(e.Fragment,null,l.map((t=>{const{x:n,y:r}=Ii(t,c).positionAbsolute;return e.createElement(a,{key:t.id,x:n,y:r,width:t.width,height:t.height,style:t.style,selected:t.selected,className:f(t),color:u(t),borderRadius:o,strokeColor:d(t),strokeWidth:i,shapeRendering:p,onClick:s,id:t.id})})))}));const ul=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=Ai(t,e.nodeOrigin),o=n,zo(Lo(Fo(r),Fo(o)))):n,rfId:e.rfId};var r,o};function dl({style:t,className:n,nodeStrokeColor:r="transparent",nodeColor:o="#e2e2e2",nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:s=2,nodeComponent:l,maskColor:c="rgb(240, 240, 240, 0.6)",maskStrokeColor:u="none",maskStrokeWidth:d=1,position:f="bottom-right",onClick:p,onNodeClick:h,pannable:m=!1,zoomable:g=!1,ariaLabel:y="React Flow mini map",inversePan:b=!1,zoomStep:v=10,offsetScale:w=5}){const x=Io(),E=e.useRef(null),{boundingRect:C,viewBB:k,rfId:S}=_o(ul,Ae),_=t?.width??200,I=t?.height??150,A=C.width/_,N=C.height/I,R=Math.max(A,N),O=R*_,T=R*I,M=w*R,P=C.x-(O-C.width)/2-M,D=C.y-(T-C.height)/2-M,j=O+2*M,B=T+2*M,L=`react-flow__minimap-desc-${S}`,F=e.useRef(0);F.current=R,e.useEffect((()=>{if(E.current){const e=Yt(E.current),t=e=>{const{transform:t,d3Selection:n,d3Zoom:r}=x.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}=x.getState();if("mousemove"!==e.sourceEvent.type||!n||!r)return;const s=F.current*Math.max(1,t[2])*(b?-1:1),l={x:t[0]-e.sourceEvent.movementX*s,y:t[1]-e.sourceEvent.movementY*s},c=[[0,0],[i,a]],u=no.translate(l.x,l.y).scale(t[2]),d=r.constrain()(u,c,o);r.transform(n,d)},r=fo().on("zoom",m?n:null).on("zoom.wheel",g?t:null);return e.call(r),()=>{e.on("zoom",null)}}}),[m,g,b,v]);const z=p?e=>{const t=$t(e);p(e,{x:t[0],y:t[1]})}:void 0,V=h?(e,t)=>{const n=x.getState().nodeInternals.get(t);h(e,n)}:void 0;return e.createElement(No,{position:f,style:t,className:Ee(["react-flow__minimap",n]),"data-testid":"rf__minimap"},e.createElement("svg",{width:_,height:I,viewBox:`${P} ${D} ${j} ${B}`,role:"img","aria-labelledby":L,ref:E,onClick:z},y&&e.createElement("title",{id:L},y),e.createElement(cl,{onClick:V,nodeColor:o,nodeStrokeColor:r,nodeBorderRadius:a,nodeClassName:i,nodeStrokeWidth:s,nodeComponent:l}),e.createElement("path",{className:"react-flow__minimap-mask",d:`M${P-M},${D-M}h${j+2*M}v${B+2*M}h${-j-2*M}z\n M${k.x},${k.y}h${k.width}v${k.height}h${-k.width}z`,fill:c,fillRule:"evenodd",stroke:u,strokeWidth:d,pointerEvents:"none"})))}dl.displayName="MiniMap";var fl,pl=e.memo(dl);function hl({color:t,dimensions:n,lineWidth:r}){return e.createElement("path",{stroke:t,strokeWidth:r,d:`M${n[0]/2} 0 V${n[1]} M0 ${n[1]/2} H${n[0]}`})}function ml({color:t,radius:n}){return e.createElement("circle",{cx:n,cy:n,r:n,fill:t})}!function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"}(fl||(fl={}));const gl={[fl.Dots]:"#91919a",[fl.Lines]:"#eee",[fl.Cross]:"#e2e2e2"},yl={[fl.Dots]:1,[fl.Lines]:1,[fl.Cross]:6},bl=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function vl({id:t,variant:n=fl.Dots,gap:r=20,size:o,lineWidth:i=1,offset:a=2,color:s,style:l,className:c}){const u=e.useRef(null),{transform:d,patternId:f}=_o(bl,Ae),p=s||gl[n],h=o||yl[n],m=n===fl.Dots,g=n===fl.Cross,y=Array.isArray(r)?r:[r,r],b=[y[0]*d[2]||1,y[1]*d[2]||1],v=h*d[2],w=g?[v,v]:b,x=m?[v/a,v/a]:[w[0]/a,w[1]/a];return e.createElement("svg",{className:Ee(["react-flow__background",c]),style:{...l,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:u,"data-testid":"rf__background"},e.createElement("pattern",{id:f+t,x:d[0]%b[0],y:d[1]%b[1],width:b[0],height:b[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${x[0]},-${x[1]})`},m?e.createElement(ml,{color:p,radius:v/a}):e.createElement(hl,{dimensions:w,color:p,lineWidth:i})),e.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${f+t})`}))}vl.displayName="Background";var wl=e.memo(vl);const xl=({src_nid:e,src_ioid:t,trg_nid:n,trg_ioid:r})=>[`${e}:${t}`,`${n}:${r}`].sort().join("--");function El(e){console.error("Unhandled case: "+e)}class Cl{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 kl=e=>t=>{const{iostore:n,...r}=t,o=new Cl(n);return e({...r,io:o})},Sl=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]=kl(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]=kl(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]=kl(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]=kl(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]=kl(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]=kl(t));i.data_view_renderers=l;break;default:El(e)}return i},v:1}},_l=0,Il=10,Al=20,Nl=30,Rl=Il,Ol=e=>"string"==typeof e?e:e===_l?"DEBUG":e===Il?"INFO":e===Al?"WARN":e===Nl?"ERROR":"UNKNOWN";class Tl{constructor(e,t=Il){this.name=e,this.level=(e=>{if("number"==typeof e)return e;const t=e.toLowerCase();if("debug"===t)return _l;if("info"===t)return Il;if("warn"===t||"warning"===t)return Al;if("error"===t)return Nl;throw new Error(`Unknown log level: ${e}`)})(t),this._level_name=Ol(t)}set_level(e){this.level=e,this._level_name=Ol(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<=_l&&console.debug(this._fomat_message(e,...t))}info(e,...t){this.level<=Il&&console.info(this._fomat_message(e,...t))}warn(e,...t){this.level<=Al&&console.warn(this._fomat_message(e,...t))}error(e,...t){this.level<=Nl&&console.error(this._fomat_message(e,...t))}}const Ml=(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}},Pl=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=xe(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,Ml(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=ee(((e,t)=>({nodes:[],edges:[],onNodesChange:n=>{e({nodes:Va(n,t().nodes)}),r(n)},onEdgesChange:n=>{e({edges:Ga(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:ee(((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:ee(((e,t)=>({view_settings:{},update_view_settings:e=>{const t=a.local_settings.getState().view_settings,{new_obj:n,change:r}=re(t,e);r&&a.local_settings.setState((e=>({...e,view_settings:n})))}}))),local_state:ee(((e,t)=>({selected_nodes:[],selected_edges:[],funcnodescontainerRef:null}))),options:t,lib:i,workermanager:void 0,workers:ee(((e,t)=>({}))),workerstate:ee(((e,t)=>({is_open:!1}))),render_options:ee(((e,t)=>({}))),progress_state:ee(((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}=re(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=xl(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=xl(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}=re(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:ee(((e,t)=>({}))),add_plugin:(e,t)=>{if(void 0===t)return;const n=(e=>Sl(e))(t);a.plugins.setState((t=>({...t,[e]:n})))},dev_settings:{debug:!0},logger:new Tl("fn",Rl)};return a};function Dl(e,t){return function(){return e.apply(t,arguments)}}const{toString:jl}=Object.prototype,{getPrototypeOf:Bl}=Object,Ll=(e=>t=>{const n=jl.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fl=e=>(e=e.toLowerCase(),t=>Ll(t)===e),zl=e=>t=>typeof t===e,{isArray:Vl}=Array,Gl=zl("undefined");const Wl=Fl("ArrayBuffer");const Hl=zl("string"),Xl=zl("function"),Yl=zl("number"),$l=e=>null!==e&&"object"==typeof e,Zl=e=>{if("object"!==Ll(e))return!1;const t=Bl(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Ul=Fl("Date"),Jl=Fl("File"),Kl=Fl("Blob"),ql=Fl("FileList"),Ql=Fl("URLSearchParams"),[ec,tc,nc,rc]=["ReadableStream","Request","Response","Headers"].map(Fl);function oc(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Vl(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 ic(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 ac="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:c,sc=e=>!Gl(e)&&e!==ac;const lc=(cc="undefined"!=typeof Uint8Array&&Bl(Uint8Array),e=>cc&&e instanceof cc);var cc;const uc=Fl("HTMLFormElement"),dc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),fc=Fl("RegExp"),pc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};oc(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const hc=Fl("AsyncFunction"),mc=(gc="function"==typeof setImmediate,yc=Xl(ac.postMessage),gc?setImmediate:yc?((e,t)=>(ac.addEventListener("message",(({source:n,data:r})=>{n===ac&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),ac.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var gc,yc;const bc="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ac):P.nextTick||mc;var vc={isArray:Vl,isArrayBuffer:Wl,isBuffer:function(e){return null!==e&&!Gl(e)&&null!==e.constructor&&!Gl(e.constructor)&&Xl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Xl(e.append)&&("formdata"===(t=Ll(e))||"object"===t&&Xl(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Wl(e.buffer),t},isString:Hl,isNumber:Yl,isBoolean:e=>!0===e||!1===e,isObject:$l,isPlainObject:Zl,isReadableStream:ec,isRequest:tc,isResponse:nc,isHeaders:rc,isUndefined:Gl,isDate:Ul,isFile:Jl,isBlob:Kl,isRegExp:fc,isFunction:Xl,isStream:e=>$l(e)&&Xl(e.pipe),isURLSearchParams:Ql,isTypedArray:lc,isFileList:ql,forEach:oc,merge:function e(){const{caseless:t}=sc(this)&&this||{},n={},r=(r,o)=>{const i=t&&ic(n,o)||o;Zl(n[i])&&Zl(r)?n[i]=e(n[i],r):Zl(r)?n[i]=e({},r):Vl(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&oc(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(oc(t,((t,r)=>{n&&Xl(t)?e[r]=Dl(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&&Bl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ll,kindOfTest:Fl,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(Vl(e))return e;let t=e.length;if(!Yl(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:uc,hasOwnProperty:dc,hasOwnProp:dc,reduceDescriptors:pc,freezeMethods:e=>{pc(e,((t,n)=>{if(Xl(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Xl(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 Vl(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:ic,global:ac,isContextDefined:sc,isSpecCompliantForm:function(e){return!!(e&&Xl(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=Vl(e)?[]:{};return oc(e,((e,t)=>{const i=n(e,r+1);!Gl(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:hc,isThenable:e=>e&&($l(e)||Xl(e))&&Xl(e.then)&&Xl(e.catch),setImmediate:mc,asap:bc},wc=[],xc=[],Ec="undefined"!=typeof Uint8Array?Uint8Array:Array,Cc=!1;function kc(){Cc=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)wc[t]=e[t],xc[e.charCodeAt(t)]=t;xc["-".charCodeAt(0)]=62,xc["_".charCodeAt(0)]=63}function Sc(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(wc[(o=r)>>18&63]+wc[o>>12&63]+wc[o>>6&63]+wc[63&o]);return i.join("")}function _c(e){var t;Cc||kc();for(var n=e.length,r=n%3,o="",i=[],a=16383,s=0,l=n-r;s<l;s+=a)i.push(Sc(e,s,s+a>l?l:s+a));return 1===r?(t=e[n-1],o+=wc[t>>2],o+=wc[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=wc[t>>10],o+=wc[t>>4&63],o+=wc[t<<2&63],o+="="),i.push(o),i.join("")}function Ic(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 Ac(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 Nc={}.toString,Rc=Array.isArray||function(e){return"[object Array]"==Nc.call(e)};function Oc(){return Mc.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Tc(e,t){if(Oc()<t)throw new RangeError("Invalid typed array length");return Mc.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Mc.prototype:(null===e&&(e=new Mc(t)),e.length=t),e}function Mc(e,t,n){if(!(Mc.TYPED_ARRAY_SUPPORT||this instanceof Mc))return new Mc(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 jc(this,e)}return Pc(this,e,t,n)}function Pc(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);Mc.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Mc.prototype:e=Bc(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!Mc.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|zc(t,n);e=Tc(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(Fc(t)){var n=0|Lc(t.length);return 0===(e=Tc(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?Tc(e,0):Bc(e,t);if("Buffer"===t.type&&Rc(t.data))return Bc(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Dc(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 jc(e,t){if(Dc(t),e=Tc(e,t<0?0:0|Lc(t)),!Mc.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Bc(e,t){var n=t.length<0?0:0|Lc(t.length);e=Tc(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Lc(e){if(e>=Oc())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Oc().toString(16)+" bytes");return 0|e}function Fc(e){return!(null==e||!e._isBuffer)}function zc(e,t){if(Fc(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 pu(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return hu(e).length;default:if(r)return pu(e).length;t=(""+t).toLowerCase(),r=!0}}function Vc(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 nu(this,t,n);case"utf8":case"utf-8":return qc(this,t,n);case"ascii":return eu(this,t,n);case"latin1":case"binary":return tu(this,t,n);case"base64":return Kc(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ru(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Gc(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Wc(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=Mc.from(t,r)),Fc(t))return 0===t.length?-1:Hc(e,t,n,r,o);if("number"==typeof t)return t&=255,Mc.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Hc(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Hc(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 Xc(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 Yc(e,t,n,r){return mu(pu(t,e.length-n),e,n,r)}function $c(e,t,n,r){return mu(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Zc(e,t,n,r){return $c(e,t,n,r)}function Uc(e,t,n,r){return mu(hu(t),e,n,r)}function Jc(e,t,n,r){return mu(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 Kc(e,t,n){return 0===t&&n===e.length?_c(e):_c(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<=Qc)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Qc));return n}(r)}Mc.TYPED_ARRAY_SUPPORT=void 0===c.TYPED_ARRAY_SUPPORT||c.TYPED_ARRAY_SUPPORT,Oc(),Mc.poolSize=8192,Mc._augment=function(e){return e.__proto__=Mc.prototype,e},Mc.from=function(e,t,n){return Pc(null,e,t,n)},Mc.TYPED_ARRAY_SUPPORT&&(Mc.prototype.__proto__=Uint8Array.prototype,Mc.__proto__=Uint8Array),Mc.alloc=function(e,t,n){return function(e,t,n,r){return Dc(t),t<=0?Tc(e,t):void 0!==n?"string"==typeof r?Tc(e,t).fill(n,r):Tc(e,t).fill(n):Tc(e,t)}(null,e,t,n)},Mc.allocUnsafe=function(e){return jc(null,e)},Mc.allocUnsafeSlow=function(e){return jc(null,e)},Mc.isBuffer=function(e){return null!=e&&(!!e._isBuffer||gu(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&gu(e.slice(0,0))}(e))},Mc.compare=function(e,t){if(!Fc(e)||!Fc(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},Mc.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}},Mc.concat=function(e,t){if(!Rc(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Mc.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Mc.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!Fc(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},Mc.byteLength=zc,Mc.prototype._isBuffer=!0,Mc.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)Gc(this,t,t+1);return this},Mc.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)Gc(this,t,t+3),Gc(this,t+1,t+2);return this},Mc.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)Gc(this,t,t+7),Gc(this,t+1,t+6),Gc(this,t+2,t+5),Gc(this,t+3,t+4);return this},Mc.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?qc(this,0,e):Vc.apply(this,arguments)},Mc.prototype.equals=function(e){if(!Fc(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Mc.compare(this,e)},Mc.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+">"},Mc.prototype.compare=function(e,t,n,r,o){if(!Fc(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},Mc.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Mc.prototype.indexOf=function(e,t,n){return Wc(this,e,t,n,!0)},Mc.prototype.lastIndexOf=function(e,t,n){return Wc(this,e,t,n,!1)},Mc.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 Xc(this,e,t,n);case"utf8":case"utf-8":return Yc(this,e,t,n);case"ascii":return $c(this,e,t,n);case"latin1":case"binary":return Zc(this,e,t,n);case"base64":return Uc(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jc(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Mc.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Qc=4096;function eu(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 tu(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 nu(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+=fu(e[i]);return o}function ru(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 ou(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 iu(e,t,n,r,o,i){if(!Fc(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 au(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 su(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 lu(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 cu(e,t,n,r,o){return o||lu(e,0,n,4),Ac(e,t,n,r,23,4),n+4}function uu(e,t,n,r,o){return o||lu(e,0,n,8),Ac(e,t,n,r,52,8),n+8}Mc.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),Mc.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Mc.prototype;else{var o=t-e;n=new Mc(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},Mc.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||ou(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},Mc.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||ou(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},Mc.prototype.readUInt8=function(e,t){return t||ou(e,1,this.length),this[e]},Mc.prototype.readUInt16LE=function(e,t){return t||ou(e,2,this.length),this[e]|this[e+1]<<8},Mc.prototype.readUInt16BE=function(e,t){return t||ou(e,2,this.length),this[e]<<8|this[e+1]},Mc.prototype.readUInt32LE=function(e,t){return t||ou(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Mc.prototype.readUInt32BE=function(e,t){return t||ou(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Mc.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||ou(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},Mc.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||ou(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},Mc.prototype.readInt8=function(e,t){return t||ou(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Mc.prototype.readInt16LE=function(e,t){t||ou(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Mc.prototype.readInt16BE=function(e,t){t||ou(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Mc.prototype.readInt32LE=function(e,t){return t||ou(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Mc.prototype.readInt32BE=function(e,t){return t||ou(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Mc.prototype.readFloatLE=function(e,t){return t||ou(e,4,this.length),Ic(this,e,!0,23,4)},Mc.prototype.readFloatBE=function(e,t){return t||ou(e,4,this.length),Ic(this,e,!1,23,4)},Mc.prototype.readDoubleLE=function(e,t){return t||ou(e,8,this.length),Ic(this,e,!0,52,8)},Mc.prototype.readDoubleBE=function(e,t){return t||ou(e,8,this.length),Ic(this,e,!1,52,8)},Mc.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||iu(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},Mc.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||iu(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},Mc.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||iu(this,e,t,1,255,0),Mc.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Mc.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||iu(this,e,t,2,65535,0),Mc.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):au(this,e,t,!0),t+2},Mc.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||iu(this,e,t,2,65535,0),Mc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):au(this,e,t,!1),t+2},Mc.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||iu(this,e,t,4,4294967295,0),Mc.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):su(this,e,t,!0),t+4},Mc.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||iu(this,e,t,4,4294967295,0),Mc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):su(this,e,t,!1),t+4},Mc.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);iu(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},Mc.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);iu(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},Mc.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||iu(this,e,t,1,127,-128),Mc.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Mc.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||iu(this,e,t,2,32767,-32768),Mc.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):au(this,e,t,!0),t+2},Mc.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||iu(this,e,t,2,32767,-32768),Mc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):au(this,e,t,!1),t+2},Mc.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||iu(this,e,t,4,2147483647,-2147483648),Mc.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):su(this,e,t,!0),t+4},Mc.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||iu(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Mc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):su(this,e,t,!1),t+4},Mc.prototype.writeFloatLE=function(e,t,n){return cu(this,e,t,!0,n)},Mc.prototype.writeFloatBE=function(e,t,n){return cu(this,e,t,!1,n)},Mc.prototype.writeDoubleLE=function(e,t,n){return uu(this,e,t,!0,n)},Mc.prototype.writeDoubleBE=function(e,t,n){return uu(this,e,t,!1,n)},Mc.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||!Mc.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},Mc.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&&!Mc.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=Fc(e)?e:pu(new Mc(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var du=/[^+\/0-9A-Za-z-_]/g;function fu(e){return e<16?"0"+e.toString(16):e.toString(16)}function pu(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 hu(e){return function(e){var t,n,r,o,i,a;Cc||kc();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 Ec(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=xc[e.charCodeAt(t)]<<18|xc[e.charCodeAt(t+1)]<<12|xc[e.charCodeAt(t+2)]<<6|xc[e.charCodeAt(t+3)],a[l++]=o>>16&255,a[l++]=o>>8&255,a[l++]=255&o;return 2===i?(o=xc[e.charCodeAt(t)]<<2|xc[e.charCodeAt(t+1)]>>4,a[l++]=255&o):1===i&&(o=xc[e.charCodeAt(t)]<<10|xc[e.charCodeAt(t+1)]<<4|xc[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(du,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function mu(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 gu(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function yu(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)}vc.inherits(yu,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:vc.toJSONObject(this.config),code:this.code,status:this.status}}});const bu=yu.prototype,vu={};["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=>{vu[e]={value:e}})),Object.defineProperties(yu,vu),Object.defineProperty(bu,"isAxiosError",{value:!0}),yu.from=(e,t,n,r,o,i)=>{const a=Object.create(bu);return vc.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),yu.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function wu(e){return vc.isPlainObject(e)||vc.isArray(e)}function xu(e){return vc.endsWith(e,"[]")?e.slice(0,-2):e}function Eu(e,t,n){return e?e.concat(t).map((function(e,t){return e=xu(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Cu=vc.toFlatObject(vc,{},null,(function(e){return/^is[A-Z]/.test(e)}));function ku(e,t,n){if(!vc.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=vc.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!vc.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&vc.isSpecCompliantForm(t);if(!vc.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(vc.isDate(e))return e.toISOString();if(!s&&vc.isBlob(e))throw new yu("Blob is not supported. Use a Buffer instead.");return vc.isArrayBuffer(e)||vc.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Mc.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(vc.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(vc.isArray(e)&&function(e){return vc.isArray(e)&&!e.some(wu)}(e)||(vc.isFileList(e)||vc.endsWith(n,"[]"))&&(s=vc.toArray(e)))return n=xu(n),s.forEach((function(e,r){!vc.isUndefined(e)&&null!==e&&t.append(!0===a?Eu([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!wu(e)||(t.append(Eu(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Cu,{defaultVisitor:c,convertValue:l,isVisitable:wu});if(!vc.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!vc.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),vc.forEach(n,(function(n,i){!0===(!(vc.isUndefined(n)||null===n)&&o.call(t,n,vc.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function Su(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function _u(e,t){this._pairs=[],e&&ku(e,this,t)}const Iu=_u.prototype;function Au(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nu(e,t,n){if(!t)return e;const r=n&&n.encode||Au;vc.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):vc.isURLSearchParams(t)?t.toString():new _u(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Iu.append=function(e,t){this._pairs.push([e,t])},Iu.toString=function(e){const t=e?function(t){return e.call(this,t,Su)}:Su;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Ru{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){vc.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Ou={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tu={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:_u,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Mu="undefined"!=typeof window&&"undefined"!=typeof document,Pu="object"==typeof navigator&&navigator||void 0,Du=Mu&&(!Pu||["ReactNative","NativeScript","NS"].indexOf(Pu.product)<0),ju="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Bu=Mu&&window.location.href||"http://localhost";var Lu={...Object.freeze({__proto__:null,hasBrowserEnv:Mu,hasStandardBrowserEnv:Du,hasStandardBrowserWebWorkerEnv:ju,navigator:Pu,origin:Bu}),...Tu};function Fu(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&&vc.isArray(r)?r.length:i,s)return vc.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&vc.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&vc.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(vc.isFormData(e)&&vc.isFunction(e.entries)){const n={};return vc.forEachEntry(e,((e,r)=>{t(function(e){return vc.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const zu={transitional:Ou,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=vc.isObject(e);o&&vc.isHTMLForm(e)&&(e=new FormData(e));if(vc.isFormData(e))return r?JSON.stringify(Fu(e)):e;if(vc.isArrayBuffer(e)||vc.isBuffer(e)||vc.isStream(e)||vc.isFile(e)||vc.isBlob(e)||vc.isReadableStream(e))return e;if(vc.isArrayBufferView(e))return e.buffer;if(vc.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 ku(e,new Lu.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Lu.isNode&&vc.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=vc.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ku(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(vc.isString(e))try{return(t||JSON.parse)(e),vc.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||zu.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(vc.isResponse(e)||vc.isReadableStream(e))return e;if(e&&vc.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 yu.from(e,yu.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:Lu.classes.FormData,Blob:Lu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vc.forEach(["delete","get","head","post","put","patch"],(e=>{zu.headers[e]={}}));const Vu=vc.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 Gu=Symbol("internals");function Wu(e){return e&&String(e).trim().toLowerCase()}function Hu(e){return!1===e||null==e?e:vc.isArray(e)?e.map(Hu):String(e)}function Xu(e,t,n,r,o){return vc.isFunction(r)?r.call(this,t,n):(o&&(t=n),vc.isString(t)?vc.isString(r)?-1!==t.indexOf(r):vc.isRegExp(r)?r.test(t):void 0:void 0)}let Yu=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Wu(t);if(!o)throw new Error("header name must be a non-empty string");const i=vc.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Hu(e))}const i=(e,t)=>vc.forEach(e,((e,n)=>o(e,n,t)));if(vc.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(vc.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]&&Vu[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(vc.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=Wu(e)){const n=vc.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(vc.isFunction(t))return t.call(this,e,n);if(vc.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Wu(e)){const n=vc.findKey(this,e);return!(!n||void 0===this[n]||t&&!Xu(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Wu(e)){const o=vc.findKey(n,e);!o||t&&!Xu(0,n[o],o,t)||(delete n[o],r=!0)}}return vc.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&&!Xu(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return vc.forEach(this,((r,o)=>{const i=vc.findKey(n,o);if(i)return t[i]=Hu(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]=Hu(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return vc.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&vc.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[Gu]=this[Gu]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Wu(e);t[r]||(!function(e,t){const n=vc.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 vc.isArray(e)?e.forEach(r):r(e),this}};function $u(e,t){const n=this||zu,r=t||n,o=Yu.from(r.headers);let i=r.data;return vc.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Zu(e){return!(!e||!e.__CANCEL__)}function Uu(e,t,n){yu.call(this,null==e?"canceled":e,yu.ERR_CANCELED,t,n),this.name="CanceledError"}function Ju(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new yu("Request failed with status code "+n.status,[yu.ERR_BAD_REQUEST,yu.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Yu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vc.reduceDescriptors(Yu.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),vc.freezeMethods(Yu),vc.inherits(Uu,yu,{__CANCEL__:!0});const Ku=(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]]},Qu=e=>(...t)=>vc.asap((()=>e(...t)));var ed=Lu.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Lu.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Lu.origin),Lu.navigator&&/(msie|trident)/i.test(Lu.navigator.userAgent)):()=>!0,td=Lu.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];vc.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),vc.isString(r)&&a.push("path="+r),vc.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 nd(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 rd=e=>e instanceof Yu?{...e}:e;function od(e,t){t=t||{};const n={};function r(e,t,n,r){return vc.isPlainObject(e)&&vc.isPlainObject(t)?vc.merge.call({caseless:r},e,t):vc.isPlainObject(t)?vc.merge({},t):vc.isArray(t)?t.slice():t}function o(e,t,n,o){return vc.isUndefined(t)?vc.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!vc.isUndefined(t))return r(void 0,t)}function a(e,t){return vc.isUndefined(t)?vc.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(rd(e),rd(t),0,!0)};return vc.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);vc.isUndefined(a)&&i!==s||(n[r]=a)})),n}var id=e=>{const t=od({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Yu.from(s),t.url=Nu(nd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),vc.isFormData(r))if(Lu.hasStandardBrowserEnv||Lu.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(Lu.hasStandardBrowserEnv&&(o&&vc.isFunction(o)&&(o=o(t)),o||!1!==o&&ed(t.url))){const e=i&&a&&td.read(a);e&&s.set(i,e)}return t};var ad="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=id(e);let o=r.data;const i=Yu.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=Yu.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ju((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 yu("Request aborted",yu.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new yu("Network Error",yu.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||Ou;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new yu(t,o.clarifyTimeoutError?yu.ETIMEDOUT:yu.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&vc.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),vc.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=Ku(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Ku(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===Lu.protocols.indexOf(y)?n(new yu("Unsupported protocol "+y+":",yu.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const sd=(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 yu?t:new Uu(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new yu(`timeout ${t} of ms exceeded`,yu.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=()=>vc.asap(a),s}},ld=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},cd=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()}},ud=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of cd(e))yield*ld(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})},dd="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,fd=dd&&"function"==typeof ReadableStream,pd=dd&&("function"==typeof TextEncoder?(hd=new TextEncoder,e=>hd.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var hd;const md=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},gd=fd&&md((()=>{let e=!1;const t=new Request(Lu.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),yd=fd&&md((()=>vc.isReadableStream(new Response("").body))),bd={stream:yd&&(e=>e.body)};var vd;dd&&(vd=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!bd[e]&&(bd[e]=vc.isFunction(vd[e])?t=>t[e]():(t,n)=>{throw new yu(`Response type '${e}' is not supported`,yu.ERR_NOT_SUPPORT,n)})})));const wd=async(e,t)=>{const n=vc.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(vc.isBlob(e))return e.size;if(vc.isSpecCompliantForm(e)){const t=new Request(Lu.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return vc.isArrayBufferView(e)||vc.isArrayBuffer(e)?e.byteLength:(vc.isURLSearchParams(e)&&(e+=""),vc.isString(e)?(await pd(e)).byteLength:void 0)})(t):n};var xd=dd&&(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}=id(e);c=c?(c+"").toLowerCase():"text";let p,h=sd([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&gd&&"get"!==n&&"head"!==n&&0!==(g=await wd(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(vc.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=qu(g,Ku(Qu(l)));r=ud(n.body,65536,e,t)}}vc.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=yd&&("stream"===c||"response"===c);if(yd&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=vc.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&qu(t,Ku(Qu(s),!0))||[];i=new Response(ud(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let y=await bd[vc.findKey(bd,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{Ju(t,n,{data:y,headers:Yu.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 yu("Network Error",yu.ERR_NETWORK,e,p),{cause:t.cause||t});throw yu.from(t,t&&t.code,e,p)}});const Ed={http:null,xhr:ad,fetch:xd};vc.forEach(Ed,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Cd=e=>`- ${e}`,kd=e=>vc.isFunction(e)||null===e||!1===e;var Sd=e=>{e=vc.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,!kd(n)&&(r=Ed[(t=String(n)).toLowerCase()],void 0===r))throw new yu(`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 yu("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Cd).join("\n"):" "+Cd(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function _d(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Uu(null,e)}function Id(e){_d(e),e.headers=Yu.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 Sd(e.adapter||zu.adapter)(e).then((function(t){return _d(e),t.data=$u.call(e,e.transformResponse,t),t.headers=Yu.from(t.headers),t}),(function(t){return Zu(t)||(_d(e),t&&t.response&&(t.response.data=$u.call(e,e.transformResponse,t.response),t.response.headers=Yu.from(t.response.headers))),Promise.reject(t)}))}const Ad="1.8.4",Nd={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Nd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Rd={};Nd.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 yu(r(o," has been removed"+(t?" in "+t:"")),yu.ERR_DEPRECATED);return t&&!Rd[o]&&(Rd[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)}},Nd.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Od={assertOptions:function(e,t,n){if("object"!=typeof e)throw new yu("options must be an object",yu.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 yu("option "+i+" must be "+n,yu.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new yu("Unknown option "+i,yu.ERR_BAD_OPTION)}},validators:Nd};const Td=Od.validators;let Md=class{constructor(e){this.defaults=e,this.interceptors={request:new Ru,response:new Ru}}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=od(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Od.assertOptions(n,{silentJSONParsing:Td.transitional(Td.boolean),forcedJSONParsing:Td.transitional(Td.boolean),clarifyTimeoutError:Td.transitional(Td.boolean)},!1),null!=r&&(vc.isFunction(r)?t.paramsSerializer={serialize:r}:Od.assertOptions(r,{encode:Td.function,serialize:Td.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Od.assertOptions(t,{baseUrl:Td.spelling("baseURL"),withXsrfToken:Td.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&vc.merge(o.common,o[t.method]);o&&vc.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Yu.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=[Id.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=Id.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 Nu(nd((e=od(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};vc.forEach(["delete","get","head","options"],(function(e){Md.prototype[e]=function(t,n){return this.request(od(n||{},{method:e,url:t,data:(n||{}).data}))}})),vc.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(od(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Md.prototype[e]=t(),Md.prototype[e+"Form"]=t(!0)}));const Pd={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(Pd).forEach((([e,t])=>{Pd[t]=e}));const Dd=function e(t){const n=new Md(t),r=Dl(Md.prototype.request,n);return vc.extend(r,Md.prototype,n,{allOwnKeys:!0}),vc.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(od(t,n))},r}(zu);Dd.Axios=Md,Dd.CanceledError=Uu,Dd.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}}},Dd.isCancel=Zu,Dd.VERSION=Ad,Dd.toFormData=ku,Dd.AxiosError=yu,Dd.Cancel=Dd.CanceledError,Dd.all=function(e){return Promise.all(e)},Dd.spread=function(e){return function(t){return e.apply(null,t)}},Dd.isAxiosError=function(e){return vc.isObject(e)&&!0===e.isAxiosError},Dd.mergeConfig=od,Dd.AxiosHeaders=Yu,Dd.formToJSON=e=>Fu(vc.isHTMLForm(e)?new FormData(e):e),Dd.getAdapter=Sd,Dd.HttpStatusCode=Pd,Dd.default=Dd;const{Axios:jd,AxiosError:Bd,CanceledError:Ld,isCancel:Fd,CancelToken:zd,VERSION:Vd,all:Gd,Cancel:Wd,isAxiosError:Hd,spread:Xd,toFormData:Yd,AxiosHeaders:$d,HttpStatusCode:Zd,formToJSON:Ud,getAdapter:Jd,mergeConfig:Kd}=Dd;let qd;const Qd=new Uint8Array(16);function ef(){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(Qd)}const tf=[];for(let e=0;e<256;++e)tf.push((e+256).toString(16).slice(1));var nf={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function rf(e,t,n){if(nf.randomUUID&&!e)return nf.randomUUID();const r=(e=e||{}).random||(e.rng||ef)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return tf[e[t+0]]+tf[e[t+1]]+tf[e[t+2]]+tf[e[t+3]]+"-"+tf[e[t+4]]+tf[e[t+5]]+"-"+tf[e[t+6]]+tf[e[t+7]]+"-"+tf[e[t+8]]+tf[e[t+9]]+"-"+tf[e[t+10]]+tf[e[t+11]]+tf[e[t+12]]+tf[e[t+13]]+tf[e[t+14]]+tf[e[t+15]]}(r)}class of{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=ee(((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={};le(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&&le(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}=re(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||rf();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=ge({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=ge({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 af extends of{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 Dd.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 sf{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 af({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 lf(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function cf(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function uf(...e){return t=>{let n=!1;const r=e.map((e=>{const r=cf(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():cf(e[t],null)}}}}function df(...e){return o.useCallback(uf(...e),e)}var ff,pf={exports:{}},hf={};var mf,gf,yf={};function bf(){return mf||(mf=1,"production"!==P.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===j?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case C:return"Portal";case _:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case A:return(e.displayName||"Context")+".Provider";case I:return(e._context.displayName||"Context")+".Consumer";case N:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(n=e.displayName||null)?n:t(e.type)||"Memo";case M:n=e._payload,e=e._init;try{return t(e(n))}catch(e){}}return null}function n(e){return""+e}function r(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),n(e)}}function o(){}function i(e){if(void 0===W)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);W=t&&t[1]||"",H=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+W+e+H}function a(e,t){if(!e||Y)return"";var n=$.get(e);if(void 0!==n)return n;Y=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r;r=B.H,B.H=null,function(){if(0===G){h=console.log,m=console.info,g=console.warn,y=console.error,b=console.group,v=console.groupCollapsed,w=console.groupEnd;var e={configurable:!0,enumerable:!0,value:o,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}();try{var a={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]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=a.DetermineComponentFrameRoot(),c=l[0],u=l[1];if(c&&u){var d=c.split("\n"),f=u.split("\n");for(l=s=0;s<d.length&&!d[s].includes("DetermineComponentFrameRoot");)s++;for(;l<f.length&&!f[l].includes("DetermineComponentFrameRoot");)l++;if(s===d.length||l===f.length)for(s=d.length-1,l=f.length-1;1<=s&&0<=l&&d[s]!==f[l];)l--;for(;1<=s&&0<=l;s--,l--)if(d[s]!==f[l]){if(1!==s||1!==l)do{if(s--,0>--l||d[s]!==f[l]){var p="\n"+d[s].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),"function"==typeof e&&$.set(e,p),p}}while(1<=s&&0<=l);break}}}finally{Y=!1,B.H=r,function(){if(0==--G){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:h}),info:F({},e,{value:m}),warn:F({},e,{value:g}),error:F({},e,{value:y}),group:F({},e,{value:b}),groupCollapsed:F({},e,{value:v}),groupEnd:F({},e,{value:w})})}0>G&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}return d=(d=e?e.displayName||e.name:"")?i(d):"","function"==typeof e&&$.set(e,d),d}function s(e){if(null==e)return"";if("function"==typeof e){var t=e.prototype;return a(e,!(!t||!t.isReactComponent))}if("string"==typeof e)return i(e);switch(e){case R:return i("Suspense");case O:return i("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case N:return e=a(e.render,!1);case T:return s(e.type);case M:t=e._payload,e=e._init;try{return s(e(t))}catch(e){}}return""}function l(){var e=B.A;return null===e?null:e.getOwner()}function c(){var e=t(this.type);return U[e]||(U[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function u(e,n,o,i,a,s){if("string"==typeof e||"function"==typeof e||e===k||e===_||e===S||e===R||e===O||e===P||"object"==typeof e&&null!==e&&(e.$$typeof===M||e.$$typeof===T||e.$$typeof===A||e.$$typeof===I||e.$$typeof===N||e.$$typeof===z||void 0!==e.getModuleId)){var u=n.children;if(void 0!==u)if(i)if(V(u)){for(i=0;i<u.length;i++)d(u[i],e);Object.freeze&&Object.freeze(u)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(u,e)}else u="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e?i="null":V(e)?i="array":void 0!==e&&e.$$typeof===E?(i="<"+(t(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):i=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",i,u);if(L.call(n,"key")){u=t(e);var f=Object.keys(n).filter((function(e){return"key"!==e}));i=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",J[u+i]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,u,f,u),J[u+i]=!0)}if(u=null,void 0!==o&&(r(o),u=""+o),function(e){if(L.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(r(n.key),u=""+n.key),"key"in n)for(var p in o={},n)"key"!==p&&(o[p]=n[p]);else o=n;return u&&function(e,t){function n(){X||(X=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,t,n,r,o,i){return n=i.ref,e={$$typeof:E,type:e,key:t,props:i,_owner:o},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:c}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,u,s,0,l(),o)}function d(e,t){if("object"==typeof e&&e&&e.$$typeof!==Z)if(V(e))for(var n=0;n<e.length;n++){var r=e[n];f(r)&&p(r,t)}else if(f(e))e._store&&(e._store.validated=1);else if(null===e||"object"!=typeof e?n=null:n="function"==typeof(n=D&&e[D]||e["@@iterator"])?n:null,"function"==typeof n&&n!==e.entries&&(n=n.call(e))!==e)for(;!(e=n.next()).done;)f(e.value)&&p(e.value,t)}function f(e){return"object"==typeof e&&null!==e&&e.$$typeof===E}function p(e,n){if(e._store&&!e._store.validated&&null==e.key&&(e._store.validated=1,n=function(e){var n="",r=l();return r&&(r=t(r.type))&&(n="\n\nCheck the render method of `"+r+"`."),n||(e=t(e))&&(n="\n\nCheck the top-level render call using <"+e+">."),n}(n),!K[n])){K[n]=!0;var r="";e&&null!=e._owner&&e._owner!==l()&&(r=null,"number"==typeof e._owner.tag?r=t(e._owner.type):"string"==typeof e._owner.name&&(r=e._owner.name),r=" It was passed a child from "+r+".");var o=B.getCurrentStack;B.getCurrentStack=function(){var t=s(e.type);return o&&(t+=o()||""),t},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,r),B.getCurrentStack=o}}var h,m,g,y,b,v,w,x=e,E=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),A=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),D=Symbol.iterator,j=Symbol.for("react.client.reference"),B=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,F=Object.assign,z=Symbol.for("react.client.reference"),V=Array.isArray,G=0;o.__reactDisabledLog=!0;var W,H,X,Y=!1,$=new("function"==typeof WeakMap?WeakMap:Map),Z=Symbol.for("react.client.reference"),U={},J={},K={};yf.Fragment=k,yf.jsx=function(e,t,n,r,o){return u(e,t,n,!1,0,o)},yf.jsxs=function(e,t,n,r,o){return u(e,t,n,!0,0,o)}}()),yf}var vf=(gf||(gf=1,"production"===P.env.NODE_ENV?pf.exports=function(){if(ff)return hf;ff=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 hf.Fragment=t,hf.jsx=n,hf.jsxs=n,hf}():pf.exports=bf()),pf.exports);function wf(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>o.createContext(e)));return function(n){const r=n?.[e]||t;return o.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const i=o.createContext(r),a=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,l=n?.[e]?.[a]||i,c=o.useMemo((()=>s),Object.values(s));return vf.jsx(l.Provider,{value:c,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const l=s?.[e]?.[a]||i,c=o.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},xf(r,...t)]}function xf(...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 o.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var Ef=Boolean(globalThis?.document)?o.useLayoutEffect:()=>{},Cf=o["useId".toString()]||(()=>{}),kf=0;function Sf(e){const[t,n]=o.useState(Cf());return Ef((()=>{n((e=>e??String(kf++)))}),[e]),e||(t?`radix-${t}`:"")}function _f(e){const t=o.useRef(e);return o.useEffect((()=>{t.current=e})),o.useMemo((()=>(...e)=>t.current?.(...e)),[])}function If({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=function({defaultProp:e,onChange:t}){const n=o.useState(e),[r]=n,i=o.useRef(r),a=_f(t);return o.useEffect((()=>{i.current!==r&&(a(r),i.current=r)}),[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:r,l=_f(n);return[s,o.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[a,e,i,l])]}var Af=o.forwardRef(((e,t)=>{const{children:n,...r}=e,i=o.Children.toArray(n),a=i.find(Of);if(a){const e=a.props.children,n=i.map((t=>t===a?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t));return vf.jsx(Nf,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return vf.jsx(Nf,{...r,ref:t,children:n})}));Af.displayName="Slot";var Nf=o.forwardRef(((e,t)=>{const{children:n,...r}=e;if(o.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),i=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!==o.Fragment&&(i.ref=t?uf(t,e):e),o.cloneElement(n,i)}return o.Children.count(n)>1?o.Children.only(null):null}));Nf.displayName="SlotClone";var Rf=({children:e})=>vf.jsx(vf.Fragment,{children:e});function Of(e){return o.isValidElement(e)&&e.type===Rf}var Tf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=o.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Af:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),vf.jsx(i,{...o,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Mf(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}var Pf,Df="dismissableLayer.update",jf="dismissableLayer.pointerDownOutside",Bf="dismissableLayer.focusOutside",Lf=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ff=o.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=o.useContext(Lf),[d,f]=o.useState(null),p=d?.ownerDocument??globalThis?.document,[,h]=o.useState({}),m=df(t,(e=>f(e))),g=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),v=d?g.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,x=v>=b,E=function(e,t=globalThis?.document){const n=_f(e),r=o.useRef(!1),i=o.useRef((()=>{}));return o.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Gf(jf,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));x&&!n&&(i?.(e),s?.(e),e.defaultPrevented||l?.())}),p),C=function(e,t=globalThis?.document){const n=_f(e),r=o.useRef(!1);return o.useEffect((()=>{const e=e=>{if(e.target&&!r.current){Gf(Bf,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;[...u.branches].some((e=>e.contains(t)))||(a?.(e),s?.(e),e.defaultPrevented||l?.())}),p);return function(e,t=globalThis?.document){const n=_f(e);o.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===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),o.useEffect((()=>{if(d)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Pf=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Vf(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=Pf)}}),[d,p,n,u]),o.useEffect((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Vf())}),[d,u]),o.useEffect((()=>{const e=()=>h({});return document.addEventListener(Df,e),()=>document.removeEventListener(Df,e)}),[]),vf.jsx(Tf.div,{...c,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:lf(e.onFocusCapture,C.onFocusCapture),onBlurCapture:lf(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:lf(e.onPointerDownCapture,E.onPointerDownCapture)})}));Ff.displayName="DismissableLayer";var zf=o.forwardRef(((e,t)=>{const n=o.useContext(Lf),r=o.useRef(null),i=df(t,r);return o.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),vf.jsx(Tf.div,{...e,ref:i})}));function Vf(){const e=new CustomEvent(Df);document.dispatchEvent(e)}function Gf(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?Mf(o,i):o.dispatchEvent(i)}zf.displayName="DismissableLayerBranch";var Wf="focusScope.autoFocusOnMount",Hf="focusScope.autoFocusOnUnmount",Xf={bubbles:!1,cancelable:!0},Yf=o.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[l,c]=o.useState(null),u=_f(i),d=_f(a),f=o.useRef(null),p=df(t,(e=>c(e))),h=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect((()=>{if(r){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:Jf(f.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Jf(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Jf(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,l,h.paused]),o.useEffect((()=>{if(l){Kf.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Wf,Xf);l.addEventListener(Wf,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Jf(r,{select:t}),document.activeElement!==n)return}((e=$f(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&Jf(l))}return()=>{l.removeEventListener(Wf,u),setTimeout((()=>{const e=new CustomEvent(Hf,Xf);l.addEventListener(Hf,d),l.dispatchEvent(e),e.defaultPrevented||Jf(t??document.body,{select:!0}),l.removeEventListener(Hf,d),Kf.remove(h)}),0)}}var e}),[l,u,d,h]);const m=o.useCallback((e=>{if(!n&&!r)return;if(h.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=$f(e),n=Zf(t,e),r=Zf(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Jf(i,{select:!0})):(e.preventDefault(),n&&Jf(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return vf.jsx(Tf.div,{tabIndex:-1,...s,ref:p,onKeyDown:m})}));function $f(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 Zf(e,t){for(const n of e)if(!Uf(n,{upTo:t}))return n}function Uf(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 Jf(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()}}Yf.displayName="FocusScope";var Kf=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qf(e,t),e.unshift(t)},remove(t){e=qf(e,t),e[0]?.resume()}}}();function qf(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Qf=o.forwardRef(((e,n)=>{const{container:r,...i}=e,[a,s]=o.useState(!1);Ef((()=>s(!0)),[]);const l=r||a&&globalThis?.document?.body;return l?t.createPortal(vf.jsx(Tf.div,{...i,ref:n}),l):null}));Qf.displayName="Portal";var ep=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=o.useState(),r=o.useRef({}),i=o.useRef(e),a=o.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return o.useReducer(((e,n)=>t[e][n]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect((()=>{const e=tp(r.current);a.current="mounted"===l?e:"none"}),[l]),Ef((()=>{const t=r.current,n=i.current;if(n!==e){const r=a.current,o=tp(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),Ef((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,o=o=>{const a=tp(r.current).includes(o.animationName);if(o.target===t&&a&&(c("ANIMATION_END"),!i.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&&(a.current=tp(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",o),t.addEventListener("animationend",o),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",o),t.removeEventListener("animationend",o)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:o.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),i="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),a=df(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}(i));return"function"==typeof n||r.isPresent?o.cloneElement(i,{ref:a}):null};function tp(e){return e?.animationName||"none"}ep.displayName="Presence";var np=0;function rp(){o.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??op()),document.body.insertAdjacentElement("beforeend",e[1]??op()),np++,()=>{1===np&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),np--}}),[])}function op(){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 ip=function(){return ip=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},ip.apply(this,arguments)};function ap(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 sp(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 lp="right-scroll-bar-position",cp="width-before-scroll-bar";function up(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var dp="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,fp=new WeakMap;function pp(t,n){var r,o,i,a=(r=null,o=function(e){return t.forEach((function(t){return up(t,e)}))},(i=e.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade);return dp((function(){var e=fp.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach((function(e){r.has(e)||up(e,null)})),r.forEach((function(e){n.has(e)||up(e,o)}))}fp.set(a,t)}),[t]),a}function hp(e){return e}var mp=function(e){var t=e.sideCar,n=ap(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 o.createElement(r,ip({},n))};mp.isSideCarExport=!0;var gp=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=hp);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=ip({async:!0,ssr:!1},e),t}(),yp=function(){},bp=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:yp,onWheelCapture:yp,onTouchMoveCapture:yp}),i=r[0],a=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,v=e.gapMode,w=ap(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,E=pp([n,t]),C=ip(ip({},w),i);return o.createElement(o.Fragment,null,d&&o.createElement(x,{sideCar:gp,removeScrollBar:u,shards:f,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:v}),s?o.cloneElement(o.Children.only(l),ip(ip({},C),{ref:E})):o.createElement(b,ip({},C,{className:c,ref:E}),l))}));bp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},bp.classNames={fullWidth:cp,zeroRight:lp};function vp(){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 wp=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=vp())&&(!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)}}},xp=function(){var e,t=(e=wp(),function(t,n){o.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}},Ep={left:0,top:0,right:0,gap:0},Cp=function(e){return parseInt(e||"",10)||0},kp=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ep;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[Cp(n),Cp(r),Cp(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])}},Sp=xp(),_p="data-scroll-locked",Ip=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(_p,"] {\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(lp," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(cp," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(lp," .").concat(lp," {\n right: 0 ").concat(r,";\n }\n \n .").concat(cp," .").concat(cp," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(_p,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Ap=function(){var e=parseInt(document.body.getAttribute(_p)||"0",10);return isFinite(e)?e:0},Np=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;o.useEffect((function(){return document.body.setAttribute(_p,(Ap()+1).toString()),function(){var e=Ap()-1;e<=0?document.body.removeAttribute(_p):document.body.setAttribute(_p,e.toString())}}),[]);var a=o.useMemo((function(){return kp(i)}),[i]);return o.createElement(Sp,{styles:Ip(a,!t,i,n?"":"!important")})},Rp=!1;if("undefined"!=typeof window)try{var Op=Object.defineProperty({},"passive",{get:function(){return Rp=!0,!0}});window.addEventListener("test",Op,Op),window.removeEventListener("test",Op,Op)}catch(e){Rp=!1}var Tp=!!Rp&&{passive:!1},Mp=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])},Pp=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Dp(e,r)){var o=jp(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Dp=function(e,t){return"v"===e?function(e){return Mp(e,"overflowY")}(t):function(e){return Mp(e,"overflowX")}(t)},jp=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},Bp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Lp=function(e){return[e.deltaX,e.deltaY]},Fp=function(e){return e&&"current"in e?e.current:e},zp=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Vp=0,Gp=[];function Wp(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Hp,Xp=(Hp=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(Vp++)[0],a=o.useState(xp)[0],s=o.useRef(e);o.useEffect((function(){s.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=sp([e.lockRef.current],(e.shards||[]).map(Fp),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=Bp(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[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=Pp(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Pp(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=jp(e,a),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&Dp(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)}),[]),c=o.useCallback((function(e){var n=e;if(Gp.length&&Gp[Gp.length-1]===a){var r="deltaY"in n?Lp(n):Bp(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 i=(s.current.shards||[]).map(Fp).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?l(n,i[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=o.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:Wp(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=o.useCallback((function(e){n.current=Bp(e),r.current=void 0}),[]),f=o.useCallback((function(t){u(t.type,Lp(t),t.target,l(t,e.lockRef.current))}),[]),p=o.useCallback((function(t){u(t.type,Bp(t),t.target,l(t,e.lockRef.current))}),[]);o.useEffect((function(){return Gp.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Tp),document.addEventListener("touchmove",c,Tp),document.addEventListener("touchstart",d,Tp),function(){Gp=Gp.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,Tp),document.removeEventListener("touchmove",c,Tp),document.removeEventListener("touchstart",d,Tp)}}),[]);var h=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:zp(i)}):null,h?o.createElement(Np,{gapMode:e.gapMode}):null)},gp.useMedium(Hp),mp),Yp=o.forwardRef((function(e,t){return o.createElement(bp,ip({},e,{ref:t,sideCar:Xp}))}));Yp.classNames=bp.classNames;var $p=new WeakMap,Zp=new WeakMap,Up={},Jp=0,Kp=function(e){return e&&(e.host||Kp(e.parentNode))},qp=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Kp(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]);Up[n]||(Up[n]=new WeakMap);var i=Up[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=($p.get(e)||0)+1,c=(i.get(e)||0)+1;$p.set(e,l),i.set(e,c),a.push(e),1===l&&o&&Zp.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(),Jp++,function(){a.forEach((function(e){var t=$p.get(e)-1,o=i.get(e)-1;$p.set(e,t),i.set(e,o),t||(Zp.has(e)||e.removeAttribute(r),Zp.delete(e)),o||e.removeAttribute(n)})),--Jp||($p=new WeakMap,$p=new WeakMap,Zp=new WeakMap,Up={})}},Qp=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]"))),qp(r,o,n,"aria-hidden")):function(){return null}},eh="Dialog",[th,nh]=wf(eh),[rh,oh]=th(eh),ih=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=o.useRef(null),c=o.useRef(null),[u=!1,d]=If({prop:r,defaultProp:i,onChange:a});return vf.jsx(rh,{scope:t,triggerRef:l,contentRef:c,contentId:Sf(),titleId:Sf(),descriptionId:Sf(),open:u,onOpenChange:d,onOpenToggle:o.useCallback((()=>d((e=>!e))),[d]),modal:s,children:n})};ih.displayName=eh;var ah="DialogTrigger",sh=o.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=oh(ah,n),i=df(t,o.triggerRef);return vf.jsx(Tf.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_h(o.open),...r,ref:i,onClick:lf(e.onClick,o.onOpenToggle)})}));sh.displayName=ah;var lh="DialogPortal",[ch,uh]=th(lh,{forceMount:void 0}),dh=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=oh(lh,t);return vf.jsx(ch,{scope:t,forceMount:n,children:o.Children.map(r,(e=>vf.jsx(ep,{present:n||a.open,children:vf.jsx(Qf,{asChild:!0,container:i,children:e})})))})};dh.displayName=lh;var fh="DialogOverlay",ph=o.forwardRef(((e,t)=>{const n=uh(fh,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=oh(fh,e.__scopeDialog);return i.modal?vf.jsx(ep,{present:r||i.open,children:vf.jsx(hh,{...o,ref:t})}):null}));ph.displayName=fh;var hh=o.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=oh(fh,n);return vf.jsx(Yp,{as:Af,allowPinchZoom:!0,shards:[o.contentRef],children:vf.jsx(Tf.div,{"data-state":_h(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),mh="DialogContent",gh=o.forwardRef(((e,t)=>{const n=uh(mh,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=oh(mh,e.__scopeDialog);return vf.jsx(ep,{present:r||i.open,children:i.modal?vf.jsx(yh,{...o,ref:t}):vf.jsx(bh,{...o,ref:t})})}));gh.displayName=mh;var yh=o.forwardRef(((e,t)=>{const n=oh(mh,e.__scopeDialog),r=o.useRef(null),i=df(t,n.contentRef,r);return o.useEffect((()=>{const e=r.current;if(e)return Qp(e)}),[]),vf.jsx(vh,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lf(e.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:lf(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:lf(e.onFocusOutside,(e=>e.preventDefault()))})})),bh=o.forwardRef(((e,t)=>{const n=oh(mh,e.__scopeDialog),r=o.useRef(!1),i=o.useRef(!1);return vf.jsx(vh,{...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,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,a=n.triggerRef.current?.contains(o);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})})),vh=o.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,l=oh(mh,n),c=o.useRef(null),u=df(t,c);return rp(),vf.jsxs(vf.Fragment,{children:[vf.jsx(Yf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:vf.jsx(Ff,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":_h(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),vf.jsxs(vf.Fragment,{children:[vf.jsx(Rh,{titleId:l.titleId}),vf.jsx(Oh,{contentRef:c,descriptionId:l.descriptionId})]})]})})),wh="DialogTitle",xh=o.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=oh(wh,n);return vf.jsx(Tf.h2,{id:o.titleId,...r,ref:t})}));xh.displayName=wh;var Eh="DialogDescription",Ch=o.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=oh(Eh,n);return vf.jsx(Tf.p,{id:o.descriptionId,...r,ref:t})}));Ch.displayName=Eh;var kh="DialogClose",Sh=o.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=oh(kh,n);return vf.jsx(Tf.button,{type:"button",...r,ref:t,onClick:lf(e.onClick,(()=>o.onOpenChange(!1)))})}));function _h(e){return e?"open":"closed"}Sh.displayName=kh;var Ih="DialogTitleWarning",[Ah,Nh]=function(e,t){const n=o.createContext(t),r=e=>{const{children:t,...r}=e,i=o.useMemo((()=>r),Object.values(r));return vf.jsx(n.Provider,{value:i,children:t})};return r.displayName=e+"Provider",[r,function(r){const i=o.useContext(n);if(i)return i;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(Ih,{contentName:mh,titleName:wh,docsSlug:"dialog"}),Rh=({titleId:e})=>{const t=Nh(Ih),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 o.useEffect((()=>{if(e){document.getElementById(e)||console.error(n)}}),[n,e]),null},Oh=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Nh("DialogDescriptionWarning").contentName}}.`;return o.useEffect((()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)||console.warn(n)}}),[n,e,t]),null},Th=ih,Mh=sh,Ph=dh,Dh=ph,jh=gh,Bh=xh,Lh=Ch,Fh=Sh;
|
|
38
11
|
/*!
|
|
39
12
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
40
13
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
41
14
|
* Copyright 2024 Fonticons, Inc.
|
|
42
15
|
*/
|
|
43
|
-
function lp(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 cp(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 up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cp(Object(n),!0).forEach((function(t){lp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const dp=()=>{};let fp={},pp={},hp=null,mp={mark:dp,measure:dp};try{"undefined"!=typeof window&&(fp=window),"undefined"!=typeof document&&(pp=document),"undefined"!=typeof MutationObserver&&(hp=MutationObserver),"undefined"!=typeof performance&&(mp=performance)}catch(e){}const{userAgent:gp=""}=fp.navigator||{},yp=fp,bp=pp,vp=hp,wp=mp;yp.document;const xp=!!bp.documentElement&&!!bp.head&&"function"==typeof bp.addEventListener&&"function"==typeof bp.createElement,Cp=~gp.indexOf("MSIE")||~gp.indexOf("Trident/");var kp={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"}},Ep=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Sp="classic",Ip="duotone",_p=[Sp,Ip,"sharp","sharp-duotone"],Ap=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}]]),Np=["fak","fa-kit","fakd","fa-kit-duotone"],Op={fak:"kit","fa-kit":"kit"},Rp={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},Mp=["fak","fakd"],Tp={kit:"fak"},Pp={"kit-duotone":"fakd"},Dp={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},jp=["fak","fa-kit","fakd","fa-kit-duotone"],Fp={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"}},Lp=["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"],zp=[1,2,3,4,5,6,7,8,9,10],Bp=zp.concat([11,12,13,14,15,16,17,18,19,20]),Vp=[...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",Dp.GROUP,Dp.SWAP_OPACITY,Dp.PRIMARY,Dp.SECONDARY].concat(zp.map((e=>"".concat(e,"x")))).concat(Bp.map((e=>"w-".concat(e))));const Gp="___FONT_AWESOME___",Wp=16,Hp="svg-inline--fa",Xp="data-fa-i2svg",$p="data-fa-pseudo-element",Zp="data-prefix",Yp="data-icon",Up="fontawesome-i2svg",Jp=["HTML","HEAD","STYLE","SCRIPT"],Kp=(()=>{try{return"production"===process.env.NODE_ENV}catch(e){return!1}})();function qp(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[Sp]})}const Qp=up({},kp);Qp[Sp]=up(up(up(up({},{"fa-duotone":"duotone"}),kp[Sp]),Op),Rp);const eh=qp(Qp),th=up({},{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"}});th[Sp]=up(up(up(up({},{duotone:"fad"}),th[Sp]),Tp),Pp);const nh=qp(th),rh=up({},Fp);rh[Sp]=up(up({},rh[Sp]),{fak:"fa-kit"});const oh=qp(rh),ih=up({},{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"}});ih[Sp]=up(up({},ih[Sp]),{"fa-kit":"fak"}),qp(ih);const ah=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,sh="fa-layers-text",lh=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;qp(up({},{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 ch=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],uh={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},dh=["kit",...Vp],fh=yp.FontAwesomeConfig||{};if(bp&&"function"==typeof bp.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=bp.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(fh[n]=r)}))}const ph={styleDefault:"solid",familyDefault:Sp,cssPrefix:"fa",replacementClass:Hp,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};fh.familyPrefix&&(fh.cssPrefix=fh.familyPrefix);const hh=up(up({},ph),fh);hh.autoReplaceSvg||(hh.observeMutations=!1);const mh={};Object.keys(ph).forEach((e=>{Object.defineProperty(mh,e,{enumerable:!0,set:function(t){hh[e]=t,gh.forEach((e=>e(mh)))},get:function(){return hh[e]}})})),Object.defineProperty(mh,"familyPrefix",{enumerable:!0,set:function(e){hh.cssPrefix=e,gh.forEach((e=>e(mh)))},get:function(){return hh.cssPrefix}}),yp.FontAwesomeConfig=mh;const gh=[];const yh=Wp,bh={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function vh(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function wh(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function xh(e){return e.classList?wh(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function Ch(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function kh(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function Eh(e){return e.size!==bh.size||e.x!==bh.x||e.y!==bh.y||e.rotate!==bh.rotate||e.flipX||e.flipY}function Sh(){const e="fa",t=Hp,n=mh.cssPrefix,r=mh.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 Ih=!1;function _h(){mh.autoAddCss&&!Ih&&(!function(e){if(!e||!xp)return;const t=bp.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=bp.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)}bp.head.insertBefore(t,r)}(Sh()),Ih=!0)}var Ah={mixout:()=>({dom:{css:Sh,insertCss:_h}}),hooks:()=>({beforeDOMElementCreation(){_h()},beforeI2svg(){_h()}})};const Nh=yp||{};Nh[Gp]||(Nh[Gp]={}),Nh[Gp].styles||(Nh[Gp].styles={}),Nh[Gp].hooks||(Nh[Gp].hooks={}),Nh[Gp].shims||(Nh[Gp].shims=[]);var Oh=Nh[Gp];const Rh=[],Mh=function(){bp.removeEventListener("DOMContentLoaded",Mh),Th=1,Rh.map((e=>e()))};let Th=!1;function Ph(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?Ch(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(Ch(e[n]),'" ')),"").trim()}(n),">").concat(r.map(Ph).join(""),"</").concat(t,">")}function Dh(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}xp&&(Th=(bp.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(bp.readyState),Th||bp.addEventListener("DOMContentLoaded",Mh));var jh=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 Fh(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 Lh(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 zh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,o=Lh(t);"function"!=typeof Oh.hooks.addPack||r?Oh.styles[e]=up(up({},Oh.styles[e]||{}),o):Oh.hooks.addPack(e,Lh(t)),"fas"===e&&zh("fa",t)}const{styles:Bh,shims:Vh}=Oh,Gh=Object.keys(oh),Wh=Gh.reduce(((e,t)=>(e[t]=Object.keys(oh[t]),e)),{});let Hh=null,Xh={},$h={},Zh={},Yh={},Uh={};function Jh(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r!==e||""===o||function(e){return~dh.indexOf(e)}(o)?null:o}const Kh=()=>{const e=e=>jh(Bh,((t,n,r)=>(t[r]=jh(n,e,{}),t)),{});Xh=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})),$h=e(((e,t,n)=>{if(e[n]=n,t[2]){t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n}))}return e})),Uh=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in Bh||mh.autoFetchSvg,n=jh(Vh,((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:{}});Zh=n.names,Yh=n.unicodes,Hh=rm(mh.styleDefault,{family:mh.familyDefault})};var qh;function Qh(e,t){return(Xh[e]||{})[t]}function em(e,t){return(Uh[e]||{})[t]}function tm(e){return Zh[e]||{prefix:null,iconName:null}}function nm(){return Hh}qh=e=>{Hh=rm(e.styleDefault,{family:mh.familyDefault})},gh.push(qh),Kh();function rm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=Sp}=t,r=eh[n][e];if(n===Ip&&!e)return"fad";const o=nh[n][e]||nh[n][r],i=e in Oh.styles?e:null;return o||i||null}function om(e){return e.sort().filter(((e,t,n)=>n.indexOf(e)===t))}function im(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=Lp.concat(jp),i=om(e.filter((e=>o.includes(e)))),a=om(e.filter((e=>!Lp.includes(e)))),s=i.filter((e=>(r=e,!Ep.includes(e)))),[l=null]=s,c=function(e){let t=Sp;const n=Gh.reduce(((e,t)=>(e[t]="".concat(mh.cssPrefix,"-").concat(t),e)),{});return _p.forEach((r=>{(e.includes(n[r])||e.some((e=>Wh[r].includes(e))))&&(t=r)})),t}(i),u=up(up({},function(e){let t=[],n=null;return e.forEach((e=>{const r=Jh(mh.cssPrefix,e);r?n=r:e&&t.push(e)})),{iconName:n,rest:t}}(a)),{},{prefix:rm(l,{family:c})});return up(up(up({},u),function(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:a={}}=e,s=n===Ip,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&&am.includes(n)){if(Object.keys(i).find((e=>sm.includes(e)))||a.autoFetchSvg){const e=Ap.get(n).defaultShortPrefixId;r.prefix=e,r.iconName=em(r.prefix,r.iconName)||r.iconName}}"fa"!==r.prefix&&"fa"!==o||(r.prefix=nm()||"fas");return r}({values:e,family:c,styles:Bh,config:mh,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?tm(o):{},a=em(r,o);o=i.iconName||a||o,r=i.prefix||r,"far"!==r||Bh.far||!Bh.fas||mh.autoFetchSvg||(r="fas");return{prefix:r,iconName:o}}(n,r,u))}const am=_p.filter((e=>e!==Sp||e!==Ip)),sm=Object.keys(Fp).filter((e=>e!==Sp)).map((e=>Object.keys(Fp[e]))).flat();let lm=[],cm={};const um={},dm=Object.keys(um);function fm(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(cm[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function pm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(cm[e]||[]).forEach((e=>{e.apply(null,n)}))}function hm(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return um[e]?um[e].apply(null,t):void 0}function mm(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||nm();if(t)return t=em(n,t)||t,Dh(gm.definitions,n,t)||Dh(Oh.styles,n,t)}const gm=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]=up(up({},this.definitions[e]||{}),r[e]),zh(e,r[e]);const t=oh[Sp][e];t&&zh(t,r[e]),Kh()}))}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}},ym={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return xp?(pm("beforeI2svg",e),hm("pseudoElements2svg",e),hm("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===mh.autoReplaceSvg&&(mh.autoReplaceSvg=!0),mh.observeMutations=!0,n=()=>{wm({autoReplaceSvgRoot:t}),pm("watch",e)},xp&&(Th?setTimeout(n,0):Rh.push(n))}},bm={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:em(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=rm(e[0]);return{prefix:n,iconName:em(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(mh.cssPrefix,"-"))>-1||e.match(ah))){const t=im(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||nm(),iconName:em(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=nm();return{prefix:t,iconName:em(t,e)||e}}}},vm={noAuto:()=>{mh.autoReplaceSvg=!1,mh.observeMutations=!1,pm("noAuto")},config:mh,dom:ym,parse:bm,library:gm,findIconDefinition:mm,toHtml:Ph},wm=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=bp}=e;(Object.keys(Oh.styles).length>0||mh.autoFetchSvg)&&xp&&mh.autoReplaceSvg&&vm.dom.i2svg({node:t})};function xm(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>Ph(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!xp)return;const t=bp.createElement("div");return t.innerHTML=e.html,t.children}}),e}function Cm(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=Mp.includes(r),m=[mh.replacementClass,o?"".concat(mh.cssPrefix,"-").concat(o):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let g={children:[],attributes:up(up({},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[Xp]=""),s&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(c||vh())},children:[s]}),delete g.attributes.title);const b=up(up({},g),{},{prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:a,styles:up(up({},y),u.styles)}),{children:v,attributes:w}=n.found&&t.found?hm("generateAbstractMask",b)||{children:[],attributes:{}}:hm("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=v,b.attributes=w,a?function(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const a=!0===i?"".concat(t,"-").concat(mh.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:up(up({},o),{},{id:a}),children:r}]}]}(b):function(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:a}=e;if(Eh(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};o.style=kh(up(up({},i),{},{"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(b)}function km(e){const{content:t,width:n,height:r,transform:o,title:i,extra:a,watchable:s=!1}=e,l=up(up(up({},a.attributes),i?{title:i}:{}),{},{class:a.classes.join(" ")});s&&(l[Xp]="");const c=up({},a.styles);Eh(o)&&(c.transform=function(e){let{transform:t,width:n=Wp,height:r=Wp,startCentered:o=!1}=e,i="";return i+=o&&Cp?"translate(".concat(t.x/yh-n/2,"em, ").concat(t.y/yh-r/2,"em) "):o?"translate(calc(-50% + ".concat(t.x/yh,"em), calc(-50% + ").concat(t.y/yh,"em)) "):"translate(".concat(t.x/yh,"em, ").concat(t.y/yh,"em) "),i+="scale(".concat(t.size/yh*(t.flipX?-1:1),", ").concat(t.size/yh*(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=kh(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:Em}=Oh;function Sm(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(mh.cssPrefix,"-").concat(uh.GROUP)},children:[{tag:"path",attributes:{class:"".concat(mh.cssPrefix,"-").concat(uh.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(mh.cssPrefix,"-").concat(uh.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const Im={found:!1,width:512,height:512};function _m(e,t){let n=t;return"fa"===t&&null!==mh.styleDefault&&(t=nm()),new Promise(((r,o)=>{if("fa"===n){const n=tm(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&Em[t]&&Em[t][e]){return r(Sm(Em[t][e]))}!function(e,t){Kp||mh.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(up(up({},Im),{},{icon:mh.showMissingIcons&&e&&hm("missingIconAbstract")||{}}))}))}const Am=()=>{},Nm=mh.measurePerformance&&wp&&wp.mark&&wp.measure?wp:{mark:Am,measure:Am},Om='FA "6.7.2"',Rm=e=>{Nm.mark("".concat(Om," ").concat(e," ends")),Nm.measure("".concat(Om," ").concat(e),"".concat(Om," ").concat(e," begins"),"".concat(Om," ").concat(e," ends"))};var Mm=e=>(Nm.mark("".concat(Om," ").concat(e," begins")),()=>Rm(e));const Tm=()=>{};function Pm(e){return"string"==typeof(e.getAttribute?e.getAttribute(Xp):null)}function Dm(e){return bp.createElementNS("http://www.w3.org/2000/svg",e)}function jm(e){return bp.createElement(e)}function Fm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?Dm:jm)}=t;if("string"==typeof e)return bp.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(Fm(e,{ceFn:n}))})),r}const Lm={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(Fm(e),t)})),null===t.getAttribute(Xp)&&mh.keepOriginalSource){let e=bp.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(~xh(t).indexOf(mh.replacementClass))return Lm.replace(e);const r=new RegExp("".concat(mh.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===mh.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=>Ph(e))).join("\n");t.setAttribute(Xp,""),t.innerHTML=o}};function zm(e){e()}function Bm(e,t){const n="function"==typeof t?t:Tm;if(0===e.length)n();else{let t=zm;"async"===mh.mutateApproach&&(t=yp.requestAnimationFrame||zm),t((()=>{const t=!0===mh.autoReplaceSvg?Lm.replace:Lm[mh.autoReplaceSvg]||Lm.replace,r=Mm("mutate");e.map(t),r(),n()}))}}let Vm=!1;function Gm(){Vm=!0}function Wm(){Vm=!1}let Hm=null;function Xm(e){if(!vp)return;if(!mh.observeMutations)return;const{treeCallback:t=Tm,nodeCallback:n=Tm,pseudoElementsCallback:r=Tm,observeMutationsRoot:o=bp}=e;Hm=new vp((e=>{if(Vm)return;const o=nm();wh(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!Pm(e.addedNodes[0])&&(mh.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&mh.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&Pm(e.target)&&~ch.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(Zp):null,n=e.getAttribute?e.getAttribute(Yp):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=im(xh(e.target));e.target.setAttribute(Zp,t||o),n&&e.target.setAttribute(Yp,n)}else(function(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(mh.replacementClass)})(e.target)&&n(e.target)}))})),xp&&Hm.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function $m(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let o=im(xh(e));return o.prefix||(o.prefix=nm()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=function(e,t){return($h[e]||{})[t]}(o.prefix,e.innerText)||Qh(o.prefix,Fh(e.innerText))),!o.iconName&&mh.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function Zm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=$m(e),i=function(e){const t=wh(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 mh.autoA11y&&(n?t["aria-labelledby"]="".concat(mh.replacementClass,"-title-").concat(r||vh()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=fm("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 up({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:bh,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i}},a)}const{styles:Ym}=Oh;function Um(e){const t="nest"===mh.autoReplaceSvg?Zm(e,{styleParser:!1}):Zm(e);return~t.extra.classes.indexOf(sh)?hm("generateLayersText",e,t):hm("generateSvgReplacementMutation",e,t)}function Jm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!xp)return Promise.resolve();const n=bp.documentElement.classList,r=e=>n.add("".concat(Up,"-").concat(e)),o=e=>n.remove("".concat(Up,"-").concat(e)),i=mh.autoFetchSvg?[...Np,...Lp]:Ep.concat(Object.keys(Ym));i.includes("fa")||i.push("fa");const a=[".".concat(sh,":not([").concat(Xp,"])")].concat(i.map((e=>".".concat(e,":not([").concat(Xp,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=wh(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),o("complete");const l=Mm("onTree"),c=s.reduce(((e,t)=>{try{const n=Um(t);n&&e.push(n)}catch(e){Kp||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{Bm(n,(()=>{r("active"),r("complete"),o("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function Km(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Um(e).then((e=>{e&&Bm([e],t)}))}function qm(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:mm(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:mm(o||{})),e(r,up(up({},n),{},{mask:o}))}}const Qm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=bh,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 xm(up({type:"icon"},e),(()=>(pm("beforeDOMElementCreation",{iconDefinition:e,params:t}),mh.autoA11y&&(a?c["aria-labelledby"]="".concat(mh.replacementClass,"-title-").concat(s||vh()):(c["aria-hidden"]="true",c.focusable="false")),Cm({icons:{main:Sm(p),mask:o?Sm(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:up(up({},bh),n),symbol:r,title:a,maskId:i,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var eg={mixout:()=>({icon:qm(Qm)}),hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=Jm,e.nodeCallback=Km,e)}),provides(e){e.i2svg=function(e){const{node:t=bp,callback:n=()=>{}}=e;return Jm(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([_m(n,i),l.iconName?_m(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,Cm({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=kh(i);let s;return a.length>0&&(n.style=a),Eh(o)&&(s=hm("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},tg={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return xm({type:"layer"},(()=>{pm("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(mh.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},ng={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 xm({type:"counter",content:e},(()=>(pm("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,o=up(up(up({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=kh(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(mh.cssPrefix,"-layers-counter"),...r]}}))))}})},rg={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=bh,title:r=null,classes:o=[],attributes:i={},styles:a={}}=t;return xm({type:"text",content:e},(()=>(pm("beforeDOMElementCreation",{content:e,params:t}),km({content:e,transform:up(up({},bh),n),title:r,extra:{attributes:i,styles:a,classes:["".concat(mh.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(Cp){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();i=n.width/t,a=n.height/t}return mh.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,km({content:e.innerHTML,width:i,height:a,transform:r,title:n,extra:o,watchable:!0})])}}};const og=new RegExp('"',"ug"),ig=[1105920,1112319],ag=up(up(up(up({},{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"}}),sg=Object.keys(ag).reduce(((e,t)=>(e[t.toLowerCase()]=ag[t],e)),{}),lg=Object.keys(sg).reduce(((e,t)=>{const n=sg[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function cg(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=wh(e.children).filter((e=>e.getAttribute($p)===t))[0],a=yp.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(lh),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(sg[n]||{})[o]||lg[n]}(s,c);const{value:f,isSecondary:p}=function(e){const t=e.replace(og,""),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>=ig[0]&&n<=ig[1],o=2===t.length&&t[0]===t[1];return{value:Fh(o?t[0]:t),isSecondary:r||o}}(u),h=l[0].startsWith("FontAwesome");let m=Qh(d,f),g=m;if(h){const e=function(e){const t=Yh[e],n=Qh("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(Zp)===d&&i.getAttribute(Yp)===g)r();else{e.setAttribute(n,g),i&&e.removeChild(i);const a={iconName:null,title:null,titleId:null,prefix:null,transform:bh,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[$p]=t,_m(m,d).then((o=>{const i=Cm(up(up({},a),{},{icons:{main:o,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:g,extra:s,watchable:!0})),l=bp.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=i.map((e=>Ph(e))).join("\n"),e.removeAttribute(n),r()})).catch(o)}}else r()}))}function ug(e){return Promise.all([cg(e,"::before"),cg(e,"::after")])}function dg(e){return!(e.parentNode===document.head||~Jp.indexOf(e.tagName.toUpperCase())||e.getAttribute($p)||e.parentNode&&"svg"===e.parentNode.tagName)}function fg(e){if(xp)return new Promise(((t,n)=>{const r=wh(e.querySelectorAll("*")).filter(dg).map(ug),o=Mm("searchPseudoElements");Gm(),Promise.all(r).then((()=>{o(),Wm(),t()})).catch((()=>{o(),Wm(),n()}))}))}var pg={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=fg,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=bp}=e;mh.searchPseudoElements&&fg(t)}}};let hg=!1;var mg={mixout:()=>({dom:{unwatch(){Gm(),hg=!0}}}),hooks:()=>({bootstrap(){Xm(fm("mutationObserverCallbacks",{}))},noAuto(){Hm&&Hm.disconnect()},watch(e){const{observeMutationsRoot:t}=e;hg?Wm():Xm(fm("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const gg=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 yg={mixout:()=>({parse:{transform:e=>gg(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=gg(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:up({},c.outer),children:[{tag:"g",attributes:up({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:up(up({},t.icon.attributes),c.path)}]}]}}}};const bg={x:0,y:0,width:"100%",height:"100%"};function vg(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 wg={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?im(n.split(" ").map((e=>e.trim()))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=nm()),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:up(up({},bg),{},{fill:"white"})},p=l.children?{children:l.children.map(vg)}:{},h={tag:"g",attributes:up({},d.inner),children:[vg(up({tag:l.tag,attributes:up(up({},l.attributes),d.path)},p))]},m={tag:"g",attributes:up({},d.outer),children:[h]},g="mask-".concat(i||vh()),y="clip-".concat(i||vh()),b={tag:"mask",attributes:up(up({},bg),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,m]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(w=u,"g"===w.tag?w.children:[w])},b]};var w;return t.push(v,{tag:"rect",attributes:up({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},bg)}),{children:t,attributes:n}}}},xg={provides(e){let t=!1;yp.matchMedia&&(t=yp.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:up(up({},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=up(up({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:up(up({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:up(up({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:up(up({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:up(up({},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:up(up({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:up(up({},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:up(up({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},Cg={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;lm=e,cm={},Object.keys(um).forEach((e=>{-1===dm.indexOf(e)&&delete um[e]})),lm.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=>{cm[e]||(cm[e]=[]),cm[e].push(t[e])}))}e.provides&&e.provides(um)}))}([Ah,eg,tg,ng,rg,pg,mg,yg,wg,xg,Cg],{mixoutsTo:vm});const kg=vm.config,Eg=vm.parse,Sg=vm.icon;var Ig,_g={exports:{}},Ag={exports:{}},Ng={};var Og,Rg,Mg,Tg,Pg,Dg,jg,Fg,Lg,zg,Bg,Vg,Gg,Wg,Hg,Xg={};
|
|
44
|
-
/** @license React v16.13.1
|
|
45
|
-
* react-is.development.js
|
|
46
|
-
*
|
|
47
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the MIT license found in the
|
|
50
|
-
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/function $g(){return Rg||(Rg=1,"production"===process.env.NODE_ENV?Ag.exports=function(){if(Ig)return Ng;Ig=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,b=e?Symbol.for("react.scope"):60119;function v(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 v(e)===c}return Ng.AsyncMode=l,Ng.ConcurrentMode=c,Ng.ContextConsumer=s,Ng.ContextProvider=a,Ng.Element=t,Ng.ForwardRef=u,Ng.Fragment=r,Ng.Lazy=h,Ng.Memo=p,Ng.Portal=n,Ng.Profiler=i,Ng.StrictMode=o,Ng.Suspense=d,Ng.isAsyncMode=function(e){return w(e)||v(e)===l},Ng.isConcurrentMode=w,Ng.isContextConsumer=function(e){return v(e)===s},Ng.isContextProvider=function(e){return v(e)===a},Ng.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ng.isForwardRef=function(e){return v(e)===u},Ng.isFragment=function(e){return v(e)===r},Ng.isLazy=function(e){return v(e)===h},Ng.isMemo=function(e){return v(e)===p},Ng.isPortal=function(e){return v(e)===n},Ng.isProfiler=function(e){return v(e)===i},Ng.isStrictMode=function(e){return v(e)===o},Ng.isSuspense=function(e){return v(e)===d},Ng.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===b||e.$$typeof===m)},Ng.typeOf=v,Ng}():Ag.exports=(Og||(Og=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,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,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case h:case p:case a:return g;default:return f}}case n:return f}}}var w=l,x=c,C=s,k=a,E=t,S=u,I=r,_=h,A=p,N=n,O=i,R=o,M=d,T=!1;function P(e){return v(e)===c}Xg.AsyncMode=w,Xg.ConcurrentMode=x,Xg.ContextConsumer=C,Xg.ContextProvider=k,Xg.Element=E,Xg.ForwardRef=S,Xg.Fragment=I,Xg.Lazy=_,Xg.Memo=A,Xg.Portal=N,Xg.Profiler=O,Xg.StrictMode=R,Xg.Suspense=M,Xg.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(e)||v(e)===l},Xg.isConcurrentMode=P,Xg.isContextConsumer=function(e){return v(e)===s},Xg.isContextProvider=function(e){return v(e)===a},Xg.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Xg.isForwardRef=function(e){return v(e)===u},Xg.isFragment=function(e){return v(e)===r},Xg.isLazy=function(e){return v(e)===h},Xg.isMemo=function(e){return v(e)===p},Xg.isPortal=function(e){return v(e)===n},Xg.isProfiler=function(e){return v(e)===i},Xg.isStrictMode=function(e){return v(e)===o},Xg.isSuspense=function(e){return v(e)===d},Xg.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===b||e.$$typeof===m)},Xg.typeOf=v}()),Xg)),Ag.exports}
|
|
16
|
+
function zh(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 Vh(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 Gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vh(Object(n),!0).forEach((function(t){zh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Wh=()=>{};let Hh={},Xh={},Yh=null,$h={mark:Wh,measure:Wh};try{"undefined"!=typeof window&&(Hh=window),"undefined"!=typeof document&&(Xh=document),"undefined"!=typeof MutationObserver&&(Yh=MutationObserver),"undefined"!=typeof performance&&($h=performance)}catch(e){}const{userAgent:Zh=""}=Hh.navigator||{},Uh=Hh,Jh=Xh,Kh=Yh,qh=$h;Uh.document;const Qh=!!Jh.documentElement&&!!Jh.head&&"function"==typeof Jh.addEventListener&&"function"==typeof Jh.createElement,em=~Zh.indexOf("MSIE")||~Zh.indexOf("Trident/");var tm={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"}},nm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],rm="classic",om="duotone",im=[rm,om,"sharp","sharp-duotone"],am=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}]]),sm=["fak","fa-kit","fakd","fa-kit-duotone"],lm={fak:"kit","fa-kit":"kit"},cm={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},um=["fak","fakd"],dm={kit:"fak"},fm={"kit-duotone":"fakd"},pm={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},hm=["fak","fa-kit","fakd","fa-kit-duotone"],mm={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"}},gm=["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"],ym=[1,2,3,4,5,6,7,8,9,10],bm=ym.concat([11,12,13,14,15,16,17,18,19,20]),vm=[...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",pm.GROUP,pm.SWAP_OPACITY,pm.PRIMARY,pm.SECONDARY].concat(ym.map((e=>"".concat(e,"x")))).concat(bm.map((e=>"w-".concat(e))));const wm="___FONT_AWESOME___",xm=16,Em="svg-inline--fa",Cm="data-fa-i2svg",km="data-fa-pseudo-element",Sm="data-prefix",_m="data-icon",Im="fontawesome-i2svg",Am=["HTML","HEAD","STYLE","SCRIPT"],Nm=(()=>{try{return"production"===process.env.NODE_ENV}catch(e){return!1}})();function Rm(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[rm]})}const Om=Gh({},tm);Om[rm]=Gh(Gh(Gh(Gh({},{"fa-duotone":"duotone"}),tm[rm]),lm),cm);const Tm=Rm(Om),Mm=Gh({},{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"}});Mm[rm]=Gh(Gh(Gh(Gh({},{duotone:"fad"}),Mm[rm]),dm),fm);const Pm=Rm(Mm),Dm=Gh({},mm);Dm[rm]=Gh(Gh({},Dm[rm]),{fak:"fa-kit"});const jm=Rm(Dm),Bm=Gh({},{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"}});Bm[rm]=Gh(Gh({},Bm[rm]),{"fa-kit":"fak"}),Rm(Bm);const Lm=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Fm="fa-layers-text",zm=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;Rm(Gh({},{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 Vm=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Gm={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Wm=["kit",...vm],Hm=Uh.FontAwesomeConfig||{};if(Jh&&"function"==typeof Jh.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=Jh.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(Hm[n]=r)}))}const Xm={styleDefault:"solid",familyDefault:rm,cssPrefix:"fa",replacementClass:Em,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Hm.familyPrefix&&(Hm.cssPrefix=Hm.familyPrefix);const Ym=Gh(Gh({},Xm),Hm);Ym.autoReplaceSvg||(Ym.observeMutations=!1);const $m={};Object.keys(Xm).forEach((e=>{Object.defineProperty($m,e,{enumerable:!0,set:function(t){Ym[e]=t,Zm.forEach((e=>e($m)))},get:function(){return Ym[e]}})})),Object.defineProperty($m,"familyPrefix",{enumerable:!0,set:function(e){Ym.cssPrefix=e,Zm.forEach((e=>e($m)))},get:function(){return Ym.cssPrefix}}),Uh.FontAwesomeConfig=$m;const Zm=[];const Um=xm,Jm={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Km(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function qm(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Qm(e){return e.classList?qm(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function eg(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function tg(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function ng(e){return e.size!==Jm.size||e.x!==Jm.x||e.y!==Jm.y||e.rotate!==Jm.rotate||e.flipX||e.flipY}function rg(){const e="fa",t=Em,n=$m.cssPrefix,r=$m.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 og=!1;function ig(){$m.autoAddCss&&!og&&(!function(e){if(!e||!Qh)return;const t=Jh.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Jh.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)}Jh.head.insertBefore(t,r)}(rg()),og=!0)}var ag={mixout:()=>({dom:{css:rg,insertCss:ig}}),hooks:()=>({beforeDOMElementCreation(){ig()},beforeI2svg(){ig()}})};const sg=Uh||{};sg[wm]||(sg[wm]={}),sg[wm].styles||(sg[wm].styles={}),sg[wm].hooks||(sg[wm].hooks={}),sg[wm].shims||(sg[wm].shims=[]);var lg=sg[wm];const cg=[],ug=function(){Jh.removeEventListener("DOMContentLoaded",ug),dg=1,cg.map((e=>e()))};let dg=!1;function fg(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?eg(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(eg(e[n]),'" ')),"").trim()}(n),">").concat(r.map(fg).join(""),"</").concat(t,">")}function pg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Qh&&(dg=(Jh.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Jh.readyState),dg||Jh.addEventListener("DOMContentLoaded",ug));var hg=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 mg(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 gg(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 yg(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,o=gg(t);"function"!=typeof lg.hooks.addPack||r?lg.styles[e]=Gh(Gh({},lg.styles[e]||{}),o):lg.hooks.addPack(e,gg(t)),"fas"===e&&yg("fa",t)}const{styles:bg,shims:vg}=lg,wg=Object.keys(jm),xg=wg.reduce(((e,t)=>(e[t]=Object.keys(jm[t]),e)),{});let Eg=null,Cg={},kg={},Sg={},_g={},Ig={};function Ag(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r!==e||""===o||function(e){return~Wm.indexOf(e)}(o)?null:o}const Ng=()=>{const e=e=>hg(bg,((t,n,r)=>(t[r]=hg(n,e,{}),t)),{});Cg=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})),kg=e(((e,t,n)=>{if(e[n]=n,t[2]){t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n}))}return e})),Ig=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in bg||$m.autoFetchSvg,n=hg(vg,((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:{}});Sg=n.names,_g=n.unicodes,Eg=Dg($m.styleDefault,{family:$m.familyDefault})};var Rg;function Og(e,t){return(Cg[e]||{})[t]}function Tg(e,t){return(Ig[e]||{})[t]}function Mg(e){return Sg[e]||{prefix:null,iconName:null}}function Pg(){return Eg}Rg=e=>{Eg=Dg(e.styleDefault,{family:$m.familyDefault})},Zm.push(Rg),Ng();function Dg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=rm}=t,r=Tm[n][e];if(n===om&&!e)return"fad";const o=Pm[n][e]||Pm[n][r],i=e in lg.styles?e:null;return o||i||null}function jg(e){return e.sort().filter(((e,t,n)=>n.indexOf(e)===t))}function Bg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=gm.concat(hm),i=jg(e.filter((e=>o.includes(e)))),a=jg(e.filter((e=>!gm.includes(e)))),s=i.filter((e=>(r=e,!nm.includes(e)))),[l=null]=s,c=function(e){let t=rm;const n=wg.reduce(((e,t)=>(e[t]="".concat($m.cssPrefix,"-").concat(t),e)),{});return im.forEach((r=>{(e.includes(n[r])||e.some((e=>xg[r].includes(e))))&&(t=r)})),t}(i),u=Gh(Gh({},function(e){let t=[],n=null;return e.forEach((e=>{const r=Ag($m.cssPrefix,e);r?n=r:e&&t.push(e)})),{iconName:n,rest:t}}(a)),{},{prefix:Dg(l,{family:c})});return Gh(Gh(Gh({},u),function(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:a={}}=e,s=n===om,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&&Lg.includes(n)){if(Object.keys(i).find((e=>Fg.includes(e)))||a.autoFetchSvg){const e=am.get(n).defaultShortPrefixId;r.prefix=e,r.iconName=Tg(r.prefix,r.iconName)||r.iconName}}"fa"!==r.prefix&&"fa"!==o||(r.prefix=Pg()||"fas");return r}({values:e,family:c,styles:bg,config:$m,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?Mg(o):{},a=Tg(r,o);o=i.iconName||a||o,r=i.prefix||r,"far"!==r||bg.far||!bg.fas||$m.autoFetchSvg||(r="fas");return{prefix:r,iconName:o}}(n,r,u))}const Lg=im.filter((e=>e!==rm||e!==om)),Fg=Object.keys(mm).filter((e=>e!==rm)).map((e=>Object.keys(mm[e]))).flat();let zg=[],Vg={};const Gg={},Wg=Object.keys(Gg);function Hg(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(Vg[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function Xg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Vg[e]||[]).forEach((e=>{e.apply(null,n)}))}function Yg(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Gg[e]?Gg[e].apply(null,t):void 0}function $g(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Pg();if(t)return t=Tg(n,t)||t,pg(Zg.definitions,n,t)||pg(lg.styles,n,t)}const Zg=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]=Gh(Gh({},this.definitions[e]||{}),r[e]),yg(e,r[e]);const t=jm[rm][e];t&&yg(t,r[e]),Ng()}))}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}},Ug={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Qh?(Xg("beforeI2svg",e),Yg("pseudoElements2svg",e),Yg("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===$m.autoReplaceSvg&&($m.autoReplaceSvg=!0),$m.observeMutations=!0,n=()=>{qg({autoReplaceSvgRoot:t}),Xg("watch",e)},Qh&&(dg?setTimeout(n,0):cg.push(n))}},Jg={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Tg(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=Dg(e[0]);return{prefix:n,iconName:Tg(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat($m.cssPrefix,"-"))>-1||e.match(Lm))){const t=Bg(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Pg(),iconName:Tg(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Pg();return{prefix:t,iconName:Tg(t,e)||e}}}},Kg={noAuto:()=>{$m.autoReplaceSvg=!1,$m.observeMutations=!1,Xg("noAuto")},config:$m,dom:Ug,parse:Jg,library:Zg,findIconDefinition:$g,toHtml:fg},qg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=Jh}=e;(Object.keys(lg.styles).length>0||$m.autoFetchSvg)&&Qh&&$m.autoReplaceSvg&&Kg.dom.i2svg({node:t})};function Qg(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>fg(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!Qh)return;const t=Jh.createElement("div");return t.innerHTML=e.html,t.children}}),e}function ey(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=um.includes(r),m=[$m.replacementClass,o?"".concat($m.cssPrefix,"-").concat(o):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let g={children:[],attributes:Gh(Gh({},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[Cm]=""),s&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(c||Km())},children:[s]}),delete g.attributes.title);const b=Gh(Gh({},g),{},{prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:a,styles:Gh(Gh({},y),u.styles)}),{children:v,attributes:w}=n.found&&t.found?Yg("generateAbstractMask",b)||{children:[],attributes:{}}:Yg("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=v,b.attributes=w,a?function(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const a=!0===i?"".concat(t,"-").concat($m.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Gh(Gh({},o),{},{id:a}),children:r}]}]}(b):function(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:a}=e;if(ng(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};o.style=tg(Gh(Gh({},i),{},{"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(b)}function ty(e){const{content:t,width:n,height:r,transform:o,title:i,extra:a,watchable:s=!1}=e,l=Gh(Gh(Gh({},a.attributes),i?{title:i}:{}),{},{class:a.classes.join(" ")});s&&(l[Cm]="");const c=Gh({},a.styles);ng(o)&&(c.transform=function(e){let{transform:t,width:n=xm,height:r=xm,startCentered:o=!1}=e,i="";return i+=o&&em?"translate(".concat(t.x/Um-n/2,"em, ").concat(t.y/Um-r/2,"em) "):o?"translate(calc(-50% + ".concat(t.x/Um,"em), calc(-50% + ").concat(t.y/Um,"em)) "):"translate(".concat(t.x/Um,"em, ").concat(t.y/Um,"em) "),i+="scale(".concat(t.size/Um*(t.flipX?-1:1),", ").concat(t.size/Um*(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=tg(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:ny}=lg;function ry(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($m.cssPrefix,"-").concat(Gm.GROUP)},children:[{tag:"path",attributes:{class:"".concat($m.cssPrefix,"-").concat(Gm.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat($m.cssPrefix,"-").concat(Gm.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const oy={found:!1,width:512,height:512};function iy(e,t){let n=t;return"fa"===t&&null!==$m.styleDefault&&(t=Pg()),new Promise(((r,o)=>{if("fa"===n){const n=Mg(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&ny[t]&&ny[t][e]){return r(ry(ny[t][e]))}!function(e,t){Nm||$m.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Gh(Gh({},oy),{},{icon:$m.showMissingIcons&&e&&Yg("missingIconAbstract")||{}}))}))}const ay=()=>{},sy=$m.measurePerformance&&qh&&qh.mark&&qh.measure?qh:{mark:ay,measure:ay},ly='FA "6.7.2"',cy=e=>{sy.mark("".concat(ly," ").concat(e," ends")),sy.measure("".concat(ly," ").concat(e),"".concat(ly," ").concat(e," begins"),"".concat(ly," ").concat(e," ends"))};var uy=e=>(sy.mark("".concat(ly," ").concat(e," begins")),()=>cy(e));const dy=()=>{};function fy(e){return"string"==typeof(e.getAttribute?e.getAttribute(Cm):null)}function py(e){return Jh.createElementNS("http://www.w3.org/2000/svg",e)}function hy(e){return Jh.createElement(e)}function my(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?py:hy)}=t;if("string"==typeof e)return Jh.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(my(e,{ceFn:n}))})),r}const gy={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(my(e),t)})),null===t.getAttribute(Cm)&&$m.keepOriginalSource){let e=Jh.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(~Qm(t).indexOf($m.replacementClass))return gy.replace(e);const r=new RegExp("".concat($m.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===$m.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=>fg(e))).join("\n");t.setAttribute(Cm,""),t.innerHTML=o}};function yy(e){e()}function by(e,t){const n="function"==typeof t?t:dy;if(0===e.length)n();else{let t=yy;"async"===$m.mutateApproach&&(t=Uh.requestAnimationFrame||yy),t((()=>{const t=!0===$m.autoReplaceSvg?gy.replace:gy[$m.autoReplaceSvg]||gy.replace,r=uy("mutate");e.map(t),r(),n()}))}}let vy=!1;function wy(){vy=!0}function xy(){vy=!1}let Ey=null;function Cy(e){if(!Kh)return;if(!$m.observeMutations)return;const{treeCallback:t=dy,nodeCallback:n=dy,pseudoElementsCallback:r=dy,observeMutationsRoot:o=Jh}=e;Ey=new Kh((e=>{if(vy)return;const o=Pg();qm(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!fy(e.addedNodes[0])&&($m.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&$m.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&fy(e.target)&&~Vm.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(Sm):null,n=e.getAttribute?e.getAttribute(_m):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=Bg(Qm(e.target));e.target.setAttribute(Sm,t||o),n&&e.target.setAttribute(_m,n)}else(function(e){return e&&e.classList&&e.classList.contains&&e.classList.contains($m.replacementClass)})(e.target)&&n(e.target)}))})),Qh&&Ey.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function ky(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let o=Bg(Qm(e));return o.prefix||(o.prefix=Pg()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=function(e,t){return(kg[e]||{})[t]}(o.prefix,e.innerText)||Og(o.prefix,mg(e.innerText))),!o.iconName&&$m.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function Sy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=ky(e),i=function(e){const t=qm(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 $m.autoA11y&&(n?t["aria-labelledby"]="".concat($m.replacementClass,"-title-").concat(r||Km()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=Hg("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 Gh({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Jm,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i}},a)}const{styles:_y}=lg;function Iy(e){const t="nest"===$m.autoReplaceSvg?Sy(e,{styleParser:!1}):Sy(e);return~t.extra.classes.indexOf(Fm)?Yg("generateLayersText",e,t):Yg("generateSvgReplacementMutation",e,t)}function Ay(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Qh)return Promise.resolve();const n=Jh.documentElement.classList,r=e=>n.add("".concat(Im,"-").concat(e)),o=e=>n.remove("".concat(Im,"-").concat(e)),i=$m.autoFetchSvg?[...sm,...gm]:nm.concat(Object.keys(_y));i.includes("fa")||i.push("fa");const a=[".".concat(Fm,":not([").concat(Cm,"])")].concat(i.map((e=>".".concat(e,":not([").concat(Cm,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=qm(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),o("complete");const l=uy("onTree"),c=s.reduce(((e,t)=>{try{const n=Iy(t);n&&e.push(n)}catch(e){Nm||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{by(n,(()=>{r("active"),r("complete"),o("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function Ny(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Iy(e).then((e=>{e&&by([e],t)}))}function Ry(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:$g(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:$g(o||{})),e(r,Gh(Gh({},n),{},{mask:o}))}}const Oy=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Jm,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 Qg(Gh({type:"icon"},e),(()=>(Xg("beforeDOMElementCreation",{iconDefinition:e,params:t}),$m.autoA11y&&(a?c["aria-labelledby"]="".concat($m.replacementClass,"-title-").concat(s||Km()):(c["aria-hidden"]="true",c.focusable="false")),ey({icons:{main:ry(p),mask:o?ry(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:Gh(Gh({},Jm),n),symbol:r,title:a,maskId:i,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var Ty={mixout:()=>({icon:Ry(Oy)}),hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=Ay,e.nodeCallback=Ny,e)}),provides(e){e.i2svg=function(e){const{node:t=Jh,callback:n=()=>{}}=e;return Ay(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([iy(n,i),l.iconName?iy(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,ey({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=tg(i);let s;return a.length>0&&(n.style=a),ng(o)&&(s=Yg("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},My={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return Qg({type:"layer"},(()=>{Xg("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($m.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},Py={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 Qg({type:"counter",content:e},(()=>(Xg("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,o=Gh(Gh(Gh({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=tg(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($m.cssPrefix,"-layers-counter"),...r]}}))))}})},Dy={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Jm,title:r=null,classes:o=[],attributes:i={},styles:a={}}=t;return Qg({type:"text",content:e},(()=>(Xg("beforeDOMElementCreation",{content:e,params:t}),ty({content:e,transform:Gh(Gh({},Jm),n),title:r,extra:{attributes:i,styles:a,classes:["".concat($m.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(em){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();i=n.width/t,a=n.height/t}return $m.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,ty({content:e.innerHTML,width:i,height:a,transform:r,title:n,extra:o,watchable:!0})])}}};const jy=new RegExp('"',"ug"),By=[1105920,1112319],Ly=Gh(Gh(Gh(Gh({},{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"}}),Fy=Object.keys(Ly).reduce(((e,t)=>(e[t.toLowerCase()]=Ly[t],e)),{}),zy=Object.keys(Fy).reduce(((e,t)=>{const n=Fy[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function Vy(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=qm(e.children).filter((e=>e.getAttribute(km)===t))[0],a=Uh.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(zm),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(Fy[n]||{})[o]||zy[n]}(s,c);const{value:f,isSecondary:p}=function(e){const t=e.replace(jy,""),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>=By[0]&&n<=By[1],o=2===t.length&&t[0]===t[1];return{value:mg(o?t[0]:t),isSecondary:r||o}}(u),h=l[0].startsWith("FontAwesome");let m=Og(d,f),g=m;if(h){const e=function(e){const t=_g[e],n=Og("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(Sm)===d&&i.getAttribute(_m)===g)r();else{e.setAttribute(n,g),i&&e.removeChild(i);const a={iconName:null,title:null,titleId:null,prefix:null,transform:Jm,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[km]=t,iy(m,d).then((o=>{const i=ey(Gh(Gh({},a),{},{icons:{main:o,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:g,extra:s,watchable:!0})),l=Jh.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=i.map((e=>fg(e))).join("\n"),e.removeAttribute(n),r()})).catch(o)}}else r()}))}function Gy(e){return Promise.all([Vy(e,"::before"),Vy(e,"::after")])}function Wy(e){return!(e.parentNode===document.head||~Am.indexOf(e.tagName.toUpperCase())||e.getAttribute(km)||e.parentNode&&"svg"===e.parentNode.tagName)}function Hy(e){if(Qh)return new Promise(((t,n)=>{const r=qm(e.querySelectorAll("*")).filter(Wy).map(Gy),o=uy("searchPseudoElements");wy(),Promise.all(r).then((()=>{o(),xy(),t()})).catch((()=>{o(),xy(),n()}))}))}var Xy={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Hy,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=Jh}=e;$m.searchPseudoElements&&Hy(t)}}};let Yy=!1;var $y={mixout:()=>({dom:{unwatch(){wy(),Yy=!0}}}),hooks:()=>({bootstrap(){Cy(Hg("mutationObserverCallbacks",{}))},noAuto(){Ey&&Ey.disconnect()},watch(e){const{observeMutationsRoot:t}=e;Yy?xy():Cy(Hg("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const Zy=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 Uy={mixout:()=>({parse:{transform:e=>Zy(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Zy(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:Gh({},c.outer),children:[{tag:"g",attributes:Gh({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Gh(Gh({},t.icon.attributes),c.path)}]}]}}}};const Jy={x:0,y:0,width:"100%",height:"100%"};function Ky(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 qy={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Bg(n.split(" ").map((e=>e.trim()))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Pg()),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:Gh(Gh({},Jy),{},{fill:"white"})},p=l.children?{children:l.children.map(Ky)}:{},h={tag:"g",attributes:Gh({},d.inner),children:[Ky(Gh({tag:l.tag,attributes:Gh(Gh({},l.attributes),d.path)},p))]},m={tag:"g",attributes:Gh({},d.outer),children:[h]},g="mask-".concat(i||Km()),y="clip-".concat(i||Km()),b={tag:"mask",attributes:Gh(Gh({},Jy),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,m]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(w=u,"g"===w.tag?w.children:[w])},b]};var w;return t.push(v,{tag:"rect",attributes:Gh({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},Jy)}),{children:t,attributes:n}}}},Qy={provides(e){let t=!1;Uh.matchMedia&&(t=Uh.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:Gh(Gh({},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=Gh(Gh({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:Gh(Gh({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:Gh(Gh({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Gh(Gh({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:Gh(Gh({},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:Gh(Gh({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Gh(Gh({},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:Gh(Gh({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},eb={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;zg=e,Vg={},Object.keys(Gg).forEach((e=>{-1===Wg.indexOf(e)&&delete Gg[e]})),zg.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=>{Vg[e]||(Vg[e]=[]),Vg[e].push(t[e])}))}e.provides&&e.provides(Gg)}))}([ag,Ty,My,Py,Dy,Xy,$y,Uy,qy,Qy,eb],{mixoutsTo:Kg});const tb=Kg.config,nb=Kg.parse,rb=Kg.icon;var ob,ib={exports:{}},ab={exports:{}},sb={};var lb,cb,ub,db,fb,pb,hb,mb,gb,yb,bb,vb,wb,xb,Eb,Cb={};function kb(){return cb||(cb=1,"production"===P.env.NODE_ENV?ab.exports=function(){if(ob)return sb;ob=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,b=e?Symbol.for("react.scope"):60119;function v(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 v(e)===c}return sb.AsyncMode=l,sb.ConcurrentMode=c,sb.ContextConsumer=s,sb.ContextProvider=a,sb.Element=t,sb.ForwardRef=u,sb.Fragment=r,sb.Lazy=h,sb.Memo=p,sb.Portal=n,sb.Profiler=i,sb.StrictMode=o,sb.Suspense=d,sb.isAsyncMode=function(e){return w(e)||v(e)===l},sb.isConcurrentMode=w,sb.isContextConsumer=function(e){return v(e)===s},sb.isContextProvider=function(e){return v(e)===a},sb.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},sb.isForwardRef=function(e){return v(e)===u},sb.isFragment=function(e){return v(e)===r},sb.isLazy=function(e){return v(e)===h},sb.isMemo=function(e){return v(e)===p},sb.isPortal=function(e){return v(e)===n},sb.isProfiler=function(e){return v(e)===i},sb.isStrictMode=function(e){return v(e)===o},sb.isSuspense=function(e){return v(e)===d},sb.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===b||e.$$typeof===m)},sb.typeOf=v,sb}():ab.exports=(lb||(lb=1,"production"!==P.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,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,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case h:case p:case a:return g;default:return f}}case n:return f}}}var w=l,x=c,E=s,C=a,k=t,S=u,_=r,I=h,A=p,N=n,R=i,O=o,T=d,M=!1;function P(e){return v(e)===c}Cb.AsyncMode=w,Cb.ConcurrentMode=x,Cb.ContextConsumer=E,Cb.ContextProvider=C,Cb.Element=k,Cb.ForwardRef=S,Cb.Fragment=_,Cb.Lazy=I,Cb.Memo=A,Cb.Portal=N,Cb.Profiler=R,Cb.StrictMode=O,Cb.Suspense=T,Cb.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(e)||v(e)===l},Cb.isConcurrentMode=P,Cb.isContextConsumer=function(e){return v(e)===s},Cb.isContextProvider=function(e){return v(e)===a},Cb.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Cb.isForwardRef=function(e){return v(e)===u},Cb.isFragment=function(e){return v(e)===r},Cb.isLazy=function(e){return v(e)===h},Cb.isMemo=function(e){return v(e)===p},Cb.isPortal=function(e){return v(e)===n},Cb.isProfiler=function(e){return v(e)===i},Cb.isStrictMode=function(e){return v(e)===o},Cb.isSuspense=function(e){return v(e)===d},Cb.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===b||e.$$typeof===m)},Cb.typeOf=v}()),Cb)),ab.exports}
|
|
52
17
|
/*
|
|
53
18
|
object-assign
|
|
54
19
|
(c) Sindre Sorhus
|
|
55
20
|
@license MIT
|
|
56
|
-
*/function Zg(){if(Tg)return Mg;Tg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Mg=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},Mg}function Yg(){if(Dg)return Pg;Dg=1;return Pg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ug(){return Fg?jg:(Fg=1,jg=Function.call.bind(Object.prototype.hasOwnProperty))}function Jg(){if(zg)return Lg;zg=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Yg(),n={},r=Ug();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var u;try{if("function"!=typeof o[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var f=l?l():"";e("Failed "+a+" type: "+u.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Lg=o}function Kg(){if(Vg)return Bg;Vg=1;var e=$g(),t=Zg(),n=Yg(),r=Ug(),o=Jg(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Bg=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator;var u="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(a),arrayOf:function(e){return h((function(t,r,o,i,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new p("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,o,i,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,r,o){var i=e[t];return s(i)?null:new p("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new p("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||u;return new p("Invalid "+o+" `"+i+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,r,o){return y(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,o,i,a,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=b(l);if("object"!==c)return new p("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,i,a,s+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return h((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new p("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),a}return h((function(t,o,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new p("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,o,i,a){var s=t[r],l=b(s);if("object"!==l)return new p("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(o,i,a,c,v(u));var d=u(s,c,o,i,a+"."+c,n);if(d)return d}return null}))},exact:function(e){return h((function(o,i,a,s,l){var c=o[i],u=b(c);if("object"!==u)return new p("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var f in d){var h=e[f];if(r(e,f)&&"function"!=typeof h)return g(a,s,l,f,v(h));if(!h)return new p("Invalid "+s+" `"+l+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(c,f,a,s,l+"."+f,n);if(m)return m}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,c,d,f,h){if(c=c||u,f=f||s,h!==n){if(l){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new p("The "+d+" `"+f+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+d+" `"+f+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,f)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return h((function(t,n,r,o,i,a){var s=t[n];return b(s)!==e?new p("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},Bg}function qg(){if(Wg)return Gg;Wg=1;var e=Yg();function t(){}function n(){}return n.resetWarningCache=t,Gg=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},Gg}function Qg(){if(Hg)return _g.exports;if(Hg=1,"production"!==process.env.NODE_ENV){var e=$g();_g.exports=Kg()(e.isElement,true)}else _g.exports=qg()();return _g.exports}var ey=Qg(),ty=l(ey);function ny(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 ry(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ny(Object(n),!0).forEach((function(t){iy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ny(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oy(e){return oy="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},oy(e)}function iy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ay(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 sy(e){return function(e){if(Array.isArray(e))return ly(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 ly(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 ly(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 ly(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 cy(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 uy=["style"];var dy=!1;try{dy="production"===process.env.NODE_ENV}catch(e){}function fy(e){return e&&"object"===oy(e)&&e.prefix&&e.iconName&&e.icon?e:Eg.icon?Eg.icon(e):null===e?null:e&&"object"===oy(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 py(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?iy({},e,t):{}}var hy={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},my=e.forwardRef((function(e,t){var n=ry(ry({},hy),e),r=n.icon,o=n.mask,i=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,u=fy(r),d=py("classes",[].concat(sy(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,b=e.rotation,v=e.pull,w=(iy(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),iy(t,"fa-rotate-".concat(b),null!=b&&0!==b),iy(t,"fa-pull-".concat(v),null!=v),iy(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)),sy((a||"").split(" ")))),f=py("transform","string"==typeof n.transform?Eg.transform(n.transform):n.transform),p=py("mask",fy(o)),h=Sg(u,ry(ry(ry(ry({},d),f),p),{},{symbol:i,title:s,titleId:l,maskId:c}));if(!h)return function(){var e;!dy&&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){hy.hasOwnProperty(e)||(g[e]=n[e])})),gy(m[0],g)}));my.displayName="FontAwesomeIcon",my.propTypes={beat:ty.bool,border:ty.bool,beatFade:ty.bool,bounce:ty.bool,className:ty.string,fade:ty.bool,flash:ty.bool,mask:ty.oneOfType([ty.object,ty.array,ty.string]),maskId:ty.string,fixedWidth:ty.bool,inverse:ty.bool,flip:ty.oneOf([!0,!1,"horizontal","vertical","both"]),icon:ty.oneOfType([ty.object,ty.array,ty.string]),listItem:ty.bool,pull:ty.oneOf(["right","left"]),pulse:ty.bool,rotation:ty.oneOf([0,90,180,270]),shake:ty.bool,size:ty.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ty.bool,spinPulse:ty.bool,spinReverse:ty.bool,symbol:ty.oneOfType([ty.bool,ty.string]),title:ty.string,titleId:ty.string,transform:ty.oneOfType([ty.string,ty.object]),swapOpacity:ty.bool};var gy=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=cy(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[cy(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=ay(r,uy);return i.attrs.style=ry(ry({},i.attrs.style),s),t.apply(void 0,[n.tag,ry(ry({},i.attrs),l)].concat(sy(o)))}.bind(null,e.createElement);
|
|
21
|
+
*/function Sb(){if(db)return ub;db=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return ub=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},ub}function _b(){if(pb)return fb;pb=1;return fb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ib(){return mb?hb:(mb=1,hb=Function.call.bind(Object.prototype.hasOwnProperty))}function Ab(){if(yb)return gb;yb=1;var e=function(){};if("production"!==P.env.NODE_ENV){var t=_b(),n={},r=Ib();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,l){if("production"!==P.env.NODE_ENV)for(var c in o)if(r(o,c)){var u;try{if("function"!=typeof o[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var f=l?l():"";e("Failed "+a+" type: "+u.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==P.env.NODE_ENV&&(n={})},gb=o}function Nb(){if(vb)return bb;vb=1;var e=kb(),t=Sb(),n=_b(),r=Ib(),o=Ab(),i=function(){};function a(){return null}return"production"!==P.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),bb=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator;var u="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(a),arrayOf:function(e){return h((function(t,r,o,i,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new p("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,o,i,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,r,o){var i=e[t];return s(i)?null:new p("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new p("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||u;return new p("Invalid "+o+" `"+i+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,r,o){return y(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,o,i,a,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=b(l);if("object"!==c)return new p("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,i,a,s+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==P.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return h((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new p("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==P.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),a}return h((function(t,o,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new p("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,o,i,a){var s=t[r],l=b(s);if("object"!==l)return new p("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(o,i,a,c,v(u));var d=u(s,c,o,i,a+"."+c,n);if(d)return d}return null}))},exact:function(e){return h((function(o,i,a,s,l){var c=o[i],u=b(c);if("object"!==u)return new p("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var f in d){var h=e[f];if(r(e,f)&&"function"!=typeof h)return g(a,s,l,f,v(h));if(!h)return new p("Invalid "+s+" `"+l+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(c,f,a,s,l+"."+f,n);if(m)return m}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==P.env.NODE_ENV)var t={},r=0;function o(o,a,s,c,d,f,h){if(c=c||u,f=f||s,h!==n){if(l){var m=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 m.name="Invariant Violation",m}if("production"!==P.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new p("The "+d+" `"+f+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+d+" `"+f+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,f)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return h((function(t,n,r,o,i,a){var s=t[n];return b(s)!==e?new p("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},bb}function Rb(){if(xb)return wb;xb=1;var e=_b();function t(){}function n(){}return n.resetWarningCache=t,wb=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},wb}function Ob(){if(Eb)return ib.exports;if(Eb=1,"production"!==P.env.NODE_ENV){var e=kb();ib.exports=Nb()(e.isElement,true)}else ib.exports=Rb()();return ib.exports}var Tb=Ob(),Mb=l(Tb);function Pb(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 Db(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pb(Object(n),!0).forEach((function(t){Bb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jb(e){return jb="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},jb(e)}function Bb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lb(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 Fb(e){return function(e){if(Array.isArray(e))return zb(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 zb(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 zb(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 zb(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 Vb(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 Gb=["style"];var Wb=!1;try{Wb="production"===P.env.NODE_ENV}catch(e){}function Hb(e){return e&&"object"===jb(e)&&e.prefix&&e.iconName&&e.icon?e:nb.icon?nb.icon(e):null===e?null:e&&"object"===jb(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 Xb(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Bb({},e,t):{}}var Yb={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},$b=e.forwardRef((function(e,t){var n=Db(Db({},Yb),e),r=n.icon,o=n.mask,i=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,u=Hb(r),d=Xb("classes",[].concat(Fb(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,b=e.rotation,v=e.pull,w=(Bb(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),Bb(t,"fa-rotate-".concat(b),null!=b&&0!==b),Bb(t,"fa-pull-".concat(v),null!=v),Bb(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)),Fb((a||"").split(" ")))),f=Xb("transform","string"==typeof n.transform?nb.transform(n.transform):n.transform),p=Xb("mask",Hb(o)),h=rb(u,Db(Db(Db(Db({},d),f),p),{},{symbol:i,title:s,titleId:l,maskId:c}));if(!h)return function(){var e;!Wb&&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){Yb.hasOwnProperty(e)||(g[e]=n[e])})),Zb(m[0],g)}));$b.displayName="FontAwesomeIcon",$b.propTypes={beat:Mb.bool,border:Mb.bool,beatFade:Mb.bool,bounce:Mb.bool,className:Mb.string,fade:Mb.bool,flash:Mb.bool,mask:Mb.oneOfType([Mb.object,Mb.array,Mb.string]),maskId:Mb.string,fixedWidth:Mb.bool,inverse:Mb.bool,flip:Mb.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Mb.oneOfType([Mb.object,Mb.array,Mb.string]),listItem:Mb.bool,pull:Mb.oneOf(["right","left"]),pulse:Mb.bool,rotation:Mb.oneOf([0,90,180,270]),shake:Mb.bool,size:Mb.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Mb.bool,spinPulse:Mb.bool,spinReverse:Mb.bool,symbol:Mb.oneOfType([Mb.bool,Mb.string]),title:Mb.string,titleId:Mb.string,transform:Mb.oneOfType([Mb.string,Mb.object]),swapOpacity:Mb.bool};var Zb=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=Vb(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[Vb(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=Lb(r,Gb);return i.attrs.style=Db(Db({},i.attrs.style),s),t.apply(void 0,[n.tag,Db(Db({},i.attrs),l)].concat(Fb(o)))}.bind(null,e.createElement);
|
|
57
22
|
/*!
|
|
58
23
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
59
24
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
60
25
|
* Copyright 2024 Fonticons, Inc.
|
|
61
|
-
*/const yy={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"]},by={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"]},vy={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"]},wy={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"]},xy={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"]},Cy={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"]},ky={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"]},Ey={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"]},Sy={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"]},Iy={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"]},_y={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"]},Ay={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"]},Ny={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"]},Oy={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"]},Ry={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"]};kg.autoAddCss=!1;const My=e=>{const{style:t,...n}=e;return o.createElement("span",{style:{marginLeft:"5px",...t}},o.createElement(my,{...n}))},Ty=e=>o.createElement(My,{...e,icon:by}),Py=e=>o.createElement(My,{...e,icon:Oy}),Dy=e=>o.createElement(My,{...e,icon:Ny}),jy=e=>o.createElement(My,{...e,icon:_y}),Fy=e=>o.createElement(My,{...e,icon:vy}),Ly=e=>o.createElement(My,{...e,icon:yy}),zy=e=>o.createElement(My,{...e,icon:Ry}),By=e=>o.createElement(My,{...e,icon:Iy}),Vy=e=>o.createElement(My,{...e,icon:xy}),Gy=Vy,Wy=e=>o.createElement(My,{...e,icon:Ay}),Hy=e=>o.createElement(My,{...e,icon:ky}),Xy=e=>o.createElement(My,{...e,icon:wy}),$y=e=>o.createElement(My,{...e,icon:Ey}),Zy=e=>o.createElement(My,{...e,icon:Cy}),Yy=e=>o.createElement(My,{...e,icon:Sy}),Uy=({trigger:e,title:t,description:n,children:r,closebutton:i=!0,onOpenChange:a,buttons:s=[],open:l,setOpen:c,modal:u=!0})=>{const d=o.useContext(zV).local_state((e=>e.funcnodescontainerRef)),f=o.createElement(op,{asChild:!0},o.createElement("div",{className:"dialogconent funcnodescontainer"},t&&o.createElement(ip,{className:"dialogtitle"},t),o.createElement(ap,{className:"dialogdescription"},n),o.createElement("div",{className:"dialogchildren"},r),o.createElement("div",{style:{display:"flex",marginTop:25,justifyContent:"flex-end"}},(s||[]).map(((e,t)=>o.createElement(sp,{asChild:!0,key:t},o.createElement("button",{className:"dialogsendbutton",onClick:e.onClick},e.text))))),i&&o.createElement(sp,{asChild:!0},o.createElement("button",{className:"dialogclosebutton","aria-label":"Close"},o.createElement(Wy,null)))));return o.createElement(ep,{open:l,onOpenChange:e=>{c&&c(e),a&&a(e)},modal:u},e&&o.createElement(tp,{asChild:!0},e),o.createElement(np,{container:d},o.createElement(rp,{className:"dialogoverlay funcnodescontainer"}),f))};function Jy(t){const n=t+"CollectionProvider",[r,o]=Vu(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=t=>{const{scope:n,children:r}=t,o=e.useRef(null),a=e.useRef(new Map).current;return Bu.jsx(i,{scope:n,itemMap:a,collectionRef:o,children:r})};s.displayName=n;const l=t+"CollectionSlot",c=e.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Mu(t,a(l,n).collectionRef);return Bu.jsx(Uu,{ref:o,children:r})}));c.displayName=l;const u=t+"CollectionItemSlot",d="data-radix-collection-item",f=e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,s=e.useRef(null),l=Mu(n,s),c=a(u,r);return e.useEffect((()=>(c.itemMap.set(s,{ref:s,...i}),()=>{c.itemMap.delete(s)}))),Bu.jsx(Uu,{[d]:"",ref:l,children:o})}));return f.displayName=u,[{Provider:s,Slot:c,ItemSlot:f},function(n){const r=a(t+"CollectionConsumer",n);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}var Ky=o.createContext(void 0);function qy(e){const t=o.useContext(Ky);return e||t||"ltr"}const Qy=["top","right","bottom","left"],eb=Math.min,tb=Math.max,nb=Math.round,rb=Math.floor,ob=e=>({x:e,y:e}),ib={left:"right",right:"left",bottom:"top",top:"bottom"},ab={start:"end",end:"start"};function sb(e,t,n){return tb(e,eb(t,n))}function lb(e,t){return"function"==typeof e?e(t):e}function cb(e){return e.split("-")[0]}function ub(e){return e.split("-")[1]}function db(e){return"x"===e?"y":"x"}function fb(e){return"y"===e?"height":"width"}function pb(e){return["top","bottom"].includes(cb(e))?"y":"x"}function hb(e){return db(pb(e))}function mb(e){return e.replace(/start|end/g,(e=>ab[e]))}function gb(e){return e.replace(/left|right|bottom|top/g,(e=>ib[e]))}function yb(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 bb(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 vb(e,t,n){let{reference:r,floating:o}=e;const i=pb(t),a=hb(t),s=fb(a),l=cb(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(ub(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function wb(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}=lb(t,e),h=yb(p),m=s[f?"floating"===d?"reference":"floating":d],g=bb(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,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=bb(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-w.top+h.top)/v.y,bottom:(w.bottom-g.bottom+h.bottom)/v.y,left:(g.left-w.left+h.left)/v.x,right:(w.right-g.right+h.right)/v.x}}function xb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cb(e){return Qy.some((t=>e[t]>=0))}function kb(){return"undefined"!=typeof window}function Eb(e){return _b(e)?(e.nodeName||"").toLowerCase():"#document"}function Sb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ib(e){var t;return null==(t=(_b(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function _b(e){return!!kb()&&(e instanceof Node||e instanceof Sb(e).Node)}function Ab(e){return!!kb()&&(e instanceof Element||e instanceof Sb(e).Element)}function Nb(e){return!!kb()&&(e instanceof HTMLElement||e instanceof Sb(e).HTMLElement)}function Ob(e){return!(!kb()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Sb(e).ShadowRoot)}function Rb(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Fb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Mb(e){return["table","td","th"].includes(Eb(e))}function Tb(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Pb(e){const t=Db(),n=Ab(e)?Fb(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 Db(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function jb(e){return["html","body","#document"].includes(Eb(e))}function Fb(e){return Sb(e).getComputedStyle(e)}function Lb(e){return Ab(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zb(e){if("html"===Eb(e))return e;const t=e.assignedSlot||e.parentNode||Ob(e)&&e.host||Ib(e);return Ob(t)?t.host:t}function Bb(e){const t=zb(e);return jb(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nb(t)&&Rb(t)?t:Bb(t)}function Vb(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Bb(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Sb(o);if(i){const e=Gb(a);return t.concat(a,a.visualViewport||[],Rb(o)?o:[],e&&n?Vb(e):[])}return t.concat(o,Vb(o,[],n))}function Gb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wb(e){const t=Fb(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Nb(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=nb(n)!==i||nb(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Hb(e){return Ab(e)?e:e.contextElement}function Xb(e){const t=Hb(e);if(!Nb(t))return ob(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Wb(t);let a=(i?nb(n.width):n.width)/r,s=(i?nb(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const $b=ob(0);function Zb(e){const t=Sb(e);return Db()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:$b}function Yb(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Hb(e);let a=ob(1);t&&(r?Ab(r)&&(a=Xb(r)):a=Xb(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Sb(e))&&t}(i,n,r)?Zb(i):ob(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=Sb(i),t=r&&Ab(r)?Sb(r):r;let n=e,o=Gb(n);for(;o&&r&&t!==n;){const e=Xb(o),t=o.getBoundingClientRect(),r=Fb(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=Sb(o),o=Gb(n)}}return bb({width:u,height:d,x:l,y:c})}function Ub(e,t){const n=Lb(e).scrollLeft;return t?t.left+n:Yb(Ib(e)).left+n}function Jb(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Ub(e,r)),y:r.top+t.scrollTop}}function Kb(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Sb(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=Db();(!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=Lb(e),r=e.ownerDocument.body,o=tb(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=tb(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ub(e);const s=-n.scrollTop;return"rtl"===Fb(r).direction&&(a+=tb(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Ib(e));else if(Ab(t))r=function(e,t){const n=Yb(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Nb(e)?Xb(e):ob(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=Zb(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return bb(r)}function qb(e,t){const n=zb(e);return!(n===t||!Ab(n)||jb(n))&&("fixed"===Fb(n).position||qb(n,t))}function Qb(e,t,n){const r=Nb(t),o=Ib(t),i="fixed"===n,a=Yb(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ob(0);if(r||!r&&!i)if(("body"!==Eb(t)||Rb(o))&&(s=Lb(t)),r){const e=Yb(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Ub(o));const c=!o||r||i?ob(0):Jb(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 ev(e){return"static"===Fb(e).position}function tv(e,t){if(!Nb(e)||"fixed"===Fb(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ib(e)===n&&(n=n.ownerDocument.body),n}function nv(e,t){const n=Sb(e);if(Tb(e))return n;if(!Nb(e)){let t=zb(e);for(;t&&!jb(t);){if(Ab(t)&&!ev(t))return t;t=zb(t)}return n}let r=tv(e,t);for(;r&&Mb(r)&&ev(r);)r=tv(r,t);return r&&jb(r)&&ev(r)&&!Pb(r)?n:r||function(e){let t=zb(e);for(;Nb(t)&&!jb(t);){if(Pb(t))return t;if(Tb(t))return null;t=zb(t)}return null}(e)||n}const rv={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Ib(r),s=!!t&&Tb(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ob(1);const u=ob(0),d=Nb(r);if((d||!d&&!i)&&(("body"!==Eb(r)||Rb(a))&&(l=Lb(r)),Nb(r))){const e=Yb(r);c=Xb(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?ob(0):Jb(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?Tb(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Vb(e,[],!1).filter((e=>Ab(e)&&"body"!==Eb(e))),o=null;const i="fixed"===Fb(e).position;let a=i?zb(e):e;for(;Ab(a)&&!jb(a);){const t=Fb(a),n=Pb(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Rb(a)&&!n&&qb(e,a))?r=r.filter((e=>e!==a)):o=t,a=zb(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=Kb(t,n,o);return e.top=tb(r.top,e.top),e.right=eb(r.right,e.right),e.bottom=eb(r.bottom,e.bottom),e.left=tb(r.left,e.left),e}),Kb(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:nv,getElementRects:async function(e){const t=this.getOffsetParent||nv,n=this.getDimensions,r=await n(e.floating);return{reference:Qb(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}=Wb(e);return{width:t,height:n}},getScale:Xb,isElement:Ab,isRTL:function(e){return"rtl"===Fb(e).direction}};function ov(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iv(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=Hb(e),u=o||i?[...c?Vb(c):[],...Vb(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:-rb(d)+"px "+-rb(o.clientWidth-(u+f))+"px "+-rb(o.clientHeight-(d+p))+"px "+-rb(u)+"px",threshold:tb(0,eb(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||ov(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?Yb(e):null;return l&&function t(){const r=Yb(e);m&&!ov(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 av=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=cb(n),s=ub(n),l="y"===pb(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=lb(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}}}}},sv=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}=lb(e,t),c={x:n,y:r},u=await wb(t,l),d=pb(cb(o)),f=db(d);let p=c[f],h=c[d];if(i){const e="y"===f?"bottom":"right";p=sb(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=sb(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}}}}}},lv=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}=lb(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=cb(o),b=pb(s),v=cb(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(v||!m?[gb(s)]:function(e){const t=gb(e);return[mb(e),t,mb(t)]}(s)),C="none"!==h;!f&&C&&x.push(...function(e,t,n,r){const o=ub(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[]}}(cb(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(mb)))),i}(s,m,h,w));const k=[s,...x],E=await wb(t,g),S=[];let I=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(E[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ub(e),o=hb(e),i=fb(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=gb(a)),[a,gb(a)]}(o,a,w);S.push(E[e[0]],E[e[1]])}if(I=[...I,{placement:o,overflows:S}],!S.every((e=>e<=0))){var _,A;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(A=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var N;const e=null==(N=I.filter((e=>{if(C){const t=pb(e.placement);return t===b||"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:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},cv=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}=lb(e,t),u=await wb(t,c),d=cb(o),f=ub(o),p="y"===pb(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 b=m-u.top-u.bottom,v=h-u.left-u.right,w=eb(m-u[g],b),x=eb(h-u[y],v),C=!t.middlewareData.shift;let k=w,E=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=b),C&&!f){const e=tb(u.left,0),t=tb(u.right,0),n=tb(u.top,0),r=tb(u.bottom,0);p?E=h-2*(0!==e||0!==t?e+t:tb(u.left,u.right)):k=m-2*(0!==n||0!==r?n+r:tb(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:k});const S=await a.getDimensions(s.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},uv=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=lb(e,t);switch(r){case"referenceHidden":{const e=xb(await wb(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Cb(e)}}}case"escaped":{const e=xb(await wb(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Cb(e)}}}default:return{}}}}},dv=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}=lb(e,t)||{};if(null==c)return{};const d=yb(u),f={x:n,y:r},p=hb(o),h=fb(p),m=await a.getDimensions(c),g="y"===p,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let k=C?C[v]:0;k&&await(null==a.isElement?void 0:a.isElement(C))||(k=s.floating[v]||i.floating[h]);const E=w/2-x/2,S=k/2-m[h]/2-1,I=eb(d[y],S),_=eb(d[b],S),A=I,N=k-m[h]-_,O=k/2-m[h]/2+E,R=sb(A,O,N),M=!l.arrow&&null!=ub(o)&&O!==R&&i.reference[h]/2-(O<A?I:_)-m[h]/2<0,T=M?O<A?O-A:O-N:0;return{[p]:f[p]+T,data:{[p]:R,centerOffset:O-R-T,...M&&{alignmentOffset:T}},reset:M}}}),fv=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}=lb(e,t),u={x:n,y:r},d=pb(o),f=db(d);let p=u[f],h=u[d];const m=lb(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,b;const e="y"===f?"width":"height",t=["top","left"].includes(cb(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==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},pv=(e,t,n)=>{const r=new Map,o={platform:rv,...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}=vb(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:b,reset:v}=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],...b}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=vb(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var hv="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function mv(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(!mv(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)&&!mv(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function gv(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yv(e,t){const n=gv(e);return Math.round(t*n)/n}function bv(e){const t=o.useRef(e);return hv((()=>{t.current=e})),t}const vv=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?dv({element:n.current,padding:r}).fn(t):{}:n?dv({element:n,padding:r}).fn(t):{};var o}}),wv=(e,t)=>({...av(e),options:[e,t]}),xv=(e,t)=>({...sv(e),options:[e,t]}),Cv=(e,t)=>({...fv(e),options:[e,t]}),kv=(e,t)=>({...lv(e),options:[e,t]}),Ev=(e,t)=>({...cv(e),options:[e,t]}),Sv=(e,t)=>({...uv(e),options:[e,t]}),Iv=(e,t)=>({...vv(e),options:[e,t]});var _v=o.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return Bu.jsx(Qu.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Bu.jsx("polygon",{points:"0,0 30,0 15,10"})})}));_v.displayName="Arrow";var Av=_v;function Nv(e){const[t,n]=o.useState(void 0);return Wu((()=>{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 Ov="Popper",[Rv,Mv]=Vu(Ov),[Tv,Pv]=Rv(Ov),Dv=e=>{const{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return Bu.jsx(Tv,{scope:t,anchor:r,onAnchorChange:i,children:n})};Dv.displayName=Ov;var jv="PopperAnchor",Fv=o.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=Pv(jv,n),s=o.useRef(null),l=Mu(t,s);return o.useEffect((()=>{a.onAnchorChange(r?.current||s.current)})),r?null:Bu.jsx(Qu.div,{...i,ref:l})}));Fv.displayName=jv;var Lv="PopperContent",[zv,Bv]=Rv(Lv),Vv=o.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...y}=e,b=Pv(Lv,n),[v,w]=o.useState(null),x=Mu(t,(e=>w(e))),[C,k]=o.useState(null),E=Nv(C),S=E?.width??0,I=E?.height??0,_=r+("center"!==s?"-"+s:""),A="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},N=Array.isArray(d)?d:[d],O=N.length>0,R={padding:A,boundary:N.filter(Xv),altBoundary:O},{refs:M,floatingStyles:T,placement:P,isPositioned:D,middlewareData:j}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=o.useState(r);mv(h,r)||m(r);const[g,y]=o.useState(null),[b,v]=o.useState(null),w=o.useCallback((e=>{e!==E.current&&(E.current=e,y(e))}),[]),x=o.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),C=s||g,k=l||b,E=o.useRef(null),S=o.useRef(null),I=o.useRef(f),_=null!=u,A=bv(u),N=bv(a),O=bv(d),R=o.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:h};N.current&&(e.platform=N.current),pv(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==O.current};M.current&&!mv(I.current,t)&&(I.current=t,i.flushSync((()=>{p(t)})))}))}),[h,t,n,N,O]);hv((()=>{!1===d&&I.current.isPositioned&&(I.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const M=o.useRef(!1);hv((()=>(M.current=!0,()=>{M.current=!1})),[]),hv((()=>{if(C&&(E.current=C),k&&(S.current=k),C&&k){if(A.current)return A.current(C,k,R);R()}}),[C,k,R,A,_]);const T=o.useMemo((()=>({reference:E,floating:S,setReference:w,setFloating:x})),[w,x]),P=o.useMemo((()=>({reference:C,floating:k})),[C,k]),D=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=yv(P.floating,f.x),r=yv(P.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...gv(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,P.floating,f.x,f.y]);return o.useMemo((()=>({...f,update:R,refs:T,elements:P,floatingStyles:D})),[f,R,T,P,D])}({strategy:"fixed",placement:_,whileElementsMounted:(...e)=>iv(...e,{animationFrame:"always"===m}),elements:{reference:b.anchor},middleware:[wv({mainAxis:a+I,alignmentAxis:l}),u&&xv({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?Cv():void 0,...R}),u&&kv({...R}),Ev({...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`)}}),C&&Iv({element:C,padding:c}),$v({arrowWidth:S,arrowHeight:I}),h&&Sv({strategy:"referenceHidden",...R})]}),[F,L]=Zv(P),z=Zu(g);Wu((()=>{D&&z?.()}),[D,z]);const B=j.arrow?.x,V=j.arrow?.y,G=0!==j.arrow?.centerOffset,[W,H]=o.useState();return Wu((()=>{v&&H(window.getComputedStyle(v).zIndex)}),[v]),Bu.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:D?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Bu.jsx(zv,{scope:n,placedSide:F,onArrowChange:k,arrowX:B,arrowY:V,shouldHideArrow:G,children:Bu.jsx(Qu.div,{"data-side":F,"data-align":L,...y,ref:x,style:{...y.style,animation:D?void 0:"none"}})})})}));Vv.displayName=Lv;var Gv="PopperArrow",Wv={top:"bottom",right:"left",bottom:"top",left:"right"},Hv=o.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=Bv(Gv,n),i=Wv[o.placedSide];return Bu.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:Bu.jsx(Av,{...r,ref:t,style:{...r.style,display:"block"}})})}));function Xv(e){return null!==e}Hv.displayName=Gv;var $v=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]=Zv(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 Zv(e){const[t,n="center"]=e.split("-");return[t,n]}var Yv=Dv,Uv=Fv,Jv=Vv,Kv=Hv,qv="rovingFocusGroup.onEntryFocus",Qv={bubbles:!1,cancelable:!0},ew="RovingFocusGroup",[tw,nw,rw]=Jy(ew),[ow,iw]=Vu(ew,[rw]),[aw,sw]=ow(ew),lw=o.forwardRef(((e,t)=>Bu.jsx(tw.Provider,{scope:e.__scopeRovingFocusGroup,children:Bu.jsx(tw.Slot,{scope:e.__scopeRovingFocusGroup,children:Bu.jsx(cw,{...e,ref:t})})})));lw.displayName=ew;var cw=o.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,p=o.useRef(null),h=Mu(t,p),m=qy(a),[g=null,y]=Yu({prop:s,defaultProp:l,onChange:c}),[b,v]=o.useState(!1),w=Zu(u),x=nw(n),C=o.useRef(!1),[k,E]=o.useState(0);return o.useEffect((()=>{const e=p.current;if(e)return e.addEventListener(qv,w),()=>e.removeEventListener(qv,w)}),[w]),Bu.jsx(aw,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:g,onItemFocus:o.useCallback((e=>y(e)),[y]),onItemShiftTab:o.useCallback((()=>v(!0)),[]),onFocusableItemAdd:o.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:o.useCallback((()=>E((e=>e-1))),[]),children:Bu.jsx(Qu.div,{tabIndex:b||0===k?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:Nu(e.onMouseDown,(()=>{C.current=!0})),onFocus:Nu(e.onFocus,(e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(qv,Qv);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));pw([e.find((e=>e.active)),e.find((e=>e.id===g)),...e].filter(Boolean).map((e=>e.ref.current)),d)}}C.current=!1})),onBlur:Nu(e.onBlur,(()=>v(!1)))})})})),uw="RovingFocusGroupItem",dw=o.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...s}=e,l=$u(),c=a||l,u=sw(uw,n),d=u.currentTabStopId===c,f=nw(n),{onFocusableItemAdd:p,onFocusableItemRemove:h}=u;return o.useEffect((()=>{if(r)return p(),()=>h()}),[r,p,h]),Bu.jsx(tw.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:Bu.jsx(Qu.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Nu(e.onMouseDown,(e=>{r?u.onItemFocus(c):e.preventDefault()})),onFocus:Nu(e.onFocus,(()=>u.onItemFocus(c))),onKeyDown:Nu(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.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:fw[r]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().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=u.loop?function(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}(n,r+1):n.slice(r+1)}setTimeout((()=>pw(n)))}}))})})}));dw.displayName=uw;var fw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pw(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 hw=lw,mw=dw,gw=["Enter"," "],yw=["ArrowUp","PageDown","End"],bw=["ArrowDown","PageUp","Home",...yw],vw={ltr:[...gw,"ArrowRight"],rtl:[...gw,"ArrowLeft"]},ww={ltr:["ArrowLeft"],rtl:["ArrowRight"]},xw="Menu",[Cw,kw,Ew]=Jy(xw),[Sw,Iw]=Vu(xw,[Ew,Mv,iw]),_w=Mv(),Aw=iw(),[Nw,Ow]=Sw(xw),[Rw,Mw]=Sw(xw),Tw=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:s=!0}=e,l=_w(t),[c,u]=o.useState(null),d=o.useRef(!1),f=Zu(a),p=qy(i);return o.useEffect((()=>{const e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.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})}}),[]),Bu.jsx(Yv,{...l,children:Bu.jsx(Nw,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:u,children:Bu.jsx(Rw,{scope:t,onClose:o.useCallback((()=>f(!1)),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:r})})})};Tw.displayName=xw;var Pw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=_w(n);return Bu.jsx(Uv,{...o,...r,ref:t})}));Pw.displayName="MenuAnchor";var[Dw,jw]=Sw("MenuPortal",{forceMount:void 0}),Fw="MenuContent",[Lw,zw]=Sw(Fw),Bw=o.forwardRef(((e,t)=>{const n=jw(Fw,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Ow(Fw,e.__scopeMenu),a=Mw(Fw,e.__scopeMenu);return Bu.jsx(Cw.Provider,{scope:e.__scopeMenu,children:Bu.jsx(xd,{present:r||i.open,children:Bu.jsx(Cw.Slot,{scope:e.__scopeMenu,children:a.modal?Bu.jsx(Vw,{...o,ref:t}):Bu.jsx(Gw,{...o,ref:t})})})})})),Vw=o.forwardRef(((e,t)=>{const n=Ow(Fw,e.__scopeMenu),r=o.useRef(null),i=Mu(t,r);return o.useEffect((()=>{const e=r.current;if(e)return xf(e)}),[]),Bu.jsx(Ww,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Nu(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),Gw=o.forwardRef(((e,t)=>{const n=Ow(Fw,e.__scopeMenu);return Bu.jsx(Ww,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),Ww=o.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,disableOutsideScroll:m,...g}=e,y=Ow(Fw,n),b=Mw(Fw,n),v=_w(n),w=Aw(n),x=kw(n),[C,k]=o.useState(null),E=o.useRef(null),S=Mu(t,E,y.onContentChange),I=o.useRef(0),_=o.useRef(""),A=o.useRef(0),N=o.useRef(null),O=o.useRef("right"),R=o.useRef(0),M=m?hf:o.Fragment,T=m?{as:Uu,allowPinchZoom:!0}:void 0,P=e=>{const t=_.current+e,n=x().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){_.current=t,window.clearTimeout(I.current),""!==t&&(I.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))};o.useEffect((()=>()=>window.clearTimeout(I.current)),[]),Ed();const D=o.useCallback((e=>O.current===N.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,N.current?.area)),[]);return Bu.jsx(Lw,{scope:n,searchRef:_,onItemEnter:o.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),onItemLeave:o.useCallback((e=>{D(e)||(E.current?.focus(),k(null))}),[D]),onTriggerLeave:o.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),pointerGraceTimerRef:A,onPointerGraceIntentChange:o.useCallback((e=>{N.current=e}),[]),children:Bu.jsx(M,{...T,children:Bu.jsx(pd,{asChild:!0,trapped:i,onMountAutoFocus:Nu(a,(e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:s,children:Bu.jsx(ad,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,children:Bu.jsx(hw,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:k,onEntryFocus:Nu(c,(e=>{b.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:Bu.jsx(Jv,{role:"menu","aria-orientation":"vertical","data-state":yx(y.open),"data-radix-menu-content":"",dir:b.dir,...v,...g,ref:S,style:{outline:"none",...g.style},onKeyDown:Nu(g.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&&P(e.key));const o=E.current;if(e.target!==o)return;if(!bw.includes(e.key))return;e.preventDefault();const i=x().filter((e=>!e.disabled)).map((e=>e.ref.current));yw.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:Nu(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(I.current),_.current="")})),onPointerMove:Nu(e.onPointerMove,wx((e=>{const t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>R.current?"right":"left";O.current=t,R.current=e.clientX}})))})})})})})})}));Bw.displayName=Fw;var Hw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return Bu.jsx(Qu.div,{role:"group",...r,ref:t})}));Hw.displayName="MenuGroup";var Xw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return Bu.jsx(Qu.div,{...r,ref:t})}));Xw.displayName="MenuLabel";var $w="MenuItem",Zw="menu.itemSelect",Yw=o.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=o.useRef(null),s=Mw($w,e.__scopeMenu),l=zw($w,e.__scopeMenu),c=Mu(t,a),u=o.useRef(!1);return Bu.jsx(Uw,{...i,ref:c,disabled:n,onClick:Nu(e.onClick,(()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(Zw,{bubbles:!0,cancelable:!0});e.addEventListener(Zw,(e=>r?.(e)),{once:!0}),ed(e,t),t.defaultPrevented?u.current=!1:s.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:Nu(e.onPointerUp,(e=>{u.current||e.currentTarget?.click()})),onKeyDown:Nu(e.onKeyDown,(e=>{const t=""!==l.searchRef.current;n||t&&" "===e.key||gw.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));Yw.displayName=$w;var Uw=o.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,s=zw($w,n),l=Aw(n),c=o.useRef(null),u=Mu(t,c),[d,f]=o.useState(!1),[p,h]=o.useState("");return o.useEffect((()=>{const e=c.current;e&&h((e.textContent??"").trim())}),[a.children]),Bu.jsx(Cw.ItemSlot,{scope:n,disabled:r,textValue:i??p,children:Bu.jsx(mw,{asChild:!0,...l,focusable:!r,children:Bu.jsx(Qu.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:Nu(e.onPointerMove,wx((e=>{if(r)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:Nu(e.onPointerLeave,wx((e=>s.onItemLeave(e)))),onFocus:Nu(e.onFocus,(()=>f(!0))),onBlur:Nu(e.onBlur,(()=>f(!1)))})})})})),Jw=o.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return Bu.jsx(ox,{scope:e.__scopeMenu,checked:n,children:Bu.jsx(Yw,{role:"menuitemcheckbox","aria-checked":bx(n)?"mixed":n,...o,ref:t,"data-state":vx(n),onSelect:Nu(o.onSelect,(()=>r?.(!!bx(n)||!n)),{checkForDefaultPrevented:!1})})})}));Jw.displayName="MenuCheckboxItem";var Kw="MenuRadioGroup",[qw,Qw]=Sw(Kw,{value:void 0,onValueChange:()=>{}}),ex=o.forwardRef(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Zu(r);return Bu.jsx(qw,{scope:e.__scopeMenu,value:n,onValueChange:i,children:Bu.jsx(Hw,{...o,ref:t})})}));ex.displayName=Kw;var tx="MenuRadioItem",nx=o.forwardRef(((e,t)=>{const{value:n,...r}=e,o=Qw(tx,e.__scopeMenu),i=n===o.value;return Bu.jsx(ox,{scope:e.__scopeMenu,checked:i,children:Bu.jsx(Yw,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":vx(i),onSelect:Nu(r.onSelect,(()=>o.onValueChange?.(n)),{checkForDefaultPrevented:!1})})})}));nx.displayName=tx;var rx="MenuItemIndicator",[ox,ix]=Sw(rx,{checked:!1}),ax=o.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=ix(rx,n);return Bu.jsx(xd,{present:r||bx(i.checked)||!0===i.checked,children:Bu.jsx(Qu.span,{...o,ref:t,"data-state":vx(i.checked)})})}));ax.displayName=rx;var sx=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return Bu.jsx(Qu.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})}));sx.displayName="MenuSeparator";var lx=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=_w(n);return Bu.jsx(Kv,{...o,...r,ref:t})}));lx.displayName="MenuArrow";var cx="MenuSub",[ux,dx]=Sw(cx),fx=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Ow(cx,t),s=_w(t),[l,c]=o.useState(null),[u,d]=o.useState(null),f=Zu(i);return o.useEffect((()=>(!1===a.open&&f(!1),()=>f(!1))),[a.open,f]),Bu.jsx(Yv,{...s,children:Bu.jsx(Nw,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d,children:Bu.jsx(ux,{scope:t,contentId:$u(),triggerId:$u(),trigger:l,onTriggerChange:c,children:n})})})};fx.displayName=cx;var px="MenuSubTrigger",hx=o.forwardRef(((e,t)=>{const n=Ow(px,e.__scopeMenu),r=Mw(px,e.__scopeMenu),i=dx(px,e.__scopeMenu),a=zw(px,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=a,u={__scopeMenu:e.__scopeMenu},d=o.useCallback((()=>{s.current&&window.clearTimeout(s.current),s.current=null}),[]);return o.useEffect((()=>d),[d]),o.useEffect((()=>{const e=l.current;return()=>{window.clearTimeout(e),c(null)}}),[l,c]),Bu.jsx(Pw,{asChild:!0,...u,children:Bu.jsx(Uw,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":yx(n.open),...e,ref:Ru(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Nu(e.onPointerMove,wx((t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout((()=>{n.onOpenChange(!0),d()}),100))}))),onPointerLeave:Nu(e.onPointerLeave,wx((e=>{d();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,i=o?-5:5,s=t[o?"left":"right"],c=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:s,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(l.current),l.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:Nu(e.onKeyDown,(t=>{const o=""!==a.searchRef.current;e.disabled||o&&" "===t.key||vw[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())}))})})}));hx.displayName=px;var mx="MenuSubContent",gx=o.forwardRef(((e,t)=>{const n=jw(Fw,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Ow(Fw,e.__scopeMenu),s=Mw(Fw,e.__scopeMenu),l=dx(mx,e.__scopeMenu),c=o.useRef(null),u=Mu(t,c);return Bu.jsx(Cw.Provider,{scope:e.__scopeMenu,children:Bu.jsx(xd,{present:r||a.open,children:Bu.jsx(Cw.Slot,{scope:e.__scopeMenu,children:Bu.jsx(Ww,{id:l.contentId,"aria-labelledby":l.triggerId,...i,ref:u,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Nu(e.onFocusOutside,(e=>{e.target!==l.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:Nu(e.onEscapeKeyDown,(e=>{s.onClose(),e.preventDefault()})),onKeyDown:Nu(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=ww[s.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())}))})})})})}));function yx(e){return e?"open":"closed"}function bx(e){return"indeterminate"===e}function vx(e){return bx(e)?"indeterminate":e?"checked":"unchecked"}function wx(e){return t=>"mouse"===t.pointerType?e(t):void 0}gx.displayName=mx;var xx=Tw,Cx=Pw,kx=Bw,Ex=Hw,Sx=Xw,Ix=Yw,_x=Jw,Ax=ex,Nx=nx,Ox=ax,Rx=sx,Mx=lx,Tx=fx,Px=hx,Dx=gx,jx="DropdownMenu",[Fx,Lx]=Vu(jx,[Iw]),zx=Iw(),[Bx,Vx]=Fx(jx),Gx=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,c=zx(t),u=o.useRef(null),[d=!1,f]=Yu({prop:i,defaultProp:a,onChange:s});return Bu.jsx(Bx,{scope:t,triggerId:$u(),triggerRef:u,contentId:$u(),open:d,onOpenChange:f,onOpenToggle:o.useCallback((()=>f((e=>!e))),[f]),modal:l,children:Bu.jsx(xx,{...c,open:d,onOpenChange:f,dir:r,modal:l,children:n})})};Gx.displayName=jx;var Wx="DropdownMenuTrigger",Hx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Vx(Wx,n),a=zx(n);return Bu.jsx(Cx,{asChild:!0,...a,children:Bu.jsx(Qu.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:Ru(t,i.triggerRef),onPointerDown:Nu(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:Nu(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));Hx.displayName=Wx;var Xx="DropdownMenuContent",$x=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Vx(Xx,n),a=zx(n),s=o.useRef(!1);return Bu.jsx(kx,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:Nu(e.onCloseAutoFocus,(e=>{s.current||i.triggerRef.current?.focus(),s.current=!1,e.preventDefault()})),onInteractOutside:Nu(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(s.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)"}})}));$x.displayName=Xx;var Zx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ex,{...o,...r,ref:t})}));Zx.displayName="DropdownMenuGroup";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Sx,{...o,...r,ref:t})})).displayName="DropdownMenuLabel";var Yx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ix,{...o,...r,ref:t})}));Yx.displayName="DropdownMenuItem";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(_x,{...o,...r,ref:t})})).displayName="DropdownMenuCheckboxItem";var Ux=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ax,{...o,...r,ref:t})}));Ux.displayName="DropdownMenuRadioGroup";var Jx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Nx,{...o,...r,ref:t})}));Jx.displayName="DropdownMenuRadioItem";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Ox,{...o,...r,ref:t})})).displayName="DropdownMenuItemIndicator";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Rx,{...o,...r,ref:t})})).displayName="DropdownMenuSeparator";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Mx,{...o,...r,ref:t})})).displayName="DropdownMenuArrow";var Kx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Px,{...o,...r,ref:t})}));Kx.displayName="DropdownMenuSubTrigger";var qx=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=zx(n);return Bu.jsx(Dx,{...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)"}})}));qx.displayName="DropdownMenuSubContent";var Qx=Gx,eC=Hx,tC=$x,nC=Zx,rC=Yx,oC=Ux,iC=Jx,aC=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=zx(t),[s=!1,l]=Yu({prop:r,defaultProp:i,onChange:o});return Bu.jsx(Tx,{...a,open:s,onOpenChange:l,children:n})},sC=Kx,lC=qx;function cC(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 uC(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 dC(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(uC)}const fC=!process.env.NODE_ENV||"development"===process.env.NODE_ENV,pC={xxs:0,xs:320,s:480,m:768,l:960,xl:1280,xxl:1920},hC=o.createContext(void 0),mC=o.forwardRef(((e,t)=>{const{className:n,children:r,...i}=e,[a,s]=o.useState("m"),[l,c]=o.useState(0),[u,d]=o.useState(0),f=o.useRef(null);o.useImperativeHandle(t,(()=>f.current),[]);const p=o.useCallback((e=>{const t=e.width,n=e.height;let r="xxs";Object.entries(pC).forEach((([e,n])=>{t>=n&&(r=e)})),s((e=>e!==r?r:e)),c(t),d(n)}),[]);return o.useEffect((()=>{const e=f.current;if(!e)return;const t=new ResizeObserver((e=>{for(let t of e)p(t.contentRect)}));return t.observe(e),p(e.getBoundingClientRect()),()=>{t.disconnect()}}),[]),o.createElement(hC.Provider,{value:{wKey:a,w:l,h:u}},o.createElement("div",{ref:f,className:`size-context w-${a} ${n||""}`.trim(),...i},r))})),gC=e=>((e,t)=>e!=t&&(""==e||pC[e]<pC[t]))((()=>{const e=o.useContext(hC);if(!e)throw new Error("useSizeContext must be used within a SizeContextContainerContext");return e})().wKey,e),yC=({direction:e,className:t="",children:n,wrap:r=!1,grow:i=!1,...a})=>{let s="";"string"==typeof e?s=`direction-${e} `:"object"==typeof e&&null!==e&&Object.entries(e).forEach((([e,t])=>{s+=""===e?`direction-${t} `:`${e}-direction-${t} `}));let l="";"boolean"==typeof i?l=i?"grow ":"":"object"==typeof i&&null!==i&&Object.entries(i).forEach((([e,t])=>{l+=""===e?t?"grow ":"no-grow":t?`${e}-grow `:`${e}-no-grow`})),s+=l,r&&(s+="flex-wrap "),s=s.trim();const c=`float-container ${s} ${t}`.trim();return o.createElement("div",{className:c,...a},n)},bC=({direction:e,expanded:t=!0,children:n,className:r,maxSize:i,expanderSize:a="40px",containerStyle:s,style:l,containerClassName:c,onExpandChange:u,...d})=>{const f={up:Vy,down:By,left:Dy,right:Py}[e],p={up:By,down:Vy,left:Py,right:Dy}[e],[h,m]=o.useState(t),g=`${e} ${h?"expanded":"collapsed"}`,y="right"===e||"left"===e?{width:h?i:a}:{height:h?i:a},b="right"===e||"left"===e?{width:h?i:0}:{height:h?i:0},v="right"===e||"left"===e?{width:a}:{height:a},w=o.createElement("div",{className:`expanding_container_content ${g} ${r||""}`.trim(),style:{...l,...b},...d},n),x=o.createElement("div",{className:`expanding_container_expander ${g}`,onClick:()=>(e=>{h!==e&&(m(e),u&&u(e))})(!h),style:v},h?o.createElement(p,null):o.createElement(f,null)),C="right"===e||"down"===e?w:x,k="left"===e||"up"===e?w:x;return o.createElement("div",{className:`expanding_container ${g} ${c||""}`,style:{...s,...y}},C,k)},vC=({trigger:t,setOpen:n,open:r})=>{const[i,a]=e.useState(""),s=e.useContext(zV);return s.options.useWorkerManager?o.createElement(Uy,{setOpen:n,open:r,trigger:t,title:"New Worker",description:"Create a new worker"},o.createElement("div",null,"Name:",o.createElement("br",null),o.createElement("input",{className:"styledinput",onChange:e=>{a(e.currentTarget.value)},value:i})),o.createElement("div",null,i&&o.createElement("div",null,o.createElement("button",{className:"styledbtn",onClick:()=>{s.workermanager?.new_worker({name:i}),n(!1)}},"Create")))):null},wC=({trigger:t,setOpen:n,open:r})=>{const i=e.useContext(zV),[a,s]=e.useState(!1),l=i.workers(),c=i.worker?.uuid,u=(c?l[c]?.name:void 0)||c||"worker";return o.createElement(Uy,{setOpen:n,open:r,trigger:t,title:"Export Worker",description:"Export the worker as a .fnw file"},o.createElement("div",null,o.createElement("div",null,o.createElement("input",{type:"checkbox",className:"styledcheckbox",checked:a,onChange:e=>{s(e.currentTarget.checked)}}),"Include Files"),o.createElement("button",{className:"styledbtn",onClick:async()=>{if(!i.worker)return;!function(e,t,n){const r=cC(e,n),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=t,i.click(),URL.revokeObjectURL(o),i.remove()}(await i.worker.export({withFiles:a}),u+".fnw","application/zip"),n(!1)}},"Export")))},xC=()=>{const t=e.useContext(zV).progress_state();return o.createElement("div",{className:"statusbar"},o.createElement("span",{className:"statusbar-progressbar",style:{width:Math.min(100,100*t.progress)+"%"}}),o.createElement("span",{className:"statusbar-message"},t.message))},CC=()=>{const t=e.useContext(zV),n=t.workers(),[r,i]=e.useState(!1),[a,s]=e.useState(!1),l=t.options.useWorkerManager&&t.workermanager&&t.workermanager.open||fC,c=l&&Object.keys(n).length>0,u=t.worker&&t.worker.is_open,d=u&&l;return l||u?o.createElement(o.Fragment,null,o.createElement(Qx,null,o.createElement(eC,{asChild:!0},o.createElement("button",{className:"styledbtn"},o.createElement(yC,{direction:"row"},"Worker ",o.createElement(Ty,null)))),o.createElement(tC,{className:"headermenucontent funcnodescontainer"},o.createElement(nC,null,c&&o.createElement(aC,null,o.createElement(sC,{className:"headermenuitem submenuitem"},o.createElement(yC,{direction:"row"},"Select",o.createElement(Py,null))),o.createElement(lC,{className:"headermenucontent funcnodescontainer",sideOffset:2,alignOffset:-5},o.createElement(oC,{value:t.worker?.uuid,onValueChange:e=>{(e=>{if("__select__"!==e&&t.workers&&t.workermanager&&n[e]){if(!n[e].active&&!window.confirm("this is an inactive worker, selecting it will start it, continue?"))return;t.workermanager.set_active(e)}})(e)}},Object.keys(n).sort(((e,t)=>{if(n[e].active&&!n[t].active)return-1;if(!n[e].active&&n[t].active)return 1;const r=n[e].name||e,o=n[t].name||t;return r.localeCompare(o)})).map((e=>o.createElement(iC,{className:"headermenuitem workerselectoption"+(n[e]?.active?" active":" inactive")+" headermenuitem",key:e,value:e,disabled:e===t.worker?.uuid},n[e]?.name||e)))))),u&&o.createElement(o.Fragment,null,d&&o.createElement(rC,{className:"headermenuitem",onClick:()=>{if(t.worker)return t.workermanager?void t.workermanager?.restart_worker(t.worker.uuid):t.logger.error("no workermanager")}},"Restart"),o.createElement(rC,{className:"headermenuitem",onClick:()=>{t.worker&&t.worker.stop()}},"Stop"),o.createElement(rC,{className:"headermenuitem",onClick:()=>s(!0)},"Export"),o.createElement(rC,{className:"headermenuitem",onClick:async()=>{if(!t.worker)return;if(!window.confirm("Updateing the worker might replace the current nodespace, continue?"))return;const e=await dC(".fnw");t.worker.update_from_export(e)}},"Update")),l&&o.createElement(o.Fragment,null,o.createElement(rC,{className:"headermenuitem",onClick:()=>i(!0)},"New"))))),o.createElement(vC,{open:r,setOpen:i}),o.createElement(wC,{open:a,setOpen:s})):null},kC=()=>{const t=e.useContext(zV);return o.createElement(o.Fragment,null,o.createElement(Qx,null,o.createElement(eC,{asChild:!0},o.createElement("button",{className:"styledbtn"},o.createElement(yC,{direction:"row"},"Nodespace ",o.createElement(Ty,null)))),o.createElement(tC,{className:"headermenucontent funcnodescontainer"},o.createElement(nC,null,o.createElement(rC,{className:"headermenuitem",onClick:()=>{window.confirm("Are you sure you want to start a new flow?")&&t.worker?.clear()}},"New"),o.createElement(rC,{className:"headermenuitem",onClick:async()=>{const e=await(t.worker?.save());if(!e)return;const n=new Blob([JSON.stringify(e)],{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"),o.createElement(rC,{className:"headermenuitem",onClick:async()=>{const e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=async e=>{const n=e.target.files?.[0];if(!n)return;const r=new FileReader;r.onload=async e=>{const n=e.target?.result;if(!n)return;const r=JSON.parse(n);await(t.worker?.load(r))},r.readAsText(n)},e.click()}},"Load")))))},EC=({...t})=>{const n=e.useContext(zV),r=n.workerstate();return Object.keys(t).length>0&&n.logger.debug("headerprops",t),o.createElement(yC,{className:"funcnodesreactflowheader",direction:"row",wrap:!0},o.createElement(yC,{className:"headerelement m-w-6",grow:{"":!0,m:!1}},o.createElement(xC,null)),(t.showmenu||fC)&&o.createElement(yC,{direction:"row",wrap:!0},o.createElement("div",{className:"headerelement"},o.createElement(CC,null)),(n.worker&&r.is_open||fC)&&o.createElement("div",{className:"headerelement"},o.createElement(kC,null))))};const SC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,IC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_C={};function AC(e,t){return(_C.jsx?IC:SC).test(e)}const NC=/[ \t\n\f\r]/g;function OC(e){return""===e.replace(NC,"")}class RC{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function MC(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new RC(n,r,t)}function TC(e){return e.toLowerCase()}RC.prototype.property={},RC.prototype.normal={},RC.prototype.space=null;class PC{constructor(e,t){this.property=e,this.attribute=t}}PC.prototype.space=null,PC.prototype.boolean=!1,PC.prototype.booleanish=!1,PC.prototype.overloadedBoolean=!1,PC.prototype.number=!1,PC.prototype.commaSeparated=!1,PC.prototype.spaceSeparated=!1,PC.prototype.commaOrSpaceSeparated=!1,PC.prototype.mustUseProperty=!1,PC.prototype.defined=!1;let DC=0;const jC=WC(),FC=WC(),LC=WC(),zC=WC(),BC=WC(),VC=WC(),GC=WC();function WC(){return 2**++DC}var HC=Object.freeze({__proto__:null,boolean:jC,booleanish:FC,commaOrSpaceSeparated:GC,commaSeparated:VC,number:zC,overloadedBoolean:LC,spaceSeparated:BC});const XC=Object.keys(HC);class $C extends PC{constructor(e,t,n,r){let o=-1;if(super(e,t),ZC(this,"space",r),"number"==typeof n)for(;++o<XC.length;){const e=XC[o];ZC(this,XC[o],(n&HC[e])===HC[e])}}}function ZC(e,t,n){n&&(e[t]=n)}$C.prototype.defined=!0;const YC={}.hasOwnProperty;function UC(e){const t={},n={};let r;for(r in e.properties)if(YC.call(e.properties,r)){const o=e.properties[r],i=new $C(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[TC(r)]=r,n[TC(i.attribute)]=r}return new RC(t,n,e.space)}const JC=UC({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),KC=UC({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function qC(e,t){return t in e?e[t]:t}function QC(e,t){return qC(e,t.toLowerCase())}const ek=UC({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:QC,properties:{xmlns:null,xmlnsXLink:null}}),tk=UC({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:FC,ariaAutoComplete:null,ariaBusy:FC,ariaChecked:FC,ariaColCount:zC,ariaColIndex:zC,ariaColSpan:zC,ariaControls:BC,ariaCurrent:null,ariaDescribedBy:BC,ariaDetails:null,ariaDisabled:FC,ariaDropEffect:BC,ariaErrorMessage:null,ariaExpanded:FC,ariaFlowTo:BC,ariaGrabbed:FC,ariaHasPopup:null,ariaHidden:FC,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:BC,ariaLevel:zC,ariaLive:null,ariaModal:FC,ariaMultiLine:FC,ariaMultiSelectable:FC,ariaOrientation:null,ariaOwns:BC,ariaPlaceholder:null,ariaPosInSet:zC,ariaPressed:FC,ariaReadOnly:FC,ariaRelevant:null,ariaRequired:FC,ariaRoleDescription:BC,ariaRowCount:zC,ariaRowIndex:zC,ariaRowSpan:zC,ariaSelected:FC,ariaSetSize:zC,ariaSort:null,ariaValueMax:zC,ariaValueMin:zC,ariaValueNow:zC,ariaValueText:null,role:null}}),nk=UC({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:QC,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:VC,acceptCharset:BC,accessKey:BC,action:null,allow:null,allowFullScreen:jC,allowPaymentRequest:jC,allowUserMedia:jC,alt:null,as:null,async:jC,autoCapitalize:null,autoComplete:BC,autoFocus:jC,autoPlay:jC,blocking:BC,capture:null,charSet:null,checked:jC,cite:null,className:BC,cols:zC,colSpan:null,content:null,contentEditable:FC,controls:jC,controlsList:BC,coords:zC|VC,crossOrigin:null,data:null,dateTime:null,decoding:null,default:jC,defer:jC,dir:null,dirName:null,disabled:jC,download:LC,draggable:FC,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:jC,formTarget:null,headers:BC,height:zC,hidden:jC,high:zC,href:null,hrefLang:null,htmlFor:BC,httpEquiv:BC,id:null,imageSizes:null,imageSrcSet:null,inert:jC,inputMode:null,integrity:null,is:null,isMap:jC,itemId:null,itemProp:BC,itemRef:BC,itemScope:jC,itemType:BC,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:jC,low:zC,manifest:null,max:null,maxLength:zC,media:null,method:null,min:null,minLength:zC,multiple:jC,muted:jC,name:null,nonce:null,noModule:jC,noValidate:jC,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:jC,optimum:zC,pattern:null,ping:BC,placeholder:null,playsInline:jC,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:jC,referrerPolicy:null,rel:BC,required:jC,reversed:jC,rows:zC,rowSpan:zC,sandbox:BC,scope:null,scoped:jC,seamless:jC,selected:jC,shadowRootClonable:jC,shadowRootDelegatesFocus:jC,shadowRootMode:null,shape:null,size:zC,sizes:null,slot:null,span:zC,spellCheck:FC,src:null,srcDoc:null,srcLang:null,srcSet:null,start:zC,step:null,style:null,tabIndex:zC,target:null,title:null,translate:null,type:null,typeMustMatch:jC,useMap:null,value:FC,width:zC,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:BC,axis:null,background:null,bgColor:null,border:zC,borderColor:null,bottomMargin:zC,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:jC,declare:jC,event:null,face:null,frame:null,frameBorder:null,hSpace:zC,leftMargin:zC,link:null,longDesc:null,lowSrc:null,marginHeight:zC,marginWidth:zC,noResize:jC,noHref:jC,noShade:jC,noWrap:jC,object:null,profile:null,prompt:null,rev:null,rightMargin:zC,rules:null,scheme:null,scrolling:FC,standby:null,summary:null,text:null,topMargin:zC,valueType:null,version:null,vAlign:null,vLink:null,vSpace:zC,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:jC,disableRemotePlayback:jC,prefix:null,property:null,results:zC,security:null,unselectable:null}}),rk=UC({space:"svg",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"},transform:qC,properties:{about:GC,accentHeight:zC,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:zC,amplitude:zC,arabicForm:null,ascent:zC,attributeName:null,attributeType:null,azimuth:zC,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:zC,by:null,calcMode:null,capHeight:zC,className:BC,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:zC,diffuseConstant:zC,direction:null,display:null,dur:null,divisor:zC,dominantBaseline:null,download:jC,dx:null,dy:null,edgeMode:null,editable:null,elevation:zC,enableBackground:null,end:null,event:null,exponent:zC,externalResourcesRequired:null,fill:null,fillOpacity:zC,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:VC,g2:VC,glyphName:VC,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:zC,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:zC,horizOriginX:zC,horizOriginY:zC,id:null,ideographic:zC,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:zC,k:zC,k1:zC,k2:zC,k3:zC,k4:zC,kernelMatrix:GC,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:zC,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:zC,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:zC,overlineThickness:zC,paintOrder:null,panose1:null,path:null,pathLength:zC,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:BC,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:zC,pointsAtY:zC,pointsAtZ:zC,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:GC,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:GC,rev:GC,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:GC,requiredFeatures:GC,requiredFonts:GC,requiredFormats:GC,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:zC,specularExponent:zC,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:zC,strikethroughThickness:zC,string:null,stroke:null,strokeDashArray:GC,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:zC,strokeOpacity:zC,strokeWidth:null,style:null,surfaceScale:zC,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:GC,tabIndex:zC,tableValues:null,target:null,targetX:zC,targetY:zC,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:GC,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:zC,underlineThickness:zC,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:zC,values:null,vAlphabetic:zC,vMathematical:zC,vectorEffect:null,vHanging:zC,vIdeographic:zC,version:null,vertAdvY:zC,vertOriginX:zC,vertOriginY:zC,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:zC,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ok=/^data[-\w.:]+$/i,ik=/-[a-z]/g,ak=/[A-Z]/g;function sk(e){return"-"+e.toLowerCase()}function lk(e){return e.charAt(1).toUpperCase()}const ck={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"},uk=MC([KC,JC,ek,tk,nk],"html"),dk=MC([KC,JC,ek,tk,rk],"svg");var fk,pk,hk,mk={};var gk=function(){if(hk)return mk;hk=1;var e=mk&&mk.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mk,"__esModule",{value:!0}),mk.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(pk)return fk;pk=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 fk=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),b(),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 b(){y(n)}function v(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,b(),function(){var e,t=[];for(v(t);e=x();)!1!==e&&(t.push(e),v(t));return t}()},fk}());return mk}(),yk=l(gk),bk=yk.default||yk;const vk=xk("end"),wk=xk("start");function xk(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 Ck(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ek(e.position):"start"in e||"end"in e?Ek(e):"line"in e||"column"in e?kk(e):"":""}function kk(e){return Sk(e&&e.line)+":"+Sk(e&&e.column)}function Ek(e){return kk(e&&e.start)+"-"+kk(e&&e.end)}function Sk(e){return e&&"number"==typeof e?e:1}class Ik 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=Ck(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}}Ik.prototype.file="",Ik.prototype.name="",Ik.prototype.reason="",Ik.prototype.message="",Ik.prototype.stack="",Ik.prototype.column=void 0,Ik.prototype.line=void 0,Ik.prototype.ancestors=void 0,Ik.prototype.cause=void 0,Ik.prototype.fatal=void 0,Ik.prototype.place=void 0,Ik.prototype.ruleId=void 0,Ik.prototype.source=void 0;const _k={}.hasOwnProperty,Ak=new Map,Nk=/[A-Z]/g,Ok=/-([a-z])/g,Rk=new Set(["table","tbody","thead","tfoot","tr"]),Mk=new Set(["td","th"]),Tk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Pk(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=wk(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?dk:uk,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=Dk(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function Dk(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=dk,e.schema=o);e.ancestors.push(t);const i=Bk(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&_k.call(t.properties,o)){const i=zk(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&Mk.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=Lk(e,t);Rk.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&OC(t.value):OC(t));var t})));return jk(e,a,i,t),Fk(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)}Vk(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=dk,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:Bk(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 Vk(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 Vk(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=Lk(e,t);return jk(e,a,i,t),Fk(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);Vk(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Fk(r,Lk(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 jk(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Fk(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Lk(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Ak;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=Dk(e,i,a);void 0!==s&&n.push(s)}return n}function zk(e,t,n){const r=function(e,t){const n=TC(t);let r=t,o=PC;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ok.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(ik,lk);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!ik.test(e)){let n=e.replace(ak,sk);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=$C}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){const n={};try{bk(t,r)}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new Ik("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=Tk+"#cannot-parse-style-attribute",r}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(Ok,Wk)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)_k.call(e,n)&&(t[Gk(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ck[r.property]||r.property:r.attribute,n]}}function Bk(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=AC(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=AC(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 _k.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Vk(e)}function Vk(e,t){const n=new Ik("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=Tk+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Gk(e){let t=e.replace(Nk,Hk);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Wk(e,t){return t.toUpperCase()}function Hk(e){return"-"+e.toLowerCase()}const Xk={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"]},$k={};function Zk(e,t){return Yk(e,"boolean"!=typeof $k.includeImageAlt||$k.includeImageAlt,"boolean"!=typeof $k.includeHtml||$k.includeHtml)}function Yk(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 Uk(e.children,t,n)}return Array.isArray(e)?Uk(e,t,n):""}function Uk(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Yk(e[o],t,n);return r.join("")}const Jk=document.createElement("i");function Kk(e){const t="&"+e+";";Jk.innerHTML=t;const n=Jk.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function qk(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 Qk(e,t){return e.length>0?(qk(e,e.length,0,t),e):t}const eE={}.hasOwnProperty;function tE(e){const t={};let n=-1;for(;++n<e.length;)nE(t,e[n]);return t}function nE(e,t){let n;for(n in t){const r=(eE.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){eE.call(r,i)||(r[i]=[]);const e=o[i];rE(r[i],Array.isArray(e)?e:e?[e]:[])}}}function rE(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);qk(e,0,0,r)}function oE(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 iE(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const aE=bE(/[A-Za-z]/),sE=bE(/[\dA-Za-z]/),lE=bE(/[#-'*+\--9=?A-Z^-~]/);function cE(e){return null!==e&&(e<32||127===e)}const uE=bE(/\d/),dE=bE(/[\dA-Fa-f]/),fE=bE(/[!-/:-@[-`{-~]/);function pE(e){return null!==e&&e<-2}function hE(e){return null!==e&&(e<0||32===e)}function mE(e){return-2===e||-1===e||32===e}const gE=bE(/\p{P}|\p{S}/u),yE=bE(/\s/);function bE(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function vE(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&sE(e.charCodeAt(n+1))&&sE(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 wE(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(mE(r))return e.enter(n),a(r);return t(r)};function a(r){return mE(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const xE={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"),wE(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)):pE(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const CE={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&&b();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 qk(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(kE,u,d)(o)}function u(e){return r&&b(),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(kE,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&b(),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)):pE(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++;qk(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 b(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},kE={tokenize:function(e,t,n){return wE(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function EE(e){return null===e||hE(e)||yE(e)?1:gE(e)?2:void 0}function SE(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 IE={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};_E(d,-s),_E(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=Qk(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Qk(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=Qk(l,SE(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=Qk(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=Qk(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,qk(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=EE(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=EE(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 _E(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const AE={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 aE(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||sE(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||sE(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||cE(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):lE(t)?(e.consume(t),l):n(t)}function c(e){return sE(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||sE(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const NE={partial:!0,tokenize:function(e,t,n){return function(t){return mE(t)?wE(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||pE(e)?t(e):n(e)}}};const OE={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(mE(t))return wE(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(OE,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 mE(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const RE={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 fE(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const ME={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=sE,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=dE,c):(e.enter("characterReferenceValue"),o=7,i=uE,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==sE||Kk(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 TE={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)}}},PE={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"),mE(t)?wE(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"),mE(t)?wE(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||pE(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"),mE(t)?wE(e,c,"whitespace")(t):c(t))}function c(n){return null===n||pE(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(TE,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||pE(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):mE(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),wE(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||pE(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||pE(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,b,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&mE(t)?wE(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||pE(t)?e.check(TE,p,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||pE(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}}};const DE={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),wE(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):pE(t)?e.attempt(jE,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||pE(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},jE={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):pE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):wE(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):pE(e)?o(e):n(e)}}};const FE={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)):pE(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||pE(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 LE{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&&zE(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),zE(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),zE(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);zE(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);zE(this.left,t.reverse())}}}function zE(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 BE(e){const t={};let n,r,o,i,a,s,l,c=-1;const u=new LE(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,VE(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)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 qk(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function VE(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),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 GE={resolve:function(e){return BE(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):pE(t)?e.check(WE,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}}},WE={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"),wE(e,o,"linePrefix")};function o(o){if(null===o||pE(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 HE(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||cE(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||pE(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&&!hE(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||cE(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 XE(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):pE(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||pE(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!mE(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function $E(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):pE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),wE(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||pE(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 ZE(e,t){let n;return function r(o){if(pE(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(mE(o))return wE(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const YE={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return XE.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=iE(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 hE(t)?ZE(e,s)(t):s(t)}function s(t){return HE(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(UE,c,c)(t)}function c(t){return mE(t)?wE(e,u,"whitespace")(t):u(t)}function u(i){return null===i||pE(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},UE={partial:!0,tokenize:function(e,t,n){return function(t){return hE(t)?ZE(e,r)(t):n(t)};function r(t){return $E(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return mE(t)?wE(e,i,"whitespace")(t):i(t)}function i(e){return null===e||pE(e)?t(e):n(e)}}};const JE={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return pE(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const KE={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"},qk(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||hE(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||pE(n)?(e.exit("atxHeading"),t(n)):mE(n)?wE(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||hE(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const qE=["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"],QE=["pre","script","style","textarea"],eS={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:P):aE(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):aE(i)?(e.consume(i),o=4,r.interrupt?t:P):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:P):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:I:f):n(o)}function p(t){return aE(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||hE(s)){const l=47===s,c=a.toLowerCase();return l||i||!QE.includes(c)?qE.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):r.interrupt?t(s):I(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):I(s))}return 45===s||sE(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:I):n(o)}function g(t){return mE(t)?(e.consume(t),g):E(t)}function y(t){return 47===t?(e.consume(t),E):58===t||95===t||aE(t)?(e.consume(t),b):mE(t)?(e.consume(t),y):E(t)}function b(t){return 45===t||46===t||58===t||95===t||sE(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),w):mE(t)?(e.consume(t),v):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):mE(t)?(e.consume(t),w):C(t)}function x(t){return t===l?(e.consume(t),l=null,k):null===t||pE(t)?n(t):(e.consume(t),x)}function C(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||hE(t)?v(t):(e.consume(t),C)}function k(e){return 47===e||62===e||mE(e)?y(e):n(e)}function E(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||pE(t)?I(t):mE(t)?(e.consume(t),S):n(t)}function I(t){return 45===t&&2===o?(e.consume(t),O):60===t&&1===o?(e.consume(t),R):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),P):93===t&&5===o?(e.consume(t),T):!pE(t)||6!==o&&7!==o?null===t||pE(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),I):(e.exit("htmlFlowData"),e.check(tS,j,_)(t))}function _(t){return e.check(nS,A,j)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||pE(t)?_(t):(e.enter("htmlFlowData"),I(t))}function O(t){return 45===t?(e.consume(t),P):I(t)}function R(t){return 47===t?(e.consume(t),a="",M):I(t)}function M(t){if(62===t){const n=a.toLowerCase();return QE.includes(n)?(e.consume(t),D):I(t)}return aE(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),M):I(t)}function T(t){return 93===t?(e.consume(t),P):I(t)}function P(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),P):I(t)}function D(t){return null===t||pE(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),D)}function j(n){return e.exit("htmlFlow"),t(n)}}},tS={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(NE,t,n)}}},nS={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(pE(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 rS={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),b):aE(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):aE(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):pE(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?R(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):pE(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?R(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?R(t):pE(t)?(a=y,M(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):pE(t)?(a=b,M(t)):(e.consume(t),b)}function v(e){return 62===e?R(e):b(e)}function w(t){return aE(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||sE(t)?(e.consume(t),x):C(t)}function C(t){return pE(t)?(a=C,M(t)):mE(t)?(e.consume(t),C):R(t)}function k(t){return 45===t||sE(t)?(e.consume(t),k):47===t||62===t||hE(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),R):58===t||95===t||aE(t)?(e.consume(t),S):pE(t)?(a=E,M(t)):mE(t)?(e.consume(t),E):R(t)}function S(t){return 45===t||46===t||58===t||95===t||sE(t)?(e.consume(t),S):I(t)}function I(t){return 61===t?(e.consume(t),_):pE(t)?(a=I,M(t)):mE(t)?(e.consume(t),I):E(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,A):pE(t)?(a=_,M(t)):mE(t)?(e.consume(t),_):(e.consume(t),N)}function A(t){return t===o?(e.consume(t),o=void 0,O):null===t?n(t):pE(t)?(a=A,M(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||hE(t)?E(t):(e.consume(t),N)}function O(e){return 47===e||62===e||hE(e)?E(e):n(e)}function R(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 mE(t)?wE(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),a(t)}}};const oS={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&&qk(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=Qk(i,e.slice(r+1,r+s+3)),i=Qk(i,[["enter",u,t]]),i=Qk(i,SE(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=Qk(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=Qk(i,e.slice(o+1)),i=Qk(i,[["exit",l,t]]),qk(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(iE(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(iS,c,i?c:u)(t):91===t?e.attempt(aS,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(sS,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},iS={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 hE(t)?ZE(e,o)(t):o(t)}function o(t){return 41===t?c(t):HE(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return hE(t)?ZE(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?$E(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return hE(t)?ZE(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)}}},aS={tokenize:function(e,t,n){const r=this;return function(t){return XE.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(iE(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},sS={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 lS={name:"labelStartImage",resolveAll:oS.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 cS={name:"labelStartLink",resolveAll:oS.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 uS={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),wE(e,t,"linePrefix")}}};const dS={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||pE(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),mE(t)?wE(e,i,"whitespace")(t):i(t))}}};const fS={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(NE,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,wE(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!mE(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(hS,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,wE(e,e.attempt(fS,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:uE(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(dS,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 uE(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(NE,r.interrupt?n:c,e.attempt(pS,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return mE(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)}}},pS={partial:!0,tokenize:function(e,t,n){const r=this;return wE(e,(function(e){const o=r.events[r.events.length-1];return!mE(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},hS={partial:!0,tokenize:function(e,t,n){const r=this;return wE(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 mS={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[r][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"),mE(t)?wE(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||pE(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const gS={tokenize:function(e){const t=this,n=e.attempt(NE,(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,wE(e,e.attempt(this.parser.constructs.flow,r,e.attempt(GE,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 yS={resolveAll:xS()},bS=wS("string"),vS=wS("text");function wS(e){return{resolveAll:xS("text"===e?CS: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 xS(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 CS(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(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 kS={42:fS,43:fS,45:fS,48:fS,49:fS,50:fS,51:fS,52:fS,53:fS,54:fS,55:fS,56:fS,57:fS,62:OE},ES={91:YE},SS={[-2]:DE,[-1]:DE,32:DE},IS={35:KE,42:dS,45:[mS,dS],60:eS,61:mS,95:dS,96:PE,126:PE},_S={38:ME,92:RE},AS={[-5]:uS,[-4]:uS,[-3]:uS,33:lS,38:ME,42:IE,60:[AE,rS],91:cS,92:[JE,RE],93:oS,95:IE,96:FE},NS={null:[IE,yS]};var OS=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ES,disable:{null:[]},document:kS,flow:IS,flowInitial:SS,insideSpan:NS,string:_S,text:AS});function RS(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){pE(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-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,b()},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=Qk(a,e),p(),null!==a[a.length-1])return[];return y(t,0),c.events=SE(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,b()}}(),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&&qk(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const MS=/[\0\t\n\r]/g;const TS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function PS(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return oE(n.slice(t?2:1),t?16:10)}return Kk(n)||e}const DS={}.hasOwnProperty;function jS(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:S,autolinkEmail:S,atxHeading:i(K),blockQuote:i($),characterEscape:S,characterReference:S,codeFenced:i(Z),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Z,a),codeText:i(Y,a),codeTextData:S,data:S,codeFlowValue:S,definition:i(U),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(J),hardBreakEscape:i(q),hardBreakTrailing:i(q),htmlFlow:i(Q,a),htmlFlowData:S,htmlText:i(Q,a),htmlTextData:S,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:z,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(K),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:X,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:G,characterReference:W,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:I,codeIndented:l(y),codeText:l(R),codeTextData:I,data:I,definition:l(),definitionDestinationString:w,definitionLabelString:b,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(A),hardBreakTrailing:l(A),htmlFlow:l(N),htmlFlowData:I,htmlText:l(O),htmlTextData:I,image:l(T),label:D,labelText:P,lineEnding:_,link:l(M),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:B,resourceDestinationString:j,resourceTitleString:F,resource:L,setextHeading:l(E),setextHeadingLineSequence:k,setextHeadingText:C,strong:l(),thematicBreak:l()}};LS(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]];DS.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]||BS).call(i,void 0,e[0])}for(r.position={start:FS(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:FS(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:FS(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+"` ("+Ck({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]||BS).call(this,e,r[0])}n.position.end=FS(e.end)}function u(){return Zk(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 b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=iE(this.sliceSerialize(e)).toLowerCase()}function v(){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 C(){this.data.setextHeadingSlurpLineEnding=!0}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function S(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:FS(e.start),end:void 0},t.push(n)),this.stack.push(n)}function I(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=FS(e.end)}function _(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=FS(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),I.call(this,e))}function A(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){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 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 P(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(TS,PS)}(t),n.identifier=iE(t).toLowerCase()}function D(){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 j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function F(){const e=this.resume();this.stack[this.stack.length-1].title=e}function L(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function B(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=iE(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function V(e){this.data.characterReferenceType=e.type}function G(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=oE(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Kk(t)}this.stack[this.stack.length-1].value+=r}function W(e){this.stack.pop().position.end=FS(e.end)}function H(e){I.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function X(e){I.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function $(){return{type:"blockquote",children:[]}}function Z(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function U(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function K(){return{type:"heading",depth:0,children:[]}}function q(){return{type:"break"}}function Q(){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(;!BE(e););return e}(function(e){const t={constructs:tE([OS,...(e||{}).extensions||[]]),content:n(xE),defined:[],document:n(CE),flow:n(gS),lazy:{},string:n(bS),text:n(vS)};return t;function n(e){return function(n){return RS(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(MS.lastIndex=u,l=MS.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 FS(e){return{line:e.line,column:e.column,offset:e.offset}}function LS(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?LS(e,r):zS(e,r)}}function zS(e,t){let n;for(n in t)if(DS.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 BS(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ck({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ck({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ck({start:t.start,end:t.end})+") is still open")}function VS(e){const t=this;t.parser=function(n){return jS(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function GS(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 WS(e){const t=e.spread;return null==t?e.children.length>1:t}function HS(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(XS(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(XS(t.slice(o),o>0,!1)),i.join("")}function XS(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 $S={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=vE(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 GS(e,t);const o={src:vE(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:vE(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 GS(e,t);const o={href:vE(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:vE(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=WS(n[r])}return t}(n):WS(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=wk(t.children[1]),a=vk(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:HS(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:ZS,yaml:ZS,definition:ZS,footnoteDefinition:ZS};function ZS(){}const YS="object"==typeof self?self:globalThis,US=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 YS[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 YS[i](a),o)};return r})(new Map,e)(0),JS="",{toString:KS}={},{keys:qS}=Object,QS=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=KS.call(e).slice(8,-1);switch(n){case"Array":return[1,JS];case"Object":return[2,JS];case"Date":return[3,JS];case"RegExp":return[4,JS];case"Map":return[5,JS];case"Set":return[6,JS];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},eI=([e,t])=>0===e&&("function"===t||"symbol"===t),tI=(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]=QS(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 qS(r))!e&&eI(QS(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||!eI(QS(n))&&!eI(QS(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&eI(QS(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 nI="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?US(tI(e,t)):structuredClone(e):(e,t)=>US(tI(e,t));function rI(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 oI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const iI=function(e){if(null==e)return sI;if("function"==typeof e)return aI(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=iI(e[n]);return aI(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 aI(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 aI(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function aI(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 sI(){return!0}const lI=[],cI=!0,uI=!1;function dI(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=iI(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=lI;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[cI,e];return null==e?lI:[e]}(n(o,l)),f[0]===uI))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]===uI)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}function fI(e,t,n,r){let o,i,a;"function"==typeof t?(i=void 0,a=t,o=n):(i=t,a=n,o=r),dI(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 pI={}.hasOwnProperty,hI={};function mI(e,t){e.position&&(t.position=function(e){const t=wk(e),n=vk(e);if(t&&n)return{start:t,end:n}}(e))}function gI(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,nI(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function yI(e,t){const n=t.data||{},r=!("value"in t)||pI.call(n,"hProperties")||pI.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 bI(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 vI(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function wI(e,t){const n=function(e,t){const n=t||hI,r=new Map,o=new Map,i=new Map,a={...$S,...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=vI(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=vI(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:gI,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(pI.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=nI(n);return r.children=s.all(e),r}return nI(e)}return(s.options.unknownHandler||yI)(s,e,t)},options:n,patch:mI,wrap:bI};return fI(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||rI,r=e.options.footnoteBackLabel||oI,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=vE(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:{...nI(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 xI(e,t){return e&&"run"in e?async function(n,r){const o=wI(n,{file:r,...t});await e.run(o,r)}:function(n,r){return wI(n,{file:r,...e||t})}}function CI(e){if(e)throw e}var kI,EI;var SI=function(){if(EI)return kI;EI=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 kI=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},kI}(),II=l(SI);function _I(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 AI(){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 NI={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');OI(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(OI(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){OI(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;)OI(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){OI(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 OI(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const RI={cwd:function(){return"/"}};function MI(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function TI(e){if("string"==typeof e)e=new URL(e);else if(!MI(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 PI=["history","path","basename","stem","extname","dirname"];class DI{constructor(e){let t;t=e?MI(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?"":RI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<PI.length;){const e=PI[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)PI.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?NI.basename(this.path):void 0}set basename(e){FI(e,"basename"),jI(e,"basename"),this.path=NI.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?NI.dirname(this.path):void 0}set dirname(e){LI(this.basename,"dirname"),this.path=NI.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?NI.extname(this.path):void 0}set extname(e){if(jI(e,"extname"),LI(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=NI.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){MI(e)&&(e=TI(e)),FI(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?NI.basename(this.path,this.extname):void 0}set stem(e){FI(e,"stem"),jI(e,"stem"),this.path=NI.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 Ik(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 jI(e,t){if(e&&e.includes(NI.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+NI.sep+"`")}function FI(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function LI(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const zI=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},BI={}.hasOwnProperty;class VI extends zI{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=AI()}copy(){const e=new VI;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(II(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(XI("data",this.frozen),this.namespace[e]=t,this):BI.call(this.namespace,e)&&this.namespace[e]||void 0:e?(XI("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=YI(e),n=this.parser||this.Parser;return WI("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),WI("process",this.parser||this.Parser),HI("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=YI(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(),WI("processSync",this.parser||this.Parser),HI("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,CI(e),t=r})),ZI("processSync","process",n),t}run(e,t,n){$I(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=YI(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){CI(e),n=t,r=!0})),ZI("runSync","run",r),n}stringify(e,t){this.freeze();const n=YI(t),r=this.compiler||this.Compiler;return HI("stringify",r),$I(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(XI("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=II(!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];_I(a)&&_I(r)&&(r=II(!0,a,r)),n[o]=[e,r,...i]}}}}const GI=(new VI).freeze();function WI(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function HI(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function XI(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 $I(e){if(!_I(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ZI(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function YI(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new DI(e)}const UI=[],JI={allowDangerousHtml:!0},KI=/^(https?|ircs?|mailto|xmpp)$/i,qI=[{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 QI(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,a=e.disallowedElements,s=e.rehypePlugins||UI,l=e.remarkPlugins||UI,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...JI}:JI,u=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||e_,p=GI().use(VS).use(l).use(xI,c).use(s),h=new DI;"string"==typeof r&&(h.value=r);for(const t of qI)Object.hasOwn(e,t.from)&&(t.from,t.to&&t.to,t.id);const m=p.parse(h);let g=p.runSync(m,h);return o&&(g={type:"element",tagName:"div",properties:{className:o},children:"root"===g.type?g.children:[g]}),fI(g,(function(e,r,o){if("raw"===e.type&&o&&"number"==typeof r)return u?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in Xk)if(Object.hasOwn(Xk,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Xk[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=f(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&n&&"number"==typeof r&&(i=!n(e,r,o)),i&&o&&"number"==typeof r)return d&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}})),Pk(g,{Fragment:Bu.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Bu.jsx,jsxs:Bu.jsxs,passKeys:!0,passNode:!0})}function e_(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||KI.test(e.slice(0,t))?e:""}function t_(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 n_(e,t,n){const r=iI((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([r_(e[0]),o_(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)dI(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.global)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 r_(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 o_(e){return"function"==typeof e?e:function(){return e}}const i_="phrasing",a_=["autolink","link","image","label"];function s_(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function l_(e){this.config.enter.autolinkProtocol.call(this,e)}function c_(e){this.config.exit.autolinkProtocol.call(this,e)}function u_(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 d_(e){this.config.exit.autolinkEmail.call(this,e)}function f_(e){this.exit(e)}function p_(e){n_(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,h_],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,m_]],{ignore:["link","linkReference"]})}function h_(e,t,n,r,o){let i="";if(!g_(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=t_(e,"(");let i=t_(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 m_(e,t,n,r){return!(!g_(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function g_(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||yE(n)||gE(n))&&(!t||47!==n)}function y_(){this.buffer()}function b_(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function v_(){this.buffer()}function w_(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function x_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=iE(this.sliceSerialize(e)).toLowerCase(),n.label=t}function C_(e){this.exit(e)}function k_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=iE(this.sliceSerialize(e)).toLowerCase(),n.label=t}function E_(e){this.exit(e)}function S_(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 I_(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?A_:__)));return s(),a},footnoteReference:S_},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function __(e,t,n){return 0===t?e:A_(e,t,n)}function A_(e,t,n){return(n?"":" ")+e}S_.peek=function(){return"["};const N_=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function O_(e){this.enter({type:"delete",children:[]},e)}function R_(e){this.exit(e)}function M_(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 T_(e){return e.length}function P_(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 D_(e,t,n){return">"+(n?"":" ")+e}function j_(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 F_(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],j_(i,a.inConstruct,!0)&&!j_(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function L_(e,t,n){return(n?"":" ")+e}function z_(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 B_(e){return"&#x"+e.toString(16).toUpperCase()+";"}function V_(e,t,n){const r=EE(e),o=EE(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 G_(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=V_(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=B_(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=V_(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+B_(d));const p=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}function W_(e){return e.value||""}function H_(e,t,n,r){const o=z_(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 X_(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 $_(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 Z_(e,t){const n=Zk(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 Y_(e,t,n,r){const o=z_(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Z_(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 U_(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 J_(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 K_(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}M_.peek=function(){return"~"},G_.peek=function(e,t,n){return n.options.emphasis||"*"},W_.peek=function(){return"<"},H_.peek=function(){return"!"},X_.peek=function(){return"!"},$_.peek=function(){return"`"},Y_.peek=function(e,t,n){return Z_(e,n)?"<":"["},U_.peek=function(){return"["};const q_=iI(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Q_(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=V_(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=B_(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=V_(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+B_(d));const p=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}Q_.peek=function(e,t,n){return n.options.strong||"*"};const eA={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()),D_);return o(),a},break:F_,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,L_);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=z_(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:G_,hardBreak:F_,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 fI(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,uI})),Boolean((!e.depth||e.depth<3)&&Zk(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=B_(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:W_,image:H_,imageReference:X_,inlineCode:$_,link:Y_,linkReference:U_,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):J_(n);const s=e.ordered?"."===a?")":".":function(e){const t=J_(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),K_(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||J_(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 q_(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Q_,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(K_(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 tA(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 nA(e){this.exit(e),this.data.inTable=void 0}function rA(e){this.enter({type:"tableRow",children:[]},e)}function oA(e){this.exit(e)}function iA(e){this.enter({type:"tableCell",children:[]},e)}function aA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,sA));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function sA(e,t){return"|"===t?t:e}function lA(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=eA.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||T_,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]=P_(r[f]);else{const e=P_(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 cA(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function uA(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 dA(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=eA.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}const fA={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},pA={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(mA,l,s)(t):null===t||hE(t)||yE(t)||45!==t&&gE(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},hA={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(mA,t,i)(a):null===a||hE(a)||yE(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},mA={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||hE(a)||yE(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||hE(e)||yE(e)?t(e):r(e)}function i(e){return aE(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):aE(t)?(e.consume(t),a):n(t)}},partial:!0},gA={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return sE(e)?n(e):t(e)}},partial:!0},yA={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!CA.call(r,r.previous)||IA(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(fA,e.attempt(pA,e.attempt(hA,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:CA},bA={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&kA.call(r,r.previous)&&!IA(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(aE(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||cE(t)||hE(t)||yE(t)||gE(t)?n(t):e.attempt(pA,e.attempt(hA,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:kA},vA={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!SA(t)||!EA.call(r,r.previous)||IA(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return SA(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(gA,c,l)(t):45===t||95===t||sE(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&&aE(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:EA},wA={};let xA=48;for(;xA<123;)wA[xA]=vA,xA++,58===xA?xA=65:91===xA&&(xA=97);function CA(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||hE(e)}function kA(e){return!aE(e)}function EA(e){return!(47===e||SA(e))}function SA(e){return 43===e||45===e||46===e||95===e||sE(e)}function IA(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}wA[43]=vA,wA[45]=vA,wA[46]=vA,wA[95]=vA,wA[72]=[vA,bA],wA[104]=[vA,bA],wA[87]=[vA,yA],wA[119]=[vA,yA];const _A={tokenize:function(e,t,n){const r=this;return wE(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 AA(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=iE(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 NA(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 OA(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||hE(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(iE(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return hE(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 RA(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||hE(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=iE(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return hE(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),wE(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function MA(e,t,n){return e.check(NE,t,e.attempt(_A,t,n))}function TA(e){e.exit("gfmFootnoteDefinition")}function PA(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=EE(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=EE(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&&qk(a,a.length,0,SE(s,e.slice(r+1,n),t)),qk(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),qk(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 DA{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 jA(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 FA(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):pE(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):mE(t)?wE(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||hE(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,mE(t)?wE(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):v(t)}function p(t){return mE(t)?wE(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||pE(t)?b(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):v(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 mE(t)?wE(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?f(n):(null===n||pE(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(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||pE(n)?(e.exit("tableRow"),t(n)):mE(n)?wE(e,x,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||hE(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?k:C)}function k(t){return 92===t||124===t?(e.consume(t),C):C(t)}}function LA(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 DA;for(;++i<e.length;){const p=e[i],h=p[1];"enter"===p[0]?"tableHead"===h.type?(u=!1,0!==d&&(BA(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=zA(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=zA(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=zA(f,t,l,s,i,o)):0!==c[1]&&(o=zA(f,t,c,s,i,o)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==d&&BA(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=jA(t.events,i))}return e}function zA(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},VA(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=VA(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=VA(t.events,n[2]),i=VA(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({},VA(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function BA(e,t,n,r,o){const i=[],a=VA(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 VA(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const GA={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 hE(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 pE(r)?t(r):mE(r)?e.check({tokenize:WA},t,n)(r):n(r)}}};function WA(e,t,n){return wE(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const HA={};function XA(e){const t=e||HA,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return tE([{text:wA},{document:{91:{name:"gfmFootnoteDefinition",tokenize:RA,continuation:{tokenize:MA},exit:TA}},text:{91:{name:"gfmFootnoteCall",tokenize:OA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:AA,resolveTo:NA}}},PA(e),{flow:{null:{name:"table",tokenize:FA,resolveAll:LA}}},{text:{91:GA}}])}(t)),o.push([{transforms:[p_],enter:{literalAutolink:s_,literalAutolinkEmail:l_,literalAutolinkHttp:l_,literalAutolinkWww:l_},exit:{literalAutolink:f_,literalAutolinkEmail:d_,literalAutolinkHttp:c_,literalAutolinkWww:u_}},{enter:{gfmFootnoteCallString:y_,gfmFootnoteCall:b_,gfmFootnoteDefinitionLabelString:v_,gfmFootnoteDefinition:w_},exit:{gfmFootnoteCallString:x_,gfmFootnoteCall:C_,gfmFootnoteDefinitionLabelString:k_,gfmFootnoteDefinition:E_}},{canContainEols:["delete"],enter:{strikethrough:O_},exit:{strikethrough:R_}},{enter:{table:tA,tableData:iA,tableHeader:iA,tableRow:rA},exit:{codeText:aA,table:nA,tableData:oA,tableHeader:oA,tableRow:oA}},{exit:{taskListCheckValueChecked:cA,taskListCheckValueUnchecked:cA,paragraph:uA}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:i_,notInConstruct:a_},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:i_,notInConstruct:a_},{character:":",before:"[ps]",after:"\\/",inConstruct:i_,notInConstruct:a_}]},I_(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:N_}],handlers:{delete:M_}},lA(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:dA}}]}}(t))}const $A=({item:t})=>{const n=e.useContext(zV);return o.createElement("div",{className:"libnodeentry",onClick:e=>{2===e.detail&&n.worker?.add_node(t.node_id)},title:t.description},t.node_name||t.node_id)},ZA=(e,t)=>{const n=e.nodes?.some((e=>e.node_id.toLowerCase().includes(t.toLowerCase())))??!1,r=e.subshelves?.some((e=>ZA(e,t)))??!1;return n||r},YA=({item:t,filter:n,parentkey:r})=>{const[i,a]=e.useState(!1),s=t.nodes?.filter((e=>e.node_id.toLowerCase().includes(n.toLowerCase()))),l=i||n.length>0;return ZA(t,n)?o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>a(!i),style:{cursor:"pointer"},title:t.description},o.createElement("div",{className:"shelftitle_text"},t.name),o.createElement("div",{className:"expandicon "+(l?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(l?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},s&&o.createElement(o.Fragment,null,s.map((e=>o.createElement($A,{key:e.node_id,item:e})))),t.subshelves&&o.createElement(o.Fragment,null,t.subshelves.map((e=>o.createElement(YA,{key:r+e.name,item:e,filter:n,parentkey:r+e.name})))))),o.createElement("hr",null)):o.createElement(o.Fragment,null)},UA=({filter:e,setFilter:t})=>o.createElement("div",{className:"libfilter"},o.createElement(Yy,{fontSize:"inherit"}),o.createElement("input",{type:"text",placeholder:"Filter",value:e,onChange:e=>{t(e.target.value)}}),e&&o.createElement(Wy,{fontSize:"inherit",onClick:()=>{t("")}})),JA=[">=","==","<=","<",">"],KA=">=",qA=({availableModule:e})=>o.createElement("div",{className:"module-links"},e.homepage&&o.createElement(o.Fragment,null,o.createElement("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer"},"Homepage")),e.source&&e.homepage&&" | ",e.source&&o.createElement(o.Fragment,null,o.createElement("a",{href:e.source,target:"_blank",rel:"noopener noreferrer"},"Source"))),QA=({availableModule:t})=>{const[n,r]=e.useState(!1),i=t.description.length>150?t.description.substring(0,150)+"...":t.description;return o.createElement("div",{className:"module-description"},o.createElement(QI,{remarkPlugins:[XA]},n?t.description.replace(/\\n/g," \n"):i.replace(/\\n/g," \n")),t.description.length>150&&o.createElement("button",{onClick:()=>r(!n),className:"toggle-description"},n?"Show less":"Show more"))},eN=({availableModule:t,on_change:n})=>{const[r,i]=e.useState(t.version||"latest"),[a,s]=e.useState(KA);return t.releases&&!t.releases.includes(r)&&t.releases.unshift(r),o.createElement(o.Fragment,null,o.createElement("select",{value:a,onChange:e=>{e.target.value!==a&&JA.includes(e.target.value)&&(s(e.target.value),"latest"!==r&&n(e.target.value+r))}},JA.map((e=>o.createElement("option",{key:e,value:e},e)))),o.createElement("select",{onChange:e=>{const t=e.target.value;i(t),n("latest"!==t?a+t:t)},value:r},t.releases&&t.releases.map((e=>o.createElement("option",{key:e,value:e},e)))))},tN=({availableModule:t,on_remove:n,on_update:r})=>{const[i,a]=e.useState(KA+t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name+(t.version?` (${t.version})`:"")),o.createElement(qA,{availableModule:t}),o.createElement(QA,{availableModule:t}),o.createElement("div",null,o.createElement(eN,{availableModule:t,on_change:a}),o.createElement("button",{className:"update-button",disabled:i===t.version,onClick:()=>{r(t,i)}},"Update"),o.createElement("button",{className:"remove-button",onClick:()=>{n(t)}},"Remove")))},nN=({availableModule:t,on_add:n})=>{const[r,i]=e.useState(KA+t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name+(t.version?` (${t.version})`:"")),o.createElement(qA,{availableModule:t}),o.createElement(QA,{availableModule:t}),o.createElement("div",null,o.createElement(eN,{availableModule:t,on_change:i}),o.createElement("button",{className:"add-button",onClick:()=>{n(t,r)}},"Add")))},rN=({availableModule:t,on_add:n})=>{const[r,i]=e.useState(KA+t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name),o.createElement(qA,{availableModule:t}),o.createElement(QA,{availableModule:t}),o.createElement("div",null,o.createElement(eN,{availableModule:t,on_change:i}),o.createElement("button",{className:"add-button",onClick:()=>{n(t,r)}},"Add")))},oN=({children:t})=>{const[n,r]=e.useState(""),i=e.useContext(zV),[a,s]=e.useState(!0),[l,c]=e.useState(!0),[u,d]=e.useState(!0),[f,p]=e.useState({installed:[],available:[],active:[]}),[h,m]=e.useState(!1);if(!i.worker)return o.createElement(o.Fragment,null);const g=(e,t)=>{m(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},y=(e,t)=>{m(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},b=e=>{m(!1),void 0!==i.worker&&i.worker.remove_lib(e.name)},v=(e,t)=>{m(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},w=e=>e.filter((e=>e.name.toLowerCase().includes(n.toLowerCase())||e.description.toLowerCase().includes(n.toLowerCase()))),x=w(f.available),C=w(f.installed),k=w(f.active);return o.createElement(Uy,{title:"Manage Library",trigger:t,description:"Add or remove libraries to the current worker.",onOpenChange:e=>{e&&void 0!==i.worker&&i.worker.is_open&&i.worker.get_available_modules().then((e=>{p(e)}))},open:h,setOpen:m},o.createElement("input",{className:"filter-input styledinput",type:"text",placeholder:"Filter modules...",value:n,onChange:e=>r(e.target.value)}),o.createElement("div",{className:"packagelist",style:{maxHeight:"70%",overflow:"auto"}},C.length>0&&o.createElement("h3",{onClick:()=>{d(!u)}},"Installed"),u&&C.map((e=>o.createElement(nN,{key:e.name+e.source,availableModule:e,on_add:g}))),x.length>0&&o.createElement("h3",{onClick:()=>{c(!l)}},"Available"),l&&x.map((e=>o.createElement(rN,{key:e.name+e.source,availableModule:e,on_add:y}))),k.length>0&&o.createElement("h3",{onClick:()=>{s(!a)}},"Active"),a&&k.map((e=>o.createElement(tN,{key:e.name+e.source,availableModule:e,on_remove:b,on_update:v})))))},iN=({ins:t})=>{const[n,r]=e.useState(t.name),i=e.useContext(zV);return o.createElement(o.Fragment,null,o.createElement(Uy,{title:t.name,description:"Settings for"+t.name,trigger:o.createElement("div",null,"Settings"),buttons:[{text:"Save",onClick:()=>{i.worker&&(i.worker.update_external_worker(t.uuid,t.nodeclassid,{name:n}),t.name=n)},close:!0},{text:"Delete",onClick:()=>{i.worker&&i.worker.remove_external_worker(t.uuid,t.nodeclassid)},close:!0}]},o.createElement("div",null,o.createElement("div",null,o.createElement("label",{htmlFor:"name"},"Name: "),o.createElement("input",{type:"text",name:"name",value:n,onChange:e=>r(e.target.value),className:"styledinput"})))))},aN=({ins:t,lib:n,filter:r="",parentkey:i})=>{const[a,s]=e.useState(!1),l=n?.nodes?.filter((e=>e.node_id.toLowerCase().includes(r.toLowerCase())));return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>s(!a),style:{cursor:"pointer"},title:t.name},o.createElement("div",{className:"shelftitle_text"},t.name),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},a&&o.createElement(o.Fragment,null,o.createElement("div",{className:"libnodeentry",title:t.uuid},o.createElement(iN,{ins:t})),n&&o.createElement(o.Fragment,null,l&&o.createElement(o.Fragment,null,l.map((e=>o.createElement($A,{key:e.node_id,item:e})))),n.subshelves.map((e=>o.createElement(YA,{key:i+e.name,item:e,filter:r,parentkey:i+e.name}))))))))},sN=({item:t,mod:n,lib:r})=>{const i=e.useContext(zV),[a,s]=e.useState(!1),l=t.name||t.module+"."+t.class_name;return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>s(!a),style:{cursor:"pointer"},title:l},o.createElement("div",{className:"shelftitle_text"},l),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},a&&o.createElement(o.Fragment,null,o.createElement("div",{className:"libnodeentry",onClick:e=>{2===e.detail&&i.worker?.add_external_worker({module:n,cls_module:t.module,cls_name:t.class_name})},title:t.name},"New Instance"),t.instances.map((e=>o.createElement(aN,{key:e.uuid,ins:e,lib:r?.subshelves.find((t=>t.name===e.uuid)),parentkey:e.uuid})))))))},lN=({externalworkermod:t,lib:n})=>{const[r,i]=e.useState(!1),a=r;return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>i(!r),style:{cursor:"pointer"},title:t.module},o.createElement("div",{className:"shelftitle_text"},t.module),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(Gy,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},t.worker_classes.map((e=>o.createElement(sN,{key:e.module+e.class_name,item:e,mod:t.module,lib:n}))))),o.createElement("hr",null))},cN=()=>{const t=e.useContext(zV),n=t.lib.libstate(),r=o.useContext(zV),i=r.local_settings((e=>e.view_settings.expand_lib)),a=r.local_settings((e=>e.update_view_settings)),s=gC("m"),[l,c]=e.useState(""),u=t.worker?.state((e=>e.is_open))??!1;return o.createElement(bC,{maxSize:s?"100%":"300px",direction:s?"down":"right",containerClassName:"pos-left pos-top bg1 h-12",onExpandChange:e=>{a({expand_lib:e})},expanded:void 0===i||i},o.createElement("div",{className:"libcontainer"},o.createElement("div",{className:"library"},o.createElement("div",{className:"libtitle"},"Lib"),o.createElement("hr",{className:"hr_prominent"}),o.createElement(UA,{filter:l,setFilter:c}),o.createElement("div",{className:"vscrollcontainer"},n.lib.shelves.map((e=>"_external_worker"==e.name?o.createElement(o.Fragment,null):o.createElement(YA,{key:e.name,item:e,filter:l,parentkey:e.name})))),o.createElement("hr",null),o.createElement("div",{className:"libtitle"},"External Worker"),o.createElement("hr",{className:"hr_prominent"}),o.createElement("div",{className:"vscrollcontainer"},n.external_worker?.map((e=>o.createElement(lN,{key:e.module,externalworkermod:e,lib:n.lib.shelves.find((e=>"_external_worker"===e.name))})))),o.createElement("hr",null)),o.createElement("div",{style:{paddingTop:"0.5rem"}}),u&&o.createElement("div",{className:"addlib"},o.createElement(oN,null,o.createElement("button",null,"Manage Libraries")))))};const{useRef:uN}=e;function dN(e){const t=uN();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 fN="Popover",[pN,hN]=Vu(fN,[Mv]),mN=Mv(),[gN,yN]=pN(fN),bN=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=mN(t),c=o.useRef(null),[u,d]=o.useState(!1),[f=!1,p]=Yu({prop:r,defaultProp:i,onChange:a});return Bu.jsx(Yv,{...l,children:Bu.jsx(gN,{scope:t,contentId:$u(),triggerRef:c,open:f,onOpenChange:p,onOpenToggle:o.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:u,onCustomAnchorAdd:o.useCallback((()=>d(!0)),[]),onCustomAnchorRemove:o.useCallback((()=>d(!1)),[]),modal:s,children:n})})};bN.displayName=fN;var vN="PopoverAnchor";o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,i=yN(vN,n),a=mN(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return o.useEffect((()=>(s(),()=>l())),[s,l]),Bu.jsx(Uv,{...a,...r,ref:t})})).displayName=vN;var wN="PopoverTrigger",xN=o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=yN(wN,n),i=mN(n),a=Mu(t,o.triggerRef),s=Bu.jsx(Qu.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":TN(o.open),...r,ref:a,onClick:Nu(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:Bu.jsx(Uv,{asChild:!0,...i,children:s})}));xN.displayName=wN;var CN="PopoverPortal",[kN,EN]=pN(CN,{forceMount:void 0}),SN=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=yN(CN,t);return Bu.jsx(kN,{scope:t,forceMount:n,children:Bu.jsx(xd,{present:n||i.open,children:Bu.jsx(wd,{asChild:!0,container:o,children:r})})})};SN.displayName=CN;var IN="PopoverContent",_N=o.forwardRef(((e,t)=>{const n=EN(IN,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=yN(IN,e.__scopePopover);return Bu.jsx(xd,{present:r||i.open,children:i.modal?Bu.jsx(AN,{...o,ref:t}):Bu.jsx(NN,{...o,ref:t})})}));_N.displayName=IN;var AN=o.forwardRef(((e,t)=>{const n=yN(IN,e.__scopePopover),r=o.useRef(null),i=Mu(t,r),a=o.useRef(!1);return o.useEffect((()=>{const e=r.current;if(e)return xf(e)}),[]),Bu.jsx(hf,{as:Uu,allowPinchZoom:!0,children:Bu.jsx(ON,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Nu(e.onCloseAutoFocus,(e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()})),onPointerDownOutside:Nu(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:Nu(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),NN=o.forwardRef(((e,t)=>{const n=yN(IN,e.__scopePopover),r=o.useRef(!1),i=o.useRef(!1);return Bu.jsx(ON,{...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,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,a=n.triggerRef.current?.contains(o);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})})),ON=o.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=yN(IN,n),p=mN(n);return Ed(),Bu.jsx(pd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:Bu.jsx(ad,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:Bu.jsx(Jv,{"data-state":TN(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)"}})})})})),RN="PopoverClose";o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=yN(RN,n);return Bu.jsx(Qu.button,{type:"button",...r,ref:t,onClick:Nu(e.onClick,(()=>o.onOpenChange(!1)))})})).displayName=RN;var MN=o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=mN(n);return Bu.jsx(Kv,{...o,...r,ref:t})}));function TN(e){return e?"open":"closed"}MN.displayName="PopoverArrow";var PN,DN,jN,FN,LN,zN,BN,VN,GN=bN,WN=xN,HN=SN,XN=_N,$N=MN;function ZN(){if(FN)return jN;FN=1;const e=DN?PN:(DN=1,PN={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"]}};jN=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]},jN}function YN(){if(zN)return LN;zN=1;const e=ZN();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 LN=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},LN}var UN=function(){if(VN)return BN;VN=1;const e=ZN(),t=YN(),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)}))})),BN=n}(),JN=r({__proto__:null,default:l(UN)},[UN]);const KN=(e,t)=>{const n=Array.isArray(t)?t:[t];if(void 0===n[0]||null===n[0])return KN("rgb",[0,0,0]);const r=JN[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 KN("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},qN=({onChange:t,colorconverter:n,allow_null:r=!1})=>{if(null===n&&!r)throw new Error("Color converter is null");const[i,a]=e.useState(n),[s,l]=e.useState([0,0,0]),[c,u]=e.useState([0,0,0]),[d,f]=e.useState([0,0,0]),[p,h]=e.useState("000");e.useEffect((()=>{if(!i){if(!r)throw new Error("Color converter is null");return u([0,0,0]),l([0,0,0]),f([0,0,0]),void h("")}l(i.hsl()),u(i.rgb()),f(i.hsv()),h(i.hex())}),[i]);const m={backgroundColor:`hsl(${s[0]}, ${s[1]}%, ${s[2]}%)`,padding:"10px",margin:"10px 0"};return o.createElement("div",{style:{backgroundColor:"white"}},o.createElement("div",{style:m},"Color Preview"),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"RGB"),o.createElement("div",null),o.createElement("label",null,"Red"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[0],onChange:e=>{const n=[parseInt(e.target.value),c[1],c[2]],r=KN("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #f00)"}}),o.createElement("label",null,"Green"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[1],onChange:e=>{const n=[c[0],parseInt(e.target.value),c[2]],r=KN("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #0f0)"}}),o.createElement("label",null,"Blue"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[2],onChange:e=>{const n=[c[0],c[1],parseInt(e.target.value)],r=KN("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #00f)"}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HSL"),o.createElement("div",null),o.createElement("label",null,"Hue"),o.createElement("input",{type:"range",min:"0",max:"360",value:s[0],onChange:e=>{const n=[parseInt(e.target.value),s[1],s[2]],r=KN("hsl",n);a(r),t(r)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),o.createElement("label",null,"Saturation"),o.createElement("input",{type:"range",min:"0",max:"100",value:s[1],onChange:e=>{const n=[s[0],parseInt(e.target.value),s[2]],r=KN("hsl",n);a(r),t(r)},style:{background:`linear-gradient(to right, #fff, hsl(${s[0]}, 100%, 50%))`}}),o.createElement("label",null,"Lightness"),o.createElement("input",{type:"range",min:"0",max:"100",value:s[2],onChange:e=>{const n=[s[0],s[1],parseInt(e.target.value)],r=KN("hsl",n);a(r),t(r)},style:{background:`linear-gradient(to right, #000, hsl(${s[0]}, 100%, 50%), #fff)`}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HSV"),o.createElement("div",null),o.createElement("label",null,"Hue"),o.createElement("input",{type:"range",min:"0",max:"360",value:d[0],onChange:e=>{const n=[parseInt(e.target.value),d[1],d[2]],r=KN("hsv",n);a(r),t(r)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),o.createElement("label",null,"Saturation"),o.createElement("input",{type:"range",min:"0",max:"100",value:d[1],onChange:e=>{const n=[d[0],parseInt(e.target.value),d[2]],r=KN("hsv",n);a(r),t(r)},style:{background:`linear-gradient(to right, #fff, hsl(${s[0]}, 100%, 50%))`}}),o.createElement("label",null,"Value"),o.createElement("input",{type:"range",min:"0",max:"100",value:d[2],onChange:e=>{const n=[d[0],d[1],parseInt(e.target.value)],r=KN("hsv",n);a(r),t(r)},style:{background:`linear-gradient(to right, #000, hsl(${s[0]}, 100%, 50%))`}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HEX"),o.createElement("div",null),o.createElement("input",{type:"text",value:p,onChange:e=>{const n=""===e.target.value?null:KN("hex",[e.target.value]);a(n),t(n)}})))},QN=({inicolordata:t,inicolorspace:n,allow_null:r=!1,delay:i=1e3,onChange:a})=>{const s=void 0!==t?t:[0,0,0],l=void 0===t?"rgb":n||"hex",c=Array.isArray(s)?s:[s],u=e.useMemo((()=>{let e=KN(l,c);return void 0===e.rgb()&&(e=KN("rgb",[0,0,0])),e}),[l,c]),[d,f]=e.useState(u);e.useEffect((()=>{const e=void 0!==t?t:[0,0,0],r=void 0===t?"rgb":n||"hex",o=Array.isArray(e)?e:[e];let i=KN(r,o);void 0===i.rgb()&&(i=KN("rgb",[0,0,0])),f(i)}),[JSON.stringify(t),n]);const p=e.useContext(zV),h=p.local_state((()=>p.reactflowRef)),m=e.useRef(null),g=e.useCallback((e=>{if(null===e&&!r)throw new Error("Color is null");null!==e&&f(e),m.current&&clearTimeout(m.current),a&&(m.current=setTimeout((()=>{a(e),m.current=null}),i))}),[r,a,i]);e.useEffect((()=>()=>{m.current&&clearTimeout(m.current)}),[]);const y=e.useMemo((()=>({background:"#"+d.hex(),borderRadius:"0.3rem",width:"2rem",height:"1rem"})),[d]);return o.createElement(GN,null,o.createElement(WN,{asChild:!0},o.createElement("button",{style:y})),o.createElement(HN,{container:h},o.createElement(XN,{side:"left",className:"iotooltipcontent"},o.createElement(qN,{onChange:g,colorconverter:d,allow_null:r}))))};function eO(e,[t,n]){return Math.min(n,Math.max(t,e))}var tO=["PageUp","PageDown"],nO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],rO={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},oO="Slider",[iO,aO,sO]=Jy(oO),[lO,cO]=Vu(oO,[sO]),[uO,dO]=lO(oO),fO=o.forwardRef(((e,t)=>{const{name:n,min:r=0,max:i=100,step:a=1,orientation:s="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[r],value:d,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:h=!1,form:m,...g}=e,y=o.useRef(new Set),b=o.useRef(0),v="horizontal"===s?mO:gO,[w=[],x]=Yu({prop:d,defaultProp:u,onChange:e=>{const t=[...y.current];t[b.current]?.focus(),f(e)}}),C=o.useRef(w);function k(e,t,{commit:n}={commit:!1}){const o=function(e){return(String(e).split(".")[1]||"").length}(a),s=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/a)*a+r,o),l=eO(s,[r,i]);x(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,l,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,c*a)){b.current=r.indexOf(l);const t=String(r)!==String(e);return t&&n&&p(r),t?r:e}return e}))}return Bu.jsx(uO,{scope:e.__scopeSlider,name:n,disabled:l,min:r,max:i,valueIndexToChangeRef:b,thumbs:y.current,values:w,orientation:s,form:m,children:Bu.jsx(iO.Provider,{scope:e.__scopeSlider,children:Bu.jsx(iO.Slot,{scope:e.__scopeSlider,children:Bu.jsx(v,{"aria-disabled":l,"data-disabled":l?"":void 0,...g,ref:t,onPointerDown:Nu(g.onPointerDown,(()=>{l||(C.current=w)})),min:r,max:i,inverted:h,onSlideStart:l?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)}(w,e);k(e,t)},onSlideMove:l?void 0:function(e){k(e,b.current)},onSlideEnd:l?void 0:function(){const e=C.current[b.current];w[b.current]!==e&&p(w)},onHomeKeyDown:()=>!l&&k(r,0,{commit:!0}),onEndKeyDown:()=>!l&&k(i,w.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!l){const n=tO.includes(e.key)||e.shiftKey&&nO.includes(e.key)?10:1,r=b.current;k(w[r]+a*n*t,r,{commit:!0})}}})})})})}));fO.displayName=oO;var[pO,hO]=lO(oO,{startEdge:"left",endEdge:"right",size:"width",direction:1}),mO=o.forwardRef(((e,t)=>{const{min:n,max:r,dir:i,inverted:a,onSlideStart:s,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...d}=e,[f,p]=o.useState(null),h=Mu(t,(e=>p(e))),m=o.useRef(void 0),g=qy(i),y="ltr"===g,b=y&&!a||!y&&a;function v(e){const t=m.current||f.getBoundingClientRect(),o=_O([0,t.width],b?[n,r]:[r,n]);return m.current=t,o(e-t.left)}return Bu.jsx(pO,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:Bu.jsx(yO,{dir:g,"data-orientation":"horizontal",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=v(e.clientX);s?.(t)},onSlideMove:e=>{const t=v(e.clientX);l?.(t)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:e=>{const t=rO[b?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})})),gO=o.forwardRef(((e,t)=>{const{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,d=o.useRef(null),f=Mu(t,d),p=o.useRef(void 0),h=!i;function m(e){const t=p.current||d.current.getBoundingClientRect(),o=_O([0,t.height],h?[r,n]:[n,r]);return p.current=t,o(e-t.top)}return Bu.jsx(pO,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:Bu.jsx(yO,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=m(e.clientY);a?.(t)},onSlideMove:e=>{const t=m(e.clientY);s?.(t)},onSlideEnd:()=>{p.current=void 0,l?.()},onStepKeyDown:e=>{const t=rO[h?"from-bottom":"from-top"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})})),yO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=dO(oO,n);return Bu.jsx(Qu.span,{...c,ref:t,onKeyDown:Nu(e.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):tO.concat(nO).includes(e.key)&&(l(e),e.preventDefault())})),onPointerDown:Nu(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)})),onPointerMove:Nu(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:Nu(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))}))})})),bO="SliderTrack",vO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=dO(bO,n);return Bu.jsx(Qu.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})}));vO.displayName=bO;var wO="SliderRange",xO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,i=dO(wO,n),a=hO(wO,n),s=Mu(t,o.useRef(null)),l=i.values.length,c=i.values.map((e=>IO(e,i.min,i.max))),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return Bu.jsx(Qu.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:s,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:d+"%"}})}));xO.displayName=wO;var CO="SliderThumb",kO=o.forwardRef(((e,t)=>{const n=aO(e.__scopeSlider),[r,i]=o.useState(null),a=Mu(t,(e=>i(e))),s=o.useMemo((()=>r?n().findIndex((e=>e.ref.current===r)):-1),[n,r]);return Bu.jsx(EO,{...e,ref:a,index:s})})),EO=o.forwardRef(((e,t)=>{const{__scopeSlider:n,index:r,name:i,...a}=e,s=dO(CO,n),l=hO(CO,n),[c,u]=o.useState(null),d=Mu(t,(e=>u(e))),f=!c||(s.form||!!c.closest("form")),p=Nv(c),h=s.values[r],m=void 0===h?0:IO(h,s.min,s.max),g=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,s.values.length),y=p?.[l.size],b=y?function(e,t,n){const r=e/2,o=_O([0,50],[0,r]);return(r-o(t)*n)*n}(y,m,l.direction):0;return o.useEffect((()=>{if(c)return s.thumbs.add(c),()=>{s.thumbs.delete(c)}}),[c,s.thumbs]),Bu.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${m}% + ${b}px)`},children:[Bu.jsx(iO.ItemSlot,{scope:e.__scopeSlider,children:Bu.jsx(Qu.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":s.min,"aria-valuenow":h,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...a,ref:d,style:void 0===h?{display:"none"}:e.style,onFocus:Nu(e.onFocus,(()=>{s.valueIndexToChangeRef.current=r}))})}),f&&Bu.jsx(SO,{name:i??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:h},r)]})}));kO.displayName=CO;var SO=e=>{const{value:t,...n}=e,r=o.useRef(null),i=function(e){const t=o.useRef({value:e,previous:e});return o.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(t);return o.useEffect((()=>{const e=r.current,n=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==t&&o){const n=new Event("input",{bubbles:!0});o.call(e,t),e.dispatchEvent(n)}}),[i,t]),Bu.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function IO(e,t,n){return eO(100/(n-t)*(e-t),[0,100])}function _O(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 AO=fO,NO=vO,OO=xO,RO=kO,MO=o.forwardRef(((e,t)=>Bu.jsx(Qu.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));MO.displayName="VisuallyHidden";var TO=MO,[PO,DO]=Vu("Tooltip",[Mv]),jO=Mv(),FO="TooltipProvider",LO=700,zO="tooltip.open",[BO,VO]=PO(FO),GO=e=>{const{__scopeTooltip:t,delayDuration:n=LO,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[s,l]=o.useState(!0),c=o.useRef(!1),u=o.useRef(0);return o.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),Bu.jsx(BO,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:o.useCallback((()=>{window.clearTimeout(u.current),l(!1)}),[]),onClose:o.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>l(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:o.useCallback((e=>{c.current=e}),[]),disableHoverableContent:i,children:a})};GO.displayName=FO;var WO="Tooltip",[HO,XO]=PO(WO),$O=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,c=VO(WO,e.__scopeTooltip),u=jO(t),[d,f]=o.useState(null),p=$u(),h=o.useRef(0),m=s??c.disableHoverableContent,g=l??c.delayDuration,y=o.useRef(!1),[b=!1,v]=Yu({prop:r,defaultProp:i,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(zO))):c.onClose(),a?.(e)}}),w=o.useMemo((()=>b?y.current?"delayed-open":"instant-open":"closed"),[b]),x=o.useCallback((()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,v(!0)}),[v]),C=o.useCallback((()=>{window.clearTimeout(h.current),h.current=0,v(!1)}),[v]),k=o.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{y.current=!0,v(!0),h.current=0}),g)}),[g,v]);return o.useEffect((()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)}),[]),Bu.jsx(Yv,{...u,children:Bu.jsx(HO,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:o.useCallback((()=>{c.isOpenDelayed?k():x()}),[c.isOpenDelayed,k,x]),onTriggerLeave:o.useCallback((()=>{m?C():(window.clearTimeout(h.current),h.current=0)}),[C,m]),onOpen:x,onClose:C,disableHoverableContent:m,children:n})})};$O.displayName=WO;var ZO="TooltipTrigger",YO=o.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,i=XO(ZO,n),a=VO(ZO,n),s=jO(n),l=Mu(t,o.useRef(null),i.onTriggerChange),c=o.useRef(!1),u=o.useRef(!1),d=o.useCallback((()=>c.current=!1),[]);return o.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),Bu.jsx(Uv,{asChild:!0,...s,children:Bu.jsx(Qu.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Nu(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:Nu(e.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:Nu(e.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:Nu(e.onFocus,(()=>{c.current||i.onOpen()})),onBlur:Nu(e.onBlur,i.onClose),onClick:Nu(e.onClick,i.onClose)})})}));YO.displayName=ZO;var[UO,JO]=PO("TooltipPortal",{forceMount:void 0}),KO="TooltipContent",qO=o.forwardRef(((e,t)=>{const n=JO(KO,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=XO(KO,e.__scopeTooltip);return Bu.jsx(xd,{present:r||a.open,children:a.disableHoverableContent?Bu.jsx(nR,{side:o,...i,ref:t}):Bu.jsx(QO,{side:o,...i,ref:t})})})),QO=o.forwardRef(((e,t)=>{const n=XO(KO,e.__scopeTooltip),r=VO(KO,e.__scopeTooltip),i=o.useRef(null),a=Mu(t,i),[s,l]=o.useState(null),{trigger:c,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=o.useCallback((()=>{l(null),f(!1)}),[f]),h=o.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(a),f(!0)}),[f]);return o.useEffect((()=>()=>p()),[p]),o.useEffect((()=>{if(c&&d){const e=e=>h(e,d),t=e=>h(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[c,d,h,p]),o.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||d?.contains(t),o=!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,s);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,d,s,u,p]),Bu.jsx(nR,{...e,ref:a})})),[eR,tR]=PO(WO,{isInside:!1}),nR=o.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,c=XO(KO,n),u=jO(n),{onClose:d}=c;return o.useEffect((()=>(document.addEventListener(zO,d),()=>document.removeEventListener(zO,d))),[d]),o.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;t?.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,d]),Bu.jsx(ad,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:Bu.jsxs(Jv,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[Bu.jsx(Ku,{children:r}),Bu.jsx(eR,{scope:n,isInside:!0,children:Bu.jsx(TO,{id:c.contentId,role:"tooltip",children:i||r})})]})})}));qO.displayName=KO;var rR="TooltipArrow";o.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=jO(n);return tR(rR,n).isInside?null:Bu.jsx(Kv,{...o,...r,ref:t})})).displayName=rR;var oR=$O,iR=YO,aR=qO;function sR(e){return sR="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},sR(e)}function lR(e){var t=function(e,t){if("object"!=sR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=sR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sR(t)?t:t+""}function cR(e,t,n){return(t=lR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uR(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 dR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uR(Object(n),!0).forEach((function(t){cR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fR(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 pR(e,t){if(e){if("string"==typeof e)return fR(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)?fR(e,t):void 0}}function hR(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)||pR(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 mR(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 gR(e,t){if(null==e)return{};var n,r,o=mR(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 yR=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function bR(){return bR=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},bR.apply(null,arguments)}function vR(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,lR(r.key),r)}}function wR(e,t){return wR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wR(e,t)}function xR(e){return xR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xR(e)}function CR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CR=function(){return!!e})()}function kR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ER(e){var t=CR();return function(){var n,r=xR(e);if(t){var o=xR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==sR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kR(e)}(this,n)}}function SR(e){return function(e){if(Array.isArray(e))return fR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pR(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 IR=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}(),_R="-ms-",AR="-moz-",NR="-webkit-",OR="comm",RR="rule",MR="decl",TR="@keyframes",PR=Math.abs,DR=String.fromCharCode,jR=Object.assign;function FR(e){return e.trim()}function LR(e,t,n){return e.replace(t,n)}function zR(e,t){return e.indexOf(t)}function BR(e,t){return 0|e.charCodeAt(t)}function VR(e,t,n){return e.slice(t,n)}function GR(e){return e.length}function WR(e){return e.length}function HR(e,t){return t.push(e),e}var XR=1,$R=1,ZR=0,YR=0,UR=0,JR="";function KR(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:XR,column:$R,length:a,return:""}}function qR(e,t){return jR(KR("",null,null,"",null,null,0),e,{length:-e.length},t)}function QR(){return UR=YR>0?BR(JR,--YR):0,$R--,10===UR&&($R=1,XR--),UR}function eM(){return UR=YR<ZR?BR(JR,YR++):0,$R++,10===UR&&($R=1,XR++),UR}function tM(){return BR(JR,YR)}function nM(){return YR}function rM(e,t){return VR(JR,e,t)}function oM(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 iM(e){return XR=$R=1,ZR=GR(JR=e),YR=0,[]}function aM(e){return JR="",e}function sM(e){return FR(rM(YR-1,uM(91===e?e+2:40===e?e+1:e)))}function lM(e){for(;(UR=tM())&&UR<33;)eM();return oM(e)>2||oM(UR)>3?"":" "}function cM(e,t){for(;--t&&eM()&&!(UR<48||UR>102||UR>57&&UR<65||UR>70&&UR<97););return rM(e,nM()+(t<6&&32==tM()&&32==eM()))}function uM(e){for(;eM();)switch(UR){case e:return YR;case 34:case 39:34!==e&&39!==e&&uM(UR);break;case 40:41===e&&uM(e);break;case 92:eM()}return YR}function dM(e,t){for(;eM()&&e+UR!==57&&(e+UR!==84||47!==tM()););return"/*"+rM(t,YR-1)+"*"+DR(47===e?e:eM())}function fM(e){for(;!oM(tM());)eM();return rM(e,YR)}function pM(e){return aM(hM("",null,null,null,[""],e=iM(e),0,[0],e))}function hM(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,b=0,v="",w=o,x=i,C=r,k=v;g;)switch(h=b,b=eM()){case 40:if(108!=h&&58==BR(k,d-1)){-1!=zR(k+=LR(sM(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=sM(b);break;case 9:case 10:case 13:case 32:k+=lM(h);break;case 92:k+=cM(nM()-1,7);continue;case 47:switch(tM()){case 42:case 47:HR(gM(dM(eM(),nM()),t,n),l);break;default:k+="/"}break;case 123*m:s[c++]=GR(k)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==y&&(k=LR(k,/\f/g,"")),p>0&&GR(k)-d&&HR(p>32?yM(k+";",r,n,d-1):yM(LR(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(HR(C=mM(k,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)hM(k,t,C,C,w,i,d,s,x);else switch(99===f&&110===BR(k,3)?100:f){case 100:case 108:case 109:case 115:hM(e,C,C,r&&HR(mM(e,C,C,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:hM(k,C,C,C,[""],x,0,s,x)}}c=u=p=0,m=y=1,v=k="",d=a;break;case 58:d=1+GR(k),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==QR())continue;switch(k+=DR(b),b*m){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(GR(k)-1)*y,y=1;break;case 64:45===tM()&&(k+=sM(eM())),f=tM(),u=d=GR(v=k+=fM(nM())),b++;break;case 45:45===h&&2==GR(k)&&(m=0)}}return i}function mM(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=WR(f),h=0,m=0,g=0;h<r;++h)for(var y=0,b=VR(e,d+1,d=PR(m=a[h])),v=e;y<p;++y)(v=FR(m>0?f[y]+" "+b:LR(b,/&\f/g,f[y])))&&(l[g++]=v);return KR(e,t,n,0===o?RR:s,l,c,u)}function gM(e,t,n){return KR(e,t,n,OR,DR(UR),VR(e,2,-2),0)}function yM(e,t,n,r){return KR(e,t,n,MR,VR(e,0,r),VR(e,r+1,-1),r)}function bM(e,t){for(var n="",r=WR(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function vM(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case MR:return e.return=e.return||e.value;case OR:return"";case TR:return e.return=e.value+"{"+bM(e.children,r)+"}";case RR:e.value=e.props.join(",")}return GR(n=bM(e.children,r))?e.return=e.value+"{"+n+"}":""}function wM(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var xM=function(e,t,n){for(var r=0,o=0;r=o,o=tM(),38===r&&12===o&&(t[n]=1),!oM(o);)eM();return rM(e,YR)},CM=function(e,t){return aM(function(e,t){var n=-1,r=44;do{switch(oM(r)){case 0:38===r&&12===tM()&&(t[n]=1),e[n]+=xM(YR-1,t,n);break;case 2:e[n]+=sM(r);break;case 4:if(44===r){e[++n]=58===tM()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=DR(r)}}while(r=eM());return e}(iM(e),t))},kM=new WeakMap,EM=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)||kM.get(n))&&!r){kM.set(e,!0);for(var o=[],i=CM(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]}}},SM=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function IM(e,t){switch(function(e,t){return 45^BR(e,0)?(((t<<2^BR(e,0))<<2^BR(e,1))<<2^BR(e,2))<<2^BR(e,3):0}(e,t)){case 5103:return NR+"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 NR+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return NR+e+AR+e+_R+e+e;case 6828:case 4268:return NR+e+_R+e+e;case 6165:return NR+e+_R+"flex-"+e+e;case 5187:return NR+e+LR(e,/(\w+).+(:[^]+)/,NR+"box-$1$2"+_R+"flex-$1$2")+e;case 5443:return NR+e+_R+"flex-item-"+LR(e,/flex-|-self/,"")+e;case 4675:return NR+e+_R+"flex-line-pack"+LR(e,/align-content|flex-|-self/,"")+e;case 5548:return NR+e+_R+LR(e,"shrink","negative")+e;case 5292:return NR+e+_R+LR(e,"basis","preferred-size")+e;case 6060:return NR+"box-"+LR(e,"-grow","")+NR+e+_R+LR(e,"grow","positive")+e;case 4554:return NR+LR(e,/([^-])(transform)/g,"$1"+NR+"$2")+e;case 6187:return LR(LR(LR(e,/(zoom-|grab)/,NR+"$1"),/(image-set)/,NR+"$1"),e,"")+e;case 5495:case 3959:return LR(e,/(image-set\([^]*)/,NR+"$1$`$1");case 4968:return LR(LR(e,/(.+:)(flex-)?(.*)/,NR+"box-pack:$3"+_R+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+NR+e+e;case 4095:case 3583:case 4068:case 2532:return LR(e,/(.+)-inline(.+)/,NR+"$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(GR(e)-1-t>6)switch(BR(e,t+1)){case 109:if(45!==BR(e,t+4))break;case 102:return LR(e,/(.+:)(.+)-([^]+)/,"$1"+NR+"$2-$3$1"+AR+(108==BR(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zR(e,"stretch")?IM(LR(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==BR(e,t+1))break;case 6444:switch(BR(e,GR(e)-3-(~zR(e,"!important")&&10))){case 107:return LR(e,":",":"+NR)+e;case 101:return LR(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+NR+(45===BR(e,14)?"inline-":"")+"box$3$1"+NR+"$2$3$1"+_R+"$2box$3")+e}break;case 5936:switch(BR(e,t+11)){case 114:return NR+e+_R+LR(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return NR+e+_R+LR(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return NR+e+_R+LR(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return NR+e+_R+e+e}return e}var _M,AM,NM=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case MR:e.return=IM(e.value,e.length);break;case TR:return bM([qR(e,{value:LR(e.value,"@","@"+NR)})],r);case RR: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 bM([qR(e,{props:[LR(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return bM([qR(e,{props:[LR(t,/:(plac\w+)/,":"+NR+"input-$1")]}),qR(e,{props:[LR(t,/:(plac\w+)/,":-moz-$1")]}),qR(e,{props:[LR(t,/:(plac\w+)/,_R+"input-$1")]})],r)}return""}))}}],OM=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||NM,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=[vM,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=WR(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([EM,SM].concat(i,u));o=function(e,t,n,r){l=n,function(e){bM(pM(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new IR({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(AM)return _M;AM=1;var e=$g(),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;_M=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 b=c(r,y);try{a(t,y,b)}catch(e){}}}}return t}}();function RM(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var MM=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},TM=function(e,t,n){MM(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 PM={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},DM=/[A-Z]|^ms/g,jM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,FM=function(e){return 45===e.charCodeAt(1)},LM=function(e){return null!=e&&"boolean"!=typeof e},zM=wM((function(e){return FM(e)?e:e.replace(DM,"-$&").toLowerCase()})),BM=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(jM,(function(e,t,n){return GM={name:t,styles:n,next:GM},t}))}return 1===PM[e]||FM(e)||"number"!=typeof t||0===t?t:t+"px"};function VM(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 GM={name:o.name,styles:o.styles,next:GM},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)GM={name:a.name,styles:a.styles,next:GM},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+=VM(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]+"}":LM(s)&&(r+=zM(i)+":"+BM(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=VM(e,t,a);switch(i){case"animation":case"animationName":r+=zM(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)LM(a[c])&&(r+=zM(i)+":"+BM(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=GM,l=n(e);return GM=s,VM(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var GM,WM=/label:\s*([^\s;{]+)\s*(;|$)/g;function HM(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="";GM=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=VM(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=VM(n,t,e[a]),r)o+=i[a]}WM.lastIndex=0;for(var s,l="";null!==(s=WM.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:GM}}var XM=!!o.useInsertionEffect&&o.useInsertionEffect||function(e){return e()},$M=o.createContext("undefined"!=typeof HTMLElement?OM({key:"css"}):null);$M.Provider;var ZM,YM,UM=function(t){return e.forwardRef((function(n,r){var o=e.useContext($M);return t(n,o,r)}))},JM=o.createContext({}),KM={}.hasOwnProperty,qM="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",QM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return MM(t,n,r),XM((function(){return TM(t,n,r)})),null},eT=UM((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[qM],a=[r],s="";"string"==typeof e.className?s=RM(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=HM(a,void 0,o.useContext(JM));s+=t.key+"-"+l.name;var c={};for(var u in e)KM.call(e,u)&&"css"!==u&&u!==qM&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),o.createElement(o.Fragment,null,o.createElement(QM,{cache:t,serialized:l,isStringTag:"string"==typeof i}),o.createElement(i,c))})),tT=eT,nT=function(e,t){var n=arguments;if(null==t||!KM.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=tT,i[1]=function(e,t){var n={};for(var r in t)KM.call(t,r)&&(n[r]=t[r]);return n[qM]=e,n}(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)};function rT(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return HM(t)}function oT(){var e=rT.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_"}}}ZM=nT||(nT={}),YM||(YM=ZM.JSX||(ZM.JSX={}));var iT=e.useLayoutEffect,aT=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],sT=function(){};function lT(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function cT(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(lT(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var uT=function(e){return function(e){return Array.isArray(e)}(e)?e.filter(Boolean):"object"===sR(e)&&null!==e?[e]:[]},dT=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,dR({},gR(e,aT))},fT=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 pT(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function hT(e){return pT(e)?window.pageYOffset:e.scrollTop}function mT(e,t){pT(e)?window.scrollTo(0,t):e.scrollTop=t}function gT(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:sT,o=hT(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);mT(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function yT(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?mT(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&mT(e,Math.max(t.offsetTop-o,0))}function bT(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var vT=!1,wT={get passive(){return vT=!0}},xT="undefined"!=typeof window?window:{};xT.addEventListener&&xT.removeEventListener&&(xT.addEventListener("p",sT,wT),xT.removeEventListener("p",sT,!1));var CT=vT;function kT(e){return null!=e}function ET(e,t,n){return e?t:n}var ST=["children","innerProps"],IT=["children","innerProps"];function _T(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:pT(u=l)?window.innerHeight:u.clientHeight,b=hT(l),v=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,C=y-m,k=x+b,E=d-b-m,S=p-y+b+v,I=b+m-w,_=160;switch(o){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&gT(l,S,_),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&C>=r)return i&&gT(l,S,_),{placement:"bottom",maxHeight:a?C-v:E-v};if("auto"===o||a){var A=t,N=a?x:k;return N>=r&&(A=Math.min(N-v-s,t)),{placement:"top",maxHeight:A}}if("bottom"===o)return i&&mT(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&gT(l,I,_),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&x>=r){var O=t;return(!a&&k>=r||a&&x>=r)&&(O=a?x-w:k-w),i&&gT(l,I,_),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var AT,NT=function(e){return"auto"===e?"bottom":e},OT=e.createContext(null),RT=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=(e.useContext(OT)||{}).setPortalPlacement,u=e.useRef(null),d=hR(e.useState(o),2),f=d[0],p=d[1],h=hR(e.useState(null),2),m=h[0],g=h[1],y=l.spacing.controlHeight;return iT((function(){var e=u.current;if(e){var t="fixed"===a,n=_T({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});p(n.maxHeight),g(n.placement),null==c||c(n.placement)}}),[o,i,a,s,r,c,y]),n({ref:u,placerProps:dR(dR({},t),{},{placement:m||NT(i),maxHeight:f})})},MT=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return nT("div",bR({},fT(e,"menu",{menu:!0}),{ref:n},r),t)},TT=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return dR({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},PT=TT,DT=TT,jT=["size"],FT=["innerProps","isRtl","size"];var LT="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},zT=function(e){var t=e.size,n=gR(e,jT);return nT("svg",bR({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:LT},n))},BT=function(e){return nT(zT,bR({size:20},e),nT("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"}))},VT=function(e){return nT(zT,bR({size:20},e),nT("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"}))},GT=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return dR({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},WT=GT,HT=GT,XT=oT(AT||(AT=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"]))),$T=function(e){var t=e.delay,n=e.offset;return nT("span",{css:rT({animation:"".concat(XT," 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"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},ZT=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return nT("div",bR({ref:o},fT(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},YT=["data"],UT=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 nT("div",bR({},fT(e,"group",{group:!0}),s),nT(i,bR({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),nT("div",null,t))},JT=["innerRef","isDisabled","isHidden","inputClassName"],KT={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},qT={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":dR({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},KT)},QT=function(e){return dR({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},KT)},eP=function(e){var t=e.cx,n=e.value,r=dT(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=gR(r,JT);return nT("div",bR({},fT(e,"input",{"input-container":!0}),{"data-value":n||""}),nT("input",bR({className:t({input:!0},s),ref:o,style:QT(a),disabled:i},l)))},tP=function(e){var t=e.children,n=e.innerProps;return nT("div",n,t)};var nP=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 nT(l,{data:r,innerProps:dR(dR({},fT(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},nT(c,{data:r,innerProps:dR({},fT(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),nT(u,{data:r,innerProps:dR(dR({},fT(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},rP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return nT("div",bR({},fT(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},oP=function(e){var t=e.children,n=e.innerProps;return nT("div",bR({},fT(e,"placeholder",{placeholder:!0}),n),t)},iP=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return nT("div",bR({},fT(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},aP={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return nT("div",bR({},fT(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||nT(BT,null))},Control:ZT,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return nT("div",bR({},fT(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||nT(VT,null))},DownChevron:VT,CrossIcon:BT,Group:UT,GroupHeading:function(e){var t=dT(e);t.data;var n=gR(t,YT);return nT("div",bR({},fT(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return nT("div",bR({},fT(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return nT("span",bR({},t,fT(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:eP,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=gR(e,FT);return nT("div",bR({},fT(dR(dR({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),nT($T,{delay:0,offset:n}),nT($T,{delay:160,offset:!0}),nT($T,{delay:320,offset:!n}))},Menu:MT,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return nT("div",bR({},fT(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(n){var r=n.appendTo,o=n.children,i=n.controlElement,a=n.innerProps,s=n.menuPlacement,l=n.menuPosition,c=e.useRef(null),u=e.useRef(null),d=hR(e.useState(NT(s)),2),f=d[0],p=d[1],h=e.useMemo((function(){return{setPortalPlacement:p}}),[]),m=hR(e.useState(null),2),g=m[0],y=m[1],b=e.useCallback((function(){if(i){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}}(i),t="fixed"===l?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||y({offset:n,rect:e})}}),[i,l,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);iT((function(){b()}),[b]);var v=e.useCallback((function(){"function"==typeof u.current&&(u.current(),u.current=null),i&&c.current&&(u.current=iv(i,c.current,b,{elementResize:"ResizeObserver"in window}))}),[i,b]);iT((function(){v()}),[v]);var w=e.useCallback((function(e){c.current=e,v()}),[v]);if(!r&&"fixed"!==l||!g)return null;var x=nT("div",bR({ref:w},fT(dR(dR({},n),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),a),o);return nT(OT.Provider,{value:h},r?t.createPortal(x,r):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=gR(e,IT);return nT("div",bR({},fT(dR(dR({},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=gR(e,ST);return nT("div",bR({},fT(dR(dR({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:nP,MultiValueContainer:tP,MultiValueLabel:tP,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return nT("div",bR({role:"button"},n),t||nT(BT,{size:14}))},Option:rP,Placeholder:oP,SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return nT("div",bR({},fT(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:iP,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return nT("div",bR({},fT(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},sP=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function lP(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||sP(r)&&sP(o)))return!1;var r,o;return!0}for(var cP="production"===process.env.NODE_ENV?{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"}:{name:"1f43avz-a11yText-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;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},uP=function(e){return nT("span",bR({css:cP},e))},dP={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:"",".")}},fP=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,y=l.menuIsOpen,b=l.options,v=l.screenReaderStatus,w=l.tabSelectsValue,x=l.isLoading,C=l["aria-label"],k=l["aria-live"],E=e.useMemo((function(){return dR(dR({},dP),d||{})}),[d]),S=e.useMemo((function(){var e,t="";if(n&&E.onChange){var r=n.option,o=n.options,i=n.removedValue,a=n.removedValues,l=n.value,c=i||r||(e=l,Array.isArray(e)?null:e),u=c?f(c):"",d=o||a||void 0,p=d?d.map(f):[],h=dR({isDisabled:c&&m(c,s),label:u,labels:p},n);t=E.onChange(h)}return t}),[n,E,m,s,f]),I=e.useMemo((function(){var e="",t=r||o,n=!!(r&&s&&s.includes(r));if(t&&E.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,s),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:s,isAppleDevice:u};e=E.onFocus(a)}return e}),[r,o,f,m,E,i,s,u]),_=e.useMemo((function(){var e="";if(y&&b.length&&!x&&E.onFilter){var t=v({count:i.length});e=E.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,y,E,b,v,x]),A="initial-input-focus"===(null==n?void 0:n.action),N=e.useMemo((function(){var e="";if(E.guidance){var t=o?"value":y?"menu":"input";e=E.guidance({"aria-label":C,context:t,isDisabled:r&&m(r,s),isMulti:h,isSearchable:g,tabSelectsValue:w,isInitialFocus:A})}return e}),[C,r,o,h,m,g,y,E,s,w,A]),O=nT(e.Fragment,null,nT("span",{id:"aria-selection"},S),nT("span",{id:"aria-focused"},I),nT("span",{id:"aria-results"},_),nT("span",{id:"aria-guidance"},N));return nT(e.Fragment,null,nT(uP,{id:c},A&&O),nT(uP,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!A&&O))},pP=[{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źẑżžẓẕƶȥɀⱬꝣ"}],hP=new RegExp("["+pP.map((function(e){return e.letters})).join("")+"]","g"),mP={},gP=0;gP<pP.length;gP++)for(var yP=pP[gP],bP=0;bP<yP.letters.length;bP++)mP[yP.letters[bP]]=yP.base;var vP=function(e){return e.replace(hP,(function(e){return mP[e]}))},wP=function(e,t){void 0===t&&(t=lP);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}(vP),xP=function(e){return e.replace(/^\s+|\s+$/g,"")},CP=function(e){return"".concat(e.label," ").concat(e.value)},kP=["innerRef"];function EP(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=hR(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=hR(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(gR(e,kP),"onExited","in","enter","exit","appear");return nT("input",bR({ref:t},n,{css:rT({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)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var SP=["boxSizing","height","overflow","paddingRight","position"],IP={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _P(e){e.cancelable&&e.preventDefault()}function AP(e){e.stopPropagation()}function NP(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function OP(){return"ontouchstart"in window||navigator.maxTouchPoints}var RP=!("undefined"==typeof window||!window.document||!window.document.createElement),MP=0,TP={capture:!1,passive:!1};var PP=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},DP="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function jP(t){var n=t.children,r=t.lockEnabled,o=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,s=e.useRef(!1),l=e.useRef(!1),c=e.useRef(0),u=e.useRef(null),d=e.useCallback((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,f=n.clientHeight,p=u.current,h=t>0,m=d-f-c,g=!1;m>t&&s.current&&(o&&o(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(r&&!s.current&&r(e),p.scrollTop=d,g=!0,s.current=!0):!h&&-t>c&&(i&&!l.current&&i(e),p.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,i,a]),f=e.useCallback((function(e){d(e,e.deltaY)}),[d]),p=e.useCallback((function(e){c.current=e.changedTouches[0].clientY}),[]),h=e.useCallback((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=e.useCallback((function(e){if(e){var t=!!CT&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),g=e.useCallback((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return e.useEffect((function(){if(n){var e=u.current;return m(e),function(){g(e)}}}),[n,m,g]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=e.useRef({}),a=e.useRef(null),s=e.useCallback((function(e){if(RP){var t=document.body,n=t&&t.style;if(o&&SP.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&MP<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(IP).forEach((function(e){var t=IP[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&OP()&&(t.addEventListener("touchmove",_P,TP),e&&(e.addEventListener("touchstart",NP,TP),e.addEventListener("touchmove",AP,TP))),MP+=1}}),[o]),l=e.useCallback((function(e){if(RP){var t=document.body,n=t&&t.style;MP=Math.max(MP-1,0),o&&MP<1&&SP.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&OP()&&(t.removeEventListener("touchmove",_P,TP),e&&(e.removeEventListener("touchstart",NP,TP),e.removeEventListener("touchmove",AP,TP)))}}),[o]);return e.useEffect((function(){if(n){var e=a.current;return s(e),function(){l(e)}}}),[n,s,l]),function(e){a.current=e}}({isEnabled:r});return nT(e.Fragment,null,r&&nT("div",{onClick:PP,css:DP}),n((function(e){i(e),a(e)})))}var FP="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},LP=function(e){var t=e.name,n=e.onFocus;return nT("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:FP,value:"",onChange:function(){}})};function zP(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 BP(){return zP(/^Mac/i)}function VP(){return zP(/^iPhone/i)||zP(/^iPad/i)||BP()&&navigator.maxTouchPoints>1}var GP={clearIndicator:HT,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 dR({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:WT,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 dR({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 dR({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 dR(dR({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},qT),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 dR({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:DT,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return dR((cR(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),cR(n,"position","absolute"),cR(n,"width","100%"),cR(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 dR({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 dR({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 dR({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 dR({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:PT,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return dR({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 dR({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 dR({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 dR({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")})}},WP={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}},HP={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:bT(),captureMenuScroll:!bT(),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=dR({ignoreCase:!0,ignoreAccents:!0,stringify:CP,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?xP(n):n,u=s?xP(a(t)):a(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=wP(c),u=vP(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 XP(e,t,n,r){return{type:"option",data:t,isDisabled:QP(e,t,n),isSelected:eD(e,t,n),label:KP(e,t),value:qP(e,t),index:r}}function $P(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return XP(e,n,t,r)})).filter((function(t){return UP(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=XP(e,n,t,r);return UP(e,i)?i:void 0})).filter(kT)}function ZP(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,SR(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function YP(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,SR(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 UP(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!nD(e)||!i)&&tD(e,{label:a,value:s,data:o},r)}var JP=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},KP=function(e,t){return e.getOptionLabel(t)},qP=function(e,t){return e.getOptionValue(t)};function QP(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function eD(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=qP(e,t);return n.some((function(t){return qP(e,t)===r}))}function tD(e,t,n){return!e.filterOption||e.filterOption(t,n)}var nD=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},rD=1,oD=function(){!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&&wR(e,t)}(n,e.Component);var t=ER(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=BP()||VP(),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(SR(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=ET(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(ET(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=ET(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return JP(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return YP($P(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 cT.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return KP(r.props,e)},r.getOptionValue=function(e){return qP(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=GP[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,dR(dR({},aP),e.components);var e},r.buildCategorizedOptions=function(){return $P(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return ZP(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:dR({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&&pT(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 nD(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||++rD),r.state.selectValue=uT(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=JP(o,i[a])}return r}return function(e,t,n){t&&vR(e.prototype,t),n&&vR(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&&yT(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&&(yT(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(WP):dR(dR({},WP),this.props.theme):WP}},{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 QP(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return eD(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tD(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,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,f=d.inputIsHidden,p=d.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=dR(dR(dR({"aria-autocomplete":"list","aria-expanded":l,"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":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(u,bR({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},g)):o.createElement(EP,bR({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:sT,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,y=g.selectValue,b=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!d)return h?null:o.createElement(l,bR({},c,{key:"placeholder",isDisabled:f,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return y.map((function(t,s){var l=t===b,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,bR({},c,{components:{Container:r,Label:i,Remove:a},isFocused:l,isDisabled:f,key:u,index:s,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(h)return null;var w=y[0];return o.createElement(s,bR({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,bR({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return o.createElement(e,bR({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,bR({},r,{isDisabled:i,isFocused:a}))}},{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,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,bR({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,y=p.loadingMessage,b=p.minMenuHeight,v=p.maxMenuHeight,w=p.menuIsOpen,x=p.menuPlacement,C=p.menuPosition,k=p.menuPortalTarget,E=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,I=p.noOptionsMessage,_=p.onMenuScrollToTop,A=p.onMenuScrollToBottom;if(!w)return null;var N,O=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,p=f===i,h=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),y={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return o.createElement(u,bR({},d,{innerProps:y,data:i,isDisabled:a,isSelected:s,key:g,label:l,type:r,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return o.createElement(n,bR({},d,{key:l,data:i,options:a,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return O(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return O(t,"".concat(t.index))}));else if(g){var R=y({inputValue:m});if(null===R)return null;N=o.createElement(l,d,R)}else{var M=I({inputValue:m});if(null===M)return null;N=o.createElement(c,d,M)}var T={minMenuHeight:b,maxMenuHeight:v,menuPlacement:x,menuPosition:C,menuShouldScrollIntoView:S},P=o.createElement(RT,bR({},d,T),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return o.createElement(i,bR({},d,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),o.createElement(jP,{captureEnabled:h,onTopArrive:_,onBottomArrive:A,lockEnabled:E},(function(t){return o.createElement(a,bR({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:f}),N)})))}));return k||"fixed"===C?o.createElement(s,bR({},d,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:C}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return o.createElement(LP,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(n){var c=l.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:a,type:"hidden",value:c})}var u=l.length>0?l.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return o.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return o.createElement(fP,bR({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return o.createElement(r,bR({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),o.createElement(t,bR({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),o.createElement(i,bR({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,bR({},f,{isDisabled:c}),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=uT(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return ZP($P(e,t))}(e,h):[],y=d?YP($P(e,h),"".concat(l,"-option")):[],b=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,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:v,focusedOptionId:JP(y,v),focusableOptionsWithIds:y,focusedValue:b,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,C=a&&s;return a&&!C&&(x={value:ET(p,h,h[0]||null),options:h,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),dR(dR(dR({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:C})}}]),n}();oD.defaultProps=HP;var iD=e.forwardRef((function(t,n){var r=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,i=void 0!==o&&o,a=t.defaultValue,s=void 0===a?null:a,l=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,h=t.value,m=gR(t,yR),g=hR(e.useState(void 0!==l?l:r),2),y=g[0],b=g[1],v=hR(e.useState(void 0!==c?c:i),2),w=v[0],x=v[1],C=hR(e.useState(void 0!==h?h:s),2),k=C[0],E=C[1],S=e.useCallback((function(e,t){"function"==typeof u&&u(e,t),E(e)}),[u]),I=e.useCallback((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),b(void 0!==n?n:e)}),[d]),_=e.useCallback((function(){"function"==typeof p&&p(),x(!0)}),[p]),A=e.useCallback((function(){"function"==typeof f&&f(),x(!1)}),[f]),N=void 0!==l?l:y,O=void 0!==c?c:w,R=void 0!==h?h:k;return dR(dR({},m),{},{inputValue:N,menuIsOpen:O,onChange:S,onInputChange:I,onMenuClose:A,onMenuOpen:_,value:R})}(t);return o.createElement(oD,bR({ref:n},r))})),aD=iD;const sD=({options:t,items_per_page:n,className:r,defaultValue:i,onChange:a})=>{const[s,l]=e.useState(""),[c,u]=e.useState(0),d=t.filter((e=>e.label.toLowerCase().includes(s)||e.value.toLowerCase().includes(s)));var f;f=void 0!==n?d.slice(c*n,(c+1)*n):d;const p={control:e=>({...e,minHeight:void 0})};return o.createElement(aD,{options:f,onInputChange:e=>{l(e.toLowerCase()),u(0)},onChange:a,inputValue:s,isSearchable:!0,placeholder:"Select an option...",className:r,unstyled:!0,styles:p,classNamePrefix:"styled-select",defaultValue:i,value:i})},lD=({io:t,inputconverter:n,parser:r=e=>parseFloat(e)})=>{const i=e.useContext(zV),[a,s]=e.useState(n[1](t.value));e.useEffect((()=>{s(n[1](t.value))}),[t.value]);const l=e=>{e=r(parseFloat(e.toString()).toString()),isNaN(e)?(e="<NoValue>",s("")):(void 0!==t.value_options?.min&&e<t.value_options.min&&(e=t.value_options.min),void 0!==t.value_options?.max&&e>t.value_options.max&&(e=t.value_options.max),s(e.toString()));try{e=n[0](e)}catch(e){}i.worker?.set_io_value({nid:t.node,ioid:t.id,value:e,set_default:t.render_options.set_default})};let c=t.connected?n[1](t.value):a;return void 0===c&&(c=t.value_options?.min),void 0===c&&(c=t.value_options?.max),void 0===c&&(c=""),null===c&&(c=""),void 0!==t.value_options?.max&&void 0!==t.value_options?.min?o.createElement("div",{style:{minWidth:"100px"},className:"SliderContainer"},o.createElement(AO,{className:"SliderRoot",value:[void 0===c?t.value_options?.min:c],min:t.value_options?.min,max:t.value_options?.max,step:t.value_options.step||(t.value_options?.max-t.value_options?.min)/1e3,disabled:t.connected,onValueCommit:e=>{isNaN(e[0])||l(e[0])},onValueChange:e=>{isNaN(e[0])||s(e[0].toString())}},o.createElement(NO,{className:"SliderTrack"},o.createElement(OO,{className:"SliderRange"})),o.createElement(GO,null,o.createElement(oR,{open:!0},o.createElement(iR,{asChild:!0},o.createElement(RO,{className:"SliderThumb"})),o.createElement(aR,{className:"SliderTooltipContent"},c))))):o.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("ArrowUp"!==e.key)if("ArrowDown"!==e.key)/^[0-9.eE+-]$/.test(e.key)||["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(e.key)||e.preventDefault();else{let n=t.value_options?.step||1;e.shiftKey&&(n*=10);let r=(parseFloat(c)||0)-n;l(r)}else{let n=t.value_options?.step||1;e.shiftKey&&(n*=10);let r=(parseFloat(c)||0)+n;l(r)}},disabled:t.connected,step:t.value_options?.step,min:t.value_options?.min,max:t.value_options?.max})},cD=({io:t,inputconverter:n})=>{const r=e.useContext(zV),[i,a]=e.useState(n[1](t.value));e.useEffect((()=>{a(n[1](t.value))}),[t.value]);let s=t.connected?n[1](t.value):i;return null==s&&(s=""),o.createElement("input",{className:"nodedatainput styledinput stringinput",value:s,onChange:e=>a(e.target.value),onBlur:e=>{let o=e.target.value;o||(o="<NoValue>");try{o=n[0](o)}catch(e){}r.worker?.set_io_value({nid:t.node,ioid:t.id,value:o,set_default:t.render_options.set_default})},disabled:t.connected})},uD=e=>e,dD=e=>parseFloat(e),fD=e=>!!e,pD=e=>"null"===e?null:e,hD=({io:t,inputconverter:n,parser:r})=>{let i=t.value_options?.options||[];Array.isArray(i)&&(i={type:"enum",values:i,keys:i.map((e=>null===e?"None":e.toString())),nullable:!1}),"enum"!==i.type&&(i={type:"enum",values:Object.values(i),keys:Object.keys(i),nullable:!1}),!i.nullable||i.values.includes(null)||i.keys.includes("None")||(i.values.unshift(null),i.keys.unshift("None"));const a=[];for(let e=0;e<i.values.length;e++){const t=null===i.values[e]||void 0===i.values[e]?"undefined":typeof i.values[e];let n=i.values[e];null===n&&(n="null"),void 0===n&&(n="undefined"),a.push([i.keys[e],n.toString(),t])}const s=e.useContext(zV),l=({value:e,datatype:o})=>{const i=r||(e=>"nuinputconvertermber"===e?dD:"boolean"===e?fD:"undefined"===e?pD:uD)(o);let a=i(e);try{a=n[0](e)}catch(e){}s.worker?.set_io_value({nid:t.node,ioid:t.id,value:a,set_default:t.render_options.set_default})};let c=t.value;null===c&&(c="null"),void 0===c&&(c="undefined");const u=a.find((e=>e[1]===c.toString()));let d;void 0!==u&&(d={value:u[1],label:u[0],datatype:u[2]});const f=a.map((e=>({value:e[1],label:e[0],datatype:e[2]})));return o.createElement(sD,{className:"nodedatainput styleddropdown",options:f,defaultValue:d,onChange:e=>{l(null!==e?e:{value:"<NoValue>",datatype:"string"})}})},mD=e=>!!e&&e instanceof Date,gD=e=>!!e&&e instanceof Object&&"function"==typeof e;function yD(e,t){return void 0===t&&(t=!1),!e||t?`"${e}"`:e}function bD(t){let{field:n,value:r,data:o,lastElement:i,openBracket:a,closeBracket:s,level:l,style:c,shouldExpandNode:u,clickToExpandNode:d,outerRef:f}=t;const p=e.useRef(!1),[h,m,g]=function(t){const[n,r]=e.useState(t());return[n,()=>r((e=>!e)),r]}((()=>u(l,r,n))),y=e.useRef(null);e.useEffect((()=>{p.current?g(u(l,r,n)):p.current=!0}),[u]);const b=h?c.collapseIcon:c.expandIcon,v=h?"collapse JSON":"expand JSON",w=e.useId(),x=l+1,C=o.length-1,k=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),g("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const t="ArrowUp"===e.key?-1:1;if(!f.current)return;const n=f.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()}},E=()=>{var e;m();const t=y.current;if(!t)return;const n=null===(e=f.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');n&&(n.tabIndex=-1),t.tabIndex=0,t.focus()};return e.createElement("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":h,"aria-selected":void 0},e.createElement("span",{className:b,onClick:E,onKeyDown:k,role:"button","aria-label":v,"aria-expanded":h,"aria-controls":h?w:void 0,ref:y,tabIndex:0===l?0:-1}),(n||""===n)&&(d?e.createElement("span",{className:c.clickableLabel,onClick:E,onKeyDown:k},yD(n,c.quotesForFieldNames),":"):e.createElement("span",{className:c.label},yD(n,c.quotesForFieldNames),":")),e.createElement("span",{className:c.punctuation},a),h?e.createElement("ul",{id:w,role:"group",className:c.childFieldsContainer},o.map(((t,n)=>e.createElement(kD,{key:t[0]||n,field:t[0],value:t[1],style:c,lastElement:n===C,level:x,shouldExpandNode:u,clickToExpandNode:d,outerRef:f})))):e.createElement("span",{className:c.collapsedContent,onClick:E,onKeyDown:k}),e.createElement("span",{className:c.punctuation},s),!i&&e.createElement("span",{className:c.punctuation},","))}function vD(t){let{field:n,openBracket:r,closeBracket:o,lastElement:i,style:a}=t;return e.createElement("div",{className:a.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&e.createElement("span",{className:a.label},yD(n,a.quotesForFieldNames),":"),e.createElement("span",{className:a.punctuation},r),e.createElement("span",{className:a.punctuation},o),!i&&e.createElement("span",{className:a.punctuation},","))}function wD(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:a,level:s,outerRef:l}=e;return 0===Object.keys(n).length?vD({field:t,openBracket:"{",closeBracket:"}",lastElement:o,style:r}):bD({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})}function xD(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:a,clickToExpandNode:s,outerRef:l}=e;return 0===n.length?vD({field:t,openBracket:"[",closeBracket:"]",lastElement:o,style:r}):bD({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})}function CD(t){let n,{field:r,value:o,style:i,lastElement:a}=t,s=i.otherValue;var l;return null===o?(n="null",s=i.nullValue):void 0===o?(n="undefined",s=i.undefinedValue):"string"==typeof(l=o)||l instanceof String?(n=function(e,t){return t?`"${e}"`:e}(o,!i.noQuotesForStringValues),s=i.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(o)?(n=o?"true":"false",s=i.booleanValue):(e=>"number"==typeof e||e instanceof Number)(o)?(n=o.toString(),s=i.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(o)?(n=`${o.toString()}n`,s=i.numberValue):n=mD(o)?o.toISOString():gD(o)?"function() { }":o.toString(),e.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(r||""===r)&&e.createElement("span",{className:i.label},yD(r,i.quotesForFieldNames),":"),e.createElement("span",{className:s},n),!a&&e.createElement("span",{className:i.punctuation},","))}function kD(t){const n=t.value;return r=n,Array.isArray(r)?e.createElement(xD,Object.assign({},t)):!(e=>"object"==typeof e&&null!==e)(n)||mD(n)||gD(n)?e.createElement(CD,Object.assign({},t)):e.createElement(wD,Object.assign({},t));var r}var ED="_2bkNM",SD="_1BXBN";const ID={container:"_2IvMF _GzYRV",basicChildStyle:ED,childFieldsContainer:SD,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},_D={container:"_11RoI _GzYRV",basicChildStyle:ED,childFieldsContainer:SD,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},AD=()=>!0,ND=e=>e<1,OD=t=>{let{data:n,style:r=ID,shouldExpandNode:o=AD,clickToExpandNode:i=!1,...a}=t;const s=e.useRef(null);return e.createElement("div",Object.assign({"aria-label":"JSON view"},a,{className:r.container,ref:s,role:"tree"}),e.createElement(kD,{value:n,style:{...ID,...r},lastElement:!0,level:0,shouldExpandNode:o,clickToExpandNode:i,outerRef:s}))};function RD(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 MD=({data:e})=>o.createElement(OD,{data:RD(e)?"":e,style:_D,shouldExpandNode:ND});function TD(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=TD(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function PD(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=TD(e))&&(r&&(r+=" "),r+=t);return r}function DD(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 jD=o.createContext();function FD(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 LD(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":FD(7));return e.charAt(0).toUpperCase()+e.slice(1)}"production"!==process.env.NODE_ENV&&(jD.displayName="TableContext");var zD,BD={exports:{}},VD={};function GD(){if(zD)return VD;zD=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 VD.ContextConsumer=i,VD.ContextProvider=a,VD.Element=e,VD.ForwardRef=s,VD.Fragment=n,VD.Lazy=d,VD.Memo=u,VD.Portal=t,VD.Profiler=o,VD.StrictMode=r,VD.Suspense=l,VD.SuspenseList=c,VD.isContextConsumer=function(e){return h(e)===i},VD.isContextProvider=function(e){return h(e)===a},VD.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},VD.isForwardRef=function(e){return h(e)===s},VD.isFragment=function(e){return h(e)===n},VD.isLazy=function(e){return h(e)===d},VD.isMemo=function(e){return h(e)===u},VD.isPortal=function(e){return h(e)===t},VD.isProfiler=function(e){return h(e)===o},VD.isStrictMode=function(e){return h(e)===r},VD.isSuspense=function(e){return h(e)===l},VD.isSuspenseList=function(e){return h(e)===c},VD.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)},VD.typeOf=h,VD}var WD,HD,XD={};
|
|
62
|
-
/**
|
|
63
|
-
* @license React
|
|
64
|
-
* react-is.development.js
|
|
65
|
-
*
|
|
66
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the MIT license found in the
|
|
69
|
-
* LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/function $D(){return WD||(WD=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case r:case i:case o:case c:case u:return e;default:switch(e=e&&e.$$typeof){case s:case l:case f:case d:case a:return e;default:return p}}case n:return p}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h=Symbol.for("react.client.reference");XD.ContextConsumer=a,XD.ContextProvider=s,XD.Element=t,XD.ForwardRef=l,XD.Fragment=r,XD.Lazy=f,XD.Memo=d,XD.Portal=n,XD.Profiler=i,XD.StrictMode=o,XD.Suspense=c,XD.SuspenseList=u,XD.isContextConsumer=function(t){return e(t)===a},XD.isContextProvider=function(t){return e(t)===s},XD.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},XD.isForwardRef=function(t){return e(t)===l},XD.isFragment=function(t){return e(t)===r},XD.isLazy=function(t){return e(t)===f},XD.isMemo=function(t){return e(t)===d},XD.isPortal=function(t){return e(t)===n},XD.isProfiler=function(t){return e(t)===i},XD.isStrictMode=function(t){return e(t)===o},XD.isSuspense=function(t){return e(t)===c},XD.isSuspenseList=function(t){return e(t)===u},XD.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===c||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===a||e.$$typeof===l||e.$$typeof===h||void 0!==e.getModuleId)},XD.typeOf=e}()),XD}function ZD(){return HD||(HD=1,"production"===process.env.NODE_ENV?BD.exports=GD():BD.exports=$D()),BD.exports}var YD=ZD();function UD(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 JD(e){if(o.isValidElement(e)||YD.isValidElementType(e)||!UD(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=JD(e[n])})),t}function KD(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return UD(e)&&UD(t)&&Object.keys(t).forEach((i=>{o.isValidElement(t[i])||YD.isValidElementType(t[i])?r[i]=t[i]:UD(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&UD(e[i])?r[i]=KD(e[i],t[i],n):n.clone?r[i]=UD(t[i])?JD(t[i]):t[i]:r[i]=t[i]})),r}function qD(e,t){return t?KD(e,t,{clone:!1}):e}const QD="production"!==process.env.NODE_ENV?ty.oneOfType([ty.number,ty.string,ty.object,ty.array]):{};const ej={xs:0,sm:600,md:900,lg:1200,xl:1536},tj={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ej[e]}px)`},nj={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:ej[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function rj(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||tj;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||tj;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){if("production"!==process.env.NODE_ENV)throw new Error("production"!==process.env.NODE_ENV?`MUI: The provided shorthand (${t}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:FD(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:nj,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||ej).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 oj(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 ij(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:oj(e,n)||r,t&&(o=t(o,r,e)),o}function aj(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=oj(e.theme,r)||{};return rj(e,i,(e=>{let r=ij(a,o,e);return e===r&&"string"==typeof e&&(r=ij(a,o,`${t}${"default"===e?"":LD(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:QD}:{},i.filterProps=[t],i}const sj={m:"margin",p:"padding"},lj={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cj={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uj=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!cj[e])return[e];e=cj[e]}const[t,n]=e.split(""),r=sj[t],o=lj[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),dj=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fj=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],pj=[...dj,...fj];function hj(e,t,n,r){const o=oj(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),"string"==typeof o?`calc(${e} * ${o})`:o*e):Array.isArray(o)?e=>{if("string"==typeof e)return e;const n=Math.abs(e);"production"!==process.env.NODE_ENV&&(Number.isInteger(n)?n>o.length-1&&console.error([`MUI: The value provided (${n}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${n} > ${o.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n")));const r=o[n];return e>=0?r:"number"==typeof r?-r:`-${r}`}:"function"==typeof o?o:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function mj(e){return hj(e,"spacing",8,"spacing")}function gj(e,t){return"string"==typeof t||null==t?t:e(t)}function yj(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=gj(t,n),e)),{})}(uj(n),r);return rj(e,e[n],o)}function bj(e,t){const n=mj(e.theme);return Object.keys(e).map((r=>yj(e,t,r,n))).reduce(qD,{})}function vj(e){return bj(e,dj)}function wj(e){return bj(e,fj)}function xj(...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]?qD(n,t[r](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Cj(e){return"number"!=typeof e?e:`${e}px solid`}function kj(e,t){return aj({prop:e,themeKey:"borders",transform:t})}vj.propTypes="production"!==process.env.NODE_ENV?dj.reduce(((e,t)=>(e[t]=QD,e)),{}):{},vj.filterProps=dj,wj.propTypes="production"!==process.env.NODE_ENV?fj.reduce(((e,t)=>(e[t]=QD,e)),{}):{},wj.filterProps=fj,"production"===process.env.NODE_ENV||pj.reduce(((e,t)=>(e[t]=QD,e)),{});const Ej=kj("border",Cj),Sj=kj("borderTop",Cj),Ij=kj("borderRight",Cj),_j=kj("borderBottom",Cj),Aj=kj("borderLeft",Cj),Nj=kj("borderColor"),Oj=kj("borderTopColor"),Rj=kj("borderRightColor"),Mj=kj("borderBottomColor"),Tj=kj("borderLeftColor"),Pj=kj("outline",Cj),Dj=kj("outlineColor"),jj=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=hj(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:gj(t,e)});return rj(e,e.borderRadius,n)}return null};jj.propTypes="production"!==process.env.NODE_ENV?{borderRadius:QD}:{},jj.filterProps=["borderRadius"],xj(Ej,Sj,Ij,_j,Aj,Nj,Oj,Rj,Mj,Tj,jj,Pj,Dj);const Fj=e=>{if(void 0!==e.gap&&null!==e.gap){const t=hj(e.theme,"spacing",8,"gap"),n=e=>({gap:gj(t,e)});return rj(e,e.gap,n)}return null};Fj.propTypes="production"!==process.env.NODE_ENV?{gap:QD}:{},Fj.filterProps=["gap"];const Lj=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=hj(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:gj(t,e)});return rj(e,e.columnGap,n)}return null};Lj.propTypes="production"!==process.env.NODE_ENV?{columnGap:QD}:{},Lj.filterProps=["columnGap"];const zj=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=hj(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:gj(t,e)});return rj(e,e.rowGap,n)}return null};zj.propTypes="production"!==process.env.NODE_ENV?{rowGap:QD}:{},zj.filterProps=["rowGap"];function Bj(e,t){return"grey"===t?t:e}xj(Fj,Lj,zj,aj({prop:"gridColumn"}),aj({prop:"gridRow"}),aj({prop:"gridAutoFlow"}),aj({prop:"gridAutoColumns"}),aj({prop:"gridAutoRows"}),aj({prop:"gridTemplateColumns"}),aj({prop:"gridTemplateRows"}),aj({prop:"gridTemplateAreas"}),aj({prop:"gridArea"}));function Vj(e){return e<=1&&0!==e?100*e+"%":e}xj(aj({prop:"color",themeKey:"palette",transform:Bj}),aj({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bj}),aj({prop:"backgroundColor",themeKey:"palette",transform:Bj}));const Gj=aj({prop:"width",transform:Vj}),Wj=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||ej[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Vj(t)}};return rj(e,e.maxWidth,t)}return null};Wj.filterProps=["maxWidth"];const Hj=aj({prop:"minWidth",transform:Vj}),Xj=aj({prop:"height",transform:Vj}),$j=aj({prop:"maxHeight",transform:Vj}),Zj=aj({prop:"minHeight",transform:Vj});aj({prop:"size",cssProperty:"width",transform:Vj}),aj({prop:"size",cssProperty:"height",transform:Vj});xj(Gj,Wj,Hj,Xj,$j,Zj,aj({prop:"boxSizing"}));const Yj={border:{themeKey:"borders",transform:Cj},borderTop:{themeKey:"borders",transform:Cj},borderRight:{themeKey:"borders",transform:Cj},borderBottom:{themeKey:"borders",transform:Cj},borderLeft:{themeKey:"borders",transform:Cj},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Cj},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jj},color:{themeKey:"palette",transform:Bj},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bj},backgroundColor:{themeKey:"palette",transform:Bj},p:{style:wj},pt:{style:wj},pr:{style:wj},pb:{style:wj},pl:{style:wj},px:{style:wj},py:{style:wj},padding:{style:wj},paddingTop:{style:wj},paddingRight:{style:wj},paddingBottom:{style:wj},paddingLeft:{style:wj},paddingX:{style:wj},paddingY:{style:wj},paddingInline:{style:wj},paddingInlineStart:{style:wj},paddingInlineEnd:{style:wj},paddingBlock:{style:wj},paddingBlockStart:{style:wj},paddingBlockEnd:{style:wj},m:{style:vj},mt:{style:vj},mr:{style:vj},mb:{style:vj},ml:{style:vj},mx:{style:vj},my:{style:vj},margin:{style:vj},marginTop:{style:vj},marginRight:{style:vj},marginBottom:{style:vj},marginLeft:{style:vj},marginX:{style:vj},marginY:{style:vj},marginInline:{style:vj},marginInlineStart:{style:vj},marginInlineEnd:{style:vj},marginBlock:{style:vj},marginBlockStart:{style:vj},marginBlockEnd:{style:vj},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:Fj},rowGap:{style:zj},columnGap:{style:Lj},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vj},maxWidth:{style:Wj},minWidth:{transform:Vj},height:{transform:Vj},maxHeight:{transform:Vj},minHeight:{transform:Vj},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 Uj=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=oj(n,s)||{};if(c)return c(o);return rj(o,t,(t=>{let n=ij(u,l,t);return t===n&&"string"==typeof t&&(n=ij(u,l,`${e}${"default"===t?"":LD(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??Yj;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=qD(l,e(n,a,o,i));else{const e=rj({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=qD(l,e):l[n]=t({sx:a,theme:o})}else l=qD(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)}}();Uj.filterProps=["sx"];var Jj=/^((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)-.*))$/,Kj=wM((function(e){return Jj.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),qj=function(e){return"theme"!==e},Qj=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Kj:qj},eF=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},tF=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return MM(t,n,r),XM((function(){return TM(t,n,r)})),null},nF=function e(t,n){var r,i,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var l=eF(t,n,a),c=l||Qj(s),u=!c("as");return function(){var d=arguments,f=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,m=1;m<h;m++)f.push(d[m],p[m])}var g=UM((function(e,t,n){var r=u&&e.as||s,a="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=o.useContext(JM)}"string"==typeof e.className?a=RM(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var m=HM(f.concat(d),t.registered,p);a+=t.key+"-"+m.name,void 0!==i&&(a+=" "+i);var g=u&&void 0===l?Qj(r):c,y={};for(var b in e)u&&"as"===b||g(b)&&(y[b]=e[b]);return y.className=a,n&&(y.ref=n),o.createElement(o.Fragment,null,o.createElement(tF,{cache:t,serialized:m,isStringTag:"string"==typeof r}),o.createElement(r,y))}));return g.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=f,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,r){return e(t,bR({},n,r,{shouldForwardProp:eF(g,r,!0)})).apply(void 0,f)},g}}.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){nF[e]=nF(e)}));const rF=[];function oF(e){return rF[0]=e,HM(rF)}function iF(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 aF={borderRadius:4};function sF(e=8,t=mj({spacing:e})){if(e.mui)return e;const n=(...e)=>{"production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`));return(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 lF(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 cF(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=KD({breakpoints:iF(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:sF(o),shape:{...aF,...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=lF,s=t.reduce(((e,t)=>KD(e,t)),s),s.unstable_sxConfig={...Yj,...a?.unstable_sxConfig},s.unstable_sx=function(e){return Uj({sx:e,theme:this})},s}const uF=e=>e,dF=(()=>{let e=uF;return{configure(t){e=t},generate:t=>e(t),reset(){e=uF}}})(),fF={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 pF(e,t,n="Mui"){const r=fF[t];return r?`${n}-${r}`:`${dF.generate(e)}-${t}`}function hF(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=pF(e,t,n)})),r}function mF(e,t=""){return e.displayName||e.name||t}function gF(e,t,n){const r=mF(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function yF(e){const{variants:t,...n}=e,r={variants:t,style:oF(n),isProcessed:!0};return r.style===n||t&&t.forEach((e=>{"function"!=typeof e.style&&(e.style=oF(e.style))})),r}const bF=cF();function vF(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function wF(e){return e?(t,n)=>n[e]:null}function xF(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap((t=>xF(e,t)));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return CF(e,n.variants,[t])}return n?.isProcessed?n.style:n}function CF(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 kF(e,t){let n;return"production"!==process.env.NODE_ENV&&e&&(n=`${e}-${EF(t||"Root")}`),n}function EF(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function SF(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]=SF(r[t],i[t])}}else n[o]=i;else n[o]=r||{}}else void 0===n[o]&&(n[o]=e[o])}return n}const IF="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function _F(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function AF(e){if(e.type)return e;if("#"===e.charAt(0))return AF(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))),"production"!==process.env.NODE_ENV&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),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("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:FD(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("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:FD(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const NF=(e,t)=>{try{return(e=>{const t=AF(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(n){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};function OF(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 RF(e){e=AF(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])),OF({type:s,values:l})}function MF(e){let t="hsl"===(e=AF(e)).type||"hsla"===e.type?AF(RF(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 TF(e,t){const n=MF(e),r=MF(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function PF(e,t){return e=AF(e),t=_F(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,OF(e)}function DF(e,t,n){try{return PF(e,t)}catch(t){return e}}function jF(e,t){if(e=AF(e),t=_F(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 OF(e)}function FF(e,t,n){try{return jF(e,t)}catch(t){return e}}function LF(e,t){if(e=AF(e),t=_F(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 OF(e)}function zF(e,t,n){try{return LF(e,t)}catch(t){return e}}function BF(e,t,n){try{return function(e,t=.15){return MF(e)>.5?jF(e,t):LF(e,t)}(e,t)}catch(t){return e}}var VF,GF,WF=(VF=ty.elementType,GF=function(e,t,n,r,o){const i=e[t],a=o||t;if(null==i||"undefined"==typeof window)return null;let s;return"function"!=typeof i||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(i)||(s="Did you accidentally provide a plain function component instead?"),void 0!==s?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null},"production"===process.env.NODE_ENV?()=>null:function(...e){return VF(...e)||GF(...e)});const HF=ty.oneOfType([ty.func,ty.object]);function XF(e){const t=o.useRef(e);return IF((()=>{t.current=e})),o.useRef(((...e)=>(0,t.current)(...e))).current}function $F(...e){return o.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 ZF={};function YF(e,t){const n=o.useRef(ZF);return n.current===ZF&&(n.current=e(t)),n}const UF=[];class JF{static create(){return new JF}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 KF(){const e=YF(JF.create).current;var t;return t=e.disposeEffect,o.useEffect(t,UF),e}function qF(e){try{return e.matches(":focus-visible")}catch(e){"production"===process.env.NODE_ENV||/jsdom/.test(window.navigator.userAgent)||console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join("\n"))}return!1}function QF(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 eL(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=PD(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=QF(r),l=QF(o),c=t(a),u=PD(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 tL=o.createContext(void 0);function nL({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?SF(o.defaultProps,r):o.styleOverrides||o.variants?r:SF(o,r)}({props:e,name:t,theme:{components:o.useContext(tL)}})}"production"!==process.env.NODE_ENV&&(ty.node,ty.object);const rL={theme:void 0};function oL(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 iL=(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 aL(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}),iL(i,e,`var(${r})`,s),iL(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 sL={black:"#000",white:"#fff"},lL={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"},cL="#f3e5f5",uL="#ce93d8",dL="#ba68c8",fL="#ab47bc",pL="#9c27b0",hL="#7b1fa2",mL="#e57373",gL="#ef5350",yL="#f44336",bL="#d32f2f",vL="#c62828",wL="#ffb74d",xL="#ffa726",CL="#ff9800",kL="#f57c00",EL="#e65100",SL="#e3f2fd",IL="#90caf9",_L="#42a5f5",AL="#1976d2",NL="#1565c0",OL="#4fc3f7",RL="#29b6f6",ML="#03a9f4",TL="#0288d1",PL="#01579b",DL="#81c784",jL="#66bb6a",FL="#4caf50",LL="#388e3c",zL="#2e7d32",BL="#1b5e20";function VL(){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:sL.white,default:sL.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 GL=VL();function WL(){return{text:{primary:sL.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:sL.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 HL=WL();function XL(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=LF(e.main,o):"dark"===t&&(e.dark=jF(e.main,i)))}function $L(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||function(e="light"){return"dark"===e?{main:IL,light:SL,dark:_L}:{main:AL,light:_L,dark:NL}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:uL,light:cL,dark:fL}:{main:pL,light:dL,dark:hL}}(t),s=e.error||function(e="light"){return"dark"===e?{main:yL,light:mL,dark:bL}:{main:bL,light:gL,dark:vL}}(t),l=e.info||function(e="light"){return"dark"===e?{main:RL,light:OL,dark:TL}:{main:TL,light:ML,dark:PL}}(t),c=e.success||function(e="light"){return"dark"===e?{main:jL,light:DL,dark:LL}:{main:zL,light:FL,dark:BL}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:xL,light:wL,dark:kL}:{main:"#ed6c02",light:CL,dark:EL}}(t);function d(e){const t=TF(e,HL.text.primary)>=n?HL.text.primary:GL.text.primary;if("production"!==process.env.NODE_ENV){const n=TF(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}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("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:FD(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:FD(12,t?` (${t})`:"",JSON.stringify(e.main)));return XL(e,"light",o,r),XL(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e};let p;"light"===t?p=VL():"dark"===t&&(p=WL()),"production"!==process.env.NODE_ENV&&(p||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return KD({common:{...sL},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:lL,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...p},o)}function ZL(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 YL={textTransform:"uppercase"},UL='"Roboto", "Helvetica", "Arial", sans-serif';function JL(e,t){const{fontFamily:n=UL,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;"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const 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===UL?{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,YL),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,YL),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return KD({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}function KL(...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 qL=["none",KL(0,2,1,-1,0,1,1,0,0,1,3,0),KL(0,3,1,-2,0,2,2,0,0,1,5,0),KL(0,3,3,-2,0,3,4,0,0,1,8,0),KL(0,2,4,-1,0,4,5,0,0,1,10,0),KL(0,3,5,-1,0,5,8,0,0,1,14,0),KL(0,3,5,-1,0,6,10,0,0,1,18,0),KL(0,4,5,-2,0,7,10,1,0,2,16,1),KL(0,5,5,-3,0,8,10,1,0,3,14,2),KL(0,5,6,-3,0,9,12,1,0,3,16,2),KL(0,6,6,-3,0,10,14,1,0,4,18,3),KL(0,6,7,-4,0,11,15,1,0,4,20,3),KL(0,7,8,-4,0,12,17,2,0,5,22,4),KL(0,7,8,-4,0,13,19,2,0,5,24,4),KL(0,7,9,-4,0,14,21,2,0,5,26,4),KL(0,8,9,-5,0,15,22,2,0,6,28,5),KL(0,8,10,-5,0,16,24,2,0,6,30,5),KL(0,8,11,-5,0,17,26,2,0,6,32,5),KL(0,9,11,-5,0,18,28,2,0,7,34,6),KL(0,9,12,-6,0,19,29,2,0,7,36,6),KL(0,10,13,-6,0,20,31,3,0,8,38,7),KL(0,10,13,-6,0,21,33,3,0,8,40,7),KL(0,10,14,-6,0,22,35,3,0,8,42,7),KL(0,11,14,-7,0,23,36,3,0,9,44,8),KL(0,11,15,-7,0,24,38,3,0,9,46,8)],QL={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)"},ez={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tz(e){return`${Math.round(e)}ms`}function nz(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function rz(e){const t={...QL,...e.easing},n={...ez,...e.duration};return{getAutoHeightDuration:nz,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!Number.isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),n(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),n(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof r&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:tz(o)} ${i} ${"string"==typeof a?a:tz(a)}`)).join(",")},...e,easing:t,duration:n}}const oz={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function iz(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];!UD(r=a)&&void 0!==r&&"string"!=typeof r&&"boolean"!=typeof r&&"number"!=typeof r&&!Array.isArray(r)||i.startsWith("unstable_")?delete t[i]:UD(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 az(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":FD(20));const u=$L(i),d=cF(e);let f=KD(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:qL.slice(),typography:JL(u,s),transitions:rz(a),zIndex:{...oz}});var p,h;if(f=KD(f,c),f=t.reduce(((e,t)=>KD(e,t)),f),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let r;for(r in t){const o=t[r];if(e.includes(r)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=pF("",r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[r]={}}}};Object.keys(f.components).forEach((e=>{const n=f.components[e].styleOverrides;n&&e.startsWith("Mui")&&t(n,e)}))}return f.unstable_sxConfig={...Yj,...c?.unstable_sxConfig},f.unstable_sx=function(e){return Uj({sx:e,theme:this})},f.toRuntimeSource=iz,f}const sz=[...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 lz(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function cz(e){return"dark"===e?sz:[]}function uz(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 dz=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 fz(e,t,n){!e[t]&&n&&(e[t]=n)}function pz(e){return"string"==typeof e&&e.startsWith("hsl")?RF(e):e}function hz(e,t){`${t}Channel`in e||(e[`${t}Channel`]=NF(pz(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}const mz=e=>{try{return e()}catch(e){}};function gz(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=$L(t);return{palette:i,opacity:{...lz(i.mode),...n},overlays:r||cz(i.mode),...o}}({...t,palette:{mode:o,...t?.palette}}));const{palette:i,...a}=az({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:i,opacity:{...lz(o),...t?.opacity},overlays:t?.overlays||cz(o)},a}function yz(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=uz,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")=>oL(e))(i),{[d]:p,light:h,dark:m,...g}=n,y={...g};let b=p;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(b=!0),!b)throw new Error("production"!==process.env.NODE_ENV?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:FD(21,d));const v=gz(y,b,c,d);h&&!y.light&&gz(y,h,void 0,"light"),m&&!y.dark&&gz(y,m,void 0,"dark");let w={defaultColorScheme:d,...v,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:y,font:{...ZL(v.typography),...v.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&&(fz(t.common,"background","#fff"),fz(t.common,"onBackground","#000")),"dark"===t.mode&&(fz(t.common,"background","#000"),fz(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){fz(t.Alert,"errorColor",FF(t.error.light,.6)),fz(t.Alert,"infoColor",FF(t.info.light,.6)),fz(t.Alert,"successColor",FF(t.success.light,.6)),fz(t.Alert,"warningColor",FF(t.warning.light,.6)),fz(t.Alert,"errorFilledBg",n("palette-error-main")),fz(t.Alert,"infoFilledBg",n("palette-info-main")),fz(t.Alert,"successFilledBg",n("palette-success-main")),fz(t.Alert,"warningFilledBg",n("palette-warning-main")),fz(t.Alert,"errorFilledColor",mz((()=>t.getContrastText(t.error.main)))),fz(t.Alert,"infoFilledColor",mz((()=>t.getContrastText(t.info.main)))),fz(t.Alert,"successFilledColor",mz((()=>t.getContrastText(t.success.main)))),fz(t.Alert,"warningFilledColor",mz((()=>t.getContrastText(t.warning.main)))),fz(t.Alert,"errorStandardBg",zF(t.error.light,.9)),fz(t.Alert,"infoStandardBg",zF(t.info.light,.9)),fz(t.Alert,"successStandardBg",zF(t.success.light,.9)),fz(t.Alert,"warningStandardBg",zF(t.warning.light,.9)),fz(t.Alert,"errorIconColor",n("palette-error-main")),fz(t.Alert,"infoIconColor",n("palette-info-main")),fz(t.Alert,"successIconColor",n("palette-success-main")),fz(t.Alert,"warningIconColor",n("palette-warning-main")),fz(t.AppBar,"defaultBg",n("palette-grey-100")),fz(t.Avatar,"defaultBg",n("palette-grey-400")),fz(t.Button,"inheritContainedBg",n("palette-grey-300")),fz(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),fz(t.Chip,"defaultBorder",n("palette-grey-400")),fz(t.Chip,"defaultAvatarColor",n("palette-grey-700")),fz(t.Chip,"defaultIconColor",n("palette-grey-700")),fz(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),fz(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),fz(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),fz(t.LinearProgress,"primaryBg",zF(t.primary.main,.62)),fz(t.LinearProgress,"secondaryBg",zF(t.secondary.main,.62)),fz(t.LinearProgress,"errorBg",zF(t.error.main,.62)),fz(t.LinearProgress,"infoBg",zF(t.info.main,.62)),fz(t.LinearProgress,"successBg",zF(t.success.main,.62)),fz(t.LinearProgress,"warningBg",zF(t.warning.main,.62)),fz(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),fz(t.Slider,"primaryTrack",zF(t.primary.main,.62)),fz(t.Slider,"secondaryTrack",zF(t.secondary.main,.62)),fz(t.Slider,"errorTrack",zF(t.error.main,.62)),fz(t.Slider,"infoTrack",zF(t.info.main,.62)),fz(t.Slider,"successTrack",zF(t.success.main,.62)),fz(t.Slider,"warningTrack",zF(t.warning.main,.62));const e=BF(t.background.default,.8);fz(t.SnackbarContent,"bg",e),fz(t.SnackbarContent,"color",mz((()=>t.getContrastText(e)))),fz(t.SpeedDialAction,"fabHoverBg",BF(t.background.paper,.15)),fz(t.StepConnector,"border",n("palette-grey-400")),fz(t.StepContent,"border",n("palette-grey-400")),fz(t.Switch,"defaultColor",n("palette-common-white")),fz(t.Switch,"defaultDisabledColor",n("palette-grey-100")),fz(t.Switch,"primaryDisabledColor",zF(t.primary.main,.62)),fz(t.Switch,"secondaryDisabledColor",zF(t.secondary.main,.62)),fz(t.Switch,"errorDisabledColor",zF(t.error.main,.62)),fz(t.Switch,"infoDisabledColor",zF(t.info.main,.62)),fz(t.Switch,"successDisabledColor",zF(t.success.main,.62)),fz(t.Switch,"warningDisabledColor",zF(t.warning.main,.62)),fz(t.TableCell,"border",zF(DF(t.divider,1),.88)),fz(t.Tooltip,"bg",DF(t.grey[700],.92))}if("dark"===t.mode){fz(t.Alert,"errorColor",zF(t.error.light,.6)),fz(t.Alert,"infoColor",zF(t.info.light,.6)),fz(t.Alert,"successColor",zF(t.success.light,.6)),fz(t.Alert,"warningColor",zF(t.warning.light,.6)),fz(t.Alert,"errorFilledBg",n("palette-error-dark")),fz(t.Alert,"infoFilledBg",n("palette-info-dark")),fz(t.Alert,"successFilledBg",n("palette-success-dark")),fz(t.Alert,"warningFilledBg",n("palette-warning-dark")),fz(t.Alert,"errorFilledColor",mz((()=>t.getContrastText(t.error.dark)))),fz(t.Alert,"infoFilledColor",mz((()=>t.getContrastText(t.info.dark)))),fz(t.Alert,"successFilledColor",mz((()=>t.getContrastText(t.success.dark)))),fz(t.Alert,"warningFilledColor",mz((()=>t.getContrastText(t.warning.dark)))),fz(t.Alert,"errorStandardBg",FF(t.error.light,.9)),fz(t.Alert,"infoStandardBg",FF(t.info.light,.9)),fz(t.Alert,"successStandardBg",FF(t.success.light,.9)),fz(t.Alert,"warningStandardBg",FF(t.warning.light,.9)),fz(t.Alert,"errorIconColor",n("palette-error-main")),fz(t.Alert,"infoIconColor",n("palette-info-main")),fz(t.Alert,"successIconColor",n("palette-success-main")),fz(t.Alert,"warningIconColor",n("palette-warning-main")),fz(t.AppBar,"defaultBg",n("palette-grey-900")),fz(t.AppBar,"darkBg",n("palette-background-paper")),fz(t.AppBar,"darkColor",n("palette-text-primary")),fz(t.Avatar,"defaultBg",n("palette-grey-600")),fz(t.Button,"inheritContainedBg",n("palette-grey-800")),fz(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),fz(t.Chip,"defaultBorder",n("palette-grey-700")),fz(t.Chip,"defaultAvatarColor",n("palette-grey-300")),fz(t.Chip,"defaultIconColor",n("palette-grey-300")),fz(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),fz(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),fz(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),fz(t.LinearProgress,"primaryBg",FF(t.primary.main,.5)),fz(t.LinearProgress,"secondaryBg",FF(t.secondary.main,.5)),fz(t.LinearProgress,"errorBg",FF(t.error.main,.5)),fz(t.LinearProgress,"infoBg",FF(t.info.main,.5)),fz(t.LinearProgress,"successBg",FF(t.success.main,.5)),fz(t.LinearProgress,"warningBg",FF(t.warning.main,.5)),fz(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),fz(t.Slider,"primaryTrack",FF(t.primary.main,.5)),fz(t.Slider,"secondaryTrack",FF(t.secondary.main,.5)),fz(t.Slider,"errorTrack",FF(t.error.main,.5)),fz(t.Slider,"infoTrack",FF(t.info.main,.5)),fz(t.Slider,"successTrack",FF(t.success.main,.5)),fz(t.Slider,"warningTrack",FF(t.warning.main,.5));const e=BF(t.background.default,.98);fz(t.SnackbarContent,"bg",e),fz(t.SnackbarContent,"color",mz((()=>t.getContrastText(e)))),fz(t.SpeedDialAction,"fabHoverBg",BF(t.background.paper,.15)),fz(t.StepConnector,"border",n("palette-grey-600")),fz(t.StepContent,"border",n("palette-grey-600")),fz(t.Switch,"defaultColor",n("palette-grey-300")),fz(t.Switch,"defaultDisabledColor",n("palette-grey-600")),fz(t.Switch,"primaryDisabledColor",FF(t.primary.main,.55)),fz(t.Switch,"secondaryDisabledColor",FF(t.secondary.main,.55)),fz(t.Switch,"errorDisabledColor",FF(t.error.main,.55)),fz(t.Switch,"infoDisabledColor",FF(t.info.main,.55)),fz(t.Switch,"successDisabledColor",FF(t.success.main,.55)),fz(t.Switch,"warningDisabledColor",FF(t.warning.main,.55)),fz(t.TableCell,"border",FF(DF(t.divider,1),.68)),fz(t.Tooltip,"bg",DF(t.grey[700],.92))}hz(t.background,"default"),hz(t.background,"paper"),hz(t.common,"background"),hz(t.common,"onBackground"),hz(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&fz(t[e],"mainChannel",NF(pz(n.main))),n.light&&fz(t[e],"lightChannel",NF(pz(n.light))),n.dark&&fz(t[e],"darkChannel",NF(pz(n.dark))),n.contrastText&&fz(t[e],"contrastTextChannel",NF(pz(n.contrastText))),"text"===e&&(hz(t[e],"primary"),hz(t[e],"secondary")),"action"===e&&(n.active&&hz(t[e],"active"),n.selected&&hz(t[e],"selected")))}))})),w=t.reduce(((e,t)=>KD(e,t)),w);const C={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:dz(w)},{vars:k,generateThemeVars:E,generateStyleSheets:S}=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}=aL(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}=aL(n,t);f=KD(f,i),p[e]={css:o,vars:r}})),h){const{css:e,vars:n,varsWithDefaults:r}=aL(h,t);f=KD(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=KD(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,C);return w.vars=k,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach((([e,t])=>{w[e]=t})),w.generateThemeVars=E,w.generateStyleSheets=S,w.generateSpacing=function(){return sF(c.spacing,mj(this))},w.getColorSchemeSelector=function(e){return function(t){return"media"===e?("production"!==process.env.NODE_ENV&&"light"!==t&&"dark"!==t&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@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={...Yj,...c?.unstable_sxConfig},w.unstable_sx=function(e){return Uj({sx:e,theme:this})},w.toRuntimeSource=iz,w}function bz(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:$L({...!0===n?{}:n.palette,mode:t})})}const vz=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 az(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=az({...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},bz(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},bz(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),yz({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}();const wz=function(e={}){const{themeId:t,defaultTheme:n=bF,rootShouldForwardProp:r=vF,slotShouldForwardProp:o=vF}=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!==Uj))));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=wF(EF(a)),...u}=t,d=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,f=l||!1;let p=vF;"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=
|
|
71
|
-
/**
|
|
72
|
-
* @mui/styled-engine v6.4.3
|
|
73
|
-
*
|
|
74
|
-
* @license MIT
|
|
75
|
-
* This source code is licensed under the MIT license found in the
|
|
76
|
-
* LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/
|
|
78
|
-
function(e,t){const n=nF(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const r="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n}(e,{shouldForwardProp:p,label:kF(n,a),...u}),m=e=>{if("function"==typeof e&&e.__emotion_real!==e)return function(t){return xF(t,e)};if(UD(e)){const t=yF(e);return t.variants?function(e){return xF(e,t)}:t.style}return e},g=(...t)=>{const r=[],o=t.map(m),s=[];if(r.push(i),n&&c&&s.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]=xF(e,r[t]);return c(e,o)})),n&&!d&&s.push((function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?CF(e,r):null})),f||s.push(Uj),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(s.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const l=[...r,...o,...s],u=h(...l);return e.muiName&&(u.muiName=e.muiName),"production"!==process.env.NODE_ENV&&(u.displayName=function(e,t,n){if(e)return`${e}${LD(t||"")}`;return`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return mF(e,"Component");if("object"==typeof e)switch(e.$$typeof){case YD.ForwardRef:return gF(e,e.render,"ForwardRef");case YD.Memo:return gF(e,e.type,"memo");default:return}}}(n)})`}(n,a,e)),u};return h.withConfig&&(g.withConfig=h.withConfig),g}}({themeId:"$$material",defaultTheme:vz,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),xz=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(rL.theme=r.theme,o=yF(e(rL)),t=o,n=r.theme),o}};function Cz(e){return nL(e)}function kz(e){return pF("MuiTable",e)}"production"!==process.env.NODE_ENV&&(ty.node,ty.object.isRequired),hF("MuiTable",["root","stickyHeader"]);const Ez=wz("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(xz((({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"}}]})))),Sz="table",Iz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTable"}),{className:r,component:i=Sz,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=n,u={...n,component:i,padding:a,size:s,stickyHeader:l},d=(e=>{const{classes:t,stickyHeader:n}=e;return DD({root:["root",n&&"stickyHeader"]},kz,t)})(u),f=o.useMemo((()=>({padding:a,size:s,stickyHeader:l})),[a,s,l]);return Bu.jsx(jD.Provider,{value:f,children:Bu.jsx(Ez,{as:i,role:i===Sz?null:"table",ref:t,className:PD(d.root,r),ownerState:u,...c})})}));"production"!==process.env.NODE_ENV&&(Iz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,padding:ty.oneOf(["checkbox","none","normal"]),size:ty.oneOfType([ty.oneOf(["medium","small"]),ty.string]),stickyHeader:ty.bool,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const _z=o.createContext();function Az(e){return pF("MuiTableBody",e)}"production"!==process.env.NODE_ENV&&(_z.displayName="Tablelvl2Context"),hF("MuiTableBody",["root"]);const Nz=wz("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Oz={variant:"body"},Rz="tbody",Mz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableBody"}),{className:r,component:o=Rz,...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return DD({root:["root"]},Az,t)})(a);return Bu.jsx(_z.Provider,{value:Oz,children:Bu.jsx(Nz,{className:PD(s.root,r),as:o,ref:t,role:o===Rz?null:"rowgroup",ownerState:a,...i})})}));function Tz(e){return pF("MuiTableCell",e)}"production"!==process.env.NODE_ENV&&(Mz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const Pz=hF("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Dz=wz("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${LD(n.size)}`],"normal"!==n.padding&&t[`padding${LD(n.padding)}`],"inherit"!==n.align&&t[`align${LD(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(xz((({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?LF(PF(e.palette.divider,1),.88):jF(PF(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",[`&.${Pz.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}}]})))),jz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableCell"}),{align:r="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=n,p=o.useContext(jD),h=o.useContext(_z),m=h&&"head"===h.variant;let g;g=a||(m?"th":"td");let y=l;"td"===g?y=void 0:!y&&m&&(y="col");const b=d||h&&h.variant,v={...n,align:r,component:g,padding:s||(p&&p.padding?p.padding:"normal"),size:c||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b},w=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return DD({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${LD(r)}`,"normal"!==o&&`padding${LD(o)}`,`size${LD(i)}`]},Tz,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Bu.jsx(Dz,{as:g,ref:t,className:PD(w.root,i),"aria-sort":x,scope:y,ownerState:v,...f})}));function Fz(e){return pF("MuiTableContainer",e)}"production"!==process.env.NODE_ENV&&(jz.propTypes={align:ty.oneOf(["center","inherit","justify","left","right"]),children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,padding:ty.oneOf(["checkbox","none","normal"]),scope:ty.string,size:ty.oneOfType([ty.oneOf(["medium","small"]),ty.string]),sortDirection:ty.oneOf(["asc","desc",!1]),sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object]),variant:ty.oneOfType([ty.oneOf(["body","footer","head"]),ty.string])}),hF("MuiTableContainer",["root"]);const Lz=wz("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),zz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableContainer"}),{className:r,component:o="div",...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return DD({root:["root"]},Fz,t)})(a);return Bu.jsx(Lz,{ref:t,as:o,className:PD(s.root,r),ownerState:a,...i})}));function Bz(e){return pF("MuiTableHead",e)}"production"!==process.env.NODE_ENV&&(zz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])}),hF("MuiTableHead",["root"]);const Vz=wz("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Gz={variant:"head"},Wz="thead",Hz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableHead"}),{className:r,component:o=Wz,...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return DD({root:["root"]},Bz,t)})(a);return Bu.jsx(_z.Provider,{value:Gz,children:Bu.jsx(Vz,{as:o,className:PD(s.root,r),ref:t,role:o===Wz?null:"rowgroup",ownerState:a,...i})})}));function Xz(e){return pF("MuiTableRow",e)}"production"!==process.env.NODE_ENV&&(Hz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const $z=hF("MuiTableRow",["root","selected","hover","head","footer"]),Zz=wz("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(xz((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${$z.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${$z.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:PF(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}))`:PF(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})))),Yz="tr",Uz=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableRow"}),{className:r,component:i=Yz,hover:a=!1,selected:s=!1,...l}=n,c=o.useContext(_z),u={...n,component:i,hover:a,selected:s,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant},d=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return DD({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Xz,t)})(u);return Bu.jsx(Zz,{as:i,ref:t,className:PD(d.root,r),role:i===Yz?null:"row",ownerState:u,...l})}));"production"!==process.env.NODE_ENV&&(Uz.propTypes={children:ty.node,classes:ty.object,className:ty.string,component:ty.elementType,hover:ty.bool,selected:ty.bool,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});class Jz{static create(){return new Jz}static use(){const e=YF(Jz.create).current,[t,n]=o.useState(!1);return e.shouldMount=t,e.setShouldMount=n,o.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 Kz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wR(e,t)}var qz=e.createContext(null);function Qz(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&e.isValidElement(t)?n(t):t}(t)})),r}function eB(e,t,n){return null!=n[t]?n[t]:e.props[t]}function tB(t,n,r){var o=Qz(t.children),i=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}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if(e.isValidElement(s)){var l=a in n,c=a in o,u=n[a],d=e.isValidElement(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&e.isValidElement(u)&&(i[a]=e.cloneElement(s,{onExited:r.bind(null,s),in:u.props.in,exit:eB(s,"exit",t),enter:eB(s,"enter",t)})):i[a]=e.cloneElement(s,{in:!1}):i[a]=e.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:eB(s,"exit",t),enter:eB(s,"enter",t)})}})),i}var nB=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},rB=function(t){function n(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(kR(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Kz(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,Qz(r.children,(function(t){return e.cloneElement(t,{onExited:o.bind(null,t),in:!0,appear:eB(t,"appear",r),enter:eB(t,"enter",r),exit:eB(t,"exit",r)})}))):tB(t,i,a),firstRender:!1}},r.handleExited=function(e,t){var n=Qz(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=bR({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,o=mR(t,["component","childFactory"]),i=this.state.contextValue,a=nB(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?e.createElement(qz.Provider,{value:i},a):e.createElement(qz.Provider,{value:i},e.createElement(n,o,a))},n}(e.Component);function oB(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=o.useState(!1),p=PD(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-s/2+a,left:-s/2+i},m=PD(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||f(!0),o.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),Bu.jsx("span",{className:p,style:h,children:Bu.jsx("span",{className:m})})}rB.propTypes="production"!==process.env.NODE_ENV?{component:ty.any,children:ty.node,appear:ty.bool,enter:ty.bool,exit:ty.bool,childFactory:ty.func}:{},rB.defaultProps={component:"div",childFactory:function(e){return e}},"production"!==process.env.NODE_ENV&&(oB.propTypes={classes:ty.object.isRequired,className:ty.string,in:ty.bool,onExited:ty.func,pulsate:ty.bool,rippleSize:ty.number,rippleX:ty.number,rippleY:ty.number,timeout:ty.number.isRequired});const iB=hF("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),aB=oT`
|
|
26
|
+
*/const Ub={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"]},Jb={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"]},Kb={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"]},qb={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"]},Qb={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"]},ev={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"]},tv={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"]},nv={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"]},rv={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"]},ov={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"]},iv={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"]},av={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"]},sv={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"]},lv={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"]},cv={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"]};tb.autoAddCss=!1;const uv=e=>{const{style:t,...n}=e;return o.createElement("span",{style:{marginLeft:"5px",...t}},o.createElement($b,{...n}))},dv=e=>o.createElement(uv,{...e,icon:Jb}),fv=e=>o.createElement(uv,{...e,icon:lv}),pv=e=>o.createElement(uv,{...e,icon:sv}),hv=e=>o.createElement(uv,{...e,icon:iv}),mv=e=>o.createElement(uv,{...e,icon:Kb}),gv=e=>o.createElement(uv,{...e,icon:Ub}),yv=e=>o.createElement(uv,{...e,icon:cv}),bv=e=>o.createElement(uv,{...e,icon:ov}),vv=e=>o.createElement(uv,{...e,icon:Qb}),wv=vv,xv=e=>o.createElement(uv,{...e,icon:av}),Ev=e=>o.createElement(uv,{...e,icon:tv}),Cv=e=>o.createElement(uv,{...e,icon:qb}),kv=e=>o.createElement(uv,{...e,icon:nv}),Sv=e=>o.createElement(uv,{...e,icon:ev}),_v=e=>o.createElement(uv,{...e,icon:rv}),Iv=({trigger:e,title:t,description:n,children:r,closebutton:i=!0,onOpenChange:a,buttons:s=[],open:l,setOpen:c,modal:u=!0})=>{const d=o.useContext(nW).local_state((e=>e.funcnodescontainerRef)),f=o.createElement(jh,{asChild:!0},o.createElement("div",{className:"dialogconent funcnodescontainer"},t&&o.createElement(Bh,{className:"dialogtitle"},t),o.createElement(Lh,{className:"dialogdescription"},n),o.createElement("div",{className:"dialogchildren"},r),o.createElement("div",{style:{display:"flex",marginTop:25,justifyContent:"flex-end"}},(s||[]).map(((e,t)=>o.createElement(Fh,{asChild:!0,key:t},o.createElement("button",{className:"dialogsendbutton",onClick:e.onClick},e.text))))),i&&o.createElement(Fh,{asChild:!0},o.createElement("button",{className:"dialogclosebutton","aria-label":"Close"},o.createElement(xv,null)))));return o.createElement(Th,{open:l,onOpenChange:e=>{c&&c(e),a&&a(e)},modal:u},e&&o.createElement(Mh,{asChild:!0},e),o.createElement(Ph,{container:d},o.createElement(Dh,{className:"dialogoverlay funcnodescontainer"}),f))};function Av(t){const n=t+"CollectionProvider",[r,o]=wf(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=t=>{const{scope:n,children:r}=t,o=e.useRef(null),a=e.useRef(new Map).current;return vf.jsx(i,{scope:n,itemMap:a,collectionRef:o,children:r})};s.displayName=n;const l=t+"CollectionSlot",c=e.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=df(t,a(l,n).collectionRef);return vf.jsx(Af,{ref:o,children:r})}));c.displayName=l;const u=t+"CollectionItemSlot",d="data-radix-collection-item",f=e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,s=e.useRef(null),l=df(n,s),c=a(u,r);return e.useEffect((()=>(c.itemMap.set(s,{ref:s,...i}),()=>{c.itemMap.delete(s)}))),vf.jsx(Af,{[d]:"",ref:l,children:o})}));return f.displayName=u,[{Provider:s,Slot:c,ItemSlot:f},function(n){const r=a(t+"CollectionConsumer",n);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}var Nv=o.createContext(void 0);function Rv(e){const t=o.useContext(Nv);return e||t||"ltr"}const Ov=["top","right","bottom","left"],Tv=Math.min,Mv=Math.max,Pv=Math.round,Dv=Math.floor,jv=e=>({x:e,y:e}),Bv={left:"right",right:"left",bottom:"top",top:"bottom"},Lv={start:"end",end:"start"};function Fv(e,t,n){return Mv(e,Tv(t,n))}function zv(e,t){return"function"==typeof e?e(t):e}function Vv(e){return e.split("-")[0]}function Gv(e){return e.split("-")[1]}function Wv(e){return"x"===e?"y":"x"}function Hv(e){return"y"===e?"height":"width"}function Xv(e){return["top","bottom"].includes(Vv(e))?"y":"x"}function Yv(e){return Wv(Xv(e))}function $v(e){return e.replace(/start|end/g,(e=>Lv[e]))}function Zv(e){return e.replace(/left|right|bottom|top/g,(e=>Bv[e]))}function Uv(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 Jv(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 Kv(e,t,n){let{reference:r,floating:o}=e;const i=Xv(t),a=Yv(t),s=Hv(a),l=Vv(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(Gv(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function qv(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}=zv(t,e),h=Uv(p),m=s[f?"floating"===d?"reference":"floating":d],g=Jv(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,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Jv(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-w.top+h.top)/v.y,bottom:(w.bottom-g.bottom+h.bottom)/v.y,left:(g.left-w.left+h.left)/v.x,right:(w.right-g.right+h.right)/v.x}}function Qv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ew(e){return Ov.some((t=>e[t]>=0))}function tw(){return"undefined"!=typeof window}function nw(e){return iw(e)?(e.nodeName||"").toLowerCase():"#document"}function rw(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ow(e){var t;return null==(t=(iw(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function iw(e){return!!tw()&&(e instanceof Node||e instanceof rw(e).Node)}function aw(e){return!!tw()&&(e instanceof Element||e instanceof rw(e).Element)}function sw(e){return!!tw()&&(e instanceof HTMLElement||e instanceof rw(e).HTMLElement)}function lw(e){return!(!tw()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof rw(e).ShadowRoot)}function cw(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=mw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function uw(e){return["table","td","th"].includes(nw(e))}function dw(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function fw(e){const t=pw(),n=aw(e)?mw(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 pw(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function hw(e){return["html","body","#document"].includes(nw(e))}function mw(e){return rw(e).getComputedStyle(e)}function gw(e){return aw(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yw(e){if("html"===nw(e))return e;const t=e.assignedSlot||e.parentNode||lw(e)&&e.host||ow(e);return lw(t)?t.host:t}function bw(e){const t=yw(e);return hw(t)?e.ownerDocument?e.ownerDocument.body:e.body:sw(t)&&cw(t)?t:bw(t)}function vw(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=bw(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=rw(o);if(i){const e=ww(a);return t.concat(a,a.visualViewport||[],cw(o)?o:[],e&&n?vw(e):[])}return t.concat(o,vw(o,[],n))}function ww(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xw(e){const t=mw(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=sw(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Pv(n)!==i||Pv(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Ew(e){return aw(e)?e:e.contextElement}function Cw(e){const t=Ew(e);if(!sw(t))return jv(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=xw(t);let a=(i?Pv(n.width):n.width)/r,s=(i?Pv(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const kw=jv(0);function Sw(e){const t=rw(e);return pw()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:kw}function _w(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ew(e);let a=jv(1);t&&(r?aw(r)&&(a=Cw(r)):a=Cw(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==rw(e))&&t}(i,n,r)?Sw(i):jv(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=rw(i),t=r&&aw(r)?rw(r):r;let n=e,o=ww(n);for(;o&&r&&t!==n;){const e=Cw(o),t=o.getBoundingClientRect(),r=mw(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=rw(o),o=ww(n)}}return Jv({width:u,height:d,x:l,y:c})}function Iw(e,t){const n=gw(e).scrollLeft;return t?t.left+n:_w(ow(e)).left+n}function Aw(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Iw(e,r)),y:r.top+t.scrollTop}}function Nw(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=rw(e),r=ow(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=pw();(!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=ow(e),n=gw(e),r=e.ownerDocument.body,o=Mv(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Mv(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Iw(e);const s=-n.scrollTop;return"rtl"===mw(r).direction&&(a+=Mv(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(ow(e));else if(aw(t))r=function(e,t){const n=_w(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=sw(e)?Cw(e):jv(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=Sw(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Jv(r)}function Rw(e,t){const n=yw(e);return!(n===t||!aw(n)||hw(n))&&("fixed"===mw(n).position||Rw(n,t))}function Ow(e,t,n){const r=sw(t),o=ow(t),i="fixed"===n,a=_w(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=jv(0);if(r||!r&&!i)if(("body"!==nw(t)||cw(o))&&(s=gw(t)),r){const e=_w(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Iw(o));const c=!o||r||i?jv(0):Aw(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 Tw(e){return"static"===mw(e).position}function Mw(e,t){if(!sw(e)||"fixed"===mw(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ow(e)===n&&(n=n.ownerDocument.body),n}function Pw(e,t){const n=rw(e);if(dw(e))return n;if(!sw(e)){let t=yw(e);for(;t&&!hw(t);){if(aw(t)&&!Tw(t))return t;t=yw(t)}return n}let r=Mw(e,t);for(;r&&uw(r)&&Tw(r);)r=Mw(r,t);return r&&hw(r)&&Tw(r)&&!fw(r)?n:r||function(e){let t=yw(e);for(;sw(t)&&!hw(t);){if(fw(t))return t;if(dw(t))return null;t=yw(t)}return null}(e)||n}const Dw={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=ow(r),s=!!t&&dw(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=jv(1);const u=jv(0),d=sw(r);if((d||!d&&!i)&&(("body"!==nw(r)||cw(a))&&(l=gw(r)),sw(r))){const e=_w(r);c=Cw(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?jv(0):Aw(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:ow,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?dw(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=vw(e,[],!1).filter((e=>aw(e)&&"body"!==nw(e))),o=null;const i="fixed"===mw(e).position;let a=i?yw(e):e;for(;aw(a)&&!hw(a);){const t=mw(a),n=fw(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||cw(a)&&!n&&Rw(e,a))?r=r.filter((e=>e!==a)):o=t,a=yw(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=Nw(t,n,o);return e.top=Mv(r.top,e.top),e.right=Tv(r.right,e.right),e.bottom=Tv(r.bottom,e.bottom),e.left=Mv(r.left,e.left),e}),Nw(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Pw,getElementRects:async function(e){const t=this.getOffsetParent||Pw,n=this.getDimensions,r=await n(e.floating);return{reference:Ow(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}=xw(e);return{width:t,height:n}},getScale:Cw,isElement:aw,isRTL:function(e){return"rtl"===mw(e).direction}};function jw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Bw(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=Ew(e),u=o||i?[...c?vw(c):[],...vw(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=ow(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:-Dv(d)+"px "+-Dv(o.clientWidth-(u+f))+"px "+-Dv(o.clientHeight-(d+p))+"px "+-Dv(u)+"px",threshold:Mv(0,Tv(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||jw(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?_w(e):null;return l&&function t(){const r=_w(e);m&&!jw(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 Lw=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=Vv(n),s=Gv(n),l="y"===Xv(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=zv(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}}}}},Fw=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}=zv(e,t),c={x:n,y:r},u=await qv(t,l),d=Xv(Vv(o)),f=Wv(d);let p=c[f],h=c[d];if(i){const e="y"===f?"bottom":"right";p=Fv(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=Fv(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}}}}}},zw=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}=zv(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=Vv(o),b=Xv(s),v=Vv(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(v||!m?[Zv(s)]:function(e){const t=Zv(e);return[$v(e),t,$v(t)]}(s)),E="none"!==h;!f&&E&&x.push(...function(e,t,n,r){const o=Gv(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[]}}(Vv(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map($v)))),i}(s,m,h,w));const C=[s,...x],k=await qv(t,g),S=[];let _=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(k[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Gv(e),o=Yv(e),i=Hv(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Zv(a)),[a,Zv(a)]}(o,a,w);S.push(k[e[0]],k[e[1]])}if(_=[..._,{placement:o,overflows:S}],!S.every((e=>e<=0))){var I,A;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(A=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var N;const e=null==(N=_.filter((e=>{if(E){const t=Xv(e.placement);return t===b||"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:N[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}=zv(e,t),u=await qv(t,c),d=Vv(o),f=Gv(o),p="y"===Xv(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 b=m-u.top-u.bottom,v=h-u.left-u.right,w=Tv(m-u[g],b),x=Tv(h-u[y],v),E=!t.middlewareData.shift;let C=w,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=b),E&&!f){const e=Mv(u.left,0),t=Mv(u.right,0),n=Mv(u.top,0),r=Mv(u.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:Mv(u.left,u.right)):C=m-2*(0!==n||0!==r?n+r:Mv(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:C});const S=await a.getDimensions(s.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},Gw=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=zv(e,t);switch(r){case"referenceHidden":{const e=Qv(await qv(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ew(e)}}}case"escaped":{const e=Qv(await qv(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ew(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}=zv(e,t)||{};if(null==c)return{};const d=Uv(u),f={x:n,y:r},p=Yv(o),h=Hv(p),m=await a.getDimensions(c),g="y"===p,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let C=E?E[v]:0;C&&await(null==a.isElement?void 0:a.isElement(E))||(C=s.floating[v]||i.floating[h]);const k=w/2-x/2,S=C/2-m[h]/2-1,_=Tv(d[y],S),I=Tv(d[b],S),A=_,N=C-m[h]-I,R=C/2-m[h]/2+k,O=Fv(A,R,N),T=!l.arrow&&null!=Gv(o)&&R!==O&&i.reference[h]/2-(R<A?_:I)-m[h]/2<0,M=T?R<A?R-A:R-N:0;return{[p]:f[p]+M,data:{[p]:O,centerOffset:R-O-M,...T&&{alignmentOffset:M}},reset:T}}}),Hw=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}=zv(e,t),u={x:n,y:r},d=Xv(o),f=Wv(d);let p=u[f],h=u[d];const m=zv(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,b;const e="y"===f?"width":"height",t=["top","left"].includes(Vv(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==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Xw=(e,t,n)=>{const r=new Map,o={platform:Dw,...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}=Kv(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:b,reset:v}=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],...b}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=Kv(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Yw="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function $w(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(!$w(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)&&!$w(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Zw(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Uw(e,t){const n=Zw(e);return Math.round(t*n)/n}function Jw(e){const t=o.useRef(e);return Yw((()=>{t.current=e})),t}const Kw=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}}),qw=(e,t)=>({...Lw(e),options:[e,t]}),Qw=(e,t)=>({...Fw(e),options:[e,t]}),ex=(e,t)=>({...Hw(e),options:[e,t]}),tx=(e,t)=>({...zw(e),options:[e,t]}),nx=(e,t)=>({...Vw(e),options:[e,t]}),rx=(e,t)=>({...Gw(e),options:[e,t]}),ox=(e,t)=>({...Kw(e),options:[e,t]});var ix=o.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return vf.jsx(Tf.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:vf.jsx("polygon",{points:"0,0 30,0 15,10"})})}));ix.displayName="Arrow";var ax=ix;function sx(e){const[t,n]=o.useState(void 0);return Ef((()=>{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 lx="Popper",[cx,ux]=wf(lx),[dx,fx]=cx(lx),px=e=>{const{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return vf.jsx(dx,{scope:t,anchor:r,onAnchorChange:i,children:n})};px.displayName=lx;var hx="PopperAnchor",mx=o.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=fx(hx,n),s=o.useRef(null),l=df(t,s);return o.useEffect((()=>{a.onAnchorChange(r?.current||s.current)})),r?null:vf.jsx(Tf.div,{...i,ref:l})}));mx.displayName=hx;var gx="PopperContent",[yx,bx]=cx(gx),vx=o.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...y}=e,b=fx(gx,n),[v,w]=o.useState(null),x=df(t,(e=>w(e))),[E,C]=o.useState(null),k=sx(E),S=k?.width??0,_=k?.height??0,I=r+("center"!==s?"-"+s:""),A="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},N=Array.isArray(d)?d:[d],R=N.length>0,O={padding:A,boundary:N.filter(Cx),altBoundary:R},{refs:T,floatingStyles:M,placement:P,isPositioned:D,middlewareData:j}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=o.useState(r);$w(h,r)||m(r);const[g,y]=o.useState(null),[b,v]=o.useState(null),w=o.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),x=o.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),E=s||g,C=l||b,k=o.useRef(null),S=o.useRef(null),_=o.useRef(f),I=null!=u,A=Jw(u),N=Jw(a),R=Jw(d),O=o.useCallback((()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:h};N.current&&(e.platform=N.current),Xw(k.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};T.current&&!$w(_.current,t)&&(_.current=t,i.flushSync((()=>{p(t)})))}))}),[h,t,n,N,R]);Yw((()=>{!1===d&&_.current.isPositioned&&(_.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const T=o.useRef(!1);Yw((()=>(T.current=!0,()=>{T.current=!1})),[]),Yw((()=>{if(E&&(k.current=E),C&&(S.current=C),E&&C){if(A.current)return A.current(E,C,O);O()}}),[E,C,O,A,I]);const M=o.useMemo((()=>({reference:k,floating:S,setReference:w,setFloating:x})),[w,x]),P=o.useMemo((()=>({reference:E,floating:C})),[E,C]),D=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=Uw(P.floating,f.x),r=Uw(P.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Zw(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,P.floating,f.x,f.y]);return o.useMemo((()=>({...f,update:O,refs:M,elements:P,floatingStyles:D})),[f,O,M,P,D])}({strategy:"fixed",placement:I,whileElementsMounted:(...e)=>Bw(...e,{animationFrame:"always"===m}),elements:{reference:b.anchor},middleware:[qw({mainAxis:a+_,alignmentAxis:l}),u&&Qw({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?ex():void 0,...O}),u&&tx({...O}),nx({...O,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`)}}),E&&ox({element:E,padding:c}),kx({arrowWidth:S,arrowHeight:_}),h&&rx({strategy:"referenceHidden",...O})]}),[B,L]=Sx(P),F=_f(g);Ef((()=>{D&&F?.()}),[D,F]);const z=j.arrow?.x,V=j.arrow?.y,G=0!==j.arrow?.centerOffset,[W,H]=o.useState();return Ef((()=>{v&&H(window.getComputedStyle(v).zIndex)}),[v]),vf.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:D?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:vf.jsx(yx,{scope:n,placedSide:B,onArrowChange:C,arrowX:z,arrowY:V,shouldHideArrow:G,children:vf.jsx(Tf.div,{"data-side":B,"data-align":L,...y,ref:x,style:{...y.style,animation:D?void 0:"none"}})})})}));vx.displayName=gx;var wx="PopperArrow",xx={top:"bottom",right:"left",bottom:"top",left:"right"},Ex=o.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=bx(wx,n),i=xx[o.placedSide];return vf.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:vf.jsx(ax,{...r,ref:t,style:{...r.style,display:"block"}})})}));function Cx(e){return null!==e}Ex.displayName=wx;var kx=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]=Sx(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 Sx(e){const[t,n="center"]=e.split("-");return[t,n]}var _x=px,Ix=mx,Ax=vx,Nx=Ex,Rx="rovingFocusGroup.onEntryFocus",Ox={bubbles:!1,cancelable:!0},Tx="RovingFocusGroup",[Mx,Px,Dx]=Av(Tx),[jx,Bx]=wf(Tx,[Dx]),[Lx,Fx]=jx(Tx),zx=o.forwardRef(((e,t)=>vf.jsx(Mx.Provider,{scope:e.__scopeRovingFocusGroup,children:vf.jsx(Mx.Slot,{scope:e.__scopeRovingFocusGroup,children:vf.jsx(Vx,{...e,ref:t})})})));zx.displayName=Tx;var Vx=o.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,p=o.useRef(null),h=df(t,p),m=Rv(a),[g=null,y]=If({prop:s,defaultProp:l,onChange:c}),[b,v]=o.useState(!1),w=_f(u),x=Px(n),E=o.useRef(!1),[C,k]=o.useState(0);return o.useEffect((()=>{const e=p.current;if(e)return e.addEventListener(Rx,w),()=>e.removeEventListener(Rx,w)}),[w]),vf.jsx(Lx,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:g,onItemFocus:o.useCallback((e=>y(e)),[y]),onItemShiftTab:o.useCallback((()=>v(!0)),[]),onFocusableItemAdd:o.useCallback((()=>k((e=>e+1))),[]),onFocusableItemRemove:o.useCallback((()=>k((e=>e-1))),[]),children:vf.jsx(Tf.div,{tabIndex:b||0===C?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:lf(e.onMouseDown,(()=>{E.current=!0})),onFocus:lf(e.onFocus,(e=>{const t=!E.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(Rx,Ox);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));Xx([e.find((e=>e.active)),e.find((e=>e.id===g)),...e].filter(Boolean).map((e=>e.ref.current)),d)}}E.current=!1})),onBlur:lf(e.onBlur,(()=>v(!1)))})})})),Gx="RovingFocusGroupItem",Wx=o.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...s}=e,l=Sf(),c=a||l,u=Fx(Gx,n),d=u.currentTabStopId===c,f=Px(n),{onFocusableItemAdd:p,onFocusableItemRemove:h}=u;return o.useEffect((()=>{if(r)return p(),()=>h()}),[r,p,h]),vf.jsx(Mx.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:vf.jsx(Tf.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:lf(e.onMouseDown,(e=>{r?u.onItemFocus(c):e.preventDefault()})),onFocus:lf(e.onFocus,(()=>u.onItemFocus(c))),onKeyDown:lf(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.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:Hx[r]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().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=u.loop?function(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}(n,r+1):n.slice(r+1)}setTimeout((()=>Xx(n)))}}))})})}));Wx.displayName=Gx;var Hx={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Xx(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 Yx=zx,$x=Wx,Zx=["Enter"," "],Ux=["ArrowUp","PageDown","End"],Jx=["ArrowDown","PageUp","Home",...Ux],Kx={ltr:[...Zx,"ArrowRight"],rtl:[...Zx,"ArrowLeft"]},qx={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Qx="Menu",[eE,tE,nE]=Av(Qx),[rE,oE]=wf(Qx,[nE,ux,Bx]),iE=ux(),aE=Bx(),[sE,lE]=rE(Qx),[cE,uE]=rE(Qx),dE=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:s=!0}=e,l=iE(t),[c,u]=o.useState(null),d=o.useRef(!1),f=_f(a),p=Rv(i);return o.useEffect((()=>{const e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.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})}}),[]),vf.jsx(_x,{...l,children:vf.jsx(sE,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:u,children:vf.jsx(cE,{scope:t,onClose:o.useCallback((()=>f(!1)),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:r})})})};dE.displayName=Qx;var fE=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=iE(n);return vf.jsx(Ix,{...o,...r,ref:t})}));fE.displayName="MenuAnchor";var[pE,hE]=rE("MenuPortal",{forceMount:void 0}),mE="MenuContent",[gE,yE]=rE(mE),bE=o.forwardRef(((e,t)=>{const n=hE(mE,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=lE(mE,e.__scopeMenu),a=uE(mE,e.__scopeMenu);return vf.jsx(eE.Provider,{scope:e.__scopeMenu,children:vf.jsx(ep,{present:r||i.open,children:vf.jsx(eE.Slot,{scope:e.__scopeMenu,children:a.modal?vf.jsx(vE,{...o,ref:t}):vf.jsx(wE,{...o,ref:t})})})})})),vE=o.forwardRef(((e,t)=>{const n=lE(mE,e.__scopeMenu),r=o.useRef(null),i=df(t,r);return o.useEffect((()=>{const e=r.current;if(e)return Qp(e)}),[]),vf.jsx(xE,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:lf(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),wE=o.forwardRef(((e,t)=>{const n=lE(mE,e.__scopeMenu);return vf.jsx(xE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),xE=o.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,disableOutsideScroll:m,...g}=e,y=lE(mE,n),b=uE(mE,n),v=iE(n),w=aE(n),x=tE(n),[E,C]=o.useState(null),k=o.useRef(null),S=df(t,k,y.onContentChange),_=o.useRef(0),I=o.useRef(""),A=o.useRef(0),N=o.useRef(null),R=o.useRef("right"),O=o.useRef(0),T=m?Yp:o.Fragment,M=m?{as:Af,allowPinchZoom:!0}:void 0,P=e=>{const t=I.current+e,n=x().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){I.current=t,window.clearTimeout(_.current),""!==t&&(_.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))};o.useEffect((()=>()=>window.clearTimeout(_.current)),[]),rp();const D=o.useCallback((e=>R.current===N.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,N.current?.area)),[]);return vf.jsx(gE,{scope:n,searchRef:I,onItemEnter:o.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),onItemLeave:o.useCallback((e=>{D(e)||(k.current?.focus(),C(null))}),[D]),onTriggerLeave:o.useCallback((e=>{D(e)&&e.preventDefault()}),[D]),pointerGraceTimerRef:A,onPointerGraceIntentChange:o.useCallback((e=>{N.current=e}),[]),children:vf.jsx(T,{...M,children:vf.jsx(Yf,{asChild:!0,trapped:i,onMountAutoFocus:lf(a,(e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:s,children:vf.jsx(Ff,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,children:vf.jsx(Yx,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:C,onEntryFocus:lf(c,(e=>{b.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:vf.jsx(Ax,{role:"menu","aria-orientation":"vertical","data-state":UE(y.open),"data-radix-menu-content":"",dir:b.dir,...v,...g,ref:S,style:{outline:"none",...g.style},onKeyDown:lf(g.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&&P(e.key));const o=k.current;if(e.target!==o)return;if(!Jx.includes(e.key))return;e.preventDefault();const i=x().filter((e=>!e.disabled)).map((e=>e.ref.current));Ux.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:lf(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(_.current),I.current="")})),onPointerMove:lf(e.onPointerMove,qE((e=>{const t=e.target,n=O.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>O.current?"right":"left";R.current=t,O.current=e.clientX}})))})})})})})})}));bE.displayName=mE;var EE=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return vf.jsx(Tf.div,{role:"group",...r,ref:t})}));EE.displayName="MenuGroup";var CE=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return vf.jsx(Tf.div,{...r,ref:t})}));CE.displayName="MenuLabel";var kE="MenuItem",SE="menu.itemSelect",_E=o.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=o.useRef(null),s=uE(kE,e.__scopeMenu),l=yE(kE,e.__scopeMenu),c=df(t,a),u=o.useRef(!1);return vf.jsx(IE,{...i,ref:c,disabled:n,onClick:lf(e.onClick,(()=>{const e=a.current;if(!n&&e){const t=new CustomEvent(SE,{bubbles:!0,cancelable:!0});e.addEventListener(SE,(e=>r?.(e)),{once:!0}),Mf(e,t),t.defaultPrevented?u.current=!1:s.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:lf(e.onPointerUp,(e=>{u.current||e.currentTarget?.click()})),onKeyDown:lf(e.onKeyDown,(e=>{const t=""!==l.searchRef.current;n||t&&" "===e.key||Zx.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));_E.displayName=kE;var IE=o.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,s=yE(kE,n),l=aE(n),c=o.useRef(null),u=df(t,c),[d,f]=o.useState(!1),[p,h]=o.useState("");return o.useEffect((()=>{const e=c.current;e&&h((e.textContent??"").trim())}),[a.children]),vf.jsx(eE.ItemSlot,{scope:n,disabled:r,textValue:i??p,children:vf.jsx($x,{asChild:!0,...l,focusable:!r,children:vf.jsx(Tf.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:lf(e.onPointerMove,qE((e=>{if(r)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:lf(e.onPointerLeave,qE((e=>s.onItemLeave(e)))),onFocus:lf(e.onFocus,(()=>f(!0))),onBlur:lf(e.onBlur,(()=>f(!1)))})})})})),AE=o.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return vf.jsx(jE,{scope:e.__scopeMenu,checked:n,children:vf.jsx(_E,{role:"menuitemcheckbox","aria-checked":JE(n)?"mixed":n,...o,ref:t,"data-state":KE(n),onSelect:lf(o.onSelect,(()=>r?.(!!JE(n)||!n)),{checkForDefaultPrevented:!1})})})}));AE.displayName="MenuCheckboxItem";var NE="MenuRadioGroup",[RE,OE]=rE(NE,{value:void 0,onValueChange:()=>{}}),TE=o.forwardRef(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=_f(r);return vf.jsx(RE,{scope:e.__scopeMenu,value:n,onValueChange:i,children:vf.jsx(EE,{...o,ref:t})})}));TE.displayName=NE;var ME="MenuRadioItem",PE=o.forwardRef(((e,t)=>{const{value:n,...r}=e,o=OE(ME,e.__scopeMenu),i=n===o.value;return vf.jsx(jE,{scope:e.__scopeMenu,checked:i,children:vf.jsx(_E,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":KE(i),onSelect:lf(r.onSelect,(()=>o.onValueChange?.(n)),{checkForDefaultPrevented:!1})})})}));PE.displayName=ME;var DE="MenuItemIndicator",[jE,BE]=rE(DE,{checked:!1}),LE=o.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=BE(DE,n);return vf.jsx(ep,{present:r||JE(i.checked)||!0===i.checked,children:vf.jsx(Tf.span,{...o,ref:t,"data-state":KE(i.checked)})})}));LE.displayName=DE;var FE=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return vf.jsx(Tf.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})}));FE.displayName="MenuSeparator";var zE=o.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=iE(n);return vf.jsx(Nx,{...o,...r,ref:t})}));zE.displayName="MenuArrow";var VE="MenuSub",[GE,WE]=rE(VE),HE=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=lE(VE,t),s=iE(t),[l,c]=o.useState(null),[u,d]=o.useState(null),f=_f(i);return o.useEffect((()=>(!1===a.open&&f(!1),()=>f(!1))),[a.open,f]),vf.jsx(_x,{...s,children:vf.jsx(sE,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d,children:vf.jsx(GE,{scope:t,contentId:Sf(),triggerId:Sf(),trigger:l,onTriggerChange:c,children:n})})})};HE.displayName=VE;var XE="MenuSubTrigger",YE=o.forwardRef(((e,t)=>{const n=lE(XE,e.__scopeMenu),r=uE(XE,e.__scopeMenu),i=WE(XE,e.__scopeMenu),a=yE(XE,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=a,u={__scopeMenu:e.__scopeMenu},d=o.useCallback((()=>{s.current&&window.clearTimeout(s.current),s.current=null}),[]);return o.useEffect((()=>d),[d]),o.useEffect((()=>{const e=l.current;return()=>{window.clearTimeout(e),c(null)}}),[l,c]),vf.jsx(fE,{asChild:!0,...u,children:vf.jsx(IE,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":UE(n.open),...e,ref:uf(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:lf(e.onPointerMove,qE((t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout((()=>{n.onOpenChange(!0),d()}),100))}))),onPointerLeave:lf(e.onPointerLeave,qE((e=>{d();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,i=o?-5:5,s=t[o?"left":"right"],c=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:s,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(l.current),l.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:lf(e.onKeyDown,(t=>{const o=""!==a.searchRef.current;e.disabled||o&&" "===t.key||Kx[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())}))})})}));YE.displayName=XE;var $E="MenuSubContent",ZE=o.forwardRef(((e,t)=>{const n=hE(mE,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=lE(mE,e.__scopeMenu),s=uE(mE,e.__scopeMenu),l=WE($E,e.__scopeMenu),c=o.useRef(null),u=df(t,c);return vf.jsx(eE.Provider,{scope:e.__scopeMenu,children:vf.jsx(ep,{present:r||a.open,children:vf.jsx(eE.Slot,{scope:e.__scopeMenu,children:vf.jsx(xE,{id:l.contentId,"aria-labelledby":l.triggerId,...i,ref:u,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:lf(e.onFocusOutside,(e=>{e.target!==l.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:lf(e.onEscapeKeyDown,(e=>{s.onClose(),e.preventDefault()})),onKeyDown:lf(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=qx[s.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())}))})})})})}));function UE(e){return e?"open":"closed"}function JE(e){return"indeterminate"===e}function KE(e){return JE(e)?"indeterminate":e?"checked":"unchecked"}function qE(e){return t=>"mouse"===t.pointerType?e(t):void 0}ZE.displayName=$E;var QE=dE,eC=fE,tC=bE,nC=EE,rC=CE,oC=_E,iC=AE,aC=TE,sC=PE,lC=LE,cC=FE,uC=zE,dC=HE,fC=YE,pC=ZE,hC="DropdownMenu",[mC,gC]=wf(hC,[oE]),yC=oE(),[bC,vC]=mC(hC),wC=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,c=yC(t),u=o.useRef(null),[d=!1,f]=If({prop:i,defaultProp:a,onChange:s});return vf.jsx(bC,{scope:t,triggerId:Sf(),triggerRef:u,contentId:Sf(),open:d,onOpenChange:f,onOpenToggle:o.useCallback((()=>f((e=>!e))),[f]),modal:l,children:vf.jsx(QE,{...c,open:d,onOpenChange:f,dir:r,modal:l,children:n})})};wC.displayName=hC;var xC="DropdownMenuTrigger",EC=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=vC(xC,n),a=yC(n);return vf.jsx(eC,{asChild:!0,...a,children:vf.jsx(Tf.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:uf(t,i.triggerRef),onPointerDown:lf(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:lf(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));EC.displayName=xC;var CC="DropdownMenuContent",kC=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vC(CC,n),a=yC(n),s=o.useRef(!1);return vf.jsx(tC,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:lf(e.onCloseAutoFocus,(e=>{s.current||i.triggerRef.current?.focus(),s.current=!1,e.preventDefault()})),onInteractOutside:lf(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(s.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)"}})}));kC.displayName=CC;var SC=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yC(n);return vf.jsx(nC,{...o,...r,ref:t})}));SC.displayName="DropdownMenuGroup";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yC(n);return vf.jsx(rC,{...o,...r,ref:t})})).displayName="DropdownMenuLabel";var _C=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yC(n);return vf.jsx(oC,{...o,...r,ref:t})}));_C.displayName="DropdownMenuItem";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yC(n);return vf.jsx(iC,{...o,...r,ref:t})})).displayName="DropdownMenuCheckboxItem";var IC=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yC(n);return vf.jsx(aC,{...o,...r,ref:t})}));IC.displayName="DropdownMenuRadioGroup";var AC=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yC(n);return vf.jsx(sC,{...o,...r,ref:t})}));AC.displayName="DropdownMenuRadioItem";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yC(n);return vf.jsx(lC,{...o,...r,ref:t})})).displayName="DropdownMenuItemIndicator";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yC(n);return vf.jsx(cC,{...o,...r,ref:t})})).displayName="DropdownMenuSeparator";o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yC(n);return vf.jsx(uC,{...o,...r,ref:t})})).displayName="DropdownMenuArrow";var NC=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yC(n);return vf.jsx(fC,{...o,...r,ref:t})}));NC.displayName="DropdownMenuSubTrigger";var RC=o.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=yC(n);return vf.jsx(pC,{...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)"}})}));RC.displayName="DropdownMenuSubContent";var OC=wC,TC=EC,MC=kC,PC=SC,DC=_C,jC=IC,BC=AC,LC=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=yC(t),[s=!1,l]=If({prop:r,defaultProp:i,onChange:o});return vf.jsx(dC,{...a,open:s,onOpenChange:l,children:n})},FC=NC,zC=RC;function VC(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 GC(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 WC(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(GC)}const HC=!process.env.NODE_ENV||"development"===process.env.NODE_ENV,XC={xxs:0,xs:320,s:480,m:768,l:960,xl:1280,xxl:1920},YC=o.createContext(void 0),$C=o.forwardRef(((e,t)=>{const{className:n,children:r,...i}=e,[a,s]=o.useState("m"),[l,c]=o.useState(0),[u,d]=o.useState(0),f=o.useRef(null);o.useImperativeHandle(t,(()=>f.current),[]);const p=o.useCallback((e=>{const t=e.width,n=e.height;let r="xxs";Object.entries(XC).forEach((([e,n])=>{t>=n&&(r=e)})),s((e=>e!==r?r:e)),c(t),d(n)}),[]);return o.useEffect((()=>{const e=f.current;if(!e)return;const t=new ResizeObserver((e=>{for(let t of e)p(t.contentRect)}));return t.observe(e),p(e.getBoundingClientRect()),()=>{t.disconnect()}}),[]),o.createElement(YC.Provider,{value:{wKey:a,w:l,h:u}},o.createElement("div",{ref:f,className:`size-context w-${a} ${n||""}`.trim(),...i},r))})),ZC=e=>((e,t)=>e!=t&&(""==e||XC[e]<XC[t]))((()=>{const e=o.useContext(YC);if(!e)throw new Error("useSizeContext must be used within a SizeContextContainerContext");return e})().wKey,e),UC=({direction:e,className:t="",children:n,wrap:r=!1,grow:i=!1,...a})=>{let s="";"string"==typeof e?s=`direction-${e} `:"object"==typeof e&&null!==e&&Object.entries(e).forEach((([e,t])=>{s+=""===e?`direction-${t} `:`${e}-direction-${t} `}));let l="";"boolean"==typeof i?l=i?"grow ":"":"object"==typeof i&&null!==i&&Object.entries(i).forEach((([e,t])=>{l+=""===e?t?"grow ":"no-grow":t?`${e}-grow `:`${e}-no-grow`})),s+=l,r&&(s+="flex-wrap "),s=s.trim();const c=`float-container ${s} ${t}`.trim();return o.createElement("div",{className:c,...a},n)},JC=({direction:e,expanded:t=!0,children:n,className:r,maxSize:i,expanderSize:a="40px",containerStyle:s,style:l,containerClassName:c,onExpandChange:u,...d})=>{const f={up:vv,down:bv,left:pv,right:fv}[e],p={up:bv,down:vv,left:fv,right:pv}[e],[h,m]=o.useState(t),g=`${e} ${h?"expanded":"collapsed"}`,y="right"===e||"left"===e?{width:h?i:a}:{height:h?i:a},b="right"===e||"left"===e?{width:h?i:0}:{height:h?i:0},v="right"===e||"left"===e?{width:a}:{height:a},w=o.createElement("div",{className:`expanding_container_content ${g} ${r||""}`.trim(),style:{...l,...b},...d},n),x=o.createElement("div",{className:`expanding_container_expander ${g}`,onClick:()=>(e=>{h!==e&&(m(e),u&&u(e))})(!h),style:v},h?o.createElement(p,null):o.createElement(f,null)),E="right"===e||"down"===e?w:x,C="left"===e||"up"===e?w:x;return o.createElement("div",{className:`expanding_container ${g} ${c||""}`,style:{...s,...y}},E,C)},KC=({trigger:t,setOpen:n,open:r})=>{const[i,a]=e.useState(""),s=e.useContext(nW);return s.options.useWorkerManager?o.createElement(Iv,{setOpen:n,open:r,trigger:t,title:"New Worker",description:"Create a new worker"},o.createElement("div",null,"Name:",o.createElement("br",null),o.createElement("input",{className:"styledinput",onChange:e=>{a(e.currentTarget.value)},value:i})),o.createElement("div",null,i&&o.createElement("div",null,o.createElement("button",{className:"styledbtn",onClick:()=>{s.workermanager?.new_worker({name:i}),n(!1)}},"Create")))):null},qC=({trigger:t,setOpen:n,open:r})=>{const i=e.useContext(nW),[a,s]=e.useState(!1),l=i.workers(),c=i.worker?.uuid,u=(c?l[c]?.name:void 0)||c||"worker";return o.createElement(Iv,{setOpen:n,open:r,trigger:t,title:"Export Worker",description:"Export the worker as a .fnw file"},o.createElement("div",null,o.createElement("div",null,o.createElement("input",{type:"checkbox",className:"styledcheckbox",checked:a,onChange:e=>{s(e.currentTarget.checked)}}),"Include Files"),o.createElement("button",{className:"styledbtn",onClick:async()=>{if(!i.worker)return;!function(e,t,n){const r=VC(e,n),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=t,i.click(),URL.revokeObjectURL(o),i.remove()}(await i.worker.export({withFiles:a}),u+".fnw","application/zip"),n(!1)}},"Export")))},QC=()=>{const t=e.useContext(nW).progress_state();return o.createElement("div",{className:"statusbar"},o.createElement("span",{className:"statusbar-progressbar",style:{width:Math.min(100,100*t.progress)+"%"}}),o.createElement("span",{className:"statusbar-message"},t.message))},ek=()=>{const t=e.useContext(nW),n=t.workers(),[r,i]=e.useState(!1),[a,s]=e.useState(!1),l=t.options.useWorkerManager&&t.workermanager&&t.workermanager.open||HC,c=l&&Object.keys(n).length>0,u=t.worker&&t.worker.is_open,d=u&&l;return l||u?o.createElement(o.Fragment,null,o.createElement(OC,null,o.createElement(TC,{asChild:!0},o.createElement("button",{className:"styledbtn"},o.createElement(UC,{direction:"row"},"Worker ",o.createElement(dv,null)))),o.createElement(MC,{className:"headermenucontent funcnodescontainer"},o.createElement(PC,null,c&&o.createElement(LC,null,o.createElement(FC,{className:"headermenuitem submenuitem"},o.createElement(UC,{direction:"row"},"Select",o.createElement(fv,null))),o.createElement(zC,{className:"headermenucontent funcnodescontainer",sideOffset:2,alignOffset:-5},o.createElement(jC,{value:t.worker?.uuid,onValueChange:e=>{(e=>{if("__select__"!==e&&t.workers&&t.workermanager&&n[e]){if(!n[e].active&&!window.confirm("this is an inactive worker, selecting it will start it, continue?"))return;t.workermanager.set_active(e)}})(e)}},Object.keys(n).sort(((e,t)=>{if(n[e].active&&!n[t].active)return-1;if(!n[e].active&&n[t].active)return 1;const r=n[e].name||e,o=n[t].name||t;return r.localeCompare(o)})).map((e=>o.createElement(BC,{className:"headermenuitem workerselectoption"+(n[e]?.active?" active":" inactive")+" headermenuitem",key:e,value:e,disabled:e===t.worker?.uuid},n[e]?.name||e)))))),u&&o.createElement(o.Fragment,null,d&&o.createElement(DC,{className:"headermenuitem",onClick:()=>{if(t.worker)return t.workermanager?void t.workermanager?.restart_worker(t.worker.uuid):t.logger.error("no workermanager")}},"Restart"),o.createElement(DC,{className:"headermenuitem",onClick:()=>{t.worker&&t.worker.stop()}},"Stop"),o.createElement(DC,{className:"headermenuitem",onClick:()=>s(!0)},"Export"),o.createElement(DC,{className:"headermenuitem",onClick:async()=>{if(!t.worker)return;if(!window.confirm("Updateing the worker might replace the current nodespace, continue?"))return;const e=await WC(".fnw");t.worker.update_from_export(e)}},"Update")),l&&o.createElement(o.Fragment,null,o.createElement(DC,{className:"headermenuitem",onClick:()=>i(!0)},"New"))))),o.createElement(KC,{open:r,setOpen:i}),o.createElement(qC,{open:a,setOpen:s})):null},tk=()=>{const t=e.useContext(nW);return o.createElement(o.Fragment,null,o.createElement(OC,null,o.createElement(TC,{asChild:!0},o.createElement("button",{className:"styledbtn"},o.createElement(UC,{direction:"row"},"Nodespace ",o.createElement(dv,null)))),o.createElement(MC,{className:"headermenucontent funcnodescontainer"},o.createElement(PC,null,o.createElement(DC,{className:"headermenuitem",onClick:()=>{window.confirm("Are you sure you want to start a new flow?")&&t.worker?.clear()}},"New"),o.createElement(DC,{className:"headermenuitem",onClick:async()=>{const e=await(t.worker?.save());if(!e)return;const n=new Blob([JSON.stringify(e)],{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"),o.createElement(DC,{className:"headermenuitem",onClick:async()=>{const e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=async e=>{const n=e.target.files?.[0];if(!n)return;const r=new FileReader;r.onload=async e=>{const n=e.target?.result;if(!n)return;const r=JSON.parse(n);await(t.worker?.load(r))},r.readAsText(n)},e.click()}},"Load")))))},nk=({...t})=>{const n=e.useContext(nW),r=n.workerstate();return Object.keys(t).length>0&&n.logger.debug("headerprops",t),o.createElement(UC,{className:"funcnodesreactflowheader",direction:"row",wrap:!0},o.createElement(UC,{className:"headerelement m-w-6",grow:{"":!0,m:!1}},o.createElement(QC,null)),(t.showmenu||HC)&&o.createElement(UC,{direction:"row",wrap:!0},o.createElement("div",{className:"headerelement"},o.createElement(ek,null)),(n.worker&&r.is_open||HC)&&o.createElement("div",{className:"headerelement"},o.createElement(tk,null))))};const rk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ok=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ik={};function ak(e,t){return(ik.jsx?ok:rk).test(e)}const sk=/[ \t\n\f\r]/g;function lk(e){return""===e.replace(sk,"")}class ck{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function uk(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ck(n,r,t)}function dk(e){return e.toLowerCase()}ck.prototype.normal={},ck.prototype.property={},ck.prototype.space=void 0;class fk{constructor(e,t){this.attribute=t,this.property=e}}fk.prototype.attribute="",fk.prototype.booleanish=!1,fk.prototype.boolean=!1,fk.prototype.commaOrSpaceSeparated=!1,fk.prototype.commaSeparated=!1,fk.prototype.defined=!1,fk.prototype.mustUseProperty=!1,fk.prototype.number=!1,fk.prototype.overloadedBoolean=!1,fk.prototype.property="",fk.prototype.spaceSeparated=!1,fk.prototype.space=void 0;let pk=0;const hk=xk(),mk=xk(),gk=xk(),yk=xk(),bk=xk(),vk=xk(),wk=xk();function xk(){return 2**++pk}var Ek=Object.freeze({__proto__:null,boolean:hk,booleanish:mk,commaOrSpaceSeparated:wk,commaSeparated:vk,number:yk,overloadedBoolean:gk,spaceSeparated:bk});const Ck=Object.keys(Ek);class kk extends fk{constructor(e,t,n,r){let o=-1;if(super(e,t),Sk(this,"space",r),"number"==typeof n)for(;++o<Ck.length;){const e=Ck[o];Sk(this,Ck[o],(n&Ek[e])===Ek[e])}}}function Sk(e,t,n){n&&(e[t]=n)}function _k(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new kk(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[dk(r)]=r,n[dk(i.attribute)]=r}return new ck(t,n,e.space)}kk.prototype.defined=!0;const Ik=_k({properties:{ariaActiveDescendant:null,ariaAtomic:mk,ariaAutoComplete:null,ariaBusy:mk,ariaChecked:mk,ariaColCount:yk,ariaColIndex:yk,ariaColSpan:yk,ariaControls:bk,ariaCurrent:null,ariaDescribedBy:bk,ariaDetails:null,ariaDisabled:mk,ariaDropEffect:bk,ariaErrorMessage:null,ariaExpanded:mk,ariaFlowTo:bk,ariaGrabbed:mk,ariaHasPopup:null,ariaHidden:mk,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:bk,ariaLevel:yk,ariaLive:null,ariaModal:mk,ariaMultiLine:mk,ariaMultiSelectable:mk,ariaOrientation:null,ariaOwns:bk,ariaPlaceholder:null,ariaPosInSet:yk,ariaPressed:mk,ariaReadOnly:mk,ariaRelevant:null,ariaRequired:mk,ariaRoleDescription:bk,ariaRowCount:yk,ariaRowIndex:yk,ariaRowSpan:yk,ariaSelected:mk,ariaSetSize:yk,ariaSort:null,ariaValueMax:yk,ariaValueMin:yk,ariaValueNow:yk,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Ak(e,t){return t in e?e[t]:t}function Nk(e,t){return Ak(e,t.toLowerCase())}const Rk=_k({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vk,acceptCharset:bk,accessKey:bk,action:null,allow:null,allowFullScreen:hk,allowPaymentRequest:hk,allowUserMedia:hk,alt:null,as:null,async:hk,autoCapitalize:null,autoComplete:bk,autoFocus:hk,autoPlay:hk,blocking:bk,capture:null,charSet:null,checked:hk,cite:null,className:bk,cols:yk,colSpan:null,content:null,contentEditable:mk,controls:hk,controlsList:bk,coords:yk|vk,crossOrigin:null,data:null,dateTime:null,decoding:null,default:hk,defer:hk,dir:null,dirName:null,disabled:hk,download:gk,draggable:mk,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:hk,formTarget:null,headers:bk,height:yk,hidden:hk,high:yk,href:null,hrefLang:null,htmlFor:bk,httpEquiv:bk,id:null,imageSizes:null,imageSrcSet:null,inert:hk,inputMode:null,integrity:null,is:null,isMap:hk,itemId:null,itemProp:bk,itemRef:bk,itemScope:hk,itemType:bk,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:hk,low:yk,manifest:null,max:null,maxLength:yk,media:null,method:null,min:null,minLength:yk,multiple:hk,muted:hk,name:null,nonce:null,noModule:hk,noValidate:hk,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:hk,optimum:yk,pattern:null,ping:bk,placeholder:null,playsInline:hk,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:hk,referrerPolicy:null,rel:bk,required:hk,reversed:hk,rows:yk,rowSpan:yk,sandbox:bk,scope:null,scoped:hk,seamless:hk,selected:hk,shadowRootClonable:hk,shadowRootDelegatesFocus:hk,shadowRootMode:null,shape:null,size:yk,sizes:null,slot:null,span:yk,spellCheck:mk,src:null,srcDoc:null,srcLang:null,srcSet:null,start:yk,step:null,style:null,tabIndex:yk,target:null,title:null,translate:null,type:null,typeMustMatch:hk,useMap:null,value:mk,width:yk,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:bk,axis:null,background:null,bgColor:null,border:yk,borderColor:null,bottomMargin:yk,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:hk,declare:hk,event:null,face:null,frame:null,frameBorder:null,hSpace:yk,leftMargin:yk,link:null,longDesc:null,lowSrc:null,marginHeight:yk,marginWidth:yk,noResize:hk,noHref:hk,noShade:hk,noWrap:hk,object:null,profile:null,prompt:null,rev:null,rightMargin:yk,rules:null,scheme:null,scrolling:mk,standby:null,summary:null,text:null,topMargin:yk,valueType:null,version:null,vAlign:null,vLink:null,vSpace:yk,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:hk,disableRemotePlayback:hk,prefix:null,property:null,results:yk,security:null,unselectable:null},space:"html",transform:Nk}),Ok=_k({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:wk,accentHeight:yk,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:yk,amplitude:yk,arabicForm:null,ascent:yk,attributeName:null,attributeType:null,azimuth:yk,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:yk,by:null,calcMode:null,capHeight:yk,className:bk,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:yk,diffuseConstant:yk,direction:null,display:null,dur:null,divisor:yk,dominantBaseline:null,download:hk,dx:null,dy:null,edgeMode:null,editable:null,elevation:yk,enableBackground:null,end:null,event:null,exponent:yk,externalResourcesRequired:null,fill:null,fillOpacity:yk,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:vk,g2:vk,glyphName:vk,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:yk,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:yk,horizOriginX:yk,horizOriginY:yk,id:null,ideographic:yk,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:yk,k:yk,k1:yk,k2:yk,k3:yk,k4:yk,kernelMatrix:wk,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:yk,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:yk,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:yk,overlineThickness:yk,paintOrder:null,panose1:null,path:null,pathLength:yk,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:bk,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:yk,pointsAtY:yk,pointsAtZ:yk,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wk,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wk,rev:wk,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wk,requiredFeatures:wk,requiredFonts:wk,requiredFormats:wk,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:yk,specularExponent:yk,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:yk,strikethroughThickness:yk,string:null,stroke:null,strokeDashArray:wk,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:yk,strokeOpacity:yk,strokeWidth:null,style:null,surfaceScale:yk,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wk,tabIndex:yk,tableValues:null,target:null,targetX:yk,targetY:yk,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wk,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:yk,underlineThickness:yk,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:yk,values:null,vAlphabetic:yk,vMathematical:yk,vectorEffect:null,vHanging:yk,vIdeographic:yk,version:null,vertAdvY:yk,vertOriginX:yk,vertOriginY:yk,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:yk,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ak}),Tk=_k({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()}),Mk=_k({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Nk}),Pk=_k({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Dk={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"},jk=/[A-Z]/g,Bk=/-[a-z]/g,Lk=/^data[-\w.:]+$/i;function Fk(e){return"-"+e.toLowerCase()}function zk(e){return e.charAt(1).toUpperCase()}const Vk=uk([Ik,Rk,Tk,Mk,Pk],"html"),Gk=uk([Ik,Ok,Tk,Mk,Pk],"svg");var Wk,Hk,Xk,Yk={};function $k(){if(Xk)return Yk;Xk=1;var e=Yk&&Yk.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yk,"__esModule",{value:!0}),Yk.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(Hk)return Wk;Hk=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 Wk=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),b(),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 b(){y(n)}function v(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,b(),function(){var e,t=[];for(v(t);e=x();)!1!==e&&(t.push(e),v(t));return t}()},Wk}());return Yk}var Zk,Uk,Jk,Kk={};function qk(){if(Zk)return Kk;Zk=1,Object.defineProperty(Kk,"__esModule",{value:!0}),Kk.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 Kk.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))},Kk}var Qk=function(){if(Jk)return Uk;Jk=1;var e=(Uk&&Uk.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})($k()),t=qk();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,Uk=n}(),eS=l(Qk);const tS=rS("end"),nS=rS("start");function rS(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 oS(e){return e&&"object"==typeof e?"position"in e||"type"in e?aS(e.position):"start"in e||"end"in e?aS(e):"line"in e||"column"in e?iS(e):"":""}function iS(e){return sS(e&&e.line)+":"+sS(e&&e.column)}function aS(e){return iS(e&&e.start)+"-"+iS(e&&e.end)}function sS(e){return e&&"number"==typeof e?e:1}class lS 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=oS(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}}lS.prototype.file="",lS.prototype.name="",lS.prototype.reason="",lS.prototype.message="",lS.prototype.stack="",lS.prototype.column=void 0,lS.prototype.line=void 0,lS.prototype.ancestors=void 0,lS.prototype.cause=void 0,lS.prototype.fatal=void 0,lS.prototype.place=void 0,lS.prototype.ruleId=void 0,lS.prototype.source=void 0;const cS={}.hasOwnProperty,uS=new Map,dS=/[A-Z]/g,fS=new Set(["table","tbody","thead","tfoot","tr"]),pS=new Set(["td","th"]),hS="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function mS(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=nS(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?Gk:Vk,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=gS(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function gS(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=Gk,e.schema=o);e.ancestors.push(t);const i=xS(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&cS.call(t.properties,o)){const i=wS(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&pS.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=vS(e,t);fS.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&lk(t.value):lk(t));var t})));return yS(e,a,i,t),bS(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)}ES(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=Gk,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:xS(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 ES(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 ES(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=vS(e,t);return yS(e,a,i,t),bS(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);ES(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return bS(r,vS(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 yS(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function bS(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function vS(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:uS;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=gS(e,i,a);void 0!==s&&n.push(s)}return n}function wS(e,t,n){const r=function(e,t){const n=dk(t);let r=t,o=fk;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Lk.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Bk,zk);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Bk.test(e)){let n=e.replace(jk,Fk);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=kk}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 eS(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new lS("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=hS+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)cS.call(e,n)&&(t[CS(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Dk[r.property]||r.property:r.attribute,n]}}function xS(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=ak(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=ak(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 cS.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ES(e)}function ES(e,t){const n=new lS("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=hS+"#cannot-handle-mdx-estrees-without-createevaluater",n}function CS(e){let t=e.replace(dS,kS);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function kS(e){return"-"+e.toLowerCase()}const SS={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"]},_S={};function IS(e,t){return AS(e,"boolean"!=typeof _S.includeImageAlt||_S.includeImageAlt,"boolean"!=typeof _S.includeHtml||_S.includeHtml)}function AS(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 NS(e.children,t,n)}return Array.isArray(e)?NS(e,t,n):""}function NS(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=AS(e[o],t,n);return r.join("")}const RS=document.createElement("i");function OS(e){const t="&"+e+";";RS.innerHTML=t;const n=RS.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function TS(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 MS(e,t){return e.length>0?(TS(e,e.length,0,t),e):t}const PS={}.hasOwnProperty;function DS(e){const t={};let n=-1;for(;++n<e.length;)jS(t,e[n]);return t}function jS(e,t){let n;for(n in t){const r=(PS.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){PS.call(r,i)||(r[i]=[]);const e=o[i];BS(r[i],Array.isArray(e)?e:e?[e]:[])}}}function BS(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);TS(e,0,0,r)}function LS(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 FS(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const zS=qS(/[A-Za-z]/),VS=qS(/[\dA-Za-z]/),GS=qS(/[#-'*+\--9=?A-Z^-~]/);function WS(e){return null!==e&&(e<32||127===e)}const HS=qS(/\d/),XS=qS(/[\dA-Fa-f]/),YS=qS(/[!-/:-@[-`{-~]/);function $S(e){return null!==e&&e<-2}function ZS(e){return null!==e&&(e<0||32===e)}function US(e){return-2===e||-1===e||32===e}const JS=qS(/\p{P}|\p{S}/u),KS=qS(/\s/);function qS(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function QS(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&VS(e.charCodeAt(n+1))&&VS(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 e_(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(US(r))return e.enter(n),a(r);return t(r)};function a(r){return US(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const t_={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"),e_(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)):$S(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const n_={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&&b();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 TS(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(r_,u,d)(o)}function u(e){return r&&b(),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(r_,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&b(),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)):$S(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++;TS(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 b(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},r_={tokenize:function(e,t,n){return e_(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function o_(e){return null===e||ZS(e)||KS(e)?1:JS(e)?2:void 0}function i_(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 a_={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};s_(d,-s),s_(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=MS(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=MS(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=MS(l,i_(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=MS(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=MS(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,TS(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=o_(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=o_(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 s_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const l_={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 zS(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||VS(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||VS(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||WS(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):GS(t)?(e.consume(t),l):n(t)}function c(e){return VS(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||VS(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const c_={partial:!0,tokenize:function(e,t,n){return function(t){return US(t)?e_(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||$S(e)?t(e):n(e)}}};const u_={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(US(t))return e_(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(u_,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 US(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const d_={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 YS(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const f_={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=VS,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=XS,c):(e.enter("characterReferenceValue"),o=7,i=HS,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==VS||OS(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 p_={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)}}},h_={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"),US(t)?e_(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"),US(t)?e_(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||$S(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"),US(t)?e_(e,c,"whitespace")(t):c(t))}function c(n){return null===n||$S(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(p_,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||$S(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):US(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),e_(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||$S(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||$S(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,b,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&US(t)?e_(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||$S(t)?e.check(p_,p,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||$S(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}}};const m_={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),e_(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):$S(t)?e.attempt(g_,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||$S(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},g_={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):$S(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):e_(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):$S(e)?o(e):n(e)}}};const y_={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)):$S(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||$S(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 b_{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&&v_(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),v_(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),v_(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);v_(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);v_(this.left,t.reverse())}}}function v_(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 w_(e){const t={};let n,r,o,i,a,s,l,c=-1;const u=new b_(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,x_(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 TS(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function x_(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 E_={resolve:function(e){return w_(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):$S(t)?e.check(C_,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}}},C_={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"),e_(e,o,"linePrefix")};function o(o){if(null===o||$S(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 k_(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||WS(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||$S(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&&!ZS(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||WS(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 S_(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):$S(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||$S(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!US(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function __(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):$S(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e_(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||$S(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 I_(e,t){let n;return function r(o){if($S(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(US(o))return e_(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const A_={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return S_.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=FS(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 ZS(t)?I_(e,s)(t):s(t)}function s(t){return k_(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(N_,c,c)(t)}function c(t){return US(t)?e_(e,u,"whitespace")(t):u(t)}function u(i){return null===i||$S(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},N_={partial:!0,tokenize:function(e,t,n){return function(t){return ZS(t)?I_(e,r)(t):n(t)};function r(t){return __(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return US(t)?e_(e,i,"whitespace")(t):i(t)}function i(e){return null===e||$S(e)?t(e):n(e)}}};const R_={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return $S(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const O_={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"},TS(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||ZS(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||$S(n)?(e.exit("atxHeading"),t(n)):US(n)?e_(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||ZS(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const T_=["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"],M_=["pre","script","style","textarea"],P_={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:P):zS(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):zS(i)?(e.consume(i),o=4,r.interrupt?t:P):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:P):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:_:f):n(o)}function p(t){return zS(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||ZS(s)){const l=47===s,c=a.toLowerCase();return l||i||!M_.includes(c)?T_.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):r.interrupt?t(s):_(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):_(s))}return 45===s||VS(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:_):n(o)}function g(t){return US(t)?(e.consume(t),g):k(t)}function y(t){return 47===t?(e.consume(t),k):58===t||95===t||zS(t)?(e.consume(t),b):US(t)?(e.consume(t),y):k(t)}function b(t){return 45===t||46===t||58===t||95===t||VS(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),w):US(t)?(e.consume(t),v):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):US(t)?(e.consume(t),w):E(t)}function x(t){return t===l?(e.consume(t),l=null,C):null===t||$S(t)?n(t):(e.consume(t),x)}function E(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ZS(t)?v(t):(e.consume(t),E)}function C(e){return 47===e||62===e||US(e)?y(e):n(e)}function k(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||$S(t)?_(t):US(t)?(e.consume(t),S):n(t)}function _(t){return 45===t&&2===o?(e.consume(t),R):60===t&&1===o?(e.consume(t),O):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),P):93===t&&5===o?(e.consume(t),M):!$S(t)||6!==o&&7!==o?null===t||$S(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),_):(e.exit("htmlFlowData"),e.check(D_,j,I)(t))}function I(t){return e.check(j_,A,j)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||$S(t)?I(t):(e.enter("htmlFlowData"),_(t))}function R(t){return 45===t?(e.consume(t),P):_(t)}function O(t){return 47===t?(e.consume(t),a="",T):_(t)}function T(t){if(62===t){const n=a.toLowerCase();return M_.includes(n)?(e.consume(t),D):_(t)}return zS(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),T):_(t)}function M(t){return 93===t?(e.consume(t),P):_(t)}function P(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),P):_(t)}function D(t){return null===t||$S(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),D)}function j(n){return e.exit("htmlFlow"),t(n)}}},D_={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(c_,t,n)}}},j_={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if($S(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 B_={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),b):zS(t)?(e.consume(t),C):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):zS(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):$S(t)?(a=u,T(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?O(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):$S(t)?(a=h,T(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?O(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?O(t):$S(t)?(a=y,T(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):$S(t)?(a=b,T(t)):(e.consume(t),b)}function v(e){return 62===e?O(e):b(e)}function w(t){return zS(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||VS(t)?(e.consume(t),x):E(t)}function E(t){return $S(t)?(a=E,T(t)):US(t)?(e.consume(t),E):O(t)}function C(t){return 45===t||VS(t)?(e.consume(t),C):47===t||62===t||ZS(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),O):58===t||95===t||zS(t)?(e.consume(t),S):$S(t)?(a=k,T(t)):US(t)?(e.consume(t),k):O(t)}function S(t){return 45===t||46===t||58===t||95===t||VS(t)?(e.consume(t),S):_(t)}function _(t){return 61===t?(e.consume(t),I):$S(t)?(a=_,T(t)):US(t)?(e.consume(t),_):k(t)}function I(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,A):$S(t)?(a=I,T(t)):US(t)?(e.consume(t),I):(e.consume(t),N)}function A(t){return t===o?(e.consume(t),o=void 0,R):null===t?n(t):$S(t)?(a=A,T(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||ZS(t)?k(t):(e.consume(t),N)}function R(e){return 47===e||62===e||ZS(e)?k(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return US(t)?e_(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),a(t)}}};const L_={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&&TS(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=MS(i,e.slice(r+1,r+s+3)),i=MS(i,[["enter",u,t]]),i=MS(i,i_(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=MS(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=MS(i,e.slice(o+1)),i=MS(i,[["exit",l,t]]),TS(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(FS(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(F_,c,i?c:u)(t):91===t?e.attempt(z_,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(V_,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},F_={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 ZS(t)?I_(e,o)(t):o(t)}function o(t){return 41===t?c(t):k_(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return ZS(t)?I_(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?__(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return ZS(t)?I_(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)}}},z_={tokenize:function(e,t,n){const r=this;return function(t){return S_.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(FS(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},V_={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 G_={name:"labelStartImage",resolveAll:L_.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 W_={name:"labelStartLink",resolveAll:L_.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 H_={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e_(e,t,"linePrefix")}}};const X_={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||$S(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),US(t)?e_(e,i,"whitespace")(t):i(t))}}};const Y_={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(c_,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,e_(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!US(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(Z_,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,e_(e,e.attempt(Y_,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:HS(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(X_,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 HS(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(c_,r.interrupt?n:c,e.attempt($_,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return US(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)}}},$_={partial:!0,tokenize:function(e,t,n){const r=this;return e_(e,(function(e){const o=r.events[r.events.length-1];return!US(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Z_={partial:!0,tokenize:function(e,t,n){const r=this;return e_(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 U_={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"),US(t)?e_(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||$S(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const J_={tokenize:function(e){const t=this,n=e.attempt(c_,(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,e_(e,e.attempt(this.parser.constructs.flow,r,e.attempt(E_,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 K_={resolveAll:tI()},q_=eI("string"),Q_=eI("text");function eI(e){return{resolveAll:tI("text"===e?nI: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 tI(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 nI(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 rI={42:Y_,43:Y_,45:Y_,48:Y_,49:Y_,50:Y_,51:Y_,52:Y_,53:Y_,54:Y_,55:Y_,56:Y_,57:Y_,62:u_},oI={91:A_},iI={[-2]:m_,[-1]:m_,32:m_},aI={35:O_,42:X_,45:[U_,X_],60:P_,61:U_,95:X_,96:h_,126:h_},sI={38:f_,92:d_},lI={[-5]:H_,[-4]:H_,[-3]:H_,33:G_,38:f_,42:a_,60:[l_,B_],91:W_,92:[R_,d_],93:L_,95:a_,96:y_},cI={null:[a_,K_]};var uI=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:oI,disable:{null:[]},document:rI,flow:aI,flowInitial:iI,insideSpan:cI,string:sI,text:lI});function dI(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){$S(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-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,b()},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=MS(a,e),p(),null!==a[a.length-1])return[];return y(t,0),c.events=i_(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,b()}}(),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&&TS(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const fI=/[\0\t\n\r]/g;const pI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hI(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return LS(n.slice(t?2:1),t?16:10)}return OS(n)||e}const mI={}.hasOwnProperty;function gI(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:S,autolinkEmail:S,atxHeading:i(K),blockQuote:i(Y),characterEscape:S,characterReference:S,codeFenced:i($),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i($,a),codeText:i(Z,a),codeTextData:S,data:S,codeFlowValue:S,definition:i(U),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(J),hardBreakEscape:i(q),hardBreakTrailing:i(q),htmlFlow:i(Q,a),htmlFlowData:S,htmlText:i(Q,a),htmlTextData:S,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:F,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(K),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:X,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:G,characterReference:W,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:_,codeIndented:l(y),codeText:l(O),codeTextData:_,data:_,definition:l(),definitionDestinationString:w,definitionLabelString:b,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(A),hardBreakTrailing:l(A),htmlFlow:l(N),htmlFlowData:_,htmlText:l(R),htmlTextData:_,image:l(M),label:D,labelText:P,lineEnding:I,link:l(T),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:z,resourceDestinationString:j,resourceTitleString:B,resource:L,setextHeading:l(k),setextHeadingLineSequence:C,setextHeadingText:E,strong:l(),thematicBreak:l()}};bI(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]];mI.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]||wI).call(i,void 0,e[0])}for(r.position={start:yI(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:yI(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:yI(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+"` ("+oS({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]||wI).call(this,e,r[0])}n.position.end=yI(e.end)}function u(){return IS(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 b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=FS(this.sliceSerialize(e)).toLowerCase()}function v(){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 E(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function S(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:yI(e.start),end:void 0},t.push(n)),this.stack.push(n)}function _(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=yI(e.end)}function I(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=yI(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(S.call(this,e),_.call(this,e))}function A(){this.data.atHardBreak=!0}function N(){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 O(){const e=this.resume();this.stack[this.stack.length-1].value=e}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 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 P(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(pI,hI)}(t),n.identifier=FS(t).toLowerCase()}function D(){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 j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function B(){const e=this.resume();this.stack[this.stack.length-1].title=e}function L(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function z(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=FS(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function V(e){this.data.characterReferenceType=e.type}function G(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=LS(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=OS(t)}this.stack[this.stack.length-1].value+=r}function W(e){this.stack.pop().position.end=yI(e.end)}function H(e){_.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function X(e){_.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function Y(){return{type:"blockquote",children:[]}}function $(){return{type:"code",lang:null,meta:null,value:""}}function Z(){return{type:"inlineCode",value:""}}function U(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function K(){return{type:"heading",depth:0,children:[]}}function q(){return{type:"break"}}function Q(){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(;!w_(e););return e}(function(e){const t={constructs:DS([uI,...(e||{}).extensions||[]]),content:n(t_),defined:[],document:n(n_),flow:n(J_),lazy:{},string:n(q_),text:n(Q_)};return t;function n(e){return function(n){return dI(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(fI.lastIndex=u,l=fI.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 yI(e){return{line:e.line,column:e.column,offset:e.offset}}function bI(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?bI(e,r):vI(e,r)}}function vI(e,t){let n;for(n in t)if(mI.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 wI(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+oS({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+oS({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+oS({start:t.start,end:t.end})+") is still open")}function xI(e){const t=this;t.parser=function(n){return gI(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function EI(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 CI(e){const t=e.spread;return null==t?e.children.length>1:t}function kI(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(SI(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(SI(t.slice(o),o>0,!1)),i.join("")}function SI(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 _I={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=QS(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 EI(e,t);const o={src:QS(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:QS(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 EI(e,t);const o={href:QS(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:QS(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=CI(n[r])}return t}(n):CI(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=nS(t.children[1]),a=tS(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:kI(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:II,yaml:II,definition:II,footnoteDefinition:II};function II(){}const AI="object"==typeof self?self:globalThis,NI=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 AI[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 AI[i](a),o)};return r})(new Map,e)(0),RI="",{toString:OI}={},{keys:TI}=Object,MI=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=OI.call(e).slice(8,-1);switch(n){case"Array":return[1,RI];case"Object":return[2,RI];case"Date":return[3,RI];case"RegExp":return[4,RI];case"Map":return[5,RI];case"Set":return[6,RI];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},PI=([e,t])=>0===e&&("function"===t||"symbol"===t),DI=(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]=MI(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 TI(r))!e&&PI(MI(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||!PI(MI(n))&&!PI(MI(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&PI(MI(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 jI="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?NI(DI(e,t)):structuredClone(e):(e,t)=>NI(DI(e,t));function BI(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 LI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const FI=function(e){if(null==e)return VI;if("function"==typeof e)return zI(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=FI(e[n]);return zI(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 zI(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 zI(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function zI(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 VI(){return!0}const GI=[],WI=!0,HI=!1;function XI(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=FI(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=GI;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[WI,e];return null==e?GI:[e]}(n(o,l)),f[0]===HI))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]===HI)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}function YI(e,t,n,r){let o,i,a;"function"==typeof t?(i=void 0,a=t,o=n):(i=t,a=n,o=r),XI(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 $I={}.hasOwnProperty,ZI={};function UI(e,t){e.position&&(t.position=function(e){const t=nS(e),n=tS(e);if(t&&n)return{start:t,end:n}}(e))}function JI(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,jI(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function KI(e,t){const n=t.data||{},r=!("value"in t)||$I.call(n,"hProperties")||$I.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 qI(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 QI(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function eA(e,t){const n=function(e,t){const n=t||ZI,r=new Map,o=new Map,i=new Map,a={..._I,...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=QI(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=QI(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:JI,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if($I.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=jI(n);return r.children=s.all(e),r}return jI(e)}return(s.options.unknownHandler||KI)(s,e,t)},options:n,patch:UI,wrap:qI};return YI(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||BI,r=e.options.footnoteBackLabel||LI,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=QS(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:{...jI(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 tA(e,t){return e&&"run"in e?async function(n,r){const o=eA(n,{file:r,...t});await e.run(o,r)}:function(n,r){return eA(n,{file:r,...e||t})}}function nA(e){if(e)throw e}var rA,oA;var iA=function(){if(oA)return rA;oA=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 rA=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},rA}(),aA=l(iA);function sA(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 lA(){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 cA={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');uA(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(uA(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){uA(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;)uA(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){uA(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 uA(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dA={cwd:function(){return"/"}};function fA(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function pA(e){if("string"==typeof e)e=new URL(e);else if(!fA(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 hA=["history","path","basename","stem","extname","dirname"];class mA{constructor(e){let t;t=e?fA(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?"":dA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<hA.length;){const e=hA[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)hA.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?cA.basename(this.path):void 0}set basename(e){yA(e,"basename"),gA(e,"basename"),this.path=cA.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?cA.dirname(this.path):void 0}set dirname(e){bA(this.basename,"dirname"),this.path=cA.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?cA.extname(this.path):void 0}set extname(e){if(gA(e,"extname"),bA(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=cA.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){fA(e)&&(e=pA(e)),yA(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?cA.basename(this.path,this.extname):void 0}set stem(e){yA(e,"stem"),gA(e,"stem"),this.path=cA.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 lS(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 gA(e,t){if(e&&e.includes(cA.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+cA.sep+"`")}function yA(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function bA(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const vA=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},wA={}.hasOwnProperty;class xA extends vA{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=lA()}copy(){const e=new xA;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(aA(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(SA("data",this.frozen),this.namespace[e]=t,this):wA.call(this.namespace,e)&&this.namespace[e]||void 0:e?(SA("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=AA(e),n=this.parser||this.Parser;return CA("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),CA("process",this.parser||this.Parser),kA("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=AA(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(),CA("processSync",this.parser||this.Parser),kA("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,nA(e),t=r})),IA("processSync","process",n),t}run(e,t,n){_A(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=AA(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){nA(e),n=t,r=!0})),IA("runSync","run",r),n}stringify(e,t){this.freeze();const n=AA(t),r=this.compiler||this.Compiler;return kA("stringify",r),_A(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(SA("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=aA(!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];sA(a)&&sA(r)&&(r=aA(!0,a,r)),n[o]=[e,r,...i]}}}}const EA=(new xA).freeze();function CA(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function kA(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function SA(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 _A(e){if(!sA(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function IA(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function AA(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new mA(e)}const NA=[],RA={allowDangerousHtml:!0},OA=/^(https?|ircs?|mailto|xmpp)$/i,TA=[{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 MA(e){const t=function(e){const t=e.rehypePlugins||NA,n=e.remarkPlugins||NA,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...RA}:RA,o=EA().use(xI).use(n).use(tA,r).use(t);return o}(e),n=function(e){const t=e.children||"",n=new mA;"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||PA;for(const e of TA)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 YI(e,c),mS(e,{Fragment:vf.Fragment,components:o,ignoreInvalidStyle:!0,jsx:vf.jsx,jsxs:vf.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 SS)if(Object.hasOwn(SS,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=SS[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 PA(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||OA.test(e.slice(0,t))?e:""}function DA(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 jA(e,t,n){const r=FI((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([BA(e[0]),LA(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)XI(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.global)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 BA(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 LA(e){return"function"==typeof e?e:function(){return e}}const FA="phrasing",zA=["autolink","link","image","label"];function VA(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function GA(e){this.config.enter.autolinkProtocol.call(this,e)}function WA(e){this.config.exit.autolinkProtocol.call(this,e)}function HA(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 XA(e){this.config.exit.autolinkEmail.call(this,e)}function YA(e){this.exit(e)}function $A(e){jA(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ZA],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,UA]],{ignore:["link","linkReference"]})}function ZA(e,t,n,r,o){let i="";if(!JA(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=DA(e,"(");let i=DA(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 UA(e,t,n,r){return!(!JA(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function JA(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||KS(n)||JS(n))&&(!t||47!==n)}function KA(){this.buffer()}function qA(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function QA(){this.buffer()}function eN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function tN(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=FS(this.sliceSerialize(e)).toLowerCase(),n.label=t}function nN(e){this.exit(e)}function rN(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=FS(this.sliceSerialize(e)).toLowerCase(),n.label=t}function oN(e){this.exit(e)}function iN(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 aN(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?lN:sN)));return s(),a},footnoteReference:iN},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function sN(e,t,n){return 0===t?e:lN(e,t,n)}function lN(e,t,n){return(n?"":" ")+e}iN.peek=function(){return"["};const cN=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function uN(e){this.enter({type:"delete",children:[]},e)}function dN(e){this.exit(e)}function fN(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 pN(e){return e.length}function hN(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 mN(e,t,n){return">"+(n?"":" ")+e}function gN(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 yN(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],gN(i,a.inConstruct,!0)&&!gN(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function bN(e,t,n){return(n?"":" ")+e}function vN(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 wN(e){return"&#x"+e.toString(16).toUpperCase()+";"}function xN(e,t,n){const r=o_(e),o=o_(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 EN(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=xN(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=wN(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=xN(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+wN(d));const p=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}function CN(e){return e.value||""}function kN(e,t,n,r){const o=vN(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 SN(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 _N(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 IN(e,t){const n=IS(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 AN(e,t,n,r){const o=vN(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(IN(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 NN(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 RN(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 ON(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}fN.peek=function(){return"~"},EN.peek=function(e,t,n){return n.options.emphasis||"*"},CN.peek=function(){return"<"},kN.peek=function(){return"!"},SN.peek=function(){return"!"},_N.peek=function(){return"`"},AN.peek=function(e,t,n){return IN(e,n)?"<":"["},NN.peek=function(){return"["};const TN=FI(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function MN(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=xN(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=wN(c)+l.slice(1));const d=l.charCodeAt(l.length-1),f=xN(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+wN(d));const p=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+p}MN.peek=function(e,t,n){return n.options.strong||"*"};const PN={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()),mN);return o(),a},break:yN,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,bN);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=vN(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:EN,hardBreak:yN,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 YI(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,HI})),Boolean((!e.depth||e.depth<3)&&IS(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=wN(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:CN,image:kN,imageReference:SN,inlineCode:_N,link:AN,linkReference:NN,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):RN(n);const s=e.ordered?"."===a?")":".":function(e){const t=RN(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),ON(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||RN(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 TN(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:MN,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ON(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 DN(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 jN(e){this.exit(e),this.data.inTable=void 0}function BN(e){this.enter({type:"tableRow",children:[]},e)}function LN(e){this.exit(e)}function FN(e){this.enter({type:"tableCell",children:[]},e)}function zN(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,VN));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function VN(e,t){return"|"===t?t:e}function GN(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=PN.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||pN,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]=hN(r[f]);else{const e=hN(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 WN(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function HN(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 XN(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=PN.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}const YN={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},$N={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(UN,l,s)(t):null===t||ZS(t)||KS(t)||45!==t&&JS(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},ZN={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(UN,t,i)(a):null===a||ZS(a)||KS(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},UN={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||ZS(a)||KS(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||ZS(e)||KS(e)?t(e):r(e)}function i(e){return zS(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):zS(t)?(e.consume(t),a):n(t)}},partial:!0},JN={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return VS(e)?n(e):t(e)}},partial:!0},KN={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!nR.call(r,r.previous)||aR(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(YN,e.attempt($N,e.attempt(ZN,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:nR},qN={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&rR.call(r,r.previous)&&!aR(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(zS(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||WS(t)||ZS(t)||KS(t)||JS(t)?n(t):e.attempt($N,e.attempt(ZN,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rR},QN={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!iR(t)||!oR.call(r,r.previous)||aR(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return iR(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(JN,c,l)(t):45===t||95===t||VS(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&&zS(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:oR},eR={};let tR=48;for(;tR<123;)eR[tR]=QN,tR++,58===tR?tR=65:91===tR&&(tR=97);function nR(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||ZS(e)}function rR(e){return!zS(e)}function oR(e){return!(47===e||iR(e))}function iR(e){return 43===e||45===e||46===e||95===e||VS(e)}function aR(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}eR[43]=QN,eR[45]=QN,eR[46]=QN,eR[95]=QN,eR[72]=[QN,qN],eR[104]=[QN,qN],eR[87]=[QN,KN],eR[119]=[QN,KN];const sR={tokenize:function(e,t,n){const r=this;return e_(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 lR(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=FS(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 cR(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 uR(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||ZS(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(FS(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return ZS(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 dR(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||ZS(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=FS(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ZS(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),e_(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function fR(e,t,n){return e.check(c_,t,e.attempt(sR,t,n))}function pR(e){e.exit("gfmFootnoteDefinition")}function hR(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=o_(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=o_(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&&TS(a,a.length,0,i_(s,e.slice(r+1,n),t)),TS(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),TS(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 mR{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 gR(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 yR(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):$S(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):US(t)?e_(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||ZS(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,US(t)?e_(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):v(t)}function p(t){return US(t)?e_(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||$S(t)?b(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):v(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 US(t)?e_(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?f(n):(null===n||$S(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(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||$S(n)?(e.exit("tableRow"),t(n)):US(n)?e_(e,x,"whitespace")(n):(e.enter("data"),E(n))}function E(t){return null===t||124===t||ZS(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?C:E)}function C(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function bR(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 mR;for(;++i<e.length;){const p=e[i],h=p[1];"enter"===p[0]?"tableHead"===h.type?(u=!1,0!==d&&(wR(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=vR(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=vR(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=vR(f,t,l,s,i,o)):0!==c[1]&&(o=vR(f,t,c,s,i,o)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==d&&wR(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=gR(t.events,i))}return e}function vR(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},xR(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=xR(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=xR(t.events,n[2]),i=xR(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({},xR(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function wR(e,t,n,r,o){const i=[],a=xR(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 xR(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const ER={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 ZS(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 $S(r)?t(r):US(r)?e.check({tokenize:CR},t,n)(r):n(r)}}};function CR(e,t,n){return e_(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const kR={};function SR(e){const t=e||kR,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return DS([{text:eR},{document:{91:{name:"gfmFootnoteDefinition",tokenize:dR,continuation:{tokenize:fR},exit:pR}},text:{91:{name:"gfmFootnoteCall",tokenize:uR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:lR,resolveTo:cR}}},hR(e),{flow:{null:{name:"table",tokenize:yR,resolveAll:bR}}},{text:{91:ER}}])}(t)),o.push([{transforms:[$A],enter:{literalAutolink:VA,literalAutolinkEmail:GA,literalAutolinkHttp:GA,literalAutolinkWww:GA},exit:{literalAutolink:YA,literalAutolinkEmail:XA,literalAutolinkHttp:WA,literalAutolinkWww:HA}},{enter:{gfmFootnoteCallString:KA,gfmFootnoteCall:qA,gfmFootnoteDefinitionLabelString:QA,gfmFootnoteDefinition:eN},exit:{gfmFootnoteCallString:tN,gfmFootnoteCall:nN,gfmFootnoteDefinitionLabelString:rN,gfmFootnoteDefinition:oN}},{canContainEols:["delete"],enter:{strikethrough:uN},exit:{strikethrough:dN}},{enter:{table:DN,tableData:FN,tableHeader:FN,tableRow:BN},exit:{codeText:zN,table:jN,tableData:LN,tableHeader:LN,tableRow:LN}},{exit:{taskListCheckValueChecked:WN,taskListCheckValueUnchecked:WN,paragraph:HN}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:FA,notInConstruct:zA},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:FA,notInConstruct:zA},{character:":",before:"[ps]",after:"\\/",inConstruct:FA,notInConstruct:zA}]},aN(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:cN}],handlers:{delete:fN}},GN(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:XN}}]}}(t))}const _R=({item:t})=>{const n=e.useContext(nW);return o.createElement("div",{className:"libnodeentry",onClick:e=>{2===e.detail&&n.worker?.add_node(t.node_id)},title:t.description},t.node_name||t.node_id)},IR=(e,t)=>{const n=e.nodes?.some((e=>e.node_id.toLowerCase().includes(t.toLowerCase())))??!1,r=e.subshelves?.some((e=>IR(e,t)))??!1;return n||r},AR=({item:t,filter:n,parentkey:r})=>{const[i,a]=e.useState(!1),s=t.nodes?.filter((e=>e.node_id.toLowerCase().includes(n.toLowerCase()))),l=i||n.length>0;return IR(t,n)?o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>a(!i),style:{cursor:"pointer"},title:t.description},o.createElement("div",{className:"shelftitle_text"},t.name),o.createElement("div",{className:"expandicon "+(l?"open":"close")},o.createElement(wv,null))),o.createElement("div",{className:"libnodecontainer "+(l?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},s&&o.createElement(o.Fragment,null,s.map((e=>o.createElement(_R,{key:e.node_id,item:e})))),t.subshelves&&o.createElement(o.Fragment,null,t.subshelves.map((e=>o.createElement(AR,{key:r+e.name,item:e,filter:n,parentkey:r+e.name})))))),o.createElement("hr",null)):o.createElement(o.Fragment,null)},NR=({filter:e,setFilter:t})=>o.createElement("div",{className:"libfilter"},o.createElement(_v,{fontSize:"inherit"}),o.createElement("input",{type:"text",placeholder:"Filter",value:e,onChange:e=>{t(e.target.value)}}),e&&o.createElement(xv,{fontSize:"inherit",onClick:()=>{t("")}})),RR=[">=","==","<=","<",">"],OR=">=",TR=({availableModule:e})=>o.createElement("div",{className:"module-links"},e.homepage&&o.createElement(o.Fragment,null,o.createElement("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer"},"Homepage")),e.source&&e.homepage&&" | ",e.source&&o.createElement(o.Fragment,null,o.createElement("a",{href:e.source,target:"_blank",rel:"noopener noreferrer"},"Source"))),MR=({availableModule:t})=>{const[n,r]=e.useState(!1),i=t.description.length>150?t.description.substring(0,150)+"...":t.description;return o.createElement("div",{className:"module-description"},o.createElement(MA,{remarkPlugins:[SR]},n?t.description.replace(/\\n/g," \n"):i.replace(/\\n/g," \n")),t.description.length>150&&o.createElement("button",{onClick:()=>r(!n),className:"toggle-description"},n?"Show less":"Show more"))},PR=({availableModule:t,on_change:n})=>{const[r,i]=e.useState(t.version||"latest"),[a,s]=e.useState(OR);return t.releases&&!t.releases.includes(r)&&t.releases.unshift(r),o.createElement(o.Fragment,null,o.createElement("select",{value:a,onChange:e=>{e.target.value!==a&&RR.includes(e.target.value)&&(s(e.target.value),"latest"!==r&&n(e.target.value+r))}},RR.map((e=>o.createElement("option",{key:e,value:e},e)))),o.createElement("select",{onChange:e=>{const t=e.target.value;i(t),n("latest"!==t?a+t:t)},value:r},t.releases&&t.releases.map((e=>o.createElement("option",{key:e,value:e},e)))))},DR=({availableModule:t,on_remove:n,on_update:r})=>{const[i,a]=e.useState(OR+t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name+(t.version?` (${t.version})`:"")),o.createElement(TR,{availableModule:t}),o.createElement(MR,{availableModule:t}),o.createElement("div",null,o.createElement(PR,{availableModule:t,on_change:a}),o.createElement("button",{className:"update-button",disabled:i===t.version,onClick:()=>{r(t,i)}},"Update"),o.createElement("button",{className:"remove-button",onClick:()=>{n(t)}},"Remove")))},jR=({availableModule:t,on_add:n})=>{const[r,i]=e.useState(OR+t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name+(t.version?` (${t.version})`:"")),o.createElement(TR,{availableModule:t}),o.createElement(MR,{availableModule:t}),o.createElement("div",null,o.createElement(PR,{availableModule:t,on_change:i}),o.createElement("button",{className:"add-button",onClick:()=>{n(t,r)}},"Add")))},BR=({availableModule:t,on_add:n})=>{const[r,i]=e.useState(OR+t.version||"latest");return o.createElement("div",{className:"addable-module"},o.createElement("div",{className:"module-name"},t.name),o.createElement(TR,{availableModule:t}),o.createElement(MR,{availableModule:t}),o.createElement("div",null,o.createElement(PR,{availableModule:t,on_change:i}),o.createElement("button",{className:"add-button",onClick:()=>{n(t,r)}},"Add")))},LR=({children:t})=>{const[n,r]=e.useState(""),i=e.useContext(nW),[a,s]=e.useState(!0),[l,c]=e.useState(!0),[u,d]=e.useState(!0),[f,p]=e.useState({installed:[],available:[],active:[]}),[h,m]=e.useState(!1);if(!i.worker)return o.createElement(o.Fragment,null);const g=(e,t)=>{m(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},y=(e,t)=>{m(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},b=e=>{m(!1),void 0!==i.worker&&i.worker.remove_lib(e.name)},v=(e,t)=>{m(!1),void 0!==i.worker&&i.worker.add_lib(e.name,t)},w=e=>e.filter((e=>e.name.toLowerCase().includes(n.toLowerCase())||e.description.toLowerCase().includes(n.toLowerCase()))),x=w(f.available),E=w(f.installed),C=w(f.active);return o.createElement(Iv,{title:"Manage Library",trigger:t,description:"Add or remove libraries to the current worker.",onOpenChange:e=>{e&&void 0!==i.worker&&i.worker.is_open&&i.worker.get_available_modules().then((e=>{p(e)}))},open:h,setOpen:m},o.createElement("input",{className:"filter-input styledinput",type:"text",placeholder:"Filter modules...",value:n,onChange:e=>r(e.target.value)}),o.createElement("div",{className:"packagelist",style:{maxHeight:"70%",overflow:"auto"}},E.length>0&&o.createElement("h3",{onClick:()=>{d(!u)}},"Installed"),u&&E.map((e=>o.createElement(jR,{key:e.name+e.source,availableModule:e,on_add:g}))),x.length>0&&o.createElement("h3",{onClick:()=>{c(!l)}},"Available"),l&&x.map((e=>o.createElement(BR,{key:e.name+e.source,availableModule:e,on_add:y}))),C.length>0&&o.createElement("h3",{onClick:()=>{s(!a)}},"Active"),a&&C.map((e=>o.createElement(DR,{key:e.name+e.source,availableModule:e,on_remove:b,on_update:v})))))},FR=({ins:t})=>{const[n,r]=e.useState(t.name),i=e.useContext(nW);return o.createElement(o.Fragment,null,o.createElement(Iv,{title:t.name,description:"Settings for"+t.name,trigger:o.createElement("div",null,"Settings"),buttons:[{text:"Save",onClick:()=>{i.worker&&(i.worker.update_external_worker(t.uuid,t.nodeclassid,{name:n}),t.name=n)},close:!0},{text:"Delete",onClick:()=>{i.worker&&i.worker.remove_external_worker(t.uuid,t.nodeclassid)},close:!0}]},o.createElement("div",null,o.createElement("div",null,o.createElement("label",{htmlFor:"name"},"Name: "),o.createElement("input",{type:"text",name:"name",value:n,onChange:e=>r(e.target.value),className:"styledinput"})))))},zR=({ins:t,lib:n,filter:r="",parentkey:i})=>{const[a,s]=e.useState(!1),l=n?.nodes?.filter((e=>e.node_id.toLowerCase().includes(r.toLowerCase())));return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>s(!a),style:{cursor:"pointer"},title:t.name},o.createElement("div",{className:"shelftitle_text"},t.name),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(wv,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},a&&o.createElement(o.Fragment,null,o.createElement("div",{className:"libnodeentry",title:t.uuid},o.createElement(FR,{ins:t})),n&&o.createElement(o.Fragment,null,l&&o.createElement(o.Fragment,null,l.map((e=>o.createElement(_R,{key:i+e.node_id,item:e})))),n.subshelves.map((e=>o.createElement(AR,{key:i+e.name,item:e,filter:r,parentkey:i+e.name}))))))))},VR=({item:t,mod:n,lib:r})=>{const i=e.useContext(nW),[a,s]=e.useState(!1),l=t.name||t.module+"."+t.class_name;return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>s(!a),style:{cursor:"pointer"},title:l},o.createElement("div",{className:"shelftitle_text"},l),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(wv,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},a&&o.createElement(o.Fragment,null,o.createElement("div",{className:"libnodeentry",onClick:e=>{2===e.detail&&i.worker?.add_external_worker({module:n,cls_module:t.module,cls_name:t.class_name})},title:t.name},"New Instance"),t.instances.map((e=>o.createElement(zR,{key:e.uuid,ins:e,lib:r?.subshelves.find((t=>t.name===e.uuid)),parentkey:e.uuid})))))))},GR=({externalworkermod:t,lib:n})=>{const[r,i]=e.useState(!1),a=r;return o.createElement("div",{className:"shelfcontainer"},o.createElement("div",{className:"shelftitle",onClick:()=>i(!r),style:{cursor:"pointer"},title:t.module},o.createElement("div",{className:"shelftitle_text"},t.module),o.createElement("div",{className:"expandicon "+(a?"open":"close")},o.createElement(wv,null))),o.createElement("div",{className:"libnodecontainer "+(a?"open":"close")},o.createElement("div",{className:"libnodecontainer_inner"},t.worker_classes.map((e=>o.createElement(VR,{key:e.module+e.class_name,item:e,mod:t.module,lib:n}))))),o.createElement("hr",null))},WR=()=>{const t=e.useContext(nW),n=t.lib.libstate(),r=o.useContext(nW),i=r.local_settings((e=>e.view_settings.expand_lib)),a=r.local_settings((e=>e.update_view_settings)),s=ZC("m"),[l,c]=e.useState(""),u=t.worker?.state((e=>e.is_open))??!1;return o.createElement(JC,{maxSize:s?"100%":"300px",direction:s?"down":"right",containerClassName:"pos-left pos-top bg1 h-12",onExpandChange:e=>{a({expand_lib:e})},expanded:void 0===i||i},o.createElement("div",{className:"libcontainer"},o.createElement("div",{className:"library"},o.createElement("div",{className:"libtitle"},"Lib"),o.createElement("hr",{className:"hr_prominent"}),o.createElement(NR,{filter:l,setFilter:c}),o.createElement("div",{className:"vscrollcontainer"},n.lib.shelves.filter((e=>"_external_worker"!==e.name)).map((e=>o.createElement(AR,{key:e.name,item:e,filter:l,parentkey:e.name})))),o.createElement("hr",null),o.createElement("div",{className:"libtitle"},"External Worker"),o.createElement("hr",{className:"hr_prominent"}),o.createElement("div",{className:"vscrollcontainer"},n.external_worker?.map((e=>o.createElement(GR,{key:e.module,externalworkermod:e,lib:n.lib.shelves.find((e=>"_external_worker"===e.name))})))),o.createElement("hr",null)),o.createElement("div",{style:{paddingTop:"0.5rem"}}),u&&o.createElement("div",{className:"addlib"},o.createElement(LR,null,o.createElement("button",null,"Manage Libraries")))))};const{useRef:HR}=e;function XR(e){const t=HR();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 YR="Popover",[$R,ZR]=wf(YR,[ux]),UR=ux(),[JR,KR]=$R(YR),qR=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=UR(t),c=o.useRef(null),[u,d]=o.useState(!1),[f=!1,p]=If({prop:r,defaultProp:i,onChange:a});return vf.jsx(_x,{...l,children:vf.jsx(JR,{scope:t,contentId:Sf(),triggerRef:c,open:f,onOpenChange:p,onOpenToggle:o.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:u,onCustomAnchorAdd:o.useCallback((()=>d(!0)),[]),onCustomAnchorRemove:o.useCallback((()=>d(!1)),[]),modal:s,children:n})})};qR.displayName=YR;var QR="PopoverAnchor";o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,i=KR(QR,n),a=UR(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return o.useEffect((()=>(s(),()=>l())),[s,l]),vf.jsx(Ix,{...a,...r,ref:t})})).displayName=QR;var eO="PopoverTrigger",tO=o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=KR(eO,n),i=UR(n),a=df(t,o.triggerRef),s=vf.jsx(Tf.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":pO(o.open),...r,ref:a,onClick:lf(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:vf.jsx(Ix,{asChild:!0,...i,children:s})}));tO.displayName=eO;var nO="PopoverPortal",[rO,oO]=$R(nO,{forceMount:void 0}),iO=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=KR(nO,t);return vf.jsx(rO,{scope:t,forceMount:n,children:vf.jsx(ep,{present:n||i.open,children:vf.jsx(Qf,{asChild:!0,container:o,children:r})})})};iO.displayName=nO;var aO="PopoverContent",sO=o.forwardRef(((e,t)=>{const n=oO(aO,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=KR(aO,e.__scopePopover);return vf.jsx(ep,{present:r||i.open,children:i.modal?vf.jsx(lO,{...o,ref:t}):vf.jsx(cO,{...o,ref:t})})}));sO.displayName=aO;var lO=o.forwardRef(((e,t)=>{const n=KR(aO,e.__scopePopover),r=o.useRef(null),i=df(t,r),a=o.useRef(!1);return o.useEffect((()=>{const e=r.current;if(e)return Qp(e)}),[]),vf.jsx(Yp,{as:Af,allowPinchZoom:!0,children:vf.jsx(uO,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lf(e.onCloseAutoFocus,(e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()})),onPointerDownOutside:lf(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:lf(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),cO=o.forwardRef(((e,t)=>{const n=KR(aO,e.__scopePopover),r=o.useRef(!1),i=o.useRef(!1);return vf.jsx(uO,{...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,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target,a=n.triggerRef.current?.contains(o);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})})),uO=o.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=KR(aO,n),p=UR(n);return rp(),vf.jsx(Yf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:vf.jsx(Ff,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:vf.jsx(Ax,{"data-state":pO(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)"}})})})})),dO="PopoverClose";o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=KR(dO,n);return vf.jsx(Tf.button,{type:"button",...r,ref:t,onClick:lf(e.onClick,(()=>o.onOpenChange(!1)))})})).displayName=dO;var fO=o.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=UR(n);return vf.jsx(Nx,{...o,...r,ref:t})}));function pO(e){return e?"open":"closed"}fO.displayName="PopoverArrow";var hO=qR,mO=tO,gO=iO,yO=sO,bO=fO;const vO={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)})`}},wO=e=>!!e&&e instanceof Date,xO=e=>!!e&&e instanceof Object&&"function"==typeof e;function EO(e,t){return void 0===t&&(t=!1),!e||t?`"${e}"`:e}function CO(t){let{field:n,value:r,data:o,lastElement:i,openBracket:a,closeBracket:s,level:l,style:c,shouldExpandNode:u,clickToExpandNode:d,outerRef:f,beforeExpandChange:p}=t;const h=e.useRef(!1),[m,g]=e.useState((()=>u(l,r,n))),y=e.useRef(null);e.useEffect((()=>{h.current?g(u(l,r,n)):h.current=!0}),[u]);const b=e.useId();if(0===o.length)return function(t){let{field:n,openBracket:r,closeBracket:o,lastElement:i,style:a}=t;return e.createElement("div",{className:a.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&e.createElement("span",{className:a.label},EO(n,a.quotesForFieldNames),":"),e.createElement("span",{className:a.punctuation},r),e.createElement("span",{className:a.punctuation},o),!i&&e.createElement("span",{className:a.punctuation},","))}({field:n,openBracket:a,closeBracket:s,lastElement:i,style:c});const v=m?c.collapseIcon:c.expandIcon,w=m?c.ariaLables.collapseJson:c.ariaLables.expandJson,x=l+1,E=o.length-1,C=e=>{m===e||p&&!p({level:l,value:r,field:n,newExpandValue:e})||g(e)},k=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),C("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const t="ArrowUp"===e.key?-1:1;if(!f.current)return;const n=f.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()}},S=()=>{var e;C(!m);const t=y.current;if(!t)return;const n=null===(e=f.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');n&&(n.tabIndex=-1),t.tabIndex=0,t.focus()};return e.createElement("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":m,"aria-selected":void 0},e.createElement("span",{className:v,onClick:S,onKeyDown:k,role:"button","aria-label":w,"aria-expanded":m,"aria-controls":m?b:void 0,ref:y,tabIndex:0===l?0:-1}),(n||""===n)&&(d?e.createElement("span",{className:c.clickableLabel,onClick:S,onKeyDown:k},EO(n,c.quotesForFieldNames),":"):e.createElement("span",{className:c.label},EO(n,c.quotesForFieldNames),":")),e.createElement("span",{className:c.punctuation},a),m?e.createElement("ul",{id:b,role:"group",className:c.childFieldsContainer},o.map(((t,n)=>e.createElement(IO,{key:t[0]||n,field:t[0],value:t[1],style:c,lastElement:n===E,level:x,shouldExpandNode:u,clickToExpandNode:d,outerRef:f})))):e.createElement("span",{className:c.collapsedContent,onClick:S,onKeyDown:k}),e.createElement("span",{className:c.punctuation},s),!i&&e.createElement("span",{className:c.punctuation},","))}function kO(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:a,level:s,outerRef:l,beforeExpandChange:c}=e;return CO({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 SO(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:a,clickToExpandNode:s,outerRef:l,beforeExpandChange:c}=e;return CO({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 _O(t){let n,{field:r,value:o,style:i,lastElement:a}=t,s=i.otherValue;var l;return null===o?(n="null",s=i.nullValue):void 0===o?(n="undefined",s=i.undefinedValue):"string"==typeof(l=o)||l instanceof String?(n=function(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}(o,!i.noQuotesForStringValues,i.stringifyStringValues),s=i.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(o)?(n=o?"true":"false",s=i.booleanValue):(e=>"number"==typeof e||e instanceof Number)(o)?(n=o.toString(),s=i.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(o)?(n=`${o.toString()}n`,s=i.numberValue):n=wO(o)?o.toISOString():xO(o)?"function() { }":o.toString(),e.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(r||""===r)&&e.createElement("span",{className:i.label},EO(r,i.quotesForFieldNames),":"),e.createElement("span",{className:s},n),!a&&e.createElement("span",{className:i.punctuation},","))}function IO(t){const n=t.value;return r=n,Array.isArray(r)?e.createElement(SO,Object.assign({},t)):!(e=>"object"==typeof e&&null!==e)(n)||wO(n)||xO(n)?e.createElement(_O,Object.assign({},t)):e.createElement(kO,Object.assign({},t));var r}var AO="_2bkNM",NO="_1BXBN";const RO={collapseJson:"collapse JSON",expandJson:"expand JSON"},OO={container:"_2IvMF _GzYRV",basicChildStyle:AO,childFieldsContainer:NO,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:RO,stringifyStringValues:!1},TO={container:"_11RoI _GzYRV",basicChildStyle:AO,childFieldsContainer:NO,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:RO,stringifyStringValues:!1},MO=()=>!0,PO=e=>e<1,DO=t=>{let{data:n,style:r=OO,shouldExpandNode:o=MO,clickToExpandNode:i=!1,beforeExpandChange:a,...s}=t;const l=e.useRef(null);return e.createElement("div",Object.assign({"aria-label":"JSON view"},s,{className:r.container,ref:l,role:"tree"}),e.createElement(IO,{value:n,style:{...OO,...r},lastElement:!0,level:0,shouldExpandNode:o,clickToExpandNode:i,outerRef:l,beforeExpandChange:a}))};function jO(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 BO=({data:e})=>o.createElement(DO,{data:jO(e)?"":e,style:TO,shouldExpandNode:PO});function LO(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=LO(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function FO(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=LO(e))&&(r&&(r+=" "),r+=t);return r}function zO(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 VO=o.createContext();function GO(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 WO(e){if("string"!=typeof e)throw new Error("production"!==P.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":GO(7));return e.charAt(0).toUpperCase()+e.slice(1)}"production"!==P.env.NODE_ENV&&(VO.displayName="TableContext");var HO,XO={exports:{}},YO={};function $O(){if(HO)return YO;HO=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 YO.ContextConsumer=i,YO.ContextProvider=a,YO.Element=e,YO.ForwardRef=s,YO.Fragment=n,YO.Lazy=d,YO.Memo=u,YO.Portal=t,YO.Profiler=o,YO.StrictMode=r,YO.Suspense=l,YO.SuspenseList=c,YO.isContextConsumer=function(e){return h(e)===i},YO.isContextProvider=function(e){return h(e)===a},YO.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},YO.isForwardRef=function(e){return h(e)===s},YO.isFragment=function(e){return h(e)===n},YO.isLazy=function(e){return h(e)===d},YO.isMemo=function(e){return h(e)===u},YO.isPortal=function(e){return h(e)===t},YO.isProfiler=function(e){return h(e)===o},YO.isStrictMode=function(e){return h(e)===r},YO.isSuspense=function(e){return h(e)===l},YO.isSuspenseList=function(e){return h(e)===c},YO.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)},YO.typeOf=h,YO}var ZO,UO,JO={};function KO(){return ZO||(ZO=1,"production"!==P.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case r:case i:case o:case c:case u:return e;default:switch(e=e&&e.$$typeof){case s:case l:case f:case d:case a:return e;default:return p}}case n:return p}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h=Symbol.for("react.client.reference");JO.ContextConsumer=a,JO.ContextProvider=s,JO.Element=t,JO.ForwardRef=l,JO.Fragment=r,JO.Lazy=f,JO.Memo=d,JO.Portal=n,JO.Profiler=i,JO.StrictMode=o,JO.Suspense=c,JO.SuspenseList=u,JO.isContextConsumer=function(t){return e(t)===a},JO.isContextProvider=function(t){return e(t)===s},JO.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},JO.isForwardRef=function(t){return e(t)===l},JO.isFragment=function(t){return e(t)===r},JO.isLazy=function(t){return e(t)===f},JO.isMemo=function(t){return e(t)===d},JO.isPortal=function(t){return e(t)===n},JO.isProfiler=function(t){return e(t)===i},JO.isStrictMode=function(t){return e(t)===o},JO.isSuspense=function(t){return e(t)===c},JO.isSuspenseList=function(t){return e(t)===u},JO.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===c||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===a||e.$$typeof===l||e.$$typeof===h||void 0!==e.getModuleId)},JO.typeOf=e}()),JO}function qO(){return UO||(UO=1,"production"===P.env.NODE_ENV?XO.exports=$O():XO.exports=KO()),XO.exports}var QO=qO();function eT(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 tT(e){if(o.isValidElement(e)||QO.isValidElementType(e)||!eT(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=tT(e[n])})),t}function nT(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return eT(e)&&eT(t)&&Object.keys(t).forEach((i=>{o.isValidElement(t[i])||QO.isValidElementType(t[i])?r[i]=t[i]:eT(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&eT(e[i])?r[i]=nT(e[i],t[i],n):n.clone?r[i]=eT(t[i])?tT(t[i]):t[i]:r[i]=t[i]})),r}function rT(e,t){return t?nT(e,t,{clone:!1}):e}const oT="production"!==P.env.NODE_ENV?Mb.oneOfType([Mb.number,Mb.string,Mb.object,Mb.array]):{};const iT={xs:0,sm:600,md:900,lg:1200,xl:1536},aT={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${iT[e]}px)`},sT={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:iT[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function lT(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||aT;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||aT;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){if("production"!==P.env.NODE_ENV)throw new Error("production"!==P.env.NODE_ENV?`MUI: The provided shorthand (${t}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:GO(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:sT,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||iT).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 cT(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 uT(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:cT(e,n)||r,t&&(o=t(o,r,e)),o}function dT(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=cT(e.theme,r)||{};return lT(e,i,(e=>{let r=uT(a,o,e);return e===r&&"string"==typeof e&&(r=uT(a,o,`${t}${"default"===e?"":WO(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes="production"!==P.env.NODE_ENV?{[t]:oT}:{},i.filterProps=[t],i}const fT={m:"margin",p:"padding"},pT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hT={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mT=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!hT[e])return[e];e=hT[e]}const[t,n]=e.split(""),r=fT[t],o=pT[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),gT=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yT=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],bT=[...gT,...yT];function vT(e,t,n,r){const o=cT(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:("production"!==P.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),"string"==typeof o?`calc(${e} * ${o})`:o*e):Array.isArray(o)?e=>{if("string"==typeof e)return e;const n=Math.abs(e);"production"!==P.env.NODE_ENV&&(Number.isInteger(n)?n>o.length-1&&console.error([`MUI: The value provided (${n}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${n} > ${o.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n")));const r=o[n];return e>=0?r:"number"==typeof r?-r:`-${r}`}:"function"==typeof o?o:("production"!==P.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function wT(e){return vT(e,"spacing",8,"spacing")}function xT(e,t){return"string"==typeof t||null==t?t:e(t)}function ET(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=xT(t,n),e)),{})}(mT(n),r);return lT(e,e[n],o)}function CT(e,t){const n=wT(e.theme);return Object.keys(e).map((r=>ET(e,t,r,n))).reduce(rT,{})}function kT(e){return CT(e,gT)}function ST(e){return CT(e,yT)}function _T(...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]?rT(n,t[r](e)):n),{});return n.propTypes="production"!==P.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function IT(e){return"number"!=typeof e?e:`${e}px solid`}function AT(e,t){return dT({prop:e,themeKey:"borders",transform:t})}kT.propTypes="production"!==P.env.NODE_ENV?gT.reduce(((e,t)=>(e[t]=oT,e)),{}):{},kT.filterProps=gT,ST.propTypes="production"!==P.env.NODE_ENV?yT.reduce(((e,t)=>(e[t]=oT,e)),{}):{},ST.filterProps=yT,"production"===P.env.NODE_ENV||bT.reduce(((e,t)=>(e[t]=oT,e)),{});const NT=AT("border",IT),RT=AT("borderTop",IT),OT=AT("borderRight",IT),TT=AT("borderBottom",IT),MT=AT("borderLeft",IT),PT=AT("borderColor"),DT=AT("borderTopColor"),jT=AT("borderRightColor"),BT=AT("borderBottomColor"),LT=AT("borderLeftColor"),FT=AT("outline",IT),zT=AT("outlineColor"),VT=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=vT(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:xT(t,e)});return lT(e,e.borderRadius,n)}return null};VT.propTypes="production"!==P.env.NODE_ENV?{borderRadius:oT}:{},VT.filterProps=["borderRadius"],_T(NT,RT,OT,TT,MT,PT,DT,jT,BT,LT,VT,FT,zT);const GT=e=>{if(void 0!==e.gap&&null!==e.gap){const t=vT(e.theme,"spacing",8,"gap"),n=e=>({gap:xT(t,e)});return lT(e,e.gap,n)}return null};GT.propTypes="production"!==P.env.NODE_ENV?{gap:oT}:{},GT.filterProps=["gap"];const WT=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=vT(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:xT(t,e)});return lT(e,e.columnGap,n)}return null};WT.propTypes="production"!==P.env.NODE_ENV?{columnGap:oT}:{},WT.filterProps=["columnGap"];const HT=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=vT(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:xT(t,e)});return lT(e,e.rowGap,n)}return null};HT.propTypes="production"!==P.env.NODE_ENV?{rowGap:oT}:{},HT.filterProps=["rowGap"];function XT(e,t){return"grey"===t?t:e}_T(GT,WT,HT,dT({prop:"gridColumn"}),dT({prop:"gridRow"}),dT({prop:"gridAutoFlow"}),dT({prop:"gridAutoColumns"}),dT({prop:"gridAutoRows"}),dT({prop:"gridTemplateColumns"}),dT({prop:"gridTemplateRows"}),dT({prop:"gridTemplateAreas"}),dT({prop:"gridArea"}));function YT(e){return e<=1&&0!==e?100*e+"%":e}_T(dT({prop:"color",themeKey:"palette",transform:XT}),dT({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:XT}),dT({prop:"backgroundColor",themeKey:"palette",transform:XT}));const $T=dT({prop:"width",transform:YT}),ZT=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||iT[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:YT(t)}};return lT(e,e.maxWidth,t)}return null};ZT.filterProps=["maxWidth"];const UT=dT({prop:"minWidth",transform:YT}),JT=dT({prop:"height",transform:YT}),KT=dT({prop:"maxHeight",transform:YT}),qT=dT({prop:"minHeight",transform:YT});dT({prop:"size",cssProperty:"width",transform:YT}),dT({prop:"size",cssProperty:"height",transform:YT});_T($T,ZT,UT,JT,KT,qT,dT({prop:"boxSizing"}));const QT={border:{themeKey:"borders",transform:IT},borderTop:{themeKey:"borders",transform:IT},borderRight:{themeKey:"borders",transform:IT},borderBottom:{themeKey:"borders",transform:IT},borderLeft:{themeKey:"borders",transform:IT},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:IT},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:VT},color:{themeKey:"palette",transform:XT},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:XT},backgroundColor:{themeKey:"palette",transform:XT},p:{style:ST},pt:{style:ST},pr:{style:ST},pb:{style:ST},pl:{style:ST},px:{style:ST},py:{style:ST},padding:{style:ST},paddingTop:{style:ST},paddingRight:{style:ST},paddingBottom:{style:ST},paddingLeft:{style:ST},paddingX:{style:ST},paddingY:{style:ST},paddingInline:{style:ST},paddingInlineStart:{style:ST},paddingInlineEnd:{style:ST},paddingBlock:{style:ST},paddingBlockStart:{style:ST},paddingBlockEnd:{style:ST},m:{style:kT},mt:{style:kT},mr:{style:kT},mb:{style:kT},ml:{style:kT},mx:{style:kT},my:{style:kT},margin:{style:kT},marginTop:{style:kT},marginRight:{style:kT},marginBottom:{style:kT},marginLeft:{style:kT},marginX:{style:kT},marginY:{style:kT},marginInline:{style:kT},marginInlineStart:{style:kT},marginInlineEnd:{style:kT},marginBlock:{style:kT},marginBlockStart:{style:kT},marginBlockEnd:{style:kT},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:GT},rowGap:{style:HT},columnGap:{style:WT},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:YT},maxWidth:{style:ZT},minWidth:{transform:YT},height:{transform:YT},maxHeight:{transform:YT},minHeight:{transform:YT},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 eM=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=cT(n,s)||{};if(c)return c(o);return lT(o,t,(t=>{let n=uT(u,l,t);return t===n&&"string"==typeof t&&(n=uT(u,l,`${e}${"default"===t?"":WO(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??QT;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=rT(l,e(n,a,o,i));else{const e=lT({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=rT(l,e):l[n]=t({sx:a,theme:o})}else l=rT(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 tM(){return tM=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},tM.apply(null,arguments)}eM.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}(),rM="-ms-",oM="-moz-",iM="-webkit-",aM="comm",sM="rule",lM="decl",cM="@keyframes",uM=Math.abs,dM=String.fromCharCode,fM=Object.assign;function pM(e){return e.trim()}function hM(e,t,n){return e.replace(t,n)}function mM(e,t){return e.indexOf(t)}function gM(e,t){return 0|e.charCodeAt(t)}function yM(e,t,n){return e.slice(t,n)}function bM(e){return e.length}function vM(e){return e.length}function wM(e,t){return t.push(e),e}var xM=1,EM=1,CM=0,kM=0,SM=0,_M="";function IM(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:xM,column:EM,length:a,return:""}}function AM(e,t){return fM(IM("",null,null,"",null,null,0),e,{length:-e.length},t)}function NM(){return SM=kM>0?gM(_M,--kM):0,EM--,10===SM&&(EM=1,xM--),SM}function RM(){return SM=kM<CM?gM(_M,kM++):0,EM++,10===SM&&(EM=1,xM++),SM}function OM(){return gM(_M,kM)}function TM(){return kM}function MM(e,t){return yM(_M,e,t)}function PM(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 DM(e){return xM=EM=1,CM=bM(_M=e),kM=0,[]}function jM(e){return _M="",e}function BM(e){return pM(MM(kM-1,zM(91===e?e+2:40===e?e+1:e)))}function LM(e){for(;(SM=OM())&&SM<33;)RM();return PM(e)>2||PM(SM)>3?"":" "}function FM(e,t){for(;--t&&RM()&&!(SM<48||SM>102||SM>57&&SM<65||SM>70&&SM<97););return MM(e,TM()+(t<6&&32==OM()&&32==RM()))}function zM(e){for(;RM();)switch(SM){case e:return kM;case 34:case 39:34!==e&&39!==e&&zM(SM);break;case 40:41===e&&zM(e);break;case 92:RM()}return kM}function VM(e,t){for(;RM()&&e+SM!==57&&(e+SM!==84||47!==OM()););return"/*"+MM(t,kM-1)+"*"+dM(47===e?e:RM())}function GM(e){for(;!PM(OM());)RM();return MM(e,kM)}function WM(e){return jM(HM("",null,null,null,[""],e=DM(e),0,[0],e))}function HM(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,b=0,v="",w=o,x=i,E=r,C=v;g;)switch(h=b,b=RM()){case 40:if(108!=h&&58==gM(C,d-1)){-1!=mM(C+=hM(BM(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=BM(b);break;case 9:case 10:case 13:case 32:C+=LM(h);break;case 92:C+=FM(TM()-1,7);continue;case 47:switch(OM()){case 42:case 47:wM(YM(VM(RM(),TM()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=bM(C)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==y&&(C=hM(C,/\f/g,"")),p>0&&bM(C)-d&&wM(p>32?$M(C+";",r,n,d-1):$M(hM(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(wM(E=XM(C,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)HM(C,t,E,E,w,i,d,s,x);else switch(99===f&&110===gM(C,3)?100:f){case 100:case 108:case 109:case 115:HM(e,E,E,r&&wM(XM(e,E,E,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:HM(C,E,E,E,[""],x,0,s,x)}}c=u=p=0,m=y=1,v=C="",d=a;break;case 58:d=1+bM(C),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==NM())continue;switch(C+=dM(b),b*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(bM(C)-1)*y,y=1;break;case 64:45===OM()&&(C+=BM(RM())),f=OM(),u=d=bM(v=C+=GM(TM())),b++;break;case 45:45===h&&2==bM(C)&&(m=0)}}return i}function XM(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=vM(f),h=0,m=0,g=0;h<r;++h)for(var y=0,b=yM(e,d+1,d=uM(m=a[h])),v=e;y<p;++y)(v=pM(m>0?f[y]+" "+b:hM(b,/&\f/g,f[y])))&&(l[g++]=v);return IM(e,t,n,0===o?sM:s,l,c,u)}function YM(e,t,n){return IM(e,t,n,aM,dM(SM),yM(e,2,-2),0)}function $M(e,t,n,r){return IM(e,t,n,lM,yM(e,0,r),yM(e,r+1,-1),r)}function ZM(e,t){for(var n="",r=vM(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function UM(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case lM:return e.return=e.return||e.value;case aM:return"";case cM:return e.return=e.value+"{"+ZM(e.children,r)+"}";case sM:e.value=e.props.join(",")}return bM(n=ZM(e.children,r))?e.return=e.value+"{"+n+"}":""}function JM(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var KM=function(e,t,n){for(var r=0,o=0;r=o,o=OM(),38===r&&12===o&&(t[n]=1),!PM(o);)RM();return MM(e,kM)},qM=function(e,t){return jM(function(e,t){var n=-1,r=44;do{switch(PM(r)){case 0:38===r&&12===OM()&&(t[n]=1),e[n]+=KM(kM-1,t,n);break;case 2:e[n]+=BM(r);break;case 4:if(44===r){e[++n]=58===OM()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=dM(r)}}while(r=RM());return e}(DM(e),t))},QM=new WeakMap,eP=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)||QM.get(n))&&!r){QM.set(e,!0);for(var o=[],i=qM(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]}}},tP=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function nP(e,t){switch(function(e,t){return 45^gM(e,0)?(((t<<2^gM(e,0))<<2^gM(e,1))<<2^gM(e,2))<<2^gM(e,3):0}(e,t)){case 5103:return iM+"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 iM+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return iM+e+oM+e+rM+e+e;case 6828:case 4268:return iM+e+rM+e+e;case 6165:return iM+e+rM+"flex-"+e+e;case 5187:return iM+e+hM(e,/(\w+).+(:[^]+)/,iM+"box-$1$2"+rM+"flex-$1$2")+e;case 5443:return iM+e+rM+"flex-item-"+hM(e,/flex-|-self/,"")+e;case 4675:return iM+e+rM+"flex-line-pack"+hM(e,/align-content|flex-|-self/,"")+e;case 5548:return iM+e+rM+hM(e,"shrink","negative")+e;case 5292:return iM+e+rM+hM(e,"basis","preferred-size")+e;case 6060:return iM+"box-"+hM(e,"-grow","")+iM+e+rM+hM(e,"grow","positive")+e;case 4554:return iM+hM(e,/([^-])(transform)/g,"$1"+iM+"$2")+e;case 6187:return hM(hM(hM(e,/(zoom-|grab)/,iM+"$1"),/(image-set)/,iM+"$1"),e,"")+e;case 5495:case 3959:return hM(e,/(image-set\([^]*)/,iM+"$1$`$1");case 4968:return hM(hM(e,/(.+:)(flex-)?(.*)/,iM+"box-pack:$3"+rM+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+iM+e+e;case 4095:case 3583:case 4068:case 2532:return hM(e,/(.+)-inline(.+)/,iM+"$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(bM(e)-1-t>6)switch(gM(e,t+1)){case 109:if(45!==gM(e,t+4))break;case 102:return hM(e,/(.+:)(.+)-([^]+)/,"$1"+iM+"$2-$3$1"+oM+(108==gM(e,t+3)?"$3":"$2-$3"))+e;case 115:return~mM(e,"stretch")?nP(hM(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==gM(e,t+1))break;case 6444:switch(gM(e,bM(e)-3-(~mM(e,"!important")&&10))){case 107:return hM(e,":",":"+iM)+e;case 101:return hM(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+iM+(45===gM(e,14)?"inline-":"")+"box$3$1"+iM+"$2$3$1"+rM+"$2box$3")+e}break;case 5936:switch(gM(e,t+11)){case 114:return iM+e+rM+hM(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return iM+e+rM+hM(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return iM+e+rM+hM(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return iM+e+rM+e+e}return e}var rP,oP,iP=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case lM:e.return=nP(e.value,e.length);break;case cM:return ZM([AM(e,{value:hM(e.value,"@","@"+iM)})],r);case sM: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 ZM([AM(e,{props:[hM(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ZM([AM(e,{props:[hM(t,/:(plac\w+)/,":"+iM+"input-$1")]}),AM(e,{props:[hM(t,/:(plac\w+)/,":-moz-$1")]}),AM(e,{props:[hM(t,/:(plac\w+)/,rM+"input-$1")]})],r)}return""}))}}],aP=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||iP,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=[UM,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=vM(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([eP,tP].concat(i,u));o=function(e,t,n,r){l=n,function(e){ZM(WM(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(oP)return rP;oP=1;var e=kb(),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;rP=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 b=c(r,y);try{a(t,y,b)}catch(e){}}}}return t}}();function sP(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var lP=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},cP=function(e,t,n){lP(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 uP={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},dP=/[A-Z]|^ms/g,fP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pP=function(e){return 45===e.charCodeAt(1)},hP=function(e){return null!=e&&"boolean"!=typeof e},mP=JM((function(e){return pP(e)?e:e.replace(dP,"-$&").toLowerCase()})),gP=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fP,(function(e,t,n){return bP={name:t,styles:n,next:bP},t}))}return 1===uP[e]||pP(e)||"number"!=typeof t||0===t?t:t+"px"};function yP(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 bP={name:o.name,styles:o.styles,next:bP},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)bP={name:a.name,styles:a.styles,next:bP},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+=yP(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]+"}":hP(s)&&(r+=mP(i)+":"+gP(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=yP(e,t,a);switch(i){case"animation":case"animationName":r+=mP(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)hP(a[c])&&(r+=mP(i)+":"+gP(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=bP,l=n(e);return bP=s,yP(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var bP,vP=/label:\s*([^\s;{]+)\s*(;|$)/g;function wP(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="";bP=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=yP(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=yP(n,t,e[a]),r)o+=i[a]}vP.lastIndex=0;for(var s,l="";null!==(s=vP.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:bP}}var xP=!!o.useInsertionEffect&&o.useInsertionEffect||function(e){return e()},EP=o.createContext("undefined"!=typeof HTMLElement?aP({key:"css"}):null);EP.Provider;var CP,kP,SP=function(t){return e.forwardRef((function(n,r){var o=e.useContext(EP);return t(n,o,r)}))},_P=o.createContext({}),IP={}.hasOwnProperty,AP="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",NP=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return lP(t,n,r),xP((function(){return cP(t,n,r)})),null},RP=SP((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[AP],a=[r],s="";"string"==typeof e.className?s=sP(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=wP(a,void 0,o.useContext(_P));s+=t.key+"-"+l.name;var c={};for(var u in e)IP.call(e,u)&&"css"!==u&&u!==AP&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),o.createElement(o.Fragment,null,o.createElement(NP,{cache:t,serialized:l,isStringTag:"string"==typeof i}),o.createElement(i,c))})),OP=RP,TP=function(e,t){var n=arguments;if(null==t||!IP.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=OP,i[1]=function(e,t){var n={};for(var r in t)IP.call(t,r)&&(n[r]=t[r]);return n[AP]=e,n}(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)};function MP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wP(t)}function PP(){var e=MP.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_"}}}CP=TP||(TP={}),kP||(kP=CP.JSX||(CP.JSX={}));var DP=/^((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)-.*))$/,jP=JM((function(e){return DP.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),BP=function(e){return"theme"!==e},LP=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?jP:BP},FP=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},zP=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return lP(t,n,r),xP((function(){return cP(t,n,r)})),null},VP=function e(t,n){var r,i,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var l=FP(t,n,a),c=l||LP(s),u=!c("as");return function(){var d=arguments,f=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,m=1;m<h;m++)f.push(d[m],p[m])}var g=SP((function(e,t,n){var r=u&&e.as||s,a="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=o.useContext(_P)}"string"==typeof e.className?a=sP(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var m=wP(f.concat(d),t.registered,p);a+=t.key+"-"+m.name,void 0!==i&&(a+=" "+i);var g=u&&void 0===l?LP(r):c,y={};for(var b in e)u&&"as"===b||g(b)&&(y[b]=e[b]);return y.className=a,n&&(y.ref=n),o.createElement(o.Fragment,null,o.createElement(zP,{cache:t,serialized:m,isStringTag:"string"==typeof r}),o.createElement(r,y))}));return g.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=f,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,r){return e(t,tM({},n,r,{shouldForwardProp:FP(g,r,!0)})).apply(void 0,f)},g}}.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){VP[e]=VP(e)}));const GP=[];function WP(e){return GP[0]=e,wP(GP)}function HP(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 XP={borderRadius:4};function YP(e=8,t=wT({spacing:e})){if(e.mui)return e;const n=(...e)=>{"production"!==P.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`));return(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 $P(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 ZP(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=nT({breakpoints:HP(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:YP(o),shape:{...XP,...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=$P,s=t.reduce(((e,t)=>nT(e,t)),s),s.unstable_sxConfig={...QT,...a?.unstable_sxConfig},s.unstable_sx=function(e){return eM({sx:e,theme:this})},s}const UP=e=>e,JP=(()=>{let e=UP;return{configure(t){e=t},generate:t=>e(t),reset(){e=UP}}})(),KP={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 qP(e,t,n="Mui"){const r=KP[t];return r?`${n}-${r}`:`${JP.generate(e)}-${t}`}function QP(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=qP(e,t,n)})),r}function eD(e,t=""){return e.displayName||e.name||t}function tD(e,t,n){const r=eD(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function nD(e){const{variants:t,...n}=e,r={variants:t,style:WP(n),isProcessed:!0};return r.style===n||t&&t.forEach((e=>{"function"!=typeof e.style&&(e.style=WP(e.style))})),r}const rD=ZP();function oD(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function iD(e){return e?(t,n)=>n[e]:null}function aD(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap((t=>aD(e,t)));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return sD(e,n.variants,[t])}return n?.isProcessed?n.style:n}function sD(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 lD(e,t){let n;return"production"!==P.env.NODE_ENV&&e&&(n=`${e}-${cD(t||"Root")}`),n}function cD(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function uD(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]=uD(r[t],i[t])}}else n[o]=i;else n[o]=r||{}}else void 0===n[o]&&(n[o]=e[o])}return n}const dD="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function fD(e,t=0,n=1){return"production"!==P.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function pD(e){if(e.type)return e;if("#"===e.charAt(0))return pD(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))),"production"!==P.env.NODE_ENV&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),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("production"!==P.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:GO(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("production"!==P.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:GO(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const hD=(e,t)=>{try{return(e=>{const t=pD(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(n){return t&&"production"!==P.env.NODE_ENV&&console.warn(t),e}};function mD(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 gD(e){e=pD(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])),mD({type:s,values:l})}function yD(e){let t="hsl"===(e=pD(e)).type||"hsla"===e.type?pD(gD(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 bD(e,t){const n=yD(e),r=yD(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function vD(e,t){return e=pD(e),t=fD(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,mD(e)}function wD(e,t,n){try{return vD(e,t)}catch(t){return e}}function xD(e,t){if(e=pD(e),t=fD(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 mD(e)}function ED(e,t,n){try{return xD(e,t)}catch(t){return e}}function CD(e,t){if(e=pD(e),t=fD(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 mD(e)}function kD(e,t,n){try{return CD(e,t)}catch(t){return e}}function SD(e,t,n){try{return function(e,t=.15){return yD(e)>.5?xD(e,t):CD(e,t)}(e,t)}catch(t){return e}}var _D,ID,AD=(_D=Mb.elementType,ID=function(e,t,n,r,o){const i=e[t],a=o||t;if(null==i||"undefined"==typeof window)return null;let s;return"function"!=typeof i||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(i)||(s="Did you accidentally provide a plain function component instead?"),void 0!==s?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null},"production"===P.env.NODE_ENV?()=>null:function(...e){return _D(...e)||ID(...e)});const ND=Mb.oneOfType([Mb.func,Mb.object]);function RD(e){const t=o.useRef(e);return dD((()=>{t.current=e})),o.useRef(((...e)=>(0,t.current)(...e))).current}function OD(...e){return o.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 TD={};function MD(e,t){const n=o.useRef(TD);return n.current===TD&&(n.current=e(t)),n}const PD=[];class DD{static create(){return new DD}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 jD(){const e=MD(DD.create).current;var t;return t=e.disposeEffect,o.useEffect(t,PD),e}function BD(e){try{return e.matches(":focus-visible")}catch(e){"production"===P.env.NODE_ENV||/jsdom/.test(window.navigator.userAgent)||console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join("\n"))}return!1}function LD(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 FD(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=FO(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=LD(r),l=LD(o),c=t(a),u=FO(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 zD=o.createContext(void 0);function VD({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?uD(o.defaultProps,r):o.styleOverrides||o.variants?r:uD(o,r)}({props:e,name:t,theme:{components:o.useContext(zD)}})}"production"!==P.env.NODE_ENV&&(Mb.node,Mb.object);const GD={theme:void 0};function WD(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 HD=(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 XD(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}),HD(i,e,`var(${r})`,s),HD(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 YD={black:"#000",white:"#fff"},$D={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"},ZD="#f3e5f5",UD="#ce93d8",JD="#ba68c8",KD="#ab47bc",qD="#9c27b0",QD="#7b1fa2",ej="#e57373",tj="#ef5350",nj="#f44336",rj="#d32f2f",oj="#c62828",ij="#ffb74d",aj="#ffa726",sj="#ff9800",lj="#f57c00",cj="#e65100",uj="#e3f2fd",dj="#90caf9",fj="#42a5f5",pj="#1976d2",hj="#1565c0",mj="#4fc3f7",gj="#29b6f6",yj="#03a9f4",bj="#0288d1",vj="#01579b",wj="#81c784",xj="#66bb6a",Ej="#4caf50",Cj="#388e3c",kj="#2e7d32",Sj="#1b5e20";function _j(){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:YD.white,default:YD.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 Ij=_j();function Aj(){return{text:{primary:YD.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:YD.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 Nj=Aj();function Rj(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=CD(e.main,o):"dark"===t&&(e.dark=xD(e.main,i)))}function Oj(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||function(e="light"){return"dark"===e?{main:dj,light:uj,dark:fj}:{main:pj,light:fj,dark:hj}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:UD,light:ZD,dark:KD}:{main:qD,light:JD,dark:QD}}(t),s=e.error||function(e="light"){return"dark"===e?{main:nj,light:ej,dark:rj}:{main:rj,light:tj,dark:oj}}(t),l=e.info||function(e="light"){return"dark"===e?{main:gj,light:mj,dark:bj}:{main:bj,light:yj,dark:vj}}(t),c=e.success||function(e="light"){return"dark"===e?{main:xj,light:wj,dark:Cj}:{main:kj,light:Ej,dark:Sj}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:aj,light:ij,dark:lj}:{main:"#ed6c02",light:sj,dark:cj}}(t);function d(e){const t=bD(e,Nj.text.primary)>=n?Nj.text.primary:Ij.text.primary;if("production"!==P.env.NODE_ENV){const n=bD(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}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("production"!==P.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:GO(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==P.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:GO(12,t?` (${t})`:"",JSON.stringify(e.main)));return Rj(e,"light",o,r),Rj(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e};let p;"light"===t?p=_j():"dark"===t&&(p=Aj()),"production"!==P.env.NODE_ENV&&(p||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return nT({common:{...YD},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:$D,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...p},o)}function Tj(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 Mj={textTransform:"uppercase"},Pj='"Roboto", "Helvetica", "Arial", sans-serif';function Dj(e,t){const{fontFamily:n=Pj,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;"production"!==P.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const 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===Pj?{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,Mj),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,Mj),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nT({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}function jj(...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 Bj=["none",jj(0,2,1,-1,0,1,1,0,0,1,3,0),jj(0,3,1,-2,0,2,2,0,0,1,5,0),jj(0,3,3,-2,0,3,4,0,0,1,8,0),jj(0,2,4,-1,0,4,5,0,0,1,10,0),jj(0,3,5,-1,0,5,8,0,0,1,14,0),jj(0,3,5,-1,0,6,10,0,0,1,18,0),jj(0,4,5,-2,0,7,10,1,0,2,16,1),jj(0,5,5,-3,0,8,10,1,0,3,14,2),jj(0,5,6,-3,0,9,12,1,0,3,16,2),jj(0,6,6,-3,0,10,14,1,0,4,18,3),jj(0,6,7,-4,0,11,15,1,0,4,20,3),jj(0,7,8,-4,0,12,17,2,0,5,22,4),jj(0,7,8,-4,0,13,19,2,0,5,24,4),jj(0,7,9,-4,0,14,21,2,0,5,26,4),jj(0,8,9,-5,0,15,22,2,0,6,28,5),jj(0,8,10,-5,0,16,24,2,0,6,30,5),jj(0,8,11,-5,0,17,26,2,0,6,32,5),jj(0,9,11,-5,0,18,28,2,0,7,34,6),jj(0,9,12,-6,0,19,29,2,0,7,36,6),jj(0,10,13,-6,0,20,31,3,0,8,38,7),jj(0,10,13,-6,0,21,33,3,0,8,40,7),jj(0,10,14,-6,0,22,35,3,0,8,42,7),jj(0,11,14,-7,0,23,36,3,0,9,44,8),jj(0,11,15,-7,0,24,38,3,0,9,46,8)],Lj={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)"},Fj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zj(e){return`${Math.round(e)}ms`}function Vj(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Gj(e){const t={...Lj,...e.easing},n={...Fj,...e.duration};return{getAutoHeightDuration:Vj,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;if("production"!==P.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!Number.isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),n(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),n(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof r&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:zj(o)} ${i} ${"string"==typeof a?a:zj(a)}`)).join(",")},...e,easing:t,duration:n}}const Wj={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Hj(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];!eT(r=a)&&void 0!==r&&"string"!=typeof r&&"boolean"!=typeof r&&"number"!=typeof r&&!Array.isArray(r)||i.startsWith("unstable_")?delete t[i]:eT(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 Xj(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("production"!==P.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":GO(20));const u=Oj(i),d=ZP(e);let f=nT(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:Bj.slice(),typography:Dj(u,s),transitions:Gj(a),zIndex:{...Wj}});var p,h;if(f=nT(f,c),f=t.reduce(((e,t)=>nT(e,t)),f),"production"!==P.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let r;for(r in t){const o=t[r];if(e.includes(r)&&Object.keys(o).length>0){if("production"!==P.env.NODE_ENV){const e=qP("",r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[r]={}}}};Object.keys(f.components).forEach((e=>{const n=f.components[e].styleOverrides;n&&e.startsWith("Mui")&&t(n,e)}))}return f.unstable_sxConfig={...QT,...c?.unstable_sxConfig},f.unstable_sx=function(e){return eM({sx:e,theme:this})},f.toRuntimeSource=Hj,f}const Yj=[...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 $j(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Zj(e){return"dark"===e?Yj:[]}function Uj(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 Jj=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 Kj(e,t,n){!e[t]&&n&&(e[t]=n)}function qj(e){return"string"==typeof e&&e.startsWith("hsl")?gD(e):e}function Qj(e,t){`${t}Channel`in e||(e[`${t}Channel`]=hD(qj(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}const eB=e=>{try{return e()}catch(e){}};function tB(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=Oj(t);return{palette:i,opacity:{...$j(i.mode),...n},overlays:r||Zj(i.mode),...o}}({...t,palette:{mode:o,...t?.palette}}));const{palette:i,...a}=Xj({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:i,opacity:{...$j(o),...t?.opacity},overlays:t?.overlays||Zj(o)},a}function nB(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=Uj,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")=>WD(e))(i),{[d]:p,light:h,dark:m,...g}=n,y={...g};let b=p;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(b=!0),!b)throw new Error("production"!==P.env.NODE_ENV?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:GO(21,d));const v=tB(y,b,c,d);h&&!y.light&&tB(y,h,void 0,"light"),m&&!y.dark&&tB(y,m,void 0,"dark");let w={defaultColorScheme:d,...v,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:y,font:{...Tj(v.typography),...v.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&&(Kj(t.common,"background","#fff"),Kj(t.common,"onBackground","#000")),"dark"===t.mode&&(Kj(t.common,"background","#000"),Kj(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){Kj(t.Alert,"errorColor",ED(t.error.light,.6)),Kj(t.Alert,"infoColor",ED(t.info.light,.6)),Kj(t.Alert,"successColor",ED(t.success.light,.6)),Kj(t.Alert,"warningColor",ED(t.warning.light,.6)),Kj(t.Alert,"errorFilledBg",n("palette-error-main")),Kj(t.Alert,"infoFilledBg",n("palette-info-main")),Kj(t.Alert,"successFilledBg",n("palette-success-main")),Kj(t.Alert,"warningFilledBg",n("palette-warning-main")),Kj(t.Alert,"errorFilledColor",eB((()=>t.getContrastText(t.error.main)))),Kj(t.Alert,"infoFilledColor",eB((()=>t.getContrastText(t.info.main)))),Kj(t.Alert,"successFilledColor",eB((()=>t.getContrastText(t.success.main)))),Kj(t.Alert,"warningFilledColor",eB((()=>t.getContrastText(t.warning.main)))),Kj(t.Alert,"errorStandardBg",kD(t.error.light,.9)),Kj(t.Alert,"infoStandardBg",kD(t.info.light,.9)),Kj(t.Alert,"successStandardBg",kD(t.success.light,.9)),Kj(t.Alert,"warningStandardBg",kD(t.warning.light,.9)),Kj(t.Alert,"errorIconColor",n("palette-error-main")),Kj(t.Alert,"infoIconColor",n("palette-info-main")),Kj(t.Alert,"successIconColor",n("palette-success-main")),Kj(t.Alert,"warningIconColor",n("palette-warning-main")),Kj(t.AppBar,"defaultBg",n("palette-grey-100")),Kj(t.Avatar,"defaultBg",n("palette-grey-400")),Kj(t.Button,"inheritContainedBg",n("palette-grey-300")),Kj(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Kj(t.Chip,"defaultBorder",n("palette-grey-400")),Kj(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Kj(t.Chip,"defaultIconColor",n("palette-grey-700")),Kj(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Kj(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Kj(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Kj(t.LinearProgress,"primaryBg",kD(t.primary.main,.62)),Kj(t.LinearProgress,"secondaryBg",kD(t.secondary.main,.62)),Kj(t.LinearProgress,"errorBg",kD(t.error.main,.62)),Kj(t.LinearProgress,"infoBg",kD(t.info.main,.62)),Kj(t.LinearProgress,"successBg",kD(t.success.main,.62)),Kj(t.LinearProgress,"warningBg",kD(t.warning.main,.62)),Kj(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Kj(t.Slider,"primaryTrack",kD(t.primary.main,.62)),Kj(t.Slider,"secondaryTrack",kD(t.secondary.main,.62)),Kj(t.Slider,"errorTrack",kD(t.error.main,.62)),Kj(t.Slider,"infoTrack",kD(t.info.main,.62)),Kj(t.Slider,"successTrack",kD(t.success.main,.62)),Kj(t.Slider,"warningTrack",kD(t.warning.main,.62));const e=SD(t.background.default,.8);Kj(t.SnackbarContent,"bg",e),Kj(t.SnackbarContent,"color",eB((()=>t.getContrastText(e)))),Kj(t.SpeedDialAction,"fabHoverBg",SD(t.background.paper,.15)),Kj(t.StepConnector,"border",n("palette-grey-400")),Kj(t.StepContent,"border",n("palette-grey-400")),Kj(t.Switch,"defaultColor",n("palette-common-white")),Kj(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Kj(t.Switch,"primaryDisabledColor",kD(t.primary.main,.62)),Kj(t.Switch,"secondaryDisabledColor",kD(t.secondary.main,.62)),Kj(t.Switch,"errorDisabledColor",kD(t.error.main,.62)),Kj(t.Switch,"infoDisabledColor",kD(t.info.main,.62)),Kj(t.Switch,"successDisabledColor",kD(t.success.main,.62)),Kj(t.Switch,"warningDisabledColor",kD(t.warning.main,.62)),Kj(t.TableCell,"border",kD(wD(t.divider,1),.88)),Kj(t.Tooltip,"bg",wD(t.grey[700],.92))}if("dark"===t.mode){Kj(t.Alert,"errorColor",kD(t.error.light,.6)),Kj(t.Alert,"infoColor",kD(t.info.light,.6)),Kj(t.Alert,"successColor",kD(t.success.light,.6)),Kj(t.Alert,"warningColor",kD(t.warning.light,.6)),Kj(t.Alert,"errorFilledBg",n("palette-error-dark")),Kj(t.Alert,"infoFilledBg",n("palette-info-dark")),Kj(t.Alert,"successFilledBg",n("palette-success-dark")),Kj(t.Alert,"warningFilledBg",n("palette-warning-dark")),Kj(t.Alert,"errorFilledColor",eB((()=>t.getContrastText(t.error.dark)))),Kj(t.Alert,"infoFilledColor",eB((()=>t.getContrastText(t.info.dark)))),Kj(t.Alert,"successFilledColor",eB((()=>t.getContrastText(t.success.dark)))),Kj(t.Alert,"warningFilledColor",eB((()=>t.getContrastText(t.warning.dark)))),Kj(t.Alert,"errorStandardBg",ED(t.error.light,.9)),Kj(t.Alert,"infoStandardBg",ED(t.info.light,.9)),Kj(t.Alert,"successStandardBg",ED(t.success.light,.9)),Kj(t.Alert,"warningStandardBg",ED(t.warning.light,.9)),Kj(t.Alert,"errorIconColor",n("palette-error-main")),Kj(t.Alert,"infoIconColor",n("palette-info-main")),Kj(t.Alert,"successIconColor",n("palette-success-main")),Kj(t.Alert,"warningIconColor",n("palette-warning-main")),Kj(t.AppBar,"defaultBg",n("palette-grey-900")),Kj(t.AppBar,"darkBg",n("palette-background-paper")),Kj(t.AppBar,"darkColor",n("palette-text-primary")),Kj(t.Avatar,"defaultBg",n("palette-grey-600")),Kj(t.Button,"inheritContainedBg",n("palette-grey-800")),Kj(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Kj(t.Chip,"defaultBorder",n("palette-grey-700")),Kj(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Kj(t.Chip,"defaultIconColor",n("palette-grey-300")),Kj(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Kj(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Kj(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Kj(t.LinearProgress,"primaryBg",ED(t.primary.main,.5)),Kj(t.LinearProgress,"secondaryBg",ED(t.secondary.main,.5)),Kj(t.LinearProgress,"errorBg",ED(t.error.main,.5)),Kj(t.LinearProgress,"infoBg",ED(t.info.main,.5)),Kj(t.LinearProgress,"successBg",ED(t.success.main,.5)),Kj(t.LinearProgress,"warningBg",ED(t.warning.main,.5)),Kj(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Kj(t.Slider,"primaryTrack",ED(t.primary.main,.5)),Kj(t.Slider,"secondaryTrack",ED(t.secondary.main,.5)),Kj(t.Slider,"errorTrack",ED(t.error.main,.5)),Kj(t.Slider,"infoTrack",ED(t.info.main,.5)),Kj(t.Slider,"successTrack",ED(t.success.main,.5)),Kj(t.Slider,"warningTrack",ED(t.warning.main,.5));const e=SD(t.background.default,.98);Kj(t.SnackbarContent,"bg",e),Kj(t.SnackbarContent,"color",eB((()=>t.getContrastText(e)))),Kj(t.SpeedDialAction,"fabHoverBg",SD(t.background.paper,.15)),Kj(t.StepConnector,"border",n("palette-grey-600")),Kj(t.StepContent,"border",n("palette-grey-600")),Kj(t.Switch,"defaultColor",n("palette-grey-300")),Kj(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Kj(t.Switch,"primaryDisabledColor",ED(t.primary.main,.55)),Kj(t.Switch,"secondaryDisabledColor",ED(t.secondary.main,.55)),Kj(t.Switch,"errorDisabledColor",ED(t.error.main,.55)),Kj(t.Switch,"infoDisabledColor",ED(t.info.main,.55)),Kj(t.Switch,"successDisabledColor",ED(t.success.main,.55)),Kj(t.Switch,"warningDisabledColor",ED(t.warning.main,.55)),Kj(t.TableCell,"border",ED(wD(t.divider,1),.68)),Kj(t.Tooltip,"bg",wD(t.grey[700],.92))}Qj(t.background,"default"),Qj(t.background,"paper"),Qj(t.common,"background"),Qj(t.common,"onBackground"),Qj(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Kj(t[e],"mainChannel",hD(qj(n.main))),n.light&&Kj(t[e],"lightChannel",hD(qj(n.light))),n.dark&&Kj(t[e],"darkChannel",hD(qj(n.dark))),n.contrastText&&Kj(t[e],"contrastTextChannel",hD(qj(n.contrastText))),"text"===e&&(Qj(t[e],"primary"),Qj(t[e],"secondary")),"action"===e&&(n.active&&Qj(t[e],"active"),n.selected&&Qj(t[e],"selected")))}))})),w=t.reduce(((e,t)=>nT(e,t)),w);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Jj(w)},{vars:C,generateThemeVars:k,generateStyleSheets:S}=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}=XD(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}=XD(n,t);f=nT(f,i),p[e]={css:o,vars:r}})),h){const{css:e,vars:n,varsWithDefaults:r}=XD(h,t);f=nT(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=nT(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,E);return w.vars=C,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach((([e,t])=>{w[e]=t})),w.generateThemeVars=k,w.generateStyleSheets=S,w.generateSpacing=function(){return YP(c.spacing,wT(this))},w.getColorSchemeSelector=function(e){return function(t){return"media"===e?("production"!==P.env.NODE_ENV&&"light"!==t&&"dark"!==t&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@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={...QT,...c?.unstable_sxConfig},w.unstable_sx=function(e){return eM({sx:e,theme:this})},w.toRuntimeSource=Hj,w}function rB(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:Oj({...!0===n?{}:n.palette,mode:t})})}const oB=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 Xj(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=Xj({...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},rB(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},rB(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),nB({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}();const iB=function(e={}){const{themeId:t,defaultTheme:n=rD,rootShouldForwardProp:r=oD,slotShouldForwardProp:o=oD}=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!==eM))));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=iD(cD(a)),...u}=t,d=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,f=l||!1;let p=oD;"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){const n=VP(e,t);return"production"!==P.env.NODE_ENV?(...t)=>{const r="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}:n}(e,{shouldForwardProp:p,label:lD(n,a),...u}),m=e=>{if("function"==typeof e&&e.__emotion_real!==e)return function(t){return aD(t,e)};if(eT(e)){const t=nD(e);return t.variants?function(e){return aD(e,t)}:t.style}return e},g=(...t)=>{const r=[],o=t.map(m),s=[];if(r.push(i),n&&c&&s.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]=aD(e,r[t]);return c(e,o)})),n&&!d&&s.push((function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?sD(e,r):null})),f||s.push(eM),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(s.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const l=[...r,...o,...s],u=h(...l);return e.muiName&&(u.muiName=e.muiName),"production"!==P.env.NODE_ENV&&(u.displayName=function(e,t,n){if(e)return`${e}${WO(t||"")}`;return`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return eD(e,"Component");if("object"==typeof e)switch(e.$$typeof){case QO.ForwardRef:return tD(e,e.render,"ForwardRef");case QO.Memo:return tD(e,e.type,"memo");default:return}}}(n)})`}(n,a,e)),u};return h.withConfig&&(g.withConfig=h.withConfig),g}}({themeId:"$$material",defaultTheme:oB,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),aB=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(GD.theme=r.theme,o=nD(e(GD)),t=o,n=r.theme),o}};function sB(e){return VD(e)}function lB(e){return qP("MuiTable",e)}"production"!==P.env.NODE_ENV&&(Mb.node,Mb.object.isRequired),QP("MuiTable",["root","stickyHeader"]);const cB=iB("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(aB((({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"}}]})))),uB="table",dB=o.forwardRef((function(e,t){const n=sB({props:e,name:"MuiTable"}),{className:r,component:i=uB,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=n,u={...n,component:i,padding:a,size:s,stickyHeader:l},d=(e=>{const{classes:t,stickyHeader:n}=e;return zO({root:["root",n&&"stickyHeader"]},lB,t)})(u),f=o.useMemo((()=>({padding:a,size:s,stickyHeader:l})),[a,s,l]);return vf.jsx(VO.Provider,{value:f,children:vf.jsx(cB,{as:i,role:i===uB?null:"table",ref:t,className:FO(d.root,r),ownerState:u,...c})})}));"production"!==P.env.NODE_ENV&&(dB.propTypes={children:Mb.node,classes:Mb.object,className:Mb.string,component:Mb.elementType,padding:Mb.oneOf(["checkbox","none","normal"]),size:Mb.oneOfType([Mb.oneOf(["medium","small"]),Mb.string]),stickyHeader:Mb.bool,sx:Mb.oneOfType([Mb.arrayOf(Mb.oneOfType([Mb.func,Mb.object,Mb.bool])),Mb.func,Mb.object])});const fB=o.createContext();function pB(e){return qP("MuiTableBody",e)}"production"!==P.env.NODE_ENV&&(fB.displayName="Tablelvl2Context"),QP("MuiTableBody",["root"]);const hB=iB("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),mB={variant:"body"},gB="tbody",yB=o.forwardRef((function(e,t){const n=sB({props:e,name:"MuiTableBody"}),{className:r,component:o=gB,...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return zO({root:["root"]},pB,t)})(a);return vf.jsx(fB.Provider,{value:mB,children:vf.jsx(hB,{className:FO(s.root,r),as:o,ref:t,role:o===gB?null:"rowgroup",ownerState:a,...i})})}));function bB(e){return qP("MuiTableCell",e)}"production"!==P.env.NODE_ENV&&(yB.propTypes={children:Mb.node,classes:Mb.object,className:Mb.string,component:Mb.elementType,sx:Mb.oneOfType([Mb.arrayOf(Mb.oneOfType([Mb.func,Mb.object,Mb.bool])),Mb.func,Mb.object])});const vB=QP("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),wB=iB("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${WO(n.size)}`],"normal"!==n.padding&&t[`padding${WO(n.padding)}`],"inherit"!==n.align&&t[`align${WO(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(aB((({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?CD(vD(e.palette.divider,1),.88):xD(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",[`&.${vB.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}}]})))),xB=o.forwardRef((function(e,t){const n=sB({props:e,name:"MuiTableCell"}),{align:r="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=n,p=o.useContext(VO),h=o.useContext(fB),m=h&&"head"===h.variant;let g;g=a||(m?"th":"td");let y=l;"td"===g?y=void 0:!y&&m&&(y="col");const b=d||h&&h.variant,v={...n,align:r,component:g,padding:s||(p&&p.padding?p.padding:"normal"),size:c||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b},w=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return zO({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${WO(r)}`,"normal"!==o&&`padding${WO(o)}`,`size${WO(i)}`]},bB,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),vf.jsx(wB,{as:g,ref:t,className:FO(w.root,i),"aria-sort":x,scope:y,ownerState:v,...f})}));function EB(e){return qP("MuiTableContainer",e)}"production"!==P.env.NODE_ENV&&(xB.propTypes={align:Mb.oneOf(["center","inherit","justify","left","right"]),children:Mb.node,classes:Mb.object,className:Mb.string,component:Mb.elementType,padding:Mb.oneOf(["checkbox","none","normal"]),scope:Mb.string,size:Mb.oneOfType([Mb.oneOf(["medium","small"]),Mb.string]),sortDirection:Mb.oneOf(["asc","desc",!1]),sx:Mb.oneOfType([Mb.arrayOf(Mb.oneOfType([Mb.func,Mb.object,Mb.bool])),Mb.func,Mb.object]),variant:Mb.oneOfType([Mb.oneOf(["body","footer","head"]),Mb.string])}),QP("MuiTableContainer",["root"]);const CB=iB("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),kB=o.forwardRef((function(e,t){const n=sB({props:e,name:"MuiTableContainer"}),{className:r,component:o="div",...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return zO({root:["root"]},EB,t)})(a);return vf.jsx(CB,{ref:t,as:o,className:FO(s.root,r),ownerState:a,...i})}));function SB(e){return qP("MuiTableHead",e)}"production"!==P.env.NODE_ENV&&(kB.propTypes={children:Mb.node,classes:Mb.object,className:Mb.string,component:Mb.elementType,sx:Mb.oneOfType([Mb.arrayOf(Mb.oneOfType([Mb.func,Mb.object,Mb.bool])),Mb.func,Mb.object])}),QP("MuiTableHead",["root"]);const _B=iB("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),IB={variant:"head"},AB="thead",NB=o.forwardRef((function(e,t){const n=sB({props:e,name:"MuiTableHead"}),{className:r,component:o=AB,...i}=n,a={...n,component:o},s=(e=>{const{classes:t}=e;return zO({root:["root"]},SB,t)})(a);return vf.jsx(fB.Provider,{value:IB,children:vf.jsx(_B,{as:o,className:FO(s.root,r),ref:t,role:o===AB?null:"rowgroup",ownerState:a,...i})})}));function RB(e){return qP("MuiTableRow",e)}"production"!==P.env.NODE_ENV&&(NB.propTypes={children:Mb.node,classes:Mb.object,className:Mb.string,component:Mb.elementType,sx:Mb.oneOfType([Mb.arrayOf(Mb.oneOfType([Mb.func,Mb.object,Mb.bool])),Mb.func,Mb.object])});const OB=QP("MuiTableRow",["root","selected","hover","head","footer"]),TB=iB("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(aB((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${OB.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${OB.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)}}})))),MB="tr",PB=o.forwardRef((function(e,t){const n=sB({props:e,name:"MuiTableRow"}),{className:r,component:i=MB,hover:a=!1,selected:s=!1,...l}=n,c=o.useContext(fB),u={...n,component:i,hover:a,selected:s,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant},d=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return zO({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},RB,t)})(u);return vf.jsx(TB,{as:i,ref:t,className:FO(d.root,r),role:i===MB?null:"row",ownerState:u,...l})}));"production"!==P.env.NODE_ENV&&(PB.propTypes={children:Mb.node,classes:Mb.object,className:Mb.string,component:Mb.elementType,hover:Mb.bool,selected:Mb.bool,sx:Mb.oneOfType([Mb.arrayOf(Mb.oneOfType([Mb.func,Mb.object,Mb.bool])),Mb.func,Mb.object])});class DB{static create(){return new DB}static use(){const e=MD(DB.create).current,[t,n]=o.useState(!1);return e.shouldMount=t,e.setShouldMount=n,o.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 jB(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 BB(e,t){return BB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BB(e,t)}function LB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,BB(e,t)}var FB=e.createContext(null);function zB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VB(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&e.isValidElement(t)?n(t):t}(t)})),r}function GB(e,t,n){return null!=n[t]?n[t]:e.props[t]}function WB(t,n,r){var o=VB(t.children),i=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}(n,o);return Object.keys(i).forEach((function(a){var s=i[a];if(e.isValidElement(s)){var l=a in n,c=a in o,u=n[a],d=e.isValidElement(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&e.isValidElement(u)&&(i[a]=e.cloneElement(s,{onExited:r.bind(null,s),in:u.props.in,exit:GB(s,"exit",t),enter:GB(s,"enter",t)})):i[a]=e.cloneElement(s,{in:!1}):i[a]=e.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:GB(s,"exit",t),enter:GB(s,"enter",t)})}})),i}var HB=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},XB=function(t){function n(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(zB(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}LB(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,VB(r.children,(function(t){return e.cloneElement(t,{onExited:o.bind(null,t),in:!0,appear:GB(t,"appear",r),enter:GB(t,"enter",r),exit:GB(t,"exit",r)})}))):WB(t,i,a),firstRender:!1}},r.handleExited=function(e,t){var n=VB(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=tM({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,o=jB(t,["component","childFactory"]),i=this.state.contextValue,a=HB(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?e.createElement(FB.Provider,{value:i},a):e.createElement(FB.Provider,{value:i},e.createElement(n,o,a))},n}(e.Component);function YB(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=o.useState(!1),p=FO(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-s/2+a,left:-s/2+i},m=FO(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||f(!0),o.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),vf.jsx("span",{className:p,style:h,children:vf.jsx("span",{className:m})})}XB.propTypes="production"!==P.env.NODE_ENV?{component:Mb.any,children:Mb.node,appear:Mb.bool,enter:Mb.bool,exit:Mb.bool,childFactory:Mb.func}:{},XB.defaultProps={component:"div",childFactory:function(e){return e}},"production"!==P.env.NODE_ENV&&(YB.propTypes={classes:Mb.object.isRequired,className:Mb.string,in:Mb.bool,onExited:Mb.func,pulsate:Mb.bool,rippleSize:Mb.number,rippleX:Mb.number,rippleY:Mb.number,timeout:Mb.number.isRequired});const $B=QP("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ZB=PP`
|
|
79
27
|
0% {
|
|
80
28
|
transform: scale(0);
|
|
81
29
|
opacity: 0.1;
|
|
@@ -85,7 +33,7 @@ function(e,t){const n=nF(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
85
33
|
transform: scale(1);
|
|
86
34
|
opacity: 0.3;
|
|
87
35
|
}
|
|
88
|
-
`,
|
|
36
|
+
`,UB=PP`
|
|
89
37
|
0% {
|
|
90
38
|
opacity: 1;
|
|
91
39
|
}
|
|
@@ -93,7 +41,7 @@ function(e,t){const n=nF(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
93
41
|
100% {
|
|
94
42
|
opacity: 0;
|
|
95
43
|
}
|
|
96
|
-
`,
|
|
44
|
+
`,JB=PP`
|
|
97
45
|
0% {
|
|
98
46
|
transform: scale(1);
|
|
99
47
|
}
|
|
@@ -105,23 +53,23 @@ function(e,t){const n=nF(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
105
53
|
100% {
|
|
106
54
|
transform: scale(1);
|
|
107
55
|
}
|
|
108
|
-
`,
|
|
56
|
+
`,KB=iB("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),qB=iB(YB,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
109
57
|
opacity: 0;
|
|
110
58
|
position: absolute;
|
|
111
59
|
|
|
112
|
-
&.${
|
|
60
|
+
&.${$B.rippleVisible} {
|
|
113
61
|
opacity: 0.3;
|
|
114
62
|
transform: scale(1);
|
|
115
|
-
animation-name: ${
|
|
63
|
+
animation-name: ${ZB};
|
|
116
64
|
animation-duration: ${550}ms;
|
|
117
65
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
118
66
|
}
|
|
119
67
|
|
|
120
|
-
&.${
|
|
68
|
+
&.${$B.ripplePulsate} {
|
|
121
69
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
122
70
|
}
|
|
123
71
|
|
|
124
|
-
& .${
|
|
72
|
+
& .${$B.child} {
|
|
125
73
|
opacity: 1;
|
|
126
74
|
display: block;
|
|
127
75
|
width: 100%;
|
|
@@ -130,28 +78,28 @@ function(e,t){const n=nF(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
130
78
|
background-color: currentColor;
|
|
131
79
|
}
|
|
132
80
|
|
|
133
|
-
& .${
|
|
81
|
+
& .${$B.childLeaving} {
|
|
134
82
|
opacity: 0;
|
|
135
|
-
animation-name: ${
|
|
83
|
+
animation-name: ${UB};
|
|
136
84
|
animation-duration: ${550}ms;
|
|
137
85
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
138
86
|
}
|
|
139
87
|
|
|
140
|
-
& .${
|
|
88
|
+
& .${$B.childPulsate} {
|
|
141
89
|
position: absolute;
|
|
142
90
|
/* @noflip */
|
|
143
91
|
left: 0px;
|
|
144
92
|
top: 0;
|
|
145
|
-
animation-name: ${
|
|
93
|
+
animation-name: ${JB};
|
|
146
94
|
animation-duration: 2500ms;
|
|
147
95
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
148
96
|
animation-iteration-count: infinite;
|
|
149
97
|
animation-delay: 200ms;
|
|
150
98
|
}
|
|
151
|
-
`,dB=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...s}=n,[l,c]=o.useState([]),u=o.useRef(0),d=o.useRef(null);o.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const f=o.useRef(!1),p=KF(),h=o.useRef(null),m=o.useRef(null),g=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;c((e=>[...e,Bu.jsx(uB,{classes:{ripple:PD(i.ripple,iB.ripple),rippleVisible:PD(i.rippleVisible,iB.rippleVisible),ripplePulsate:PD(i.ripplePulsate,iB.ripplePulsate),child:PD(i.child,iB.child),childLeaving:PD(i.childLeaving,iB.childLeaving),childPulsate:PD(i.childPulsate,iB.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,d.current=a}),[i]),y=o.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;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)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=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;d=Math.sqrt(e**2+t**2)}e?.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},p.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,g,p]),b=o.useCallback((()=>{y({},{pulsate:!0})}),[y]),v=o.useCallback(((e,t)=>{if(p.clear(),"touchend"===e?.type&&h.current)return h.current(),h.current=null,void p.start(0,(()=>{v(e,t)}));h.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[p]);return o.useImperativeHandle(t,(()=>({pulsate:b,start:y,stop:v})),[b,y,v]),Bu.jsx(cB,{className:PD(iB.root,i.root,a),ref:m,...s,children:Bu.jsx(rB,{component:null,exit:!0,children:l})})}));function fB(e){return pF("MuiButtonBase",e)}"production"!==process.env.NODE_ENV&&(dB.propTypes={center:ty.bool,classes:ty.object,className:ty.string});const pB=hF("MuiButtonBase",["root","disabled","focusVisible"]),hB=wz("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"},[`&.${pB.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mB=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:h="a",onBlur:m,onClick:g,onContextMenu:y,onDragLeave:b,onFocus:v,onFocusVisible:w,onKeyDown:x,onKeyUp:C,onMouseDown:k,onMouseLeave:E,onMouseUp:S,onTouchEnd:I,onTouchMove:_,onTouchStart:A,tabIndex:N=0,TouchRippleProps:O,touchRippleRef:R,type:M,...T}=n,P=o.useRef(null),D=Jz.use(),j=$F(D.ref,R),[F,L]=o.useState(!1);c&&F&&L(!1),o.useImperativeHandle(r,(()=>({focusVisible:()=>{L(!0),P.current.focus()}})),[]);const z=D.shouldMount&&!u&&!c;o.useEffect((()=>{F&&f&&!u&&D.pulsate()}),[u,f,F,D]);const B=gB(D,"start",k,d),V=gB(D,"stop",y,d),G=gB(D,"stop",b,d),W=gB(D,"stop",S,d),H=gB(D,"stop",(e=>{F&&e.preventDefault(),E&&E(e)}),d),X=gB(D,"start",A,d),$=gB(D,"stop",I,d),Z=gB(D,"stop",_,d),Y=gB(D,"stop",(e=>{qF(e.target)||L(!1),m&&m(e)}),!1),U=XF((e=>{P.current||(P.current=e.currentTarget),qF(e.target)&&(L(!0),w&&w(e)),v&&v(e)})),J=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},K=XF((e=>{f&&!e.repeat&&F&&" "===e.key&&D.stop(e,(()=>{D.start(e)})),e.target===e.currentTarget&&J()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&J()&&"Enter"===e.key&&!c&&(e.preventDefault(),g&&g(e))})),q=XF((e=>{f&&" "===e.key&&F&&!e.defaultPrevented&&D.stop(e,(()=>{D.pulsate(e)})),C&&C(e),g&&e.target===e.currentTarget&&J()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let Q=l;"button"===Q&&(T.href||T.to)&&(Q=h);const ee={};"button"===Q?(ee.type=void 0===M?"button":M,ee.disabled=c):(T.href||T.to||(ee.role="button"),c&&(ee["aria-disabled"]=c));const te=$F(t,P),ne={...n,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:N,focusVisible:F},re=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=DD({root:["root",t&&"disabled",n&&"focusVisible"]},fB,o);return n&&r&&(i.root+=` ${r}`),i})(ne);return Bu.jsxs(hB,{as:Q,className:PD(re.root,s),ownerState:ne,onBlur:Y,onClick:g,onContextMenu:V,onFocus:U,onKeyDown:K,onKeyUp:q,onMouseDown:B,onMouseLeave:H,onMouseUp:W,onDragLeave:G,onTouchEnd:$,onTouchMove:Z,onTouchStart:X,ref:te,tabIndex:c?-1:N,type:M,...ee,...T,children:[a,z?Bu.jsx(dB,{ref:j,center:i,...O}):null]})}));function gB(e,t,n,r=!1){return XF((o=>(n&&n(o),r||e[t](o),!0)))}function yB(e){return pF("MuiSvgIcon",e)}"production"!==process.env.NODE_ENV&&(mB.propTypes={action:HF,centerRipple:ty.bool,children:ty.node,classes:ty.object,className:ty.string,component:WF,disabled:ty.bool,disableRipple:ty.bool,disableTouchRipple:ty.bool,focusRipple:ty.bool,focusVisibleClassName:ty.string,href:ty.any,LinkComponent:ty.elementType,onBlur:ty.func,onClick:ty.func,onContextMenu:ty.func,onDragLeave:ty.func,onFocus:ty.func,onFocusVisible:ty.func,onKeyDown:ty.func,onKeyUp:ty.func,onMouseDown:ty.func,onMouseLeave:ty.func,onMouseUp:ty.func,onTouchEnd:ty.func,onTouchMove:ty.func,onTouchStart:ty.func,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object]),tabIndex:ty.number,TouchRippleProps:ty.object,touchRippleRef:ty.oneOfType([ty.func,ty.shape({current:ty.shape({pulsate:ty.func.isRequired,start:ty.func.isRequired,stop:ty.func.isRequired})})]),type:ty.oneOfType([ty.oneOf(["button","reset","submit"]),ty.string])}),hF("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bB=wz("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${LD(n.color)}`],t[`fontSize${LD(n.fontSize)}`]]}})(xz((({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}}]})))),vB=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...p}=n,h=o.isValidElement(r)&&"svg"===r.type,m={...n,color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h},g={};u||(g.viewBox=f);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return DD({root:["root","inherit"!==t&&`color${LD(t)}`,`fontSize${LD(n)}`]},yB,r)})(m);return Bu.jsxs(bB,{as:s,className:PD(y.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...g,...p,...h&&r.props,ownerState:m,children:[h?r.props.children:r,d?Bu.jsx("title",{children:d}):null]})}));"production"!==process.env.NODE_ENV&&(vB.propTypes={children:ty.node,classes:ty.object,className:ty.string,color:ty.oneOfType([ty.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ty.string]),component:ty.elementType,fontSize:ty.oneOfType([ty.oneOf(["inherit","large","medium","small"]),ty.string]),htmlColor:ty.string,inheritViewBox:ty.bool,shapeRendering:ty.string,sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object]),titleAccess:ty.string,viewBox:ty.string}),vB.muiName="SvgIcon";var wB=function(e,t){function n(n,r){return Bu.jsx(vB,{"data-testid":`${t}Icon`,ref:r,...n,children:e})}return"production"!==process.env.NODE_ENV&&(n.displayName=`${t}Icon`),n.muiName=vB.muiName,o.memo(o.forwardRef(n))}(Bu.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function xB(e){return pF("MuiTableSortLabel",e)}const CB=hF("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]);function kB(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}=eL({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),b=$F(y,h?.ref,t.ref),v="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,...v&&!s&&{as:v},...v&&s&&{component:v},ref:b},o);return[p,w]}const EB=wz(mB,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(xz((({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,[`& .${CB.icon}`]:{opacity:.5}},[`&.${CB.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${CB.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})))),SB=wz("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${LD(n.direction)}`]]}})(xz((({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)"}}]})))),IB=o.forwardRef((function(e,t){const n=Cz({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:o,className:i,direction:a="asc",hideSortIcon:s=!1,IconComponent:l=wB,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 DD({root:["root",r&&"active",`direction${LD(n)}`],icon:["icon",`iconDirection${LD(n)}`]},xB,t)})(f),h={slots:c,slotProps:u},[m,g]=kB("root",{elementType:EB,externalForwardedProps:h,ownerState:f,className:PD(p.root,i),ref:t}),[y,b]=kB("icon",{elementType:SB,externalForwardedProps:h,ownerState:f,className:p.icon});return Bu.jsxs(m,{disableRipple:!0,component:"span",...g,...d,children:[o,s&&!r?null:Bu.jsx(y,{as:l,...b})]})}));"production"!==process.env.NODE_ENV&&(IB.propTypes={active:ty.bool,children:ty.node,classes:ty.object,className:ty.string,direction:ty.oneOf(["asc","desc"]),hideSortIcon:ty.bool,IconComponent:ty.elementType,slotProps:ty.shape({icon:ty.oneOfType([ty.func,ty.object]),root:ty.oneOfType([ty.func,ty.object])}),slots:ty.shape({icon:ty.elementType,root:ty.elementType}),sx:ty.oneOfType([ty.arrayOf(ty.oneOfType([ty.func,ty.object,ty.bool])),ty.func,ty.object])});const _B=({tabledata:t})=>{const n=e.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}})(t)),[t]),[r,i]=e.useState("asc"),[a,s]=e.useState("index");let l=n.header.indexOf(a);-1===l&&(l=0);const c=((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]))})(n.rows,(e=>"desc"===e?(e,t)=>t[l]<e[l]?-1:1:(e,t)=>e[l]<t[l]?-1:1)(r));return o.createElement(zz,{className:"tablecontainer"},o.createElement(Iz,{size:"small"},o.createElement(Hz,{className:"tableHead"},o.createElement(Uz,{className:"tableheadercolor"},n.header.map((e=>o.createElement(jz,{key:e,sortDirection:a===e&&r,className:"tableheadercolor"},o.createElement(IB,{active:a===e,direction:a===e?r:"asc",onClick:()=>(e=>{i(a===e&&"asc"===r?"desc":"asc"),s(e)})(e),className:"tableheadercolor",sx:{"& .MuiTableSortLabel-icon":{color:"inherit !important"}}},e)))))),o.createElement(Mz,null,c.map(((e,n)=>o.createElement(Uz,{key:t.index[n]},e.map(((e,t)=>o.createElement(jz,{key:t,className:0==t?"indexcol":"datacol"},e)))))))))};var AB,NB={};
|
|
99
|
+
`,QB=o.forwardRef((function(e,t){const n=sB({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...s}=n,[l,c]=o.useState([]),u=o.useRef(0),d=o.useRef(null);o.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const f=o.useRef(!1),p=jD(),h=o.useRef(null),m=o.useRef(null),g=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;c((e=>[...e,vf.jsx(qB,{classes:{ripple:FO(i.ripple,$B.ripple),rippleVisible:FO(i.rippleVisible,$B.rippleVisible),ripplePulsate:FO(i.ripplePulsate,$B.ripplePulsate),child:FO(i.child,$B.child),childLeaving:FO(i.childLeaving,$B.childLeaving),childPulsate:FO(i.childPulsate,$B.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,d.current=a}),[i]),y=o.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;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)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=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;d=Math.sqrt(e**2+t**2)}e?.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},p.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,g,p]),b=o.useCallback((()=>{y({},{pulsate:!0})}),[y]),v=o.useCallback(((e,t)=>{if(p.clear(),"touchend"===e?.type&&h.current)return h.current(),h.current=null,void p.start(0,(()=>{v(e,t)}));h.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[p]);return o.useImperativeHandle(t,(()=>({pulsate:b,start:y,stop:v})),[b,y,v]),vf.jsx(KB,{className:FO($B.root,i.root,a),ref:m,...s,children:vf.jsx(XB,{component:null,exit:!0,children:l})})}));function eL(e){return qP("MuiButtonBase",e)}"production"!==P.env.NODE_ENV&&(QB.propTypes={center:Mb.bool,classes:Mb.object,className:Mb.string});const tL=QP("MuiButtonBase",["root","disabled","focusVisible"]),nL=iB("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"},[`&.${tL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rL=o.forwardRef((function(e,t){const n=sB({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:h="a",onBlur:m,onClick:g,onContextMenu:y,onDragLeave:b,onFocus:v,onFocusVisible:w,onKeyDown:x,onKeyUp:E,onMouseDown:C,onMouseLeave:k,onMouseUp:S,onTouchEnd:_,onTouchMove:I,onTouchStart:A,tabIndex:N=0,TouchRippleProps:R,touchRippleRef:O,type:T,...M}=n,P=o.useRef(null),D=DB.use(),j=OD(D.ref,O),[B,L]=o.useState(!1);c&&B&&L(!1),o.useImperativeHandle(r,(()=>({focusVisible:()=>{L(!0),P.current.focus()}})),[]);const F=D.shouldMount&&!u&&!c;o.useEffect((()=>{B&&f&&!u&&D.pulsate()}),[u,f,B,D]);const z=oL(D,"start",C,d),V=oL(D,"stop",y,d),G=oL(D,"stop",b,d),W=oL(D,"stop",S,d),H=oL(D,"stop",(e=>{B&&e.preventDefault(),k&&k(e)}),d),X=oL(D,"start",A,d),Y=oL(D,"stop",_,d),$=oL(D,"stop",I,d),Z=oL(D,"stop",(e=>{BD(e.target)||L(!1),m&&m(e)}),!1),U=RD((e=>{P.current||(P.current=e.currentTarget),BD(e.target)&&(L(!0),w&&w(e)),v&&v(e)})),J=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},K=RD((e=>{f&&!e.repeat&&B&&" "===e.key&&D.stop(e,(()=>{D.start(e)})),e.target===e.currentTarget&&J()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&J()&&"Enter"===e.key&&!c&&(e.preventDefault(),g&&g(e))})),q=RD((e=>{f&&" "===e.key&&B&&!e.defaultPrevented&&D.stop(e,(()=>{D.pulsate(e)})),E&&E(e),g&&e.target===e.currentTarget&&J()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let Q=l;"button"===Q&&(M.href||M.to)&&(Q=h);const ee={};"button"===Q?(ee.type=void 0===T?"button":T,ee.disabled=c):(M.href||M.to||(ee.role="button"),c&&(ee["aria-disabled"]=c));const te=OD(t,P),ne={...n,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:N,focusVisible:B},re=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=zO({root:["root",t&&"disabled",n&&"focusVisible"]},eL,o);return n&&r&&(i.root+=` ${r}`),i})(ne);return vf.jsxs(nL,{as:Q,className:FO(re.root,s),ownerState:ne,onBlur:Z,onClick:g,onContextMenu:V,onFocus:U,onKeyDown:K,onKeyUp:q,onMouseDown:z,onMouseLeave:H,onMouseUp:W,onDragLeave:G,onTouchEnd:Y,onTouchMove:$,onTouchStart:X,ref:te,tabIndex:c?-1:N,type:T,...ee,...M,children:[a,F?vf.jsx(QB,{ref:j,center:i,...R}):null]})}));function oL(e,t,n,r=!1){return RD((o=>(n&&n(o),r||e[t](o),!0)))}function iL(e){return qP("MuiSvgIcon",e)}"production"!==P.env.NODE_ENV&&(rL.propTypes={action:ND,centerRipple:Mb.bool,children:Mb.node,classes:Mb.object,className:Mb.string,component:AD,disabled:Mb.bool,disableRipple:Mb.bool,disableTouchRipple:Mb.bool,focusRipple:Mb.bool,focusVisibleClassName:Mb.string,href:Mb.any,LinkComponent:Mb.elementType,onBlur:Mb.func,onClick:Mb.func,onContextMenu:Mb.func,onDragLeave:Mb.func,onFocus:Mb.func,onFocusVisible:Mb.func,onKeyDown:Mb.func,onKeyUp:Mb.func,onMouseDown:Mb.func,onMouseLeave:Mb.func,onMouseUp:Mb.func,onTouchEnd:Mb.func,onTouchMove:Mb.func,onTouchStart:Mb.func,sx:Mb.oneOfType([Mb.arrayOf(Mb.oneOfType([Mb.func,Mb.object,Mb.bool])),Mb.func,Mb.object]),tabIndex:Mb.number,TouchRippleProps:Mb.object,touchRippleRef:Mb.oneOfType([Mb.func,Mb.shape({current:Mb.shape({pulsate:Mb.func.isRequired,start:Mb.func.isRequired,stop:Mb.func.isRequired})})]),type:Mb.oneOfType([Mb.oneOf(["button","reset","submit"]),Mb.string])}),QP("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const aL=iB("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${WO(n.color)}`],t[`fontSize${WO(n.fontSize)}`]]}})(aB((({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}}]})))),sL=o.forwardRef((function(e,t){const n=sB({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...p}=n,h=o.isValidElement(r)&&"svg"===r.type,m={...n,color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h},g={};u||(g.viewBox=f);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return zO({root:["root","inherit"!==t&&`color${WO(t)}`,`fontSize${WO(n)}`]},iL,r)})(m);return vf.jsxs(aL,{as:s,className:FO(y.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...g,...p,...h&&r.props,ownerState:m,children:[h?r.props.children:r,d?vf.jsx("title",{children:d}):null]})}));"production"!==P.env.NODE_ENV&&(sL.propTypes={children:Mb.node,classes:Mb.object,className:Mb.string,color:Mb.oneOfType([Mb.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Mb.string]),component:Mb.elementType,fontSize:Mb.oneOfType([Mb.oneOf(["inherit","large","medium","small"]),Mb.string]),htmlColor:Mb.string,inheritViewBox:Mb.bool,shapeRendering:Mb.string,sx:Mb.oneOfType([Mb.arrayOf(Mb.oneOfType([Mb.func,Mb.object,Mb.bool])),Mb.func,Mb.object]),titleAccess:Mb.string,viewBox:Mb.string}),sL.muiName="SvgIcon";var lL=function(e,t){function n(n,r){return vf.jsx(sL,{"data-testid":`${t}Icon`,ref:r,...n,children:e})}return"production"!==P.env.NODE_ENV&&(n.displayName=`${t}Icon`),n.muiName=sL.muiName,o.memo(o.forwardRef(n))}(vf.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function cL(e){return qP("MuiTableSortLabel",e)}const uL=QP("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]);function dL(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}=FD({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),b=OD(y,h?.ref,t.ref),v="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,...v&&!s&&{as:v},...v&&s&&{component:v},ref:b},o);return[p,w]}const fL=iB(rL,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(aB((({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,[`& .${uL.icon}`]:{opacity:.5}},[`&.${uL.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${uL.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})))),pL=iB("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${WO(n.direction)}`]]}})(aB((({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)"}}]})))),hL=o.forwardRef((function(e,t){const n=sB({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:o,className:i,direction:a="asc",hideSortIcon:s=!1,IconComponent:l=lL,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 zO({root:["root",r&&"active",`direction${WO(n)}`],icon:["icon",`iconDirection${WO(n)}`]},cL,t)})(f),h={slots:c,slotProps:u},[m,g]=dL("root",{elementType:fL,externalForwardedProps:h,ownerState:f,className:FO(p.root,i),ref:t}),[y,b]=dL("icon",{elementType:pL,externalForwardedProps:h,ownerState:f,className:p.icon});return vf.jsxs(m,{disableRipple:!0,component:"span",...g,...d,children:[o,s&&!r?null:vf.jsx(y,{as:l,...b})]})}));"production"!==P.env.NODE_ENV&&(hL.propTypes={active:Mb.bool,children:Mb.node,classes:Mb.object,className:Mb.string,direction:Mb.oneOf(["asc","desc"]),hideSortIcon:Mb.bool,IconComponent:Mb.elementType,slotProps:Mb.shape({icon:Mb.oneOfType([Mb.func,Mb.object]),root:Mb.oneOfType([Mb.func,Mb.object])}),slots:Mb.shape({icon:Mb.elementType,root:Mb.elementType}),sx:Mb.oneOfType([Mb.arrayOf(Mb.oneOfType([Mb.func,Mb.object,Mb.bool])),Mb.func,Mb.object])});const mL=({tabledata:t})=>{const n=e.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}})(t)),[t]),[r,i]=e.useState("asc"),[a,s]=e.useState("index");let l=n.header.indexOf(a);-1===l&&(l=0);const c=((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]))})(n.rows,(e=>"desc"===e?(e,t)=>t[l]<e[l]?-1:1:(e,t)=>e[l]<t[l]?-1:1)(r));return o.createElement(kB,{className:"tablecontainer"},o.createElement(dB,{size:"small"},o.createElement(NB,{className:"tableHead"},o.createElement(PB,{className:"tableheadercolor"},n.header.map((e=>o.createElement(xB,{key:e,sortDirection:a===e&&r,className:"tableheadercolor"},o.createElement(hL,{active:a===e,direction:a===e?r:"asc",onClick:()=>(e=>{i(a===e&&"asc"===r?"desc":"asc"),s(e)})(e),className:"tableheadercolor",sx:{"& .MuiTableSortLabel-icon":{color:"inherit !important"}}},e)))))),o.createElement(yB,null,c.map(((e,n)=>o.createElement(PB,{key:t.index[n]},e.map(((e,t)=>o.createElement(xB,{key:t,className:0==t?"indexcol":"datacol"},e)))))))))};var gL,yL={};
|
|
152
100
|
/*!
|
|
153
101
|
* content-type
|
|
154
102
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
155
103
|
* MIT Licensed
|
|
156
|
-
*/var OB=function(){if(AB)return NB;AB=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 NB.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},NB.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},NB}(),RB=new Map,MB=function(e){return e.cloneNode(!0)},TB=function(){return"file:"===window.location.protocol},PB=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=OB.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(TB()?"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||TB()&&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()},DB={},jB=function(e,t){DB[e]=DB[e]||[],DB[e].push(t)},FB=function(e,t,n){if(RB.has(e)){var r=RB.get(e);if(void 0===r)return void jB(e,n);if(r instanceof SVGSVGElement)return void n(null,MB(r))}RB.set(e,void 0),jB(e,n),PB(e,t,(function(t,n){var r;t?RB.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&RB.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(DB[e])){var n=RB.get(e),r=DB[e][t];n instanceof SVGSVGElement&&r(null,MB(n)),n instanceof Error&&r(n),t===DB[e].length-1&&delete DB[e]}}),0)},n=0,r=DB[e].length;n<r;n++)t(n)}(e)}))},LB=function(e,t,n){PB(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)}))},zB=0,BB=[],VB={},GB="http://www.w3.org/1999/xlink",WB=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==BB.indexOf(e))return BB.splice(BB.indexOf(e),1),void(e=null);BB.push(e),e.setAttribute("src",""),(r?FB:LB)(s,o,(function(r,o){if(!o)return BB.splice(BB.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(Ad(Ad(Ad([],(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,b,v,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;b=g[e].id,v=b+"-"+ ++zB,Array.prototype.forEach.call(y,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+b+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+b+'"?\\)'))||n[t].setAttribute(e,"url(#"+v+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(GB,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(GB,"href","#"+v);g[e].id=v},n=0,r=(g=o.querySelectorAll(m+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var x,C,k=o.querySelectorAll("script"),E=[],S=0,I=k.length;S<I;S++)(C=k[S].getAttribute("type"))&&"application/ecmascript"!==C&&"application/javascript"!==C&&"text/javascript"!==C||((x=k[S].innerText||k[S].textContent)&&E.push(x),o.removeChild(k[S]));if(E.length>0&&("always"===t||"once"===t&&!VB[s])){for(var _=0,A=E.length;_<A;_++)new Function(E[_])(window);VB[s]=!0}var N=o.querySelectorAll("style");if(Array.prototype.forEach.call(N,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",GB),i(o),!e.parentNode)return BB.splice(BB.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),BB.splice(BB.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},HB=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],XB="http://www.w3.org/2000/svg",$B="http://www.w3.org/1999/xlink",ZB=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}Kz(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(XB,h)).setAttribute("xmlns",XB),t.setAttribute("xmlns:xlink",$B),n=document.createElementNS(XB,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,b=0,v=e.length;b<v;b++)WB(e[b],f,g,u,h,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?WB(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})(bR({},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,i=mR(e,HB),a=r;return o.createElement(a,bR({},i,{ref:this.refCallback},"svg"===r?{xmlns:XB,xmlnsXlink:$B}:{}),this.state.isLoading&&n&&o.createElement(n,null),this.state.hasError&&t&&o.createElement(t,null))},t}(o.Component);ZB.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},ZB.propTypes={afterInjection:ey.func,beforeInjection:ey.func,desc:ey.string,evalScripts:ey.oneOf(["always","once","never"]),fallback:ey.oneOfType([ey.func,ey.object,ey.string]),httpRequestWithCredentials:ey.bool,loading:ey.oneOfType([ey.func,ey.object,ey.string]),onError:ey.func,renumerateIRIElements:ey.bool,src:ey.string.isRequired,title:ey.string,useRequestCache:ey.bool,wrapper:ey.oneOf(["div","span","svg"])};const YB=({value:e,renderoptions:t})=>(void 0===t&&(t={}),void 0===t.format&&(t.format="jpeg"),o.createElement("img",{src:"data:image/"+t.format+";base64, "+e,style:{maxWidth:"100%",maxHeight:"100%"}})),UB=({value:e})=>o.createElement(ZB,{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%")}}),JB=({io:e})=>{let t=e.fullvalue;if(null==t&&(t=e.value),void 0===t&&(t=""),"string"!=typeof t||t.length%4!=0)return o.createElement("div",null,t);const n=Math.round(3*t.length/4);return o.createElement("div",null,o.createElement("pre",null,"Bytes(",n,")"))},KB=({io:e})=>{let t=e.fullvalue;return void 0===t&&(t=e.value),void 0===t&&(t={}),o.createElement(MD,{data:t})},qB={float:({io:e,inputconverter:t})=>lD({io:e,inputconverter:t,parser:parseFloat}),int:({io:e,inputconverter:t})=>lD({io:e,inputconverter:t,parser:parseInt}),bool:({io:t,inputconverter:n})=>{const r=e.useContext(zV),i=void 0===t.value,a=e.useRef(null);e.useEffect((()=>{a.current&&(a.current.indeterminate=i)}),[a,i]);return o.createElement("input",{ref:a,type:"checkbox",className:"styledcheckbox booleaninput",checked:!!n[1](t.value),onChange:e=>{let o=e.target.checked;try{o=n[0](e.target.checked)}catch(e){}r.worker?.set_io_value({nid:t.node,ioid:t.id,value:o,set_default:t.render_options.set_default})},disabled:t.connected})},string:cD,str:cD,color:({io:t})=>{const n=e.useContext(zV),r=t.value_options?.colorspace||"hex";let i=!1;return"string"!=typeof t.type&&"anyOf"in t.type&&void 0!==t.type.anyOf&&(i=t.type.anyOf.some((e=>"None"===e))),o.createElement(QN,{onChange:e=>{let o="<NoValue>";e&&(o=e[r]?e[r]():e.hex()),null===e&&(o=null),n.worker?.set_io_value({nid:t.node,ioid:t.id,value:o,set_default:t.render_options.set_default})},inicolordata:t.value,allow_null:i,inicolorspace:r})},select:hD,enum:hD,bytes:JB},QB={Inputrenderer:qB,Outputrenderer:{},HandlePreviewRenderer:{bytes:JB},DataOverlayRenderer:{},DataPreviewViewRenderer:{string:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),t=void 0===t?"":JSON.stringify(e.value).replace(/\\n/g,"\n"),o.createElement("div",null,o.createElement("pre",null,t))},table:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),void 0===t&&(t=[]),o.createElement(_B,{tabledata:t})},image:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),void 0===t&&(t=""),o.createElement(YB,{value:t})},svg:({io:e})=>{let t=e.fullvalue;return null==t&&(t=e.value),void 0===t&&(t=""),o.createElement(UB,{value:t})},dict:KB,bytes:JB},DataViewRenderer:{},InLineRenderer:{bytes:({io:e})=>{let t=e.fullvalue;null==t&&(t=e.value),t=void 0===t?"":JSON.stringify(e.value).replace(/\\n/g,"\n");return`Bytes(${Math.round(3*t.length/4)})`}}},eV=(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_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]];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}},tV=({children:t,plugins:n,fnrf_zst:r})=>{const[i,a]=e.useReducer(eV,QB),s=(e,t)=>{a({type:"EXTEND_FROM_PLUGIN",payload:{plugin:e},options:t})};return e.useEffect((()=>{for(const e in n){const t=n[e].RendererPlugin;t&&s(t);const i=n[e].renderpluginfactory;i&&s(i({React:o,fnrf_zst:r}))}}),[n]),o.createElement(nV.Provider,{value:{Inputrenderer:i.Inputrenderer,Outputrenderer:i.Outputrenderer,HandlePreviewRenderer:i.HandlePreviewRenderer,DataOverlayRenderer:i.DataOverlayRenderer,DataPreviewViewRenderer:i.DataPreviewViewRenderer,DataViewRenderer:i.DataViewRenderer,InLineRenderer:i.InLineRenderer,extendInputRenderMapping:(e,t,n)=>{a({type:"EXTEND_INPUT_RENDER",payload:{type:e,component:t},options:n})},extendOutputRenderMapping:(e,t,n)=>{a({type:"EXTEND_OUTPUT_RENDER",payload:{type:e,component:t},options:n})},extendHandlePreviewRenderMapping:(e,t,n)=>{a({type:"EXTEND_HANDLE_PREVIEW_RENDER",payload:{type:e,component:t},options:n})},extendDataOverlayRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_OVERLAY_RENDER",payload:{type:e,component:t},options:n})},extendDataPreviewRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_PREVIEW_RENDER",payload:{type:e,component:t},options:n})},extendDataViewRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_VIEW_RENDER",payload:{type:e,component:t},options:n})},extendFromPlugin:s}},t)},nV=e.createContext({Inputrenderer:QB.Inputrenderer,Outputrenderer:QB.Outputrenderer,HandlePreviewRenderer:QB.HandlePreviewRenderer,DataOverlayRenderer:QB.DataOverlayRenderer,DataPreviewViewRenderer:QB.DataPreviewViewRenderer,DataViewRenderer:QB.DataViewRenderer,InLineRenderer:QB.InLineRenderer,extendInputRenderMapping:(e,t,n)=>{},extendOutputRenderMapping:(e,t,n)=>{},extendHandlePreviewRenderMapping:(e,t,n)=>{},extendDataOverlayRenderMapping:(e,t,n)=>{},extendDataPreviewRenderMapping:(e,t,n)=>{},extendDataViewRenderMapping:(e,t,n)=>{},extendFromPlugin:(e,t)=>{}}),rV=({component:e,...t})=>o.createElement(e,{...t}),oV=t=>{const n=e.useContext(zV),{DataOverlayRenderer:r,DataPreviewViewRenderer:o}=e.useContext(nV);if(void 0===t)return;const i=n.render_options(),[a]=iV(t.type,i.typemap||{});return a?r[a]?r[a]:o[a]?o[a]:KB:KB},iV=(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=>iV(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]},aV=({io:t,typestring:n,preview:r,...i})=>{const[a,s]=e.useState(!1),[l,c]=e.useState(!1),u=o.useContext(zV),[d,f]=(t=>{const n=e.useContext(zV).render_options(),{HandlePreviewRenderer:r,DataPreviewViewRenderer:o}=e.useContext(nV),i=oV(t);let a;if(t){const[e]=iV(t.type,n.typemap||{});a=e?r[e]?r[e]:o[e]?o[e]:KB:KB}return[a,i]})(t),p=u.local_state((()=>u.reactflowRef));return o.createElement(GN,{open:a||l,onOpenChange:c},o.createElement(WN,{asChild:!0},o.createElement(ci,{id:t.id,"data-type":n,...i})),o.createElement(HN,{container:p},o.createElement(XN,{className:"iotooltipcontent",sideOffset:5},o.createElement("div",{className:"iotooltip_container"},o.createElement("div",{className:"iotooltip_header"},a?o.createElement(Xy,{onClick:()=>s(!1)}):o.createElement(Hy,{onClick:()=>s(!0)}),f&&o.createElement(Uy,{title:t.full_id,trigger:o.createElement(jy,null),onOpenChange:e=>{e&&t.try_get_full_value&&t.try_get_full_value(),s(e)}},o.createElement(rV,{component:f,io:t}))),d?o.createElement(rV,{component:d,io:t}):`no preview available for "${n}"`),o.createElement($N,{className:"iotooltipcontentarrow"}))))},sV={"":[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)]},lV=({io:t})=>{const n=e.useContext(zV).render_options(),[r,i]=iV(t.render_options.type,n.typemap||{}),{Inputrenderer:a}=e.useContext(nV),s=r?t.value_options?.options?hD:a[r]:void 0,l=sV[(i&&n.inputconverter?.[i])??""];return o.createElement("div",{className:"nodeinput","data-type":r},o.createElement(aV,{io:t,typestring:r,position:So.Left,type:"target"}),s&&o.createElement("div",{className:"iovaluefield nodrag","data-type":r},o.createElement(s,{io:t,inputconverter:l})),o.createElement("div",{className:"ioname"},t.name),o.createElement(aV,{io:t,typestring:r,position:So.Right,type:"source"}))},cV=({io:t,typestring:n})=>{const{InLineRenderer:r}=e.useContext(nV);if(n&&r[n])return o.createElement("div",null,r[n]({io:t}));let i=t.fullvalue;return null==i&&(i=t.value),i=void 0===i?"":JSON.stringify(i).replace(/\\n/g,"\n"),i.length>63&&(i=i.slice(0,60)+"..."),o.createElement("div",null,i)},uV=({io:t})=>{const n=e.useContext(zV).render_options(),[r]=iV(t.type,n.typemap||{}),{Outputrenderer:i}=e.useContext(nV),a=r?i[r]:void 0;return o.createElement("div",{className:"nodeoutput","data-type":r},o.createElement(aV,{io:t,typestring:r,position:So.Right,type:"source"}),o.createElement("div",{className:"ioname"},t.name),a?o.createElement("div",{className:"iovaluefield nodrag"},o.createElement(a,{io:t})):o.createElement("div",{className:"iovaluefield"},o.createElement(cV,{io:t,typestring:r})))};function dV(e){return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,"0")}`}function fV(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 pV=({state:t,className:n="reacttqdm",...r})=>{const i=e.useRef(null),a=e.useRef(null);e.useEffect((()=>{const e=()=>{i.current&&a.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()}(i.current,a.current,{maxFontSize:12,decrementFactor:.9})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]);const s=t.total?t.n/t.total*100:0;return o.createElement("div",{ref:i,className:n,...r},o.createElement("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},o.createElement("div",{className:n+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"}},o.createElement("div",{className:n+"-progress",style:{width:`${s}%`,height:"100%"}})),o.createElement("div",{className:n+"-text",ref:a},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=dV(o);void 0===p&&o>0&&(p=(d-u)/o);const m=p?1/p:void 0,[g,y]=p?fV(p,a):[void 0,""],[b,v]=m?fV(m,1e3):[void 0,""],w=m&&m>1?b?`${b}${v}s/`+i:"?":(g||"?")+`${y}${i}/s`,x=r?fV(d,a).join(""):d.toString(),C=r&&null!==f?fV(f,a).join(""):f?.toString()??"?",k=p?dV(p&&null!==f?(f-d)/p:0):"?",E=s?`${s}: `:"";if(null!==t){const e=` ${x}/${C} [${h} < ${k}, ${w}${c??""}]`;return`${E}${(d/t*100).toFixed(0)}%${e}`}return`${E}${x}${i} [${h}, ${w}${c??""}]`}(t))))},hV=({node_data:t})=>{const n=e.useContext(zV);return o.createElement("div",{className:"nodeheader",title:t.description||t.node_name},o.createElement("div",{className:"nodeheader_element"},o.createElement(Zy,{fontSize:"inherit",className:"triggerbutton",onClick:()=>{n.on_node_action({type:"trigger",from_remote:!1,id:t.id})}}),o.createElement($y,{fontSize:"inherit",onClick:async()=>{n.logger.info("nodestatus",await(n.worker?.get_node_status(t.id)))}})),o.createElement("div",{className:"nodeheader_element nodeheader_title"},o.createElement("div",{className:"nodeheader_title_text"},t.node_name)),o.createElement("div",{className:"nodeheader_element"},o.createElement(Gy,{fontSize:"inherit"})))},mV=({node_data:t})=>{const n=t.render_options?.data?.src?t.io[t.render_options?.data?.src]:void 0,[r,i]=(t=>{const n=e.useContext(zV),r=oV(t),{DataPreviewViewRenderer:o,DataViewRenderer:i}=e.useContext(nV),a=n.render_options();if(void 0===t)return[void 0,r];const[s]=iV(t.type,a.typemap||{});return s?i[s]?[i[s],r]:o[s]?[o[s],r]:[KB,r]:[KB,r]})(n);return o.createElement("div",{className:"nodrag nodedatabody","data-src":t.render_options?.data?.src||""},r&&n&&o.createElement(Uy,{title:n.full_id,trigger:o.createElement("div",{className:"nodedatabutton"},o.createElement(rV,{component:r,io:n})),onOpenChange:e=>{e&&n?.try_get_full_value&&n?.try_get_full_value()}},i&&o.createElement(rV,{component:i,io:n})))},gV=({node_data:e})=>{const t=Object.values(e.io).filter((e=>e.is_input)),n=Object.values(e.io).filter((e=>!e.is_input));return e.render_options,o.createElement("div",{className:"nodebody"},n.map((e=>e.hidden?null:o.createElement(uV,{key:e.id,io:e}))),o.createElement(mV,{node_data:e}),t.map((e=>e.hidden?null:o.createElement(lV,{key:e.id,io:e}))))},yV=({node_data:t})=>{const[n,r]=e.useState(t.name);e.useEffect((()=>{r(t.name)}),[t]);const i=e.useContext(zV);return o.createElement("input",{className:"nodename_input",value:n,onChange:e=>{r(e.target.value)},onBlur:e=>{const n=e.target.value;i.on_node_action({type:"update",from_remote:!1,id:t.id,node:{name:n}})}})},bV=({node_data:e})=>e.progress?o.createElement(pV,{style:{height:"idle"===e.progress.prefix?"0px":void 0},state:e.progress,className:"nodeprogress"}):null,vV=({node_data:e})=>o.createElement("div",{className:"nodefooter"},e.error&&o.createElement("div",{className:"nodeerror"},e.error),o.createElement(bV,{node_data:e})),wV=({io:e})=>{const t=o.useContext(zV).render_options(),[n,r]=iV(e.render_options.type,t.typemap||{}),{Inputrenderer:i}=o.useContext(nV),a=n?e.value_options?.options?hD:i[n]:void 0,s=sV[(r&&t.inputconverter?.[r])??""];return o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,e.name),a&&o.createElement(a,{io:e,inputconverter:s}),o.createElement("div",null,o.createElement("label",null,"hidden:",o.createElement("input",{className:"styledcheckbox",type:"checkbox",disabled:e.connected,onChange:t=>{e.set_hidden?.(t.target.checked)},checked:e.hidden}))))},xV=({io:e})=>o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,e.name),o.createElement("div",null,o.createElement("label",null,"hidden:",o.createElement("input",{className:"styledcheckbox",type:"checkbox",disabled:e.connected,onChange:t=>{e.set_hidden?.(t.target.checked)},checked:e.hidden})))),CV=({nodestore:e})=>{const t=e(),n=Object.values(t.io).filter((e=>e.is_input)),r=Object.values(t.io).filter((e=>!e.is_input));return o.createElement("div",{className:"nodesettings_content"},o.createElement("div",{className:"nodesettings_section"},o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,"Name"),o.createElement("div",null,o.createElement(yV,{node_data:t})))),o.createElement("div",{className:"nodesettings_section"},o.createElement("div",null,"Inputs"),n.map((e=>o.createElement(wV,{io:e,key:e.id})))),o.createElement("div",{className:"nodesettings_section"},o.createElement("div",null,"Outputs"),r.map((e=>o.createElement(xV,{io:e,key:e.id})))))},kV=()=>{const e=o.useContext(zV),t=e.local_state((e=>e.selected_nodes));if(0===t.length)return o.createElement("div",null,"Node Settings");if(t.length>1)return o.createElement("div",null,"Multiple Nodes Selected");const n=e.nodespace.get_node(t[0]);return n?o.createElement(CV,{nodestore:n}):o.createElement("div",null,"Node not found")},EV=()=>{const e=o.useContext(zV),t=e.local_settings((e=>e.view_settings.expand_node_props)),n=e.local_settings((e=>e.update_view_settings));return o.createElement(bC,{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})}},o.createElement(kV,null))},SV=e=>({nodes:e.nodes,edges:e.edges,onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange,onConnect:e.onConnect}),IV={default:({data:t})=>{const n=t.UseNodeStore(),r=n.properties["frontend:collapsed"]||!1,{visualTrigger:i}=(t=>{const n=e.useContext(zV),[r,o]=e.useState(!1);return e.useEffect((()=>{n.worker?.call_hooks("node_mounted",t.id)}),[n.worker,t.id]),e.useEffect((()=>{let e;return t.in_trigger&&!r?o(!0):r&&(e=setTimeout((()=>o(!1)),200)),()=>clearTimeout(e)}),[t.in_trigger,r]),{visualTrigger:r}})(n);return o.createElement(o.Fragment,null,o.createElement("div",{className:"innernode"+(i?" intrigger":"")+(n.error?" error":"")},o.createElement(hV,{node_data:n}),o.createElement(yV,{node_data:n}),r?null:o.createElement(gV,{node_data:n}),o.createElement(vV,{node_data:n})))}},_V={default:({id:e,sourceX:t,sourceY:n,targetX:r,targetY:i,sourcePosition:a,targetPosition:s,data:l,...c})=>{const[u]=Lo({sourceX:t,sourceY:n,sourcePosition:a,targetX:r,targetY:i,targetPosition:s});return o.createElement(o.Fragment,null,o.createElement(go,{id:e,path:u,...c}))}},AV=()=>{const t=Zi();return e.useContext(zV).rf_instance=t,o.createElement(o.Fragment,null)},NV=()=>{const t=e.useContext(zV),n=Pi("Delete"),r=Hr(Cs,Z),i=Hr(xs,Z);if(n){for(const e of r)if(e.selected){if(!t.worker)return o.createElement(o.Fragment,null);if(!e.source||!e.target)return o.createElement(o.Fragment,null);if(!e.sourceHandle||!e.targetHandle)return o.createElement(o.Fragment,null);t.worker.remove_edge({src_nid:e.source,src_ioid:e.sourceHandle,trg_nid:e.target,trg_ioid:e.targetHandle})}for(const e of i)if(e.selected){if(!t.worker)return o.createElement(o.Fragment,null);t.worker.remove_node(e.id)}}return o.createElement(o.Fragment,null)},OV=({id:t,top:n,left:r,right:i,bottom:a,...s})=>{const{getNode:l,setNodes:c,addNodes:u,setEdges:d}=Zi(),f=e.useContext(zV),p=e.useCallback((()=>{const e=l(t);if(!e)return;const n={x:e.position.x+50,y:e.position.y+50};u({...e,id:`${e.id}-copy`,position:n})}),[t,l,u]),h=e.useCallback((()=>{f.on_node_action({type:"delete",id:t,from_remote:!1})}),[t,c,d]),m=f.nodespace.get_node(t,!1);if(!m)return o.createElement(o.Fragment,null," ");const g=m();return o.createElement("div",{style:{top:n,left:r,right:i,bottom:a},className:"context-menu",...s},o.createElement("p",{style:{fontWeight:"bold"}},o.createElement("small",null,g.name)),o.createElement("button",{onClick:p},"duplicate"),o.createElement("button",{onClick:h},"delete"))},RV=t=>{const n=e.useContext(zV),r=e.useRef(null);e.useEffect((()=>{n.reactflowRef=r.current}),[r]);const[i,a]=e.useState(null),s=e.useCallback((()=>a(null)),[a]),{nodes:l,edges:c,onNodesChange:u,onEdgesChange:d,onConnect:f}=n.useReactFlowStore(dN(SV));return o.createElement("div",{className:"reactflowlayer"},o.createElement(ws,{nodes:l,edges:c,onNodesChange:u,onEdgesChange:d,onConnect:f,nodeTypes:IV,edgeTypes:_V,minZoom:t.minZoom,maxZoom:t.maxZoom,fitView:!0,onSelectionChange:({nodes:e,edges:t})=>{const r=n.local_state.getState();n.local_state.setState({...r,selected_nodes:e.map((e=>e.id)),selected_edges:t.map((e=>e.id))})},ref:r,onPaneClick:s,panOnDrag:!t.static},o.createElement(AV,null),o.createElement(NV,null),o.createElement(zs,{color:"#888",gap:16,size:1}),t.minimap&&o.createElement(Ms,{nodeStrokeWidth:3,pannable:!t.static,zoomable:!t.static,zoomStep:3}),i&&o.createElement(OV,{onClick:s,...i})))},MV=e.createContext(void 0),TV=e.forwardRef(((t,n)=>{const{asChild:r,children:a,className:s,style:l,...c}=t,[u,d]=e.useState(!1),f=e.useRef(null),[p,h]=e.useState(null),[m,g]=e.useState({}),y=t.htime||300,b=t.vtime||300,v=t.hdelay||0,w=t.vdelay||200;e.useImperativeHandle(n,(()=>f.current),[]);let x;if(r&&o.isValidElement(a)){const e=a,t=[e.props.className,s,"smooth-expand",u?"smooth-expand-expanded":""].filter(Boolean).join(" "),n={...e.props.style,...l,...m};x=o.cloneElement(e,{ref:f,className:t,style:n,...c})}else x=o.createElement("div",{ref:f,...c,className:`smooth-expand ${u?"smooth-expand-expanded":""} ${s||""}`,style:{...l,...m}},a);const C=o.createElement(MV.Provider,{value:{isExpanded:u,toggleExpand:async()=>{f.current&&(u?await(async()=>{if(!f.current)return;if(!p)return;const e={transitionProperty:"width, left, height, top",transitionDuration:`${y}ms, ${y}ms, ${b}ms, ${b}ms`};g((t=>({...t,...e})));const[t,n,r,o]=p,i=new Promise((e=>{setTimeout((()=>{g((e=>({...e,left:`${t}px`,width:`${r}px`}))),e()}),w)})),a=new Promise((e=>{setTimeout((()=>{g((e=>({...e,top:`${n}px`,height:`${o}px`}))),e()}),v)})),s=Math.max(y+v,b+w),l=new Promise((e=>{setTimeout((()=>{e()}),s)}));await Promise.all([i,a,l]),f.current.style.transition="",g({}),d(!1)})():await(async()=>{if(!f.current)return;f.current.style.transition="none",f.current.style.position="",f.current.style.top="",f.current.style.left="",f.current.style.width="",f.current.style.height="";const e=f.current.getBoundingClientRect();h([e.left,e.top,e.width,e.height]),f.current.style.transition="none",g({position:"absolute",top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`}),g((e=>({...e,transitionProperty:"width, left, height, top",transitionDuration:`${y}ms, ${y}ms, ${b}ms, ${b}ms`}))),d(!0);const t=new Promise((e=>{setTimeout((()=>{g((e=>({...e,left:"0px",width:"100vw"}))),e()}),v)})),n=new Promise((e=>{setTimeout((()=>{g((e=>({...e,top:"0px",height:"100vh"}))),e()}),w)})),r=Math.max(y+v,b+w),o=new Promise((e=>{setTimeout((()=>{e()}),r)}));await Promise.all([t,n,o])})())}}},x);return u?i.createPortal(C,document.body):C}));TV.Trigger=function({children:t}){const n=e.useContext(MV);if(!n)throw new Error("SmoothExpandComponent.Trigger must be used within a SmoothExpandComponent");return o.createElement("div",{style:{cursor:"pointer"},onClick:n.toggleExpand},t)},TV.Expanded=function({children:t}){const n=e.useContext(MV);if(!n)throw new Error("SmoothExpandComponent.Expanded must be used within a SmoothExpandComponent");return n.isExpanded?o.createElement(o.Fragment,null,t):null},TV.Collapsed=function({children:t}){const n=e.useContext(MV);if(!n)throw new Error("SmoothExpandComponent.Collapsed must be used within a SmoothExpandComponent");return n.isExpanded?null:o.createElement(o.Fragment,null,t)};const PV=o.createContext(void 0),DV=e.forwardRef(((t,n)=>{const{asChild:r,children:i,className:a,style:s,...l}=t,c=e.useRef(null);e.useImperativeHandle(n,(()=>c.current),[]);const[u,d]=e.useState(!1),f=e.useCallback((async()=>{try{const e=c.current;if(!e)return;if(u){const e=document;e.exitFullscreen?await e.exitFullscreen():e.mozCancelFullScreen?await e.mozCancelFullScreen():e.webkitExitFullscreen?await e.webkitExitFullscreen():e.msExitFullscreen&&await e.msExitFullscreen(),d(!1)}else e.requestFullscreen?await e.requestFullscreen():e.mozRequestFullScreen?await e.mozRequestFullScreen():e.webkitRequestFullscreen?await e.webkitRequestFullscreen():e.msRequestFullscreen&&await e.msRequestFullscreen(),d(!0)}catch(e){console.error("Error toggling fullscreen",e)}}),[u]);let p;if(e.useEffect((()=>{const e=()=>{const e=document.fullscreenElement;d(!!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)}}),[]),r&&o.isValidElement(i)){const e=i,t=[e.props.className,a].filter(Boolean).join(" "),n={...e.props.style,...s};p=o.cloneElement(e,{ref:c,className:t,style:n,...l})}else p=o.createElement("div",{ref:c,...l,className:a,style:s},i);return o.createElement(PV.Provider,{value:{isFullScreen:u,toggleFullscreen:f}},p)}));DV.Trigger=function({children:e}){const t=o.useContext(PV);if(!t)throw new Error("FullScreenComponent.Trigger must be used within a FullScreenComponent");return o.createElement("div",{style:{cursor:"pointer"},onClick:t.toggleFullscreen},e)},DV.InFullScreen=function({children:e}){const t=o.useContext(PV);if(!t)throw new Error("FullScreenComponent.Expanded must be used within a FullScreenComponent");return t.isFullScreen?o.createElement(o.Fragment,null,e):null},DV.OutFullScreen=function({children:e}){const t=o.useContext(PV);if(!t)throw new Error("FullScreenComponent.Collapsed must be used within a FullScreenComponent");return t.isFullScreen?null:o.createElement(o.Fragment,null,e)};const jV=({fnrf_zst:t,header:n,flow:r,library:i})=>{const[a,s]=e.useState(t.options.worker),l=o.useRef(null);t.workermanager&&(t.workermanager.on_setWorker=s),t.set_worker(a),o.useEffect((()=>{t.auto_progress()}),[]),o.useEffect((()=>{t.local_state.setState({funcnodescontainerRef:l.current})}),[l]);const c=t.plugins();return o.createElement(tV,{plugins:c,fnrf_zst:t},o.createElement(zV.Provider,{value:t},o.createElement(TV,{asChild:!0},o.createElement(DV,{asChild:!0},o.createElement(mC,{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",flex:1}},o.createElement("div",{ref:l,className:"funcnodesreactflowcontainer funcnodescontainer"},n.show&&o.createElement(EC,{...n}),o.createElement("div",{className:"funcnodesreactflowbody"},o.createElement(RV,{...r}),a&&i.show&&o.createElement(cN,null),a&&r.showNodeSettings&&o.createElement(EV,null)),o.createElement("div",{className:"funcnodesflaotingmenu"},o.createElement(DV.OutFullScreen,null,r.allowExpand&&o.createElement(TV.Trigger,null,o.createElement(TV.Expanded,null,o.createElement(Ly,{size:"xl",style:{padding:"4px"}})),o.createElement(TV.Collapsed,null,o.createElement(zy,{size:"xl",style:{padding:"4px"}})))),r.allowFullScreen&&o.createElement(DV.Trigger,null,o.createElement(DV.OutFullScreen,null,o.createElement(jy,{size:"xl",style:{padding:"4px"}})),o.createElement(DV.InFullScreen,null,o.createElement(Fy,{size:"xl",style:{padding:"4px"}}))))))))))},FV={},LV={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}},zV=e.createContext(Js(LV)),BV=e=>{let t=T(e,{...LV,id:Su()}).new_obj;if(!t.useWorkerManager&&void 0===t.worker)return o.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 o.createElement("div",null,"Error: If you use a worker manager, you must provide a worker manager url.");if(void 0===window.fnrf_zst&&(window.fnrf_zst=FV),void 0===FV[t.id]){const e=Js(t);FV[t.id]=e}if(t.worker&&t.worker.set_zustand(FV[t.id]),FV[t.id].options.debug=t.debug,t.useWorkerManager){const e=new Au(t.workermanager_url,FV[t.id]);FV[t.id].workermanager=e}return o.createElement(jV,{fnrf_zst:FV[t.id],header:t.header,library:t.library,flow:t.flow})},VV={set_io_value:({nid:t,ioid:n,value:r,set_default:o=!1})=>{const i=e.useContext(zV);i.worker?.set_io_value({nid:t,ioid:n,value:r,set_default:o})}};exports.FuncNodesContext=zV,exports.FuncNodesReactFlowZustand=Js,exports.FuncNodesWorker=Iu,exports.FuncnodesReactFlow=BV,exports.ReactFlowLayer=RV,exports.RenderMappingProvider=tV,exports.WebSocketWorker=_u,exports.assert_full_node=z,exports.deep_update=T,exports.default=e=>{const t=new Zs("FuncNodes",e.debug?"debug":"info");t.debug("Initalizing FuncNodes with props:",e);let n=T(e,{...LV,id:Su()}).new_obj;if(void 0===e.worker&&void 0!==e.worker_url&&(n.useWorkerManager=!1,n.worker=new _u({url:e.worker_url,uuid:n.id,on_sync_complete:n.on_sync_complete})),void 0!==n.worker){const e=Js(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),o.createElement("div",{className:"FuncnodesApp"},o.createElement(BV,{...n}))},exports.helperfunctions=VV;
|
|
104
|
+
*/var bL=function(){if(gL)return yL;gL=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 yL.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},yL.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},yL}(),vL=new Map,wL=function(e){return e.cloneNode(!0)},xL=function(){return"file:"===window.location.protocol},EL=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=bL.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(xL()?"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||xL()&&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()},CL={},kL=function(e,t){CL[e]=CL[e]||[],CL[e].push(t)},SL=function(e,t,n){if(vL.has(e)){var r=vL.get(e);if(void 0===r)return void kL(e,n);if(r instanceof SVGSVGElement)return void n(null,wL(r))}vL.set(e,void 0),kL(e,n),EL(e,t,(function(t,n){var r;t?vL.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&vL.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(CL[e])){var n=vL.get(e),r=CL[e][t];n instanceof SVGSVGElement&&r(null,wL(n)),n instanceof Error&&r(n),t===CL[e].length-1&&delete CL[e]}}),0)},n=0,r=CL[e].length;n<r;n++)t(n)}(e)}))},_L=function(e,t,n){EL(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)}))},IL=0,AL=[],NL={},RL="http://www.w3.org/1999/xlink",OL=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==AL.indexOf(e))return AL.splice(AL.indexOf(e),1),void(e=null);AL.push(e),e.setAttribute("src",""),(r?SL:_L)(s,o,(function(r,o){if(!o)return AL.splice(AL.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(sp(sp(sp([],(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,b,v,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;b=g[e].id,v=b+"-"+ ++IL,Array.prototype.forEach.call(y,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+b+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+b+'"?\\)'))||n[t].setAttribute(e,"url(#"+v+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(RL,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(RL,"href","#"+v);g[e].id=v},n=0,r=(g=o.querySelectorAll(m+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var x,E,C=o.querySelectorAll("script"),k=[],S=0,_=C.length;S<_;S++)(E=C[S].getAttribute("type"))&&"application/ecmascript"!==E&&"application/javascript"!==E&&"text/javascript"!==E||((x=C[S].innerText||C[S].textContent)&&k.push(x),o.removeChild(C[S]));if(k.length>0&&("always"===t||"once"===t&&!NL[s])){for(var I=0,A=k.length;I<A;I++)new Function(k[I])(window);NL[s]=!0}var N=o.querySelectorAll("style");if(Array.prototype.forEach.call(N,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",RL),i(o),!e.parentNode)return AL.splice(AL.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),AL.splice(AL.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},TL=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],ML="http://www.w3.org/2000/svg",PL="http://www.w3.org/1999/xlink",DL=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}LB(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(ML,h)).setAttribute("xmlns",ML),t.setAttribute("xmlns:xlink",PL),n=document.createElementNS(ML,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,b=0,v=e.length;b<v;b++)OL(e[b],f,g,u,h,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?OL(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})(tM({},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,i=jB(e,TL),a=r;return o.createElement(a,tM({},i,{ref:this.refCallback},"svg"===r?{xmlns:ML,xmlnsXlink:PL}:{}),this.state.isLoading&&n&&o.createElement(n,null),this.state.hasError&&t&&o.createElement(t,null))},t}(o.Component);DL.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},DL.propTypes={afterInjection:Tb.func,beforeInjection:Tb.func,desc:Tb.string,evalScripts:Tb.oneOf(["always","once","never"]),fallback:Tb.oneOfType([Tb.func,Tb.object,Tb.string]),httpRequestWithCredentials:Tb.bool,loading:Tb.oneOfType([Tb.func,Tb.object,Tb.string]),onError:Tb.func,renumerateIRIElements:Tb.bool,src:Tb.string.isRequired,title:Tb.string,useRequestCache:Tb.bool,wrapper:Tb.oneOf(["div","span","svg"])};const jL=({value:e})=>o.createElement(DL,{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%")}}),BL=({value:e,preValue:t,onLoaded:n})=>{const[r,i]=o.useState(t||e);return o.useEffect((()=>{if(e===t)return;const r=new Image;return r.onload=()=>{n?.(),i(e)},r.src=e,()=>{r.onload=null}}),[e,t,n]),void 0===r?o.createElement(o.Fragment,null):"string"!=typeof r?(console.error("Base64ImageOutput: value is not a string",r),o.createElement(o.Fragment,null)):o.createElement("img",{src:r,style:{maxWidth:"100%",maxHeight:"100%"}})},LL=({value:e})=>o.createElement(jL,{value:e}),FL=({value:e})=>{let t="";try{t=JSON.stringify(e)}catch(e){}return o.createElement("div",null,o.createElement("pre",null,t))},zL=({value:e})=>{if("string"!=typeof e||e.length%4!=0)return o.createElement("div",null,e);const t=Math.round(3*e.length/4);return o.createElement("div",null,o.createElement("pre",null,"Bytes(",t,")"))},VL=({value:e})=>o.createElement(mL,{tabledata:e||{columns:[],index:[],data:[]}}),GL=({value:e})=>o.createElement(BO,{data:e}),WL=GL,HL={string:FL,table:VL,image:BL,svg:LL,dict:GL,bytes:zL};function XL(e,[t,n]){return Math.min(n,Math.max(t,e))}var YL=["PageUp","PageDown"],$L=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ZL={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},UL="Slider",[JL,KL,qL]=Av(UL),[QL,eF]=wf(UL,[qL]),[tF,nF]=QL(UL),rF=o.forwardRef(((e,t)=>{const{name:n,min:r=0,max:i=100,step:a=1,orientation:s="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[r],value:d,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:h=!1,form:m,...g}=e,y=o.useRef(new Set),b=o.useRef(0),v="horizontal"===s?aF:sF,[w=[],x]=If({prop:d,defaultProp:u,onChange:e=>{const t=[...y.current];t[b.current]?.focus(),f(e)}}),E=o.useRef(w);function C(e,t,{commit:n}={commit:!1}){const o=function(e){return(String(e).split(".")[1]||"").length}(a),s=function(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/a)*a+r,o),l=XL(s,[r,i]);x(((e=[])=>{const r=function(e=[],t,n){const r=[...e];return r[n]=t,r.sort(((e,t)=>e-t))}(e,l,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,c*a)){b.current=r.indexOf(l);const t=String(r)!==String(e);return t&&n&&p(r),t?r:e}return e}))}return vf.jsx(tF,{scope:e.__scopeSlider,name:n,disabled:l,min:r,max:i,valueIndexToChangeRef:b,thumbs:y.current,values:w,orientation:s,form:m,children:vf.jsx(JL.Provider,{scope:e.__scopeSlider,children:vf.jsx(JL.Slot,{scope:e.__scopeSlider,children:vf.jsx(v,{"aria-disabled":l,"data-disabled":l?"":void 0,...g,ref:t,onPointerDown:lf(g.onPointerDown,(()=>{l||(E.current=w)})),min:r,max:i,inverted:h,onSlideStart:l?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)}(w,e);C(e,t)},onSlideMove:l?void 0:function(e){C(e,b.current)},onSlideEnd:l?void 0:function(){const e=E.current[b.current];w[b.current]!==e&&p(w)},onHomeKeyDown:()=>!l&&C(r,0,{commit:!0}),onEndKeyDown:()=>!l&&C(i,w.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!l){const n=YL.includes(e.key)||e.shiftKey&&$L.includes(e.key)?10:1,r=b.current;C(w[r]+a*n*t,r,{commit:!0})}}})})})})}));rF.displayName=UL;var[oF,iF]=QL(UL,{startEdge:"left",endEdge:"right",size:"width",direction:1}),aF=o.forwardRef(((e,t)=>{const{min:n,max:r,dir:i,inverted:a,onSlideStart:s,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...d}=e,[f,p]=o.useState(null),h=df(t,(e=>p(e))),m=o.useRef(void 0),g=Rv(i),y="ltr"===g,b=y&&!a||!y&&a;function v(e){const t=m.current||f.getBoundingClientRect(),o=bF([0,t.width],b?[n,r]:[r,n]);return m.current=t,o(e-t.left)}return vf.jsx(oF,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:vf.jsx(lF,{dir:g,"data-orientation":"horizontal",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=v(e.clientX);s?.(t)},onSlideMove:e=>{const t=v(e.clientX);l?.(t)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:e=>{const t=ZL[b?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})})),sF=o.forwardRef(((e,t)=>{const{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,d=o.useRef(null),f=df(t,d),p=o.useRef(void 0),h=!i;function m(e){const t=p.current||d.current.getBoundingClientRect(),o=bF([0,t.height],h?[r,n]:[n,r]);return p.current=t,o(e-t.top)}return vf.jsx(oF,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:vf.jsx(lF,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=m(e.clientY);a?.(t)},onSlideMove:e=>{const t=m(e.clientY);s?.(t)},onSlideEnd:()=>{p.current=void 0,l?.()},onStepKeyDown:e=>{const t=ZL[h?"from-bottom":"from-top"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})})),lF=o.forwardRef(((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=nF(UL,n);return vf.jsx(Tf.span,{...c,ref:t,onKeyDown:lf(e.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):YL.concat($L).includes(e.key)&&(l(e),e.preventDefault())})),onPointerDown:lf(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)})),onPointerMove:lf(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:lf(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))}))})})),cF="SliderTrack",uF=o.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,o=nF(cF,n);return vf.jsx(Tf.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})}));uF.displayName=cF;var dF="SliderRange",fF=o.forwardRef(((e,t)=>{const{__scopeSlider:n,...r}=e,i=nF(dF,n),a=iF(dF,n),s=df(t,o.useRef(null)),l=i.values.length,c=i.values.map((e=>yF(e,i.min,i.max))),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return vf.jsx(Tf.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:s,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:d+"%"}})}));fF.displayName=dF;var pF="SliderThumb",hF=o.forwardRef(((e,t)=>{const n=KL(e.__scopeSlider),[r,i]=o.useState(null),a=df(t,(e=>i(e))),s=o.useMemo((()=>r?n().findIndex((e=>e.ref.current===r)):-1),[n,r]);return vf.jsx(mF,{...e,ref:a,index:s})})),mF=o.forwardRef(((e,t)=>{const{__scopeSlider:n,index:r,name:i,...a}=e,s=nF(pF,n),l=iF(pF,n),[c,u]=o.useState(null),d=df(t,(e=>u(e))),f=!c||(s.form||!!c.closest("form")),p=sx(c),h=s.values[r],m=void 0===h?0:yF(h,s.min,s.max),g=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(r,s.values.length),y=p?.[l.size],b=y?function(e,t,n){const r=e/2,o=bF([0,50],[0,r]);return(r-o(t)*n)*n}(y,m,l.direction):0;return o.useEffect((()=>{if(c)return s.thumbs.add(c),()=>{s.thumbs.delete(c)}}),[c,s.thumbs]),vf.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${m}% + ${b}px)`},children:[vf.jsx(JL.ItemSlot,{scope:e.__scopeSlider,children:vf.jsx(Tf.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":s.min,"aria-valuenow":h,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...a,ref:d,style:void 0===h?{display:"none"}:e.style,onFocus:lf(e.onFocus,(()=>{s.valueIndexToChangeRef.current=r}))})}),f&&vf.jsx(gF,{name:i??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:h},r)]})}));hF.displayName=pF;var gF=e=>{const{value:t,...n}=e,r=o.useRef(null),i=function(e){const t=o.useRef({value:e,previous:e});return o.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(t);return o.useEffect((()=>{const e=r.current,n=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==t&&o){const n=new Event("input",{bubbles:!0});o.call(e,t),e.dispatchEvent(n)}}),[i,t]),vf.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function yF(e,t,n){return XL(100/(n-t)*(e-t),[0,100])}function bF(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 vF,wF,xF,EF,CF,kF,SF,_F,IF=rF,AF=uF,NF=fF,RF=hF;function OF(){if(EF)return xF;EF=1;const e=wF?vF:(wF=1,vF={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"]}};xF=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]},xF}function TF(){if(kF)return CF;kF=1;const e=OF();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 CF=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},CF}var MF=function(){if(_F)return SF;_F=1;const e=OF(),t=TF(),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)}))})),SF=n}(),PF=r({__proto__:null,default:l(MF)},[MF]);const DF=(e,t)=>{const n=Array.isArray(t)?t:[t];if(void 0===n[0]||null===n[0])return DF("rgb",[0,0,0]);const r=PF[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 DF("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},jF=({onChange:t,colorconverter:n,allow_null:r=!1})=>{if(null===n&&!r)throw new Error("Color converter is null");const[i,a]=e.useState(n),[s,l]=e.useState([0,0,0]),[c,u]=e.useState([0,0,0]),[d,f]=e.useState([0,0,0]),[p,h]=e.useState("000");e.useEffect((()=>{if(!i){if(!r)throw new Error("Color converter is null");return u([0,0,0]),l([0,0,0]),f([0,0,0]),void h("")}l(i.hsl()),u(i.rgb()),f(i.hsv()),h(i.hex())}),[i]);const m={backgroundColor:`hsl(${s[0]}, ${s[1]}%, ${s[2]}%)`,padding:"10px",margin:"10px 0"};return o.createElement("div",{style:{backgroundColor:"white"}},o.createElement("div",{style:m},"Color Preview"),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"RGB"),o.createElement("div",null),o.createElement("label",null,"Red"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[0],onChange:e=>{const n=[parseInt(e.target.value),c[1],c[2]],r=DF("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #f00)"}}),o.createElement("label",null,"Green"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[1],onChange:e=>{const n=[c[0],parseInt(e.target.value),c[2]],r=DF("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #0f0)"}}),o.createElement("label",null,"Blue"),o.createElement("input",{type:"range",min:"0",max:"255",value:c[2],onChange:e=>{const n=[c[0],c[1],parseInt(e.target.value)],r=DF("rgb",n);a(r),t(r)},style:{background:"linear-gradient(to right, #000, #00f)"}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HSL"),o.createElement("div",null),o.createElement("label",null,"Hue"),o.createElement("input",{type:"range",min:"0",max:"360",value:s[0],onChange:e=>{const n=[parseInt(e.target.value),s[1],s[2]],r=DF("hsl",n);a(r),t(r)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),o.createElement("label",null,"Saturation"),o.createElement("input",{type:"range",min:"0",max:"100",value:s[1],onChange:e=>{const n=[s[0],parseInt(e.target.value),s[2]],r=DF("hsl",n);a(r),t(r)},style:{background:`linear-gradient(to right, #fff, hsl(${s[0]}, 100%, 50%))`}}),o.createElement("label",null,"Lightness"),o.createElement("input",{type:"range",min:"0",max:"100",value:s[2],onChange:e=>{const n=[s[0],s[1],parseInt(e.target.value)],r=DF("hsl",n);a(r),t(r)},style:{background:`linear-gradient(to right, #000, hsl(${s[0]}, 100%, 50%), #fff)`}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HSV"),o.createElement("div",null),o.createElement("label",null,"Hue"),o.createElement("input",{type:"range",min:"0",max:"360",value:d[0],onChange:e=>{const n=[parseInt(e.target.value),d[1],d[2]],r=DF("hsv",n);a(r),t(r)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),o.createElement("label",null,"Saturation"),o.createElement("input",{type:"range",min:"0",max:"100",value:d[1],onChange:e=>{const n=[d[0],parseInt(e.target.value),d[2]],r=DF("hsv",n);a(r),t(r)},style:{background:`linear-gradient(to right, #fff, hsl(${s[0]}, 100%, 50%))`}}),o.createElement("label",null,"Value"),o.createElement("input",{type:"range",min:"0",max:"100",value:d[2],onChange:e=>{const n=[d[0],d[1],parseInt(e.target.value)],r=DF("hsv",n);a(r),t(r)},style:{background:`linear-gradient(to right, #000, hsl(${s[0]}, 100%, 50%))`}})),o.createElement("div",{className:"colorspace"},o.createElement("div",{className:"colorspace_title"},"HEX"),o.createElement("div",null),o.createElement("input",{type:"text",value:p,onChange:e=>{const n=""===e.target.value?null:DF("hex",[e.target.value]);a(n),t(n)}})))},BF=({inicolordata:t,inicolorspace:n,allow_null:r=!1,delay:i=1e3,onChange:a})=>{const s=void 0!==t?t:[0,0,0],l=void 0===t?"rgb":n||"hex",c=Array.isArray(s)?s:[s],u=e.useMemo((()=>{let e=DF(l,c);return void 0===e.rgb()&&(e=DF("rgb",[0,0,0])),e}),[l,c]),[d,f]=e.useState(u);e.useEffect((()=>{const e=void 0!==t?t:[0,0,0],r=void 0===t?"rgb":n||"hex",o=Array.isArray(e)?e:[e];let i=DF(r,o);void 0===i.rgb()&&(i=DF("rgb",[0,0,0])),f(i)}),[JSON.stringify(t),n]);const p=e.useContext(nW),h=p.local_state((()=>p.reactflowRef)),m=e.useRef(null),g=e.useCallback((e=>{if(null===e&&!r)throw new Error("Color is null");null!==e&&f(e),m.current&&clearTimeout(m.current),a&&(m.current=setTimeout((()=>{a(e),m.current=null}),i))}),[r,a,i]);e.useEffect((()=>()=>{m.current&&clearTimeout(m.current)}),[]);const y=e.useMemo((()=>({background:"#"+d.hex(),borderRadius:"0.3rem",width:"2rem",height:"1rem"})),[d]);return o.createElement(hO,null,o.createElement(mO,{asChild:!0},o.createElement("button",{style:y})),o.createElement(gO,{container:h},o.createElement(yO,{side:"left",className:"iotooltipcontent"},o.createElement(jF,{onChange:g,colorconverter:d,allow_null:r}))))};function LF(e){return LF="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},LF(e)}function FF(e){var t=function(e,t){if("object"!=LF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=LF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==LF(t)?t:t+""}function zF(e,t,n){return(t=FF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VF(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 GF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VF(Object(n),!0).forEach((function(t){zF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WF(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 HF(e,t){if(e){if("string"==typeof e)return WF(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)?WF(e,t):void 0}}function XF(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)||HF(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 YF(e,t){if(null==e)return{};var n,r,o=jB(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 $F=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ZF(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,FF(r.key),r)}}function UF(e){return UF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UF(e)}function JF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(JF=function(){return!!e})()}function KF(e){var t=JF();return function(){var n,r=UF(e);if(t){var o=UF(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==LF(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zB(e)}(this,n)}}function qF(e){return function(e){if(Array.isArray(e))return WF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||HF(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 QF=e.useLayoutEffect,ez=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],tz=function(){};function nz(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function rz(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(nz(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var oz=function(e){return function(e){return Array.isArray(e)}(e)?e.filter(Boolean):"object"===LF(e)&&null!==e?[e]:[]},iz=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,GF({},YF(e,ez))},az=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 sz(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function lz(e){return sz(e)?window.pageYOffset:e.scrollTop}function cz(e,t){sz(e)?window.scrollTo(0,t):e.scrollTop=t}function uz(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tz,o=lz(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);cz(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function dz(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?cz(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&cz(e,Math.max(t.offsetTop-o,0))}function fz(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var pz=!1,hz={get passive(){return pz=!0}},mz="undefined"!=typeof window?window:{};mz.addEventListener&&mz.removeEventListener&&(mz.addEventListener("p",tz,hz),mz.removeEventListener("p",tz,!1));var gz=pz;function yz(e){return null!=e}function bz(e,t,n){return e?t:n}var vz=["children","innerProps"],wz=["children","innerProps"];function xz(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:sz(u=l)?window.innerHeight:u.clientHeight,b=lz(l),v=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,E=y-m,C=x+b,k=d-b-m,S=p-y+b+v,_=b+m-w,I=160;switch(o){case"auto":case"bottom":if(E>=h)return{placement:"bottom",maxHeight:t};if(k>=h&&!a)return i&&uz(l,S,I),{placement:"bottom",maxHeight:t};if(!a&&k>=r||a&&E>=r)return i&&uz(l,S,I),{placement:"bottom",maxHeight:a?E-v:k-v};if("auto"===o||a){var A=t,N=a?x:C;return N>=r&&(A=Math.min(N-v-s,t)),{placement:"top",maxHeight:A}}if("bottom"===o)return i&&cz(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(C>=h&&!a)return i&&uz(l,_,I),{placement:"top",maxHeight:t};if(!a&&C>=r||a&&x>=r){var R=t;return(!a&&C>=r||a&&x>=r)&&(R=a?x-w:C-w),i&&uz(l,_,I),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Ez,Cz=function(e){return"auto"===e?"bottom":e},kz=e.createContext(null),Sz=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=(e.useContext(kz)||{}).setPortalPlacement,u=e.useRef(null),d=XF(e.useState(o),2),f=d[0],p=d[1],h=XF(e.useState(null),2),m=h[0],g=h[1],y=l.spacing.controlHeight;return QF((function(){var e=u.current;if(e){var t="fixed"===a,n=xz({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});p(n.maxHeight),g(n.placement),null==c||c(n.placement)}}),[o,i,a,s,r,c,y]),n({ref:u,placerProps:GF(GF({},t),{},{placement:m||Cz(i),maxHeight:f})})},_z=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return TP("div",tM({},az(e,"menu",{menu:!0}),{ref:n},r),t)},Iz=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return GF({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Az=Iz,Nz=Iz,Rz=["size"],Oz=["innerProps","isRtl","size"];var Tz="production"===P.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Mz=function(e){var t=e.size,n=YF(e,Rz);return TP("svg",tM({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Tz},n))},Pz=function(e){return TP(Mz,tM({size:20},e),TP("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"}))},Dz=function(e){return TP(Mz,tM({size:20},e),TP("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"}))},jz=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return GF({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Bz=jz,Lz=jz,Fz=PP(Ez||(Ez=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"]))),zz=function(e){var t=e.delay,n=e.offset;return TP("span",{css:MP({animation:"".concat(Fz," 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"},"production"===P.env.NODE_ENV?"":";label:LoadingDot;","production"===P.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Vz=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return TP("div",tM({ref:o},az(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},Gz=["data"],Wz=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 TP("div",tM({},az(e,"group",{group:!0}),s),TP(i,tM({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),TP("div",null,t))},Hz=["innerRef","isDisabled","isHidden","inputClassName"],Xz={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Yz={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":GF({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Xz)},$z=function(e){return GF({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Xz)},Zz=function(e){var t=e.cx,n=e.value,r=iz(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=YF(r,Hz);return TP("div",tM({},az(e,"input",{"input-container":!0}),{"data-value":n||""}),TP("input",tM({className:t({input:!0},s),ref:o,style:$z(a),disabled:i},l)))},Uz=function(e){var t=e.children,n=e.innerProps;return TP("div",n,t)};var Jz=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 TP(l,{data:r,innerProps:GF(GF({},az(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},TP(c,{data:r,innerProps:GF({},az(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),TP(u,{data:r,innerProps:GF(GF({},az(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},Kz=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return TP("div",tM({},az(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},qz=function(e){var t=e.children,n=e.innerProps;return TP("div",tM({},az(e,"placeholder",{placeholder:!0}),n),t)},Qz=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return TP("div",tM({},az(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},eV={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return TP("div",tM({},az(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||TP(Pz,null))},Control:Vz,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return TP("div",tM({},az(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||TP(Dz,null))},DownChevron:Dz,CrossIcon:Pz,Group:Wz,GroupHeading:function(e){var t=iz(e);t.data;var n=YF(t,Gz);return TP("div",tM({},az(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return TP("div",tM({},az(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return TP("span",tM({},t,az(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Zz,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=YF(e,Oz);return TP("div",tM({},az(GF(GF({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),TP(zz,{delay:0,offset:n}),TP(zz,{delay:160,offset:!0}),TP(zz,{delay:320,offset:!n}))},Menu:_z,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return TP("div",tM({},az(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(n){var r=n.appendTo,o=n.children,i=n.controlElement,a=n.innerProps,s=n.menuPlacement,l=n.menuPosition,c=e.useRef(null),u=e.useRef(null),d=XF(e.useState(Cz(s)),2),f=d[0],p=d[1],h=e.useMemo((function(){return{setPortalPlacement:p}}),[]),m=XF(e.useState(null),2),g=m[0],y=m[1],b=e.useCallback((function(){if(i){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}}(i),t="fixed"===l?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||y({offset:n,rect:e})}}),[i,l,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);QF((function(){b()}),[b]);var v=e.useCallback((function(){"function"==typeof u.current&&(u.current(),u.current=null),i&&c.current&&(u.current=Bw(i,c.current,b,{elementResize:"ResizeObserver"in window}))}),[i,b]);QF((function(){v()}),[v]);var w=e.useCallback((function(e){c.current=e,v()}),[v]);if(!r&&"fixed"!==l||!g)return null;var x=TP("div",tM({ref:w},az(GF(GF({},n),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),a),o);return TP(kz.Provider,{value:h},r?t.createPortal(x,r):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=YF(e,wz);return TP("div",tM({},az(GF(GF({},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=YF(e,vz);return TP("div",tM({},az(GF(GF({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Jz,MultiValueContainer:Uz,MultiValueLabel:Uz,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return TP("div",tM({role:"button"},n),t||TP(Pz,{size:14}))},Option:Kz,Placeholder:qz,SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return TP("div",tM({},az(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:Qz,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return TP("div",tM({},az(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},tV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function nV(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||tV(r)&&tV(o)))return!1;var r,o;return!0}for(var rV="production"===P.env.NODE_ENV?{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"}:{name:"1f43avz-a11yText-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;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},oV=function(e){return TP("span",tM({css:rV},e))},iV={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:"",".")}},aV=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,y=l.menuIsOpen,b=l.options,v=l.screenReaderStatus,w=l.tabSelectsValue,x=l.isLoading,E=l["aria-label"],C=l["aria-live"],k=e.useMemo((function(){return GF(GF({},iV),d||{})}),[d]),S=e.useMemo((function(){var e,t="";if(n&&k.onChange){var r=n.option,o=n.options,i=n.removedValue,a=n.removedValues,l=n.value,c=i||r||(e=l,Array.isArray(e)?null:e),u=c?f(c):"",d=o||a||void 0,p=d?d.map(f):[],h=GF({isDisabled:c&&m(c,s),label:u,labels:p},n);t=k.onChange(h)}return t}),[n,k,m,s,f]),_=e.useMemo((function(){var e="",t=r||o,n=!!(r&&s&&s.includes(r));if(t&&k.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,s),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:s,isAppleDevice:u};e=k.onFocus(a)}return e}),[r,o,f,m,k,i,s,u]),I=e.useMemo((function(){var e="";if(y&&b.length&&!x&&k.onFilter){var t=v({count:i.length});e=k.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,y,k,b,v,x]),A="initial-input-focus"===(null==n?void 0:n.action),N=e.useMemo((function(){var e="";if(k.guidance){var t=o?"value":y?"menu":"input";e=k.guidance({"aria-label":E,context:t,isDisabled:r&&m(r,s),isMulti:h,isSearchable:g,tabSelectsValue:w,isInitialFocus:A})}return e}),[E,r,o,h,m,g,y,k,s,w,A]),R=TP(e.Fragment,null,TP("span",{id:"aria-selection"},S),TP("span",{id:"aria-focused"},_),TP("span",{id:"aria-results"},I),TP("span",{id:"aria-guidance"},N));return TP(e.Fragment,null,TP(oV,{id:c},A&&R),TP(oV,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!A&&R))},sV=[{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źẑżžẓẕƶȥɀⱬꝣ"}],lV=new RegExp("["+sV.map((function(e){return e.letters})).join("")+"]","g"),cV={},uV=0;uV<sV.length;uV++)for(var dV=sV[uV],fV=0;fV<dV.letters.length;fV++)cV[dV.letters[fV]]=dV.base;var pV=function(e){return e.replace(lV,(function(e){return cV[e]}))},hV=function(e,t){void 0===t&&(t=nV);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}(pV),mV=function(e){return e.replace(/^\s+|\s+$/g,"")},gV=function(e){return"".concat(e.label," ").concat(e.value)},yV=["innerRef"];function bV(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=XF(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=XF(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(YF(e,yV),"onExited","in","enter","exit","appear");return TP("input",tM({ref:t},n,{css:MP({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)"},"production"===P.env.NODE_ENV?"":";label:DummyInput;","production"===P.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var vV=["boxSizing","height","overflow","paddingRight","position"],wV={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function xV(e){e.cancelable&&e.preventDefault()}function EV(e){e.stopPropagation()}function CV(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function kV(){return"ontouchstart"in window||navigator.maxTouchPoints}var SV=!("undefined"==typeof window||!window.document||!window.document.createElement),_V=0,IV={capture:!1,passive:!1};var AV=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},NV="production"===P.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function RV(t){var n=t.children,r=t.lockEnabled,o=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,s=e.useRef(!1),l=e.useRef(!1),c=e.useRef(0),u=e.useRef(null),d=e.useCallback((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,f=n.clientHeight,p=u.current,h=t>0,m=d-f-c,g=!1;m>t&&s.current&&(o&&o(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(r&&!s.current&&r(e),p.scrollTop=d,g=!0,s.current=!0):!h&&-t>c&&(i&&!l.current&&i(e),p.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,i,a]),f=e.useCallback((function(e){d(e,e.deltaY)}),[d]),p=e.useCallback((function(e){c.current=e.changedTouches[0].clientY}),[]),h=e.useCallback((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=e.useCallback((function(e){if(e){var t=!!gz&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),g=e.useCallback((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return e.useEffect((function(){if(n){var e=u.current;return m(e),function(){g(e)}}}),[n,m,g]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=e.useRef({}),a=e.useRef(null),s=e.useCallback((function(e){if(SV){var t=document.body,n=t&&t.style;if(o&&vV.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&_V<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(wV).forEach((function(e){var t=wV[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&kV()&&(t.addEventListener("touchmove",xV,IV),e&&(e.addEventListener("touchstart",CV,IV),e.addEventListener("touchmove",EV,IV))),_V+=1}}),[o]),l=e.useCallback((function(e){if(SV){var t=document.body,n=t&&t.style;_V=Math.max(_V-1,0),o&&_V<1&&vV.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&kV()&&(t.removeEventListener("touchmove",xV,IV),e&&(e.removeEventListener("touchstart",CV,IV),e.removeEventListener("touchmove",EV,IV)))}}),[o]);return e.useEffect((function(){if(n){var e=a.current;return s(e),function(){l(e)}}}),[n,s,l]),function(e){a.current=e}}({isEnabled:r});return TP(e.Fragment,null,r&&TP("div",{onClick:AV,css:NV}),n((function(e){i(e),a(e)})))}var OV="production"===P.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},TV=function(e){var t=e.name,n=e.onFocus;return TP("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:OV,value:"",onChange:function(){}})};function MV(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 PV(){return MV(/^Mac/i)}function DV(){return MV(/^iPhone/i)||MV(/^iPad/i)||PV()&&navigator.maxTouchPoints>1}var jV={clearIndicator:Lz,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 GF({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:Bz,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 GF({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 GF({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 GF(GF({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Yz),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 GF({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:Nz,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return GF((zF(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),zF(n,"position","absolute"),zF(n,"width","100%"),zF(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 GF({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 GF({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 GF({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 GF({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:Az,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return GF({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 GF({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 GF({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 GF({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")})}},BV={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}},LV={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:fz(),captureMenuScroll:!fz(),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=GF({ignoreCase:!0,ignoreAccents:!0,stringify:gV,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?mV(n):n,u=s?mV(a(t)):a(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=hV(c),u=pV(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 FV(e,t,n,r){return{type:"option",data:t,isDisabled:$V(e,t,n),isSelected:ZV(e,t,n),label:XV(e,t),value:YV(e,t),index:r}}function zV(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return FV(e,n,t,r)})).filter((function(t){return WV(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=FV(e,n,t,r);return WV(e,i)?i:void 0})).filter(yz)}function VV(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,qF(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function GV(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,qF(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 WV(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!JV(e)||!i)&&UV(e,{label:a,value:s,data:o},r)}var HV=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},XV=function(e,t){return e.getOptionLabel(t)},YV=function(e,t){return e.getOptionValue(t)};function $V(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ZV(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=YV(e,t);return n.some((function(t){return YV(e,t)===r}))}function UV(e,t,n){return!e.filterOption||e.filterOption(t,n)}var JV=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},KV=1,qV=function(){!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&&BB(e,t)}(n,e.Component);var t=KF(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=PV()||DV(),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(qF(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=bz(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(bz(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=bz(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return HV(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return GV(zV(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 rz.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return XV(r.props,e)},r.getOptionValue=function(e){return YV(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=jV[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,GF(GF({},eV),e.components);var e},r.buildCategorizedOptions=function(){return zV(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return VV(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:GF({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&&sz(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 JV(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||++KV),r.state.selectValue=oz(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=HV(o,i[a])}return r}return function(e,t,n){t&&ZF(e.prototype,t),n&&ZF(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&&dz(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&&(dz(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(BV):GF(GF({},BV),this.props.theme):BV}},{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 $V(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ZV(this.props,e,t)}},{key:"filterOption",value:function(e,t){return UV(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,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,f=d.inputIsHidden,p=d.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=GF(GF(GF({"aria-autocomplete":"list","aria-expanded":l,"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":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(u,tM({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},g)):o.createElement(bV,tM({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:tz,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,y=g.selectValue,b=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!d)return h?null:o.createElement(l,tM({},c,{key:"placeholder",isDisabled:f,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return y.map((function(t,s){var l=t===b,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,tM({},c,{components:{Container:r,Label:i,Remove:a},isFocused:l,isDisabled:f,key:u,index:s,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(h)return null;var w=y[0];return o.createElement(s,tM({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,tM({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return o.createElement(e,tM({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,tM({},r,{isDisabled:i,isFocused:a}))}},{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,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,tM({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,y=p.loadingMessage,b=p.minMenuHeight,v=p.maxMenuHeight,w=p.menuIsOpen,x=p.menuPlacement,E=p.menuPosition,C=p.menuPortalTarget,k=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,_=p.noOptionsMessage,I=p.onMenuScrollToTop,A=p.onMenuScrollToBottom;if(!w)return null;var N,R=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,p=f===i,h=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),y={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return o.createElement(u,tM({},d,{innerProps:y,data:i,isDisabled:a,isSelected:s,key:g,label:l,type:r,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return o.createElement(n,tM({},d,{key:l,data:i,options:a,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(g){var O=y({inputValue:m});if(null===O)return null;N=o.createElement(l,d,O)}else{var T=_({inputValue:m});if(null===T)return null;N=o.createElement(c,d,T)}var M={minMenuHeight:b,maxMenuHeight:v,menuPlacement:x,menuPosition:E,menuShouldScrollIntoView:S},P=o.createElement(Sz,tM({},d,M),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return o.createElement(i,tM({},d,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),o.createElement(RV,{captureEnabled:h,onTopArrive:I,onBottomArrive:A,lockEnabled:k},(function(t){return o.createElement(a,tM({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:f}),N)})))}));return C||"fixed"===E?o.createElement(s,tM({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:E}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return o.createElement(TV,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(n){var c=l.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:a,type:"hidden",value:c})}var u=l.length>0?l.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return o.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return o.createElement(aV,tM({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return o.createElement(r,tM({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),o.createElement(t,tM({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),o.createElement(i,tM({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,tM({},f,{isDisabled:c}),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=oz(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return VV(zV(e,t))}(e,h):[],y=d?GV(zV(e,h),"".concat(l,"-option")):[],b=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,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:v,focusedOptionId:HV(y,v),focusableOptionsWithIds:y,focusedValue:b,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,E=a&&s;return a&&!E&&(x={value:bz(p,h,h[0]||null),options:h,action:"initial-input-focus"},E=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),GF(GF(GF({},m),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:E})}}]),n}();qV.defaultProps=LV;var QV=e.forwardRef((function(t,n){var r=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,i=void 0!==o&&o,a=t.defaultValue,s=void 0===a?null:a,l=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,h=t.value,m=YF(t,$F),g=XF(e.useState(void 0!==l?l:r),2),y=g[0],b=g[1],v=XF(e.useState(void 0!==c?c:i),2),w=v[0],x=v[1],E=XF(e.useState(void 0!==h?h:s),2),C=E[0],k=E[1],S=e.useCallback((function(e,t){"function"==typeof u&&u(e,t),k(e)}),[u]),_=e.useCallback((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),b(void 0!==n?n:e)}),[d]),I=e.useCallback((function(){"function"==typeof p&&p(),x(!0)}),[p]),A=e.useCallback((function(){"function"==typeof f&&f(),x(!1)}),[f]),N=void 0!==l?l:y,R=void 0!==c?c:w,O=void 0!==h?h:C;return GF(GF({},m),{},{inputValue:N,menuIsOpen:R,onChange:S,onInputChange:_,onMenuClose:A,onMenuOpen:I,value:O})}(t);return o.createElement(qV,tM({ref:n},r))})),eG=QV;const tG=({options:t,items_per_page:n,className:r,defaultValue:i,onChange:a})=>{const[s,l]=e.useState(""),[c,u]=e.useState(0),d=t.filter((e=>e.label.toLowerCase().includes(s)||e.value.toLowerCase().includes(s)));var f;f=void 0!==n?d.slice(c*n,(c+1)*n):d;const p={control:e=>({...e,minHeight:void 0})};return o.createElement(eG,{options:f,onInputChange:e=>{l(e.toLowerCase()),u(0)},onChange:a,inputValue:s,isSearchable:!0,placeholder:"Select an option...",className:r,unstyled:!0,styles:p,classNamePrefix:"styled-select",defaultValue:i,value:i})};const nG=({iostore:e,inputconverter:t,parser:n=e=>parseFloat(e)})=>{const r=o.useContext(nW),{preview:i}=e.valuestore(),a=e.use(),[s,l]=o.useState(t[1](i?.value));o.useEffect((()=>{l(t[1](i?.value))}),[i]);const c=e=>{var o;e=n(parseFloat(e.toString()).toString()),isNaN(e)?(e="<NoValue>",l("")):(void 0!==a.value_options?.min&&e<a.value_options.min&&(e=a.value_options.min),void 0!==a.value_options?.max&&e>a.value_options.max&&(e=a.value_options.max),e=0===(o=e)?0:Math.abs(o)<1e-12?o:Number(o.toPrecision(12)),l(e.toString()));try{e=t[0](e)}catch(e){}r.worker?.set_io_value({nid:a.node,ioid:a.id,value:e,set_default:a.render_options.set_default})};let u=a.connected?t[1](i?.value):s;void 0===u&&(u=a.value_options?.min),void 0===u&&(u=a.value_options?.max),void 0===u&&(u=""),null===u&&(u="");let d=null,f=1;return void 0!==a.value_options?.step?f=a.value_options.step:void 0!==a.value_options?.max&&void 0!==a.value_options?.min&&(f=(a.value_options?.max-a.value_options?.min)/1e3),void 0===a.value_options?.max||void 0===a.value_options?.min||a.connected||(d=o.createElement("div",{style:{minWidth:"100px"},className:"SliderContainer"},o.createElement(IF,{className:"SliderRoot",value:[void 0===u?a.value_options?.min:u],min:a.value_options?.min,max:a.value_options?.max,step:f,disabled:a.connected,onValueCommit:e=>{isNaN(e[0])||c(e[0])},onValueChange:e=>{isNaN(e[0])||l(e[0].toString())}},o.createElement(AF,{className:"SliderTrack"},o.createElement(NF,{className:"SliderRange"})),o.createElement(RF,{className:"SliderThumb"})))),o.createElement(o.Fragment,null,d,o.createElement("input",{type:"text",className:"nodedatainput styledinput numberinput",value:u,onChange:e=>l(e.target.value),onBlur:e=>{c(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&&(f*=10);let t=(parseFloat(u)||0)-f;c(t)}else{e.shiftKey&&(f*=10);let t=(parseFloat(u)||0)+f;c(t)}},disabled:a.connected,step:a.value_options?.step,min:a.value_options?.min,max:a.value_options?.max}))},rG=({iostore:e,inputconverter:t})=>{const n=o.useContext(nW),{preview:r,full:i}=e.valuestore(),a=e.use(),s=void 0===i?r?.value:i?.value,[l,c]=o.useState(t[1](s));o.useEffect((()=>{c(t[1](s))}),[s]);let u=a.connected?t[1](s):l;return null==u&&(u=""),o.createElement("input",{className:"nodedatainput styledinput stringinput",value:u,onChange:e=>c(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:a.node,ioid:a.id,value:r,set_default:a.render_options.set_default})},disabled:a.connected})},oG=e=>e,iG=e=>parseFloat(e),aG=e=>!!e,sG=e=>"null"===e?null:e,lG=({iostore:e,inputconverter:t,parser:n})=>{const r=e.use(),{preview:i,full:a}=e.valuestore(),s=void 0===a?i?.value:a.value;let l=r.value_options?.options||[];Array.isArray(l)&&(l={type:"enum",values:l,keys:l.map((e=>null===e?"None":e.toString())),nullable:!1}),"enum"!==l.type&&(l={type:"enum",values:Object.values(l),keys:Object.keys(l),nullable:!1}),!l.nullable||l.values.includes(null)||l.keys.includes("None")||(l.values.unshift(null),l.keys.unshift("None"));const c=[];for(let e=0;e<l.values.length;e++){const t=null===l.values[e]||void 0===l.values[e]?"undefined":typeof l.values[e];let n=l.values[e];null===n&&(n="null"),void 0===n&&(n="undefined"),c.push([l.keys[e],n.toString(),t])}const u=o.useContext(nW),d=({value:e,datatype:o})=>{const i=n||(e=>"nuinputconvertermber"===e?iG:"boolean"===e?aG:"undefined"===e?sG:oG)(o);let a=i(e);try{a=t[0](e)}catch(e){}u.worker?.set_io_value({nid:r.node,ioid:r.id,value:a,set_default:r.render_options.set_default})};let f=s;null===f&&(f="null"),void 0===f&&(f="undefined");const p=c.find((e=>e[1]===f.toString()));let h;void 0!==p&&(h={value:p[1],label:p[0],datatype:p[2]});const m=c.map((e=>({value:e[1],label:e[0],datatype:e[2]})));return o.createElement(tG,{className:"nodedatainput styleddropdown",options:m,defaultValue:h,onChange:e=>{d(null!==e?e:{value:"<NoValue>",datatype:"string"})}})},cG={float:({iostore:e,inputconverter:t})=>nG({iostore:e,inputconverter:t,parser:parseFloat}),int:({iostore:e,inputconverter:t})=>nG({iostore:e,inputconverter:t,parser:parseInt}),bool:({iostore:e,inputconverter:t})=>{const n=o.useContext(nW),{preview:r}=e.valuestore(),i=e.use(),a=void 0===r?.value,s=o.useRef(null);o.useEffect((()=>{s.current&&(s.current.indeterminate=a)}),[s,a]);return o.createElement("input",{ref:s,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:i.node,ioid:i.id,value:r,set_default:i.render_options.set_default})},disabled:i.connected})},string:rG,str:rG,color:({iostore:e})=>{const t=o.useContext(nW),n=e.use(),{preview:r,full:i}=e.valuestore(),a=void 0===i?r?.value:i.value,s=n.value_options?.colorspace||"hex";let l=!1;return"string"!=typeof n.type&&"anyOf"in n.type&&void 0!==n.type.anyOf&&(l=n.type.anyOf.some((e=>"None"===e))),o.createElement(BF,{onChange:e=>{let r="<NoValue>";e&&(r=e[s]?e[s]():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:a,allow_null:l,inicolorspace:s})},select:lG,enum:lG,bytes:((e,t=void 0)=>({iostore:n})=>{const{full:r,preview:i}=n.valuestore(),a=void 0===r?i:r,s=a?.value||t;return o.createElement(e,{iostore:n,value:s})})(zL,"")},uG=({iostore:e,typestring:t})=>{const{InLineRenderer:n}=o.useContext(bG),{preview:r,full:i}=e.valuestore();if(t&&n[t])return o.createElement("div",null,n[t]({iostore:e}));let a=(JSON.stringify(i||r)||"").replace(/\\n/g,"\n");return a.length>63&&(a=a.slice(0,60)+"..."),o.createElement("div",null,a)},dG=(e,t=void 0)=>({iostore:n})=>{const{full:r,preview:i}=n.valuestore(),a=void 0===r?i:r,s=a?.value||t;return o.createElement(e,{iostore:n,value:s})},fG={string:dG(FL),table:dG(VL),image:dG(BL),svg:dG(LL,""),dict:dG(GL,"{}"),bytes:dG(zL,"")},pG=e=>({iostore:t,value:n,preValue:r,onLoaded:i})=>o.createElement(e,{iostore:t,value:n,preValue:r,onLoaded:i}),hG=pG(GL),mG={Inputrenderer:cG,Outputrenderer:{},HandlePreviewRenderer:{},DataOverlayRenderer:{},DataPreviewViewRenderer:fG,DataViewRenderer:HL,InLineRenderer:vO,NodeContextExtenders:{},NodeRenderer:{},NodeHooks:{}},gG=(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}},yG=({children:t,plugins:n,fnrf_zst:r})=>{const[i,a]=e.useReducer(gG,mG),s=(e,t)=>{a({type:"EXTEND_FROM_PLUGIN",payload:{plugin:e},options:t})};return e.useEffect((()=>{for(const e in n){const t=n[e];if(!t)continue;const i=t.renderpluginfactory;i&&s(i({React:o,fnrf_zst:r,NodeContext:jG}))}}),[n]),o.createElement(bG.Provider,{value:{Inputrenderer:i.Inputrenderer,Outputrenderer:i.Outputrenderer,HandlePreviewRenderer:i.HandlePreviewRenderer,DataOverlayRenderer:i.DataOverlayRenderer,DataPreviewViewRenderer:i.DataPreviewViewRenderer,DataViewRenderer:i.DataViewRenderer,InLineRenderer:i.InLineRenderer,NodeContextExtenders:i.NodeContextExtenders,NodeRenderer:i.NodeRenderer,NodeHooks:i.NodeHooks,extendInputRenderMapping:(e,t,n)=>{a({type:"EXTEND_INPUT_RENDER",payload:{type:e,component:t},options:n})},extendOutputRenderMapping:(e,t,n)=>{a({type:"EXTEND_OUTPUT_RENDER",payload:{type:e,component:t},options:n})},extendHandlePreviewRenderMapping:(e,t,n)=>{a({type:"EXTEND_HANDLE_PREVIEW_RENDER",payload:{type:e,component:t},options:n})},extendDataOverlayRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_OVERLAY_RENDER",payload:{type:e,component:t},options:n})},extendDataPreviewRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_PREVIEW_RENDER",payload:{type:e,component:t},options:n})},extendDataViewRenderMapping:(e,t,n)=>{a({type:"EXTEND_DATA_VIEW_RENDER",payload:{type:e,component:t},options:n})},extendNodeContextExtender:(e,t,n)=>{a({type:"EXTEND_NODE_CONTEXT_EXTENDER",payload:{type:e,component:t},options:n})},extendNodeRenderer:(e,t,n)=>{a({type:"EXTEND_NODE_RENDERER",payload:{type:e,component:t},options:n})},extendNodeHooks:(e,t,n)=>{a({type:"EXTEND_NODE_HOOKS",payload:{type:e,component:t},options:n})},extendFromPlugin:s}},t)},bG=e.createContext({Inputrenderer:mG.Inputrenderer,Outputrenderer:mG.Outputrenderer,HandlePreviewRenderer:mG.HandlePreviewRenderer,DataOverlayRenderer:mG.DataOverlayRenderer,DataPreviewViewRenderer:mG.DataPreviewViewRenderer,DataViewRenderer:mG.DataViewRenderer,InLineRenderer:mG.InLineRenderer,NodeContextExtenders:mG.NodeContextExtenders,NodeRenderer:mG.NodeRenderer,NodeHooks:mG.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)=>{}}),vG=t=>{const n=e.useContext(nW),{DataOverlayRenderer:r,DataViewRenderer:o}=e.useContext(bG);if(void 0===t)return;const i=n.render_options(),[a]=EG(t.type,i.typemap||{});return a?r[a]?r[a]:o[a]?pG(o[a]):hG:hG},wG=({iostore:e,Component:t})=>{const[n,r]=o.useState(void 0),[i,a]=o.useState(void 0),{full:s}=e.valuestore();o.useEffect((()=>{void 0===s?e.getState().try_get_full_value():a(s.value)}),[s]);return o.createElement(t,{iostore:e,value:i,preValue:n,onLoaded:()=>{void 0!==i&&r(i)}})},xG=({iostore:e,Component:t})=>o.createElement(t,{iostore:e}),EG=(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=>EG(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]},CG=({iostore:t,typestring:n,preview:r,...i})=>{const[a,s]=e.useState(!1),[l,c]=e.useState(!1),u=o.useContext(nW),d=t.use(),[f,p]=(t=>{const n=e.useContext(nW).render_options(),{HandlePreviewRenderer:r,DataPreviewViewRenderer:o}=e.useContext(bG),i=vG(t);let a;if(t){const[e]=EG(t.type,n.typemap||{});a=e?r[e]?r[e]:o[e]?o[e]:dG(WL):dG(WL)}return[a,i]})(d),h=u.local_state((()=>u.reactflowRef));return o.createElement(hO,{open:a||l,onOpenChange:c},o.createElement(mO,{asChild:!0},o.createElement(Hi,{id:d.id,"data-type":n,...i})),o.createElement(gO,{container:h},o.createElement(yO,{className:"iotooltipcontent",sideOffset:5},o.createElement("div",{className:"iotooltip_container"},o.createElement("div",{className:"iotooltip_header"},a?o.createElement(Cv,{onClick:()=>s(!1)}):o.createElement(Ev,{onClick:()=>s(!0)}),p&&o.createElement(Iv,{title:d.full_id,trigger:o.createElement(hv,null),onOpenChange:e=>{e&&d.try_get_full_value&&d.try_get_full_value(),s(e)}},o.createElement(wG,{Component:p,iostore:t}))),f?o.createElement(xG,{Component:f,iostore:t}):`no preview available for "${n}"`),o.createElement(bO,{className:"iotooltipcontentarrow"}))))},kG={"":[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)]},SG=({iostore:t})=>{const n=e.useContext(nW).render_options(),r=t.use(),[i,a]=EG(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=e.useContext(bG),l=i?r.value_options?.options?lG:s[i]:void 0,c=kG[(a&&n.inputconverter?.[a])??""]||kG[""];return r.hidden?null:o.createElement("div",{className:"nodeinput","data-type":i},o.createElement(CG,{iostore:t,typestring:i,position:ai.Left,type:"target"}),l&&o.createElement("div",{className:"iovaluefield nodrag","data-type":i},o.createElement(l,{iostore:t,inputconverter:c})),o.createElement("div",{className:"ioname"},r.name),o.createElement(CG,{iostore:t,typestring:i,position:ai.Right,type:"source"}))},_G=({iostore:t})=>{const n=e.useContext(nW).render_options(),r=t.use(),[i]=EG(r.type,n.typemap||{}),{Outputrenderer:a}=e.useContext(bG),s=i?a[i]:void 0;return r.hidden?null:o.createElement("div",{className:"nodeoutput","data-type":i},o.createElement(CG,{iostore:t,typestring:i,position:ai.Right,type:"source"}),o.createElement("div",{className:"ioname"},r.name),s?o.createElement("div",{className:"iovaluefield nodrag"},o.createElement(s,{iostore:t})):o.createElement("div",{className:"iovaluefield"},o.createElement(uG,{iostore:t,typestring:i})))};function IG(e){return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,"0")}`}function AG(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 NG=({state:t,className:n="reacttqdm",...r})=>{const i=e.useRef(null),a=e.useRef(null);e.useEffect((()=>{const e=()=>{i.current&&a.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()}(i.current,a.current,{maxFontSize:12,decrementFactor:.9})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]);const s=t.total?t.n/t.total*100:0;return o.createElement("div",{ref:i,className:n,...r},o.createElement("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},o.createElement("div",{className:n+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"}},o.createElement("div",{className:n+"-progress",style:{width:`${s}%`,height:"100%"}})),o.createElement("div",{className:n+"-text",ref:a},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=IG(o);void 0===p&&o>0&&(p=(d-u)/o);const m=p?1/p:void 0,[g,y]=p?AG(p,a):[void 0,""],[b,v]=m?AG(m,1e3):[void 0,""],w=m&&m>1?b?`${b}${v}s/`+i:"?":(g||"?")+`${y}${i}/s`,x=r?AG(d,a).join(""):d.toString(),E=r&&null!==f?AG(f,a).join(""):f?.toString()??"?",C=p?IG(p&&null!==f?(f-d)/p:0):"?",k=s?`${s}: `:"";if(null!==t){const e=` ${x}/${E} [${h} < ${C}, ${w}${c??""}]`;return`${k}${(d/t*100).toFixed(0)}%${e}`}return`${k}${x}${i} [${h}, ${w}${c??""}]`}(t))))},RG=o.memo((({node_data:t})=>{const n=e.useContext(nW);return o.createElement("div",{className:"nodeheader",title:t.description||t.node_name},o.createElement("div",{className:"nodeheader_element"},o.createElement(Sv,{fontSize:"inherit",className:"triggerbutton",onClick:()=>{n.on_node_action({type:"trigger",from_remote:!1,id:t.id})}}),o.createElement(kv,{fontSize:"inherit",onClick:async()=>{console.log("nodestatus",await(n.worker?.get_node_status(t.id)))}})),o.createElement("div",{className:"nodeheader_element nodeheader_title"},o.createElement("div",{className:"nodeheader_title_text"},t.node_name)),o.createElement("div",{className:"nodeheader_element"},o.createElement(wv,{fontSize:"inherit"})))})),OG=({iostore:t,node_data:n})=>{const r=t.use(),[i,a]=(t=>{const n=e.useContext(nW),r=vG(t),{DataPreviewViewRenderer:o,DataViewRenderer:i}=e.useContext(bG),a=n.render_options();if(void 0===t)return[void 0,r];const[s]=EG(t.type,a.typemap||{});return s?o[s]?[o[s],r]:i[s]?[dG(i[s]),r]:[dG(WL),r]:[dG(WL),r]})(r);return o.createElement("div",{className:"nodrag nodedatabody","data-src":n.render_options?.data?.src||""},i&&r&&o.createElement(Iv,{title:r.full_id,trigger:o.createElement("div",{className:"nodedatabutton"},o.createElement(xG,{Component:i,iostore:t})),onOpenChange:e=>{e&&r?.try_get_full_value&&r?.try_get_full_value()}},a&&o.createElement(wG,{Component:a,iostore:t})))},TG=o.memo((({node_data:e})=>{const t=e.render_options?.data?.src?e.io[e.render_options?.data?.src]:void 0;return o.createElement("div",{className:"nodebody"},e.outputs.map((t=>o.createElement(_G,{key:t,iostore:e.io[t]}))),t&&o.createElement(OG,{node_data:e,iostore:t}),e.inputs.map((t=>o.createElement(SG,{key:t,iostore:e.io[t]}))))})),MG=o.memo((({node_data:t})=>{const[n,r]=e.useState(t.name);e.useEffect((()=>{r(t.name)}),[t]);const i=e.useContext(nW);return o.createElement("input",{className:"nodename_input",value:n,onChange:e=>{r(e.target.value)},onBlur:e=>{const n=e.target.value;i.on_node_action({type:"update",from_remote:!1,id:t.id,node:{name:n}})}})})),PG=({node_data:e})=>{if(!e.progress)return null;const t=e.progress();return o.createElement(NG,{state:t,className:"nodeprogress"})},DG=o.memo((({node_data:e})=>o.createElement("div",{className:"nodefooter"},e.error&&o.createElement("div",{className:"nodeerror"},e.error),o.createElement(PG,{node_data:e})))),jG=o.createContext(null),BG=({iostore:e})=>{const t=o.useContext(nW).render_options(),n=e.use(),[r,i]=EG(n.render_options.type,t.typemap||{}),{Inputrenderer:a}=o.useContext(bG),s=r?n.value_options?.options?lG:a[r]:void 0,l=kG[(i&&t.inputconverter?.[i])??""]||kG[""];return o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,n.name),s&&o.createElement(s,{iostore:e,inputconverter:l}),o.createElement("div",null,o.createElement("label",null,"hidden:",o.createElement("input",{className:"styledcheckbox",type:"checkbox",disabled:n.connected,onChange:e=>{n.set_hidden?.(e.target.checked)},checked:n.hidden}))))},LG=({iostore:e})=>{const t=e.use();return o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,t.name),o.createElement("div",null,o.createElement("label",null,"hidden:",o.createElement("input",{className:"styledcheckbox",type:"checkbox",disabled:t.connected,onChange:e=>{t.set_hidden?.(e.target.checked)},checked:t.hidden}))))},FG=({nodestore:e})=>{const t=e.use();return o.createElement("div",{className:"nodesettings_content"},o.createElement("div",{className:"nodesettings_section"},o.createElement("div",{className:"nodesettings_component"},o.createElement("div",null,"Name"),o.createElement("div",null,o.createElement(MG,{node_data:t})))),o.createElement("div",{className:"nodesettings_section"},o.createElement("div",null,"Inputs"),t.inputs.map((e=>o.createElement(BG,{iostore:t.io[e],key:e})))),o.createElement("div",{className:"nodesettings_section"},o.createElement("div",null,"Outputs"),t.outputs.map((e=>o.createElement(LG,{iostore:t.io[e],key:e})))))},zG=()=>{const e=o.useContext(nW),t=e.local_state((e=>e.selected_nodes));if(0===t.length)return o.createElement("div",null,"Node Settings");if(t.length>1)return o.createElement("div",null,"Multiple Nodes Selected");const n=e.nodespace.get_node(t[0]);return n?o.createElement(FG,{nodestore:n}):o.createElement("div",null,"Node not found")},VG=()=>{const e=o.useContext(nW),t=e.local_settings((e=>e.view_settings.expand_node_props)),n=e.local_settings((e=>e.update_view_settings));return o.createElement(JC,{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})}},o.createElement(zG,null))},GG=e=>({nodes:e.nodes,edges:e.edges,onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange,onConnect:e.onConnect}),WG={default:({data:t})=>{const n=t.nodestore.use(),r=n.properties["frontend:collapsed"]||!1,{visualTrigger:i,nodecontext:a}=(t=>{const n=e.useContext(nW),[r,i]=e.useState(!1),a=t.in_trigger(),s=e.useContext(bG),l=s.NodeContextExtenders[t.node_id],c=o.useMemo((()=>l?.({node_data:t})||{}),[l,t]),u=o.useMemo((()=>({...c,node_data:t})),[c,t]),d=s.NodeHooks[t.node_id];for(const e of d||[])e({nodecontext:u});return e.useEffect((()=>{n.worker?.call_hooks("node_mounted",t.id)}),[n.worker,t.id]),e.useEffect((()=>{let e;return a&&!r?i(!0):r&&(e=setTimeout((()=>i(!1)),200)),()=>clearTimeout(e)}),[a,r]),{visualTrigger:r,nodecontext:u}})(n);return o.createElement(jG.Provider,{value:a},o.createElement("div",{className:"innernode"+(i?" intrigger":"")+(n.error?" error":"")},o.createElement(RG,{node_data:n}),o.createElement(MG,{node_data:n}),r?null:o.createElement(TG,{node_data:n}),o.createElement(DG,{node_data:n})))}},HG={default:({id:e,sourceX:t,sourceY:n,targetX:r,targetY:i,sourcePosition:a,targetPosition:s,data:l,...c})=>{const[u]=vi({sourceX:t,sourceY:n,sourcePosition:a,targetX:r,targetY:i,targetPosition:s});return o.createElement(o.Fragment,null,o.createElement(Ko,{id:e,path:u,...c}))}},XG=()=>{const t=Aa();return e.useContext(nW).rf_instance=t,o.createElement(o.Fragment,null)},YG=()=>{const t=e.useContext(nW),n=ma("Delete"),r=_o(rl,Ae),i=_o(nl,Ae);if(n){for(const e of r)if(e.selected){if(!t.worker)return o.createElement(o.Fragment,null);if(!e.source||!e.target)return o.createElement(o.Fragment,null);if(!e.sourceHandle||!e.targetHandle)return o.createElement(o.Fragment,null);t.worker.remove_edge({src_nid:e.source,src_ioid:e.sourceHandle,trg_nid:e.target,trg_ioid:e.targetHandle})}for(const e of i)if(e.selected){if(!t.worker)return o.createElement(o.Fragment,null);t.worker.remove_node(e.id)}}return o.createElement(o.Fragment,null)},$G=({id:t,top:n,left:r,right:i,bottom:a,...s})=>{const{getNode:l,setNodes:c,addNodes:u,setEdges:d}=Aa(),f=e.useContext(nW),p=e.useCallback((()=>{const e=l(t);if(!e)return;const n={x:e.position.x+50,y:e.position.y+50};u({...e,id:`${e.id}-copy`,position:n})}),[t,l,u]),h=e.useCallback((()=>{f.on_node_action({type:"delete",id:t,from_remote:!1})}),[t,c,d]),m=f.nodespace.get_node(t,!1);if(!m)return o.createElement(o.Fragment,null," ");const g=m.use();return o.createElement("div",{style:{top:n,left:r,right:i,bottom:a},className:"context-menu",...s},o.createElement("p",{style:{fontWeight:"bold"}},o.createElement("small",null,g.name)),o.createElement("button",{onClick:p},"duplicate"),o.createElement("button",{onClick:h},"delete"))},ZG=t=>{const n=e.useContext(nW),r=e.useRef(null);e.useEffect((()=>{n.reactflowRef=r.current}),[r]);const[i,a]=e.useState(null),s=e.useCallback((()=>a(null)),[a]),{nodes:l,edges:c,onNodesChange:u,onEdgesChange:d,onConnect:f}=n.useReactFlowStore(XR(GG));return o.createElement("div",{className:"reactflowlayer"},o.createElement(tl,{nodes:l,edges:c,onNodesChange:u,onEdgesChange:d,onConnect:f,nodeTypes:WG,edgeTypes:HG,minZoom:t.minZoom,maxZoom:t.maxZoom,fitView:!0,onSelectionChange:({nodes:e,edges:t})=>{const r=n.local_state.getState();n.local_state.setState({...r,selected_nodes:e.map((e=>e.id)),selected_edges:t.map((e=>e.id))})},ref:r,onPaneClick:s,panOnDrag:!t.static},o.createElement(XG,null),o.createElement(YG,null),o.createElement(wl,{color:"#888",gap:16,size:1}),t.minimap&&o.createElement(pl,{nodeStrokeWidth:3,pannable:!t.static,zoomable:!t.static,zoomStep:3}),i&&o.createElement($G,{onClick:s,...i})))},UG=e.createContext(void 0),JG=e.forwardRef(((t,n)=>{const{asChild:r,children:a,className:s,style:l,...c}=t,[u,d]=e.useState(!1),f=e.useRef(null),[p,h]=e.useState(null),[m,g]=e.useState({}),y=t.htime||300,b=t.vtime||300,v=t.hdelay||0,w=t.vdelay||200;e.useImperativeHandle(n,(()=>f.current),[]);let x;if(r&&o.isValidElement(a)){const e=a,t=[e.props.className,s,"smooth-expand",u?"smooth-expand-expanded":""].filter(Boolean).join(" "),n={...e.props.style,...l,...m};x=o.cloneElement(e,{ref:f,className:t,style:n,...c})}else x=o.createElement("div",{ref:f,...c,className:`smooth-expand ${u?"smooth-expand-expanded":""} ${s||""}`,style:{...l,...m}},a);const E=o.createElement(UG.Provider,{value:{isExpanded:u,toggleExpand:async()=>{f.current&&(u?await(async()=>{if(!f.current)return;if(!p)return;const e={transitionProperty:"width, left, height, top",transitionDuration:`${y}ms, ${y}ms, ${b}ms, ${b}ms`};g((t=>({...t,...e})));const[t,n,r,o]=p,i=new Promise((e=>{setTimeout((()=>{g((e=>({...e,left:`${t}px`,width:`${r}px`}))),e()}),w)})),a=new Promise((e=>{setTimeout((()=>{g((e=>({...e,top:`${n}px`,height:`${o}px`}))),e()}),v)})),s=Math.max(y+v,b+w),l=new Promise((e=>{setTimeout((()=>{e()}),s)}));await Promise.all([i,a,l]),f.current.style.transition="",g({}),d(!1)})():await(async()=>{if(!f.current)return;f.current.style.transition="none",f.current.style.position="",f.current.style.top="",f.current.style.left="",f.current.style.width="",f.current.style.height="";const e=f.current.getBoundingClientRect();h([e.left,e.top,e.width,e.height]),f.current.style.transition="none",g({position:"absolute",top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`}),g((e=>({...e,transitionProperty:"width, left, height, top",transitionDuration:`${y}ms, ${y}ms, ${b}ms, ${b}ms`}))),d(!0);const t=new Promise((e=>{setTimeout((()=>{g((e=>({...e,left:"0px",width:"100vw"}))),e()}),v)})),n=new Promise((e=>{setTimeout((()=>{g((e=>({...e,top:"0px",height:"100vh"}))),e()}),w)})),r=Math.max(y+v,b+w),o=new Promise((e=>{setTimeout((()=>{e()}),r)}));await Promise.all([t,n,o])})())}}},x);return u?i.createPortal(E,document.body):E}));JG.Trigger=function({children:t}){const n=e.useContext(UG);if(!n)throw new Error("SmoothExpandComponent.Trigger must be used within a SmoothExpandComponent");return o.createElement("div",{style:{cursor:"pointer"},onClick:n.toggleExpand},t)},JG.Expanded=function({children:t}){const n=e.useContext(UG);if(!n)throw new Error("SmoothExpandComponent.Expanded must be used within a SmoothExpandComponent");return n.isExpanded?o.createElement(o.Fragment,null,t):null},JG.Collapsed=function({children:t}){const n=e.useContext(UG);if(!n)throw new Error("SmoothExpandComponent.Collapsed must be used within a SmoothExpandComponent");return n.isExpanded?null:o.createElement(o.Fragment,null,t)};const KG=o.createContext(void 0),qG=e.forwardRef(((t,n)=>{const{asChild:r,children:i,className:a,style:s,...l}=t,c=e.useRef(null);e.useImperativeHandle(n,(()=>c.current),[]);const[u,d]=e.useState(!1),f=e.useCallback((async()=>{try{const e=c.current;if(!e)return;if(u){const e=document;e.exitFullscreen?await e.exitFullscreen():e.mozCancelFullScreen?await e.mozCancelFullScreen():e.webkitExitFullscreen?await e.webkitExitFullscreen():e.msExitFullscreen&&await e.msExitFullscreen(),d(!1)}else e.requestFullscreen?await e.requestFullscreen():e.mozRequestFullScreen?await e.mozRequestFullScreen():e.webkitRequestFullscreen?await e.webkitRequestFullscreen():e.msRequestFullscreen&&await e.msRequestFullscreen(),d(!0)}catch(e){console.error("Error toggling fullscreen",e)}}),[u]);let p;if(e.useEffect((()=>{const e=()=>{const e=document.fullscreenElement;d(!!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)}}),[]),r&&o.isValidElement(i)){const e=i,t=[e.props.className,a].filter(Boolean).join(" "),n={...e.props.style,...s};p=o.cloneElement(e,{ref:c,className:t,style:n,...l})}else p=o.createElement("div",{ref:c,...l,className:a,style:s},i);return o.createElement(KG.Provider,{value:{isFullScreen:u,toggleFullscreen:f}},p)}));qG.Trigger=function({children:e}){const t=o.useContext(KG);if(!t)throw new Error("FullScreenComponent.Trigger must be used within a FullScreenComponent");return o.createElement("div",{style:{cursor:"pointer"},onClick:t.toggleFullscreen},e)},qG.InFullScreen=function({children:e}){const t=o.useContext(KG);if(!t)throw new Error("FullScreenComponent.Expanded must be used within a FullScreenComponent");return t.isFullScreen?o.createElement(o.Fragment,null,e):null},qG.OutFullScreen=function({children:e}){const t=o.useContext(KG);if(!t)throw new Error("FullScreenComponent.Collapsed must be used within a FullScreenComponent");return t.isFullScreen?null:o.createElement(o.Fragment,null,e)};const QG=({fnrf_zst:t,header:n,flow:r,library:i})=>{const[a,s]=e.useState(t.options.worker),l=o.useRef(null);t.workermanager&&(t.workermanager.on_setWorker=s),t.set_worker(a),o.useEffect((()=>{t.auto_progress()}),[]),o.useEffect((()=>{t.local_state.setState({funcnodescontainerRef:l.current})}),[l]);const c=t.plugins();return o.createElement(yG,{plugins:c,fnrf_zst:t},o.createElement(nW.Provider,{value:t},o.createElement(JG,{asChild:!0},o.createElement(qG,{asChild:!0},o.createElement($C,{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",flex:1}},o.createElement("div",{ref:l,className:"funcnodesreactflowcontainer funcnodescontainer"},n.show&&o.createElement(nk,{...n}),o.createElement("div",{className:"funcnodesreactflowbody"},o.createElement(ZG,{...r}),a&&i.show&&o.createElement(WR,null),a&&r.showNodeSettings&&o.createElement(VG,null)),o.createElement("div",{className:"funcnodesflaotingmenu"},o.createElement(qG.OutFullScreen,null,r.allowExpand&&o.createElement(JG.Trigger,null,o.createElement(JG.Expanded,null,o.createElement(gv,{size:"xl",style:{padding:"4px"}})),o.createElement(JG.Collapsed,null,o.createElement(yv,{size:"xl",style:{padding:"4px"}})))),r.allowFullScreen&&o.createElement(qG.Trigger,null,o.createElement(qG.OutFullScreen,null,o.createElement(hv,{size:"xl",style:{padding:"4px"}})),o.createElement(qG.InFullScreen,null,o.createElement(mv,{size:"xl",style:{padding:"4px"}}))))))))))},eW={},tW={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}},nW=e.createContext(Pl(tW)),rW=e=>{let t=oe(e,{...tW,id:rf()}).new_obj;if(!t.useWorkerManager&&void 0===t.worker)return o.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 o.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=eW);let n=eW[t.id];if(void 0===n&&(n=Pl(t),eW[t.id]=n),t.worker&&t.worker.set_zustand(n),n.options.debug=t.debug,t.useWorkerManager){const e=new sf(t.workermanager_url,n);n.workermanager=e}return o.createElement(QG,{fnrf_zst:n,header:t.header,library:t.library,flow:t.flow})},oW={set_io_value:({nid:t,ioid:n,value:r,set_default:o=!1})=>{const i=e.useContext(nW);i.worker?.set_io_value({nid:t,ioid:n,value:r,set_default:o})}};exports.FuncNodesContext=nW,exports.FuncNodesReactFlowZustand=Pl,exports.FuncNodesWorker=of,exports.FuncnodesReactFlow=rW,exports.NodeContext=jG,exports.ReactFlowLayer=ZG,exports.RenderMappingContext=bG,exports.RenderMappingProvider=yG,exports.WebSocketWorker=af,exports.deep_update=oe,exports.default=e=>{const t=new Tl("FuncNodes",e.debug?"debug":"info");t.debug("Initalizing FuncNodes with props:",e);let n=oe(e,{...tW,id:rf()}).new_obj;if(void 0===e.worker&&void 0!==e.worker_url&&(n.useWorkerManager=!1,n.worker=new af({url:e.worker_url,uuid:n.id,on_sync_complete:n.on_sync_complete})),void 0!==n.worker){const e=Pl(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),o.createElement("div",{className:"FuncnodesApp"},o.createElement(rW,{...n}))},exports.helperfunctions=oW;
|
|
157
105
|
//# sourceMappingURL=index.umd.js.map
|