diff --git a/idaes_ui/fv/static/assets/allPaths-b12d27a2.js b/idaes_ui/fv/static/assets/allPaths-b12d27a2.js new file mode 100644 index 00000000..3961d5a5 --- /dev/null +++ b/idaes_ui/fv/static/assets/allPaths-b12d27a2.js @@ -0,0 +1 @@ +import{I as n}from"./index-0aa86537.js";import{I as e}from"./index-4387c2ca.js";import{p as r,I as s}from"./index-cb629cec.js";function I(o,t){var a=r(o);return t===s.STANDARD?n[a]:e[a]}function p(o){return r(o)}export{n as IconSvgPaths16,e as IconSvgPaths20,I as getIconPaths,p as iconNameToPathsRecordKey}; diff --git a/idaes_ui/fv/static/assets/allPathsLoader-ae381438.js b/idaes_ui/fv/static/assets/allPathsLoader-ae381438.js new file mode 100644 index 00000000..a34e8627 --- /dev/null +++ b/idaes_ui/fv/static/assets/allPathsLoader-ae381438.js @@ -0,0 +1 @@ +import{_ as o,a as n,b as i}from"./index-cb629cec.js";var _=function(e,a){return o(void 0,void 0,void 0,function(){var t;return n(this,function(r){switch(r.label){case 0:return[4,i(()=>import("./allPaths-b12d27a2.js"),["assets/allPaths-b12d27a2.js","assets/index-0aa86537.js","assets/index-4387c2ca.js","assets/index-cb629cec.js","assets/index-cb53c5ef.css"])];case 1:return t=r.sent().getIconPaths,[2,t(e,a)]}})})};export{_ as allPathsLoader}; diff --git a/idaes_ui/fv/static/assets/index-cb629cec.js b/idaes_ui/fv/static/assets/index-cb629cec.js new file mode 100644 index 00000000..909c9050 --- /dev/null +++ b/idaes_ui/fv/static/assets/index-cb629cec.js @@ -0,0 +1,843 @@ +var e_=Object.defineProperty;var t_=(e,t,n)=>t in e?e_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>(t_(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var A=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Mv={exports:{}},el={},jv={exports:{}},q={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ki=Symbol.for("react.element"),n_=Symbol.for("react.portal"),r_=Symbol.for("react.fragment"),a_=Symbol.for("react.strict_mode"),i_=Symbol.for("react.profiler"),o_=Symbol.for("react.provider"),s_=Symbol.for("react.context"),l_=Symbol.for("react.forward_ref"),u_=Symbol.for("react.suspense"),c_=Symbol.for("react.memo"),f_=Symbol.for("react.lazy"),Jp=Symbol.iterator;function d_(e){return e===null||typeof e!="object"?null:(e=Jp&&e[Jp]||e["@@iterator"],typeof e=="function"?e:null)}var Fv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Iv=Object.assign,Uv={};function fa(e,t,n){this.props=e,this.context=t,this.refs=Uv,this.updater=n||Fv}fa.prototype.isReactComponent={};fa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zv(){}zv.prototype=fa.prototype;function Jf(e,t,n){this.props=e,this.context=t,this.refs=Uv,this.updater=n||Fv}var Zf=Jf.prototype=new zv;Zf.constructor=Jf;Iv(Zf,fa.prototype);Zf.isPureReactComponent=!0;var Zp=Array.isArray,Hv=Object.prototype.hasOwnProperty,Bf={current:null},Wv={key:!0,ref:!0,__self:!0,__source:!0};function Gv(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Hv.call(t,r)&&!Wv.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1>>1,_e=j[pe];if(0>>1;pea(ou,G))Gn<_e&&0>a(io,ou)?(j[pe]=io,j[Gn]=G,pe=Gn):(j[pe]=ou,j[Wn]=G,pe=Wn);else if(Gn<_e&&0>a(io,G))j[pe]=io,j[Gn]=G,pe=Gn;else break e}}return W}function a(j,W){var G=j.sortIndex-W.sortIndex;return G!==0?G:j.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],d=1,p=null,h=3,w=!1,m=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(j){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=j)r(u),W.sortIndex=W.expirationTime,t(l,W);else break;W=n(u)}}function O(j){if(S=!1,_(j),!m)if(n(l)!==null)m=!0,Ca(P);else{var W=n(u);W!==null&&iu(O,W.startTime-j)}}function P(j,W){m=!1,S&&(S=!1,v(C),C=-1),w=!0;var G=h;try{for(_(W),p=n(l);p!==null&&(!(p.expirationTime>W)||j&&!z());){var pe=p.callback;if(typeof pe=="function"){p.callback=null,h=p.priorityLevel;var _e=pe(p.expirationTime<=W);W=e.unstable_now(),typeof _e=="function"?p.callback=_e:p===n(l)&&r(l),_(W)}else r(l);p=n(l)}if(p!==null)var ao=!0;else{var Wn=n(u);Wn!==null&&iu(O,Wn.startTime-W),ao=!1}return ao}finally{p=null,h=G,w=!1}}var N=!1,b=null,C=-1,$=5,R=-1;function z(){return!(e.unstable_now()-R<$)}function ee(){if(b!==null){var j=e.unstable_now();R=j;var W=!0;try{W=b(!0,j)}finally{W?X():(N=!1,b=null)}}else N=!1}var X;if(typeof y=="function")X=function(){y(ee)};else if(typeof MessageChannel<"u"){var rn=new MessageChannel,Er=rn.port2;rn.port1.onmessage=ee,X=function(){Er.postMessage(null)}}else X=function(){E(ee,0)};function Ca(j){b=j,N||(N=!0,X())}function iu(j,W){C=E(function(){j(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){m||w||(m=!0,Ca(P))},e.unstable_forceFrameRate=function(j){0>j||125pe?(j.sortIndex=G,t(u,j),n(l)===null&&j===n(u)&&(S?(v(C),C=-1):S=!0,iu(O,G-pe))):(j.sortIndex=_e,t(l,j),m||w||(m=!0,Ca(P))),j},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(j){var W=h;return function(){var G=h;h=W;try{return j.apply(this,arguments)}finally{h=G}}}})(Yv);Kv.exports=Yv;var E_=Kv.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Xv=x,tt=E_;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fc=Object.prototype.hasOwnProperty,T_=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,eh={},th={};function C_(e){return fc.call(th,e)?!0:fc.call(eh,e)?!1:T_.test(e)?th[e]=!0:(eh[e]=!0,!1)}function O_(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function x_(e,t,n,r){if(t===null||typeof t>"u"||O_(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function We(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new We(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new We(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new We(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new We(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new We(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new We(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var td=/[\-:]([a-z])/g;function nd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(td,nd);xe[t]=new We(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(td,nd);xe[t]=new We(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(td,nd);xe[t]=new We(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new We(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new We(e,1,!1,e.toLowerCase(),null,!0,!0)});function rd(e,t,n,r){var a=xe.hasOwnProperty(t)?xe[t]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{uu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?za(e):""}function P_(e){switch(e.tag){case 5:return za(e.type);case 16:return za("Lazy");case 13:return za("Suspense");case 19:return za("SuspenseList");case 0:case 2:case 15:return e=cu(e.type,!1),e;case 11:return e=cu(e.type.render,!1),e;case 1:return e=cu(e.type,!0),e;default:return""}}function gc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kr:return"Fragment";case Nr:return"Portal";case dc:return"Profiler";case ad:return"StrictMode";case pc:return"Suspense";case hc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zv:return(e.displayName||"Context")+".Consumer";case Jv:return(e._context.displayName||"Context")+".Provider";case id:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case od:return t=e.displayName||null,t!==null?t:gc(e.type)||"Memo";case cn:t=e._payload,e=e._init;try{return gc(e(t))}catch{}}return null}function D_(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gc(t);case 8:return t===ad?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ey(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function N_(e){var t=ey(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lo(e){e._valueTracker||(e._valueTracker=N_(e))}function ty(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ey(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ds(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mc(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ny(e,t){t=t.checked,t!=null&&rd(e,"checked",t,!1)}function vc(e,t){ny(e,t);var n=Dn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yc(e,t.type,n):t.hasOwnProperty("defaultValue")&&yc(e,t.type,Dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ah(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function yc(e,t,n){(t!=="number"||ds(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ha=Array.isArray;function Kr(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=uo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ui(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},k_=["Webkit","ms","Moz","O"];Object.keys(Xa).forEach(function(e){k_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xa[t]=Xa[e]})});function oy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xa.hasOwnProperty(e)&&Xa[e]?(""+t).trim():t+"px"}function sy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=oy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var A_=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _c(e,t){if(t){if(A_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function bc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ec=null;function sd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tc=null,Yr=null,Xr=null;function sh(e){if(e=$i(e)){if(typeof Tc!="function")throw Error(k(280));var t=e.stateNode;t&&(t=il(t),Tc(e.stateNode,e.type,t))}}function ly(e){Yr?Xr?Xr.push(e):Xr=[e]:Yr=e}function uy(){if(Yr){var e=Yr,t=Xr;if(Xr=Yr=null,sh(e),t)for(e=0;e>>=0,e===0?32:31-(W_(e)/G_|0)|0}var co=64,fo=4194304;function Wa(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ms(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~a;s!==0?r=Wa(s):(i&=o,i!==0&&(r=Wa(i)))}else o=n&~a,o!==0?r=Wa(o):i!==0&&(r=Wa(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ai(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function Y_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ja),mh=String.fromCharCode(32),vh=!1;function Dy(e,t){switch(e){case"keyup":return b2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ny(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ar=!1;function T2(e,t){switch(e){case"compositionend":return Ny(t);case"keypress":return t.which!==32?null:(vh=!0,mh);case"textInput":return e=t.data,e===mh&&vh?null:e;default:return null}}function C2(e,t){if(Ar)return e==="compositionend"||!gd&&Dy(e,t)?(e=xy(),Ko=dd=gn=null,Ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_h(n)}}function $y(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$y(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ly(){for(var e=window,t=ds();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ds(e.document)}return t}function md(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $2(e){var t=Ly(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$y(n.ownerDocument.documentElement,n)){if(r!==null&&md(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=bh(n,i);var o=bh(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Rr=null,Nc=null,Ba=null,kc=!1;function Eh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kc||Rr==null||Rr!==ds(r)||(r=Rr,"selectionStart"in r&&md(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ba&&gi(Ba,r)||(Ba=r,r=ws(Nc,"onSelect"),0Mr||(e.current=jc[Mr],jc[Mr]=null,Mr--)}function B(e,t){Mr++,jc[Mr]=e.current,e.current=t}var Nn={},Fe=Fn(Nn),qe=Fn(!1),or=Nn;function ta(e,t){var n=e.type.contextTypes;if(!n)return Nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ke(e){return e=e.childContextTypes,e!=null}function _s(){ie(qe),ie(Fe)}function Nh(e,t,n){if(Fe.current!==Nn)throw Error(k(168));B(Fe,t),B(qe,n)}function Gy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(k(108,D_(e)||"Unknown",a));return ce({},n,r)}function bs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nn,or=Fe.current,B(Fe,e),B(qe,qe.current),!0}function kh(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Gy(e,t,or),r.__reactInternalMemoizedMergedChildContext=e,ie(qe),ie(Fe),B(Fe,e)):ie(qe),B(qe,n)}var zt=null,ol=!1,Tu=!1;function Vy(e){zt===null?zt=[e]:zt.push(e)}function q2(e){ol=!0,Vy(e)}function In(){if(!Tu&&zt!==null){Tu=!0;var e=0,t=Q;try{var n=zt;for(Q=1;e>=o,a-=o,Gt=1<<32-Tt(t)+a|n<C?($=b,b=null):$=b.sibling;var R=h(v,b,_[C],O);if(R===null){b===null&&(b=$);break}e&&b&&R.alternate===null&&t(v,b),y=i(R,y,C),N===null?P=R:N.sibling=R,N=R,b=$}if(C===_.length)return n(v,b),se&&qn(v,C),P;if(b===null){for(;C<_.length;C++)b=p(v,_[C],O),b!==null&&(y=i(b,y,C),N===null?P=b:N.sibling=b,N=b);return se&&qn(v,C),P}for(b=r(v,b);C<_.length;C++)$=w(b,v,C,_[C],O),$!==null&&(e&&$.alternate!==null&&b.delete($.key===null?C:$.key),y=i($,y,C),N===null?P=$:N.sibling=$,N=$);return e&&b.forEach(function(z){return t(v,z)}),se&&qn(v,C),P}function S(v,y,_,O){var P=Oa(_);if(typeof P!="function")throw Error(k(150));if(_=P.call(_),_==null)throw Error(k(151));for(var N=P=null,b=y,C=y=0,$=null,R=_.next();b!==null&&!R.done;C++,R=_.next()){b.index>C?($=b,b=null):$=b.sibling;var z=h(v,b,R.value,O);if(z===null){b===null&&(b=$);break}e&&b&&z.alternate===null&&t(v,b),y=i(z,y,C),N===null?P=z:N.sibling=z,N=z,b=$}if(R.done)return n(v,b),se&&qn(v,C),P;if(b===null){for(;!R.done;C++,R=_.next())R=p(v,R.value,O),R!==null&&(y=i(R,y,C),N===null?P=R:N.sibling=R,N=R);return se&&qn(v,C),P}for(b=r(v,b);!R.done;C++,R=_.next())R=w(b,v,C,R.value,O),R!==null&&(e&&R.alternate!==null&&b.delete(R.key===null?C:R.key),y=i(R,y,C),N===null?P=R:N.sibling=R,N=R);return e&&b.forEach(function(ee){return t(v,ee)}),se&&qn(v,C),P}function E(v,y,_,O){if(typeof _=="object"&&_!==null&&_.type===kr&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case so:e:{for(var P=_.key,N=y;N!==null;){if(N.key===P){if(P=_.type,P===kr){if(N.tag===7){n(v,N.sibling),y=a(N,_.props.children),y.return=v,v=y;break e}}else if(N.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===cn&&Fh(P)===N.type){n(v,N.sibling),y=a(N,_.props),y.ref=ka(v,N,_),y.return=v,v=y;break e}n(v,N);break}else t(v,N);N=N.sibling}_.type===kr?(y=ir(_.props.children,v.mode,O,_.key),y.return=v,v=y):(O=ts(_.type,_.key,_.props,null,v.mode,O),O.ref=ka(v,y,_),O.return=v,v=O)}return o(v);case Nr:e:{for(N=_.key;y!==null;){if(y.key===N)if(y.tag===4&&y.stateNode.containerInfo===_.containerInfo&&y.stateNode.implementation===_.implementation){n(v,y.sibling),y=a(y,_.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=Au(_,v.mode,O),y.return=v,v=y}return o(v);case cn:return N=_._init,E(v,y,N(_._payload),O)}if(Ha(_))return m(v,y,_,O);if(Oa(_))return S(v,y,_,O);wo(v,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,y!==null&&y.tag===6?(n(v,y.sibling),y=a(y,_),y.return=v,v=y):(n(v,y),y=ku(_,v.mode,O),y.return=v,v=y),o(v)):n(v,y)}return E}var ra=By(!0),e0=By(!1),Li={},Lt=Fn(Li),wi=Fn(Li),Si=Fn(Li);function er(e){if(e===Li)throw Error(k(174));return e}function Cd(e,t){switch(B(Si,t),B(wi,e),B(Lt,Li),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Sc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Sc(t,e)}ie(Lt),B(Lt,t)}function aa(){ie(Lt),ie(wi),ie(Si)}function t0(e){er(Si.current);var t=er(Lt.current),n=Sc(t,e.type);t!==n&&(B(wi,e),B(Lt,n))}function Od(e){wi.current===e&&(ie(Lt),ie(wi))}var le=Fn(0);function Ps(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Cu=[];function xd(){for(var e=0;en?n:4,e(!0);var r=Ou.transition;Ou.transition={};try{e(!1),t()}finally{Q=n,Ou.transition=r}}function v0(){return gt().memoizedState}function Q2(e,t,n){var r=On(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},y0(e))w0(t,n);else if(n=Xy(e,t,n,r),n!==null){var a=ze();Ct(n,e,r,a),S0(n,t,r)}}function J2(e,t,n){var r=On(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(y0(e))w0(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,xt(s,o)){var l=t.interleaved;l===null?(a.next=a,Ed(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}n=Xy(e,t,a,r),n!==null&&(a=ze(),Ct(n,e,r,a),S0(n,t,r))}}function y0(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function w0(e,t){ei=Ds=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function S0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ud(e,n)}}var Ns={readContext:ht,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},Z2={readContext:ht,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:Uh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jo(4194308,4,d0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jo(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Q2.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:Ih,useDebugValue:Ad,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=Ih(!1),t=e[0];return e=X2.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,a=Nt();if(se){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),Ee===null)throw Error(k(349));lr&30||a0(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Uh(o0.bind(null,r,i,e),[e]),r.flags|=2048,Ei(9,i0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Nt(),t=Ee.identifierPrefix;if(se){var n=Vt,r=Gt;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_i++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[kt]=t,e[yi]=r,D0(e,t,!1,!1),t.stateNode=e;e:{switch(o=bc(n,r),n){case"dialog":te("cancel",e),te("close",e),a=r;break;case"iframe":case"object":case"embed":te("load",e),a=r;break;case"video":case"audio":for(a=0;aoa&&(t.flags|=128,r=!0,Aa(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ps(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Aa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!se)return Ne(t),null}else 2*he()-i.renderingStartTime>oa&&n!==1073741824&&(t.flags|=128,r=!0,Aa(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=he(),t.sibling=null,n=le.current,B(le,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return Fd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function ob(e,t){switch(yd(t),t.tag){case 1:return Ke(t.type)&&_s(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return aa(),ie(qe),ie(Fe),xd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Od(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));na()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return aa(),null;case 10:return bd(t.type._context),null;case 22:case 23:return Fd(),null;case 24:return null;default:return null}}var _o=!1,Me=!1,sb=typeof WeakSet=="function"?WeakSet:Set,M=null;function Ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Xc(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Xh=!1;function lb(e,t){if(Ac=vs,e=Ly(),md(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var w;p!==n||a!==0&&p.nodeType!==3||(s=o+a),p!==i||r!==0&&p.nodeType!==3||(l=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(w=p.firstChild)!==null;)h=p,p=w;for(;;){if(p===e)break t;if(h===n&&++u===a&&(s=o),h===i&&++d===r&&(l=o),(w=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=w}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rc={focusedElem:e,selectionRange:n},vs=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var S=m.memoizedProps,E=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?S:St(t.type,S),E);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(O){fe(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return m=Xh,Xh=!1,m}function ti(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Xc(t,n,i)}a=a.next}while(a!==r)}}function ul(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function A0(e){var t=e.alternate;t!==null&&(e.alternate=null,A0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kt],delete t[yi],delete t[Mc],delete t[G2],delete t[V2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function R0(e){return e.tag===5||e.tag===3||e.tag===4}function Qh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||R0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ss));else if(r!==4&&(e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}var Ce=null,_t=!1;function an(e,t,n){for(n=n.child;n!==null;)$0(e,t,n),n=n.sibling}function $0(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(tl,n)}catch{}switch(n.tag){case 5:Me||Ur(n,t);case 6:var r=Ce,a=_t;Ce=null,an(e,t,n),Ce=r,_t=a,Ce!==null&&(_t?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(_t?(e=Ce,n=n.stateNode,e.nodeType===8?Eu(e.parentNode,n):e.nodeType===1&&Eu(e,n),pi(e)):Eu(Ce,n.stateNode));break;case 4:r=Ce,a=_t,Ce=n.stateNode.containerInfo,_t=!0,an(e,t,n),Ce=r,_t=a;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Xc(n,t,o),a=a.next}while(a!==r)}an(e,t,n);break;case 1:if(!Me&&(Ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fe(n,t,s)}an(e,t,n);break;case 21:an(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,an(e,t,n),Me=r):an(e,t,n);break;default:an(e,t,n)}}function Jh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sb),t.forEach(function(r){var a=vb.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cb(r/1960))-r,10e?16:e,mn===null)var r=!1;else{if(e=mn,mn=null,Rs=0,Y&6)throw Error(k(331));var a=Y;for(Y|=4,M=e.current;M!==null;){var i=M,o=i.child;if(M.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lhe()-Md?ar(e,0):Ld|=n),Ye(e,t)}function H0(e,t){t===0&&(e.mode&1?(t=fo,fo<<=1,!(fo&130023424)&&(fo=4194304)):t=1);var n=ze();e=Qt(e,t),e!==null&&(Ai(e,t,n),Ye(e,n))}function mb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),H0(e,n)}function vb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),H0(e,n)}var W0;W0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,ab(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,se&&t.flags&1048576&&qy(t,Ts,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zo(e,t),e=t.pendingProps;var a=ta(t,Fe.current);Jr(t,n),a=Dd(null,t,r,e,a,n);var i=Nd();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(i=!0,bs(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Td(t),a.updater=sl,t.stateNode=a,a._reactInternals=t,Hc(t,r,e,n),t=Vc(null,t,r,!0,i,n)):(t.tag=0,se&&i&&vd(t),Ie(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zo(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=wb(r),e=St(r,e),a){case 0:t=Gc(null,t,r,e,n);break e;case 1:t=qh(null,t,r,e,n);break e;case 11:t=Gh(null,t,r,e,n);break e;case 14:t=Vh(null,t,r,St(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),Gc(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),qh(e,t,r,a,n);case 3:e:{if(O0(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,a=i.element,Qy(e,t),xs(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=ia(Error(k(423)),t),t=Kh(e,t,r,n,a);break e}else if(r!==a){a=ia(Error(k(424)),t),t=Kh(e,t,r,n,a);break e}else for(Be=En(t.stateNode.containerInfo.firstChild),et=t,se=!0,bt=null,n=e0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(na(),r===a){t=Jt(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return t0(t),e===null&&Ic(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,$c(r,a)?o=null:i!==null&&$c(r,i)&&(t.flags|=32),C0(e,t),Ie(e,t,o,n),t.child;case 6:return e===null&&Ic(t),null;case 13:return x0(e,t,n);case 4:return Cd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ra(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),Gh(e,t,r,a,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,B(Cs,r._currentValue),r._currentValue=o,i!==null)if(xt(i.value,o)){if(i.children===a.children&&!qe.current){t=Jt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=qt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Uc(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(k(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Uc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ie(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Jr(t,n),a=ht(a),r=r(a),t.flags|=1,Ie(e,t,r,n),t.child;case 14:return r=t.type,a=St(r,t.pendingProps),a=St(r.type,a),Vh(e,t,r,a,n);case 15:return E0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:St(r,a),Zo(e,t),t.tag=1,Ke(r)?(e=!0,bs(t)):e=!1,Jr(t,n),Zy(t,r,a),Hc(t,r,a,n),Vc(null,t,r,!0,e,n);case 19:return P0(e,t,n);case 22:return T0(e,t,n)}throw Error(k(156,t.tag))};function G0(e,t){return my(e,t)}function yb(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ft(e,t,n,r){return new yb(e,t,n,r)}function Ud(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wb(e){if(typeof e=="function")return Ud(e)?1:0;if(e!=null){if(e=e.$$typeof,e===id)return 11;if(e===od)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ts(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Ud(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case kr:return ir(n.children,a,i,t);case ad:o=8,a|=8;break;case dc:return e=ft(12,n,t,a|2),e.elementType=dc,e.lanes=i,e;case pc:return e=ft(13,n,t,a),e.elementType=pc,e.lanes=i,e;case hc:return e=ft(19,n,t,a),e.elementType=hc,e.lanes=i,e;case Bv:return fl(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jv:o=10;break e;case Zv:o=9;break e;case id:o=11;break e;case od:o=14;break e;case cn:o=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=ft(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function ir(e,t,n,r){return e=ft(7,e,r,t),e.lanes=n,e}function fl(e,t,n,r){return e=ft(22,e,r,t),e.elementType=Bv,e.lanes=n,e.stateNode={isHidden:!1},e}function ku(e,t,n){return e=ft(6,e,null,t),e.lanes=n,e}function Au(e,t,n){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sb(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=du(0),this.expirationTimes=du(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=du(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function zd(e,t,n,r,a,i,o,s,l){return e=new Sb(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ft(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Td(i),e}function _b(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Y0)}catch(e){console.error(e)}}Y0(),qv.exports=nt;var X0=qv.exports,ig=X0;cc.createRoot=ig.createRoot,cc.hydrateRoot=ig.hydrateRoot;function Ob(){{const e=window.location.port,n=new URLSearchParams(window.location.search).get("id");return{server_port:e,fv_id:n}}}const mt=x.createContext({});function xb({children:e}){const t=Pb(),{server_port:n,fv_id:r}=Ob()??{server_port:"49999",fv_id:"sample_visualization"},[a,i]=x.useState({}),[o,s]=x.useState({fvWrapper:{panelName:"fvWrapper",show:!0,size:{maxSize:100,defaultSize:70}},fv:{panelName:"Flowsheet",show:!0,size:{minSize:100,defaultSize:70}},diagnostics:{panelName:"Diagnostics",show:t.diagnosticsPanelShow==null?!1:t.diagnosticsPanelShow,size:{minSize:100,defaultSize:70}},diagnosticsLogs:{panelName:"Stream Table",show:!1,size:{maxSize:100,defaultSize:30}},streamTable:{panelName:"Stream Table",show:!0,size:{maxSize:100,defaultSize:30}}}),[l,u]=x.useState({isShowSteamName:!0,isShowLabels:!1}),[d,p]=x.useState({}),[h,w]=x.useState([]),[m,S]=x.useState(""),[E,v]=x.useState(!0),[y,_]=x.useState({expand:!1,expandState:{}}),[O,P]=x.useState({streamTable:!0,diagnosticsLogs:!1});return T.jsx(mt.Provider,{value:{server_port:n,fv_id:r,panelState:o,setPanelState:s,showVariable:a,setShowVariable:i,fvHeaderState:l,setFvHeaderState:u,diagnosticsRunFnNameListState:h,setDiagnosticsRunFnNameListState:w,diagnosticsRefreshState:E,setDiagnosticsRefreshState:v,diagnosticsNextStepsOutputState:d,setDiagnosticsNextStepsOutputState:p,diagnosticsRunnerDisplayState:m,setDiagnosticsRunnerDisplayState:S,viewInLogPanel:O,setViewInLogPanel:P,variablesExpandState:y,setVariablesExpandState:_},children:e})}function Pb(){const e=localStorage.getItem("appSetting");return JSON.parse(e)}function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return oe.head.insertBefore(t,r),e}}var Bb="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Di(){for(var e=12,t="";e-- >0;)t+=Bb[Math.random()*62|0];return t}function ha(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Qd(e){return e.classList?ha(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function s1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function eE(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(s1(e[n]),'" ')},"").trim()}function ml(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Jd(e){return e.size!==At.size||e.x!==At.x||e.y!==At.y||e.rotate!==At.rotate||e.flipX||e.flipY}function tE(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:l,path:u}}function nE(e){var t=e.transform,n=e.width,r=n===void 0?af:n,a=e.height,i=a===void 0?af:a,o=e.startCentered,s=o===void 0?!1:o,l="";return s&&e1?l+="translate(".concat(t.x/on-r/2,"em, ").concat(t.y/on-i/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/on,"em), calc(-50% + ").concat(t.y/on,"em)) "):l+="translate(".concat(t.x/on,"em, ").concat(t.y/on,"em) "),l+="scale(".concat(t.size/on*(t.flipX?-1:1),", ").concat(t.size/on*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var rE=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-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)); + 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)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function l1(){var e=t1,t=n1,n=F.cssPrefix,r=F.replacementClass,a=rE;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return a}var pg=!1;function Ru(){F.autoAddCss&&!pg&&(Zb(l1()),pg=!0)}var aE={mixout:function(){return{dom:{css:l1,insertCss:Ru}}},hooks:function(){return{beforeDOMElementCreation:function(){Ru()},beforeI2svg:function(){Ru()}}}},Bt=kn||{};Bt[Zt]||(Bt[Zt]={});Bt[Zt].styles||(Bt[Zt].styles={});Bt[Zt].hooks||(Bt[Zt].hooks={});Bt[Zt].shims||(Bt[Zt].shims=[]);var Et=Bt[Zt],u1=[],iE=function e(){oe.removeEventListener("DOMContentLoaded",e),js=1,u1.map(function(t){return t()})},js=!1;nn&&(js=(oe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(oe.readyState),js||oe.addEventListener("DOMContentLoaded",iE));function oE(e){nn&&(js?setTimeout(e,0):u1.push(e))}function Fi(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?s1(e):"<".concat(t," ").concat(eE(r),">").concat(i.map(Fi).join(""),"")}function hg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var sE=function(t,n){return function(r,a,i,o){return t.call(n,r,a,i,o)}},$u=function(t,n,r,a){var i=Object.keys(t),o=i.length,s=a!==void 0?sE(n,a):n,l,u,d;for(r===void 0?(l=1,d=t[i[0]]):(l=0,d=r);l=55296&&a<=56319&&n=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function gg(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function lf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=gg(t);typeof Et.hooks.addPack=="function"&&!a?Et.hooks.addPack(e,gg(t)):Et.styles[e]=L(L({},Et.styles[e]||{}),i),e==="fas"&&lf("fa",t)}var No,ko,Ao,Hr=Et.styles,cE=Et.shims,fE=(No={},Se(No,ae,Object.values(xi[ae])),Se(No,de,Object.values(xi[de])),No),Zd=null,c1={},f1={},d1={},p1={},h1={},dE=(ko={},Se(ko,ae,Object.keys(Ci[ae])),Se(ko,de,Object.keys(Ci[de])),ko);function pE(e){return~Kb.indexOf(e)}function hE(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!pE(a)?a:null}var g1=function(){var t=function(i){return $u(Hr,function(o,s,l){return o[l]=$u(s,i,{}),o},{})};c1=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){a[l.toString(16)]=o})}return a}),f1=t(function(a,i,o){if(a[o]=o,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){a[l]=o})}return a}),h1=t(function(a,i,o){var s=i[2];return a[o]=o,s.forEach(function(l){a[l]=o}),a});var n="far"in Hr||F.autoFetchSvg,r=$u(cE,function(a,i){var o=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof o=="string"&&(a.names[o]={prefix:s,iconName:l}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:s,iconName:l}),a},{names:{},unicodes:{}});d1=r.names,p1=r.unicodes,Zd=vl(F.styleDefault,{family:F.familyDefault})};Jb(function(e){Zd=vl(e.styleDefault,{family:F.familyDefault})});g1();function Bd(e,t){return(c1[e]||{})[t]}function gE(e,t){return(f1[e]||{})[t]}function nr(e,t){return(h1[e]||{})[t]}function m1(e){return d1[e]||{prefix:null,iconName:null}}function mE(e){var t=p1[e],n=Bd("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function An(){return Zd}var ep=function(){return{prefix:null,iconName:null,rest:[]}};function vl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ae:n,a=Ci[r][e],i=Oi[r][e]||Oi[r][a],o=e in Et.styles?e:null;return i||o||null}var mg=(Ao={},Se(Ao,ae,Object.keys(xi[ae])),Se(Ao,de,Object.keys(xi[de])),Ao);function yl(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},Se(t,ae,"".concat(F.cssPrefix,"-").concat(ae)),Se(t,de,"".concat(F.cssPrefix,"-").concat(de)),t),o=null,s=ae;(e.includes(i[ae])||e.some(function(u){return mg[ae].includes(u)}))&&(s=ae),(e.includes(i[de])||e.some(function(u){return mg[de].includes(u)}))&&(s=de);var l=e.reduce(function(u,d){var p=hE(F.cssPrefix,d);if(Hr[d]?(d=fE[s].includes(d)?zb[s][d]:d,o=d,u.prefix=d):dE[s].indexOf(d)>-1?(o=d,u.prefix=vl(d,{family:s})):p?u.iconName=p:d!==F.replacementClass&&d!==i[ae]&&d!==i[de]&&u.rest.push(d),!a&&u.prefix&&u.iconName){var h=o==="fa"?m1(u.iconName):{},w=nr(u.prefix,u.iconName);h.prefix&&(o=null),u.iconName=h.iconName||w||u.iconName,u.prefix=h.prefix||u.prefix,u.prefix==="far"&&!Hr.far&&Hr.fas&&!F.autoFetchSvg&&(u.prefix="fas")}return u},ep());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===de&&(Hr.fass||F.autoFetchSvg)&&(l.prefix="fass",l.iconName=nr(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=An()||"fas"),l}var vE=function(){function e(){Db(this,e),this.definitions={}}return Nb(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i0&&d.forEach(function(p){typeof p=="string"&&(n[s][p]=u)}),n[s][l]=u}),n}}]),e}(),vg=[],Wr={},Br={},yE=Object.keys(Br);function wE(e,t){var n=t.mixoutsTo;return vg=e,Wr={},Object.keys(Br).forEach(function(r){yE.indexOf(r)===-1&&delete Br[r]}),vg.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(n[o]=a[o]),Ms(a[o])==="object"&&Object.keys(a[o]).forEach(function(s){n[o]||(n[o]={}),n[o][s]=a[o][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){Wr[o]||(Wr[o]=[]),Wr[o].push(i[o])})}r.provides&&r.provides(Br)}),n}function uf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return nn?(dr("beforeI2svg",t),en("pseudoElements2svg",t),en("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;F.autoReplaceSvg===!1&&(F.autoReplaceSvg=!0),F.observeMutations=!0,oE(function(){EE({autoReplaceSvgRoot:n}),dr("watch",t)})}},bE={icon:function(t){if(t===null)return null;if(Ms(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:nr(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=vl(t[0]);return{prefix:r,iconName:nr(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(F.cssPrefix,"-"))>-1||t.match(Hb))){var a=yl(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||An(),iconName:nr(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=An();return{prefix:i,iconName:nr(i,t)||t}}}},at={noAuto:SE,config:F,dom:_E,parse:bE,library:v1,findIconDefinition:cf,toHtml:Fi},EE=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?oe:n;(Object.keys(Et.styles).length>0||F.autoFetchSvg)&&nn&&F.autoReplaceSvg&&at.dom.i2svg({node:r})};function wl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Fi(r)})}}),Object.defineProperty(e,"node",{get:function(){if(nn){var r=oe.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function TE(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(Jd(o)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};a.style=ml(L(L({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function CE(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(F.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:L(L({},a),{},{id:o}),children:r}]}]}function tp(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,d=e.titleId,p=e.extra,h=e.watchable,w=h===void 0?!1:h,m=r.found?r:n,S=m.width,E=m.height,v=a==="fak",y=[F.replacementClass,i?"".concat(F.cssPrefix,"-").concat(i):""].filter(function($){return p.classes.indexOf($)===-1}).filter(function($){return $!==""||!!$}).concat(p.classes).join(" "),_={children:[],attributes:L(L({},p.attributes),{},{"data-prefix":a,"data-icon":i,class:y,role:p.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(S," ").concat(E)})},O=v&&!~p.classes.indexOf("fa-fw")?{width:"".concat(S/E*16*.0625,"em")}:{};w&&(_.attributes[fr]=""),l&&(_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(d||Di())},children:[l]}),delete _.attributes.title);var P=L(L({},_),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:L(L({},O),p.styles)}),N=r.found&&n.found?en("generateAbstractMask",P)||{children:[],attributes:{}}:en("generateAbstractIcon",P)||{children:[],attributes:{}},b=N.children,C=N.attributes;return P.children=b,P.attributes=C,s?CE(P):TE(P)}function yg(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,s=e.watchable,l=s===void 0?!1:s,u=L(L(L({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[fr]="");var d=L({},o.styles);Jd(a)&&(d.transform=nE({transform:a,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var p=ml(d);p.length>0&&(u.style=p);var h=[];return h.push({tag:"span",attributes:u,children:[t]}),i&&h.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),h}function OE(e){var t=e.content,n=e.title,r=e.extra,a=L(L(L({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=ml(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var Lu=Et.styles;function ff(e){var t=e[0],n=e[1],r=e.slice(4),a=Vd(r,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(F.cssPrefix,"-").concat(tr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(F.cssPrefix,"-").concat(tr.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(F.cssPrefix,"-").concat(tr.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var xE={found:!1,width:512,height:512};function PE(e,t){!r1&&!F.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function df(e,t){var n=t;return t==="fa"&&F.styleDefault!==null&&(t=An()),new Promise(function(r,a){if(en("missingIconAbstract"),n==="fa"){var i=m1(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Lu[t]&&Lu[t][e]){var o=Lu[t][e];return r(ff(o))}PE(e,t),r(L(L({},xE),{},{icon:F.showMissingIcons&&e?en("missingIconAbstract")||{}:{}}))})}var wg=function(){},pf=F.measurePerformance&&To&&To.mark&&To.measure?To:{mark:wg,measure:wg},Va='FA "6.4.0"',DE=function(t){return pf.mark("".concat(Va," ").concat(t," begins")),function(){return y1(t)}},y1=function(t){pf.mark("".concat(Va," ").concat(t," ends")),pf.measure("".concat(Va," ").concat(t),"".concat(Va," ").concat(t," begins"),"".concat(Va," ").concat(t," ends"))},np={begin:DE,end:y1},ns=function(){};function Sg(e){var t=e.getAttribute?e.getAttribute(fr):null;return typeof t=="string"}function NE(e){var t=e.getAttribute?e.getAttribute(Kd):null,n=e.getAttribute?e.getAttribute(Yd):null;return t&&n}function kE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(F.replacementClass)}function AE(){if(F.autoReplaceSvg===!0)return rs.replace;var e=rs[F.autoReplaceSvg];return e||rs.replace}function RE(e){return oe.createElementNS("http://www.w3.org/2000/svg",e)}function $E(e){return oe.createElement(e)}function w1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?RE:$E:n;if(typeof e=="string")return oe.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(w1(o,{ceFn:r}))}),a}function LE(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var rs={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(w1(a),n)}),n.getAttribute(fr)===null&&F.keepOriginalSource){var r=oe.createComment(LE(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Qd(n).indexOf(F.replacementClass))return rs.replace(t);var a=new RegExp("".concat(F.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===F.replacementClass||l.match(a)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(s){return Fi(s)}).join(` +`);n.setAttribute(fr,""),n.innerHTML=o}};function _g(e){e()}function S1(e,t){var n=typeof t=="function"?t:ns;if(e.length===0)n();else{var r=_g;F.mutateApproach===Ib&&(r=kn.requestAnimationFrame||_g),r(function(){var a=AE(),i=np.begin("mutate");e.map(a),i(),n()})}}var rp=!1;function _1(){rp=!0}function hf(){rp=!1}var Fs=null;function bg(e){if(fg&&F.observeMutations){var t=e.treeCallback,n=t===void 0?ns:t,r=e.nodeCallback,a=r===void 0?ns:r,i=e.pseudoElementsCallback,o=i===void 0?ns:i,s=e.observeMutationsRoot,l=s===void 0?oe:s;Fs=new fg(function(u){if(!rp){var d=An();ha(u).forEach(function(p){if(p.type==="childList"&&p.addedNodes.length>0&&!Sg(p.addedNodes[0])&&(F.searchPseudoElements&&o(p.target),n(p.target)),p.type==="attributes"&&p.target.parentNode&&F.searchPseudoElements&&o(p.target.parentNode),p.type==="attributes"&&Sg(p.target)&&~qb.indexOf(p.attributeName))if(p.attributeName==="class"&&NE(p.target)){var h=yl(Qd(p.target)),w=h.prefix,m=h.iconName;p.target.setAttribute(Kd,w||d),m&&p.target.setAttribute(Yd,m)}else kE(p.target)&&a(p.target)})}}),nn&&Fs.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ME(){Fs&&Fs.disconnect()}function jE(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),o=i[0],s=i.slice(1);return o&&s.length>0&&(r[o]=s.join(":").trim()),r},{})),n}function FE(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=yl(Qd(e));return a.prefix||(a.prefix=An()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=gE(a.prefix,e.innerText)||Bd(a.prefix,sf(e.innerText))),!a.iconName&&F.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function IE(e){var t=ha(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return F.autoA11y&&(n?t["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat(r||Di()):(t["aria-hidden"]="true",t.focusable="false")),t}function UE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:At,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Eg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=FE(e),r=n.iconName,a=n.prefix,i=n.rest,o=IE(e),s=uf("parseNodeAttributes",{},e),l=t.styleParser?jE(e):[];return L({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:At,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},s)}var zE=Et.styles;function b1(e){var t=F.autoReplaceSvg==="nest"?Eg(e,{styleParser:!1}):Eg(e);return~t.extra.classes.indexOf(a1)?en("generateLayersText",e,t):en("generateSvgReplacementMutation",e,t)}var Rn=new Set;Xd.map(function(e){Rn.add("fa-".concat(e))});Object.keys(Ci[ae]).map(Rn.add.bind(Rn));Object.keys(Ci[de]).map(Rn.add.bind(Rn));Rn=Mi(Rn);function Tg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!nn)return Promise.resolve();var n=oe.documentElement.classList,r=function(p){return n.add("".concat(dg,"-").concat(p))},a=function(p){return n.remove("".concat(dg,"-").concat(p))},i=F.autoFetchSvg?Rn:Xd.map(function(d){return"fa-".concat(d)}).concat(Object.keys(zE));i.includes("fa")||i.push("fa");var o=[".".concat(a1,":not([").concat(fr,"])")].concat(i.map(function(d){return".".concat(d,":not([").concat(fr,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=ha(e.querySelectorAll(o))}catch{}if(s.length>0)r("pending"),a("complete");else return Promise.resolve();var l=np.begin("onTree"),u=s.reduce(function(d,p){try{var h=b1(p);h&&d.push(h)}catch(w){r1||w.name==="MissingIcon"&&console.error(w)}return d},[]);return new Promise(function(d,p){Promise.all(u).then(function(h){S1(h,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),l(),d()})}).catch(function(h){l(),p(h)})})}function HE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;b1(e).then(function(n){n&&S1([n],t)})}function WE(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:cf(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:cf(a||{})),e(r,L(L({},n),{},{mask:a}))}}var GE=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?At:r,i=n.symbol,o=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,u=n.maskId,d=u===void 0?null:u,p=n.title,h=p===void 0?null:p,w=n.titleId,m=w===void 0?null:w,S=n.classes,E=S===void 0?[]:S,v=n.attributes,y=v===void 0?{}:v,_=n.styles,O=_===void 0?{}:_;if(t){var P=t.prefix,N=t.iconName,b=t.icon;return wl(L({type:"icon"},t),function(){return dr("beforeDOMElementCreation",{iconDefinition:t,params:n}),F.autoA11y&&(h?y["aria-labelledby"]="".concat(F.replacementClass,"-title-").concat(m||Di()):(y["aria-hidden"]="true",y.focusable="false")),tp({icons:{main:ff(b),mask:l?ff(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:P,iconName:N,transform:L(L({},At),a),symbol:o,title:h,maskId:d,titleId:m,extra:{attributes:y,styles:O,classes:E}})})}},VE={mixout:function(){return{icon:WE(GE)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Tg,n.nodeCallback=HE,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?oe:r,i=n.callback,o=i===void 0?function(){}:i;return Tg(a,o)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,o=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,d=r.mask,p=r.maskId,h=r.extra;return new Promise(function(w,m){Promise.all([df(a,s),d.iconName?df(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(S){var E=Vd(S,2),v=E[0],y=E[1];w([n,tp({icons:{main:v,mask:y},prefix:s,iconName:a,transform:l,symbol:u,maskId:p,title:i,titleId:o,extra:h,watchable:!0})])}).catch(m)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.transform,s=n.styles,l=ml(s);l.length>0&&(a.style=l);var u;return Jd(o)&&(u=en("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:a}}}},qE={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return wl({type:"layer"},function(){dr("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(s){Array.isArray(s)?s.map(function(l){o=o.concat(l.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(F.cssPrefix,"-layers")].concat(Mi(i)).join(" ")},children:o}]})}}}},KE={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,o=r.classes,s=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,d=r.styles,p=d===void 0?{}:d;return wl({type:"counter",content:n},function(){return dr("beforeDOMElementCreation",{content:n,params:r}),OE({content:n.toString(),title:i,extra:{attributes:u,styles:p,classes:["".concat(F.cssPrefix,"-layers-counter")].concat(Mi(s))}})})}}}},YE={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?At:a,o=r.title,s=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,d=r.attributes,p=d===void 0?{}:d,h=r.styles,w=h===void 0?{}:h;return wl({type:"text",content:n},function(){return dr("beforeDOMElementCreation",{content:n,params:r}),yg({content:n,transform:L(L({},At),i),title:s,extra:{attributes:p,styles:w,classes:["".concat(F.cssPrefix,"-layers-text")].concat(Mi(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,o=r.extra,s=null,l=null;if(e1){var u=parseInt(getComputedStyle(n).fontSize,10),d=n.getBoundingClientRect();s=d.width/u,l=d.height/u}return F.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,yg({content:n.innerHTML,width:s,height:l,transform:i,title:a,extra:o,watchable:!0})])}}},XE=new RegExp('"',"ug"),Cg=[1105920,1112319];function QE(e){var t=e.replace(XE,""),n=uE(t,0),r=n>=Cg[0]&&n<=Cg[1],a=t.length===2?t[0]===t[1]:!1;return{value:sf(a?t[0]:t),isSecondary:r||a}}function Og(e,t){var n="".concat(Fb).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=ha(e.children),o=i.filter(function(b){return b.getAttribute(of)===t})[0],s=kn.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(Wb),u=s.getPropertyValue("font-weight"),d=s.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&d!=="none"&&d!==""){var p=s.getPropertyValue("content"),h=~["Sharp"].indexOf(l[2])?de:ae,w=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Oi[h][l[2].toLowerCase()]:Gb[h][u],m=QE(p),S=m.value,E=m.isSecondary,v=l[0].startsWith("FontAwesome"),y=Bd(w,S),_=y;if(v){var O=mE(S);O.iconName&&O.prefix&&(y=O.iconName,w=O.prefix)}if(y&&!E&&(!o||o.getAttribute(Kd)!==w||o.getAttribute(Yd)!==_)){e.setAttribute(n,_),o&&e.removeChild(o);var P=UE(),N=P.extra;N.attributes[of]=t,df(y,w).then(function(b){var C=tp(L(L({},P),{},{icons:{main:b,mask:ep()},prefix:w,iconName:_,extra:N,watchable:!0})),$=oe.createElement("svg");t==="::before"?e.insertBefore($,e.firstChild):e.appendChild($),$.outerHTML=C.map(function(R){return Fi(R)}).join(` +`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function JE(e){return Promise.all([Og(e,"::before"),Og(e,"::after")])}function ZE(e){return e.parentNode!==document.head&&!~Ub.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(of)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function xg(e){if(nn)return new Promise(function(t,n){var r=ha(e.querySelectorAll("*")).filter(ZE).map(JE),a=np.begin("searchPseudoElements");_1(),Promise.all(r).then(function(){a(),hf(),t()}).catch(function(){a(),hf(),n()})})}var BE={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=xg,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?oe:r;F.searchPseudoElements&&xg(a)}}},Pg=!1,eT={mixout:function(){return{dom:{unwatch:function(){_1(),Pg=!0}}}},hooks:function(){return{bootstrap:function(){bg(uf("mutationObserverCallbacks",{}))},noAuto:function(){ME()},watch:function(n){var r=n.observeMutationsRoot;Pg?hf():bg(uf("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Dg=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),o=i[0],s=i.slice(1).join("-");if(o&&s==="h")return r.flipX=!0,r;if(o&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(o){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},tT={mixout:function(){return{parse:{transform:function(n){return Dg(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=Dg(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,o=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),u="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),d="rotate(".concat(a.rotate," 0 0)"),p={transform:"".concat(l," ").concat(u," ").concat(d)},h={transform:"translate(".concat(o/2*-1," -256)")},w={outer:s,inner:p,path:h};return{tag:"g",attributes:L({},w.outer),children:[{tag:"g",attributes:L({},w.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:L(L({},r.icon.attributes),w.path)}]}]}}}},Mu={x:0,y:0,width:"100%",height:"100%"};function Ng(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function nT(e){return e.tag==="g"?e.children:[e]}var rT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?yl(a.split(" ").map(function(o){return o.trim()})):ep();return i.prefix||(i.prefix=An()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.mask,s=n.maskId,l=n.transform,u=i.width,d=i.icon,p=o.width,h=o.icon,w=tE({transform:l,containerWidth:p,iconWidth:u}),m={tag:"rect",attributes:L(L({},Mu),{},{fill:"white"})},S=d.children?{children:d.children.map(Ng)}:{},E={tag:"g",attributes:L({},w.inner),children:[Ng(L({tag:d.tag,attributes:L(L({},d.attributes),w.path)},S))]},v={tag:"g",attributes:L({},w.outer),children:[E]},y="mask-".concat(s||Di()),_="clip-".concat(s||Di()),O={tag:"mask",attributes:L(L({},Mu),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,v]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:_},children:nT(h)},O]};return r.push(P,{tag:"rect",attributes:L({fill:"currentColor","clip-path":"url(#".concat(_,")"),mask:"url(#".concat(y,")")},Mu)}),{children:r,attributes:a}}}},aT={provides:function(t){var n=!1;kn.matchMedia&&(n=kn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:L(L({},a),{},{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"})});var o=L(L({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:L(L({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:L(L({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:L(L({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:L(L({},a),{},{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:n?[]:[{tag:"animate",attributes:L(L({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:L(L({},a),{},{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:L(L({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},iT={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},oT=[aE,VE,qE,KE,YE,BE,eT,tT,rT,aT,iT];wE(oT,{mixoutsTo:at});at.noAuto;at.config;at.library;at.dom;var gf=at.parse;at.findIconDefinition;at.toHtml;var sT=at.icon;at.layer;at.text;at.counter;var E1={exports:{}},lT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uT=lT,cT=uT;function T1(){}function C1(){}C1.resetWarningCache=T1;var fT=function(){function e(r,a,i,o,s,l){if(l!==cT){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:C1,resetWarningCache:T1};return n.PropTypes=n,n};E1.exports=fT();var dT=E1.exports;const V=Bs(dT);function kg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function hT(e,t){if(e==null)return{};var n=pT(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mf(e){return gT(e)||mT(e)||vT(e)||yT()}function gT(e){if(Array.isArray(e))return vf(e)}function mT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vT(e,t){if(e){if(typeof e=="string")return vf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vf(e,t)}}function vf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return x1(e,l)}),a=Object.keys(t.attributes||{}).reduce(function(l,u){var d=t.attributes[u];switch(u){case"class":l.attrs.className=d,delete t.attributes.class;break;case"style":l.attrs.style=ET(d);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=d:l.attrs[O1(u)]=d}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,s=hT(n,_T);return a.attrs.style=vn(vn({},a.attrs.style),o),e.apply(void 0,[t.tag,vn(vn({},a.attrs),s)].concat(mf(r)))}var P1=!1;try{P1=!0}catch{}function TT(){if(!P1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ag(e){if(e&&Is(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(gf.icon)return gf.icon(e);if(e===null)return null;if(e&&Is(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function ju(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Gr({},e,t):{}}var Ue=wn.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,l=e.maskId,u=Ag(n),d=ju("classes",[].concat(mf(wT(e)),mf(i.split(" ")))),p=ju("transform",typeof e.transform=="string"?gf.transform(e.transform):e.transform),h=ju("mask",Ag(r)),w=sT(u,vn(vn(vn(vn({},d),p),h),{},{symbol:a,title:o,titleId:s,maskId:l}));if(!w)return TT("Could not find icon",u),null;var m=w.abstract,S={ref:t};return Object.keys(e).forEach(function(E){Ue.defaultProps.hasOwnProperty(E)||(S[E]=e[E])}),CT(m[0],S)});Ue.displayName="FontAwesomeIcon";Ue.propTypes={beat:V.bool,border:V.bool,beatFade:V.bool,bounce:V.bool,className:V.string,fade:V.bool,flash:V.bool,mask:V.oneOfType([V.object,V.array,V.string]),maskId:V.string,fixedWidth:V.bool,inverse:V.bool,flip:V.oneOf([!0,!1,"horizontal","vertical","both"]),icon:V.oneOfType([V.object,V.array,V.string]),listItem:V.bool,pull:V.oneOf(["right","left"]),pulse:V.bool,rotation:V.oneOf([0,90,180,270]),shake:V.bool,size:V.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:V.bool,spinPulse:V.bool,spinReverse:V.bool,symbol:V.oneOfType([V.bool,V.string]),title:V.string,titleId:V.string,transform:V.oneOfType([V.string,V.object]),swapOpacity:V.bool};Ue.defaultProps={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};var CT=x1.bind(null,wn.createElement),OT={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M246.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 256c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l128-128z"]},Rg={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},xT={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V448c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H176c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},$g={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"]},PT={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},DT={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V173.3c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32H64zm0 96c0-17.7 14.3-32 32-32H288c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V128zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},NT={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},kT={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},AT={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]};const RT="_headerDiagnosticsBtnContainer_1ogb6_1",$T="_taggleBtn_1ogb6_12",LT="_toggleBtnInnerOn_1ogb6_26",MT="_toggleBtnInnerOff_1ogb6_27",jT="_faIcon_1ogb6_48",Cr={headerDiagnosticsBtnContainer:RT,taggleBtn:$T,toggleBtnInnerOn:LT,toggleBtnInnerOff:MT,faIcon:jT};function FT(){const{panelState:e,setPanelState:t,setViewInLogPanel:n}=x.useContext(mt);function r(){t(a=>{const i={...a},o=!i.diagnostics.show;i.diagnostics.show=o;const s=localStorage.getItem("appSetting"),l=JSON.parse(s);return l.diagnosticsPanelShow=o,localStorage.setItem("appSetting",JSON.stringify(l)),i}),n(a=>{const i={...a};return e.diagnostics.show&&(i.streamTable=!1,i.diagnosticsLogs=!0),e.diagnostics.show||(i.streamTable=!0,i.diagnosticsLogs=!1),i})}return T.jsxs("div",{id:"headerDiagnosticsBtn",className:`header_each_btn ${Cr.headerDiagnosticsBtnContainer}`,onClick:r,children:[T.jsx("span",{className:Cr.taggleBtn,children:T.jsx("span",{className:e.diagnostics.show?Cr.toggleBtnInnerOn:Cr.toggleBtnInnerOff,children:e.diagnostics.show?T.jsx(Ue,{icon:kT,className:Cr.faIcon}):T.jsx(Ue,{icon:AT,className:Cr.faIcon})})}),T.jsx("p",{children:"Diagnostics"})]})}const IT="_headerLeftMainContainer_1bzdp_1",UT="_headerLogoContainer_1bzdp_8",zT="_headerLogo_1bzdp_8",HT="_headerLogoText_1bzdp_21",Ro={headerLeftMainContainer:IT,headerLogoContainer:UT,headerLogo:zT,headerLogoText:HT},WT="/assets/idaes-logo-4b9fada6.png";function GT(){return T.jsxs("div",{className:Ro.headerLeftMainContainer,children:[T.jsxs("div",{id:"headerLogoContainer",className:`headerLogoContainer ${Ro.headerLogoContainer}`,children:[T.jsx("img",{src:WT,alt:"idaes logo for header component",id:"headerLogo",className:`${Ro.headerLogo}`}),T.jsx("p",{id:"headerLogoText",className:`${Ro.headerLogoText}`,children:"IDAES"})]}),T.jsx("div",{children:T.jsx(FT,{})})]})}const VT="_header_flowsheet_name_3hhh9_1",qT={header_flowsheet_name:VT};function KT(){const{fv_id:e}=x.useContext(mt);return T.jsx("p",{id:"flowsheet_name_title",className:`${qT.header_flowsheet_name}`,children:e||"Name not found"})}function YT(){return T.jsxs("li",{id:"refresh_btn",className:"header_each_btn",children:[T.jsx(Ue,{icon:xT,className:"mr-sm"}),"Refresh"]})}function XT(){return T.jsxs("li",{id:"save_btn",className:"header_each_btn",children:[T.jsx(Ue,{icon:DT,className:"mr-sm"}),"Save"]})}const QT="_link_5oxur_1",JT={link:QT};function ZT(){return T.jsxs("li",{id:"help_btn",className:"header_each_btn",children:[T.jsx(Ue,{icon:PT,className:"mr-sm"}),T.jsx("a",{href:"https://idaes-pse.readthedocs.io/en/latest/tutorials/getting_started/index.html",target:"_blank",className:`${JT.link}`,children:"Help"})]})}const BT="_header_fn_btn_wrapper_ul_18i4g_1",eC={header_fn_btn_wrapper_ul:BT};function tC(){return T.jsxs("ul",{className:`${eC.header_fn_btn_wrapper_ul}`,children:[T.jsx(YT,{}),T.jsx(XT,{}),T.jsx(ZT,{})]})}const nC="_header_container_1gczp_1",rC={header_container:nC};function aC(){return x.useContext(mt),T.jsxs("header",{id:"header",className:`row ${rC.header_container}`,children:[T.jsx(GT,{}),T.jsx(KT,{}),T.jsx(tC,{})]})}const yf={attrs:{g:{},text:{display:"block","font-size":"7","text-anchor":"left"},rect:{width:"2000",height:"2000",fill:"white",rx:0,ry:0,"fill-opacity":"1"},tspan:{fill:"white",dy:10}}},wf={attrs:{text:{display:"none"},rect:{"fill-opacity":"0"}}},Us=0,Lg=1;class iC{constructor(t){I(this,"_app");I(this,"joint");I(this,"_originalLinkStroke");I(this,"_originalLinkStrokeWidth");I(this,"_highlightLinkStroke");I(this,"_highlightLinkStrokeWidth");I(this,"_graph");I(this,"_paper");I(this,"_paperScroller");I(this,"_selection");this._app=t;let n=joint.shapes.standard,r=800,a=800,i=1;this._originalLinkStroke="#979797",this._originalLinkStrokeWidth=2,this._highlightLinkStroke="#0B79BD",this._highlightLinkStrokeWidth=4,this._graph=new joint.dia.Graph([],{cellNamespace:{standard:n}}),this._paper=new joint.dia.Paper({model:this._graph,cellViewNamespace:{standard:n},width:r,height:a,gridSize:i,drawGrid:!1,interactive:!0}),this._paperScroller=new joint.ui.PaperScroller({padding:100,paper:this._paper,autoResizePaper:!0,scrollWhileDragging:!0,baseWidth:10,baseHeight:10,cursor:"grab"}),this._selection=new joint.ui.Selection({paper:this._paper}),this._selection.removeHandle("remove"),this._selection.removeHandle("rotate"),this._selection.removeHandle("resize"),self=this,document.getElementById("fv").append(self._paperScroller.render().el),self.preSetupRegisterEvents()}get graph(){return this._graph}set graph(t){this._graph.fromJSON(t)}get paper(){return self._paper}get paperScroller(){return self._paperScroller}get selection(){return self._selection}translate_for_angle(t){return{0:[0,5],90:[38,-35],180:[0,-72],270:[-38,-34]}[t]}preSetupRegisterEvents(){this._graph.on("change:position change:angle change:vertices",()=>{this._app.graphChanged()});let t=document.getElementById("fv");t||console.error("idaes canvas is not found");const n=document.querySelector("#stream-table-data");t.addEventListener("HighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("HighlightStream"))}),t.addEventListener("RemoveHighlightStream",r=>{const a=t.querySelector(`[model-id=${r.detail.streamId}]`);a&&a.dispatchEvent(new Event("RemoveHighlightStream"))}),self._paper.on("blank:pointerdown",self._selection.startSelecting),self._paper.on("element:pointerup",function(r,a){console.log("work"),(a.shiftKey||a.metaKey)&&self._selection.collection.add(r.model)}),self._selection.on("selection-box:pointerdown",function(r,a){(a.shiftKey||a.metaKey)&&self._selection.collection.remove(r.model)}),self._paper.on("element:contextmenu",function(r,a){r.model.rotate(90);const i=r.model.angle(),o=self.translate_for_angle(i,0,0);o===void 0?console.error(`Angle of unit model must be either 0, 90, 180, or 270. Angle is ${i}`):r.model.attr("label/transform",`translate(${o[0]}, ${o[1]}) rotate(-${i})`)}),self._paper.on("link:mouseenter",function(r){let a=document.querySelector("#stream-table-data"),i=document.querySelector("#fv");if(!a||!i)return;let o=new joint.linkTools.Vertices({focusOpacity:.5,redundancyRemoval:!0,snapRadius:20,vertexAdding:!0}),s=new joint.linkTools.Segments,l=new joint.dia.ToolsView({tools:[o,s]});r.addTools(l),r.showTools();const u=new CustomEvent("HighlightStream",{detail:{streamId:r.model.id}});i.dispatchEvent(u),a.dispatchEvent(u)}),self._paper.on("link:mouseleave",function(r){r.hideTools();const a=new CustomEvent("RemoveHighlightStream",{detail:{streamId:r.model.id}});t&&t.dispatchEvent(a),n&&n.dispatchEvent(a)}),self._paper.on("link:contextmenu",function(r,a){r.model.label(Us).attrs.text.display==="none"?r.model.label(Us,yf):r.model.label(0,wf)})}zoomToFit(t=30){this._paperScroller.zoomToFit({padding:t})}postSetupRegisterEvents(){this.zoomToFit(),this._graph.getLinks().forEach(t=>{let n=t.findView(this._paper);n.el.addEventListener("HighlightStream",()=>{n.model.attr({line:{stroke:this._highlightLinkStroke,"stroke-width":this._highlightLinkStrokeWidth}})}),n.el.addEventListener("RemoveHighlightStream",()=>{n.model.attr({line:{stroke:this._originalLinkStroke,"stroke-width":this._originalLinkStrokeWidth}})})})}reorderLabel(t){let n=null,r=null;if(t.cells.forEach((i,o)=>{i.id.includes("liq")&&(n=o),i.id.includes("vap")&&(r=o)}),!n||!r)return;const a=t.cells[n];t.cells[n]=t.cells[r],t.cells[r]=a,t.cells[n]}setup(t){const n="/assets/image/flowsheet_icons/";t.cells.reverse(),t.cells.forEach(r=>{if(r.type==="standard.Image"){let a=n+r.attrs.image.xlinkHref.match(/([^\/]+\.svg)$/)[0];r.attrs.image={...r.attrs.image,xlinkHref:a}}r.labels&&(r.z=1e3,r.labels[0])}),this.reorderLabel(t),this._graph.fromJSON(t),this.postSetupRegisterEvents()}}class oC{constructor(t){I(this,"_model");this._model=t}get model(){return this._model}set model(t){this._model=t}findCellIndex(t,n){for(let r=0;r{const o=i.getEndAnchor("source"),s=i.getEndAnchor("target"),l=new g.Point(o.x+t.source.x,o.y+t.source.y),u=new g.Point(s.x+t.destination.x,s.y+t.destination.y),d=i.getEndView("source").model.angle(),p=i.getEndView("target").model.angle(),h=d%180===0?1:-1,w=p%180===0?1:-1,m=l.rotate(o,h*d),S=u.rotate(s,w*p);return joint.routers.manhattan([m,...r,S],a,i)}}processRoutingConfig(){const t=this._model.routing_config;for(let n in t){const r=this.findCellIndex(n,"standard.Link");let a=t[n].cell_config.gap,i=this.routerGapFnFactory(a);this._model.cells[r].router=i}return this._model.cells.map(n=>{if(n.labels&&n.labels[1].position)return n.labels.reverse(),n}),this._model}}let sC=class{constructor(t,n,r){I(this,"_app");I(this,"UNFIXED","unfixed");I(this,"FIXED","fixed");I(this,"PARAMETER","parameter");I(this,"EXPRESSION","expression");I(this,"highlightFn");I(this,"removeHighlightFn");I(this,"gridCellMouseEnterFn");I(this,"gridCellMouseLeaveFn");I(this,"existing_var_types");I(this,"_gridOptions");I(this,"viewInLogPanel");this._app=t,this.viewInLogPanel=r,this.defineTableBrushingFns(),this.initTable(n),this.existing_var_types=new Set}initTable(t){this.clearTable(),this.emptyVarTypesPanel(),this.fillTable(t),this.setupEvents()}clearTable(){const t=document.querySelector("#stream-table-data");t&&(t.innerHTML="")}emptyVarTypesPanel(){this.existing_var_types=new Set;const t=document.querySelector("#existing-variable-types");t.innerHTML=""}fillVarTypesPanel(){const t=document.querySelector("#existing-variable-types"),n="streamtable-vartype-element";if(this.existing_var_types.has(this.FIXED)||this.existing_var_types.has(this.PARAMETER)||this.existing_var_types.has(this.EXPRESSION)){const r=document.createElement("p");r.innerHTML="Annotated Variable Types:",r.className=n,t.appendChild(r)}this.existing_var_types.forEach(r=>{switch(r){case this.UNFIXED:console.debug("Unfixed variables don't have a visual indicator");break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:const a=document.createElement("span");a.className=n;const i=document.createElement("span"),o=document.createElement("span");o.className="streamtable-vartype-text",i.className=`streamtable-vartype-${r}`,i.title=r,o.innerHTML=r,a.appendChild(i),a.appendChild(o),t.appendChild(a);break;default:console.warn("Couldn't identify Variable type")}})}fillTable(t){let n=t.model.stream_table;const r=document.querySelector("#hide-fields-list");r&&(r.innerHTML="");let a=n.columns,i=[];for(let w in a){let m=a[w];if(m!==""&&m!=="Units"&&!m.includes("_vartype"))if(m==="Variable")i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,pinned:"left",cellRenderer:S=>''+S.value+""});else{i.push({headerName:m,field:m,filter:"agTextColumnFilter",sortable:!0,resizable:!0,cellRenderer:v=>''+v.value+""});let S=document.createElement("li"),E=document.createElement("div");E.className="checkbox",E.innerHTML=` + + `,S.appendChild(E),r.appendChild(S)}}let o=n.index,s=n.data,l=[],u="Variable";for(let w in o){let m={},S=s[w];for(let E in a)if(a[E]==="Units")S[E]&&S[E].html?m[u]=m[u]+''+S[E].html+"":m[u]=m[u]+'';else if(a[E]==="Variable")m[a[E]]=S[E];else{var[d,p]=S[E];let v="";switch(p){case this.UNFIXED:this.existing_var_types.add(p);break;case this.FIXED:case this.PARAMETER:case this.EXPRESSION:this.existing_var_types.add(p),v=``;break;default:console.warn(`Couldn't identify Variable type: ${p}`)}m[a[E]]=v+''+d+""}l.push(m)}this.fillVarTypesPanel(),this._gridOptions={columnDefs:i,rowData:l,suppressColumnVirtualisation:!0},this._gridOptions.getRowStyle=function(w){if(w.node.rowIndex%2===0)return{background:"#f3f3f3"}};let h=document.querySelector("#stream-table-data");new agGrid.Grid(h,this._gridOptions),this._gridOptions.columnApi.autoSizeAllColumns()}defineTableBrushingFns(){let t=document.querySelector("#stream-table-data"),n=document.querySelector("#fv");!t||!n||!this.viewInLogPanel.streamTable||(this.highlightFn=r=>{let a=t.querySelectorAll(`[col-id=${r.detail.streamId}]`);a.forEach((i,o)=>{i.getAttribute("role")=="columnheader"?i.classList.add("link-streamtable-hover-columnheader"):o==a.length-1?i.classList.add("link-streamtable-hover-lastrow"):i.classList.add("link-streamtable-hover")})},this.removeHighlightFn=r=>{console.log("remove hight light"),t.querySelectorAll(`[col-id=${r.detail.streamId}]`).forEach(i=>{i.classList.remove("link-streamtable-hover-columnheader"),i.classList.remove("link-streamtable-hover-lastrow"),i.classList.remove("link-streamtable-hover")})},this.gridCellMouseEnterFn=r=>{const a=r.target.getAttribute("col-id");if(a){const i=new CustomEvent("HighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)}},this.gridCellMouseLeaveFn=r=>{const a=r.target.getAttribute("col-id"),i=new CustomEvent("RemoveHighlightStream",{detail:{streamId:a}});t.dispatchEvent(i),n.dispatchEvent(i)})}registerTableBrushing(){let t=document.querySelector("#stream-table-data");document.querySelector("#fv");let n=document.querySelectorAll("[col-id]");t.removeEventListener("HighlightStream",this.highlightFn),t.removeEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.removeEventListener("mouseenter",this.gridCellMouseEnterFn),r.removeEventListener("mouseleave",this.gridCellMouseLeaveFn)}),t.addEventListener("HighlightStream",this.highlightFn),t.addEventListener("RemoveHighlightStream",this.removeHighlightFn),n.forEach(r=>{r.addEventListener("mouseenter",this.gridCellMouseEnterFn),r.addEventListener("mouseleave",this.gridCellMouseLeaveFn)})}setupEvents(){let n=document.querySelector("#hide-fields-list").querySelectorAll("input[type=checkbox]"),r=this;n.forEach(function(a){a.addEventListener("change",function(i){var l;i.preventDefault();let o=i.target,s=(l=o.parentElement)==null?void 0:l.querySelector("span");o.checked?(s.style.display="block",r._gridOptions.columnApi.setColumnVisible(o.id,!0),r.registerTableBrushing()):(s.style.display="none",r._gridOptions.columnApi.setColumnVisible(o.id,!1))})}),this.registerTableBrushing()}};class lC{constructor(t,n,r,a,i,o,s){I(this,"_app");I(this,"_paper");I(this,"_stream_table");I(this,"flowsheetId");I(this,"getFSUrl");I(this,"putFSUrl");I(this,"isFvShow");I(this,"zoomRate");I(this,"toggleStreamNameBtn");I(this,"toggleLabelsBtn");I(this,"zoomInBtn");I(this,"zoomOutBtn");I(this,"zoomFitBtn");I(this,"zoomInHandler");I(this,"zoomOutHandler");I(this,"zoomFitHandler");this._app=t,this._paper=n,this._stream_table=r,this.flowsheetId=a,this.getFSUrl=i,this.putFSUrl=o,this.isFvShow=s,this.zoomRate=.2,this.zoomInHandler=void 0,this.zoomOutHandler=void 0,this.zoomFitHandler=void 0,this.registerEventExportFlowsheetToPng(),this.registerEventExportFlowsheetToSvg(),this.registerEventRefresh(this.getFSUrl,this.putFSUrl),this.registerEventSave(this.putFSUrl),this.zoomInBtn=document.querySelector("#zoom-in-btn"),this.zoomOutBtn=document.querySelector("#zoom-out-btn"),this.zoomFitBtn=document.querySelector("#zoom-to-fit"),s&&(this.toggleStreamNameBtn=document.querySelector("#stream-names-toggle"),this.toggleStreamNameBtn&&this.registerToggleStreamNamesEvent(this.toggleStreamNameBtn),this.toggleLabelsBtn=document.querySelector("#show-label-toggle"),this.toggleLabelsBtn&&this.registerEventToggleLabel(this.toggleLabelsBtn),this.zoomInBtn&&this.zoomOutBtn&&this.zoomFitBtn&&this.registerZoomEvent(this.zoomInBtn,this.zoomOutBtn,this.zoomFitBtn))}registerZoomEvent(t,n,r){this.zoomInHandler=()=>this.zoomInEvent(this._paper.paperScroller,this.zoomRate),this.zoomOutHandler=()=>this.zoomOutEvent(this._paper.paperScroller,this.zoomRate),this.zoomFitHandler=()=>this.zoomFitEvent(),t.addEventListener("click",this.zoomInHandler),n.addEventListener("click",this.zoomOutHandler),r.addEventListener("click",this.zoomFitHandler)}zoomInEvent(t,n){t.zoom(n,{max:100})}zoomOutEvent(t,n){t.zoom(-n,{min:.01})}zoomFitEvent(){this._paper.zoomToFit()}registerToggleStreamNamesEvent(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")==="true"?this._paper._graph.getLinks().forEach(function(r){r.label(Lg,wf)}):this._paper._graph.getLinks().forEach(function(r){r.label(Lg,yf)})})}registerEventExportFlowsheetToPng(){const t=document.querySelector("#headerExportImageBtn");document.querySelector("#headerExportSvgBtn"),console.log("event reged"),t.addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toPNG(function(a){new joint.ui.Lightbox({image:a,downloadable:!0,fileName:r.concat(".png")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventExportFlowsheetToSvg(){document.querySelector("#headerExportSvgBtn").addEventListener("click",()=>{let n=this._paper.paper;const r=this.flowsheetId;n.hideTools(),n.toSVG(a=>{const i=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(i);new joint.ui.Lightbox({image:o,downloadable:!0,fileName:r.concat(".svg")}).open()},{scale:2,pixelRatio:2,preserveDimensions:!0,convertImagesToDataUris:!0,useComputedStyles:!0,stylesheet:".scalable * { vector-effect: non-scaling-stroke }"})})}registerEventToggleLabel(t){t.addEventListener("click",()=>{t.getAttribute("data-toggle")=="true"?this._paper._graph.getLinks().forEach(function(r){r.label(Us,yf)}):this._paper._graph.getLinks().forEach(function(r){r.label(Us,wf)})})}registerEventRefresh(t,n){document.querySelector("#refresh_btn").addEventListener("click",()=>{this._app.refreshModel(t,n,this._paper)})}registerEventSave(t){document.querySelector("#save_btn").addEventListener("click",()=>{this._app.saveModel(t,this._paper.graph)})}cleanUpEvent(){let t=document.getElementById("zoom-in-btn"),n=document.getElementById("zoom-out-btn"),r=document.getElementById("zoom-to-fit");if(t){let u=t.cloneNode(!0);t.parentNode.replaceChild(u,t)}if(n){let u=n.cloneNode(!0);n.parentNode.replaceChild(u,n)}if(r){let u=r.cloneNode(!0);r.parentNode.replaceChild(u,r)}let a=document.getElementById("flowsheet_component_header_dropdown_container"),i=document.getElementById("headerExportImageBtn"),o=document.getElementById("headerExportSvgBtn");if(i){let u=i.cloneNode(!0);a?a.replaceChild(u,i):console.log("error no parent nodes")}if(o){let u=o.cloneNode(!0);a?a.replaceChild(u,o):console.log("error download svg btn replacement failed, in toolbar, parent not found!")}let s=document.getElementById("save_btn");if(s){let u=s.cloneNode(!0);s.parentNode?s.parentNode.replaceChild(u,s):console.log("error save btn replacement error handle in toolbar, parent not found!")}let l=document.getElementById("refresh_btn");if(l){let u=l.cloneNode(!0);l.parentNode?l.parentNode.replaceChild(u,l):console.log("error refresh btn replacement error handle in toolbar, parent not found!")}}}function D1(e,t){return function(){return e.apply(t,arguments)}}const{toString:uC}=Object.prototype,{getPrototypeOf:ap}=Object,Sl=(e=>t=>{const n=uC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mt=e=>(e=e.toLowerCase(),t=>Sl(t)===e),_l=e=>t=>typeof t===e,{isArray:ga}=Array,Ni=_l("undefined");function cC(e){return e!==null&&!Ni(e)&&e.constructor!==null&&!Ni(e.constructor)&&pt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const N1=Mt("ArrayBuffer");function fC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&N1(e.buffer),t}const dC=_l("string"),pt=_l("function"),k1=_l("number"),bl=e=>e!==null&&typeof e=="object",pC=e=>e===!0||e===!1,as=e=>{if(Sl(e)!=="object")return!1;const t=ap(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},hC=Mt("Date"),gC=Mt("File"),mC=Mt("Blob"),vC=Mt("FileList"),yC=e=>bl(e)&&pt(e.pipe),wC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pt(e.append)&&((t=Sl(e))==="formdata"||t==="object"&&pt(e.toString)&&e.toString()==="[object FormData]"))},SC=Mt("URLSearchParams"),_C=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ii(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ga(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const R1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$1=e=>!Ni(e)&&e!==R1;function Sf(){const{caseless:e}=$1(this)&&this||{},t={},n=(r,a)=>{const i=e&&A1(t,a)||a;as(t[i])&&as(r)?t[i]=Sf(t[i],r):as(r)?t[i]=Sf({},r):ga(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(Ii(t,(a,i)=>{n&&pt(a)?e[i]=D1(a,n):e[i]=a},{allOwnKeys:r}),e),EC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),TC=(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)},CC=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&ap(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},OC=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},xC=e=>{if(!e)return null;if(ga(e))return e;let t=e.length;if(!k1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},PC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ap(Uint8Array)),DC=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},NC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kC=Mt("HTMLFormElement"),AC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Mg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),RC=Mt("RegExp"),L1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ii(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},$C=e=>{L1(e,(t,n)=>{if(pt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(pt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},LC=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ga(e)?r(e):r(String(e).split(t)),n},MC=()=>{},jC=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Fu="abcdefghijklmnopqrstuvwxyz",jg="0123456789",M1={DIGIT:jg,ALPHA:Fu,ALPHA_DIGIT:Fu+Fu.toUpperCase()+jg},FC=(e=16,t=M1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function IC(e){return!!(e&&pt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const UC=e=>{const t=new Array(10),n=(r,a)=>{if(bl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=ga(r)?[]:{};return Ii(r,(o,s)=>{const l=n(o,a+1);!Ni(l)&&(i[s]=l)}),t[a]=void 0,i}}return r};return n(e,0)},zC=Mt("AsyncFunction"),HC=e=>e&&(bl(e)||pt(e))&&pt(e.then)&&pt(e.catch),D={isArray:ga,isArrayBuffer:N1,isBuffer:cC,isFormData:wC,isArrayBufferView:fC,isString:dC,isNumber:k1,isBoolean:pC,isObject:bl,isPlainObject:as,isUndefined:Ni,isDate:hC,isFile:gC,isBlob:mC,isRegExp:RC,isFunction:pt,isStream:yC,isURLSearchParams:SC,isTypedArray:PC,isFileList:vC,forEach:Ii,merge:Sf,extend:bC,trim:_C,stripBOM:EC,inherits:TC,toFlatObject:CC,kindOf:Sl,kindOfTest:Mt,endsWith:OC,toArray:xC,forEachEntry:DC,matchAll:NC,isHTMLForm:kC,hasOwnProperty:Mg,hasOwnProp:Mg,reduceDescriptors:L1,freezeMethods:$C,toObjectSet:LC,toCamelCase:AC,noop:MC,toFiniteNumber:jC,findKey:A1,global:R1,isContextDefined:$1,ALPHABET:M1,generateString:FC,isSpecCompliantForm:IC,toJSONObject:UC,isAsyncFn:zC,isThenable:HC};function K(e,t,n,r,a){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),a&&(this.response=a)}D.inherits(K,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:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j1=K.prototype,F1={};["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=>{F1[e]={value:e}});Object.defineProperties(K,F1);Object.defineProperty(j1,"isAxiosError",{value:!0});K.from=(e,t,n,r,a,i)=>{const o=Object.create(j1);return D.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),K.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const WC=null;function _f(e){return D.isPlainObject(e)||D.isArray(e)}function I1(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function Fg(e,t,n){return e?e.concat(t).map(function(a,i){return a=I1(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function GC(e){return D.isArray(e)&&!e.some(_f)}const VC=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function El(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,E){return!D.isUndefined(E[S])});const r=n.metaTokens,a=n.visitor||d,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(a))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(D.isDate(m))return m.toISOString();if(!l&&D.isBlob(m))throw new K("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(m)||D.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,S,E){let v=m;if(m&&!E&&typeof m=="object"){if(D.endsWith(S,"{}"))S=r?S:S.slice(0,-2),m=JSON.stringify(m);else if(D.isArray(m)&&GC(m)||(D.isFileList(m)||D.endsWith(S,"[]"))&&(v=D.toArray(m)))return S=I1(S),v.forEach(function(_,O){!(D.isUndefined(_)||_===null)&&t.append(o===!0?Fg([S],O,i):o===null?S:S+"[]",u(_))}),!1}return _f(m)?!0:(t.append(Fg(E,S,i),u(m)),!1)}const p=[],h=Object.assign(VC,{defaultVisitor:d,convertValue:u,isVisitable:_f});function w(m,S){if(!D.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(m),D.forEach(m,function(v,y){(!(D.isUndefined(v)||v===null)&&a.call(t,v,D.isString(y)?y.trim():y,S,h))===!0&&w(v,S?S.concat(y):[y])}),p.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Ig(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ip(e,t){this._pairs=[],e&&El(e,this,t)}const U1=ip.prototype;U1.append=function(t,n){this._pairs.push([t,n])};U1.toString=function(t){const n=t?function(r){return t.call(this,r,Ig)}:Ig;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function qC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function z1(e,t,n){if(!t)return e;const r=n&&n.encode||qC,a=n&&n.serialize;let i;if(a?i=a(t,n):i=D.isURLSearchParams(t)?t.toString():new ip(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class KC{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ug=KC,H1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},YC=typeof URLSearchParams<"u"?URLSearchParams:ip,XC=typeof FormData<"u"?FormData:null,QC=typeof Blob<"u"?Blob:null,JC={isBrowser:!0,classes:{URLSearchParams:YC,FormData:XC,Blob:QC},protocols:["http","https","file","blob","url","data"]},W1=typeof window<"u"&&typeof document<"u",ZC=(e=>W1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),BC=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),eO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:W1,hasStandardBrowserEnv:ZC,hasStandardBrowserWebWorkerEnv:BC},Symbol.toStringTag,{value:"Module"})),Rt={...eO,...JC};function tO(e,t){return El(e,new Rt.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Rt.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function nO(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function rO(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&D.isArray(a)?a.length:o,l?(D.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!D.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&D.isArray(a[o])&&(a[o]=rO(a[o])),!s)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,a)=>{t(nO(r),a,n,0)}),n}return null}function aO(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const op={transitional:H1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=D.isObject(t);if(i&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return a&&a?JSON.stringify(G1(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return tO(t,this.formSerializer).toString();if((s=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return El(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),aO(t)):t}],transformResponse:[function(t){const n=this.transitional||op.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&D.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{op.headers[e]={}});const sp=op,iO=D.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"]),oO=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&iO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},zg=Symbol("internals");function $a(e){return e&&String(e).trim().toLowerCase()}function is(e){return e===!1||e==null?e:D.isArray(e)?e.map(is):String(e)}function sO(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}const lO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Iu(e,t,n,r,a){if(D.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function uO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cO(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class Tl{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,u){const d=$a(l);if(!d)throw new Error("header name must be a non-empty string");const p=D.findKey(a,d);(!p||a[p]===void 0||u===!0||u===void 0&&a[p]!==!1)&&(a[p||l]=is(s))}const o=(s,l)=>D.forEach(s,(u,d)=>i(u,d,l));return D.isPlainObject(t)||t instanceof this.constructor?o(t,n):D.isString(t)&&(t=t.trim())&&!lO(t)?o(oO(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=$a(t),t){const r=D.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return sO(a);if(D.isFunction(n))return n.call(this,a,r);if(D.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$a(t),t){const r=D.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Iu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=$a(o),o){const s=D.findKey(r,o);s&&(!n||Iu(r,r[s],s,n))&&(delete r[s],a=!0)}}return D.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Iu(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return D.forEach(this,(a,i)=>{const o=D.findKey(r,i);if(o){n[o]=is(a),delete n[i];return}const s=t?uO(i):String(i).trim();s!==i&&delete n[i],n[s]=is(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&D.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[zg]=this[zg]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=$a(o);r[s]||(cO(a,o),r[s]=!0)}return D.isArray(t)?t.forEach(i):i(t),this}}Tl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(Tl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});D.freezeMethods(Tl);const Kt=Tl;function Uu(e,t){const n=this||sp,r=t||n,a=Kt.from(r.headers);let i=r.data;return D.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function V1(e){return!!(e&&e.__CANCEL__)}function Ui(e,t,n){K.call(this,e??"canceled",K.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(Ui,K,{__CANCEL__:!0});function fO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const dO=Rt.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];D.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),D.isString(r)&&o.push("path="+r),D.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.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(){return null},remove(){}};function pO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function q1(e,t){return e&&!pO(t)?hO(e,t):t}const gO=Rt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=D.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function mO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[i];o||(o=u),n[a]=l,r[a]=u;let p=i,h=0;for(;p!==a;)h+=n[p++],p=p%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const d={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};d[t?"download":"upload"]=!0,e(d)}}const yO=typeof XMLHttpRequest<"u",wO=yO&&function(e){return new Promise(function(n,r){let a=e.data;const i=Kt.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let d;if(D.isFormData(a)){if(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((d=i.getContentType())!==!1){const[S,...E]=d?d.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([S||"multipart/form-data",...E].join("; "))}}let p=new XMLHttpRequest;if(e.auth){const S=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(S+":"+E))}const h=q1(e.baseURL,e.url);p.open(e.method.toUpperCase(),z1(h,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function w(){if(!p)return;const S=Kt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:S,config:e,request:p};fO(function(_){n(_),u()},function(_){r(_),u()},v),p=null}if("onloadend"in p?p.onloadend=w:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(w)},p.onabort=function(){p&&(r(new K("Request aborted",K.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new K("Network Error",K.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||H1;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),r(new K(E,v.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,p)),p=null},Rt.hasStandardBrowserEnv&&(s&&D.isFunction(s)&&(s=s(e)),s||s!==!1&&gO(h))){const S=e.xsrfHeaderName&&e.xsrfCookieName&&dO.read(e.xsrfCookieName);S&&i.set(e.xsrfHeaderName,S)}a===void 0&&i.setContentType(null),"setRequestHeader"in p&&D.forEach(i.toJSON(),function(E,v){p.setRequestHeader(v,E)}),D.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),o&&o!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",Hg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",Hg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=S=>{p&&(r(!S||S.type?new Ui(null,e,p):S),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=mO(h);if(m&&Rt.protocols.indexOf(m)===-1){r(new K("Unsupported protocol "+m+":",K.ERR_BAD_REQUEST,e));return}p.send(a||null)})},bf={http:WC,xhr:wO};D.forEach(bf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wg=e=>`- ${e}`,SO=e=>D.isFunction(e)||e===null||e===!1,K1={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(Wg).join(` +`):" "+Wg(i[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:bf};function zu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ui(null,e)}function Gg(e){return zu(e),e.headers=Kt.from(e.headers),e.data=Uu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),K1.getAdapter(e.adapter||sp.adapter)(e).then(function(r){return zu(e),r.data=Uu.call(e,e.transformResponse,r),r.headers=Kt.from(r.headers),r},function(r){return V1(r)||(zu(e),r&&r.response&&(r.response.data=Uu.call(e,e.transformResponse,r.response),r.response.headers=Kt.from(r.response.headers))),Promise.reject(r)})}const Vg=e=>e instanceof Kt?e.toJSON():e;function la(e,t){t=t||{};const n={};function r(u,d,p){return D.isPlainObject(u)&&D.isPlainObject(d)?D.merge.call({caseless:p},u,d):D.isPlainObject(d)?D.merge({},d):D.isArray(d)?d.slice():d}function a(u,d,p){if(D.isUndefined(d)){if(!D.isUndefined(u))return r(void 0,u,p)}else return r(u,d,p)}function i(u,d){if(!D.isUndefined(d))return r(void 0,d)}function o(u,d){if(D.isUndefined(d)){if(!D.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,p){if(p in t)return r(u,d);if(p in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,d)=>a(Vg(u),Vg(d),!0)};return D.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=l[d]||a,h=p(e[d],t[d],d);D.isUndefined(h)&&p!==s||(n[d]=h)}),n}const Y1="1.6.5",lp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qg={};lp.transitional=function(t,n,r){function a(i,o){return"[Axios v"+Y1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new K(a(o," has been removed"+(n?" in "+n:"")),K.ERR_DEPRECATED);return n&&!qg[o]&&(qg[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function _O(e,t,n){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new K("option "+i+" must be "+l,K.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}}const Ef={assertOptions:_O,validators:lp},sn=Ef.validators;class zs{constructor(t){this.defaults=t,this.interceptors={request:new Ug,response:new Ug}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=la(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Ef.assertOptions(r,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1),a!=null&&(D.isFunction(a)?n.paramsSerializer={serialize:a}:Ef.assertOptions(a,{encode:sn.function,serialize:sn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&D.merge(i.common,i[n.method]);i&&D.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Kt.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,s.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let d,p=0,h;if(!l){const m=[Gg.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),h=m.length,d=Promise.resolve(n);p{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new Ui(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new up(function(a){t=a}),cancel:t}}}const bO=up;function EO(e){return function(n){return e.apply(null,n)}}function TO(e){return D.isObject(e)&&e.isAxiosError===!0}const Tf={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(Tf).forEach(([e,t])=>{Tf[t]=e});const CO=Tf;function X1(e){const t=new os(e),n=D1(os.prototype.request,t);return D.extend(n,os.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return X1(la(e,a))},n}const me=X1(sp);me.Axios=os;me.CanceledError=Ui;me.CancelToken=bO;me.isCancel=V1;me.VERSION=Y1;me.toFormData=El;me.AxiosError=K;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=EO;me.isAxiosError=TO;me.mergeConfig=la;me.AxiosHeaders=Kt;me.formToJSON=e=>G1(D.isHTMLForm(e)?new FormData(e):e);me.getAdapter=K1.getAdapter;me.HttpStatusCode=CO;me.default=me;const Jn=me;class OO{constructor(t,n,r,a,i,o){I(this,"flowsheetId");I(this,"isFvShow");I(this,"isStreamTableShow");I(this,"baseUrl");I(this,"getFSUrl");I(this,"putFSUrl");I(this,"model");I(this,"paper");I(this,"_is_graph_changed");I(this,"_save_time_interval_key");I(this,"_default_save_time_interval");I(this,"_save_time_interval");I(this,"stream_table");I(this,"toolbar");I(this,"cleanToolBarEvent");I(this,"viewInLogPanel");this.flowsheetId=t,this.isFvShow=r,this.isStreamTableShow=i,this.viewInLogPanel=o,this.baseUrl=`http://localhost:${n}`,this.getFSUrl=`/fs?id=${t}`,this.putFSUrl=`/fs?id=${t}`,this.model={},r&&(this.paper=new iC(this)),this._is_graph_changed=!1,this._save_time_interval_key="save_time_interval",this._default_save_time_interval=5e3,this._save_time_interval=this.getSaveTimeInterval(),this.setupGraphChangeChecker(this._save_time_interval,t),this.setGetFSUrl(),Jn.get(this.getFSUrl).then(s=>{this.model=s.data,r&&this.renderModel(this.model),i&&o.streamTable&&(this.stream_table=new sC(this,this.model,this.viewInLogPanel)),this.toolbar=new lC(this,this.paper,this.stream_table,this.flowsheetId,this.getFSUrl,this.putFSUrl,this.isFvShow),this.cleanToolBarEvent=this.toolbar.cleanUpEvent}).catch(s=>{console.log(s.message),console.log(s.response.status)}),this.fvExtraContentCleanUp()}setGetFSUrl(){let t=new URLSearchParams(window.location.search);if(!t.get("example"))return;let n=parseInt(t.get("example")),r=["example_1","example_2","example_3","example_4","example_5","example_6","example_7"];n<0||n>r.length||(this.getFSUrl=`/assets/testing_data/example_${n}.json`)}renderModel(t){const r=new oC(t).processRoutingConfig();this.paper.setup(r)}debug_removeFlowsheetPosition(t){let n=5;t.cells.forEach(r=>{n+=150,r.position&&(r.position={x:n,y:void 0})})}informUser(t,n){switch(t){case 0:console.log(n);break;case 1:console.warn(n);break;case 2:console.error(n);break;default:console.log(n)}}refreshModel(t,n,r){this.informUser(0,"Refresh: save current values from model");let a=r.graph,i=JSON.stringify(a.toJSON());Jn.put(n,i,{headers:{"Content-Type":"application/json"}}).then(()=>(this.informUser(0,"Refresh: load new model values from Python program"),Jn.get(t,{responseType:"json"}))).then(o=>{const s=o.data;this.isStreamTableShow&&(document.getElementById("hide-fields-list").innerHTML=""),this.renderModel(s),this.stream_table.initTable(s)}).catch(o=>{o.response?this.informUser(2,"Fatal error: cannot save current model before refresh: "+o.response.data):this.informUser(2,"Fatal error: Could not retrieve new model from Python program: "+o.message)})}getSaveTimeInterval(){let t=`${this.baseUrl}/setting?setting_key=${this._save_time_interval_key}`,n=this._default_save_time_interval;return Jn.get(t,{headers:{"Content-Type":"application/json"}}).then(r=>{r.data.value!="None"?n=r.data.value:this.informUser(1,`Warning: save_time_interval was not set correctly. Default time value of + ${this._default_save_time_interval.toString()} + will be set.`)}).catch(r=>{this.informUser(2,"Fatal error: cannot get setting value: "+r)}),n}graphChanged(){this._is_graph_changed=!0}setupGraphChangeChecker(t,n){let r=this.putFSUrl;var a=setInterval(()=>{this._is_graph_changed&&(this.saveModel(r,this.paper.graph),this._is_graph_changed=!1)},t);return a}saveModel(t,n){let r=JSON.stringify(n.toJSON());Jn.put(t,r,{headers:{"Content-Type":"application/json"}}).then(a=>{console.log("saved"),this.informUser(0,"Saved new model values")}).catch(a=>{this.informUser(2,"Fatal error: cannot save current model: "+a)})}fvExtraContentCleanUp(){let t=document.getElementById("fv");if(!(!t||t.childNodes.length<=1))for(t.childNodes[(t==null?void 0:t.childNodes.length)-1];t.firstChild!==t.lastChild;)t.removeChild(t.firstChild)}}var Cf={},ua={},Q1={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o-1&&e%1==0&&e-1&&e%1==0&&e<=eP}var dp=tP,nP=zi,rP=dp,aP=yr,iP="[object Arguments]",oP="[object Array]",sP="[object Boolean]",lP="[object Date]",uP="[object Error]",cP="[object Function]",fP="[object Map]",dP="[object Number]",pP="[object Object]",hP="[object RegExp]",gP="[object Set]",mP="[object String]",vP="[object WeakMap]",yP="[object ArrayBuffer]",wP="[object DataView]",SP="[object Float32Array]",_P="[object Float64Array]",bP="[object Int8Array]",EP="[object Int16Array]",TP="[object Int32Array]",CP="[object Uint8Array]",OP="[object Uint8ClampedArray]",xP="[object Uint16Array]",PP="[object Uint32Array]",re={};re[SP]=re[_P]=re[bP]=re[EP]=re[TP]=re[CP]=re[OP]=re[xP]=re[PP]=!0;re[iP]=re[oP]=re[yP]=re[sP]=re[wP]=re[lP]=re[uP]=re[cP]=re[fP]=re[dP]=re[pP]=re[hP]=re[gP]=re[mP]=re[vP]=!1;function DP(e){return aP(e)&&rP(e.length)&&!!re[nP(e)]}var NP=DP;function kP(e){return function(t){return e(t)}}var pp=kP,Ws={exports:{}};Ws.exports;(function(e,t){var n=J1,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Ws,Ws.exports);var hp=Ws.exports,AP=NP,RP=pp,Bg=hp,em=Bg&&Bg.isTypedArray,$P=em?RP(em):AP,gp=$P,LP=jx,MP=Cl,jP=vt,FP=Ol,IP=fp,UP=gp,zP=Object.prototype,HP=zP.hasOwnProperty;function WP(e,t){var n=jP(e),r=!n&&MP(e),a=!n&&!r&&FP(e),i=!n&&!r&&!a&&UP(e),o=n||r||a||i,s=o?LP(e.length,String):[],l=s.length;for(var u in e)(t||HP.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||IP(u,l)))&&s.push(u);return s}var rw=WP,GP=Object.prototype;function VP(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||GP;return e===n}var xl=VP;function qP(e,t){return function(n){return e(t(n))}}var aw=qP,KP=aw,YP=KP(Object.keys,Object),XP=YP,QP=xl,JP=XP,ZP=Object.prototype,BP=ZP.hasOwnProperty;function eD(e){if(!QP(e))return JP(e);var t=[];for(var n in Object(e))BP.call(e,n)&&n!="constructor"&&t.push(n);return t}var iw=eD,tD=B1,nD=dp;function rD(e){return e!=null&&nD(e.length)&&!tD(e)}var Pl=rD,aD=rw,iD=iw,oD=Pl;function sD(e){return oD(e)?aD(e):iD(e)}var wr=sD,lD=Lx,uD=wr;function cD(e,t){return e&&lD(e,t,uD)}var fD=cD,dD=Pl;function pD(e,t){return function(n,r){if(n==null)return n;if(!dD(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i-1}var jD=MD,FD=Dl;function ID(e,t){var n=this.__data__,r=FD(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var UD=ID,zD=ED,HD=kD,WD=$D,GD=jD,VD=UD;function va(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,w=n&kk?new xk:void 0;for(i.set(e,t),i.set(t,e);++p(t==null&&(t=e()),t)}function e$(e,t){return e.filter(n=>n!==t)}function t$(e,t){const n=new Set,r=i=>n.add(i);e.forEach(r),t.forEach(r);const a=[];return n.forEach(i=>a.push(i)),a}class n${enter(t){const n=this.entered.length,r=a=>this.isNodeInDocument(a)&&(!a.contains||a.contains(t));return this.entered=t$(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=e$(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class r${initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const a=this.config.exposeProperties[r];a!=null&&(n[r]={value:a(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Tw="__NATIVE_FILE__",Cw="__NATIVE_URL__",Ow="__NATIVE_TEXT__",xw="__NATIVE_HTML__",Tm=Object.freeze(Object.defineProperty({__proto__:null,FILE:Tw,HTML:xw,TEXT:Ow,URL:Cw},Symbol.toStringTag,{value:"Module"}));function Vu(e,t,n){const r=t.reduce((a,i)=>a||e.getData(i),"");return r??n}const kf={[Tw]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[xw]:{exposeProperties:{html:(e,t)=>Vu(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Cw]:{exposeProperties:{urls:(e,t)=>Vu(e,t,"").split(` +`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Ow]:{exposeProperties:{text:(e,t)=>Vu(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function a$(e,t){const n=kf[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new r$(n);return r.loadDataTransfer(t),r}function qu(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(kf).filter(n=>{const r=kf[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(a=>t.indexOf(a)>-1):!1})[0]||null}const i$=Ew(()=>/firefox/i.test(navigator.userAgent)),Pw=Ew(()=>!!window.safari);class Cm{interpolate(t){const{xs:n,ys:r,c1s:a,c2s:i,c3s:o}=this;let s=n.length-1;if(t===n[s])return r[s];let l=0,u=o.length-1,d;for(;l<=u;){d=Math.floor(.5*(l+u));const w=n[d];if(wt)u=d-1;else return r[d]}s=Math.max(0,u);const p=t-n[s],h=p*p;return r[s]+a[s]*p+i[s]*h+o[s]*p*h}constructor(t,n){const{length:r}=t,a=[];for(let w=0;wt[w]{let N=new Cm([0,.5,1],[l.y,l.y/d*m,l.y+m-d]).interpolate(h);return Pw()&&i&&(N+=(window.devicePixelRatio-1)*m),N},E=()=>new Cm([0,.5,1],[l.x,l.x/u*w,l.x+w-u]).interpolate(p),{offsetX:v,offsetY:y}=a,_=v===0||v,O=y===0||y;return{x:_?v:E(),y:O?y:S()}}let c$=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function f$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Om(e){for(var t=1;t{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const a=o=>this.handleDragStart(o,t),i=o=>this.handleSelectStart(o);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",i),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=o=>this.handleDragEnter(o,t),a=o=>this.handleDragOver(o,t),i=o=>this.handleDrop(o,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",a),n.addEventListener("drop",i),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",a),n.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Om({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Om({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Tm).some(n=>Tm[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=a$(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&Dw(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=a=>!!(a&&this.document&&this.document.body&&this.document.body.contains(a)),this.endDragIfSourceWasRemovedFromDOM=()=>{const a=this.currentDragSourceNode;a==null||this.isNodeInDocument(a)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=a=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(a||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=a=>{if(a.defaultPrevented)return;const{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;const o=Lo(a);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:o});const{dataTransfer:s}=a,l=qu(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const d=this.monitor.getSourceId(),p=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||p;if(h){const{anchorX:w,anchorY:m,offsetX:S,offsetY:E}=this.getCurrentSourcePreviewNodeOptions(),_=u$(p,h,o,{anchorX:w,anchorY:m},{offsetX:S,offsetY:E});s.setDragImage(h,_.x,_.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(a.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=a=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}if(!this.enterLeaveCounter.enter(a.target)||this.monitor.isDragging())return;const{dataTransfer:s}=a,l=qu(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=a=>{const{dragEnterTargetIds:i}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=a.altKey,i.length>0&&this.actions.hover(i,{clientOffset:Lo(a)}),i.some(s=>this.monitor.canDropOnTarget(s))&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=a=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}},this.handleTopDragOver=a=>{const{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}this.altKeyPressed=a.altKey,this.lastClientOffset=Lo(a),this.scheduleHover(i),(i||[]).some(s=>this.monitor.canDropOnTarget(s))?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=a=>{this.isDraggingNativeItem()&&a.preventDefault(),this.enterLeaveCounter.leave(a.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=a=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;a.preventDefault(),(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(a.dataTransfer)}else qu(a.dataTransfer)&&a.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=a=>{const{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:Lo(a)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=a=>{const i=a.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(a.preventDefault(),i.dragDrop()))},this.options=new c$(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new n$(this.isNodeInDocument)}}const p$=function(t,n,r){return new d$(t,n,r)};function H(e,t,...n){if(h$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let a=0;r=new Error(t.replace(/%s/g,function(){return n[a++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function h$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}var Pn;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Pn||(Pn={}));class g${get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get delayMouseStart(){var t,n,r,a;return(a=(r=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&a!==void 0?a:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function m$(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function v$(e,t,n,r,a){if(!a)return!1;const i=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let o=0;o=s.start)&&(s.end==null||i<=s.end))return!0}return!1}const y$={Left:1,Right:2,Center:4},w$={Left:0,Center:1,Right:2};function Ku(e){return e.button===void 0||e.button===w$.Left}function S$(e){return e.buttons===void 0||(e.buttons&y$.Left)===0}function Nw(e){return!!e.targetTouches}const _$=1;function b$(e){const t=e.nodeType===_$?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function E$(e,t){if(e.targetTouches.length===1)return Vs(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return Vs(e.touches[0])}function Vs(e,t){return Nw(e)?E$(e,t):{x:e.clientX,y:e.clientY}}const xm=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),Ma={[Pn.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Pn.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Pn.keyboard]:{keydown:"keydown"}};class oi{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(H(!oi.isSetUp,"Cannot have two Touch backends at the same time."),oi.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(oi.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,a=!1){const i=xm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Ma[o][n];s&&t.addEventListener(s,r,i)})}removeEventListener(t,n,r,a=!1){const i=xm?{capture:a,passive:!1}:a;this.listenerTypes.forEach(function(o){const s=Ma[o][n];s&&t.removeEventListener(s,r,i)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const a=i=>{if(!this.document||!r||!this.monitor.isDragging())return;let o;switch(i.type){case Ma.mouse.move:o={x:i.clientX,y:i.clientY};break;case Ma.touch.move:var s,l;o={x:((s=i.touches[0])===null||s===void 0?void 0:s.clientX)||0,y:((l=i.touches[0])===null||l===void 0?void 0:l.clientY)||0};break}const u=o!=null?this.document.elementFromPoint(o.x,o.y):void 0,d=u&&n.contains(u);if(u===n||d)return this.handleMove(i,t)};return this.addEventListener(this.document.body,"move",a),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",a))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,n,r){this.getSourceClientOffset=a=>{const i=this.sourceNodes.get(a);return i&&b$(i)},this.handleTopMoveStartCapture=a=>{Ku(a)&&(this.moveStartSourceIds=[])},this.handleMoveStart=a=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(a)},this.handleTopMoveStart=a=>{if(!Ku(a))return;const i=Vs(a);i&&(Nw(a)&&(this.lastTargetTouchFallback=a.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=a=>{if(!Ku(a))return;const i=a.type===Ma.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,a),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(a,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=a=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:o}=this,s=this.options.enableHoverOutsideTarget,l=Vs(a,this.lastTargetTouchFallback);if(!l)return;if(this._isScrolling||!this.monitor.isDragging()&&v$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&m$(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,l.x,l.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),a.cancelable&&a.preventDefault();const d=(o||[]).map(m=>this.targetNodes.get(m)).filter(m=>!!m),p=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(l.x,l.y,d):this.document.elementsFromPoint(l.x,l.y),h=[];for(const m in p){if(!p.hasOwnProperty(m))continue;let S=p[m];for(S!=null&&h.push(S);S;)S=S.parentElement,S&&h.indexOf(S)===-1&&h.push(S)}const w=h.filter(m=>d.indexOf(m)>-1).map(m=>this._getDropTargetId(m)).filter(m=>!!m).filter((m,S,E)=>E.indexOf(m)===S);if(s)for(const m in this.targetNodes){const S=this.targetNodes.get(m);if(u&&S&&S.contains(u)&&w.indexOf(m)===-1){w.unshift(m);break}}w.reverse(),this.actions.hover(w,{clientOffset:l})},this._getDropTargetId=a=>{const i=this.targetNodes.keys();let o=i.next();for(;o.done===!1;){const s=o.value;if(a===this.targetNodes.get(s))return s;o=i.next()}},this.handleTopMoveEndCapture=a=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!S$(a)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}a.cancelable&&a.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=a=>{a.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new g$(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Pn.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Pn.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Pn.keyboard)}}const T$=function(t,n={},r={}){return new oi(t,n,r)};var kw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},U=(e,t,n)=>(kw(e,t,"read from private field"),n?n.call(e):t.get(e)),st=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Xn=(e,t,n,r)=>(kw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Qn,C$=class{constructor(){st(this,Qn,void 0),this.register=e=>{U(this,Qn).push(e)},this.unregister=e=>{let t;for(;(t=U(this,Qn).indexOf(e))!==-1;)U(this,Qn).splice(t,1)},this.backendChanged=e=>{for(let t of U(this,Qn))t.backendChanged(e)},Xn(this,Qn,[])}};Qn=new WeakMap;var Xe,qa,Qe,Ft,ln,Af,Rf,$f,ss,ls,Ka,Aw=class us{constructor(t,n,r){if(st(this,Xe,void 0),st(this,qa,void 0),st(this,Qe,void 0),st(this,Ft,void 0),st(this,ln,void 0),st(this,Af,(a,i,o)=>{if(!o.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(o)}`);let s=o.backend(a,i,o.options),l=o.id,u=!o.id&&s&&s.constructor;if(u&&(l=s.constructor.name),l)u&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'. + This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(o)} + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(U(this,Qe)[l])throw new Error(`You must specify a unique 'id' property in your Backend entry: + ${JSON.stringify(o)} (conflicts with: ${JSON.stringify(U(this,Qe)[l])})`);return{id:l,instance:s,preview:o.preview??!1,transition:o.transition,skipDispatchOnTransition:o.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(us.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");us.isSetUp=!0,U(this,Rf).call(this,window),U(this,Qe)[U(this,Xe)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(us.isSetUp=!1,U(this,$f).call(this,window),U(this,Qe)[U(this,Xe)].instance.teardown())},this.connectDragSource=(a,i,o)=>U(this,Ka).call(this,"connectDragSource",a,i,o),this.connectDragPreview=(a,i,o)=>U(this,Ka).call(this,"connectDragPreview",a,i,o),this.connectDropTarget=(a,i,o)=>U(this,Ka).call(this,"connectDropTarget",a,i,o),this.profile=()=>U(this,Qe)[U(this,Xe)].instance.profile(),this.previewEnabled=()=>U(this,Qe)[U(this,Xe)].preview,this.previewsList=()=>U(this,qa),this.backendsList=()=>U(this,Ft),st(this,Rf,a=>{U(this,Ft).forEach(i=>{i.transition&&a.addEventListener(i.transition.event,U(this,ss))})}),st(this,$f,a=>{U(this,Ft).forEach(i=>{i.transition&&a.removeEventListener(i.transition.event,U(this,ss))})}),st(this,ss,a=>{var o;let i=U(this,Xe);if(U(this,Ft).some(s=>s.id!==U(this,Xe)&&s.transition&&s.transition.check(a)?(Xn(this,Xe,s.id),!0):!1),U(this,Xe)!==i){U(this,Qe)[i].instance.teardown(),Object.keys(U(this,ln)).forEach(d=>{let p=U(this,ln)[d];p.unsubscribe(),p.unsubscribe=U(this,ls).call(this,p.func,...p.args)}),U(this,qa).backendChanged(this);let s=U(this,Qe)[U(this,Xe)];if(s.instance.setup(),s.skipDispatchOnTransition)return;let l=a.constructor,u=new l(a.type,a);(o=a.target)==null||o.dispatchEvent(u)}}),st(this,ls,(a,i,o,s)=>U(this,Qe)[U(this,Xe)].instance[a](i,o,s)),st(this,Ka,(a,i,o,s)=>{let l=`${a}_${i}`,u=U(this,ls).call(this,a,i,o,s);return U(this,ln)[l]={func:a,args:[i,o,s],unsubscribe:u},()=>{U(this,ln)[l].unsubscribe(),delete U(this,ln)[l]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error) + see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);Xn(this,qa,new C$),Xn(this,Qe,{}),Xn(this,Ft,[]),r.backends.forEach(a=>{let i=U(this,Af).call(this,t,n,a);U(this,Qe)[i.id]=i,U(this,Ft).push(i)}),Xn(this,Xe,U(this,Ft)[0].id),Xn(this,ln,{})}};Xe=new WeakMap,qa=new WeakMap,Qe=new WeakMap,Ft=new WeakMap,ln=new WeakMap,Af=new WeakMap,Rf=new WeakMap,$f=new WeakMap,ss=new WeakMap,ls=new WeakMap,Ka=new WeakMap,Aw.isSetUp=!1;var O$=Aw,Rw=(e,t,n)=>new O$(e,t,n),Gi=(e,t)=>({event:e,check:t}),$w=Gi("touchstart",e=>{let t=e;return t.touches!==null&&t.touches!==void 0}),x$=Gi("dragstart",e=>e.type.indexOf("drag")!==-1||e.type.indexOf("drop")!==-1),P$=Gi("mousedown",e=>e.type.indexOf("touch")===-1&&e.type.indexOf("mouse")!==-1),Lw=Gi("pointerdown",e=>e.pointerType=="mouse"),D$={backends:[{id:"html5",backend:p$,transition:Lw},{id:"touch",backend:T$,options:{enableMouseEvents:!0},preview:!0,transition:$w}]};const N$=Object.freeze(Object.defineProperty({__proto__:null,HTML5toTouch:D$},Symbol.toStringTag,{value:"Module"})),k$=Qf(N$),Vi=x.createContext({dragDropManager:void 0});function ot(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Pm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Yu=function(){return Math.random().toString(36).substring(7).split("").join(".")},Dm={INIT:"@@redux/INIT"+Yu(),REPLACE:"@@redux/REPLACE"+Yu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Yu()}};function A$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Mw(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ot(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ot(1));return n(Mw)(e,t)}if(typeof e!="function")throw new Error(ot(2));var a=e,i=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function d(){if(l)throw new Error(ot(3));return i}function p(S){if(typeof S!="function")throw new Error(ot(4));if(l)throw new Error(ot(5));var E=!0;return u(),s.push(S),function(){if(E){if(l)throw new Error(ot(6));E=!1,u();var y=s.indexOf(S);s.splice(y,1),o=null}}}function h(S){if(!A$(S))throw new Error(ot(7));if(typeof S.type>"u")throw new Error(ot(8));if(l)throw new Error(ot(9));try{l=!0,i=a(i,S)}finally{l=!1}for(var E=o=s,v=0;vr&&r[a]?r[a]:n||null,e)}function $$(e,t){return e.filter(n=>n!==t)}function jw(e){return typeof e=="object"}function L$(e,t){const n=new Map,r=i=>{n.set(i,n.has(i)?n.get(i)+1:1)};e.forEach(r),t.forEach(r);const a=[];return n.forEach((i,o)=>{i===1&&a.push(o)}),a}function M$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const kp="dnd-core/INIT_COORDS",Ll="dnd-core/BEGIN_DRAG",Ap="dnd-core/PUBLISH_DRAG_SOURCE",Ml="dnd-core/HOVER",jl="dnd-core/DROP",Fl="dnd-core/END_DRAG";function Nm(e,t){return{type:kp,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const j$={type:kp,payload:{clientOffset:null,sourceClientOffset:null}};function F$(e){return function(n=[],r={publishSource:!0}){const{publishSource:a=!0,clientOffset:i,getSourceClientOffset:o}=r,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Nm(i)),I$(n,s,l);const u=H$(n,s);if(u==null){e.dispatch(j$);return}let d=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");U$(o),d=o(u)}e.dispatch(Nm(i,d));const h=l.getSource(u).beginDrag(s,u);if(h==null)return;z$(h),l.pinSource(u);const w=l.getSourceType(u);return{type:Ll,payload:{itemType:w,item:h,sourceId:u,clientOffset:i||null,sourceClientOffset:d||null,isSourcePublic:!!a}}}}function I$(e,t,n){H(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){H(n.getSource(r),"Expected sourceIds to be registered.")})}function U$(e){H(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function z$(e){H(jw(e),"Item must be an object.")}function H$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function W$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G$(e){for(var t=1;t{const l=K$(o,s,a,r),u={type:jl,payload:{dropResult:G$({},n,l)}};e.dispatch(u)})}}function q$(e){H(e.isDragging(),"Cannot call drop while not dragging."),H(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function K$(e,t,n,r){const a=n.getTarget(e);let i=a?a.drop(r,e):void 0;return Y$(i),typeof i>"u"&&(i=t===0?{}:r.getDropResult()),i}function Y$(e){H(typeof e>"u"||jw(e),"Drop result must either be an object or undefined.")}function X$(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Q$(e){return function(){const n=e.getMonitor(),r=e.getRegistry();J$(n);const a=n.getSourceId();return a!=null&&(r.getSource(a,!0).endDrag(n,a),r.unpinSource()),{type:Fl}}}function J$(e){H(e.isDragging(),"Cannot call endDrag while not dragging.")}function Lf(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function Z$(e){return function(n,{clientOffset:r}={}){B$(n);const a=n.slice(0),i=e.getMonitor(),o=e.getRegistry(),s=i.getItemType();return tL(a,o,s),eL(a,i,o),nL(a,i,o),{type:Ml,payload:{targetIds:a,clientOffset:r||null}}}}function B$(e){H(Array.isArray(e),"Expected targetIds to be an array.")}function eL(e,t,n){H(t.isDragging(),"Cannot call hover while not dragging."),H(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r=0;r--){const a=e[r],i=t.getTargetType(a);Lf(i,n)||e.splice(r,1)}}function nL(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function rL(e){return function(){if(e.getMonitor().isDragging())return{type:Ap}}}function aL(e){return{beginDrag:F$(e),publishDragSource:rL(e),hover:Z$(e),drop:V$(e),endDrag:Q$(e)}}class iL{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(i){return(...o)=>{const s=i.apply(t,o);typeof s<"u"&&n(s)}}const a=aL(this);return Object.keys(a).reduce((i,o)=>{const s=a[o];return i[o]=r(s),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function oL(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Fw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sL(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Fw(oL(t,r),n)}function lL(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Fw(t,n)}const si=[],Rp=[];si.__IS_NONE__=!0;Rp.__IS_ALL__=!0;function uL(e,t){return e===si?!1:e===Rp||typeof t>"u"?!0:M$(t,e).length>0}class cL{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;H(typeof t=="function","listener must be a function."),H(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let a=this.store.getState().stateId;const i=()=>{const o=this.store.getState(),s=o.stateId;try{s===a||s===a+1&&!uL(o.dirtyHandlerIds,r)||t()}finally{a=s}};return this.store.subscribe(i)}subscribeToOffsetChange(t){H(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const a=this.store.getState().dragOffset;a!==n&&(n=a,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return H(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(H(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),a=this.getItemType();return Lf(r,a)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(H(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),a=this.getItemType();return r!==a?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const a=this.registry.getTargetType(t),i=this.getItemType();if(i&&!Lf(a,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(t);return r?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return sL(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return lL(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const km=typeof global<"u"?global:self,Iw=km.MutationObserver||km.WebKitMutationObserver;function Uw(e){return function(){const n=setTimeout(a,0),r=setInterval(a,50);function a(){clearTimeout(n),clearInterval(r),e()}}}function fL(e){let t=1;const n=new Iw(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const dL=typeof Iw=="function"?fL:Uw;class pL{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.indexthis.capacity){for(let r=0,a=t.length-this.index;r{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=dL(this.flush),this.requestErrorThrow=Uw(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class hL{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class gL{create(t){const n=this.freeTasks,r=n.length?n.pop():new hL(this.onError,a=>n[n.length]=a);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const zw=new pL,mL=new gL(zw.registerPendingError);function vL(e){zw.enqueueTask(mL.create(e))}const $p="dnd-core/ADD_SOURCE",Lp="dnd-core/ADD_TARGET",Mp="dnd-core/REMOVE_SOURCE",Il="dnd-core/REMOVE_TARGET";function yL(e){return{type:$p,payload:{sourceId:e}}}function wL(e){return{type:Lp,payload:{targetId:e}}}function SL(e){return{type:Mp,payload:{sourceId:e}}}function _L(e){return{type:Il,payload:{targetId:e}}}function bL(e){H(typeof e.canDrag=="function","Expected canDrag to be a function."),H(typeof e.beginDrag=="function","Expected beginDrag to be a function."),H(typeof e.endDrag=="function","Expected endDrag to be a function.")}function EL(e){H(typeof e.canDrop=="function","Expected canDrop to be a function."),H(typeof e.hover=="function","Expected hover to be a function."),H(typeof e.drop=="function","Expected beginDrag to be a function.")}function Mf(e,t){if(t&&Array.isArray(e)){e.forEach(n=>Mf(n,!1));return}H(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ct;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ct||(ct={}));let TL=0;function CL(){return TL++}function OL(e){const t=CL().toString();switch(e){case ct.SOURCE:return`S${t}`;case ct.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Am(e){switch(e[0]){case"S":return ct.SOURCE;case"T":return ct.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Rm(e,t){const n=e.entries();let r=!1;do{const{done:a,value:[,i]}=n.next();if(i===t)return!0;r=!!a}while(!r);return!1}class xL{addSource(t,n){Mf(t),bL(n);const r=this.addHandler(ct.SOURCE,t,n);return this.store.dispatch(yL(r)),r}addTarget(t,n){Mf(t,!0),EL(n);const r=this.addHandler(ct.TARGET,t,n);return this.store.dispatch(wL(r)),r}containsHandler(t){return Rm(this.dragSources,t)||Rm(this.dropTargets,t)}getSource(t,n=!1){return H(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return H(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return H(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return H(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return Am(t)===ct.SOURCE}isTargetId(t){return Am(t)===ct.TARGET}removeSource(t){H(this.getSource(t),"Expected an existing source."),this.store.dispatch(SL(t)),vL(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){H(this.getTarget(t),"Expected an existing target."),this.store.dispatch(_L(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);H(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){H(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const a=OL(t);return this.types.set(a,n),t===ct.SOURCE?this.dragSources.set(a,r):t===ct.TARGET&&this.dropTargets.set(a,r),a}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const PL=(e,t)=>e===t;function DL(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function NL(e,t,n=PL){if(e.length!==t.length)return!1;for(let r=0;r0||!NL(n,r)))return si;const o=r[r.length-1],s=n[n.length-1];return o!==s&&(o&&a.push(o),s&&a.push(s)),a}function AL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RL(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qL(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}let Lm=0;const cs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Hw=x.memo(function(t){var{children:n}=t,r=VL(t,["children"]);const[a,i]=KL(r);return x.useEffect(()=>{if(i){const o=Ww();return++Lm,()=>{--Lm===0&&(o[cs]=null)}}},[]),T.jsx(Vi.Provider,{value:a,children:n})});function KL(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=YL(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function YL(e,t=Ww(),n,r){const a=t;return a[cs]||(a[cs]={dragDropManager:WL(e,t,n,r)}),a[cs]}function Ww(){return typeof global<"u"?global:window}const XL=x.memo(function({connect:t,src:n}){return x.useEffect(()=>{if(typeof Image>"u")return;let r=!1;const a=new Image;return a.src=n,a.onload=()=>{t(a),r=!0},()=>{r&&t(null)}}),null});var QL=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const JL=Bs(QL),pr=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Gw(e,t,n){const[r,a]=x.useState(()=>t(e)),i=x.useCallback(()=>{const o=t(e);JL(r,o)||(a(o),n&&n())},[r,e,n]);return pr(i),[r,i]}function ZL(e,t,n){const[r,a]=Gw(e,t,n);return pr(function(){const o=e.getHandlerId();if(o!=null)return e.subscribeToStateChange(a,{handlerIds:[o]})},[e,a]),r}function Vw(e,t,n){return ZL(t,e||(()=>({})),()=>n.reconnect())}function qw(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),x.useMemo(()=>typeof e=="function"?e():e,n)}function BL(e){return x.useMemo(()=>e.hooks.dragSource(),[e])}function eM(e){return x.useMemo(()=>e.hooks.dragPreview(),[e])}let Xu=!1,Qu=!1;class tM{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){H(!Xu,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Xu=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Xu=!1}}isDragging(){if(!this.sourceId)return!1;H(!Qu,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qu=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Qu=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Ju=!1;class nM{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;H(!Ju,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Ju=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Ju=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function rM(e,t,n){const r=n.getRegistry(),a=r.addTarget(e,t);return[a,()=>r.removeTarget(a)]}function aM(e,t,n){const r=n.getRegistry(),a=r.addSource(e,t);return[a,()=>r.removeSource(a)]}function jf(e,t,n,r){let a=n?n.call(r,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l, or turn it into a drag source or a drop target itself.`)}function oM(e){return(t=null,n=null)=>{if(!x.isValidElement(t)){const i=t;return e(i,n),i}const r=t;return iM(r),sM(r,n?i=>e(i,n):e)}}function Kw(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const a=oM(r);t[n]=()=>a}}),t}function Mm(e,t){typeof e=="function"?e(t):e.current=t}function sM(e,t){const n=e.ref;return H(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?x.cloneElement(e,{ref:r=>{Mm(n,r),Mm(t,r)}}):x.cloneElement(e,{ref:t})}class lM{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!jf(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!jf(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Kw({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Ff(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Ff(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class uM{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!jf(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Kw({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Ff(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Un(){const{dragDropManager:e}=x.useContext(Vi);return H(e!=null,"Expected drag drop context"),e}function cM(e,t){const n=Un(),r=x.useMemo(()=>new lM(n.getBackend()),[n]);return pr(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),pr(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function fM(){const e=Un();return x.useMemo(()=>new tM(e),[e])}class dM{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,a=this.monitor,{isDragging:i}=r;return i?i(a):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:a}=t;a&&a(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function pM(e,t,n){const r=x.useMemo(()=>new dM(e,t,n),[t,n]);return x.useEffect(()=>{r.spec=e},[e]),r}function hM(e){return x.useMemo(()=>{const t=e.type;return H(t!=null,"spec.type must be defined"),t},[e])}function gM(e,t,n){const r=Un(),a=pM(e,t,n),i=hM(e);pr(function(){if(i!=null){const[s,l]=aM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l}},[r,t,n,a,i])}function Yw(e,t){const n=qw(e,t);H(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=fM(),a=cM(n.options,n.previewOptions);return gM(n,r,a),[Vw(n.collect,r,a),BL(a),eM(a)]}function Xw(e){const n=Un().getMonitor(),[r,a]=Gw(n,e);return x.useEffect(()=>n.subscribeToOffsetChange(a)),x.useEffect(()=>n.subscribeToStateChange(a)),r}function mM(e){return x.useMemo(()=>e.hooks.dropTarget(),[e])}function vM(e){const t=Un(),n=x.useMemo(()=>new uM(t.getBackend()),[t]);return pr(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function yM(){const e=Un();return x.useMemo(()=>new nM(e),[e])}function wM(e){const{accept:t}=e;return x.useMemo(()=>(H(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class SM{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function _M(e,t){const n=x.useMemo(()=>new SM(e,t),[t]);return x.useEffect(()=>{n.spec=e},[e]),n}function bM(e,t,n){const r=Un(),a=_M(e,t),i=wM(e);pr(function(){const[s,l]=rM(i,a,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[r,t,a,n,i.map(o=>o.toString()).join("|")])}function Qw(e,t){const n=qw(e,t),r=yM(),a=vM(n.options);return bM(n,r,a),[Vw(n.collect,r,a),mM(a)]}const EM=Object.freeze(Object.defineProperty({__proto__:null,DndContext:Vi,DndProvider:Hw,DragPreviewImage:XL,useDrag:Yw,useDragDropManager:Un,useDragLayer:Xw,useDrop:Qw},Symbol.toStringTag,{value:"Module"})),Ul=Qf(EM);var If=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),TM=e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return t===null||n===null?{x:0,y:0}:If(t,n)},CM=(e,t)=>{let n=e.getClientOffset();if(n===null)return null;if(!t.current||!t.current.getBoundingClientRect)return If(n,TM(e));let r=t.current.getBoundingClientRect(),a={x:r.width/2,y:r.height/2};return If(n,a)},OM=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},Jw=()=>{let e=x.useRef(null),t=Xw(n=>({currentOffset:CM(n,e),isDragging:n.isDragging(),itemType:n.getItemType(),item:n.getItem(),monitor:n}));return!t.isDragging||t.currentOffset===null?{display:!1}:{display:!0,itemType:t.itemType,item:t.item,style:OM(t.currentOffset),monitor:t.monitor,ref:e}},jp=x.createContext(void 0),xM=e=>{let t=Jw();if(!t.display)return null;let{display:n,...r}=t,a;return"children"in e?typeof e.children=="function"?a=e.children(r):a=e.children:a=e.generator(r),wn.createElement(jp.Provider,{value:r},a)},Zw=x.createContext(null),PM=({portal:e,...t})=>{let[n,r]=x.useState(null);return wn.createElement(Zw.Provider,{value:e??n},wn.createElement(Hw,{backend:Rw,...t}),e?null:wn.createElement("div",{ref:r}))},Bw=()=>{let[e,t]=x.useState(!1),n=x.useContext(Vi);return x.useEffect(()=>{var i;let r=(i=n==null?void 0:n.dragDropManager)==null?void 0:i.getBackend(),a={backendChanged:o=>{t(o.previewEnabled())}};return t(r.previewEnabled()),r.previewsList().register(a),()=>{r.previewsList().unregister(a)}},[n,n.dragDropManager]),e},eS=e=>{let t=Bw(),n=x.useContext(Zw);if(!t)return null;let r=wn.createElement(xM,{...e});return n!==null?X0.createPortal(r,n):r};eS.Context=jp;var DM=(e,t,n,r)=>{let a=n.getBackend();n.receiveBackend(r);let i=t(e);return n.receiveBackend(a),i},tS=(e,t)=>{var s;let n=x.useContext(Vi),r=(s=n==null?void 0:n.dragDropManager)==null?void 0:s.getBackend();if(r===void 0)throw new Error("could not find backend, make sure you are using a ");let a=t(e),i={},o=r.backendsList();for(let l of o)i[l.id]=DM(e,t,n.dragDropManager,l.instance);return[a,i]},NM=e=>tS(e,Yw),kM=e=>tS(e,Qw),AM=()=>{let e=Bw(),t=Jw();return e?t:{display:!1}};const RM=Object.freeze(Object.defineProperty({__proto__:null,DndProvider:PM,HTML5DragTransition:x$,MouseTransition:P$,MultiBackend:Rw,PointerTransition:Lw,Preview:eS,PreviewContext:jp,TouchTransition:$w,createTransition:Gi,useMultiDrag:NM,useMultiDrop:kM,usePreview:AM},Symbol.toStringTag,{value:"Module"})),$M=Qf(RM);var nS={},zl={},Hl={};Object.defineProperty(Hl,"__esModule",{value:!0});Hl.default=MM;let Mo;const LM=new Uint8Array(16);function MM(){if(!Mo&&(Mo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Mo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Mo(LM)}var zn={},Sr={},Wl={};Object.defineProperty(Wl,"__esModule",{value:!0});Wl.default=void 0;var jM=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Wl.default=jM;Object.defineProperty(Sr,"__esModule",{value:!0});Sr.default=void 0;var FM=IM(Wl);function IM(e){return e&&e.__esModule?e:{default:e}}function UM(e){return typeof e=="string"&&FM.default.test(e)}var zM=UM;Sr.default=zM;Object.defineProperty(zn,"__esModule",{value:!0});zn.default=void 0;zn.unsafeStringify=rS;var HM=WM(Sr);function WM(e){return e&&e.__esModule?e:{default:e}}const Te=[];for(let e=0;e<256;++e)Te.push((e+256).toString(16).slice(1));function rS(e,t=0){return Te[e[t+0]]+Te[e[t+1]]+Te[e[t+2]]+Te[e[t+3]]+"-"+Te[e[t+4]]+Te[e[t+5]]+"-"+Te[e[t+6]]+Te[e[t+7]]+"-"+Te[e[t+8]]+Te[e[t+9]]+"-"+Te[e[t+10]]+Te[e[t+11]]+Te[e[t+12]]+Te[e[t+13]]+Te[e[t+14]]+Te[e[t+15]]}function GM(e,t=0){const n=rS(e,t);if(!(0,HM.default)(n))throw TypeError("Stringified UUID is invalid");return n}var VM=GM;zn.default=VM;Object.defineProperty(zl,"__esModule",{value:!0});zl.default=void 0;var qM=YM(Hl),KM=zn;function YM(e){return e&&e.__esModule?e:{default:e}}let jm,Zu,Bu=0,ec=0;function XM(e,t,n){let r=t&&n||0;const a=t||new Array(16);e=e||{};let i=e.node||jm,o=e.clockseq!==void 0?e.clockseq:Zu;if(i==null||o==null){const h=e.random||(e.rng||qM.default)();i==null&&(i=jm=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]),o==null&&(o=Zu=(h[6]<<8|h[7])&16383)}let s=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:ec+1;const u=s-Bu+(l-ec)/1e4;if(u<0&&e.clockseq===void 0&&(o=o+1&16383),(u<0||s>Bu)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Bu=s,ec=l,Zu=o,s+=122192928e5;const d=((s&268435455)*1e4+l)%4294967296;a[r++]=d>>>24&255,a[r++]=d>>>16&255,a[r++]=d>>>8&255,a[r++]=d&255;const p=s/4294967296*1e4&268435455;a[r++]=p>>>8&255,a[r++]=p&255,a[r++]=p>>>24&15|16,a[r++]=p>>>16&255,a[r++]=o>>>8|128,a[r++]=o&255;for(let h=0;h<6;++h)a[r+h]=i[h];return t||(0,KM.unsafeStringify)(a)}var QM=XM;zl.default=QM;var Gl={},Ln={},qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.default=void 0;var JM=ZM(Sr);function ZM(e){return e&&e.__esModule?e:{default:e}}function BM(e){if(!(0,JM.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var e5=BM;qi.default=e5;Object.defineProperty(Ln,"__esModule",{value:!0});Ln.URL=Ln.DNS=void 0;Ln.default=i5;var t5=zn,n5=r5(qi);function r5(e){return e&&e.__esModule?e:{default:e}}function a5(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n>5]>>>a%32&255,o=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(o)}return t}function oS(e){return(e+64>>>9<<4)+14+1}function l5(e,t){e[t>>5]|=128<>5]|=(e[r/8]&255)<>16)+(t>>16)+(n>>16)<<16|n&65535}function c5(e,t){return e<>>32-t}function ql(e,t,n,r,a,i){return yn(c5(yn(yn(t,e),yn(r,i)),a),n)}function ke(e,t,n,r,a,i,o){return ql(t&n|~t&r,e,t,a,i,o)}function Ae(e,t,n,r,a,i,o){return ql(t&r|n&~r,e,t,a,i,o)}function Re(e,t,n,r,a,i,o){return ql(t^n^r,e,t,a,i,o)}function $e(e,t,n,r,a,i,o){return ql(n^(t|~r),e,t,a,i,o)}var f5=o5;Vl.default=f5;Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=void 0;var d5=sS(Ln),p5=sS(Vl);function sS(e){return e&&e.__esModule?e:{default:e}}const h5=(0,d5.default)("v3",48,p5.default);var g5=h5;Gl.default=g5;var Kl={},Yl={};Object.defineProperty(Yl,"__esModule",{value:!0});Yl.default=void 0;const m5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var v5={randomUUID:m5};Yl.default=v5;Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=void 0;var Fm=lS(Yl),y5=lS(Hl),w5=zn;function lS(e){return e&&e.__esModule?e:{default:e}}function S5(e,t,n){if(Fm.default.randomUUID&&!t&&!e)return Fm.default.randomUUID();e=e||{};const r=e.random||(e.rng||y5.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=r[a];return t}return(0,w5.unsafeStringify)(r)}var _5=S5;Kl.default=_5;var Xl={},Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=void 0;function b5(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function tc(e,t){return e<>>32-t}function E5(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){const o=unescape(encodeURIComponent(e));e=[];for(let s=0;s>>0;h=p,p=d,d=tc(u,30)>>>0,u=l,l=S}n[0]=n[0]+l>>>0,n[1]=n[1]+u>>>0,n[2]=n[2]+d>>>0,n[3]=n[3]+p>>>0,n[4]=n[4]+h>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var T5=E5;Ql.default=T5;Object.defineProperty(Xl,"__esModule",{value:!0});Xl.default=void 0;var C5=uS(Ln),O5=uS(Ql);function uS(e){return e&&e.__esModule?e:{default:e}}const x5=(0,C5.default)("v5",80,O5.default);var P5=x5;Xl.default=P5;var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=void 0;var D5="00000000-0000-0000-0000-000000000000";Jl.default=D5;var Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.default=void 0;var N5=k5(Sr);function k5(e){return e&&e.__esModule?e:{default:e}}function A5(e){if(!(0,N5.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var R5=A5;Zl.default=R5;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=d(zl),n=d(Gl),r=d(Kl),a=d(Xl),i=d(Jl),o=d(Zl),s=d(Sr),l=d(zn),u=d(qi);function d(p){return p&&p.__esModule?p:{default:p}}})(nS);var Pe={},$5=A&&A.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.MosaicWindowContext=Pe.MosaicContext=void 0;var cS=$5(x);Pe.MosaicContext=cS.default.createContext(void 0);Pe.MosaicWindowContext=cS.default.createContext(void 0);var Bl={},Im=ma,L5=Cl,M5=vt,Um=Im?Im.isConcatSpreadable:void 0;function j5(e){return M5(e)||L5(e)||!!(Um&&e&&e[Um])}var F5=j5,I5=Sp,U5=F5;function fS(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=U5),a||(a=[]);++i0&&n(s)?t>1?fS(s,t-1,n,r,a):I5(a,s):r||(a[a.length]=s)}return a}var z5=fS,H5=z5;function W5(e){var t=e==null?0:e.length;return t?H5(e,1):[]}var G5=W5,eu={};function V5(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}var q5=V5,K5=/\s/;function Y5(e){for(var t=e.length;t--&&K5.test(e.charAt(t)););return t}var X5=Y5,Q5=X5,J5=/^\s+/;function Z5(e){return e&&e.slice(0,Q5(e)+1).replace(J5,"")}var B5=Z5,e8=B5,zm=jt,t8=Rl,Hm=0/0,n8=/^[-+]0x[0-9a-f]+$/i,r8=/^0b[01]+$/i,a8=/^0o[0-7]+$/i,i8=parseInt;function o8(e){if(typeof e=="number")return e;if(t8(e))return Hm;if(zm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e8(e);var n=r8.test(e);return n||a8.test(e)?i8(e.slice(2),n?2:8):n8.test(e)?Hm:+e}var Fp=o8,s8=q5,nc=Fp;function l8(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=nc(n),n=n===n?n:0),t!==void 0&&(t=nc(t),t=t===t?t:0),s8(nc(e),t,n)}var u8=l8,c8=Pt,f8=function(){return c8.Date.now()},d8=f8,p8=jt,rc=d8,Wm=Fp,h8="Expected a function",g8=Math.max,m8=Math.min;function v8(e,t,n){var r,a,i,o,s,l,u=0,d=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(h8);t=Wm(t)||0,p8(n)&&(d=!!n.leading,p="maxWait"in n,i=p?g8(Wm(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function w(N){var b=r,C=a;return r=a=void 0,u=N,o=e.apply(C,b),o}function m(N){return u=N,s=setTimeout(v,t),d?w(N):o}function S(N){var b=N-l,C=N-u,$=t-b;return p?m8($,i-C):$}function E(N){var b=N-l,C=N-u;return l===void 0||b>=t||b<0||p&&C>=i}function v(){var N=rc();if(E(N))return y(N);s=setTimeout(v,S(N))}function y(N){return s=void 0,h&&r?w(N):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function O(){return s===void 0?o:y(rc())}function P(){var N=rc(),b=E(N);if(r=arguments,a=this,l=N,b){if(s===void 0)return m(l);if(p)return clearTimeout(s),s=setTimeout(v,t),w(l)}return s===void 0&&(s=setTimeout(v,t)),o}return P.cancel=_,P.flush=O,P}var y8=v8,w8=y8,S8=jt,_8="Expected a function";function b8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(_8);return S8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),w8(e,t,{leading:r,maxWait:t,trailing:a})}var E8=b8,Ip={},tu={};Object.defineProperty(tu,"__esModule",{value:!0});tu.assertNever=void 0;function T8(e){throw new Error("Unhandled case: "+JSON.stringify(e))}tu.assertNever=T8;(function(e){var t=A&&A.__assign||function(){return t=Object.assign||function(r){for(var a,i=1,o=arguments.length;i1;){for(;E.length>0;)E.length>1?v.push({direction:"row",first:E.shift(),second:E.shift()}):v.unshift(E.shift());E=v,v=[]}return a(E[0],S)}e.createBalancedTreeFromLeaves=s;function l(m){if(m==="first")return"second";if(m==="second")return"first";throw new Error("Branch '".concat(m,"' not a valid branch"))}e.getOtherBranch=l;function u(m){return m==="row"?"column":"row"}e.getOtherDirection=u;function d(m,S){for(var E=m,v=[];o(E);)E.direction==="row"&&(S===i.TOP_LEFT||S===i.BOTTOM_LEFT)||E.direction==="column"&&(S===i.TOP_LEFT||S===i.TOP_RIGHT)?(v.push("first"),E=E.first):(v.push("second"),E=E.second);return v}e.getPathToCorner=d;function p(m){return m==null?[]:o(m)?p(m.first).concat(p(m.second)):[m]}e.getLeaves=p;function h(m,S){return S.length>0?(0,r.default)(m,S,null):m}e.getNodeAtPath=h;function w(m,S){if(m==null)throw new Error("Root is empty, cannot fetch path");var E=h(m,S);if(E==null)throw new Error("Path [".concat(S.join(", "),"] did not resolve to a node"));return E}e.getAndAssertNodeAtPathExists=w})(Ki);var hj=A&&A.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ys=A&&A.__assign||function(){return Ys=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"&&!i.call(C,X))&&(ee===C&&(ee=p(C)),l(ee)==="Map"?ee.set(X,Er):ee[X]=Er)}}),ee},b}();t.Context=h;var w={$push:function(b,C,$){return S(C,$,"$push"),b.length?C.concat(b):C},$unshift:function(b,C,$){return S(C,$,"$unshift"),b.length?b.concat(C):C},$splice:function(b,C,$,R){return v(C,$),b.forEach(function(z){y(z),C===R&&z.length&&(C=p(R)),o.apply(C,z)}),C},$set:function(b,C,$){return O($),b},$toggle:function(b,C){E(b,"$toggle");var $=b.length?p(C):C;return b.forEach(function(R){$[R]=!C[R]}),$},$unset:function(b,C,$,R){return E(b,"$unset"),b.forEach(function(z){Object.hasOwnProperty.call(C,z)&&(C===R&&(C=p(R)),delete C[z])}),C},$add:function(b,C,$,R){return N(C,"$add"),E(b,"$add"),l(C)==="Map"?b.forEach(function(z){var ee=z[0],X=z[1];C===R&&C.get(ee)!==X&&(C=p(R)),C.set(ee,X)}):b.forEach(function(z){C===R&&!C.has(z)&&(C=p(R)),C.add(z)}),C},$remove:function(b,C,$,R){return N(C,"$remove"),E(b,"$remove"),b.forEach(function(z){C===R&&C.has(z)&&(C=p(R)),C.delete(z)}),C},$merge:function(b,C,$,R){return P(C,b),d(b).forEach(function(z){b[z]!==C[z]&&(C===R&&(C=p(R)),C[z]=b[z])}),C},$apply:function(b,C){return _(b),b(C)}},m=new h;t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=u(t.default,t);function S(b,C,$){a(Array.isArray(b),function(){return"update(): expected target of "+n($)+" to be an array; got "+n(b)+"."}),E(C[$],$)}function E(b,C){a(Array.isArray(b),function(){return"update(): expected spec of "+n(C)+" to be an array; got "+n(b)+". Did you forget to wrap your parameter in an array?"})}function v(b,C){a(Array.isArray(b),function(){return"Expected $splice target to be an array; got "+n(b)}),y(C.$splice)}function y(b){a(Array.isArray(b),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(b)+". Did you forget to wrap your parameters in an array?"})}function _(b){a(typeof b=="function",function(){return"update(): expected spec of $apply to be a function; got "+n(b)+"."})}function O(b){a(Object.keys(b).length===1,function(){return"Cannot have more than one key in an object with $set"})}function P(b,C){a(C&&typeof C=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+n(C)}),a(b&&typeof b=="object",function(){return"update(): $merge expects a target of type 'object'; got "+n(b)})}function N(b,C){var $=l(b);a($==="Map"||$==="Set",function(){return"update(): "+n(C)+" expects a target of type Set or Map; got "+n($)})}})(Uf,Uf.exports);var Z9=Uf.exports;function B9(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r0?(0,xF.default)({},e.path,e.spec):e.spec}je.buildSpecFromUpdate=LS;function MS(e,t){var n=e;return t.forEach(function(r){n=(0,TF.default)(n,LS(r))}),n}je.updateTree=MS;function zf(e,t){var n=(0,RS.default)(t),r=(0,$S.default)(t),a=n.concat((0,Xs.getOtherBranch)(r)),i=(0,Xs.getAndAssertNodeAtPathExists)(e,a);return{path:n,spec:{$set:i}}}je.createRemoveUpdate=zf;function lv(e,t,n){return(0,OF.default)((0,sv.default)(e,n),(0,sv.default)(t,n))}function PF(e,t,n,r){var a=(0,Xs.getAndAssertNodeAtPathExists)(e,n),i=[],o=lv(t,n,n.length);if(o)a=MS(a,[zf(a,(0,CF.default)(t,n.length))]);else{i.push(zf(e,t));var s=lv(t,n,t.length-1);s&&n.splice(t.length-1,1)}var l=(0,Xs.getAndAssertNodeAtPathExists)(e,t),u,d;r===Uo.MosaicDropTargetPosition.LEFT||r===Uo.MosaicDropTargetPosition.TOP?(u=l,d=a):(u=a,d=l);var p="column";return(r===Uo.MosaicDropTargetPosition.LEFT||r===Uo.MosaicDropTargetPosition.RIGHT)&&(p="row"),i.push({path:n,spec:{$set:{first:u,second:d,direction:p}}}),i}je.createDragToUpdates=PF;function DF(e){var t=(0,RS.default)(e),n=(0,$S.default)(e),r;return n==="first"?r=0:r=100,{path:t,spec:{splitPercentage:{$set:r}}}}je.createHideUpdate=DF;function NF(e,t){for(var n,r={},a=e.length-1;a>=0;a--){var i=e[a],o=i==="first"?t:100-t;r=(n={splitPercentage:{$set:o}},n[i]=r,n)}return{spec:r,path:[]}}je.createExpandUpdate=NF;var jS=A&&A.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qs=A&&A.__assign||function(){return Qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){if(++t>=nI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var oI=iI,sI=tI,lI=oI,uI=lI(sI),cI=uI,fI=Pp,dI=XF,pI=cI;function hI(e,t){return pI(dI(e,t,fI),e+"")}var gI=hI,mI=GF,vI=gI,yI=vI(function(e,t){return mI(e,1,t)}),wI=yI,SI=iw,_I=Hi,bI=Cl,EI=vt,TI=Pl,CI=Ol,OI=xl,xI=gp,PI="[object Map]",DI="[object Set]",NI=Object.prototype,kI=NI.hasOwnProperty;function AI(e){if(e==null)return!0;if(TI(e)&&(EI(e)||typeof e=="string"||typeof e.splice=="function"||CI(e)||xI(e)||bI(e)))return!e.length;var t=_I(e);if(t==PI||t==DI)return!e.size;if(OI(e))return!SI(e).length;for(var n in e)if(kI.call(e,n))return!1;return!0}var RI=AI,hr={},Ji={},Ea={};(function(e){var t=A&&A.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.createDefaultToolbarButton=e.DefaultToolbarButton=void 0;var n=t(it),r=t(x),a=Pe,i=Hn,o=function(l){var u=l.title,d=l.className,p=l.onClick,h=l.text,w=r.default.useContext(a.MosaicContext).blueprintNamespace;return r.default.createElement("button",{title:u,onClick:p,className:(0,n.default)("mosaic-default-control",i.OptionalBlueprint.getClasses(w,"BUTTON","MINIMAL"),d)},h&&r.default.createElement("span",{className:"control-text"},h))};e.DefaultToolbarButton=o;var s=function(l,u,d,p){return r.default.createElement(e.DefaultToolbarButton,{title:l,className:u,onClick:d,text:p})};e.createDefaultToolbarButton=s})(Ea);var $I=A&&A.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),IS=A&&A.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ji,"__esModule",{value:!0});Ji.ExpandButton=void 0;var LI=IS(it),sc=IS(x),fv=Pe,MI=Hn,jI=Ea,FI=function(e){$I(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return sc.default.createElement(fv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions;return sc.default.createElement(jI.DefaultToolbarButton,{title:"Expand",className:(0,LI.default)("expand-button",MI.OptionalBlueprint.getIconClass(n.context.blueprintNamespace,"MAXIMIZE")),onClick:n.createExpand(a)})})},t.prototype.createExpand=function(n){var r=this;return function(){n.expand(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=fv.MosaicWindowContext,t}(sc.default.PureComponent);Ji.ExpandButton=FI;var Zi={},II=A&&A.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),US=A&&A.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.RemoveButton=void 0;var UI=US(it),lc=US(x),dv=Pe,zI=Hn,HI=Ea,WI=function(e){II(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return lc.default.createElement(dv.MosaicContext.Consumer,null,function(r){var a=r.mosaicActions,i=r.blueprintNamespace;return lc.default.createElement(HI.DefaultToolbarButton,{title:"Close Window",className:(0,UI.default)("close-button",zI.OptionalBlueprint.getIconClass(i,"CROSS")),onClick:n.createRemove(a)})})},t.prototype.createRemove=function(n){var r=this;return function(){n.remove(r.context.mosaicWindowActions.getPath()),r.props.onClick&&r.props.onClick()}},t.contextType=dv.MosaicWindowContext,t}(lc.default.PureComponent);Zi.RemoveButton=WI;var Bi={},GI=A&&A.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vp=A&&A.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.ReplaceButton=void 0;var VI=Vp(it),qI=Vp(zp),pv=Vp(x),KI=Pe,YI=Hn,XI=Ea,QI=function(e){GI(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.replace=function(){n.context.mosaicWindowActions.replaceWithNew().then(function(){n.props.onClick&&n.props.onClick()}).catch(qI.default)},n}return t.prototype.render=function(){return pv.default.createElement(XI.DefaultToolbarButton,{title:"Replace Window",className:(0,VI.default)("replace-button",YI.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"EXCHANGE")),onClick:this.replace})},t.contextType=KI.MosaicWindowContext,t}(pv.default.PureComponent);Bi.ReplaceButton=QI;var eo={},JI=A&&A.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),qp=A&&A.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eo,"__esModule",{value:!0});eo.SplitButton=void 0;var ZI=qp(it),BI=qp(zp),hv=qp(x),eU=Pe,tU=Hn,nU=Ea,rU=function(e){JI(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.split=function(){n.context.mosaicWindowActions.split().then(function(){n.props.onClick&&n.props.onClick()}).catch(BI.default)},n}return t.prototype.render=function(){return hv.default.createElement(nU.DefaultToolbarButton,{title:"Split Window",className:(0,ZI.default)("split-button",tU.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"ADD_COLUMN_RIGHT")),onClick:this.split})},t.contextType=eU.MosaicWindowContext,t}(hv.default.PureComponent);eo.SplitButton=rU;var aU=A&&A.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hr,"__esModule",{value:!0});hr.DEFAULT_CONTROLS_WITHOUT_CREATION=hr.DEFAULT_CONTROLS_WITH_CREATION=void 0;var hn=aU(x),zS=Ji,HS=Zi,iU=Bi,oU=eo;hr.DEFAULT_CONTROLS_WITH_CREATION=hn.default.Children.toArray([hn.default.createElement(iU.ReplaceButton,null),hn.default.createElement(oU.SplitButton,null),hn.default.createElement(zS.ExpandButton,null),hn.default.createElement(HS.RemoveButton,null)]);hr.DEFAULT_CONTROLS_WITHOUT_CREATION=hn.default.Children.toArray([hn.default.createElement(zS.ExpandButton,null),hn.default.createElement(HS.RemoveButton,null)]);var to={},sU=A&&A.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lU=A&&A.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(to,"__esModule",{value:!0});to.Separator=void 0;var gv=lU(x),uU=function(e){sU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return gv.default.createElement("div",{className:"separator"})},t}(gv.default.PureComponent);to.Separator=uU;var WS=A&&A.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Js=A&&A.__assign||function(){return Js=Object.assign||function(e){for(var t,n=1,r=arguments.length;nn.rootElement.offsetHeight?"row":"column";return Promise.resolve(o.apply(void 0,r)).then(function(p){return l.replaceWith(s,{direction:d,second:p,first:(0,bU.getAndAssertNodeAtPathExists)(u,s)})})},n.swap=function(){for(var r=[],a=0;a0,m=w?this.props.connectDragSource:function(y){return y};if(d){var S=m(d(this.props,o));return ne.default.createElement("div",{className:(0,ja.default)("mosaic-window-toolbar",{draggable:w})},S)}var E=m(ne.default.createElement("div",{title:i,className:"mosaic-window-title"},i)),v=!(0,gU.default)(s);return ne.default.createElement("div",{className:(0,ja.default)("mosaic-window-toolbar",{draggable:w})},E,ne.default.createElement("div",{className:(0,ja.default)("mosaic-window-controls",Fa.OptionalBlueprint.getClasses("BUTTON_GROUP"))},v&&ne.default.createElement("button",{onClick:function(){return r.setAdditionalControlsOpen(!p)},className:(0,ja.default)(Fa.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON","MINIMAL"),Fa.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"MORE"),(n={},n[Fa.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"ACTIVE")]=p,n))},ne.default.createElement("span",{className:"control-text"},l)),v&&ne.default.createElement(yU.Separator,null),h))},t.prototype.checkCreateNode=function(){if(this.props.createNode==null)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(n){var r=n.title;return ne.default.createElement("div",{className:"mosaic-preview"},ne.default.createElement("div",{className:"mosaic-window-toolbar"},ne.default.createElement("div",{className:"mosaic-window-title"},r)),ne.default.createElement("div",{className:"mosaic-window-body"},ne.default.createElement("h4",null,r),ne.default.createElement(Fa.OptionalBlueprint.Icon,{className:"default-preview-icon",size:"large",icon:"APPLICATION"})))},renderToolbar:null},t.contextType=Hf.MosaicContext,t}(ne.default.Component);ca.InternalMosaicWindow=GS;function EU(e){var t=(0,ne.useContext)(Hf.MosaicContext),n=t.mosaicActions,r=t.mosaicId,a=(0,mv.useDrag)({type:yv.MosaicDragType.WINDOW,item:function(h){e.onDragStart&&e.onDragStart();var w=(0,pU.default)(function(){return n.hide(e.path)});return{mosaicId:r,hideTimer:w}},end:function(h,w){var m=h.hideTimer;window.clearTimeout(m);var S=e.path,E=w.getDropResult()||{},v=E.position,y=E.path;v!=null&&y!=null&&!(0,mU.default)(y,S)?(n.updateTree((0,_U.createDragToUpdates)(n.getRoot(),S,y,v)),e.onDragEnd&&e.onDragEnd("drop")):(n.updateTree([{path:(0,hU.default)(S),spec:{splitPercentage:{$set:void 0}}}]),e.onDragEnd&&e.onDragEnd("reset"))}}),i=a[1],o=a[2],s=(0,mv.useDrop)({accept:yv.MosaicDragType.WINDOW,collect:function(h){var w;return{isOver:h.isOver(),draggedMosaicId:(w=h.getItem())===null||w===void 0?void 0:w.mosaicId}}}),l=s[0],u=l.isOver,d=l.draggedMosaicId,p=s[1];return ne.default.createElement(GS,Js({},e,{connectDragPreview:o,connectDragSource:i,connectDropTarget:p,isOver:u,draggedMosaicId:d}))}var TU=function(e){WS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return ne.default.createElement(EU,Js({},this.props))},t}(ne.default.PureComponent);ca.MosaicWindow=TU;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONTROLS_WITHOUT_CREATION=e.DEFAULT_CONTROLS_WITH_CREATION=e.RemoveButton=e.SplitButton=e.ReplaceButton=e.ExpandButton=e.Separator=e.MosaicZeroState=e.DefaultToolbarButton=e.createDefaultToolbarButton=e.MosaicWindow=e.isParent=e.getPathToCorner=e.getOtherDirection=e.getOtherBranch=e.getNodeAtPath=e.getLeaves=e.getAndAssertNodeAtPathExists=e.Corner=e.createBalancedTreeFromLeaves=e.updateTree=e.createRemoveUpdate=e.createHideUpdate=e.createExpandUpdate=e.createDragToUpdates=e.buildSpecFromUpdate=e.MosaicWindowContext=e.MosaicContext=e.MosaicDragType=e.MosaicWithoutDragDropContext=e.Mosaic=void 0;/** + * @license + * Copyright 2019 Kevin Verdieck, originally developed at Palantir Technologies, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */var t=ua;Object.defineProperty(e,"Mosaic",{enumerable:!0,get:function(){return t.Mosaic}}),Object.defineProperty(e,"MosaicWithoutDragDropContext",{enumerable:!0,get:function(){return t.MosaicWithoutDragDropContext}});var n=_r;Object.defineProperty(e,"MosaicDragType",{enumerable:!0,get:function(){return n.MosaicDragType}});var r=Pe;Object.defineProperty(e,"MosaicContext",{enumerable:!0,get:function(){return r.MosaicContext}}),Object.defineProperty(e,"MosaicWindowContext",{enumerable:!0,get:function(){return r.MosaicWindowContext}});var a=je;Object.defineProperty(e,"buildSpecFromUpdate",{enumerable:!0,get:function(){return a.buildSpecFromUpdate}}),Object.defineProperty(e,"createDragToUpdates",{enumerable:!0,get:function(){return a.createDragToUpdates}}),Object.defineProperty(e,"createExpandUpdate",{enumerable:!0,get:function(){return a.createExpandUpdate}}),Object.defineProperty(e,"createHideUpdate",{enumerable:!0,get:function(){return a.createHideUpdate}}),Object.defineProperty(e,"createRemoveUpdate",{enumerable:!0,get:function(){return a.createRemoveUpdate}}),Object.defineProperty(e,"updateTree",{enumerable:!0,get:function(){return a.updateTree}});var i=Ki;Object.defineProperty(e,"createBalancedTreeFromLeaves",{enumerable:!0,get:function(){return i.createBalancedTreeFromLeaves}}),Object.defineProperty(e,"Corner",{enumerable:!0,get:function(){return i.Corner}}),Object.defineProperty(e,"getAndAssertNodeAtPathExists",{enumerable:!0,get:function(){return i.getAndAssertNodeAtPathExists}}),Object.defineProperty(e,"getLeaves",{enumerable:!0,get:function(){return i.getLeaves}}),Object.defineProperty(e,"getNodeAtPath",{enumerable:!0,get:function(){return i.getNodeAtPath}}),Object.defineProperty(e,"getOtherBranch",{enumerable:!0,get:function(){return i.getOtherBranch}}),Object.defineProperty(e,"getOtherDirection",{enumerable:!0,get:function(){return i.getOtherDirection}}),Object.defineProperty(e,"getPathToCorner",{enumerable:!0,get:function(){return i.getPathToCorner}}),Object.defineProperty(e,"isParent",{enumerable:!0,get:function(){return i.isParent}});var o=ca;Object.defineProperty(e,"MosaicWindow",{enumerable:!0,get:function(){return o.MosaicWindow}});var s=Ea;Object.defineProperty(e,"createDefaultToolbarButton",{enumerable:!0,get:function(){return s.createDefaultToolbarButton}}),Object.defineProperty(e,"DefaultToolbarButton",{enumerable:!0,get:function(){return s.DefaultToolbarButton}});var l=Yi;Object.defineProperty(e,"MosaicZeroState",{enumerable:!0,get:function(){return l.MosaicZeroState}});var u=to;Object.defineProperty(e,"Separator",{enumerable:!0,get:function(){return u.Separator}});var d=Ji;Object.defineProperty(e,"ExpandButton",{enumerable:!0,get:function(){return d.ExpandButton}});var p=Bi;Object.defineProperty(e,"ReplaceButton",{enumerable:!0,get:function(){return p.ReplaceButton}});var h=eo;Object.defineProperty(e,"SplitButton",{enumerable:!0,get:function(){return h.SplitButton}});var w=Zi;Object.defineProperty(e,"RemoveButton",{enumerable:!0,get:function(){return w.RemoveButton}});var m=hr;Object.defineProperty(e,"DEFAULT_CONTROLS_WITH_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITH_CREATION}}),Object.defineProperty(e,"DEFAULT_CONTROLS_WITHOUT_CREATION",{enumerable:!0,get:function(){return m.DEFAULT_CONTROLS_WITHOUT_CREATION}})})(Cf);var wv={CENTER:"center",LEFT:"left",RIGHT:"right"},no={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},ve="bp5";typeof BLUEPRINT_NAMESPACE<"u"?ve=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(ve=REACT_APP_BLUEPRINT_NAMESPACE);var CU="".concat(ve,"-active"),OU="".concat(ve,"-align-left"),xU="".concat(ve,"-align-right"),PU="".concat(ve,"-disabled"),DU="".concat(ve,"-fill"),Wf="".concat(ve,"-large"),NU="".concat(ve,"-loading"),kU="".concat(ve,"-minimal"),AU="".concat(ve,"-outlined"),Gf="".concat(ve,"-small");Mn(no.PRIMARY);Mn(no.SUCCESS);Mn(no.WARNING);Mn(no.DANGER);var RU="".concat(ve,"-text-overflow-ellipsis"),Kp="".concat(ve,"-button"),$U="".concat(Kp,"-spinner"),LU="".concat(Kp,"-text"),au="".concat(ve,"-spinner"),MU="".concat(au,"-animation"),jU="".concat(au,"-head"),FU="".concat(ve,"-no-spin"),IU="".concat(au,"-track"),Yp="".concat(ve,"-icon"),UU="".concat(Yp,"-standard"),zU="".concat(Yp,"-large");function HU(e){switch(e){case wv.LEFT:return OU;case wv.RIGHT:return xU;default:return}}function WU(e){if(e!=null)return e.indexOf("".concat(ve,"-icon-"))===0?e:"".concat(ve,"-icon-").concat(e)}function Mn(e){if(!(e==null||e===no.NONE))return"".concat(ve,"-intent-").concat(e.toLowerCase())}var Vf=function(e,t){return Vf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Vf(e,t)};function VS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Vf(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ot=function(){return Ot=Object.assign||function(t){for(var n,r=1,a=arguments.length;r Classes.SMALL/LARGE are ignored if size prop is set.";function Sv(e){return typeof NODE_ENV<"u"&&NODE_ENV===e}function qU(e,t,n){if(e==null)return e;if(n0){for(var a=0,i=r.timeoutIds;a0){for(var a=0,i=r.requestIds;a0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function tz(e,t){return t===void 0&&(t={}),YS(e,Kf({delimiter:"",transform:ez},t))}var Yf=function(){return Yf=Object.assign||function(t){for(var n,r=1,a=arguments.length;r{if(i=iz(i),i in Tv)return;Tv[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let d=a.length-1;d>=0;d--){const p=a[d];if(p.href===i&&(!o||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":az,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((d,p)=>{u.addEventListener("load",d),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var Wt=function(){return Wt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]import("./allPathsLoader-ae381438.js"),[])];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,Cv(()=>import("./splitPathsBySizeLoader-0f656345.js"),[])];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}var Ya=function(){function e(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return e.setLoaderOptions=function(t){t.loader!==void 0&&(Dr.defaultLoader=t.loader)},e.load=function(t,n,r){return Vr(this,void 0,void 0,function(){var a=this;return qr(this,function(i){switch(i.label){case 0:return Array.isArray(t)||(t=[t]),[4,Promise.all(t.map(function(o){return a.loadImpl(o,n,r)}))];case 1:return i.sent(),[2]}})})},e.loadAll=function(t){return Vr(this,void 0,void 0,function(){var n,r=this;return qr(this,function(a){return n=Object.values(wt),uz("[Blueprint] loading all icons",function(){return Vr(r,void 0,void 0,function(){return qr(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.load(n,Le.STANDARD,t),this.load(n,Le.LARGE,t)])];case 1:return i.sent(),[2]}})})}),[2]})})},e.getPaths=function(t,n){if(this.isValidIconName(t)){var r=n=Le.LARGE,S=m?Le.LARGE:Le.STANDARD,E="0 0 ".concat(S," ").concat(S),v=dz("iconTitle"),y=Wt({fill:a,height:l,role:"img",viewBox:E,width:l},u);return p===null?x.createElement("svg",Wt({"aria-labelledby":h?v:void 0,"data-icon":o,ref:t},y,w,{className:$n(r,u==null?void 0:u.className)}),h&&x.createElement("title",{id:v},h),n):x.createElement(p,Wt(Wt({"aria-hidden":h?void 0:!0},w),{className:$n(xv,"".concat(xv,"-").concat(o),r),ref:t,title:i}),x.createElement("svg",Wt({"data-icon":o},y,{className:u==null?void 0:u.className}),h&&x.createElement("title",null,h),n))});JS.displayName="Blueprint5.SVGIconContainer";var Je=x.forwardRef(function(e,t){var n,r,a=e.autoLoad,i=e.className,o=e.color,s=e.icon,l=e.intent,u=e.tagName,d=e.svgProps,p=e.title,h=e.htmlTitle,w=Xp(e,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),m=(r=(n=e.iconSize)!==null&&n!==void 0?n:e.size)!==null&&r!==void 0?r:Le.STANDARD,S=x.useState(function(){return typeof s=="string"?Ya.getPaths(s,m):void 0}),E=S[0],v=S[1];if(x.useEffect(function(){var O=!1;if(typeof s=="string"){var P=Ya.getPaths(s,m);P!==void 0?v(P):a?Ya.load(s,m).then(function(){O||v(Ya.getPaths(s,m))}).catch(function(N){console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) could not be loaded."),N)}):console.error("[Blueprint] Icon '".concat(s,"' (").concat(m,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(s,"', ").concat(m,")?"))}return function(){O=!0}},[a,s,m]),s==null||typeof s=="boolean")return null;if(typeof s!="string")return s;if(E==null){var y=m===Le.STANDARD?UU:m===Le.LARGE?zU:void 0;return x.createElement(u,Ot(Ot({"aria-hidden":p?void 0:!0},Zs(w)),{className:$n(Yp,y,WU(s),Mn(l),i),"data-icon":s,ref:t,title:h}))}else{var _=E.map(function(O,P){return x.createElement("path",{d:O,key:P,fillRule:"evenodd"})});return x.createElement(JS,Ot({children:_,className:$n(Mn(l),i),color:o,htmlTitle:h,iconName:s,ref:t,size:m,svgProps:d,tagName:u,title:p},Zs(w)))}});Je.defaultProps={autoLoad:!0,tagName:"span"};Je.displayName="".concat(ro,".Icon");var rr;(function(e){e[e.SMALL=20]="SMALL",e[e.STANDARD=50]="STANDARD",e[e.LARGE=100]="LARGE"})(rr||(rr={}));var un=45,Dv="M 50,50 m 0,-".concat(un," a ").concat(un,",").concat(un," 0 1 1 0,").concat(un*2," a ").concat(un,",").concat(un," 0 1 1 0,-").concat(un*2),Ia=280,pz=10,hz=4,gz=16,mz=function(e){VS(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidUpdate=function(n){n.value!==this.props.value&&this.forceUpdate()},t.prototype.render=function(){var n,r=this.props,a=r.className,i=r.intent,o=r.value,s=r.tagName,l=s===void 0?"div":s,u=Xp(r,["className","intent","value","tagName"]),d=this.getSize(),p=$n(au,Mn(i),(n={},n[FU]=o!=null,n),a),h=Math.min(gz,hz*rr.LARGE/d),w=Ia-Ia*(o==null?.25:qU(o,0,1));return x.createElement(l,Ot({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o===void 0?void 0:o*100,className:p,role:"progressbar"},u),x.createElement(l,{className:MU},x.createElement("svg",{width:d,height:d,strokeWidth:h.toFixed(2),viewBox:this.getViewBox(h)},x.createElement("path",{className:IU,d:Dv}),x.createElement("path",{className:jU,d:Dv,pathLength:Ia,strokeDasharray:"".concat(Ia," ").concat(Ia),strokeDashoffset:w}))))},t.prototype.validateProps=function(n){var r=n.className,a=r===void 0?"":r,i=n.size;i!=null&&(a.indexOf(Gf)>=0||a.indexOf(Wf)>=0)&&console.warn(VU)},t.prototype.getSize=function(){var n=this.props,r=n.className,a=r===void 0?"":r,i=n.size;return i==null?a.indexOf(Gf)>=0?rr.SMALL:a.indexOf(Wf)>=0?rr.LARGE:rr.STANDARD:Math.max(pz,i)},t.prototype.getViewBox=function(n){var r=un+n/2,a=(50-r).toFixed(2),i=(r*2).toFixed(2);return"".concat(a," ").concat(a," ").concat(i," ").concat(i)},t.displayName="".concat(ro,".Spinner"),t}(QU),Qp=x.forwardRef(function(e,t){var n,r=e.children,a=e.tagName,i=a===void 0?"div":a,o=e.title,s=e.className,l=e.ellipsize,u=Xp(e,["children","tagName","title","className","ellipsize"]),d=x.useRef(),p=x.useMemo(function(){return KS(d,t)},[t]),h=x.useState(""),w=h[0],m=h[1],S=x.useState(),E=S[0],v=S[1];return x.useLayoutEffect(function(){var y;((y=d.current)===null||y===void 0?void 0:y.textContent)!=null&&(v(l&&d.current.scrollWidth>d.current.clientWidth),m(d.current.textContent))},[d,r,l]),x.createElement(i,Ot(Ot({},u),{className:$n((n={},n[RU]=l,n),s),ref:p,title:o??(E?w:void 0)}),r)});Qp.defaultProps={ellipsize:!1};Qp.displayName="".concat(ro,".Text");var It=x.forwardRef(function(e,t){var n=ZS(e,t);return x.createElement("button",Ot({type:"button"},Zs(e),n),BS(e))});It.displayName="".concat(ro,".Button");var vz=x.forwardRef(function(e,t){var n=e.href,r=e.tabIndex,a=r===void 0?0:r,i=ZS(e,t);return x.createElement("a",Ot({role:"button"},Zs(e),i,{"aria-disabled":i.disabled,href:i.disabled?void 0:n,tabIndex:i.disabled?-1:a}),BS(e))});vz.displayName="".concat(ro,".AnchorButton");function ZS(e,t){var n,r=e.active,a=r===void 0?!1:r,i=e.alignText,o=e.fill,s=e.large,l=e.loading,u=l===void 0?!1:l,d=e.minimal,p=e.onBlur,h=e.onKeyDown,w=e.onKeyUp,m=e.outlined,S=e.small,E=e.tabIndex,v=e.disabled||u,y=x.useState(),_=y[0],O=y[1],P=x.useState(!1),N=P[0],b=P[1],C=x.useRef(null),$=x.useCallback(function(X){N&&b(!1),p==null||p(X)},[N,p]),R=x.useCallback(function(X){_v(X)&&(X.preventDefault(),X.key!==_&&b(!0)),O(X.key),h==null||h(X)},[_,h]),z=x.useCallback(function(X){var rn;_v(X)&&(b(!1),(rn=C.current)===null||rn===void 0||rn.click()),O(void 0),w==null||w(X)},[w]),ee=$n(Kp,(n={},n[CU]=!v&&(a||N),n[PU]=v,n[DU]=o,n[Wf]=s,n[NU]=u,n[kU]=d,n[AU]=m,n[Gf]=S,n),HU(i),Mn(e.intent),e.className);return{className:ee,disabled:v,onBlur:$,onClick:v?void 0:e.onClick,onFocus:v?void 0:e.onFocus,onKeyDown:R,onKeyUp:z,ref:KS(C,t),tabIndex:v?-1:E}}function BS(e){var t=e.children,n=e.ellipsizeText,r=e.icon,a=e.loading,i=e.rightIcon,o=e.text,s=e.textClassName,l=!qf(o)||!qf(t);return x.createElement(x.Fragment,null,a&&x.createElement(mz,{key:"loading",className:$U,size:rr.SMALL}),x.createElement(Je,{key:"leftIcon",icon:r}),l&&x.createElement(Qp,{key:"text",className:$n(LU,s),ellipsize:n,tagName:"span"},o,t),x.createElement(Je,{key:"rightIcon",icon:i}))}const yz="_stream_table_header_main_container_eshmy_1",wz="_stream_table_header_fn_row_eshmy_7",Sz="_stream_table_right_container_eshmy_15",_z="_stream_table_title_eshmy_23",bz="_hideFieldBtn_eshmy_31",Ez="_dropdownMenu_eshmy_52",Tz="_streamtable_vartype_panel_eshmy_107",Ua={stream_table_header_main_container:yz,stream_table_header_fn_row:wz,stream_table_right_container:Sz,stream_table_title:_z,hideFieldBtn:bz,dropdownMenu:Ez,streamtable_vartype_panel:Tz};function Nv(){x.useContext(mt);const[e,t]=x.useState(!1);function n(){document.getElementById("hide-fields-list"),t(r=>!r)}return T.jsxs("div",{className:`${Ua.stream_table_header_main_container}`,children:[T.jsx("div",{className:`${Ua.stream_table_header_fn_row}`,children:T.jsxs("div",{id:"hide-fields-dropdown",className:`nav-link dropdown-toggle idaes-nav-button ${Ua.hideFieldBtn}`,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:n,children:[T.jsx("span",{children:"Hide Fields"}),T.jsx("ul",{id:"hide-fields-list",className:`dropdown-menu checkbox-menu ${Ua.dropdownMenu}`,style:{display:e?"block":"none"}})]})}),T.jsx("div",{id:"existing-variable-types",className:`streamtable-vartype-panel ${Ua.streamtable_vartype_panel}`})]})}const Cz="_flowsheet_variable_ul_15yu2_1",Oz="_variables_display_each_unit_label_15yu2_16",kv={flowsheet_variable_ul:Cz,variables_display_each_unit_label:Oz};function xz(){const{cells:e,model:t,showVariable:n,setShowVariable:r}=x.useContext(mt);console.log(e),console.log(t);let a="loading...";return e?a=e.map((o,s)=>{if(o.attrs&&o.attrs.label&&o.attrs.label.text)return T.jsxs("li",{id:`unit_name_${o}`,className:kv.variables_display_each_unit_label,"data-open":"false","data-which-label":o.attrs.label.text,onClick:l=>Pz(l,r),children:[Object.keys(n).includes(o.attrs.label.text)?T.jsx(Ue,{icon:NT}):T.jsx(Ue,{icon:OT}),T.jsx("span",{children:o.attrs.label.text})]},o.attrs.label.text+s)}):a="Please check flowsheet Joint JS model, looks like it not contain any Cells",Object.keys(n).length>0,T.jsx(T.Fragment,{children:T.jsx("section",{className:"pd-md",children:T.jsx("ul",{className:`${kv.flowsheet_variable_ul}`,children:a})})})}function Pz(e,t){const r=e.currentTarget.getAttribute("data-which-label");r?(console.log("here"),t(a=>{const i={...a};return i[r]?delete i[r]:i[r]=r,i})):console.error("Click event not receive which variable")}const Dz="_fvContainer_1oimy_1",Nz="_fv_1oimy_1",Av={fvContainer:Dz,fv:Nz};function kz(){const{panelState:e,cells:t}=x.useContext(mt),n=e.fv.show;return T.jsxs(T.Fragment,{children:[T.jsx("h1",{children:{}.VITE_TEST}),n&&T.jsx("section",{id:"fvContainer",className:`${Av.fvContainer}`,children:T.jsx("div",{id:"fv",className:`${Av.fv}`})})]})}const Az="_diagnosticsIssues_container_qe2yw_1",Rz="_diagnosticIssues_each_issue_qe2yw_11",$z="_activated_qe2yw_36",Wo={diagnosticsIssues_container:Az,diagnosticIssues_each_issue:Rz,activated:$z};function Lz(e){let t=e.diagnosticData,n="Loading...";if(t){let r=t.diagnostics_toolbox_report.structural_report.warning[0],a=t.diagnostics_toolbox_report.numerical_report.warning[0],i={structural:r.length,numerical:a.length};const o=Object.keys(i);let s="";!e.whichIssue&&o.length>0?s=o[0]:s=e.whichIssue,n=o.map((l,u)=>T.jsx("div",{className:`${Wo.diagnosticIssues_each_issue} ${l==s?Wo.activated:Wo.deactivated}`,onClick:()=>e.toggleIssue(l),children:T.jsxs("p",{children:[l," issues",T.jsx("sup",{children:i[l]})]})},u))}else console.log("Diagnostic data is not pass from parent!");return T.jsx("div",{className:Wo.diagnosticsIssues_container,children:n})}const Mz="_diagnostics_display_main_container_103sm_1",jz="_diagnostic_display_each_section_container_103sm_7",Fz="_diagnostic_display_each_config_container_103sm_11",Iz="_diagnostics_display_each_severity_main_container_103sm_17",Uz="_diagnostic_display_each_severity_title_103sm_21",zz="_diagnostic_display_diagnostic_content_container_103sm_31",Hz="_diagnostics_warning_caution_main_container_103sm_35",Wz="_diagnostics_display_pre_tag_103sm_39",Gz="_diagnostics_warning_caution_display_container_103sm_53",Vz="_warning_103sm_57",qz="_caution_103sm_65",Kz="_diagnostic_display_each_issue_container_103sm_73",Yz="_diagnostic_display_section_title_103sm_79",Xz="_diagnostics_display_each_next_step_content_103sm_83",Qz="_next_step_function_btn_103sm_96",Jz="_copied_next_step_103sm_106",J={diagnostics_display_main_container:Mz,diagnostic_display_each_section_container:jz,diagnostic_display_each_config_container:Fz,diagnostics_display_each_severity_main_container:Iz,diagnostic_display_each_severity_title:Uz,diagnostic_display_diagnostic_content_container:zz,diagnostics_warning_caution_main_container:Hz,diagnostics_display_pre_tag:Wz,diagnostics_warning_caution_display_container:Gz,warning:Vz,caution:qz,diagnostic_display_each_issue_container:Kz,diagnostic_display_section_title:Yz,diagnostics_display_each_next_step_content:Xz,next_step_function_btn:Qz,copied_next_step:Jz};function Zz(e){const{diagnosticsNextStepsOutputState:t,setDiagnosticsNextStepsOutputState:n,diagnosticsRunFnNameListState:r,setDiagnosticsRunFnNameListState:a,setDiagnosticsRunnerDisplayState:i}=x.useContext(mt),o=e.diagnosticData,s=e.whichIssue;let l="Loading jacobian condition...",u="Loading model statistics structural...",d="Loading warning...",p="Loading caution...",h="Loading suggested next step...",w=0,m=0,S=[];if(s&&o&&o.diagnostics_toolbox_report){const v=o.diagnostics_toolbox_report;l=T.jsx("pre",{className:J.diagnostics_display_pre_tag,children:v.toolbox_jacobian_condation});const y=v.toolbox_model_statistics;y&&y.length>0?u=y.map((b,C)=>T.jsx("pre",{className:J.diagnostics_display_pre_tag,children:b},`model_structural_statistics_content${C}_${b}`)):u=T.jsxs(T.Fragment,{children:[T.jsx("pre",{className:J.diagnostics_display_pre_tag,children:" Model Statistics is not generate by diagnostics toolbox, please run: "}),T.jsx("pre",{className:J.diagnostics_display_pre_tag,children:" dt = DiagnosticsToolbox(model)"}),T.jsx("pre",{className:J.diagnostics_display_pre_tag,children:" dt.report_structural_issues()"}),T.jsx("pre",{className:J.diagnostics_display_pre_tag,children:" dt.report_numerical_issues()"})]});const _=v[s=="structural"?"structural_report":"numerical_report"].warning[0];w=_.length,_&&_.length>0?d=_.map((b,C)=>(b=b.replace("WARNING","Warning"),T.jsx("pre",{className:J.diagnostics_display_pre_tag,children:b},`eachWarning_${C}_${b}`))):d=T.jsx("pre",{className:J.diagnostics_display_pre_tag,children:"No warning."});const O=v[s=="structural"?"structural_report":"numerical_report"].caution;m=O.length,O&&O.length>0?p=O.map((b,C)=>(b=b.replace("CAUTION","Caution"),T.jsx("pre",{className:J.diagnostics_display_pre_tag,children:b},`eachCaution_${C}_${b}`))):p=T.jsx("pre",{className:J.diagnostics_display_pre_tag,children:"No caution."});let P=!1;const N=v.next_steps[s=="structural"?"structural":"numerical"];N.length>0&&(P=!0,S=[...N]),P?h=N.map((b,C)=>T.jsxs("p",{className:`${J.diagnostics_display_each_next_step_content}`,children:[T.jsx("span",{className:"function_name",children:b}),T.jsx("span",{className:`${J.next_step_function_btn}`,onClick:()=>{E(b)},children:"Run"}),T.jsx("span",{className:`${J.next_step_function_btn}`,onClick:Bz,children:"Copy"})]},`diagnostics_suggested_next_step_${b}`)):(s=="structural"&&(h="Try to initialize / solve your model and then call report_numerical_issues()"),s=="numerical"&&(h="Try to initialize / solve your model and then call report_numerical_issues()"))}async function E(v){try{if(!v)return;i(v);let y=v.replace("(","").replace(")","");const _="http://localhost:49999/run_diagnostic",P=new URL(window.location.href).searchParams.get("id"),N={function_name:y,id:P},b=await Jn.put(_,N);console.log(b);const C=b.data;n($=>{const R={...$};return R[v]||(R[v]=[]),R[v]&&R[v].push(C),R})}catch(y){console.log(y)}}return x.useEffect(()=>{for(let v=0;v{const O=_.map(P=>P);return O.push(y),O})}},[S]),T.jsxs("div",{className:`${J.diagnostics_display_main_container}`,children:[T.jsxs("div",{className:J.diagnostic_display_each_section_container,children:[T.jsx("p",{className:J.diagnostic_display_section_title,children:"Model Statistics"}),s=="structural"||!s?u:l]}),T.jsxs("div",{className:J.diagnostic_display_each_section_container,children:[T.jsxs("div",{className:J.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${J.diagnostic_display_each_severity_title} ${J.warning}`,children:["WARNINGS",T.jsx("span",{children:w})]}),T.jsx("div",{className:J.diagnostics_warning_caution_display_container,children:d})]}),T.jsxs("div",{className:J.diagnostics_warning_caution_main_container,children:[T.jsxs("div",{className:`${J.diagnostic_display_each_severity_title} ${J.caution}`,children:["CAUTIONS",T.jsx("span",{children:m})]}),T.jsx("div",{className:J.diagnostics_warning_caution_display_container,children:p})]})]}),T.jsxs("div",{className:J.diagnostic_display_each_section_container,children:[h!="Loading suggested next step..."&&T.jsx("p",{className:J.diagnostic_display_section_title,children:"Suggested next steps:"}),T.jsx("div",{className:J.diagnostic_display_diagnostic_content_container,children:h})]})]})}function Bz(e){let t=e.currentTarget,n=t.parentElement.querySelector(".function_name");if(!n){console.error("There is an issue with click copy next step function");return}const r=n.textContent||"";navigator.clipboard.writeText(r).then(()=>{let a;a?clearTimeout(a):(t.innerText="Copied",a=setTimeout(()=>{t.innerText="Copy"},900))}).catch(a=>{console.error("Failed to copy text: ",a)})}function eH(){let{server_port:e,diagnosticsRefreshState:t}=x.useContext(mt);const[n,r]=x.useState(null),[a,i]=x.useState("structural");console.log(a);const o=s=>{i(s)};return x.useEffect(()=>{console.log("loading diagnostics data");const u=`http://localhost:49999/diagnostics?id=${new URL(window.location.href).searchParams.get("id")}`;(async p=>{try{const w=(await Jn.get(p)).data;r(w)}catch(h){console.error("Fetch diagnostic data error",h)}})(u)},[t]),T.jsxs(T.Fragment,{children:[T.jsx(Lz,{diagnosticData:n,toggleIssue:o,whichIssue:a}),T.jsx(Zz,{diagnosticData:n,whichIssue:a})]})}const tH="_diagnosticsRunner_content_container_ouwo9_1",Rv={diagnosticsRunner_content_container:tH};function nH(){const{diagnosticsNextStepsOutputState:e,diagnosticsRunnerDisplayState:t}=x.useContext(mt);let n="";return!t||t=="default"?n="Please select a function to check diagnostics result!":!e[t]||e[t][0].diagnostics_runner_result.length==0?(console.log("in"),n="Please run diagnostics function first!"):e[t]&&e[t]&&(console.log(),n=e[t].map((r,a)=>T.jsx(wn.Fragment,{children:T.jsx("pre",{className:Rv.diagnostics_runner_output_pre,children:r.diagnostics_runner_result})},`diagnosticsRunnerDisplayContentContainerContent${a}`))),console.log(),T.jsx("div",{className:Rv.diagnosticsRunner_content_container,style:{overflowY:"scroll"},children:n})}function $v(){return T.jsx(T.Fragment,{children:T.jsx("div",{id:"stream-table",className:"idaes-container",style:{display:"block"},children:T.jsx("div",{id:"stream-table-container",className:"pd-md tableContainer",children:T.jsx("div",{id:"stream-table-data",className:"ag-theme-alpine"})})})})}const rH=()=>{const{panelState:e,fvHeaderState:t,setFvHeaderState:n,diagnosticsRunFnNameListState:r,setDiagnosticsRunnerDisplayState:a,viewInLogPanel:i,setViewInLogPanel:o,setDiagnosticsRefreshState:s}=x.useContext(mt),l=t.isShowSteamName,u=t.isShowLabels;function d(_){if(!Object.keys(i).includes(_)){console.log("key not found");return}o(O=>{const P={...O};return Object.keys(P).forEach(N=>{N==_?P[N]=!0:P[N]=!1}),P})}function p(){return e.diagnostics.show===!0&&i.diagnosticsLogs?(console.log(e.diagnostics.show),console.log("in 1"),T.jsx(nH,{})):e.diagnostics.show===!0&&i.streamTable===!0?(console.log("in 2"),T.jsx($v,{})):e.diagnostics.show===!1?(console.log("in 2"),T.jsx($v,{})):T.jsx(T.Fragment,{children:"Bottom panel display error cause by diagnosticsRunnerOrStreamTableDisplay"})}const h={components:T.jsx(xz,{}),flowsheet:T.jsx(kz,{}),diagnostics:T.jsx(eH,{}),streamTableAndDiagnostics:p()},w={components:"Components",flowsheet:"Diagram",diagnostics:"Diagnostics",diagnosticsRunner:"Diagnostics Runner",streamTable:"Stream Table",streamTableAndDiagnostics:"Diagnostics Logs"},m=(_,O)=>(Lv(_,S,E,l,u,r,a,i,s),T.jsx(Cf.MosaicWindow,{path:O,createNode:()=>"new",title:w[_],renderToolbar:(P,N)=>T.jsxs("div",{className:"mosaic_customized_toolbar_header",children:[T.jsx("div",{className:"mosaic_customized_toolbar_title_container",children:w[_]==w.streamTableAndDiagnostics?T.jsxs(T.Fragment,{children:[T.jsx("p",{onClick:()=>d("streamTable"),className:` + ${i.streamTable?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:"Stream Table"}),T.jsx("p",{onClick:()=>d("diagnosticsLogs"),className:` + ${i.diagnosticsLogs?"mosaic_header_toolbar_title_activate":"mosaic_header_toolbar_title_deactivate"} + mosaic_header_toolbar_title diagnostics_runner_panel_title + `,children:w[_]})]}):T.jsx("p",{className:"mosaic_header_toolbar_title",children:w[_]})}),T.jsx("div",{className:"mosaic_customized_toolbar_btn_container",children:Lv(_,S,E,l,u,r,a,i,s)})]}),children:h[_]}));function S(){n(_=>({..._,isShowSteamName:!_.isShowSteamName}))}function E(){n(_=>({..._,isShowLabels:!_.isShowLabels}))}function v(_){let O=JSON.stringify(_);localStorage.setItem("mosaicLayout",O)}function y(){let _=localStorage.getItem("mosaicLayout");return _?_=JSON.parse(_):_={direction:"column",first:{direction:"row",first:"flowsheet",second:"diagnostics",splitPercentage:55.01008742434432},second:"streamTableAndDiagnostics",splitPercentage:60},_}return T.jsx(Cf.Mosaic,{renderTile:m,onChange:v,initialValue:y()})};function Lv(e,t,n,r,a,i,o,s,l){switch(e){case"components":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(It,{minimal:!0,children:T.jsx(Je,{icon:wt.MINIMIZE,size:20})}),T.jsx(It,{minimal:!0,children:T.jsx(Je,{icon:wt.MAXIMIZE,size:20})}),T.jsx(It,{minimal:!0,children:T.jsx(Je,{icon:wt.CROSS,size:20})})]});case"flowsheet":return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx(It,{id:"zoom-in-btn",minimal:!0,children:T.jsx(Je,{icon:wt.ZOOM_IN,size:20})}),T.jsx(It,{id:"zoom-out-btn",minimal:!0,children:T.jsx(Je,{icon:wt.ZOOM_OUT,size:20})}),T.jsx(It,{id:"zoom-to-fit",minimal:!0,children:T.jsx(Je,{icon:wt.ZOOM_TO_FIT,size:20})}),T.jsxs(It,{className:"mosaic_flowsheet_header_view",minimal:!0,children:[T.jsx(Je,{icon:wt.EYE_OPEN,size:20}),T.jsxs("ul",{className:"mosaic_dropdown_view",children:[T.jsxs("li",{id:"stream-names-toggle",onClick:t,"data-toggle":`${r}`,children:[r?T.jsx(Ue,{icon:Rg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Ue,{icon:$g,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Stream Name"})]}),T.jsxs("li",{id:"show-label-toggle",onClick:n,"data-toggle":a?"false":"true",children:[a?T.jsx(Ue,{icon:Rg,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}):T.jsx(Ue,{icon:$g,className:"mosaic_toolbar_diagram_view_icon_stroke_only"}),T.jsx("span",{children:"Labels"})]})]})]}),T.jsxs(It,{className:"mosaic_flowsheet_header_download",minimal:!0,children:[T.jsx(Je,{icon:wt.BRING_DATA,size:20}),T.jsxs("ul",{id:"flowsheet_component_header_dropdown_container",className:"mosaic_dropdown_download",children:[T.jsx("li",{id:"headerExportImageBtn",children:"Export PNG"}),T.jsx("li",{id:"headerExportSvgBtn",children:"Export SVG"})]})]})]});case"diagnostics":let u=function(){l(h=>!h)};return T.jsxs("div",{className:"mosaic_toolbar_btn_container",children:[T.jsx("p",{className:"mosaic_diagnostic_toolbar_content",children:"BLOCK: FLOWSHEET"}),T.jsxs("div",{className:"mosaic_toobar_btn_icon_with_text clickable_btn",onClick:()=>u(),children:[T.jsx(Je,{icon:wt.REFRESH,size:20}),T.jsx("span",{className:"mosaic_toobar_btn_icon_with_text_text",children:"Refresh"})]})]});case"streamTable":return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsx(Nv,{})});case"streamTableAndDiagnostics":return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:!s.diagnosticsLogs&&T.jsx(Nv,{})});case"diagnosticsRunner":let d=function(h){o(h.currentTarget.value)};const p=i.map((h,w)=>T.jsx("option",{value:`${h}`,children:h},`diagnosticsRunnerSelection${h}`));return T.jsx("div",{className:"mosaic_toolbar_btn_container",children:T.jsxs("select",{name:"diagnosticsRunnerSelection",id:"",className:"mosaic_diagnosticsRunner_select",onChange:d,children:[T.jsx("option",{value:"default",children:"Select a function"}),p]})});default:return T.jsx(T.Fragment,{})}}const aH="_flowsheetWrapper_11hj9_1",iH={flowsheetWrapper:aH};function oH(){let{server_port:e,fv_id:t,panelState:n,viewInLogPanel:r}=x.useContext(mt);const a=n.fv.show,i=n.diagnostics.show,o=n.streamTable.show;return x.useEffect(()=>{let s;return s?s=void 0:(e=="5173"?e=8e3:e=e,s=new OO(t,e,a,!1,o,r)),()=>{s&&typeof s.cleanToolBarEvent=="function"&&s.cleanToolBarEvent()}},[a,o,i,r]),T.jsx("div",{id:"flowsheet-wrapper",className:iH.flowsheetWrapper,children:T.jsx(rH,{})})}function sH(){return T.jsxs("main",{id:"main",className:"main",children:[T.jsx(aC,{}),T.jsx(oH,{})]})}localStorage.getItem("appSetting")||localStorage.setItem("appSetting","{}");cc.createRoot(document.getElementById("root")).render(T.jsx(xb,{children:T.jsx(sH,{})}));export{Le as I,Vr as _,qr as a,Cv as b,tz as p}; diff --git a/idaes_ui/fv/static/assets/splitPathsBySizeLoader-0f656345.js b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-0f656345.js new file mode 100644 index 00000000..1ee4e5d4 --- /dev/null +++ b/idaes_ui/fv/static/assets/splitPathsBySizeLoader-0f656345.js @@ -0,0 +1 @@ +import{_ as o,a as _,b as i,p as c,I as u}from"./index-cb629cec.js";var p=function(n,s){return o(void 0,void 0,void 0,function(){var a,r;return _(this,function(e){switch(e.label){case 0:return a=c(n),s!==u.STANDARD?[3,2]:[4,i(()=>import("./index-0aa86537.js").then(t=>t.I),[])];case 1:return r=e.sent(),[3,4];case 2:return[4,i(()=>import("./index-4387c2ca.js").then(t=>t.I),[])];case 3:r=e.sent(),e.label=4;case 4:return[2,r[a]]}})})};export{p as splitPathsBySizeLoader}; diff --git a/idaes_ui/fv/static/index.html b/idaes_ui/fv/static/index.html index b9adb588..28e61cf7 100644 --- a/idaes_ui/fv/static/index.html +++ b/idaes_ui/fv/static/index.html @@ -9,7 +9,7 @@ - +